@@ -13,7 +13,7 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * Returns a single entry |
| 15 | 15 | * |
| 16 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 16 | + * @param Request $request |
|
| 17 | 17 | * @param array $args |
| 18 | 18 | * |
| 19 | 19 | * @return \League\Route\Http\JsonResponse |
@@ -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 | /** |
@@ -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) |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * Returns a single entry |
| 15 | 15 | * |
| 16 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 16 | + * @param Request $request |
|
| 17 | 17 | * @param array $args |
| 18 | 18 | * |
| 19 | 19 | * @return \League\Route\Http\JsonResponse |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * Returns a single entry |
| 15 | 15 | * |
| 16 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 16 | + * @param Request $request |
|
| 17 | 17 | * @param array $args |
| 18 | 18 | * |
| 19 | 19 | * @return \League\Route\Http\JsonResponse |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * Returns a single entry |
| 15 | 15 | * |
| 16 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
| 16 | + * @param Request $request |
|
| 17 | 17 | * @param array $args |
| 18 | 18 | * |
| 19 | 19 | * @return \League\Route\Http\JsonResponse |
@@ -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 | { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * Construct |
| 18 | 18 | * |
| 19 | - * @param \Ps2alerts\Api\Repository\Metrics\OutfitTotalsRepository $repository |
|
| 19 | + * @param OutfitTotalsRepository $repository |
|
| 20 | 20 | */ |
| 21 | 21 | public function __construct(OutfitTotalsRepository $repository) |
| 22 | 22 | { |
@@ -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)) { |