Completed
Push — develop ( cea6ad...49270f )
by
unknown
12:49
created
module/Core/src/Core/Form/View/Helper/Form.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -88,14 +88,14 @@  discard block
 block discarded – undo
88 88
         
89 89
         $class = $form->getAttribute('class');
90 90
         $class = preg_replace('~\bform-[^ ]+\b~', '', $class);
91
-        $class .= ' ' . $layout;
91
+        $class .= ' '.$layout;
92 92
         
93 93
         $form->setAttribute('class', $class);
94 94
 
95 95
         $formId = $form->getAttribute('id') ?: $form->getName();
96 96
         $formId = preg_replace(
97 97
             array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
98
-            array('-'              , '-'    , ''       ),
98
+            array('-', '-', ''),
99 99
             $formId
100 100
         );
101 101
         $form->setAttribute(
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             if (!$elementId) {
121 121
                 $elementId = preg_replace(
122 122
                     array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
123
-                    array('-'             , '-',     ''),
123
+                    array('-', '-', ''),
124 124
                     $element->getName()
125 125
                 );
126 126
             }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             }
160 160
         }
161 161
         
162
-        return $this->openTag($form) . $formContent . $this->closeTag();
162
+        return $this->openTag($form).$formContent.$this->closeTag();
163 163
     }
164 164
     
165 165
     /**
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
                 );
188 188
                 
189 189
                 if ($desc = $form->getOption('description', '')) {
190
-                    $descriptionParams=$form->getOption('description_params');
190
+                    $descriptionParams = $form->getOption('description_params');
191 191
                     $translator = $this->getTranslator();
192 192
                     $textDomain = $this->getTranslatorTextDomain();
193 193
                     $desc = $translator->translate($desc, $textDomain);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                     $desc
209 209
                 );
210 210
         } else {
211
-            $formContent = '<div class="form-content">' . $formContent . '</div>';
211
+            $formContent = '<div class="form-content">'.$formContent.'</div>';
212 212
         }
213 213
         
214 214
         $markup = '<div id="form-%s" class="form-container">'
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                 . '</div>';
218 218
         
219 219
         if ($label = $form->getLabel()) {
220
-            $label = '<div class="form-headline"><h3>' . $renderer->translate($label) . '</h3></div>';
220
+            $label = '<div class="form-headline"><h3>'.$renderer->translate($label).'</h3></div>';
221 221
         }
222 222
         
223 223
         return sprintf(
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         if (!$elementId) {
70 70
             $elementId = preg_replace(
71 71
                 array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
72
-                array('-'              , '-'    , ''       ),
72
+                array('-', '-', ''),
73 73
                 $element->getName()
74 74
             );
75 75
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                 if (!$elementOrFieldsetId) {
105 105
                     $elementOrFieldsetId = preg_replace(
106 106
                         array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
107
-                        array('-'              , '-'    , ''       ),
107
+                        array('-', '-', ''),
108 108
                         $elementOrFieldset->getName()
109 109
                     );
110 110
 
Please login to merge, or discard this patch.