Test Failed
Push — master ( ee48b8...7f6ea4 )
by MusikAnimal
05:07
created
src/AppBundle/Controller/XtoolsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
         $params = $this->convertLegacyParams($params);
505 505
 
506 506
         // Remove blank values.
507
-        return array_filter($params, function ($param) {
507
+        return array_filter($params, function($param) {
508 508
             // 'namespace' or 'username' could be '0'.
509 509
             return null !== $param && '' !== $param;
510 510
         });
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
         $response->setStatusCode(Response::HTTP_OK);
656 656
 
657 657
         $elapsedTime = round(
658
-            microtime(true) - $this->request->server->get('REQUEST_TIME_FLOAT'),
658
+            microtime(true)-$this->request->server->get('REQUEST_TIME_FLOAT'),
659 659
             3
660 660
         );
661 661
 
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
         $conn = $this->container->get('doctrine')
683 683
             ->getManager('default')
684 684
             ->getConnection();
685
-        $date =  date('Y-m-d');
685
+        $date = date('Y-m-d');
686 686
 
687 687
         // Increment count in timeline
688 688
         $existsSql = "SELECT 1 FROM usage_api_timeline
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/Controller/DefaultController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     public function loginAction(): RedirectResponse
105 105
     {
106 106
         try {
107
-            [ $next, $token ] = $this->getOauthClient()->initiate();
107
+            [$next, $token] = $this->getOauthClient()->initiate();
108 108
         } catch (Exception $oauthException) {
109 109
             throw $oauthException;
110 110
             // @TODO Make this work.
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                     . '?title=Special:OAuth';
175 175
         $conf = new ClientConfig($endpoint);
176 176
         $consumerKey = $this->getParameter('oauth_key');
177
-        $consumerSecret =  $this->getParameter('oauth_secret');
177
+        $consumerSecret = $this->getParameter('oauth_secret');
178 178
         $conf->setConsumer(new Consumer($consumerKey, $consumerSecret));
179 179
         $this->oauthClient = new Client($conf);
180 180
         // Callback URL is hardcoded in the consumer registration.
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/Helper/AutomatedEditsHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * This file contains only the AutomatedEditsHelper class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Helper;
9 9
 
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
 
152 152
         $revertEntries = array_filter(
153 153
             $this->getTools($project),
154
-            function ($tool) {
154
+            function($tool) {
155 155
                 return isset($tool['revert']);
156 156
             }
157 157
         );
158 158
 
159 159
         // If 'revert' is set to `true`, then use 'regex' as the regular expression,
160 160
         //  otherwise 'revert' is assumed to be the regex string.
161
-        $this->revertTools[$projectDomain] = array_map(function ($revertTool) {
161
+        $this->revertTools[$projectDomain] = array_map(function($revertTool) {
162 162
             return [
163 163
                 'link' => $revertTool['link'],
164 164
                 'regex' => true === $revertTool['revert'] ? $revertTool['regex'] : $revertTool['revert'],
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/Twig/AppExtension.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 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 AppExtension class.
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     public function requestTime(): float
109 109
     {
110 110
         if (!isset($this->requestTime)) {
111
-            $this->requestTime = microtime(true) - $this->getRequest()->server->get('REQUEST_TIME_FLOAT');
111
+            $this->requestTime = microtime(true)-$this->getRequest()->server->get('REQUEST_TIME_FLOAT');
112 112
         }
113 113
 
114 114
         return $this->requestTime;
@@ -660,15 +660,15 @@  discard block
 block discarded – undo
660 660
 
661 661
         if ($seconds >= 86400) {
662 662
             // Over a day
663
-            $val = (int) floor($seconds / 86400);
663
+            $val = (int)floor($seconds / 86400);
664 664
             $key = 'days';
665 665
         } elseif ($seconds >= 3600) {
666 666
             // Over an hour, less than a day
667
-            $val = (int) floor($seconds / 3600);
667
+            $val = (int)floor($seconds / 3600);
668 668
             $key = 'hours';
669 669
         } elseif ($seconds >= 60) {
670 670
             // Over a minute, less than an hour
671
-            $val = (int) floor($seconds / 60);
671
+            $val = (int)floor($seconds / 60);
672 672
             $key = 'minutes';
673 673
         }
674 674
 
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.