Passed
Push — dev ( 863855...4ef148 )
by Dispositif
02:53
created
src/Domain/Models/Wiki/ArticleTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     {
112 112
         // Style "auto1234"
113 113
         if (empty($this->getParam('périodique') || empty($this->getParam('date')))) {
114
-            return 'auto'.(string)rand(1000, 9999);
114
+            return 'auto'.(string) rand(1000, 9999);
115 115
         }
116 116
         // Style "LeMonde15022017"
117 117
         $periodique = str_replace(
Please login to merge, or discard this patch.
src/Domain/Publisher/LiberationMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     public function process($data): array
24 24
     {
25
-        if(!isset($data['JSON-LD'])) {
25
+        if (!isset($data['JSON-LD'])) {
26 26
             return [];
27 27
         }
28 28
         $data = $data['JSON-LD'];
Please login to merge, or discard this patch.
src/Domain/Publisher/LeMondeMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 {
22 22
     public function process($data): array
23 23
     {
24
-        if(!isset($data['JSON-LD'])) {
24
+        if (!isset($data['JSON-LD'])) {
25 25
             return [];
26 26
         }
27 27
         $ld = $data['JSON-LD'];
Please login to merge, or discard this patch.
src/Domain/Utils/TemplateParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
             /**
53 53
              * @var AbstractWikiTemplate
54 54
              */
55
-            try{
55
+            try {
56 56
                 $tplObject = WikiTemplateFactory::create($tplName);
57
-            }catch (\Throwable $e){
57
+            } catch (\Throwable $e) {
58 58
                 unset($e);
59 59
                 continue;
60 60
             }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         ) {
190 190
             array_walk(
191 191
                 $matches,
192
-                function (&$value) {
192
+                function(&$value) {
193 193
                     $value = str_replace(['CURLYBRACKETO', 'CURLYBRACKETC'], ['{', '}'], $value);
194 194
                 }
195 195
             );
Please login to merge, or discard this patch.
src/Application/EditProcess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,13 +69,13 @@
 block discarded – undo
69 69
     private $dataAnalysis;
70 70
 
71 71
     public function __construct(DbAdapter $dbAdapter, Bot $bot, Memory $memory, RefGoogleBook $refGoogleBook,
72
-        ?DataAnalysis $dataAnalysis=null)
72
+        ?DataAnalysis $dataAnalysis = null)
73 73
     {
74 74
         $this->db = $dbAdapter;
75 75
         $this->bot = $bot;
76 76
         $this->memory = $memory;
77 77
         $this->refGooConverter = $refGoogleBook;
78
-        if($dataAnalysis) {
78
+        if ($dataAnalysis) {
79 79
             $this->dataAnalysis = $dataAnalysis;
80 80
         }
81 81
 
Please login to merge, or discard this patch.
src/Domain/Models/Wiki/AbstractWikiTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         } catch (Throwable $e) {
215 215
             unset($e);
216 216
             // hack : 1 => "ouvrage collectif"
217
-            $name = (string)$name;
217
+            $name = (string) $name;
218 218
             $this->log[] = "parameter $name not found";
219 219
             $this->parametersErrorFromHydrate[$name] = $value;
220 220
 
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     {
274 274
         // todo verify/useless ?
275 275
         if (is_int($name)) {
276
-            $name = (string)$name;
276
+            $name = (string) $name;
277 277
         }
278 278
 
279 279
         // that parameter exists in template ?
Please login to merge, or discard this patch.
src/Infrastructure/GoogleApiQuota.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     {
53 53
         $data = $this->getFileData();
54 54
         $this->lastDate = new DateTime($data['date'], new DateTimeZone(static::REBOOT_TIMEZONE));
55
-        $this->count = (int)$data['count'];
55
+        $this->count = (int) $data['count'];
56 56
 
57 57
         // Today reboot date/time of the quota
58 58
         $todayBoot = new DateTime();
Please login to merge, or discard this patch.
src/Application/Ref2ArticleProcess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             if (!$articleOrLienBrise instanceof ArticleOrLienBriseInterface) {
50 50
                 continue;
51 51
             }
52
-            if($articleOrLienBrise instanceof LienBriseTemplate){
52
+            if ($articleOrLienBrise instanceof LienBriseTemplate) {
53 53
                 $this->warning = true;
54 54
             }
55 55
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function hasWarning():bool
64 64
     {
65
-        return (bool)$this->warning;
65
+        return (bool) $this->warning;
66 66
     }
67 67
 
68 68
     private function replaceRefInText(array $ref, string $replace, string $text)
Please login to merge, or discard this patch.
src/Application/Examples/ref2articleWorker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     // Signalement erreur
45 45
     $botFlag = true;
46 46
     $taskName = "bot # Amélioration bibliographique : URL ⇒ {Article}";
47
-    if($converter->hasWarning()){
47
+    if ($converter->hasWarning()) {
48 48
         $taskName = '⚠ Amélioration bibliographique : lien brisé !';
49 49
         $botFlag = false;
50 50
     }
Please login to merge, or discard this patch.