@@ -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 | |
@@ -87,9 +87,9 @@ discard block |
||
87 | 87 | $centralAuthProject = $this->container->getParameter('central_auth_project'); |
88 | 88 | $metaProject = ProjectRepository::getProject($centralAuthProject, $this->container); |
89 | 89 | |
90 | - $title = 'MediaWiki:XTools-AutoEdits.json' . ($useSandbox ? '/sandbox' : ''); |
|
90 | + $title = 'MediaWiki:XTools-AutoEdits.json'.($useSandbox ? '/sandbox' : ''); |
|
91 | 91 | $ret = json_decode(file_get_contents( |
92 | - $metaProject->getUrl() . "w/index.php?action=raw&ctype=application/json&title=$title" |
|
92 | + $metaProject->getUrl()."w/index.php?action=raw&ctype=application/json&title=$title" |
|
93 | 93 | ), true); |
94 | 94 | |
95 | 95 | if (!$useSandbox) { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | ); |
139 | 139 | |
140 | 140 | // Finally, populate the 'label' with the tool name, if a label doesn't already exist. |
141 | - array_walk($this->tools[$projectDomain], function (&$data, $tool): void { |
|
141 | + array_walk($this->tools[$projectDomain], function(&$data, $tool): void { |
|
142 | 142 | $data['label'] = $data['label'] ?? $tool; |
143 | 143 | |
144 | 144 | // 'namespaces' should be an array of ints. |
@@ -212,14 +212,14 @@ discard block |
||
212 | 212 | |
213 | 213 | $revertEntries = array_filter( |
214 | 214 | $this->getTools($project), |
215 | - function ($tool) { |
|
215 | + function($tool) { |
|
216 | 216 | return isset($tool['revert']) && isset($tool['regex']); |
217 | 217 | } |
218 | 218 | ); |
219 | 219 | |
220 | 220 | // If 'revert' is set to `true`, then use 'regex' as the regular expression, |
221 | 221 | // otherwise 'revert' is assumed to be the regex string. |
222 | - $this->revertTools[$projectDomain] = array_map(function ($revertTool) { |
|
222 | + $this->revertTools[$projectDomain] = array_map(function($revertTool) { |
|
223 | 223 | return [ |
224 | 224 | 'link' => $revertTool['link'], |
225 | 225 | 'regex' => true === $revertTool['revert'] ? $revertTool['regex'] : $revertTool['revert'], |