@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | |
| 380 | 380 | /** |
| 381 | 381 | * Get all of the callsigns a player has used to log in to the website |
| 382 | - * @return string[] An array containing all of the past callsigns recorded for a player |
|
| 382 | + * @return integer[] An array containing all of the past callsigns recorded for a player |
|
| 383 | 383 | */ |
| 384 | 384 | public function getPastCallsigns() |
| 385 | 385 | { |
@@ -871,7 +871,7 @@ discard block |
||
| 871 | 871 | |
| 872 | 872 | /** |
| 873 | 873 | * Get the (victory/total matches) ratio of the player |
| 874 | - * @return float |
|
| 874 | + * @return integer |
|
| 875 | 875 | */ |
| 876 | 876 | public function getMatchWinRatio() |
| 877 | 877 | { |
@@ -66,6 +66,9 @@ discard block |
||
| 66 | 66 | self::$qbConfig = $config; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @return null|Connection |
|
| 71 | + */ |
|
| 69 | 72 | public static function getQueryBuilderConnection() |
| 70 | 73 | { |
| 71 | 74 | if (!self::$qbConnection) { |
@@ -119,7 +122,7 @@ discard block |
||
| 119 | 122 | * Gets a parameter |
| 120 | 123 | * |
| 121 | 124 | * @param string $name The parameter name |
| 122 | - * @return mixed The parameter value |
|
| 125 | + * @return string The parameter value |
|
| 123 | 126 | */ |
| 124 | 127 | public static function getParameter($name) |
| 125 | 128 | { |
@@ -229,7 +232,7 @@ discard block |
||
| 229 | 232 | } |
| 230 | 233 | |
| 231 | 234 | /** |
| 232 | - * @param $kernel |
|
| 235 | + * @param AppKernel $kernel |
|
| 233 | 236 | */ |
| 234 | 237 | public static function setKernel($kernel) |
| 235 | 238 | { |
@@ -1,11 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | use BZIon\Event\Events; |
| 4 | -use BZIon\Event\TeamInviteEvent; |
|
| 5 | 4 | use BZIon\Event\TeamJoinEvent; |
| 6 | 5 | use BZIon\Form\Creator\InvitationFormCreator; |
| 7 | 6 | use Symfony\Component\HttpFoundation\RedirectResponse; |
| 8 | -use Symfony\Component\HttpFoundation\Response; |
|
| 9 | 7 | |
| 10 | 8 | class InvitationController extends CRUDController |
| 11 | 9 | { |
@@ -87,6 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * {@inheritdoc} |
| 90 | + * @param \Symfony\Component\Form\Form $form |
|
| 90 | 91 | */ |
| 91 | 92 | public function enter($form) |
| 92 | 93 | { |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | * Counts the elements of the database that match a specific query |
| 264 | 264 | * |
| 265 | 265 | * @param string $additional_query The MySQL query string (e.g. `WHERE id = ?`) |
| 266 | - * @param array $params The parameter values that will be passed to Database::query() |
|
| 266 | + * @param integer $params The parameter values that will be passed to Database::query() |
|
| 267 | 267 | * @param string $table The database table that will be searched, defaults to the model's table |
| 268 | 268 | * @param string $column Only count the entries where `$column` is not `NULL` (or all if `$column` is `*`) |
| 269 | 269 | * @return int |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | * @param string $column The name of the column that should be tested |
| 330 | 330 | * @param array|mixed $possible_values List of acceptable values |
| 331 | 331 | * @param bool $negate Whether to search if the value of $column does NOT belong to the $possible_values array |
| 332 | - * @param string|string[] $select The name of the column(s) that the returned array should contain |
|
| 332 | + * @param string $select The name of the column(s) that the returned array should contain |
|
| 333 | 333 | * @param string $additional_query Additional parameters to be passed to the MySQL query (e.g. `WHERE id = 5`) |
| 334 | 334 | * @param string $table The database table which will be used for queries |
| 335 | 335 | * |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | * @deprecated 0.10.2 This function has been removed and is no longer required with the new query builder |
| 401 | 401 | * |
| 402 | 402 | * @param string|null $prefix The table name or SQL alias to be prepend to these columns |
| 403 | - * @param array $columns The columns to format |
|
| 403 | + * @param string[] $columns The columns to format |
|
| 404 | 404 | * |
| 405 | 405 | * @return string |
| 406 | 406 | */ |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | * |
| 461 | 461 | * @since 0.11.0 |
| 462 | 462 | * |
| 463 | - * @return array |
|
| 463 | + * @return string[] |
|
| 464 | 464 | */ |
| 465 | 465 | public static function getEagerColumnsList() |
| 466 | 466 | { |
@@ -120,6 +120,7 @@ discard block |
||
| 120 | 120 | /** |
| 121 | 121 | * {@inheritdoc} |
| 122 | 122 | * |
| 123 | + * @param integer $limit |
|
| 123 | 124 | * @return static |
| 124 | 125 | */ |
| 125 | 126 | public function limit($limit): IQueryBuilderHandler |
@@ -214,7 +215,7 @@ discard block |
||
| 214 | 215 | /** |
| 215 | 216 | * Request that a specific model is not returned. |
| 216 | 217 | * |
| 217 | - * @param Model|int $model The ID or model you don't want to get |
|
| 218 | + * @param Player $model The ID or model you don't want to get |
|
| 218 | 219 | * |
| 219 | 220 | * @return static |
| 220 | 221 | */ |
@@ -232,7 +233,7 @@ discard block |
||
| 232 | 233 | /** |
| 233 | 234 | * Find the first matching model in the database or return an invalid model. |
| 234 | 235 | * |
| 235 | - * @param mixed $value The value to search for |
|
| 236 | + * @param string $value The value to search for |
|
| 236 | 237 | * @param string $columnName The column name we'll be checking |
| 237 | 238 | * |
| 238 | 239 | * @throws \Pecee\Pixie\Exception |