Passed
Push — master ( 6be389...077fb2 )
by Dispositif
05:57
created
src/Application/Http/ExternHttpClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             return null;
72 72
         }
73 73
 
74
-        $html = (string)$response->getBody()->getContents() ?? '';
74
+        $html = (string) $response->getBody()->getContents() ?? '';
75 75
 
76 76
         return ($normalized) ? $this->normalizeHtml($html, $url) : $html;
77 77
     }
Please login to merge, or discard this patch.
src/Application/WikiBotConfig.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -228,9 +228,9 @@  discard block
 block discarded – undo
228 228
      */
229 229
     public function minutesSinceLastEdit(string $title): int
230 230
     {
231
-        $time = $this->getTimestamp($title);  // 2011-09-02T16:31:13Z
231
+        $time = $this->getTimestamp($title); // 2011-09-02T16:31:13Z
232 232
 
233
-        return (int)round((time() - strtotime($time)) / 60);
233
+        return (int) round((time() - strtotime($time)) / 60);
234 234
     }
235 235
 
236 236
     /**
@@ -246,8 +246,7 @@  discard block
 block discarded – undo
246 246
     {
247 247
         $text = WikiTextUtil::removeHTMLcomments($text);
248 248
         $botName = ($botName) ? $botName : getenv('BOT_NAME');
249
-        $denyReg = (!empty($botName)) ? '|\{\{bots ?\| ?(optout|deny)\=[^\}]*'.preg_quote($botName, '#').'[^\}]*\}\}' :
250
-            '';
249
+        $denyReg = (!empty($botName)) ? '|\{\{bots ?\| ?(optout|deny)\=[^\}]*'.preg_quote($botName, '#').'[^\}]*\}\}' : '';
251 250
 
252 251
         if (preg_match('#({{nobots}}|{{bots ?\| ?(optout|deny) ?= ?all ?}}'.$denyReg.')#i', $text) > 0) {
253 252
             return true;
Please login to merge, or discard this patch.