diff --git a/library/Icinga/Test/BaseTestCase.php b/library/Icinga/Test/BaseTestCase.php index 7aefa983a..6872ac2a2 100644 --- a/library/Icinga/Test/BaseTestCase.php +++ b/library/Icinga/Test/BaseTestCase.php @@ -328,7 +328,6 @@ namespace Icinga\Test { if ($token !== null) { $requestData[$form->getTokenElementName()] = $token; } - $request = $this->getRequest(); $request->setMethod('POST'); $request->setPost($requestData); diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index 1fc0de71c..a39c46b07 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -35,7 +35,7 @@ use \Zend_View_Interface; use \Icinga\Web\Form\Element\Note; use \Icinga\Exception\ProgrammingError; use \Icinga\Web\Form\Decorator\HelpText; -use \Icinga\Web\Form\Decorator\BoostrapFormDecorator; +use \Icinga\Web\Form\Decorator\BootstrapForm; use \Icinga\Web\Form\InvalidCSRFTokenException; use \Icinga\Application\Config as IcingaConfig; @@ -127,7 +127,7 @@ class Form extends Zend_Form /** * Decorator that replaces the DtDd Zend-Form default * - * @var Form\Decorator\BoostrapFormDecorator + * @var Form\Decorator\BootstrapFormDecorator */ private $formDecorator; @@ -586,7 +586,7 @@ class Form extends Zend_Form $el->removeDecorator('HtmlTag'); $el->removeDecorator('Label'); $el->removeDecorator('DtDdWrapper'); - $el->addDecorator(new BoostrapFormDecorator()); + $el->addDecorator(new BootstrapForm()); $el->setAttrib('class', $el->getAttrib('class') . ' form-control input-sm'); } diff --git a/library/Icinga/Web/Form/Decorator/BoostrapFormDecorator.php b/library/Icinga/Web/Form/Decorator/BootstrapForm.php similarity index 97% rename from library/Icinga/Web/Form/Decorator/BoostrapFormDecorator.php rename to library/Icinga/Web/Form/Decorator/BootstrapForm.php index d47a3e058..b7fbdd12d 100644 --- a/library/Icinga/Web/Form/Decorator/BoostrapFormDecorator.php +++ b/library/Icinga/Web/Form/Decorator/BootstrapForm.php @@ -30,7 +30,7 @@ namespace Icinga\Web\Form\Decorator; use Zend_Form_Decorator_Abstract; - /** + /** * Decorator that styles forms in the DOM boostrap wants for it's forms * * This component replaces the dt/dd wrapping of elements with the approach used by bootstrap. @@ -40,7 +40,7 @@ use Zend_Form_Decorator_Abstract; * cases where you want to put inputs with and inputs without labels on the same line and don't * want buttons to 'jump' */ -class BoostrapFormDecorator extends Zend_Form_Decorator_Abstract +class BootstrapForm extends Zend_Form_Decorator_Abstract { /** * An array of elements that won't get a