Completed
Push — feature/player-elo ( 21fda9...de6928 )
by Vladimir
07:43
created
models/Ban.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -354,7 +354,7 @@
 block discarded – undo
354 354
      *
355 355
      * @param int         $playerID        The ID of the victim of the ban
356 356
      * @param int         $authorID        The ID of the player responsible for the ban
357
-     * @param mixed|null $expiration      The expiration of the ban (set to NULL so that it never expires)
357
+     * @param TimeDate|null $expiration      The expiration of the ban (set to NULL so that it never expires)
358 358
      * @param string      $reason          The full reason for the ban
359 359
      * @param string      $srvmsg          A summary of the ban to be displayed on server banlists (max 150 characters)
360 360
      * @param string[]    $ipAddresses     An array of IPs that have been banned
Please login to merge, or discard this patch.
models/Role.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     /**
212 212
      * Add a permission to a role
213 213
      *
214
-     * @param string|Permission $perm_name The name of the permission to add
214
+     * @param Permission $perm_name The name of the permission to add
215 215
      *
216 216
      * @return bool Whether or not the operation was successful
217 217
      */
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     /**
266 266
      * Revoke a permission from a role
267 267
      *
268
-     * @param string|Permission $perm_name The permission to remove
268
+     * @param Permission $perm_name The permission to remove
269 269
      *
270 270
      * @return bool Whether or not the operation was successful
271 271
      */
Please login to merge, or discard this patch.
models/Player.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Model/Model.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * Find if two objects represent the same model
63 63
      *
64
-     * @param  object   $model The model to compare
64
+     * @param  null|Model   $model The model to compare
65 65
      * @return bool
66 66
      */
67 67
     public function isSameAs($model)
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      * Useful for form validation
169 169
      *
170 170
      * @param  string $property The name of the property to change
171
-     * @param  mixed  $value    The value of the property
171
+     * @param  string  $value    The value of the property
172 172
      * @return self
173 173
      */
174 174
     protected function inject($property, $value)
Please login to merge, or discard this patch.
src/Model/BaseModel.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
      * @param string          $column           The name of the column that should be tested
276 276
      * @param array|mixed     $possible_values  List of acceptable values
277 277
      * @param bool            $negate           Whether to search if the value of $column does NOT belong to the $possible_values array
278
-     * @param string|string[] $select           The name of the column(s) that the returned array should contain
278
+     * @param string $select           The name of the column(s) that the returned array should contain
279 279
      * @param string          $additional_query Additional parameters to be passed to the MySQL query (e.g. `WHERE id = 5`)
280 280
      * @param string          $table            The database table which will be used for queries
281 281
      *
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
      * Get a formatted string with a comma separated column list with table/alias prefixes if necessary.
343 343
      *
344 344
      * @param string|null $prefix  The table name or SQL alias to be prepend to these columns
345
-     * @param array       $columns The columns to format
345
+     * @param string[]       $columns The columns to format
346 346
      *
347 347
      * @return string
348 348
      */
Please login to merge, or discard this patch.
src/QueryBuilder/QueryBuilder.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
     /**
276 276
      * Request that a timestamp is before the specified time
277 277
      *
278
-     * @param string|TimeDate $time      The timestamp to compare to
278
+     * @param Carbon\Carbon $time      The timestamp to compare to
279 279
      * @param bool            $inclusive Whether to include the given timestamp
280 280
      * @param bool            $reverse   Whether to reverse the results
281 281
      *
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
     /**
369 369
      * Request that a specific model is not returned
370 370
      *
371
-     * @param  Model|int $model The ID or model you don't want to get
371
+     * @param  Player $model The ID or model you don't want to get
372 372
      * @return static
373 373
      */
374 374
     public function except($model)
@@ -821,6 +821,7 @@  discard block
 block discarded – undo
821 821
 
822 822
     /**
823 823
      * Generates all the WHERE conditions for the query
824
+     * @param string $mode
824 825
      * @return string
825 826
      */
826 827
     private function createQueryConditions($mode)
Please login to merge, or discard this patch.
controllers/PlayerController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use BZIon\Form\Creator\PlayerAdminNotesFormCreator as FormCreator;
4
-use Carbon\Carbon;
5 4
 use Symfony\Component\Form\Form;
6 5
 use Symfony\Component\HttpFoundation\Request;
7 6
 
Please login to merge, or discard this patch.
src/Event/Event.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
      *
146 146
      * @param mixed    $players A single player/ID or a player/ID list
147 147
      * @param string   $type   The type of the event
148
-     * @param null|\Player|int $except A player who should not receive a notification
148
+     * @param \Player $except A player who should not receive a notification
149 149
      * @param \Player $except
150 150
      */
151 151
     protected function doNotify($players, $type, $except = null)
Please login to merge, or discard this patch.
models/Match.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -674,7 +674,6 @@  discard block
 block discarded – undo
674 674
      * Set the server address of the server where this match took place
675 675
      *
676 676
      * @param  string|null $server The server hostname
677
-     * @param  int|null    $port   The server port
678 677
      * @return self
679 678
      */
680 679
     public function setServerAddress($server = null)
@@ -1158,7 +1157,7 @@  discard block
 block discarded – undo
1158 1157
      *
1159 1158
      * @param int[]|Player[] $players
1160 1159
      *
1161
-     * @return float|int
1160
+     * @return integer
1162 1161
      */
1163 1162
     private static function getAveragePlayerElo($players)
1164 1163
     {
Please login to merge, or discard this patch.