Passed
Push — master ( 8e9a4b...0b4ca3 )
by Sebastian
03:12
created
src/FileHelper/PathInfoInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 interface PathInfoInterface
25 25
 {
26 26
     public function getName() : string;
27
-    public function getExtension(bool $lowercase=true) : string;
27
+    public function getExtension(bool $lowercase = true) : string;
28 28
     public function getPath() : string;
29 29
     public function getFolderPath() : string;
30 30
     public function exists() : bool;
Please login to merge, or discard this patch.
src/FileHelper/SerializedFile.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public static function factory($path) : SerializedFile
34 34
     {
35
-        if($path instanceof self) {
35
+        if ($path instanceof self) {
36 36
             return $path;
37 37
         }
38 38
 
39 39
         $instance = self::createInstance($path);
40 40
 
41
-        if($instance instanceof self) {
41
+        if ($instance instanceof self) {
42 42
             return $instance;
43 43
         }
44 44
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             )
74 74
         );
75 75
 
76
-        if($result !== false) {
76
+        if ($result !== false) {
77 77
             return $result;
78 78
         }
79 79
 
Please login to merge, or discard this patch.
src/FileHelper/PHPFile.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public static function factory($path) : PHPFile
34 34
     {
35
-        if($path instanceof self) {
35
+        if ($path instanceof self) {
36 36
             return $path;
37 37
         }
38 38
 
39 39
         $instance = self::createInstance($path);
40 40
 
41
-        if($instance instanceof self) {
41
+        if ($instance instanceof self) {
42 42
             return $instance;
43 43
         }
44 44
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function checkSyntax()
61 61
     {
62
-        if(!FileHelper::canMakePHPCalls())
62
+        if (!FileHelper::canMakePHPCalls())
63 63
         {
64 64
             return true;
65 65
         }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         // when the validation is successful, the first entry
72 72
         // in the array contains the success message. When it
73 73
         // is invalid, the first entry is always empty.
74
-        if(!empty($output[0])) {
74
+        if (!empty($output[0])) {
75 75
             return true;
76 76
         }
77 77
 
Please login to merge, or discard this patch.
src/FileHelper/FolderInfo.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $pathString = AbstractPathInfo::type2string($path);
32 32
 
33
-        if(!isset(self::$infoCache[$pathString]))
33
+        if (!isset(self::$infoCache[$pathString]))
34 34
         {
35 35
             self::$infoCache[$pathString] = new FolderInfo($pathString);
36 36
         }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         parent::__construct($path);
61 61
 
62
-        if(!self::is_dir($this->path))
62
+        if (!self::is_dir($this->path))
63 63
         {
64 64
             throw new FileHelper_Exception(
65 65
                 'Not a folder',
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
     {
82 82
         $path = trim($path);
83 83
 
84
-        if($path === '' || $path === '.' || $path === '..')
84
+        if ($path === '' || $path === '.' || $path === '..')
85 85
         {
86 86
             return false;
87 87
         }
88 88
 
89
-        if(is_dir($path))
89
+        if (is_dir($path))
90 90
         {
91 91
             return true;
92 92
         }
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function delete() : FolderInfo
106 106
     {
107
-        if(!$this->exists())
107
+        if (!$this->exists())
108 108
         {
109 109
             return $this;
110 110
         }
111 111
 
112
-        if(rmdir($this->path))
112
+        if (rmdir($this->path))
113 113
         {
114 114
             return $this;
115 115
         }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     public function create() : FolderInfo
137 137
     {
138
-        if(is_dir($this->path) || mkdir($this->path, 0777, true) || is_dir($this->path))
138
+        if (is_dir($this->path) || mkdir($this->path, 0777, true) || is_dir($this->path))
139 139
         {
140 140
             return $this;
141 141
         }
@@ -185,12 +185,12 @@  discard block
 block discarded – undo
185 185
         return FileHelper::createFolder($this->getPath().'/'.$name);
186 186
     }
187 187
 
188
-    public function saveFile(string $fileName, string $content='') : FileInfo
188
+    public function saveFile(string $fileName, string $content = '') : FileInfo
189 189
     {
190 190
         return FileHelper::saveFile($this.'/'.$fileName, $content);
191 191
     }
192 192
 
193
-    public function saveJSONFile(array $data, string $fileName, bool $pretty=false) : JSONFile
193
+    public function saveJSONFile(array $data, string $fileName, bool $pretty = false) : JSONFile
194 194
     {
195 195
         return FileHelper::saveAsJSON($data, $this.'/'.$fileName, $pretty);
196 196
     }
Please login to merge, or discard this patch.
src/FileHelper/FileInfo.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function factory($path) : FileInfo
52 52
     {
53
-        if($path instanceof self) {
53
+        if ($path instanceof self) {
54 54
             return $path;
55 55
         }
56 56
 
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
         $pathString = AbstractPathInfo::type2string($path);
68 68
         $key = $pathString.';'.static::class;
69 69
 
70
-        if(!isset(self::$infoCache[$key]))
70
+        if (!isset(self::$infoCache[$key]))
71 71
         {
72 72
             $class = static::class;
73 73
             $instance = new $class($pathString);
74 74
 
75
-            if(!$instance instanceof self) {
75
+            if (!$instance instanceof self) {
76 76
                 throw new FileHelper_Exception(
77 77
                     'Invalid class'
78 78
                 );
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     {
107 107
         parent::__construct($path);
108 108
 
109
-        if(!self::is_file($this->path))
109
+        if (!self::is_file($this->path))
110 110
         {
111 111
             throw new FileHelper_Exception(
112 112
                 'Not a file path',
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     {
121 121
         $path = trim($path);
122 122
 
123
-        if(empty($path))
123
+        if (empty($path))
124 124
         {
125 125
             return false;
126 126
         }
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
         return is_file($path) || pathinfo($path, PATHINFO_EXTENSION) !== '';
129 129
     }
130 130
 
131
-    public function removeExtension(bool $keepPath=false) : string
131
+    public function removeExtension(bool $keepPath = false) : string
132 132
     {
133
-        if(!$keepPath)
133
+        if (!$keepPath)
134 134
         {
135 135
             return (string)pathinfo($this->getName(), PATHINFO_FILENAME);
136 136
         }
@@ -144,11 +144,11 @@  discard block
 block discarded – undo
144 144
         return implode('/', $parts);
145 145
     }
146 146
 
147
-    public function getExtension(bool $lowercase=true) : string
147
+    public function getExtension(bool $lowercase = true) : string
148 148
     {
149 149
         $ext = (string)pathinfo($this->path, PATHINFO_EXTENSION);
150 150
 
151
-        if($lowercase)
151
+        if ($lowercase)
152 152
         {
153 153
             $ext = mb_strtolower($ext);
154 154
         }
@@ -169,12 +169,12 @@  discard block
 block discarded – undo
169 169
      */
170 170
     public function delete() : FileInfo
171 171
     {
172
-        if(!$this->exists())
172
+        if (!$this->exists())
173 173
         {
174 174
             return $this;
175 175
         }
176 176
 
177
-        if(unlink($this->path))
177
+        if (unlink($this->path))
178 178
         {
179 179
             return $this;
180 180
         }
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     {
202 202
         $target = $this->checkCopyPrerequisites($targetPath);
203 203
 
204
-        if(copy($this->path, (string)$target))
204
+        if (copy($this->path, (string)$target))
205 205
         {
206 206
             return $target;
207 207
         }
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
      */
254 254
     public function getLineReader() : LineReader
255 255
     {
256
-        if($this->lineReader === null)
256
+        if ($this->lineReader === null)
257 257
         {
258 258
             $this->lineReader = new LineReader($this);
259 259
         }
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 
273 273
         $result = file_get_contents($this->getPath());
274 274
 
275
-        if($result !== false) {
275
+        if ($result !== false) {
276 276
             return $result;
277 277
         }
278 278
 
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      */
295 295
     public function putContents(string $content) : FileInfo
296 296
     {
297
-        if($this->exists())
297
+        if ($this->exists())
298 298
         {
299 299
             $this->requireWritable();
300 300
         }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
                 ->requireWritable();
306 306
         }
307 307
 
308
-        if(file_put_contents($this->path, $content) !== false)
308
+        if (file_put_contents($this->path, $content) !== false)
309 309
         {
310 310
             return $this;
311 311
         }
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
      */
336 336
     private function createFolder() : FileInfo
337 337
     {
338
-        if(!$this->exists())
338
+        if (!$this->exists())
339 339
         {
340 340
             FolderInfo::factory($this->getFolderPath())
341 341
                 ->create()
Please login to merge, or discard this patch.
src/XMLHelper.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
     public function removeTag(DOMElement $tag) : void
162 162
     {
163
-        if(isset($tag->parentNode))
163
+        if (isset($tag->parentNode))
164 164
         {
165 165
             $tag->parentNode->removeChild($tag);
166 166
         }
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 
247 247
         if (!empty($text)) {
248 248
             $fragment = $this->dom->createDocumentFragment();
249
-            if(!@$fragment->appendXML($text)) {
249
+            if (!@$fragment->appendXML($text)) {
250 250
                 throw new XMLHelper_Exception(
251 251
                     'Cannot append XML fragment',
252 252
                     sprintf(
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
     * @param array<string,mixed> $attributes
289 289
     * @return DOMNode
290 290
     */
291
-    public function createRoot(string $name, array $attributes=array())
291
+    public function createRoot(string $name, array $attributes = array())
292 292
     {
293 293
         $root = $this->dom->appendChild($this->dom->createElement($name));
294 294
         $this->addAttributes($root, $attributes);
@@ -314,8 +314,8 @@  discard block
 block discarded – undo
314 314
         $string = str_replace('&lt;', 'LT_ESCAPE', $string);
315 315
         $string = str_replace('&gt;', 'GT_ESCAPE', $string);
316 316
 
317
-        $string = str_replace('&nbsp;',' ',  $string);
318
-        $string = str_replace('&','&amp;',  $string);
317
+        $string = str_replace('&nbsp;', ' ', $string);
318
+        $string = str_replace('&', '&amp;', $string);
319 319
 
320 320
         return $string;
321 321
     }
@@ -334,9 +334,9 @@  discard block
 block discarded – undo
334 334
     */
335 335
     public static function downloadXML(string $xml, string $filename = 'download.xml') : void
336 336
     {
337
-        if(!headers_sent() && !self::$simulation) 
337
+        if (!headers_sent() && !self::$simulation) 
338 338
         {
339
-            header('Content-Disposition: attachment; filename="' . $filename . '"');
339
+            header('Content-Disposition: attachment; filename="'.$filename.'"');
340 340
         }
341 341
         
342 342
         echo $xml;
@@ -350,12 +350,12 @@  discard block
 block discarded – undo
350 350
     */
351 351
     public static function displayXML(string $xml) : void
352 352
     {
353
-        if(!headers_sent() && !self::$simulation) 
353
+        if (!headers_sent() && !self::$simulation) 
354 354
         {
355 355
             header('Content-Type:text/xml; charset=utf-8');
356 356
         }
357 357
         
358
-        if(self::$simulation) 
358
+        if (self::$simulation) 
359 359
         {
360 360
             $xml = '<pre>'.htmlspecialchars($xml).'</pre>';
361 361
         }
@@ -373,16 +373,16 @@  discard block
 block discarded – undo
373 373
      * @param array<string,string> $customInfo Associative array with name => value pairs for custom tags to add to the output xml
374 374
      * @see buildErrorXML()
375 375
      */
376
-    public static function displayErrorXML($code, string $message, string $title, array $customInfo=array())
376
+    public static function displayErrorXML($code, string $message, string $title, array $customInfo = array())
377 377
     {
378
-        if(!headers_sent() && !self::$simulation) {
379
-            header('HTTP/1.1 400 Bad Request: ' . $title, true, 400);
378
+        if (!headers_sent() && !self::$simulation) {
379
+            header('HTTP/1.1 400 Bad Request: '.$title, true, 400);
380 380
         }
381 381
 
382 382
         self::displayXML(self::buildErrorXML($code, $message, $title, $customInfo));
383 383
     }
384 384
     
385
-    public static function setSimulation(bool $simulate=true) : void
385
+    public static function setSimulation(bool $simulate = true) : void
386 386
     {
387 387
         self::$simulation = $simulate;
388 388
     }
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
     * @param array<string,string> $customInfo
432 432
     * @return string
433 433
     */
434
-    public static function buildErrorXML($code, string $message, string $title, array $customInfo=array())
434
+    public static function buildErrorXML($code, string $message, string $title, array $customInfo = array())
435 435
     {
436 436
         $xml = new DOMDocument('1.0', 'UTF-8');
437 437
         $xml->formatOutput = true;
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
         $helper->addTextTag($root, 'title', $title);
446 446
         $helper->addTextTag($root, 'request_uri', $_SERVER['REQUEST_URI']);
447 447
         
448
-        foreach($customInfo as $name => $value) {
448
+        foreach ($customInfo as $name => $value) {
449 449
             $helper->addTextTag($root, $name, $value);
450 450
         }
451 451
 
Please login to merge, or discard this patch.
src/ConvertHelper/WordSplitter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
         $this->subject = $subject;
28 28
     }
29 29
 
30
-    public function setRemoveDuplicates(bool $remove=true, bool $caseInsensitive=false) : self
30
+    public function setRemoveDuplicates(bool $remove = true, bool $caseInsensitive = false) : self
31 31
     {
32 32
         $this->removeDuplicates = $remove;
33 33
         $this->duplicatesCaseInsensitive = $caseInsensitive;
34 34
         return $this;
35 35
     }
36 36
 
37
-    public function setSorting(bool $sorting=true) : self
37
+    public function setSorting(bool $sorting = true) : self
38 38
     {
39 39
         $this->sorting = $sorting;
40 40
         return $this;
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 
53 53
         $words = $this->filterEmpty($words);
54 54
 
55
-        if($this->removeDuplicates) {
55
+        if ($this->removeDuplicates) {
56 56
             $words = $this->filterDuplicates($words);
57 57
         }
58 58
 
59
-        if($this->sorting) {
59
+        if ($this->sorting) {
60 60
             usort($words, 'strnatcasecmp');
61 61
         }
62 62
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     private function filterDuplicates(array $words) : array
67 67
     {
68
-        if($this->duplicatesCaseInsensitive) {
68
+        if ($this->duplicatesCaseInsensitive) {
69 69
             return $this->filterDuplicatesCaseInsensitive($words);
70 70
         }
71 71
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         return array_intersect_key(
78 78
             $array,
79
-            array_unique( array_map( "strtolower", $array ) )
79
+            array_unique(array_map("strtolower", $array))
80 80
         );
81 81
     }
82 82
 
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $keep = array();
90 90
 
91
-        foreach($words as $word)
91
+        foreach ($words as $word)
92 92
         {
93
-            if(empty($word)) {
93
+            if (empty($word)) {
94 94
                 continue;
95 95
             }
96 96
 
97
-            if(mb_strlen($word) < $this->minWordLength) {
97
+            if (mb_strlen($word) < $this->minWordLength) {
98 98
                 continue;
99 99
             }
100 100
 
Please login to merge, or discard this patch.
src/LipsumHelper/LipsumDetector.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     public function setMinWords(int $min) : self
123 123
     {
124 124
         // Avoid a reset if the value is the same
125
-        if($this->minWords === $min)
125
+        if ($this->minWords === $min)
126 126
         {
127 127
             return $this;
128 128
         }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
     private function detect() : void
144 144
     {
145
-        if($this->detected) {
145
+        if ($this->detected) {
146 146
             return;
147 147
         }
148 148
 
@@ -150,15 +150,15 @@  discard block
 block discarded – undo
150 150
         $this->found = array();
151 151
         $this->count = 0;
152 152
 
153
-        foreach(self::$words as $word)
153
+        foreach (self::$words as $word)
154 154
         {
155
-            if(stripos($this->subject, $word) !== false)
155
+            if (stripos($this->subject, $word) !== false)
156 156
             {
157 157
                 $this->count++;
158 158
                 $this->found[] = $word;
159 159
             }
160 160
 
161
-            if($this->count >= $this->minWords) {
161
+            if ($this->count >= $this->minWords) {
162 162
                 break;
163 163
             }
164 164
         }
Please login to merge, or discard this patch.
src/StyleCollection.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * @param array<string,string|number|NumberInfo|Interface_Stringable|NULL> $styles
35 35
      */
36
-    public function __construct(array $styles=array())
36
+    public function __construct(array $styles = array())
37 37
     {
38 38
         $this->options = new StyleOptions();
39 39
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @param array<string,string|number|NumberInfo|Interface_Stringable|NULL> $styles
45 45
      * @return StyleCollection
46 46
      */
47
-    public static function create(array $styles=array()) : StyleCollection
47
+    public static function create(array $styles = array()) : StyleCollection
48 48
     {
49 49
         return new StyleCollection($styles);
50 50
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $lines = explode(';', $string);
70 70
 
71
-        foreach($lines as $line)
71
+        foreach ($lines as $line)
72 72
         {
73 73
             $parts = explode(':', $line);
74 74
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function setStyles(array $styles) : StyleCollection
91 91
     {
92
-        foreach($styles as $name => $value)
92
+        foreach ($styles as $name => $value)
93 93
         {
94 94
             $this->styleAuto($name, $value);
95 95
         }
@@ -105,14 +105,14 @@  discard block
 block discarded – undo
105 105
      * @param bool $important
106 106
      * @return $this
107 107
      */
108
-    public function style(string $name, string $value, bool $important=false) : StyleCollection
108
+    public function style(string $name, string $value, bool $important = false) : StyleCollection
109 109
     {
110
-        if($value === '')
110
+        if ($value === '')
111 111
         {
112 112
             return $this;
113 113
         }
114 114
 
115
-        if($important && stripos($value, '!important') === false)
115
+        if ($important && stripos($value, '!important') === false)
116 116
         {
117 117
             $value .= ' !important';
118 118
         }
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
      * @param bool $important
131 131
      * @return $this
132 132
      */
133
-    public function styleAuto(string $name, $value, bool $important=false) : StyleCollection
133
+    public function styleAuto(string $name, $value, bool $important = false) : StyleCollection
134 134
     {
135
-        if($value instanceof NumberInfo)
135
+        if ($value instanceof NumberInfo)
136 136
         {
137 137
             return $this->style($name, $value->toCSS(), $important);
138 138
         }
@@ -140,22 +140,22 @@  discard block
 block discarded – undo
140 140
         return $this->style($name, (string)$value, $important);
141 141
     }
142 142
 
143
-    public function stylePX(string $name, int $px, bool $important=false) : StyleCollection
143
+    public function stylePX(string $name, int $px, bool $important = false) : StyleCollection
144 144
     {
145 145
         return $this->style($name, $px.'px', $important);
146 146
     }
147 147
 
148
-    public function stylePercent(string $name, float $percent, bool $important=false) : StyleCollection
148
+    public function stylePercent(string $name, float $percent, bool $important = false) : StyleCollection
149 149
     {
150 150
         return $this->style($name, $percent.'%', $important);
151 151
     }
152 152
 
153
-    public function styleEM(string $name, float $em, bool $important=false) : StyleCollection
153
+    public function styleEM(string $name, float $em, bool $important = false) : StyleCollection
154 154
     {
155 155
         return $this->style($name, $em.'em', $important);
156 156
     }
157 157
 
158
-    public function styleREM(string $name, float $em, bool $important=false) : StyleCollection
158
+    public function styleREM(string $name, float $em, bool $important = false) : StyleCollection
159 159
     {
160 160
         return $this->style($name, $em.'rem', $important);
161 161
     }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * @param bool $important
170 170
      * @return $this
171 171
      */
172
-    public function styleParseNumber(string $name, $value, bool $important=false) : StyleCollection
172
+    public function styleParseNumber(string $name, $value, bool $important = false) : StyleCollection
173 173
     {
174 174
         return $this->styleNumber($name, parseNumber($value), $important);
175 175
     }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      * @param bool $important
183 183
      * @return $this
184 184
      */
185
-    public function styleNumber(string $name, NumberInfo $info, bool $important=false) : StyleCollection
185
+    public function styleNumber(string $name, NumberInfo $info, bool $important = false) : StyleCollection
186 186
     {
187 187
         $this->style($name, $info->toCSS(), $important);
188 188
         return $this;
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 
191 191
     public function remove(string $name) : StyleCollection
192 192
     {
193
-        if(isset($this->styles[$name]))
193
+        if (isset($this->styles[$name]))
194 194
         {
195 195
             unset($this->styles[$name]);
196 196
         }
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     {
227 227
         $all = self::create();
228 228
 
229
-        foreach($collections as $collection)
229
+        foreach ($collections as $collection)
230 230
         {
231 231
             $all->mergeWith($collection);
232 232
         }
Please login to merge, or discard this patch.