Test Failed
Push — ip-ranges ( 996676...22e7fb )
by MusikAnimal
04:31
created
src/AppBundle/Controller/RfXVoteCalculatorController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,8 +136,8 @@
 block discarded – undo
136 136
             $titles = [];
137 137
 
138 138
             while ($row = $sth->fetch()) {
139
-                $titles[] = $namespaces[$row['page_namespace']] .
140
-                    ':' .$row['page_title'];
139
+                $titles[] = $namespaces[$row['page_namespace']].
140
+                    ':'.$row['page_title'];
141 141
             }
142 142
 
143 143
             // Chunking... it's possible to make a URI too long
Please login to merge, or discard this patch.
src/AppBundle/Controller/QuoteController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
 
198 198
         // Number the quotes, since they somehow have significance.
199 199
         foreach ($quotes as $index => $quote) {
200
-            $numberedQuotes[(string)($index + 1)] = $quote;
200
+            $numberedQuotes[(string)($index+1)] = $quote;
201 201
         }
202 202
 
203 203
         return new JsonResponse($numberedQuotes, Response::HTTP_OK);
Please login to merge, or discard this patch.
public/app.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 use Symfony\Component\HttpFoundation\Request;
5 5
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/CategoryEditsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
         // 'Category:', which sometimes is used cross-wiki (because it still works).
129 129
         $normalized = false;
130 130
         $nsName = $this->project->getNamespaces()[14].':';
131
-        $this->categories = array_map(function ($category) use ($nsName, &$normalized) {
131
+        $this->categories = array_map(function($category) use ($nsName, &$normalized) {
132 132
             if (0 === strpos($category, $nsName) || 0 === strpos($category, 'Category:')) {
133 133
                 $normalized = true;
134 134
             }
Please login to merge, or discard this patch.
src/AppBundle/Exception/XtoolsHttpException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 /**
5 5
  * This file contains only the XtoolsHttpException class.
Please login to merge, or discard this patch.
src/AppBundle/AppBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 /**
5 5
  * This file contains only the AppBundle class.
Please login to merge, or discard this patch.
src/AppBundle/EventSubscriber/ExceptionListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 /**
5 5
  * This file contains only the ExceptionListener class.
Please login to merge, or discard this patch.
src/AppBundle/Model/PageAssessments.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 PageAssessments class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Model;
9 9
 
Please login to merge, or discard this patch.
src/AppBundle/Model/AdminScore.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * This file contains only the AdminScore class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Model;
9 9
 
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
                     $now = new DateTime();
104 104
                     $date = new DateTime($value);
105 105
                     $diff = $date->diff($now);
106
-                    $formula = 365 * (int)$diff->format('%y') + 30 *
107
-                        (int)$diff->format('%m') + (int)$diff->format('%d');
106
+                    $formula = 365 * (int)$diff->format('%y')+30 *
107
+                        (int)$diff->format('%m')+(int)$diff->format('%d');
108 108
                     if ($formula < 365) {
109 109
                         $this->multipliers['account-age-mult'] = 0;
110 110
                     }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                 }
113 113
             }
114 114
 
115
-            $multiplierKey = $row['source'] . '-mult';
115
+            $multiplierKey = $row['source'].'-mult';
116 116
             $multiplier = $this->multipliers[$multiplierKey] ?? 1;
117 117
             $score = max(min($value * $multiplier, 100), -100);
118 118
             $this->scores[$key]['mult'] = $multiplier;
Please login to merge, or discard this patch.