Passed
Pull Request — master (#214)
by MusikAnimal
05:22
created
src/AppBundle/Controller/XtoolsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
         $params = $this->convertLegacyParams($params);
503 503
 
504 504
         // Remove blank values.
505
-        return array_filter($params, function ($param) {
505
+        return array_filter($params, function($param) {
506 506
             // 'namespace' or 'username' could be '0'.
507 507
             return $param !== null && $param !== '';
508 508
         });
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
         $response->setStatusCode(Response::HTTP_OK);
643 643
 
644 644
         $elapsedTime = round(
645
-            microtime(true) - $this->request->server->get('REQUEST_TIME_FLOAT'),
645
+            microtime(true)-$this->request->server->get('REQUEST_TIME_FLOAT'),
646 646
             3
647 647
         );
648 648
 
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
         $conn = $this->container->get('doctrine')
670 670
             ->getManager('default')
671 671
             ->getConnection();
672
-        $date =  date('Y-m-d');
672
+        $date = date('Y-m-d');
673 673
 
674 674
         // Increment count in timeline
675 675
         $existsSql = "SELECT 1 FROM usage_api_timeline
Please login to merge, or discard this patch.
src/AppBundle/Controller/TopEditsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
         // Send all to the template.
158 158
         return $this->getFormattedResponse('topedits/result_article.html.twig', [
159 159
             'xtPage' => 'topedits',
160
-            'xtTitle' => $this->user->getUsername() . ' - ' . $this->page->getTitle(),
160
+            'xtTitle' => $this->user->getUsername().' - '.$this->page->getTitle(),
161 161
             'project' => $this->project,
162 162
             'user' => $this->user,
163 163
             'page' => $this->page,
Please login to merge, or discard this patch.