Passed
Push — master ( 9c80d9...628b52 )
by MusikAnimal
05:31
created
src/AppBundle/Controller/CategoryEditsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
         // 'Category:', which sometimes is used cross-wiki (because it still works).
178 178
         $normalized = false;
179 179
         $nsName = $this->project->getNamespaces()[14].':';
180
-        $this->categories = array_map(function ($category) use ($nsName, &$normalized) {
180
+        $this->categories = array_map(function($category) use ($nsName, &$normalized) {
181 181
             if (strpos($category, $nsName) === 0 || strpos($category, 'Category:') === 0) {
182 182
                 $normalized = true;
183 183
             }
Please login to merge, or discard this patch.
src/Xtools/CategoryEdits.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     ) {
60 60
         $this->project = $project;
61 61
         $this->user = $user;
62
-        $this->categories = array_map(function ($category) {
62
+        $this->categories = array_map(function($category) {
63 63
             return str_replace(' ', '_', $category);
64 64
         }, $categories);
65 65
         $this->start = $start;
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function getCategoriesNormalized()
93 93
     {
94
-        return array_map(function ($category) {
94
+        return array_map(function($category) {
95 95
             return str_replace('_', ' ', $category);
96 96
         }, $this->categories);
97 97
     }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     private function getEditsFromRevs(array $revs)
212 212
     {
213
-        return array_map(function ($rev) {
213
+        return array_map(function($rev) {
214 214
             /* @var Page Page object to be passed to the Edit contructor. */
215 215
             $page = $this->getPageFromRev($rev);
216 216
             $rev['user'] = $this->user;
Please login to merge, or discard this patch.