@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Create a new message search |
| 35 | 35 | * |
| 36 | - * @param MessageQueryBuilder $queryBuilder The MySQL query builder for messages |
|
| 37 | - * @param Player|null $player The player to make the search for |
|
| 36 | + * @param \MessageQueryBuilder $queryBuilder The MySQL query builder for messages |
|
| 37 | + * @param null|\Player $player The player to make the search for |
|
| 38 | 38 | */ |
| 39 | 39 | public function __construct(\MessageQueryBuilder $queryBuilder, \Player $player = null) |
| 40 | 40 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | /** |
| 97 | 97 | * Perform a search on messages using the data stored in the MySQL database |
| 98 | 98 | * |
| 99 | - * @param string $query The query string |
|
| 99 | + * @param string $search |
|
| 100 | 100 | * @return Message[] The results of the search |
| 101 | 101 | */ |
| 102 | 102 | private function mysqlSearch($search) |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
| 216 | - * @param $kernel |
|
| 216 | + * @param AppKernel $kernel |
|
| 217 | 217 | */ |
| 218 | 218 | public static function setKernel($kernel) |
| 219 | 219 | { |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | /** |
| 232 | - * @return bool |
|
| 232 | + * @return string |
|
| 233 | 233 | */ |
| 234 | 234 | public static function isDebug() |
| 235 | 235 | { |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | * Useful for form validation |
| 148 | 148 | * |
| 149 | 149 | * @param string $property The name of the property to change |
| 150 | - * @param mixed $value The value of the property |
|
| 150 | + * @param string $value The value of the property |
|
| 151 | 151 | * @return self |
| 152 | 152 | */ |
| 153 | 153 | protected function inject($property, $value) |
@@ -471,7 +471,7 @@ |
||
| 471 | 471 | * Set the server address of the server where this match took place |
| 472 | 472 | * |
| 473 | 473 | * @param string|null $server The server hostname |
| 474 | - * @param int|null $port The server port |
|
| 474 | + * @param integer $port The server port |
|
| 475 | 475 | * @return self |
| 476 | 476 | */ |
| 477 | 477 | public function setServerAddress($server = null, $port = 5154) |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | * Get the player list of a team |
| 161 | 161 | * |
| 162 | 162 | * @param FormInterface $team A MatchTeamType form |
| 163 | - * @return array |
|
| 163 | + * @return integer[] |
|
| 164 | 164 | */ |
| 165 | 165 | private function getPlayerList(FormInterface $team) |
| 166 | 166 | { |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | - * @param string|Permission $perm_name |
|
| 114 | + * @param string $perm_name |
|
| 115 | 115 | * @return Permission |
| 116 | 116 | */ |
| 117 | 117 | public static function getPermissionFromName($perm_name) |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | * @param string $table The database table that will be searched |
| 253 | 253 | * @param string|string[] $select The column that will be returned |
| 254 | 254 | * |
| 255 | - * @return mixed[] A list of values, if $select was only one column, or the return array of $db->query if it was more |
|
| 255 | + * @return integer[] A list of values, if $select was only one column, or the return array of $db->query if it was more |
|
| 256 | 256 | */ |
| 257 | 257 | protected static function fetchIds($additional_query = '', $types = '', $params = array(), $table = "", $select = 'id') |
| 258 | 258 | { |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | * @param array|mixed $possible_values List of acceptable values |
| 293 | 293 | * @param string $type The type of the values in $possible_values (can be `s`, `i`, `d` or `b`) |
| 294 | 294 | * @param bool $negate Whether to search if the value of $column does NOT belong to the $possible_values array |
| 295 | - * @param string|string[] $select The name of the column(s) that the returned array should contain |
|
| 295 | + * @param string $select The name of the column(s) that the returned array should contain |
|
| 296 | 296 | * @param string $additional_query Additional parameters to be passed to the MySQL query (e.g. `WHERE id = 5`) |
| 297 | 297 | * @param string $table The database table which will be used for queries |
| 298 | 298 | * |
@@ -269,6 +269,7 @@ discard block |
||
| 269 | 269 | * |
| 270 | 270 | * @param string $error The error string |
| 271 | 271 | * @param int $id The error ID |
| 272 | + * @param PDOException $previous |
|
| 272 | 273 | * |
| 273 | 274 | * @throws Exception |
| 274 | 275 | */ |
@@ -295,7 +296,7 @@ discard block |
||
| 295 | 296 | * |
| 296 | 297 | * Prevents PDO from being erroneously serialized |
| 297 | 298 | * |
| 298 | - * @return array The list of properties that should be serialized |
|
| 299 | + * @return string[] The list of properties that should be serialized |
|
| 299 | 300 | */ |
| 300 | 301 | public function __sleep() |
| 301 | 302 | { |
@@ -121,6 +121,8 @@ |
||
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | 123 | * {@inheritdoc} |
| 124 | + * @param \Symfony\Component\Form\FormInterface $form |
|
| 125 | + * @param \Player $player |
|
| 124 | 126 | */ |
| 125 | 127 | public function update($form, $player) |
| 126 | 128 | { |