@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | /** |
| 13 | 13 | * Construct |
| 14 | 14 | * |
| 15 | - * @param \Ps2alerts\Api\Loader\Metrics\OutfitTotalsStatisticsLoader $loader |
|
| 15 | + * @param OutfitTotalsStatisticsLoader $loader |
|
| 16 | 16 | */ |
| 17 | 17 | public function __construct(OutfitTotalsStatisticsLoader $loader) |
| 18 | 18 | { |
@@ -23,7 +23,6 @@ discard block |
||
| 23 | 23 | * Returns top X entries |
| 24 | 24 | * |
| 25 | 25 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 26 | - * @param array $args |
|
| 27 | 26 | * |
| 28 | 27 | * @return \League\Route\Http\JsonResponse |
| 29 | 28 | */ |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Construct |
| 14 | 14 | * |
| 15 | - * @param \Ps2alerts\Api\Loader\Metrics\PlayerStatisticsLoader $loader |
|
| 15 | + * @param PlayerStatisticsLoader $loader |
|
| 16 | 16 | */ |
| 17 | 17 | public function __construct(PlayerStatisticsLoader $loader) |
| 18 | 18 | { |
@@ -77,7 +77,6 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * Gets the Cache namespace key for Redis |
| 79 | 79 | * |
| 80 | - * @param string $string |
|
| 81 | 80 | */ |
| 82 | 81 | public function getCacheNamespace() |
| 83 | 82 | { |
@@ -128,7 +127,7 @@ discard block |
||
| 128 | 127 | * Checks for a key within Redis and returns it's existance |
| 129 | 128 | * |
| 130 | 129 | * @param string $key |
| 131 | - * @return boolean |
|
| 130 | + * @return false|null |
|
| 132 | 131 | */ |
| 133 | 132 | public function checkRedis($key) |
| 134 | 133 | { |
@@ -155,7 +154,7 @@ discard block |
||
| 155 | 154 | * Sets JSON encoded value within Redis with an expiry in seconds |
| 156 | 155 | * |
| 157 | 156 | * @param string $key |
| 158 | - * @param mixed $value Data to encode into JSON and store |
|
| 157 | + * @param string $value Data to encode into JSON and store |
|
| 159 | 158 | * @param integer $expires Cache expiry time in seconds |
| 160 | 159 | */ |
| 161 | 160 | public function setExpireKey($key, $value, $expires) |
@@ -91,6 +91,9 @@ |
||
| 91 | 91 | ); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | + /** |
|
| 95 | + * @param string $field |
|
| 96 | + */ |
|
| 94 | 97 | public function validatePostVars($field, $value) |
| 95 | 98 | { |
| 96 | 99 | if ($field === 'metric' && ! empty($value)) { |
@@ -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 | { |
@@ -15,24 +15,24 @@ |
||
| 15 | 15 | |
| 16 | 16 | // Inflectors |
| 17 | 17 | $container->inflector('Ps2alerts\Api\Contract\ConfigAwareInterface') |
| 18 | - ->invokeMethod('setConfig', ['config']); |
|
| 18 | + ->invokeMethod('setConfig', ['config']); |
|
| 19 | 19 | $container->inflector('Ps2alerts\Api\Contract\DatabaseAwareInterface') |
| 20 | - ->invokeMethod('setDatabaseDriver', ['Aura\Sql']); |
|
| 20 | + ->invokeMethod('setDatabaseDriver', ['Aura\Sql']); |
|
| 21 | 21 | $container->inflector('Ps2alerts\Api\Contract\TemplateAwareInterface') |
| 22 | - ->invokeMethod('setTemplateDriver', ['Twig_Environment']); |
|
| 22 | + ->invokeMethod('setTemplateDriver', ['Twig_Environment']); |
|
| 23 | 23 | $container->inflector('Ps2alerts\Api\Contract\RedisAwareInterface') |
| 24 | - ->invokeMethod('setRedisDriver', ['redis']); |
|
| 24 | + ->invokeMethod('setRedisDriver', ['redis']); |
|
| 25 | 25 | |
| 26 | 26 | $container->add('Ps2alerts\Api\Validator\AlertInputValidator'); |
| 27 | 27 | |
| 28 | 28 | $container->add('Ps2alerts\Api\Repository\AlertRepository'); |
| 29 | 29 | |
| 30 | 30 | $container->add('Ps2alerts\Api\Loader\Statistics\AlertStatisticsLoader') |
| 31 | - ->withArgument('Ps2alerts\Api\Repository\AlertRepository') |
|
| 32 | - ->withArgument('Ps2alerts\Api\Validator\AlertInputValidator'); |
|
| 31 | + ->withArgument('Ps2alerts\Api\Repository\AlertRepository') |
|
| 32 | + ->withArgument('Ps2alerts\Api\Validator\AlertInputValidator'); |
|
| 33 | 33 | |
| 34 | 34 | // Container Inflector |
| 35 | 35 | $container->inflector('League\Container\ContainerAwareInterface') |
| 36 | - ->invokeMethod('setContainer', [$container]); |
|
| 36 | + ->invokeMethod('setContainer', [$container]); |
|
| 37 | 37 | |
| 38 | 38 | return $container; |