Passed
Branch master (63074b)
by Dispositif
05:34 queued 02:37
created
src/Domain/Utils/TemplateParserTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             ['{{Ouvrage
54 54
   | langue=fr
55 55
 }}',
56
-             "\n | ",
56
+                "\n | ",
57 57
             ],
58 58
         ];
59 59
     }
Please login to merge, or discard this patch.
src/Infrastructure/BnfAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         }
77 77
 
78 78
         // note : multi-records filtered in BnFMapper
79
-        $nbResults = (int)$xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0;
79
+        $nbResults = (int) $xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0;
80 80
         if (0 === $nbResults) {
81 81
             return null;
82 82
         }
Please login to merge, or discard this patch.
src/Domain/ImportOuvrageFromApi.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,14 +60,14 @@
 block discarded – undo
60 60
          */
61 61
         $data = $this->mapping($volume);
62 62
 
63
-        if(isset($data['infos'])) {
63
+        if (isset($data['infos'])) {
64 64
             $infos = $data['infos'];
65 65
             unset($data['infos']);
66 66
         }
67 67
 
68 68
         try {
69 69
             $this->ouvrage->hydrate($data);
70
-            if(isset($infos)) {
70
+            if (isset($infos)) {
71 71
                 $this->ouvrage->setInfos($infos);
72 72
             }
73 73
         } catch (Throwable $e) {
Please login to merge, or discard this patch.
src/Application/RefBotWorker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
     public function hasWarning(): bool
25 25
     {
26
-        return (bool)$this->warning;
26
+        return (bool) $this->warning;
27 27
     }
28 28
 
29 29
     /**
Please login to merge, or discard this patch.
src/Infrastructure/WstatImport.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
             $data[] = ['title' => $title, 'template' => $template];
112 112
         }
113 113
 
114
-        return (array)$data;
114
+        return (array) $data;
115 115
     }
116 116
 
117 117
     /**
Please login to merge, or discard this patch.
src/Infrastructure/WikidataAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             $res = $this->searchByISNI($infos['ISNIAuteur1']);
42 42
         }
43 43
         if (isset($infos['isbn'])) {
44
-            if(!empty($res)) {
44
+            if (!empty($res)) {
45 45
                 sleep(2);
46 46
             }
47 47
             $res = array_merge($res ?? [], $this->findArticleByISBN13($infos['isbn']));
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
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $result[$tplName][$inc] += ['model' => $tplObject];
70 70
         }
71 71
 
72
-        return (array)$result;
72
+        return (array) $result;
73 73
     }
74 74
 
75 75
     /**
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         ) {
189 189
             array_walk(
190 190
                 $matches,
191
-                function (&$value) {
191
+                function(&$value) {
192 192
                     $value = str_replace(['CURLYBRACKETO', 'CURLYBRACKETC'], ['{', '}'], $value);
193 193
                 }
194 194
             );
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             }
249 249
             // No param name => take $keyNum as param name
250 250
             if (false === $pos) {
251
-                $param = (string)$keyNum;
251
+                $param = (string) $keyNum;
252 252
                 $value = $line;
253 253
                 ++$keyNum;
254 254
             }
Please login to merge, or discard this patch.
src/Application/AbstractQueueWorker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         $channel->basic_qos(null, 1, null);
37 37
         // callback to $this->msgProcess().
38 38
         // TODO check Rector refac
39
-        $channel->basic_consume(static::QUEUE_NAME, '', false, false, false, false, function (\PhpAmqpLib\Message\AMQPMessage $msg) : void {
39
+        $channel->basic_consume(static::QUEUE_NAME, '', false, false, false, false, function(\PhpAmqpLib\Message\AMQPMessage $msg) : void {
40 40
             $this->msgProcess($msg);
41 41
         });
42 42
 
Please login to merge, or discard this patch.
src/Infrastructure/GoogleApiQuota.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $data = $this->getFileData();
56 56
         $this->lastDate = new DateTime($data['date'], new DateTimeZone(static::REBOOT_TIMEZONE));
57
-        $this->count = (int)$data['count'];
57
+        $this->count = (int) $data['count'];
58 58
 
59 59
         // Today reboot date/time of the quota
60 60
         $todayBoot = new DateTime();
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
         try {
78 78
             $json = file_get_contents(static::JSON_FILENAME);
79
-            $array = (array)json_decode($json, true, 512, JSON_THROW_ON_ERROR);
79
+            $array = (array) json_decode($json, true, 512, JSON_THROW_ON_ERROR);
80 80
         } catch (Throwable $e) {
81 81
             throw new ConfigException('Error on Google Quota file : reading or JSON malformed.');
82 82
         }
Please login to merge, or discard this patch.