@@ -184,7 +184,7 @@ discard block |
||
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 |
||
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 | } |
@@ -19,43 +19,43 @@ |
||
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; |
@@ -17,7 +17,7 @@ |
||
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'); |
@@ -13,7 +13,7 @@ discard block |
||
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 |
||
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); |
@@ -13,7 +13,7 @@ |
||
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'); |
@@ -13,11 +13,11 @@ discard block |
||
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 |
||
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); |
@@ -21,10 +21,10 @@ |
||
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 | } |
@@ -18,8 +18,8 @@ |
||
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' |
@@ -55,7 +55,7 @@ |
||
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)); |