@@ -1,8 +1,6 @@ |
||
| 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 | { |
@@ -89,7 +89,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -18,22 +18,22 @@ |
||
| 18 | 18 | |
| 19 | 19 | // Inflectors |
| 20 | 20 | $container->inflector('Ps2alerts\Api\Contract\ConfigAwareInterface') |
| 21 | - ->invokeMethod('setConfig', ['config']); |
|
| 21 | + ->invokeMethod('setConfig', ['config']); |
|
| 22 | 22 | $container->inflector('Ps2alerts\Api\Contract\DatabaseAwareInterface') |
| 23 | - ->invokeMethod('setDatabaseDriver', ['Database']) |
|
| 24 | - ->invokeMethod('setDatabaseDataDriver', ['Database\Data']); |
|
| 23 | + ->invokeMethod('setDatabaseDriver', ['Database']) |
|
| 24 | + ->invokeMethod('setDatabaseDataDriver', ['Database\Data']); |
|
| 25 | 25 | $container->inflector('Ps2alerts\Api\Contract\LogAwareInterface') |
| 26 | - ->invokeMethod('setLogDriver', ['Monolog\Logger']); |
|
| 26 | + ->invokeMethod('setLogDriver', ['Monolog\Logger']); |
|
| 27 | 27 | $container->inflector('Ps2alerts\Api\Contract\TemplateAwareInterface') |
| 28 | - ->invokeMethod('setTemplateDriver', ['Twig_Environment']); |
|
| 28 | + ->invokeMethod('setTemplateDriver', ['Twig_Environment']); |
|
| 29 | 29 | $container->inflector('Ps2alerts\Api\Contract\RedisAwareInterface') |
| 30 | - ->invokeMethod('setRedisDriver', ['redis']); |
|
| 30 | + ->invokeMethod('setRedisDriver', ['redis']); |
|
| 31 | 31 | $container->inflector('Ps2alerts\Api\Contract\UuidAwareInterface') |
| 32 | - ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']); |
|
| 32 | + ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']); |
|
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 | // Container Inflector |
| 36 | 36 | $container->inflector('League\Container\ContainerAwareInterface') |
| 37 | - ->invokeMethod('setContainer', [$container]); |
|
| 37 | + ->invokeMethod('setContainer', [$container]); |
|
| 38 | 38 | |
| 39 | 39 | return $container; |