Completed
Push — master ( d2fbc7...16b0bc )
by Sam
02:55
created
src/Xtools/EditCounterRepository.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function getRevisionCounts(Project $project, User $user)
28 28
     {
29 29
         // Set up cache.
30
-        $cacheKey = 'revisioncounts.' . $project->getDatabaseName() . '.' . $user->getUsername();
30
+        $cacheKey = 'revisioncounts.'.$project->getDatabaseName().'.'.$user->getUsername();
31 31
         if ($this->cache->hasItem($cacheKey)) {
32 32
             return $this->cache->getItem($cacheKey)->get();
33 33
         }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     public function getRevisionDates(Project $project, User $user)
91 91
     {
92 92
         // Set up cache.
93
-        $cacheKey = 'revisiondates.' . $project->getDatabaseName() . '.' . $user->getUsername();
93
+        $cacheKey = 'revisiondates.'.$project->getDatabaseName().'.'.$user->getUsername();
94 94
         if ($this->cache->hasItem($cacheKey)) {
95 95
             return $this->cache->getItem($cacheKey)->get();
96 96
         }
@@ -162,10 +162,10 @@  discard block
 block discarded – undo
162 162
         $results = $resultQuery->fetchAll();
163 163
 
164 164
         $pageCounts = array_combine(
165
-            array_map(function ($e) {
165
+            array_map(function($e) {
166 166
                 return $e['source'];
167 167
             }, $results),
168
-            array_map(function ($e) {
168
+            array_map(function($e) {
169 169
                 return $e['value'];
170 170
             }, $results)
171 171
         );
@@ -216,10 +216,10 @@  discard block
 block discarded – undo
216 216
         $resultQuery->execute();
217 217
         $results = $resultQuery->fetchAll();
218 218
         $logCounts = array_combine(
219
-            array_map(function ($e) {
219
+            array_map(function($e) {
220 220
                 return $e['source'];
221 221
             }, $results),
222
-            array_map(function ($e) {
222
+            array_map(function($e) {
223 223
                 return $e['value'];
224 224
             }, $results)
225 225
         );
@@ -441,9 +441,9 @@  discard block
 block discarded – undo
441 441
         $resultQuery->bindParam(":id", $userId);
442 442
         $resultQuery->execute();
443 443
         $results = $resultQuery->fetchAll();
444
-        $namespaceTotals = array_combine(array_map(function ($e) {
444
+        $namespaceTotals = array_combine(array_map(function($e) {
445 445
             return $e['page_namespace'];
446
-        }, $results), array_map(function ($e) {
446
+        }, $results), array_map(function($e) {
447 447
             return $e['total'];
448 448
         }, $results));
449 449
 
Please login to merge, or discard this patch.