Completed
Push — master ( 72490f...213592 )
by Matthew
13:33
created
src/AppBundle/Controller/EditCounterController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
         $isSubRequest = $this->container->get('request_stack')->getParentRequest() !== null;
137 137
 
138 138
         return $this->render('editCounter/result.html.twig', [
139
-            'xtTitle' => $this->user->getUsername() . ' - ' . $this->project->getTitle(),
139
+            'xtTitle' => $this->user->getUsername().' - '.$this->project->getTitle(),
140 140
             'xtPage' => 'ec',
141 141
             'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'),
142 142
             'is_sub_request' => $isSubRequest,
Please login to merge, or discard this patch.
src/AppBundle/Controller/AutomatedEditsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             'xtSubtitle' => 'tool-autoedits-desc',
87 87
             'xtPage' => 'autoedits',
88 88
             'project' => $project,
89
-            'namespace' => (int) $namespace,
89
+            'namespace' => (int)$namespace,
90 90
             'start' => $startDate,
91 91
             'end' => $endDate,
92 92
         ]);
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
         // Get individual counts of how many times each tool was used.
158 158
         // This also includes a wikilink to the tool.
159 159
         $toolCounts = $user->getAutomatedCounts($projectData, $namespace, $start, $end);
160
-        $toolsTotal = array_reduce($toolCounts, function ($a, $b) {
161
-            return $a + $b['count'];
160
+        $toolsTotal = array_reduce($toolCounts, function($a, $b) {
161
+            return $a+$b['count'];
162 162
         });
163 163
 
164 164
         // Query to get combined (semi)automated using for all edits
Please login to merge, or discard this patch.
src/AppBundle/Controller/TopEditsController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             'xtSubtitle' => 'tool-topedits-desc',
94 94
             'xtPage' => 'topedits',
95 95
             'project' => $project,
96
-            'namespace' => (int) $namespace,
96
+            'namespace' => (int)$namespace,
97 97
             'article' => $article,
98 98
         ]);
99 99
     }
@@ -190,11 +190,11 @@  discard block
 block discarded – undo
190 190
         }
191 191
 
192 192
         // Get page info about these 100 pages, so we can use their display title.
193
-        $titles = array_map(function ($e) use ($namespaces) {
193
+        $titles = array_map(function($e) use ($namespaces) {
194 194
             // If non-mainspace, prepend namespace to the titles.
195 195
             $ns = $e['page_namespace'];
196
-            $nsTitle = $ns > 0 ? $namespaces[$e['page_namespace']] . ':' : '';
197
-            return $nsTitle . $e['page_title'];
196
+            $nsTitle = $ns > 0 ? $namespaces[$e['page_namespace']].':' : '';
197
+            return $nsTitle.$e['page_title'];
198 198
         }, $editData);
199 199
 
200 200
         /** @var ApiHelper $apiHelper */
@@ -210,8 +210,8 @@  discard block
 block discarded – undo
210 210
         foreach ($editData as $editDatum) {
211 211
             // If non-mainspace, prepend namespace to the titles.
212 212
             $ns = $editDatum['page_namespace'];
213
-            $nsTitle = $ns > 0 ? $namespaces[$editDatum['page_namespace']] . ':' : '';
214
-            $pageTitle = $nsTitle . $editDatum['page_title'];
213
+            $nsTitle = $ns > 0 ? $namespaces[$editDatum['page_namespace']].':' : '';
214
+            $pageTitle = $nsTitle.$editDatum['page_title'];
215 215
             $editDatum['displaytitle'] = $displayTitles[$pageTitle];
216 216
             // $editDatum['page_title'] is retained without the namespace
217 217
             //  so we can link to TopEdits for that page
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
         // Send all to the template.
272 272
         return $this->render('topedits/result_article.html.twig', [
273 273
             'xtPage' => 'topedits',
274
-            'xtTitle' => $user->getUsername() . ' - ' . $page->getTitle(),
274
+            'xtTitle' => $user->getUsername().' - '.$page->getTitle(),
275 275
             'project' => $project,
276 276
             'user' => $user,
277 277
             'page' => $page,
Please login to merge, or discard this patch.