From 0e46e87e358976c7d890c5bdf8d8aa01f456a5b0 Mon Sep 17 00:00:00 2001
From: Jonathan Foucher <jfoucher@gmail.com>
Date: Mon, 15 Jan 2024 16:03:33 +0100
Subject: [PATCH] cs fix

---
 features/bootstrap/FeatureContext.php                  | 2 +-
 features/bootstrap/bootstrap.php                       | 2 +-
 src/Domain/Notification/Event/LateActionEvent.php      | 4 ----
 src/Domain/Notification/Event/LateRequestEvent.php     | 4 ----
 src/Domain/Notification/Event/LateSurveyEvent.php      | 4 ----
 src/Domain/Notification/Event/NoLoginEvent.php         | 4 ----
 src/Domain/Registry/Form/Type/ToolType.php             | 4 ++--
 src/Domain/User/Model/User.php                         | 4 ----
 src/Infrastructure/ORM/Registry/Repository/Proof.php   | 2 +-
 src/Infrastructure/ORM/Registry/Repository/Request.php | 2 +-
 10 files changed, 6 insertions(+), 26 deletions(-)

diff --git a/features/bootstrap/FeatureContext.php b/features/bootstrap/FeatureContext.php
index 7822d4f05..7f7909e3b 100644
--- a/features/bootstrap/FeatureContext.php
+++ b/features/bootstrap/FeatureContext.php
@@ -42,7 +42,7 @@ class FeatureContext implements Context
     public function theResponseShouldBeReceived()
     {
         if (null === $this->response) {
-            throw new \RuntimeException('No response received');
+            throw new RuntimeException('No response received');
         }
     }
 }
diff --git a/features/bootstrap/bootstrap.php b/features/bootstrap/bootstrap.php
index a5d686144..0c92af730 100644
--- a/features/bootstrap/bootstrap.php
+++ b/features/bootstrap/bootstrap.php
@@ -5,7 +5,7 @@ use Symfony\Component\Dotenv\Dotenv;
 // The check is to ensure we don't use .env in production
 if (!isset($_SERVER['APP_ENV'])) {
     if (!class_exists(Dotenv::class)) {
-        throw new \RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file.');
+        throw new RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file.');
     }
     (new Dotenv())->load(__DIR__ . '/../../.env');
 }
diff --git a/src/Domain/Notification/Event/LateActionEvent.php b/src/Domain/Notification/Event/LateActionEvent.php
index 961af6161..98d02f333 100644
--- a/src/Domain/Notification/Event/LateActionEvent.php
+++ b/src/Domain/Notification/Event/LateActionEvent.php
@@ -7,10 +7,6 @@ use Symfony\Contracts\EventDispatcher\Event;
 
 class LateActionEvent extends Event
 {
-    /**
-     * @var Mesurement
-     *                 The object that generated the notification
-     */
     protected Mesurement $mesurement;
 
     public function __construct(Mesurement $mesurement)
diff --git a/src/Domain/Notification/Event/LateRequestEvent.php b/src/Domain/Notification/Event/LateRequestEvent.php
index eb95fd7da..3bd75cdb0 100644
--- a/src/Domain/Notification/Event/LateRequestEvent.php
+++ b/src/Domain/Notification/Event/LateRequestEvent.php
@@ -7,10 +7,6 @@ use Symfony\Contracts\EventDispatcher\Event;
 
 class LateRequestEvent extends Event
 {
-    /**
-     * @var Request
-     *              The object that generated the notification
-     */
     protected Request $request;
 
     public function __construct(Request $request)
diff --git a/src/Domain/Notification/Event/LateSurveyEvent.php b/src/Domain/Notification/Event/LateSurveyEvent.php
index 0e99fa079..53441bd40 100644
--- a/src/Domain/Notification/Event/LateSurveyEvent.php
+++ b/src/Domain/Notification/Event/LateSurveyEvent.php
@@ -7,10 +7,6 @@ use Symfony\Contracts\EventDispatcher\Event;
 
 class LateSurveyEvent extends Event
 {
-    /**
-     * @var Survey
-     *             The object that generated the notification
-     */
     protected Survey $survey;
 
     public function __construct(Survey $survey)
diff --git a/src/Domain/Notification/Event/NoLoginEvent.php b/src/Domain/Notification/Event/NoLoginEvent.php
index b45528cad..430ab2b41 100644
--- a/src/Domain/Notification/Event/NoLoginEvent.php
+++ b/src/Domain/Notification/Event/NoLoginEvent.php
@@ -7,10 +7,6 @@ use Symfony\Contracts\EventDispatcher\Event;
 
 class NoLoginEvent extends Event
 {
-    /**
-     * @var User
-     *           The object that generated the notification
-     */
     protected User $user;
 
     public function __construct(User $user)
diff --git a/src/Domain/Registry/Form/Type/ToolType.php b/src/Domain/Registry/Form/Type/ToolType.php
index 5b49a88a1..920a3df57 100644
--- a/src/Domain/Registry/Form/Type/ToolType.php
+++ b/src/Domain/Registry/Form/Type/ToolType.php
@@ -139,8 +139,8 @@ class ToolType extends AbstractType
                         if (count($authenticatedUser->getServices()) > 0) {
                             /** @var Service $service */
                             foreach ($authenticatedUser->getServices() as $i => $service) {
-                                $ors->add($qb->expr()->eq('c.service', ':service'.$i));
-                                $qb->setParameter(':service'.$i, $service);
+                                $ors->add($qb->expr()->eq('c.service', ':service' . $i));
+                                $qb->setParameter(':service' . $i, $service);
                             }
                             $qb->andWhere($ors);
                         }
diff --git a/src/Domain/User/Model/User.php b/src/Domain/User/Model/User.php
index a69e57055..ebc60fb5d 100644
--- a/src/Domain/User/Model/User.php
+++ b/src/Domain/User/Model/User.php
@@ -138,10 +138,6 @@ class User implements LoggableSubject, UserInterface, CollectivityRelated, Passw
      */
     private $ssoKey;
 
-    /**
-     * @var bool|null
-     *                Whther this user's actions do not generate notifications
-     */
     private ?bool $notGeneratesNotifications;
 
     /**
diff --git a/src/Infrastructure/ORM/Registry/Repository/Proof.php b/src/Infrastructure/ORM/Registry/Repository/Proof.php
index 826d62c3d..0cc411711 100644
--- a/src/Infrastructure/ORM/Registry/Repository/Proof.php
+++ b/src/Infrastructure/ORM/Registry/Repository/Proof.php
@@ -74,7 +74,7 @@ class Proof implements Repository\Proof
      *
      * @throws \Exception
      *
-     * @return \Doctrine\ORM\QueryBuilder
+     * @return QueryBuilder
      */
     protected function createQueryBuilder()
     {
diff --git a/src/Infrastructure/ORM/Registry/Repository/Request.php b/src/Infrastructure/ORM/Registry/Repository/Request.php
index bd5f4f500..0406db92d 100644
--- a/src/Infrastructure/ORM/Registry/Repository/Request.php
+++ b/src/Infrastructure/ORM/Registry/Repository/Request.php
@@ -78,7 +78,7 @@ class Request implements Repository\Request
      *
      * @throws \Exception
      *
-     * @return \Doctrine\ORM\QueryBuilder
+     * @return QueryBuilder
      */
     protected function createQueryBuilder()
     {
-- 
GitLab