Completed
Push — staging ( 49d4d2...31af54 )
by Matthew
03:26
created
src/ServiceProvider/TemplateServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
         $config = $this->getContainer()->get('config');
28 28
         $globals = [
29 29
             'base_url'  => $config['base_url'],
30
-            'asset_url' => $config['base_url'] . '/assets',
30
+            'asset_url' => $config['base_url'].'/assets',
31 31
             'env'       => $config['environment']
32 32
         ];
33 33
 
34 34
         // Register the singleton with the container
35
-        $this->getContainer()->share('Twig_Environment', function () use ($globals, $config) {
36
-            $loader = new Twig_Loader_Filesystem(__DIR__ . '/../../template');
35
+        $this->getContainer()->share('Twig_Environment', function() use ($globals, $config) {
36
+            $loader = new Twig_Loader_Filesystem(__DIR__.'/../../template');
37 37
             $twig   = new Twig_Environment($loader, [
38 38
                 'cache' => false,
39 39
                 'debug' => $config['environment'] === 'development' ? true : false
Please login to merge, or discard this patch.
src/ServiceProvider/ConfigServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register()
20 20
     {
21
-        $this->getContainer()->share('config', function () {
21
+        $this->getContainer()->share('config', function() {
22 22
             return [
23 23
                 'environment'    => $_ENV['ENV'],
24 24
                 'base_url'       => $_ENV['BASE_URL'],
Please login to merge, or discard this patch.
src/ServiceProvider/DatabaseServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function register()
25 25
     {
26
-        $this->getContainer()->share('Database', function () {
26
+        $this->getContainer()->share('Database', function() {
27 27
             $config = $this->getContainer()->get('config')['database'];
28 28
 
29 29
             $pdo = new ExtendedPdo(
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             return $pdo;
36 36
         });
37 37
 
38
-        $this->getContainer()->share('Database\Data', function () {
38
+        $this->getContainer()->share('Database\Data', function() {
39 39
             $config = $this->getContainer()->get('config')['database_data'];
40 40
 
41 41
             $pdo = new ExtendedPdo(
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             return $pdo;
48 48
         });
49 49
 
50
-        $this->getContainer()->share('Database\Archive', function () {
50
+        $this->getContainer()->share('Database\Archive', function() {
51 51
             $config = $this->getContainer()->get('config')['database_archive'];
52 52
 
53 53
             $pdo = new ExtendedPdo(
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             return $pdo;
60 60
         });
61 61
 
62
-        $this->getContainer()->add('Aura\SqlQuery\QueryFactory', function () {
62
+        $this->getContainer()->add('Aura\SqlQuery\QueryFactory', function() {
63 63
             return new QueryFactory('mysql');
64 64
         });
65 65
     }
Please login to merge, or discard this patch.
src/ServiceProvider/RedisServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function register()
25 25
     {
26
-        $this->getContainer()->add('redis', function () {
26
+        $this->getContainer()->add('redis', function() {
27 27
             $redisConfig = $this->getContainer()->get('config')['redis'];
28 28
 
29 29
             $args = [
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
                 'scheme'   => 'tcp',
34 34
             ];
35 35
 
36
-            if (! empty($redisConfig['pass'])) {
36
+            if (!empty($redisConfig['pass'])) {
37 37
                 $args['password'] = $redisConfig['pass'];
38 38
             }
39 39
 
Please login to merge, or discard this patch.
src/ServiceProvider/FractalServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function register()
21 21
     {
22
-        $this->getContainer()->share('League\Fractal\Manager', function () {
22
+        $this->getContainer()->share('League\Fractal\Manager', function() {
23 23
             return new Manager;
24 24
         });
25 25
     }
Please login to merge, or discard this patch.
src/ServiceProvider/LogServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function register()
23 23
     {
24
-        $this->getContainer()->share('Monolog\Logger', function () {
24
+        $this->getContainer()->share('Monolog\Logger', function() {
25 25
             $log = new Logger('app');
26 26
 
27 27
             $config = $this->getContainer()->get('config');
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             }
40 40
 
41 41
             $log->pushHandler(
42
-                new StreamHandler(__DIR__ . '/../../logs/app.log', Logger::DEBUG)
42
+                new StreamHandler(__DIR__.'/../../logs/app.log', Logger::DEBUG)
43 43
             );
44 44
 
45 45
             return $log;
Please login to merge, or discard this patch.
src/ServiceProvider/HttpClientServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function register()
21 21
     {
22
-        $this->getContainer()->add('GuzzleHttp\Client', function () {
22
+        $this->getContainer()->add('GuzzleHttp\Client', function() {
23 23
             return new Client([
24 24
                 'timeout' => 10.0
25 25
             ]);
Please login to merge, or discard this patch.
src/Command/DeleteMissingAlertsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $missing = 0;
41 41
         $max = $result->ResultID;
42 42
 
43
-        while($count < $max) {
43
+        while ($count < $max) {
44 44
             $count++;
45 45
 
46 46
             $per = round(($count / $max) * 100, 2);
Please login to merge, or discard this patch.
src/Command/LeaderboardCheckCommand.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             $data = json_decode($this->redis->get($key), true);
50 50
 
51 51
             if ($data['beingUpdated'] == 1) {
52
-                $output->writeln("Server {$server} is currently being updated. Deferring.");
52
+                $output->writeln("server {$server} is currently being updated. Deferring.");
53 53
                 continue;
54 54
             }
55 55
 
Please login to merge, or discard this patch.