Passed
Push — ip-ranges ( af7070...4d9302 )
by MusikAnimal
05:43
created
src/AppBundle/Controller/XtoolsController.php 1 patch
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.
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.
src/AppBundle/Repository/EditCounterRepository.php 1 patch
Spacing   +7 added lines, -7 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
 
@@ -140,10 +140,10 @@  discard block
 block discarded – undo
140 140
         ])->fetchAll();
141 141
 
142 142
         $logCounts = array_combine(
143
-            array_map(function ($e) {
143
+            array_map(function($e) {
144 144
                 return $e['source'];
145 145
             }, $results),
146
-            array_map(function ($e) {
146
+            array_map(function($e) {
147 147
                 return (int)$e['value'];
148 148
             }, $results)
149 149
         );
@@ -221,10 +221,10 @@  discard block
 block discarded – undo
221 221
         }
222 222
 
223 223
         $counts = array_combine(
224
-            array_map(function ($e) {
224
+            array_map(function($e) {
225 225
                 return $e['key'];
226 226
             }, $results),
227
-            array_map(function ($e) {
227
+            array_map(function($e) {
228 228
                 return (int)$e['val'];
229 229
             }, $results)
230 230
         );
@@ -380,9 +380,9 @@  discard block
 block discarded – undo
380 380
 
381 381
         $results = $this->executeProjectsQuery($project, $sql, $params)->fetchAll();
382 382
 
383
-        $namespaceTotals = array_combine(array_map(function ($e) {
383
+        $namespaceTotals = array_combine(array_map(function($e) {
384 384
             return $e['page_namespace'];
385
-        }, $results), array_map(function ($e) {
385
+        }, $results), array_map(function($e) {
386 386
             return (int)$e['total'];
387 387
         }, $results));
388 388
 
Please login to merge, or discard this patch.