@@ -20,9 +20,9 @@ discard block |
||
| 20 | 20 | /** |
| 21 | 21 | * Construct |
| 22 | 22 | * |
| 23 | - * @param Ps2alerts\Api\Repository\AlertRepository $repository |
|
| 24 | - * @param Ps2alerts\Api\Transformer\AlertTransformer $transformer |
|
| 25 | - * @param League\Fractal\Manager $fractal |
|
| 23 | + * @param AlertRepository $repository |
|
| 24 | + * @param AlertTransformer $transformer |
|
| 25 | + * @param Manager $fractal |
|
| 26 | 26 | */ |
| 27 | 27 | public function __construct( |
| 28 | 28 | AlertRepository $repository, |
@@ -37,10 +37,10 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Returns the victories of each faction and the totals |
| 39 | 39 | * |
| 40 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 41 | - * @param Symfony\Component\HttpFoundation\Response $response |
|
| 40 | + * @param Request $request |
|
| 41 | + * @param Response $response |
|
| 42 | 42 | * |
| 43 | - * @return array |
|
| 43 | + * @return Response |
|
| 44 | 44 | */ |
| 45 | 45 | public function getVictories(Request $request, Response $response) |
| 46 | 46 | { |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 54 | 54 | * @param \Symfony\Component\HttpFoundation\Response $response |
| 55 | 55 | * |
| 56 | - * @return array |
|
| 56 | + * @return Response |
|
| 57 | 57 | */ |
| 58 | 58 | public function getDominations(Request $request, Response $response) |
| 59 | 59 | { |
@@ -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; |