Test Failed
Pull Request — master (#372)
by MusikAnimal
12:26 queued 01:27
created
src/AppBundle/Helper/AutomatedEditsHelper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
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
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $project = ProjectRepository::getProject('meta.wikimedia.org', $this->container);
83 83
         $content = $project->getRepository()->executeApiRequest($project, [
84 84
             'prop' => 'revisions',
85
-            'titles' => 'MediaWiki:XTools-AutoEdits.json' . ($useSandbox ? '/sandbox' : ''),
85
+            'titles' => 'MediaWiki:XTools-AutoEdits.json'.($useSandbox ? '/sandbox' : ''),
86 86
             'rvprop' => 'content',
87 87
             'rvslots' => '*',
88 88
             'formatversion' => 2,
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         );
137 137
 
138 138
         // Finally, populate the 'label' with the tool name, if a label doesn't already exist.
139
-        array_walk($this->tools[$projectDomain], function (&$data, $tool): void {
139
+        array_walk($this->tools[$projectDomain], function(&$data, $tool): void {
140 140
             $data['label'] = $data['label'] ?? $tool;
141 141
 
142 142
             // 'namespaces' should be an array of ints.
@@ -210,14 +210,14 @@  discard block
 block discarded – undo
210 210
 
211 211
         $revertEntries = array_filter(
212 212
             $this->getTools($project),
213
-            function ($tool) {
213
+            function($tool) {
214 214
                 return isset($tool['revert']) && isset($tool['regex']);
215 215
             }
216 216
         );
217 217
 
218 218
         // If 'revert' is set to `true`, then use 'regex' as the regular expression,
219 219
         //  otherwise 'revert' is assumed to be the regex string.
220
-        $this->revertTools[$projectDomain] = array_map(function ($revertTool) {
220
+        $this->revertTools[$projectDomain] = array_map(function($revertTool) {
221 221
             return [
222 222
                 'link' => $revertTool['link'],
223 223
                 'regex' => true === $revertTool['revert'] ? $revertTool['regex'] : $revertTool['revert'],
Please login to merge, or discard this patch.