Test Failed
Push — master ( 28b62c...34bd96 )
by MusikAnimal
05:45
created
src/AppBundle/Repository/EditCounterRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * This file contains only the EditCounterRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Repository;
9 9
 
@@ -121,10 +121,10 @@  discard block
 block discarded – undo
121 121
         ])->fetchAll();
122 122
 
123 123
         $logCounts = array_combine(
124
-            array_map(function ($e) {
124
+            array_map(function($e) {
125 125
                 return $e['source'];
126 126
             }, $results),
127
-            array_map(function ($e) {
127
+            array_map(function($e) {
128 128
                 return (int)$e['value'];
129 129
             }, $results)
130 130
         );
@@ -381,9 +381,9 @@  discard block
 block discarded – undo
381 381
             'actorId' => $user->getActorId($project),
382 382
         ])->fetchAll();
383 383
 
384
-        $namespaceTotals = array_combine(array_map(function ($e) {
384
+        $namespaceTotals = array_combine(array_map(function($e) {
385 385
             return $e['page_namespace'];
386
-        }, $results), array_map(function ($e) {
386
+        }, $results), array_map(function($e) {
387 387
             return (int)$e['total'];
388 388
         }, $results));
389 389
 
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
                 WHERE revs.rev_actor = $actorId";
438 438
             $queries[] = $sql;
439 439
         }
440
-        $sql = "SELECT * FROM ((\n" . join("\n) UNION (\n", $queries) . ")) a ORDER BY timestamp DESC LIMIT $limit";
440
+        $sql = "SELECT * FROM ((\n".join("\n) UNION (\n", $queries).")) a ORDER BY timestamp DESC LIMIT $limit";
441 441
 
442 442
         if (is_numeric($offset)) {
443 443
             $sql .= " OFFSET $offset";
Please login to merge, or discard this patch.
src/AppBundle/Repository/UserRightsRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * This file contains only the UserRightsRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Repository;
9 9
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             return $this->cache->getItem($cacheKey)->get();
118 118
         }
119 119
 
120
-        $rightsPaths = array_map(function ($right) {
120
+        $rightsPaths = array_map(function($right) {
121 121
             return "Group-$right-member";
122 122
         }, $this->getRawRightsNames($project));
123 123
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
                 FROM $revisionTable
256 256
                 WHERE rev_actor = :actorId
257 257
                 AND rev_timestamp >= $offset
258
-                LIMIT 1 OFFSET ".($edits - 1);
258
+                LIMIT 1 OFFSET ".($edits-1);
259 259
 
260 260
         $ret = $this->executeProjectsQuery($sql, [
261 261
             'actorId' => $user->getActorId($project),
Please login to merge, or discard this patch.