Olivier Massot 1 anno fa
parent
commit
57654cdad9
4 ha cambiato i file con 5 aggiunte e 26 eliminazioni
  1. 2 0
      .gitignore
  2. 1 0
      .gitlab-ci.yml
  3. 0 24
      phpstan.json
  4. 2 2
      src/Service/Export/LicenceCmfExporter.php

+ 2 - 0
.gitignore

@@ -60,3 +60,5 @@ phpstan.neon
 /.php-cs-fixer.php
 /.php-cs-fixer.cache
 ###< friendsofphp/php-cs-fixer ###
+
+phpstan.json

+ 1 - 0
.gitlab-ci.yml

@@ -17,6 +17,7 @@ before_script:
 static_analysis:
   script:
     - php vendor/bin/phpstan analyse -c phpstan.neon.dist --error-format gitlab > phpstan.json  # Display code quality in MR
+    - php vendor/bin/phpstan analyse -c phpstan.neon.dist
   artifacts:
     when: always
     reports:

+ 0 - 24
phpstan.json

@@ -1,24 +0,0 @@
-[
-    {
-        "description": "PHPDoc tag @param references unknown parameter: $price_min",
-        "fingerprint": "a01fcf3b22321902df6137f7c06fa593d7b805397a90357e55ea87d53b3fbb02",
-        "severity": "major",
-        "location": {
-            "path": "src/Entity/Public/PublicEvent.php",
-            "lines": {
-                "begin": 523
-            }
-        }
-    },
-    {
-        "description": "PHPDoc tag @param references unknown parameter: $price_max",
-        "fingerprint": "16c23a8222383c8eab1118fa7cd936e1b023cc8af2118927cf67f7fc72e7e4a1",
-        "severity": "major",
-        "location": {
-            "path": "src/Entity/Public/PublicEvent.php",
-            "lines": {
-                "begin": 541
-            }
-        }
-    }
-]

+ 2 - 2
src/Service/Export/LicenceCmfExporter.php

@@ -26,11 +26,11 @@ class LicenceCmfExporter extends BaseExporter implements ExporterInterface
     public const LICENCE_CMF_COLOR = [0 => '931572', 1 => 'C2981A', 2 => '003882', 3 => '27AAE1', 4 => '2BB673'];
 
     public function __construct(
-        private OrganizationRepository $organizationRepository
+        private readonly OrganizationRepository $organizationRepository
     ) {
     }
 
-    public function support($exportRequest): bool
+    public function support(ExportRequest $exportRequest): bool
     {
         return $exportRequest instanceof LicenceCmfOrganizationER;
     }