@@ -122,6 +122,8 @@ |
||
122 | 122 | |
123 | 123 | /** |
124 | 124 | * {@inheritdoc} |
125 | + * @param \Symfony\Component\Form\Form $form |
|
126 | + * @param \Player $player |
|
125 | 127 | */ |
126 | 128 | public function update($form, $player) |
127 | 129 | { |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | protected $types; |
14 | 14 | |
15 | 15 | /** |
16 | - * @param string[] $type The types of the models |
|
16 | + * @param string[] $types The types of the models |
|
17 | 17 | */ |
18 | 18 | public function __construct(array $types) |
19 | 19 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * Transforms an object (model) to the form representation |
29 | 29 | * |
30 | - * @param Model|null $model |
|
30 | + * @param Model|null $models |
|
31 | 31 | * @return array |
32 | 32 | */ |
33 | 33 | public function transform($models) |
@@ -101,10 +101,9 @@ discard block |
||
101 | 101 | /** |
102 | 102 | * Transform JSON data provided by javascript to a list of Models |
103 | 103 | * |
104 | - * @param string $json The JSON provided to us by javascript, containing |
|
105 | - * a list of Model IDs and types |
|
106 | 104 | * @param array $include An array of Models of each type that will be |
107 | 105 | * included in the final result |
106 | + * @param string $data |
|
108 | 107 | * @return bool|Model[] A list of models, or false if the data was not |
109 | 108 | * provided by javascript as JSON |
110 | 109 | */ |
@@ -111,6 +111,7 @@ |
||
111 | 111 | |
112 | 112 | /** |
113 | 113 | * {@inheritdoc} |
114 | + * @param string $types |
|
114 | 115 | */ |
115 | 116 | protected static function create($params, $types, $now = null, $table = '') |
116 | 117 | { |
@@ -298,7 +298,7 @@ |
||
298 | 298 | /** |
299 | 299 | * Request that a specific model is not returned |
300 | 300 | * |
301 | - * @param Model|int $model The ID or model you don't want to get |
|
301 | + * @param Player $model The ID or model you don't want to get |
|
302 | 302 | * @return self |
303 | 303 | */ |
304 | 304 | public function except($model) |
@@ -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 | { |