@@ -27,10 +27,10 @@ discard block |
||
27 | 27 | $username = $request->query->get('user'); |
28 | 28 | |
29 | 29 | if (($project || $queryProject) && $username) { |
30 | - $routeParams = [ 'project'=>($project ?: $queryProject), 'username' => $username ]; |
|
30 | + $routeParams = ['project'=>($project ?: $queryProject), 'username' => $username]; |
|
31 | 31 | return $this->redirectToRoute("EditCounterResult", $routeParams); |
32 | 32 | } elseif (!$project && $queryProject) { |
33 | - return $this->redirectToRoute("EditCounterProject", [ 'project'=>$queryProject ]); |
|
33 | + return $this->redirectToRoute("EditCounterProject", ['project'=>$queryProject]); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | // Otherwise fall through. |
@@ -105,9 +105,9 @@ discard block |
||
105 | 105 | 'rev_small' => $revisionCounts['small'], |
106 | 106 | 'rev_large' => $revisionCounts['large'], |
107 | 107 | 'with_comments' => $revisionCounts['with_comments'], |
108 | - 'without_comments' => $revisionCounts['live'] - $revisionCounts['with_comments'], |
|
108 | + 'without_comments' => $revisionCounts['live']-$revisionCounts['with_comments'], |
|
109 | 109 | 'minor_edits' => $revisionCounts['minor_edits'], |
110 | - 'nonminor_edits' => $revisionCounts['live'] - $revisionCounts['minor_edits'], |
|
110 | + 'nonminor_edits' => $revisionCounts['live']-$revisionCounts['minor_edits'], |
|
111 | 111 | |
112 | 112 | // Page counts. |
113 | 113 | 'uniquePages' => $pageCounts['unique'], |