Passed
Push — master ( 893165...fc69ee )
by Sergey
02:08
created
Filesystem.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     {
134 134
         $result = [];
135 135
 
136
-        if (! is_dir($directory)) {
136
+        if (!is_dir($directory)) {
137 137
             return [];
138 138
         }
139 139
 
@@ -161,13 +161,13 @@  discard block
 block discarded – undo
161 161
      */
162 162
     public static function getDirTimestamp(string $directory) : int
163 163
     {
164
-        $_directory  = new RecursiveDirectoryIterator(
164
+        $_directory = new RecursiveDirectoryIterator(
165 165
             $directory,
166 166
             FilesystemIterator::KEY_AS_PATHNAME |
167 167
             FilesystemIterator::CURRENT_AS_FILEINFO |
168 168
             FilesystemIterator::SKIP_DOTS
169 169
         );
170
-        $_iterator   = new RecursiveIteratorIterator(
170
+        $_iterator = new RecursiveIteratorIterator(
171 171
             $_directory,
172 172
             RecursiveIteratorIterator::SELF_FIRST
173 173
         );
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      */
303 303
     public static function deleteDir(string $dirname) : bool
304 304
     {
305
-        if (! is_dir($dirname)) {
305
+        if (!is_dir($dirname)) {
306 306
             return false;
307 307
         }
308 308
 
@@ -314,10 +314,10 @@  discard block
 block discarded – undo
314 314
                     continue;
315 315
                 }
316 316
 
317
-                if (filetype($dirname . '/' . $o) === 'dir') {
318
-                    self::deleteDir($dirname . '/' . $o);
317
+                if (filetype($dirname.'/'.$o) === 'dir') {
318
+                    self::deleteDir($dirname.'/'.$o);
319 319
                 } else {
320
-                    unlink($dirname . '/' . $o);
320
+                    unlink($dirname.'/'.$o);
321 321
                 }
322 322
             }
323 323
         }
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
     {
341 341
         $umask = umask(0);
342 342
 
343
-        if (! is_dir($dirname) && ! mkdir($dirname, self::$permissions['dir'][$visibility], true)) {
343
+        if (!is_dir($dirname) && !mkdir($dirname, self::$permissions['dir'][$visibility], true)) {
344 344
             return false;
345 345
         }
346 346
 
@@ -360,11 +360,11 @@  discard block
 block discarded – undo
360 360
      */
361 361
     public static function copy(string $path, string $newpath, bool $recursive = false) : bool
362 362
     {
363
-        if (! $recursive) {
363
+        if (!$recursive) {
364 364
             return copy($path, $newpath);
365 365
         }
366 366
 
367
-        if (! self::has($newpath)) {
367
+        if (!self::has($newpath)) {
368 368
             mkdir($newpath);
369 369
         }
370 370
 
@@ -380,9 +380,9 @@  discard block
 block discarded – undo
380 380
             $_path = str_replace($path, '', $splFileinfo->getPathname());
381 381
 
382 382
             if ($splFileinfo->isDir()) {
383
-                mkdir($newpath . '/' . $_path);
383
+                mkdir($newpath.'/'.$_path);
384 384
             } else {
385
-                copy($fullPath, $newpath . '/' . $_path);
385
+                copy($fullPath, $newpath.'/'.$_path);
386 386
             }
387 387
         }
388 388
     }
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
         if ($normalized['type'] === 'file') {
473 473
             $normalized['size']      = $file->getSize();
474 474
             $normalized['filename']  = $file->getFilename();
475
-            $normalized['basename']  = $file->getBasename('.' . $file->getExtension());
475
+            $normalized['basename']  = $file->getBasename('.'.$file->getExtension());
476 476
             $normalized['extension'] = $file->getExtension();
477 477
         }
478 478
 
Please login to merge, or discard this patch.