Completed
Push — staging ( c98731...3557fd )
by Matthew
02:36 queued 58s
created
src/Command/DeleteMissingAlertsCommand.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this 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
         $this->alertRepo = $this->container->get('Ps2alerts\Api\Repository\AlertRepository');
23 23
         $this->alertProcessor = new DeleteAlertCommand();
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/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
         $this->redis = $this->container->get('redis');
23 23
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
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);
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
         $this->redis = $this->container->get('redis');
19 19
         $this->config = $this->container->get('config');
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
@@ -23,10 +23,10 @@
 block discarded – undo
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');
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
         $this->redis = $this->container->get('redis');
19 19
     }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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);
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.