diff --git a/src/Command/ImportHeidelbergCommand.php b/src/Command/ImportHeidelbergCommand.php index c9a5216..9f9e320 100644 --- a/src/Command/ImportHeidelbergCommand.php +++ b/src/Command/ImportHeidelbergCommand.php @@ -5,9 +5,9 @@ namespace App\Command; use App\Entity\Reference; use Doctrine\ORM\EntityManagerInterface; -use Pdo\Sqlite; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; +use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; @@ -80,7 +80,7 @@ class ImportHeidelbergCommand extends Command { $files = glob($this->dir . "/*.md"); - if (!$this->files || count($this->files) === 0) { + if (!$files || count($files) === 0) { $this->io->warning("No files found in this directory\n{$this->dir}"); $files = []; }