Test Failed
Push — ip-ranges ( af8775 )
by MusikAnimal
07:44
created
src/AppBundle/Controller/XtoolsController.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
             throw new XtoolsHttpException(
203 203
                 $this->i18n->msg('not-opted-in', [
204 204
                     $this->getOptedInPage()->getTitle(),
205
-                    $this->i18n->msg('not-opted-in-link') .
205
+                    $this->i18n->msg('not-opted-in-link').
206 206
                         ' <https://www.mediawiki.org/wiki/XTools/Edit_Counter#restricted_stats>',
207 207
                     $this->i18n->msg('not-opted-in-login'),
208 208
                 ]),
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
         $params = $this->convertLegacyParams($params);
643 643
 
644 644
         // Remove blank values.
645
-        return array_filter($params, function ($param) {
645
+        return array_filter($params, function($param) {
646 646
             // 'namespace' or 'username' could be '0'.
647 647
             return null !== $param && '' !== $param;
648 648
         });
@@ -843,7 +843,7 @@  discard block
 block discarded – undo
843 843
         }
844 844
 
845 845
         $elapsedTime = round(
846
-            microtime(true) - $this->request->server->get('REQUEST_TIME_FLOAT'),
846
+            microtime(true)-$this->request->server->get('REQUEST_TIME_FLOAT'),
847 847
             3
848 848
         );
849 849
 
@@ -886,7 +886,7 @@  discard block
 block discarded – undo
886 886
         $conn = $this->container->get('doctrine')
887 887
             ->getManager('default')
888 888
             ->getConnection();
889
-        $date =  date('Y-m-d');
889
+        $date = date('Y-m-d');
890 890
 
891 891
         // Increment count in timeline
892 892
         $existsSql = "SELECT 1 FROM usage_api_timeline
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -434,8 +434,9 @@
 block discarded – undo
434 434
         // Allow querying for any IP, currently with no edit count limitation...
435 435
         // Once T188677 is resolved IPs will be affected by the EXPLAIN results.
436 436
         if ($user->isAnon()) {
437
-            if ($user->isIpRange() && )
438
-            return $user;
437
+            if ($user->isIpRange() && ) {
438
+                        return $user;
439
+            }
439 440
         }
440 441
 
441 442
         $originalParams = $this->params;
Please login to merge, or discard this patch.
src/AppBundle/Repository/SimpleEditCounterRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * This file contains only the SimpleEditCounterRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Repository;
9 9
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         $revDateConditions = $this->getDateConditions($start, $end, false, "$ipcTable.", 'ipc_rev_timestamp');
124 124
         [$startHex, $endHex] = IPUtils::parseRange($user->getUsername());
125 125
 
126
-        $revNamespaceJoinSql = 'all' === $namespace ? '' : "JOIN $revTable ON rev_id = ipc_rev_id " .
126
+        $revNamespaceJoinSql = 'all' === $namespace ? '' : "JOIN $revTable ON rev_id = ipc_rev_id ".
127 127
             "JOIN $pageTable ON rev_page = page_id";
128 128
         $revNamespaceWhereSql = 'all' === $namespace ? '' : "AND page_namespace = $namespace";
129 129
 
Please login to merge, or discard this patch.