Passed
Push — master ( 4a007e...893165 )
by Sergey
02:19
created
Filesystem.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     {
122 122
         $result = [];
123 123
 
124
-        if (! is_dir($directory)) {
124
+        if (!is_dir($directory)) {
125 125
             return [];
126 126
         }
127 127
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      */
260 260
     public static function deleteDir(string $dirname) : bool
261 261
     {
262
-        if (! is_dir($dirname)) {
262
+        if (!is_dir($dirname)) {
263 263
             return false;
264 264
         }
265 265
 
@@ -271,10 +271,10 @@  discard block
 block discarded – undo
271 271
                     continue;
272 272
                 }
273 273
 
274
-                if (filetype($dirname . '/' . $o) === 'dir') {
275
-                    self::deleteDir($dirname . '/' . $o);
274
+                if (filetype($dirname.'/'.$o) === 'dir') {
275
+                    self::deleteDir($dirname.'/'.$o);
276 276
                 } else {
277
-                    unlink($dirname . '/' . $o);
277
+                    unlink($dirname.'/'.$o);
278 278
                 }
279 279
             }
280 280
         }
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
     {
298 298
         $umask = umask(0);
299 299
 
300
-        if (! is_dir($dirname) && ! mkdir($dirname, self::$permissions['dir'][$visibility], true)) {
300
+        if (!is_dir($dirname) && !mkdir($dirname, self::$permissions['dir'][$visibility], true)) {
301 301
             return false;
302 302
         }
303 303
 
@@ -317,11 +317,11 @@  discard block
 block discarded – undo
317 317
      */
318 318
     public static function copy(string $path, string $newpath, bool $recursive = false) : bool
319 319
     {
320
-        if (! $recursive) {
320
+        if (!$recursive) {
321 321
             return copy($path, $newpath);
322 322
         }
323 323
 
324
-        if (! self::has($newpath)) {
324
+        if (!self::has($newpath)) {
325 325
             mkdir($newpath);
326 326
         }
327 327
 
@@ -337,9 +337,9 @@  discard block
 block discarded – undo
337 337
             $_path = str_replace($path, '', $splFileinfo->getPathname());
338 338
 
339 339
             if ($splFileinfo->isDir()) {
340
-                mkdir($newpath . '/' . $_path);
340
+                mkdir($newpath.'/'.$_path);
341 341
             } else {
342
-                copy($fullPath, $newpath . '/' . $_path);
342
+                copy($fullPath, $newpath.'/'.$_path);
343 343
             }
344 344
         }
345 345
     }
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
         if ($normalized['type'] === 'file') {
430 430
             $normalized['size']      = $file->getSize();
431 431
             $normalized['filename']  = $file->getFilename();
432
-            $normalized['basename']  = $file->getBasename('.' . $file->getExtension());
432
+            $normalized['basename']  = $file->getBasename('.'.$file->getExtension());
433 433
             $normalized['extension'] = $file->getExtension();
434 434
         }
435 435
 
Please login to merge, or discard this patch.