@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | $io = new SymfonyStyle($input, $output); |
50 | 50 | |
51 | 51 | $mediaPath = $this->pathResolver->getMediaPath(); |
52 | - $io->note("The media path is " . $mediaPath); |
|
52 | + $io->note("The media path is ".$mediaPath); |
|
53 | 53 | $securePath = $this->pathResolver->getSecurePath(); |
54 | - $io->note("The secure media path is ". $securePath); |
|
54 | + $io->note("The secure media path is ".$securePath); |
|
55 | 55 | |
56 | 56 | $finder = new Finder(); |
57 | 57 | //We look for files in the media folder only |
@@ -110,8 +110,8 @@ discard block |
||
110 | 110 | */ |
111 | 111 | protected function removeEmptySubFolders($path) |
112 | 112 | { |
113 | - $empty=true; |
|
114 | - foreach (glob($path . DIRECTORY_SEPARATOR . "*") as $file) |
|
113 | + $empty = true; |
|
114 | + foreach (glob($path.DIRECTORY_SEPARATOR."*") as $file) |
|
115 | 115 | { |
116 | 116 | $empty &= is_dir($file) && $this->removeEmptySubFolders($file); |
117 | 117 | } |