Completed
Pull Request — master (#22)
by Matthew
01:56
created
src/Controller/Endpoint/Alerts/AlertCountsEndpointController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -209,11 +209,11 @@
 block discarded – undo
209 209
             $factionAbv = strtoupper($faction);
210 210
 
211 211
             $sql .= "SUM(CASE WHEN `ResultWinner` = '{$factionAbv}' ";
212
-            if (! empty($server)) {
212
+            if (!empty($server)) {
213 213
                 $sql .= "AND `ResultServer` IN ({$server}) ";
214 214
             }
215 215
 
216
-            if (! empty($zones)) {
216
+            if (!empty($zones)) {
217 217
                 $sql .= "AND `ResultAlertCont` IN ({$zones}) ";
218 218
             }
219 219
 
Please login to merge, or discard this patch.
src/Controller/Endpoint/Alerts/AlertEndpointController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
         $limit    = (int) $_GET['limit'];
104 104
 
105 105
         // Set defaults if not supplied
106
-        if (empty($offset) || ! is_numeric($offset)) {
106
+        if (empty($offset) || !is_numeric($offset)) {
107 107
             $offset = 0;
108 108
         }
109 109
 
110
-        if (empty($limit) || ! is_numeric($limit)) {
110
+        if (empty($limit) || !is_numeric($limit)) {
111 111
             $limit = 50;
112 112
         }
113 113
 
@@ -173,11 +173,11 @@  discard block
 block discarded – undo
173 173
         $limit  = (int) $_GET['limit'];
174 174
 
175 175
         // Set defaults if not supplied
176
-        if (empty($offset) || ! is_numeric($offset)) {
176
+        if (empty($offset) || !is_numeric($offset)) {
177 177
             $offset = 0;
178 178
         }
179 179
 
180
-        if (empty($limit) || ! is_numeric($limit)) {
180
+        if (empty($limit) || !is_numeric($limit)) {
181 181
             $limit = 50;
182 182
         }
183 183
 
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../vendor/autoload.php';
3
+include __DIR__.'/../vendor/autoload.php';
4 4
 
5 5
 use League\Route\Http\Exception\NotFoundException;
6 6
 
7 7
 // ENV loading
8 8
 josegonzalez\Dotenv\Loader::load([
9
-    'filepath' => __DIR__ . '/../.env',
9
+    'filepath' => __DIR__.'/../.env',
10 10
     'toEnv'    => true
11 11
 ]);
12 12
 
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
 }
22 22
 
23 23
 // Container
24
-$container = include __DIR__ . '/../src/container.php';
24
+$container = include __DIR__.'/../src/container.php';
25 25
 
26 26
 // Routes
27
-$router = include __DIR__ . '/../src/routes.php';
27
+$router = include __DIR__.'/../src/routes.php';
28 28
 
29 29
 // FIRE!!!
30 30
 try {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 } catch (\Exception $e) {
45 45
     $response = $container->get('Zend\Diactoros\Response');
46 46
     $response->getBody()->write(
47
-        'An error occured! ' . $e->getMessage()
47
+        'An error occured! '.$e->getMessage()
48 48
     );
49 49
 
50 50
     $logger = $container->get('Monolog\Logger');
Please login to merge, or discard this patch.
src/commands.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 use Ps2alerts\Api\Command\TestCommand;
10 10
 use Symfony\Component\Console\Application;
11 11
 
12
-require __DIR__ . '/../vendor/autoload.php';
12
+require __DIR__.'/../vendor/autoload.php';
13 13
 
14 14
 // ENV loading
15 15
 josegonzalez\Dotenv\Loader::load([
16
-    'filepath' => __DIR__ . '/../.env',
16
+    'filepath' => __DIR__.'/../.env',
17 17
     'toEnv'    => true
18 18
 ]);
19 19
 
20
-include __DIR__ . '/Command/CommandsCommon.php';
20
+include __DIR__.'/Command/CommandsCommon.php';
21 21
 
22 22
 $application = new Application();
23 23
 // List commands here
Please login to merge, or discard this patch.
src/Command/BaseCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     protected function configure()
13 13
     {
14
-        $container = include __DIR__ . '/../container.php';
14
+        $container = include __DIR__.'/../container.php';
15 15
 
16 16
         $this->container   = $container;
17 17
         $this->auraFactory = $container->get('Ps2alerts\Api\Factory\AuraFactory');
Please login to merge, or discard this patch.
src/Command/LeaderboardOutfitsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
                         $query->where('playerServer', $server);
78 78
                     }
79 79
 
80
-                    $query->orderBy([$metric . ' DESC']);
80
+                    $query->orderBy([$metric.' DESC']);
81 81
                     $query->limit($limit);
82 82
                     $query->offset($count);
83 83
 
Please login to merge, or discard this patch.