Passed
Push — master ( bacc5f...5eccc7 )
by Dispositif
02:22
created
src/Application/Http/ExternHttpClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             return null;
66 66
         }
67 67
 
68
-        return (string)$response->getBody()->getContents() ?? '';
68
+        return (string) $response->getBody()->getContents() ?? '';
69 69
     }
70 70
 
71 71
     public static function isWebURL(string $url): bool
Please login to merge, or discard this patch.
src/Application/AbstractBotTaskWorker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
         $this->setUpInConstructor();
67 67
 
68
-        $this->run();//todo delete that and use (Worker)->run($duration) or process management
68
+        $this->run(); //todo delete that and use (Worker)->run($duration) or process management
69 69
     }
70 70
 
71 71
     protected function setUpInConstructor(): void
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             new EditInfo($this->taskName, $this->minorFlag, $this->botFlag, $this->maxLag)
190 190
         );
191 191
         dump($result);
192
-        echo "Sleep ".(string)static::SLEEP_AFTER_EDITION."\n";
192
+        echo "Sleep ".(string) static::SLEEP_AFTER_EDITION."\n";
193 193
         sleep(static::SLEEP_AFTER_EDITION);
194 194
     }
195 195
 }
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);
79
+            $array = (array) json_decode($json, true);
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.
src/Domain/Models/Wiki/LienWebTemplate.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     const REQUIRED_PARAMETERS = ['titre', 'url'];
22 22
 
23 23
     const MINIMUM_PARAMETERS
24
-                     = [
24
+                        = [
25 25
 //            'langue' => '', // suggéré
26 26
             'titre' => '', // required
27 27
             'url' => '', // required
Please login to merge, or discard this patch.
src/Domain/Models/Wiki/AbstractStrictWikiTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
     protected function isValidParamName($name): bool
152 152
     {
153 153
         if (is_int($name)) {
154
-            $name = (string)$name;
154
+            $name = (string) $name;
155 155
         }
156 156
 
157 157
         // that parameter exists in template ?
Please login to merge, or discard this patch.
src/Domain/Models/Wiki/AbstractWikiTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@
 block discarded – undo
270 270
         // Gestion alias
271 271
         if (!$this->isValidParamName($name)) {
272 272
             // hack : 1 => "ouvrage collectif"
273
-            $name = (string)$name;
273
+            $name = (string) $name;
274 274
             $this->log[] = "parameter $name not found";
275 275
 
276 276
             // todo keep there
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/Domain/Publisher/ExternConverterTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
                 $page .= '–'.$meta['citation_lastpage'];
153 153
             }
154 154
 
155
-            return (string)$page;
155
+            return (string) $page;
156 156
         }
157 157
 
158 158
         return null;
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.