Passed
Pull Request — master (#235)
by MusikAnimal
07:44
created
src/AppBundle/Repository/PagesRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
  * This file contains only the PagesRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Repository;
9 9
 
Please login to merge, or discard this patch.
src/AppBundle/Repository/AutoEditsRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * This file contains only the AutoEditsRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Repository;
9 9
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             $tagJoin = "LEFT OUTER JOIN $tagTable ON ct_rev_id = rev_id";
92 92
             $condTools[] = "ct_tag_id IN ($tagIds)";
93 93
         }
94
-        $condTool = 'AND (' . implode(' OR ', $condTools) . ')';
94
+        $condTool = 'AND ('.implode(' OR ', $condTools).')';
95 95
         $userClause = $user->isAnon() ? 'rev_user_text = :username' : 'rev_user = :userId';
96 96
 
97 97
         $sql = "SELECT COUNT(DISTINCT(rev_id))
@@ -327,8 +327,8 @@  discard block
 block discarded – undo
327 327
         }
328 328
 
329 329
         // Sort the array by count
330
-        uasort($results, function ($a, $b) {
331
-            return $b['count'] - $a['count'];
330
+        uasort($results, function($a, $b) {
331
+            return $b['count']-$a['count'];
332 332
         });
333 333
 
334 334
         // Cache and return.
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
             if ('' === $condTool) {
433 433
                 $condTool = $tagClause;
434 434
             } else {
435
-                $condTool = '(' . $condTool . " OR $tagClause)";
435
+                $condTool = '('.$condTool." OR $tagClause)";
436 436
             }
437 437
         }
438 438
 
Please login to merge, or discard this patch.