@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Ps2alerts\Api\Command\BaseCommand; |
6 | 6 | use Ps2alerts\Api\Repository\AlertRepository; |
7 | -use Symfony\Component\Console\Input\InputArgument; |
|
8 | 7 | use Symfony\Component\Console\Input\InputInterface; |
9 | 8 | use Symfony\Component\Console\Output\OutputInterface; |
10 | 9 |
@@ -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(); |
@@ -9,15 +9,15 @@ |
||
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 |
@@ -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); |
@@ -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 | $this->redis = $this->container->get('redis'); |
19 | 19 | $this->config = $this->container->get('config'); |
@@ -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); |
@@ -11,7 +11,7 @@ |
||
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'); |