Passed
Push — dependency-injection ( 1a3514...1a37d3 )
by MusikAnimal
04:41
created
src/Controller/GlobalContribsController.php 1 patch
Spacing   +2 added lines, -2 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
 namespace App\Controller;
5 5
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         $this->project = $defaultProject;
192 192
 
193 193
         $results = $globalContribs->globalEdits();
194
-        $results = array_map(function (Edit $edit) {
194
+        $results = array_map(function(Edit $edit) {
195 195
             return $edit->getForJson(true, true);
196 196
         }, array_values($results));
197 197
         $results = $this->addFullPageTitlesAndContinue('globalcontribs', [], $results);
Please login to merge, or discard this patch.
src/Repository/LargestPagesRepository.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
 namespace App\Repository;
5 5
 
Please login to merge, or discard this patch.
src/Model/Authorship.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -213,9 +213,9 @@
 block discarded – undo
213 213
         // Record character count and percentage for the remaining editors.
214 214
         if ($percentageSum < 100) {
215 215
             $this->data['others'] = [
216
-                'count' => $totalCount - $countSum,
217
-                'percentage' => round(100 - $percentageSum, 1),
218
-                'numEditors' => count($counts) - $numEditors,
216
+                'count' => $totalCount-$countSum,
217
+                'percentage' => round(100-$percentageSum, 1),
218
+                'numEditors' => count($counts)-$numEditors,
219 219
             ];
220 220
         }
221 221
     }
Please login to merge, or discard this patch.
src/Model/LargestPages.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
 namespace App\Model;
5 5
 
Please login to merge, or discard this patch.
src/Model/GlobalContribs.php 1 patch
Spacing   +4 added lines, -4 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
 namespace App\Model;
5 5
 
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
 
101 101
         if ($sorted) {
102 102
             // Sort.
103
-            uasort($this->globalEditCounts, function ($a, $b) {
104
-                return $b['total'] - $a['total'];
103
+            uasort($this->globalEditCounts, function($a, $b) {
104
+                return $b['total']-$a['total'];
105 105
             });
106 106
         }
107 107
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             $this->namespace,
139 139
             $this->start,
140 140
             $this->end,
141
-            $this->limit + 1,
141
+            $this->limit+1,
142 142
             $this->offset
143 143
         );
144 144
         $globalEdits = [];
Please login to merge, or discard this patch.
src/DoctrineMigrations/Version20170623203059.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
 namespace App\DoctrineMigrations;
5 5
 
Please login to merge, or discard this patch.
config/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,4 +20,4 @@
 block discarded – undo
20 20
 $_SERVER += $_ENV;
21 21
 $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
22 22
 $_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];
23
-$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';
23
+$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int)$_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';
Please login to merge, or discard this patch.
config/bundles.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
 return [
5 5
     Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     Request::setTrustedHosts([$trustedHosts]);
21 21
 }
22 22
 
23
-$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
23
+$kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);
24 24
 $request = Request::createFromGlobals();
25 25
 $response = $kernel->handle($request);
26 26
 $response->send();
Please login to merge, or discard this patch.