Passed
Push — develop ( 07e04a...00d2f1 )
by Daniel
06:10
created
src/Factory/Entity/Component/Feature/AbstractFeatureItemFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      * @param AbstractFeatureItem $component
12 12
      * @inheritdoc
13 13
      */
14
-    protected function init($component, ?array $ops = null): void
14
+    protected function init ($component, ?array $ops = null): void
15 15
     {
16 16
         parent::init($component, $ops);
17 17
         $component->setLabel($this->ops['label']);
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @inheritdoc
23 23
      */
24
-    public static function defaultOps(): array
24
+    public static function defaultOps (): array
25 25
     {
26 26
         return array_merge(
27 27
             parent::defaultOps(),
Please login to merge, or discard this patch.
src/Factory/Entity/Component/AbstractComponentFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @param ObjectManager $manager
31 31
      * @param ValidatorInterface $validator
32 32
      */
33
-    public function __construct(
33
+    public function __construct (
34 34
         ObjectManager $manager,
35 35
         ValidatorInterface $validator
36 36
     ) {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param array|null $ops
44 44
      * @throws \Silverback\ApiComponentBundle\Exception\InvalidFactoryOptionException
45 45
      */
46
-    protected function init($component, ?array $ops = null): void
46
+    protected function init ($component, ?array $ops = null): void
47 47
     {
48 48
         $this->setOptions($ops);
49 49
         $component->setClassName($this->ops['className']);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @param array|null $ops
55 55
      * @throws \Silverback\ApiComponentBundle\Exception\InvalidFactoryOptionException
56 56
      */
57
-    protected function setOptions(?array $ops): void
57
+    protected function setOptions (?array $ops): void
58 58
     {
59 59
         if (!$ops) {
60 60
             $ops = [];
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @return bool
79 79
      * @throws \Silverback\ApiComponentBundle\Exception\InvalidEntityException
80 80
      */
81
-    protected function validate(AbstractComponent $component): bool
81
+    protected function validate (AbstractComponent $component): bool
82 82
     {
83 83
         $errors = $this->validator->validate($component);
84 84
         if (\count($errors)) {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     /**
91 91
      * @return array
92 92
      */
93
-    protected static function defaultOps(): array
93
+    protected static function defaultOps (): array
94 94
     {
95 95
         return [
96 96
             'className' => null
@@ -100,5 +100,5 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * @param array|null $ops
102 102
      */
103
-    abstract public function create(?array $ops = null);
103
+    abstract public function create (?array $ops = null);
104 104
 }
Please login to merge, or discard this patch.
src/Entity/Component/Form/FormView.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     private $methodRendered;
69 69
 
70
-    public function __construct(SymfonyFormView $formView, bool $children = true)
70
+    public function __construct (SymfonyFormView $formView, bool $children = true)
71 71
     {
72 72
         $this->rendered = $formView->isRendered();
73 73
         $this->methodRendered = $formView->isMethodRendered();
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         }
81 81
     }
82 82
 
83
-    private function processViewVars(SymfonyFormView $formView): void
83
+    private function processViewVars (SymfonyFormView $formView): void
84 84
     {
85 85
         $outputVars = array_merge(self::ARRAY_OUTPUT_VARS, self::OUTPUT_VARS);
86 86
         foreach ($outputVars as $var) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         }
92 92
     }
93 93
 
94
-    private function convertVarToArray($var): void
94
+    private function convertVarToArray ($var): void
95 95
     {
96 96
         if (\in_array($var, self::ARRAY_OUTPUT_VARS, true)) {
97 97
             /** @var iterable $choices */
@@ -101,13 +101,13 @@  discard block
 block discarded – undo
101 101
                 if (method_exists($choice, 'getMessage')) {
102 102
                     $this->vars[$var][] = $choice->getMessage();
103 103
                 } else {
104
-                    $this->vars[$var][] = (array)$choice;
104
+                    $this->vars[$var][] = (array) $choice;
105 105
                 }
106 106
             }
107 107
         }
108 108
     }
109 109
 
110
-    private function addChild(SymfonyFormView $formViews): void
110
+    private function addChild (SymfonyFormView $formViews): void
111 111
     {
112 112
         $formView = new FormView($formViews);
113 113
         $this->children->add($formView);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     /**
117 117
      * @return array
118 118
      */
119
-    public function getVars(): array
119
+    public function getVars (): array
120 120
     {
121 121
         return $this->vars;
122 122
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     /**
125 125
      * @return ArrayCollection
126 126
      */
127
-    public function getChildren(): ArrayCollection
127
+    public function getChildren (): ArrayCollection
128 128
     {
129 129
         return $this->children;
130 130
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * @return bool
134 134
      */
135
-    public function isRendered(): bool
135
+    public function isRendered (): bool
136 136
     {
137 137
         return $this->rendered;
138 138
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     /**
141 141
      * @return bool
142 142
      */
143
-    public function isMethodRendered(): bool
143
+    public function isMethodRendered (): bool
144 144
     {
145 145
         return $this->methodRendered;
146 146
     }
Please login to merge, or discard this patch.