Completed
Push — master ( e849b9...fa53d4 )
by Matthew
02:01
created
src/Repository/AbstractEndpointRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $key = $this->returnKeyType($keyType);
185 185
 
186 186
         $query->cols(['*'])
187
-              ->where("{$key} = ?", $id);
187
+                ->where("{$key} = ?", $id);
188 188
 
189 189
         return $this->fireStatementAndReturn($query, true, $object, $archive);
190 190
     }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         $key = $this->returnKeyType($keyType);
222 222
 
223 223
         $query->cols(['*'])
224
-              ->where("{$key} = ?", $id);
224
+                ->where("{$key} = ?", $id);
225 225
 
226 226
         return $this->fireStatementAndReturn($query, false, false, $archive);
227 227
     }
Please login to merge, or discard this patch.
src/container.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -19,43 +19,43 @@
 block discarded – undo
19 19
 
20 20
 // Inflectors
21 21
 $container->inflector('Ps2alerts\Api\Contract\ConfigAwareInterface')
22
-          ->invokeMethod('setConfig', ['config']);
22
+            ->invokeMethod('setConfig', ['config']);
23 23
 $container->inflector('Ps2alerts\Api\Contract\DatabaseAwareInterface')
24
-          ->invokeMethod('setDatabaseDriver', ['Database'])
25
-          ->invokeMethod('setDatabaseDataDriver', ['Database\Data'])
26
-          ->invokeMethod('setDatabaseArchiveDriver', ['Database\Archive']);
24
+            ->invokeMethod('setDatabaseDriver', ['Database'])
25
+            ->invokeMethod('setDatabaseDataDriver', ['Database\Data'])
26
+            ->invokeMethod('setDatabaseArchiveDriver', ['Database\Archive']);
27 27
 $container->inflector('Ps2alerts\Api\Contract\LogAwareInterface')
28
-          ->invokeMethod('setLogDriver', ['Monolog\Logger']);
28
+            ->invokeMethod('setLogDriver', ['Monolog\Logger']);
29 29
 $container->inflector('Ps2alerts\Api\Contract\HttpClientAwareInterface')
30
-          ->invokeMethod('setHttpClientDriver', ['GuzzleHttp\Client']);
30
+            ->invokeMethod('setHttpClientDriver', ['GuzzleHttp\Client']);
31 31
 $container->inflector('Ps2alerts\Api\Contract\HttpMessageAwareInterface')
32
-          ->invokeMethods([
33
-              'setResponse' => ['Zend\Diactoros\Response'],
34
-              'setRequest'  => ['Zend\Diactoros\ServerRequest']
35
-           ]);
32
+            ->invokeMethods([
33
+                'setResponse' => ['Zend\Diactoros\Response'],
34
+                'setRequest'  => ['Zend\Diactoros\ServerRequest']
35
+            ]);
36 36
 $container->inflector('Ps2alerts\Api\Contract\TemplateAwareInterface')
37
-          ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
37
+            ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
38 38
 $container->inflector('Ps2alerts\Api\Contract\RedisAwareInterface')
39
-          ->invokeMethod('setRedisDriver', ['redis']);
39
+            ->invokeMethod('setRedisDriver', ['redis']);
40 40
 $container->inflector('Ps2alerts\Api\Contract\UuidAwareInterface')
41
-          ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']);
41
+            ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']);
42 42
 
43 43
 // Container Inflector
44 44
 $container->inflector('League\Container\ContainerAwareInterface')
45
-          ->invokeMethod('setContainer', [$container]);
45
+            ->invokeMethod('setContainer', [$container]);
46 46
 
47 47
 // Processing deps
48 48
 $container->add('Ps2alerts\Api\Factory\AuraFactory')
49
-          ->withArgument('Aura\SqlQuery\QueryFactory');
49
+            ->withArgument('Aura\SqlQuery\QueryFactory');
50 50
 
51 51
 $container->add('Ps2alerts\Api\Transformer\DataTransformer')
52
-          ->withArgument('Ps2alerts\Api\Repository\Data\FacilityDataRepository')
53
-          ->withArgument('Ps2alerts\Api\Repository\Data\VehicleDataRepository')
54
-          ->withArgument('Ps2alerts\Api\Repository\Data\WeaponDataRepository')
55
-          ->withArgument('Ps2alerts\Api\Repository\Data\XpDataRepository');
52
+            ->withArgument('Ps2alerts\Api\Repository\Data\FacilityDataRepository')
53
+            ->withArgument('Ps2alerts\Api\Repository\Data\VehicleDataRepository')
54
+            ->withArgument('Ps2alerts\Api\Repository\Data\WeaponDataRepository')
55
+            ->withArgument('Ps2alerts\Api\Repository\Data\XpDataRepository');
56 56
 
