Test Setup Failed
Branch master (37952b)
by Dispositif
12:19 queued 04:16
created
src/Application/Examples/avancement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
 $db = new Mysql($pdo);
41 41
 
42 42
 $monitor = $db->fetchRow('select count(id) from page_ouvrages where optidate is not null');
43
-$number = (int)$monitor['count(id)'];
43
+$number = (int) $monitor['count(id)'];
44 44
 
45 45
 $monitor = $db->fetchRow('select count(distinct page) as pages from page_ouvrages where optidate is not null and isbn<>""');
46
-$pageNb = (int)$monitor['pages'];
46
+$pageNb = (int) $monitor['pages'];
47 47
 
48 48
 $newText = <<<EOF
49 49
 <div style="background:#EBF6E9;border:2px solid grey;padding:10px;border-radius:10px;">
Please login to merge, or discard this patch.
src/Application/TalkBotConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $editInfo = new EditInfo(static::BOT_TALK_SUMMARY);
64 64
         $success = $page->addToBottomOfThePage($addText, $editInfo);
65 65
 
66
-        return (bool)$success;
66
+        return (bool) $success;
67 67
     }
68 68
 
69 69
     /**
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             throw new ConfigException('Pas de phrases disponibles pour TalkBot');
132 132
         }
133 133
 
134
-        return (string)trim($sentences[array_rand($sentences)]);
134
+        return (string) trim($sentences[array_rand($sentences)]);
135 135
     }
136 136
 
137 137
     /**
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/Domain/Publisher/BnfMapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $this->xml = $xml;
41 41
 
42 42
         // skip multi-records
43
-        $nbResults = (int)$xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0;
43
+        $nbResults = (int) $xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0;
44 44
         if (1 !== $nbResults) {
45 45
             echo "BNF : $nbResults records (skip)\n";
46 46
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         $res = [];
124 124
         foreach ($elements as $element) {
125 125
             if (isset($element) && $element instanceof SimpleXMLElement) {
126
-                $res[] = (string)$element;
126
+                $res[] = (string) $element;
127 127
             }
128 128
         }
129 129
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     {
192 192
         $raw = $this->xpath2string('//mxc:datafield[@tag="215"]/mxc:subfield[@code="a"]');
193 193
         if (!empty($raw) && preg_match('#([0-9]{2,}) p\.#', $raw, $matches) > 0) {
194
-            return (string)$matches[1];
194
+            return (string) $matches[1];
195 195
         }
196 196
 
197 197
         return null;
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/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.