Completed
Push — staging ( 83f973...0db769 )
by Matthew
02:32
created
src/Repository/AbstractEndpointRepository.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 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.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $key = $this->returnKeyType($keyType);
90 90
 
91 91
         $query->cols(['*'])
92
-              ->where("`{$key}` = '{$id}'");
92
+                ->where("`{$key}` = '{$id}'");
93 93
 
94 94
         return $this->fireStatementAndReturn($query, true);
95 95
     }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $key = $this->returnKeyType($keyType);
108 108
 
109 109
         $query->cols(['*'])
110
-              ->where("`{$key}` = '{$id}'");
110
+                ->where("`{$key}` = '{$id}'");
111 111
 
112 112
         return $this->fireStatementAndReturn($query);
113 113
     }
Please login to merge, or discard this patch.
tests/Endpoints/AlertControllerTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use GuzzleHttp\Client;
4
-use GuzzleHttp\Psr7\Request;
5
-use GuzzleHttp\Psr7\Response;
6 4
 
7 5
 class AlertControllerTest extends \PHPUnit_Framework_TestCase
8 6
 {
Please login to merge, or discard this patch.
src/container.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,21 +17,21 @@
 block discarded – undo
17 17
 
18 18
 // Inflectors
19 19
 $container->inflector('Ps2alerts\Api\Contract\ConfigAwareInterface')
20
-          ->invokeMethod('setConfig', ['config']);
20
+            ->invokeMethod('setConfig', ['config']);
21 21
 $container->inflector('Ps2alerts\Api\Contract\DatabaseAwareInterface')
22
-          ->invokeMethod('setDatabaseDriver', ['Aura\Sql']);
22
+            ->invokeMethod('setDatabaseDriver', ['Aura\Sql']);
23 23
 $container->inflector('Ps2alerts\Api\Contract\LogAwareInterface')
24
-          ->invokeMethod('setLogDriver', ['Monolog\Logger']);
24
+            ->invokeMethod('setLogDriver', ['Monolog\Logger']);
25 25
 $container->inflector('Ps2alerts\Api\Contract\TemplateAwareInterface')
26
-          ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
26
+            ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
27 27
 $container->inflector('Ps2alerts\Api\Contract\RedisAwareInterface')
28
-          ->invokeMethod('setRedisDriver', ['redis']);
28
+            ->invokeMethod('setRedisDriver', ['redis']);
29 29
 $container->inflector('Ps2alerts\Api\Contract\UuidAwareInterface')
30
-          ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']);
30
+            ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']);
31 31
 
32 32
 
33 33
 // Container Inflector
34 34
 $container->inflector('League\Container\ContainerAwareInterface')
35
-          ->invokeMethod('setContainer', [$container]);
35
+            ->invokeMethod('setContainer', [$container]);
36 36
 
37 37
 return $container;
Please login to merge, or discard this patch.