| @@ -4,7 +4,6 @@ | ||
| 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 | |
| @@ -10,10 +10,10 @@ | ||
| 10 | 10 | use RedisAwareTrait; | 
| 11 | 11 | |
| 12 | 12 | /** | 
| 13 | - * Flag whether or not the result is allowed to be cached | |
| 14 | - * | |
| 15 | - * @var boolean | |
| 16 | - */ | |
| 13 | + * Flag whether or not the result is allowed to be cached | |
| 14 | + * | |
| 15 | + * @var boolean | |
| 16 | + */ | |
| 17 | 17 | |
| 18 | 18 | protected $cacheable = true; | 
| 19 | 19 | /** | 
| @@ -4,7 +4,6 @@ | ||
| 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 | |
| @@ -4,7 +4,6 @@ | ||
| 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 | |
| @@ -5,7 +5,6 @@ | ||
| 5 | 5 | use Ps2alerts\Api\Loader\Statistics\AbstractStatisticsLoader; | 
| 6 | 6 | use Ps2alerts\Api\QueryObjects\QueryObject; | 
| 7 | 7 | use Ps2alerts\Api\Repository\AlertRepository; | 
| 8 | -use Ps2alerts\Api\Validator\AlertInputValidator; | |
| 9 | 8 | use Ps2alerts\Api\Helper\DataFormatterHelper; | 
| 10 | 9 | |
| 11 | 10 | class AlertStatisticsLoader extends AbstractStatisticsLoader | 
| @@ -17,17 +17,17 @@ discard block | ||
| 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 | // Repositories | 
| 33 | 33 |  $container->add('Ps2alerts\Api\Repository\AlertRepository'); | 
| @@ -35,12 +35,12 @@ discard block | ||
| 35 | 35 |  $container->add('Ps2alerts\Api\Helper\DataFormatterHelper'); | 
| 36 | 36 | |
| 37 | 37 |  $container->add('Ps2alerts\Api\Loader\Statistics\AlertStatisticsLoader') | 
| 38 | -          ->withArgument('Ps2alerts\Api\Repository\AlertRepository') | |
| 39 | -          ->withArgument('Ps2alerts\Api\Loader\Metrics\MapMetricsLoader') | |
| 40 | -          ->withArgument('Ps2alerts\Api\Helper\DataFormatterHelper'); | |
| 38 | +            ->withArgument('Ps2alerts\Api\Repository\AlertRepository') | |
| 39 | +            ->withArgument('Ps2alerts\Api\Loader\Metrics\MapMetricsLoader') | |
| 40 | +            ->withArgument('Ps2alerts\Api\Helper\DataFormatterHelper'); | |
| 41 | 41 | |
| 42 | 42 | // Container Inflector | 
| 43 | 43 |  $container->inflector('League\Container\ContainerAwareInterface') | 
| 44 | -          ->invokeMethod('setContainer', [$container]); | |
| 44 | +            ->invokeMethod('setContainer', [$container]); | |
| 45 | 45 | |
| 46 | 46 | return $container; |