@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * in the array and added to. |
| 50 | 50 | * e.g. $queryObject->addSelect('COUNT(ResultID) AS COUNT'); |
| 51 | 51 | * |
| 52 | - * @param string $string |
|
| 52 | + * @param string $array |
|
| 53 | 53 | */ |
| 54 | 54 | public function addSelect($array) |
| 55 | 55 | { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | /** |
| 172 | 172 | * Allows setting of workaround flags |
| 173 | 173 | * |
| 174 | - * @param array|string $flags |
|
| 174 | + * @param string $flags |
|
| 175 | 175 | */ |
| 176 | 176 | public function setFlags($flags) |
| 177 | 177 | { |
@@ -150,10 +150,10 @@ |
||
| 150 | 150 | * Takes common requests and appends them to the query object. Any other |
| 151 | 151 | * special requirements will be handled after |
| 152 | 152 | * |
| 153 | - * @param Ps2alerts\Api\QueryObjects\QueryObject $queryObject |
|
| 153 | + * @param QueryObject $queryObject |
|
| 154 | 154 | * @param array $post |
| 155 | 155 | * |
| 156 | - * @return Ps2alerts\Api\QueryObjects\QueryObject |
|
| 156 | + * @return QueryObject |
|
| 157 | 157 | */ |
| 158 | 158 | public function setupQueryObject(QueryObject $queryObject, array $post) |
| 159 | 159 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * Construct |
| 25 | 25 | * |
| 26 | 26 | * @param \Ps2alerts\Api\Repository\AlertRepository $repository |
| 27 | - * @param \Ps2alerts\Api\Helper\DataFormatter $dataFormatter |
|
| 27 | + * @param DataFormatterHelper $dataFormatter |
|
| 28 | 28 | */ |
| 29 | 29 | public function __construct( |
| 30 | 30 | AlertRepository $repository, |
@@ -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,11 +35,11 @@ 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\Helper\DataFormatterHelper'); |
|
| 38 | + ->withArgument('Ps2alerts\Api\Repository\AlertRepository') |
|
| 39 | + ->withArgument('Ps2alerts\Api\Helper\DataFormatterHelper'); |
|
| 40 | 40 | |
| 41 | 41 | // Container Inflector |
| 42 | 42 | $container->inflector('League\Container\ContainerAwareInterface') |
| 43 | - ->invokeMethod('setContainer', [$container]); |
|
| 43 | + ->invokeMethod('setContainer', [$container]); |
|
| 44 | 44 | |
| 45 | 45 | return $container; |