@@ -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; |
@@ -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)); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | /** |
12 | 12 | * Construct |
13 | 13 | * |
14 | - */ |
|
14 | + */ |
|
15 | 15 | public function __construct() |
16 | 16 | { |
17 | 17 |
@@ -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 | $this->alertRepo = $this->container->get('Ps2alerts\Api\Repository\AlertRepository'); |
23 | 23 | $this->alertProcessor = new DeleteAlertCommand(); |
@@ -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 | $this->redis = $this->container->get('redis'); |
23 | 23 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $query->cols(['*']); |
87 | 87 | $query->from('ws_players_total'); |
88 | 88 | if ($server != 0) { |
89 | - $query->where("playerServer = ?", $server); |
|
89 | + $query->where("playerServer = ?", $server); |
|
90 | 90 | } |
91 | 91 | $query->orderBy([$metric . ' DESC']); |
92 | 92 | $query->limit($limit); |
@@ -23,10 +23,10 @@ |
||
23 | 23 | 'Who do you want to greet?' |
24 | 24 | ) |
25 | 25 | ->addOption( |
26 | - 'yell', |
|
27 | - null, |
|
28 | - InputOption::VALUE_NONE, |
|
29 | - 'If set, the task will yell in uppercase letters' |
|
26 | + 'yell', |
|
27 | + null, |
|
28 | + InputOption::VALUE_NONE, |
|
29 | + 'If set, the task will yell in uppercase letters' |
|
30 | 30 | ) |
31 | 31 | ; |
32 | 32 | $this->config = $this->container->get('config'); |
@@ -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 | $this->redis = $this->container->get('redis'); |
19 | 19 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $query->cols(['*']); |
72 | 72 | $query->from('ws_players_total'); |
73 | 73 | if ($server !== 0) { |
74 | - $query->where('playerServer', $server); |
|
74 | + $query->where('playerServer', $server); |
|
75 | 75 | } |
76 | 76 | $query->orderBy([$metric . ' DESC']); |
77 | 77 | $query->limit($limit); |