Passed
Pull Request — master (#227)
by MusikAnimal
06:00
created
src/AppBundle/Repository/AutoEditsRepository.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 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
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $tagJoin = "LEFT OUTER JOIN $tagTable ON ct_rev_id = rev_id";
90 90
             $condTools[] = "ct_tag_id IN ($tagIds)";
91 91
         }
92
-        $condTool = 'AND (' . implode(' OR ', $condTools) . ')';
92
+        $condTool = 'AND ('.implode(' OR ', $condTools).')';
93 93
 
94 94
         $sql = "SELECT COUNT(DISTINCT(rev_id))
95 95
                 FROM $revisionTable
@@ -316,8 +316,8 @@  discard block
 block discarded – undo
316 316
         }
317 317
 
318 318
         // Sort the array by count
319
-        uasort($results, function ($a, $b) {
320
-            return $b['count'] - $a['count'];
319
+        uasort($results, function($a, $b) {
320
+            return $b['count']-$a['count'];
321 321
         });
322 322
 
323 323
         // Cache and return.
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 
358 358
             // Developer error, no regex or tag provided for this tool.
359 359
             if ('' === $condTool) {
360
-                throw new Exception("No regex or tag found for the tool $toolname. " .
360
+                throw new Exception("No regex or tag found for the tool $toolname. ".
361 361
                     "Please verify this entry in semi_automated.yml");
362 362
             }
363 363
 
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
             if ('' === $condTool) {
417 417
                 $condTool = $tagClause;
418 418
             } else {
419
-                $condTool = '(' . $condTool . " OR $tagClause)";
419
+                $condTool = '('.$condTool." OR $tagClause)";
420 420
             }
421 421
         }
422 422
 
Please login to merge, or discard this patch.