57 57
 $container->add('Ps2alerts\Api\Controller\Endpoint\Data\DataEndpointController')
58
-          ->withArgument('League\Fractal\Manager')
59
-          ->withArgument('Ps2alerts\Api\Transformer\DataTransformer');
58
+            ->withArgument('League\Fractal\Manager')
59
+            ->withArgument('Ps2alerts\Api\Transformer\DataTransformer');
60 60
 
61 61
 return $container;
Please login to merge, or discard this patch.
src/Command/DeleteMissingAlertsCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     {
18 18
         parent::configure(); // See BaseCommand.php
19 19
         $this->setName('DeleteMissingAlerts')
20
-             ->setDescription('Deletes all missing alerts');
20
+                ->setDescription('Deletes all missing alerts');
21 21
 
22 22
         global $container;
23 23
         $this->alertRepo = $container->get('Ps2alerts\Api\Repository\AlertRepository');
Please login to merge, or discard this patch.
src/Command/LeaderboardOutfitsCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     {
14 14
         parent::configure(); // See BaseCommand.php
15 15
         $this->setName('Leaderboards:Outfits')
16
-             ->setDescription('Processes all outfit leaderboards');
16
+                ->setDescription('Processes all outfit leaderboards');
17 17
 
18 18
         global $container;
19 19
         $this->redis = $container->get('redis');
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                     $query->cols(['*']);
73 73
                     $query->from('ws_players_total');
74 74
                     if ($server !== 0) {
75
-                         $query->where('playerServer', $server);
75
+                            $query->where('playerServer', $server);
76 76
                     }
77 77
                     $query->orderBy([$metric . ' DESC']);
78 78
                     $query->limit($limit);
Please login to merge, or discard this patch.
src/Command/LeaderboardCheckCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     {
14 14
         parent::configure(); // See BaseCommand.php
15 15
         $this->setName('Leaderboards:Check')
16
-             ->setDescription('Checks all leaderboards for updates');
16
+                ->setDescription('Checks all leaderboards for updates');
17 17
 
18 18
         global $container;
19 19
         $this->redis = $container->get('redis');
Please login to merge, or discard this patch.
src/Command/LeaderboardPlayersCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
     {
14 14
         parent::configure(); // See BaseCommand.php
15 15
         $this->setName('Leaderboards:Players')
16
-             ->setDescription('Processes player leaderboards')
17
-             ->addArgument(
16
+                ->setDescription('Processes player leaderboards')
17
+                ->addArgument(
18 18
                 'server',
19 19
                 InputArgument::REQUIRED
20
-             );
20
+                );
21 21
 
22 22
         global $container;
23 23
         $this->redis = $container->get('redis');
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                     $query->cols(['*']);
88 88
                     $query->from('ws_players_total');
89 89
                     if ($server != 0) {
90
-                         $query->where("playerServer = ?", $server);
90
+                            $query->where("playerServer = ?", $server);
91 91
                     }
92 92
                     $query->orderBy([$metric . ' DESC']);
93 93
                     $query->limit($limit);
Please login to merge, or discard this patch.
src/Command/TestCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
                 'Who do you want to greet?'
22 22
             )
23 23
             ->addOption(
24
-               'yell',
25
-               null,
26
-               InputOption::VALUE_NONE,
27
-               'If set, the task will yell in uppercase letters'
24
+                'yell',
25
+                null,
26
+                InputOption::VALUE_NONE,
27
+                'If set, the task will yell in uppercase letters'
28 28
             )
29 29
         ;
30 30
     }
Please login to merge, or discard this patch.
src/Command/DeleteAlertCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     {
19 19
         parent::configure(); // See BaseCommand.php
20 20
         $this->setName('DeleteAlert')
21
-             ->setDescription('Deletes an alert and corrects totals')
22
-             ->addArgument(
21
+                ->setDescription('Deletes an alert and corrects totals')
22
+                ->addArgument(
23 23
                 'alert',
24 24
                 InputArgument::REQUIRED,
25 25
                 'Alert ID to process'
Please login to merge, or discard this patch.
Controller/Endpoint/Leaderboards/LeaderboardLadderEndpointController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         if ($redis->exists($key)) {
56 56
             $data = json_decode($redis->get($key));
57 57
 
58
-             // Ignore if already flagged as being updated
58
+                // Ignore if already flagged as being updated
59 59
             if ($data->beingUpdated == 0) {
60 60
                 $data->forceUpdate = 1;
61 61
                 $redis->set($key, json_encode($data));
Please login to merge, or discard this patch.