@@ -102,7 +102,7 @@ |
||
| 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 | * |
@@ -92,7 +92,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 { |