@@ -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); |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | ); |
135 | 135 | |
136 | 136 | // Finally, populate the 'label' with the tool name, if a label doesn't already exist. |
137 | - array_walk($this->tools[$projectDomain], function (&$data, $tool): void { |
|
137 | + array_walk($this->tools[$projectDomain], function(&$data, $tool): void { |
|
138 | 138 | $data['label'] = $data['label'] ?? $tool; |
139 | 139 | |
140 | 140 | // 'namespaces' should be an array of ints. |
@@ -208,14 +208,14 @@ discard block |
||
208 | 208 | |
209 | 209 | $revertEntries = array_filter( |
210 | 210 | $this->getTools($project), |
211 | - function ($tool) { |
|
211 | + function($tool) { |
|
212 | 212 | return isset($tool['revert']) && isset($tool['regex']); |
213 | 213 | } |
214 | 214 | ); |
215 | 215 | |
216 | 216 | // If 'revert' is set to `true`, then use 'regex' as the regular expression, |
217 | 217 | // otherwise 'revert' is assumed to be the regex string. |
218 | - $this->revertTools[$projectDomain] = array_map(function ($revertTool) { |
|
218 | + $this->revertTools[$projectDomain] = array_map(function($revertTool) { |
|
219 | 219 | return [ |
220 | 220 | 'link' => $revertTool['link'], |
221 | 221 | 'regex' => true === $revertTool['revert'] ? $revertTool['regex'] : $revertTool['revert'], |