Passed
Push — master ( e5e8e0...e4135b )
by Peter
02:07
created
src/Decorator/Form.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,16 +33,16 @@
 block discarded – undo
33 33
     public function init(): Decorator
34 34
     {
35 35
         // Add the appropriate class to form labels
36
-        $this->rules[] = new Rule([], Label::class, [static::DEFAULT_LABEL_CLASS]);
36
+        $this->rules[ ] = new Rule([ ], Label::class, [ static::DEFAULT_LABEL_CLASS ]);
37 37
 
38 38
         // Add the appropriate class to form labels
39
-        $this->rules[] = new Rule([], Input::class, [static::DEFAULT_INPUT_CLASS]);
40
-        $this->rules[] = new Rule([], Textarea::class, [static::DEFAULT_INPUT_CLASS]);
41
-        $this->rules[] = new Rule([], Select::class, [static::DEFAULT_INPUT_CLASS]);
42
-        $this->rules[] = new Rule([], FormGroup::class, [static::DEFAULT_FORM_GROUP_CLASS]);
43
-        $this->rules[] = new Rule([], DefaultButtons::class, [static::DEFAULT_BUTTONS_CLASS]);
44
-        $this->rules[] = new Rule([Button::INTENT_FORM], Button::class, [static::DEFAULT_BUTTON_CLASS]);
45
-        $this->rules[] = new Rule([], CheckboxGroup::class, [], [], [$this, 'decorateCheckboxGroup']);
39
+        $this->rules[ ] = new Rule([ ], Input::class, [ static::DEFAULT_INPUT_CLASS ]);
40
+        $this->rules[ ] = new Rule([ ], Textarea::class, [ static::DEFAULT_INPUT_CLASS ]);
41
+        $this->rules[ ] = new Rule([ ], Select::class, [ static::DEFAULT_INPUT_CLASS ]);
42
+        $this->rules[ ] = new Rule([ ], FormGroup::class, [ static::DEFAULT_FORM_GROUP_CLASS ]);
43
+        $this->rules[ ] = new Rule([ ], DefaultButtons::class, [ static::DEFAULT_BUTTONS_CLASS ]);
44
+        $this->rules[ ] = new Rule([ Button::INTENT_FORM ], Button::class, [ static::DEFAULT_BUTTON_CLASS ]);
45
+        $this->rules[ ] = new Rule([ ], CheckboxGroup::class, [ ], [ ], [ $this, 'decorateCheckboxGroup' ]);
46 46
 
47 47
         return $this;
48 48
     }
Please login to merge, or discard this patch.
abter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 return [
11 11
     Module::IDENTIFIER         => 'AbterPhp\Bootstrap4Website',
12
-    Module::DEPENDENCIES       => ['AbterPhp\Website'],
12
+    Module::DEPENDENCIES       => [ 'AbterPhp\Website' ],
13 13
     Module::ENABLED            => true,
14 14
     Module::HTTP_BOOTSTRAPPERS => [
15 15
         Bootstrappers\Events\Listeners::class,
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
     Module::EVENTS             => [
18 18
         WebsiteEvent::WEBSITE_READY => [
19 19
             /** @see \AbterPhp\Bootstrap4Website\Events\Listeners\WebsiteDecorator::handle */
20
-            Priorities::NORMAL => [sprintf('%s@handle', Events\Listeners\WebsiteDecorator::class)],
20
+            Priorities::NORMAL => [ sprintf('%s@handle', Events\Listeners\WebsiteDecorator::class) ],
21 21
         ],
22 22
         Event::FORM_READY           => [
23 23
             /** @see \AbterPhp\Bootstrap4Website\Events\Listeners\FormDecorator::handle */
24
-            Priorities::EXTREME_LOW => [sprintf('%s@handle', Events\Listeners\FormDecorator::class)],
24
+            Priorities::EXTREME_LOW => [ sprintf('%s@handle', Events\Listeners\FormDecorator::class) ],
25 25
         ],
26 26
     ],
27 27
     Module::RESOURCE_PATH      => realpath(__DIR__ . '/resources'),
Please login to merge, or discard this patch.
src/Events/Listeners/FormDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $form = $event->getForm();
31 31
 
32
-        $nodes = array_merge([$form], $form->getExtendedDescendantNodes());
32
+        $nodes = array_merge([ $form ], $form->getExtendedDescendantNodes());
33 33
 
34 34
         $this->formDecorator->init()->decorate($nodes);
35 35
     }
Please login to merge, or discard this patch.