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