@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * This file contains only the AutomatedEditsHelper class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace AppBundle\Helper; |
9 | 9 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | return $this->cache->getItem($cacheKey)->get(); |
84 | 84 | } |
85 | 85 | |
86 | - $title = 'MediaWiki:XTools-AutoEdits.json' . ($useSandbox ? '/sandbox' : ''); |
|
86 | + $title = 'MediaWiki:XTools-AutoEdits.json'.($useSandbox ? '/sandbox' : ''); |
|
87 | 87 | $ret = json_decode(file_get_contents( |
88 | 88 | "https://meta.wikimedia.org/w/index.php?action=raw&ctype=application/json&title=$title" |
89 | 89 | ), true); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | // Once last walk through for some tidying up and validation. |
137 | 137 | $invalid = []; |
138 | - array_walk($this->tools[$projectDomain], function (&$data, $tool) use (&$invalid): void { |
|
138 | + array_walk($this->tools[$projectDomain], function(&$data, $tool) use (&$invalid): void { |
|
139 | 139 | // Populate the 'label' with the tool name, if a label doesn't already exist. |
140 | 140 | $data['label'] = $data['label'] ?? $tool; |
141 | 141 | |
@@ -219,14 +219,14 @@ discard block |
||
219 | 219 | |
220 | 220 | $revertEntries = array_filter( |
221 | 221 | $this->getTools($project), |
222 | - function ($tool) { |
|
222 | + function($tool) { |
|
223 | 223 | return isset($tool['revert']) && isset($tool['regex']); |
224 | 224 | } |
225 | 225 | ); |
226 | 226 | |
227 | 227 | // If 'revert' is set to `true`, then use 'regex' as the regular expression, |
228 | 228 | // otherwise 'revert' is assumed to be the regex string. |
229 | - $this->revertTools[$projectDomain] = array_map(function ($revertTool) { |
|
229 | + $this->revertTools[$projectDomain] = array_map(function($revertTool) { |
|
230 | 230 | return [ |
231 | 231 | 'link' => $revertTool['link'], |
232 | 232 | 'regex' => true === $revertTool['revert'] ? $revertTool['regex'] : $revertTool['revert'], |