Passed
Branch master (1d2ffa)
by MusikAnimal
06:54
created
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
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             return $this->cache->getItem($cacheKey)->get();
135 135
         }
136 136
 
137
-        $rightsPaths = array_map(function ($right) {
137
+        $rightsPaths = array_map(function($right) {
138 138
             return "Group-$right-member";
139 139
         }, $this->getRawRightsNames($project));
140 140
 
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
                 FROM $revisionTable
273 273
                 WHERE rev_user = :userId
274 274
                 AND rev_timestamp >= $offset
275
-                LIMIT 1 OFFSET ".($edits - 1);
275
+                LIMIT 1 OFFSET ".($edits-1);
276 276
 
277 277
         $ret = $this->executeProjectsQuery($sql, [
278 278
             'userId' => $user->getId($project),
Please login to merge, or discard this patch.
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
 
@@ -127,10 +127,10 @@  discard block
 block discarded – undo
127 127
         ])->fetchAll();
128 128
 
129 129
         $logCounts = array_combine(
130
-            array_map(function ($e) {
130
+            array_map(function($e) {
131 131
                 return $e['source'];
132 132
             }, $results),
133
-            array_map(function ($e) {
133
+            array_map(function($e) {
134 134
                 return (int)$e['value'];
135 135
             }, $results)
136 136
         );
@@ -385,9 +385,9 @@  discard block
 block discarded – undo
385 385
         $params = $user->isAnon() ? ['username' => $user->getUsername()] : ['userId' => $user->getId($project)];
386 386
         $results = $this->executeProjectsQuery($sql, $params)->fetchAll();
387 387
 
388
-        $namespaceTotals = array_combine(array_map(function ($e) {
388
+        $namespaceTotals = array_combine(array_map(function($e) {
389 389
             return $e['page_namespace'];
390
-        }, $results), array_map(function ($e) {
390
+        }, $results), array_map(function($e) {
391 391
             return (int)$e['total'];
392 392
         }, $results));
393 393
 
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
                 WHERE revs.rev_user_text = :username";
442 442
             $queries[] = $sql;
443 443
         }
444
-        $sql = "SELECT * FROM ((\n" . join("\n) UNION (\n", $queries) . ")) a ORDER BY timestamp DESC LIMIT $limit";
444
+        $sql = "SELECT * FROM ((\n".join("\n) UNION (\n", $queries).")) a ORDER BY timestamp DESC LIMIT $limit";
445 445
 
446 446
         if (is_numeric($offset)) {
447 447
             $sql .= " OFFSET $offset";
Please login to merge, or discard this patch.