@@ -71,7 +71,7 @@ |
||
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 | } |
@@ -228,9 +228,9 @@ discard block |
||
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 |
||
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; |