Completed
Pull Request — master (#186)
by Vladimir
10:46
created
models/Match.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1326,7 +1326,7 @@
 block discarded – undo
1326 1326
      *
1327 1327
      * @param int[]|Player[] $players
1328 1328
      *
1329
-     * @return float|int
1329
+     * @return integer
1330 1330
      */
1331 1331
     private static function getAveragePlayerElo($players)
1332 1332
     {
Please login to merge, or discard this patch.
models/Player.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
 
622 622
     /**
623 623
      * Get all of the callsigns a player has used to log in to the website
624
-     * @return string[] An array containing all of the past callsigns recorded for a player
624
+     * @return integer[] An array containing all of the past callsigns recorded for a player
625 625
      */
626 626
     public function getPastCallsigns()
627 627
     {
@@ -1176,7 +1176,7 @@  discard block
 block discarded – undo
1176 1176
 
1177 1177
     /**
1178 1178
      * Get the (victory/total matches) ratio of the player
1179
-     * @return float
1179
+     * @return integer
1180 1180
      */
1181 1181
     public function getMatchWinRatio()
1182 1182
     {
@@ -1309,6 +1309,7 @@  discard block
 block discarded – undo
1309 1309
 
1310 1310
     /**
1311 1311
      * {@inheritdoc}
1312
+     * @param string $prefix
1312 1313
      */
1313 1314
     public static function getEagerColumns($prefix = null)
1314 1315
     {
Please login to merge, or discard this patch.
controllers/LeagueOverseerHookController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
      * @param string $parameter The query parameter to get and split
253 253
      * @param string $delimiter A delimiter for splitting the string
254 254
      *
255
-     * @return array
255
+     * @return string[]
256 256
      */
257 257
     private function explodeQueryParam($parameter, $delimiter = ',')
258 258
     {
Please login to merge, or discard this patch.
src/Composer/ScriptHandler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * booting
44 44
      *
45 45
      * @param $event Event       Composer's event
46
-     * @param $env   string|null The environment to clear the cache for, 'all'
46
+     * @param string $env   string|null The environment to clear the cache for, 'all'
47 47
      *                           to clear the cache for all environments, null
48 48
      *                           to pick an environment based on command line
49 49
      *                           arguments (defaults to 'all')
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      * Get the database's configuration
271 271
      *
272 272
      * @param  bool    $testing Whether to retrieve the test database credentials
273
-     * @return array|null The configuration as defined in the config.yml file, null if no configuration was found
273
+     * @return IOInterface The configuration as defined in the config.yml file, null if no configuration was found
274 274
      */
275 275
     public static function getDatabaseConfig($testing = false)
276 276
     {
Please login to merge, or discard this patch.
models/Ban.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@
 block discarded – undo
358 358
      *
359 359
      * @param int        $playerID    The ID of the victim of the ban
360 360
      * @param int        $authorID    The ID of the player responsible for the ban
361
-     * @param mixed|null $expiration  The expiration of the ban (set to NULL for permanent ban)
361
+     * @param TimeDate|null $expiration  The expiration of the ban (set to NULL for permanent ban)
362 362
      * @param string     $reason      The full reason for the ban (supports markdown)
363 363
      * @param string     $serverMsg   A summary of the ban to be displayed on server banlists (max 150 characters)
364 364
      * @param string[]   $ipAddresses An array of IPs that have been banned
Please login to merge, or discard this patch.
src/Service.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
229 232
     }
230 233
 
231 234
     /**
232
-     * @param $kernel
235
+     * @param AppKernel $kernel
233 236
      */
234 237
     public static function setKernel($kernel)
235 238
     {
Please login to merge, or discard this patch.
src/Form/Creator/InvitationFormCreator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -87,6 +87,7 @@
 block discarded – undo
87 87
 
88 88
     /**
89 89
      * {@inheritdoc}
90
+     * @param \Symfony\Component\Form\Form $form
90 91
      */
91 92
     public function enter($form)
92 93
     {
Please login to merge, or discard this patch.
src/Model/BaseModel.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/QueryBuilder/QueryBuilder.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
     /**
295 295
      * Request that a timestamp is before the specified time
296 296
      *
297
-     * @param string|TimeDate $time      The timestamp to compare to
297
+     * @param Carbon\Carbon $time      The timestamp to compare to
298 298
      * @param bool            $inclusive Whether to include the given timestamp
299 299
      * @param bool            $reverse   Whether to reverse the results
300 300
      *
@@ -859,6 +859,7 @@  discard block
 block discarded – undo
859 859
 
860 860
     /**
861 861
      * Generates all the WHERE conditions for the query
862
+     * @param string $mode
862 863
      * @return string
863 864
      */
864 865
     private function createQueryConditions($mode)
Please login to merge, or discard this patch.