Completed
Push — master ( 90100d...399d17 )
by MusikAnimal
02:24
created
src/AppBundle/Controller/EditSummaryController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
      *
103 103
      * @param string $project  The project domain name.
104 104
      * @param string $username The username.
105
-     * @param string $namespace Namespace ID or 'all' for all namespaces.
105
+     * @param integer $namespace Namespace ID or 'all' for all namespaces.
106 106
      *
107 107
      * @Route("/editsummary/{project}/{username}/{namespace}", name="EditSummaryResult")
108 108
      *
Please login to merge, or discard this patch.
Spacing   +5 added lines, -7 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                 'xtSubtitle' => 'tool-es-desc',
93 93
                 'xtPage' => 'es',
94 94
                 'project' => $theProject,
95
-                'namespace' => (int) $namespace,
95
+                'namespace' => (int)$namespace,
96 96
             ]
97 97
         );
98 98
     }
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
     {
159 159
         $dbName = $project->getDatabaseName();
160 160
 
161
-        $cacheKey = 'editsummaryusage.' . $dbName . '.'
162
-            . $user->getCacheKey() . '.' . $namespace;
161
+        $cacheKey = 'editsummaryusage.'.$dbName.'.'
162
+            . $user->getCacheKey().'.'.$namespace;
163 163
 
164 164
         $cache = $this->container->get('cache.app');
165 165
         if ($cache->hasItem($cacheKey)) {
@@ -246,8 +246,7 @@  discard block
 block discarded – undo
246 246
             if ($row['rev_minor_edit'] == 0) {
247 247
                 if ($row['rev_comment'] !== '') {
248 248
                     isset($monthEditsummaryTotals[$monthkey]) ?
249
-                        $monthEditsummaryTotals[$monthkey]++ :
250
-                        $monthEditsummaryTotals[$monthkey] = 1;
249
+                        $monthEditsummaryTotals[$monthkey]++ : $monthEditsummaryTotals[$monthkey] = 1;
251 250
                     $totalSummariesMajor++;
252 251
                 }
253 252
 
@@ -264,8 +263,7 @@  discard block
 block discarded – undo
264 263
                 // If there is a comment, count it
265 264
                 if ($row['rev_comment'] !== '') {
266 265
                     isset($monthEditsummaryTotals[$monthkey]) ?
267
-                        $monthEditsummaryTotals[$monthkey]++ :
268
-                        $monthEditsummaryTotals[$monthkey] = 1;
266
+                        $monthEditsummaryTotals[$monthkey]++ : $monthEditsummaryTotals[$monthkey] = 1;
269 267
                     $totalSummariesMinor++;
270 268
                     $totalEditsMinor++;
271 269
                 } else {
Please login to merge, or discard this patch.