@@ -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 | { |
@@ -90,6 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * {@inheritdoc} |
| 93 | + * @param integer $limit |
|
| 93 | 94 | */ |
| 94 | 95 | public function limit($limit): IQueryBuilderHandler |
| 95 | 96 | { |
@@ -197,7 +198,7 @@ discard block |
||
| 197 | 198 | /** |
| 198 | 199 | * Find the first matching model in the database or return an invalid model. |
| 199 | 200 | * |
| 200 | - * @param mixed $value The value to search for |
|
| 201 | + * @param string $value The value to search for |
|
| 201 | 202 | * @param string $columnName The column name we'll be checking |
| 202 | 203 | * |
| 203 | 204 | * @throws \Pecee\Pixie\Exception |