@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $io = new SymfonyStyle($input, $output); |
| 47 | 47 | |
| 48 | 48 | $mediaPath = $this->attachment_helper->getMediaPath(); |
| 49 | - $io->note("The media path is " . $mediaPath); |
|
| 49 | + $io->note("The media path is ".$mediaPath); |
|
| 50 | 50 | |
| 51 | 51 | $finder = new Finder(); |
| 52 | 52 | //We look for files in the media folder only |
@@ -103,8 +103,8 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | protected function removeEmptySubFolders($path) |
| 105 | 105 | { |
| 106 | - $empty=true; |
|
| 107 | - foreach (glob($path . DIRECTORY_SEPARATOR . "*") as $file) |
|
| 106 | + $empty = true; |
|
| 107 | + foreach (glob($path.DIRECTORY_SEPARATOR."*") as $file) |
|
| 108 | 108 | { |
| 109 | 109 | $empty &= is_dir($file) && $this->removeEmptySubFolders($file); |
| 110 | 110 | } |