@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | $result = []; |
113 | 113 | |
114 | - if ( ! is_dir($directory)) { |
|
114 | + if (!is_dir($directory)) { |
|
115 | 115 | return []; |
116 | 116 | } |
117 | 117 | |
@@ -322,9 +322,9 @@ discard block |
||
322 | 322 | $_path = str_replace($path, "", $splFileinfo->getPathname()); |
323 | 323 | |
324 | 324 | if ($splFileinfo->isDir()) { |
325 | - mkdir($newpath . "/" . $_path); |
|
325 | + mkdir($newpath."/".$_path); |
|
326 | 326 | } else { |
327 | - copy($fullPath, $newpath . "/" . $_path); |
|
327 | + copy($fullPath, $newpath."/".$_path); |
|
328 | 328 | } |
329 | 329 | } |
330 | 330 | } else { |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | if ($normalized['type'] === 'file') { |
420 | 420 | $normalized['size'] = $file->getSize(); |
421 | 421 | $normalized['filename'] = $file->getFilename(); |
422 | - $normalized['basename'] = $file->getBasename('.' . $file->getExtension()); |
|
422 | + $normalized['basename'] = $file->getBasename('.'.$file->getExtension()); |
|
423 | 423 | $normalized['extension'] = $file->getExtension(); |
424 | 424 | } |
425 | 425 |