Completed
Push — master ( 5f9089...abd117 )
by Matthew
02:38
created
src/container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 $container = new League\Container\Container;
4 4
 
5 5
 // Register the request object singleton to be used later in the request cyncle
6
-$container->singleton('Symfony\Component\HttpFoundation\Request', function () {
6
+$container->singleton('Symfony\Component\HttpFoundation\Request', function() {
7 7
     return Symfony\Component\HttpFoundation\Request::createFromGlobals();
8 8
 });
9 9
 
Please login to merge, or discard this patch.
src/ServiceProvider/TemplateServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
         ];
33 33
 
34 34
         // Register the singleton with the container
35
-        $this->getContainer()->singleton('Twig_Environment', function () use ($globals, $config) {
35
+        $this->getContainer()->singleton('Twig_Environment', function() use ($globals, $config) {
36 36
 
37 37
             $cache = false;
38 38
             $debug = true;
39 39
 
40 40
             if ($config['environment'] === "production" || $config['environment'] === "staging") {
41
-                $cache = __DIR__ .'/../../cache';
41
+                $cache = __DIR__ . '/../../cache';
42 42
                 $debug = false;
43 43
             }
44 44
 
Please login to merge, or discard this patch.
src/ServiceProvider/DatabaseServiceProvider.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()->singleton('Aura\Sql', function () {
22
+        $this->getContainer()->singleton('Aura\Sql', function() {
23 23
             $config = $this->getContainer()->get('config')['database'];
24 24
 
25 25
             $pdo = new ExtendedPdo(
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()->singleton('config', function () {
21
+        $this->getContainer()->singleton('config', function() {
22 22
             return include __DIR__ . '/../../config/config.php';
23 23
         });
24 24
     }
Please login to merge, or discard this patch.
src/ServiceProvider/RedisServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function register()
25 25
     {
26
-        $this->getContainer()->singleton('redis', function () {
26
+        $this->getContainer()->singleton('redis', function() {
27 27
             $redisConfig = $this->getContainer()->get('config')['redis'];
28 28
 
29 29
             $client = new Client([
Please login to merge, or discard this patch.
src/Controller/EndpointBaseController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use League\Route\Http\JsonResponse as Response;
6 6
 use Ps2alerts\Api\Controller\EndpointBaseController;
7
-use Ps2alerts\Api\QueryObjects\QueryObject;
8 7
 use Ps2alerts\Api\Loader\ResultLoader;
9 8
 use Symfony\Component\HttpFoundation\Request;
10 9
 
Please login to merge, or discard this patch.
src/Loader/Metrics/AbstractMetricsLoader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     {
26 26
         $redisKey = "{$this->getCacheNamespace()}{$id}:{$this->getType()}";
27 27
 
28
-        if (! empty($this->getMetrics())) {
28
+        if (!empty($this->getMetrics())) {
29 29
             foreach ($this->getMetrics() as $metric) {
30 30
                 $redisKey .= ":{$metric['col']}{$op}{$metric['value']}";
31 31
             }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             'value' => $id
42 42
         ]);
43 43
 
44
-        if (! empty($this->getMetrics())) {
44
+        if (!empty($this->getMetrics())) {
45 45
             foreach ($this->getMetrics() as $metric) {
46 46
                 $op = (isset($metric['op']) ? $metric['op'] : '=');
47 47
                 $queryObject->addWhere([
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function setMetrics($metric)
67 67
     {
68
-        if (! empty($metric)) {
68
+        if (!empty($metric)) {
69 69
             // Don't allow setting if the proper data isn't there.
70 70
             // Prevents and kind of errors later on.
71
-            if (! empty($metric['col']) && ! empty($metric['value'])) {
71
+            if (!empty($metric['col']) && !empty($metric['value'])) {
72 72
                 $this->metrics[] = $metric;
73 73
             }
74 74
         }
Please login to merge, or discard this patch.
src/Controller/Alerts/AlertEndpointController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use League\Route\Http\JsonResponse as Response;
6 6
 use Ps2alerts\Api\Controller\EndpointBaseController;
7
-use Ps2alerts\Api\QueryObjects\QueryObject;
8 7
 use Ps2alerts\Api\Loader\ResultLoader;
9 8
 use Symfony\Component\HttpFoundation\Request;
10 9
 
Please login to merge, or discard this patch.
src/Loader/Statistics/OutfitTotalsStatisticsLoader.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use League\Route\Http\JsonResponse as Response;
6 6
 use Ps2alerts\Api\Controller\EndpointBaseController;
7
-use Ps2alerts\Api\QueryObjects\QueryObject;
8 7
 use Ps2alerts\Api\Loader\ResultLoader;
9 8
 use Symfony\Component\HttpFoundation\Request;
10 9
 
Please login to merge, or discard this patch.