Skip to content

Commit

Permalink
fix phpstan #3322
Browse files Browse the repository at this point in the history
  • Loading branch information
emilschn committed Nov 28, 2024
1 parent 93bee4c commit 1c2f1cb
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/Command/InitIdBanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Command;

use App\Entity\Signalement;
use App\Repository\SignalementRepository;
use App\Repository\TerritoryRepository;
use App\Service\DataGouv\AddressService;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
Expand All @@ -12,11 +12,6 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;

#[AsCommand(
name: 'app:init-id-ban',
Expand All @@ -28,21 +23,13 @@ class InitIdBanCommand extends Command
private const int BATCH_SIZE = 20;

public function __construct(
private readonly HttpClientInterface $httpClient,
private readonly AddressService $addressService,
private readonly SignalementRepository $signalementRepository,
private readonly TerritoryRepository $territoryRepository,
private readonly EntityManagerInterface $entityManager,
) {
parent::__construct();
}

/**
* @throws RedirectionExceptionInterface
* @throws ClientExceptionInterface
* @throws TransportExceptionInterface
* @throws ServerExceptionInterface
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
Expand Down

0 comments on commit 1c2f1cb

Please sign in to comment.