@@ -111,7 +111,7 @@ |
||
| 111 | 111 | $this->processSpecialActions($notif); |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | - if(empty($wikilog)) { |
|
| 114 | + if (empty($wikilog)) { |
|
| 115 | 115 | echo "Nothing."; |
| 116 | 116 | return; |
| 117 | 117 | } |
@@ -173,9 +173,9 @@ |
||
| 173 | 173 | */ |
| 174 | 174 | public function minutesSinceLastEdit(string $title): int |
| 175 | 175 | { |
| 176 | - $time = $this->getTimestamp($title); // 2011-09-02T16:31:13Z |
|
| 176 | + $time = $this->getTimestamp($title); // 2011-09-02T16:31:13Z |
|
| 177 | 177 | |
| 178 | - return (int)round((time() - strtotime($time)) / 60); |
|
| 178 | + return (int) round((time() - strtotime($time)) / 60); |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | /** |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | throw new ConfigException('Pas de phrases disponibles'); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - return (string)trim($sentences[array_rand($sentences)]); |
|
| 105 | + return (string) trim($sentences[array_rand($sentences)]); |
|
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | private function generateVoteInsertionText(): ?string |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | $html = $this->getAdminScoreHtml(); |
| 258 | 258 | |
| 259 | 259 | if (!empty($html) && preg_match('#<th>Total</th>[^<]*<th>([0-9]+)</th>#', $html, $matches)) { |
| 260 | - return (int)$matches[1]; |
|
| 260 | + return (int) $matches[1]; |
|
| 261 | 261 | } |
| 262 | 262 | |
| 263 | 263 | return null; |