From e3b35fcf28fb845c46983faa82c512f921089bc3 Mon Sep 17 00:00:00 2001 From: Pierre du Plessis Date: Mon, 15 May 2023 22:57:05 +0200 Subject: [PATCH] Fix CS and PHPStan errors --- src/ClientBundle/Action/Grid/Delete.php | 1 - src/ClientBundle/Repository/ClientRepository.php | 4 ++-- src/InstallBundle/Action/Install.php | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ClientBundle/Action/Grid/Delete.php b/src/ClientBundle/Action/Grid/Delete.php index ae05d9f63..912f0128d 100644 --- a/src/ClientBundle/Action/Grid/Delete.php +++ b/src/ClientBundle/Action/Grid/Delete.php @@ -13,7 +13,6 @@ namespace SolidInvoice\ClientBundle\Action\Grid; -use Ramsey\Uuid\UuidInterface; use SolidInvoice\ClientBundle\Repository\ClientRepository; use SolidInvoice\CoreBundle\Response\AjaxResponse; use SolidInvoice\CoreBundle\Traits\JsonTrait; diff --git a/src/ClientBundle/Repository/ClientRepository.php b/src/ClientBundle/Repository/ClientRepository.php index 0f94c4ed7..b3d056563 100644 --- a/src/ClientBundle/Repository/ClientRepository.php +++ b/src/ClientBundle/Repository/ClientRepository.php @@ -120,7 +120,7 @@ public function archiveClients(array $ids): void foreach ($ids as $id) { $client = $this->find($id); - if (!$client instanceof Client) { + if (! $client instanceof Client) { continue; } @@ -146,7 +146,7 @@ public function restoreClients(array $ids): void foreach ($ids as $id) { $client = $this->find($id); - if (!$client instanceof Client) { + if (! $client instanceof Client) { continue; } diff --git a/src/InstallBundle/Action/Install.php b/src/InstallBundle/Action/Install.php index 695e39521..06fcde4e0 100644 --- a/src/InstallBundle/Action/Install.php +++ b/src/InstallBundle/Action/Install.php @@ -25,6 +25,9 @@ final class Install { + /** + * @return JsonResponse|Template + */ public function __invoke(Request $request, ManagerRegistry $doctrine, Migration $migration) { if ($request->request->has('action')) {