@@ -6,12 +6,10 @@ |
||
| 6 | 6 | |
| 7 | 7 | namespace Graviton\ImportExport\Command; |
| 8 | 8 | |
| 9 | -use Graviton\ImportExport\Exception\MissingTargetException; |
|
| 10 | 9 | use Symfony\Component\Console\Command\Command; |
| 11 | 10 | use Symfony\Component\Console\Helper\ProgressBar; |
| 12 | 11 | use Symfony\Component\Console\Input\InputArgument; |
| 13 | 12 | use Symfony\Component\Console\Input\InputInterface; |
| 14 | -use Symfony\Component\Console\Input\InputOption; |
|
| 15 | 13 | use Symfony\Component\Console\Output\OutputInterface; |
| 16 | 14 | use Symfony\Component\Finder\Finder; |
| 17 | 15 | use Symfony\Component\Finder\SplFileInfo; |
@@ -84,15 +84,15 @@ |
||
| 84 | 84 | protected function execute(InputInterface $input, OutputInterface $output) |
| 85 | 85 | { |
| 86 | 86 | $files = $input->getArgument('file'); |
| 87 | - $finder = new Finder(); |
|
| 87 | + $finder = new Finder(); |
|
| 88 | 88 | $finder = $finder->files(); |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * @param SplFileInfo $file |
| 92 | 92 | * @return bool |
| 93 | 93 | */ |
| 94 | - $filter = function (SplFileInfo $file) { |
|
| 95 | - if (!in_array($file->getExtension(), ['yml','json']) || $file->isDir()) { |
|
| 94 | + $filter = function(SplFileInfo $file) { |
|
| 95 | + if (!in_array($file->getExtension(), ['yml', 'json']) || $file->isDir()) { |
|
| 96 | 96 | return false; |
| 97 | 97 | } |
| 98 | 98 | return true; |