Completed
Pull Request — master (#3610)
by Sergei
03:53
created
lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -687,6 +687,7 @@  discard block
 block discarded – undo
687 687
 
688 688
     /**
689 689
      * {@inheritDoc}
690
+     * @param string $sequence
690 691
      */
691 692
     public function getDropSequenceSQL($sequence)
692 693
     {
@@ -895,6 +896,7 @@  discard block
 block discarded – undo
895 896
 
896 897
     /**
897 898
      * {@inheritdoc}
899
+     * @param string $name
898 900
      */
899 901
     public function getColumnDeclarationSQL($name, array $field)
900 902
     {
@@ -953,6 +955,8 @@  discard block
 block discarded – undo
953 955
 
954 956
     /**
955 957
      * {@inheritdoc}
958
+     * @param string $tableName
959
+     * @param string $columnName
956 960
      */
957 961
     public function getIdentitySequenceName($tableName, $columnName)
958 962
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php 1 patch
Doc Comments   +25 added lines patch added patch discarded remove patch
@@ -43,6 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     /**
45 45
      * {@inheritdoc}
46
+     * @param string $fromClause
46 47
      */
47 48
     public function appendLockHint($fromClause, $lockMode)
48 49
     {
@@ -65,6 +66,7 @@  discard block
 block discarded – undo
65 66
      * {@inheritdoc}
66 67
      *
67 68
      * SQL Anywhere supports a maximum length of 128 bytes for identifiers.
69
+     * @param string $schemaElementName
68 70
      */
69 71
     public function fixSchemaElementName($schemaElementName)
70 72
     {
@@ -352,6 +354,9 @@  discard block
 block discarded – undo
352 354
 
353 355
     /**
354 356
      * {@inheritdoc}
357
+     * @param string $tableName
358
+     * @param string $columnName
359
+     * @param string|null $comment
355 360
      */
356 361
     public function getCommentOnColumnSQL($tableName, $columnName, $comment)
357 362
     {
@@ -394,6 +399,7 @@  discard block
 block discarded – undo
394 399
 
395 400
     /**
396 401
      * {@inheritdoc}
402
+     * @param string $database
397 403
      */
398 404
     public function getCreateDatabaseSQL($database)
399 405
     {
@@ -434,6 +440,8 @@  discard block
 block discarded – undo
434 440
 
435 441
     /**
436 442
      * {@inheritdoc}
443
+     * @param string $name
444
+     * @param string $sql
437 445
      */
438 446
     public function getCreateViewSQL($name, $sql)
439 447
     {
@@ -480,6 +488,8 @@  discard block
 block discarded – undo
480 488
 
481 489
     /**
482 490
      * {@inheritdoc}
491
+     * @param string $date1
492
+     * @param string $date2
483 493
      */
484 494
     public function getDateDiffExpression($date1, $date2)
485 495
     {
@@ -528,6 +538,7 @@  discard block
 block discarded – undo
528 538
 
529 539
     /**
530 540
      * {@inheritdoc}
541
+     * @param string $database
531 542
      */
532 543
     public function getDropDatabaseSQL($database)
533 544
     {
@@ -570,6 +581,7 @@  discard block
 block discarded – undo
570 581
 
571 582
     /**
572 583
      * {@inheritdoc}
584
+     * @param string $name
573 585
      */
574 586
     public function getDropViewSQL($name)
575 587
     {
@@ -685,6 +697,7 @@  discard block
 block discarded – undo
685 697
 
686 698
     /**
687 699
      * {@inheritdoc}
700
+     * @param string $name
688 701
      */
689 702
     public function getIndexDeclarationSQL($name, Index $index)
690 703
     {
@@ -712,6 +725,7 @@  discard block
 block discarded – undo
712 725
 
713 726
     /**
714 727
      * {@inheritdoc}
728
+     * @param string $table
715 729
      */
716 730
     public function getListTableColumnsSQL($table, $database = null)
717 731
     {
@@ -751,6 +765,7 @@  discard block
 block discarded – undo
751 765
      * {@inheritdoc}
752 766
      *
753 767
      * @todo Where is this used? Which information should be retrieved?
768
+     * @param string $table
754 769
      */
755 770
     public function getListTableConstraintsSQL($table)
756 771
     {
@@ -780,6 +795,7 @@  discard block
 block discarded – undo
780 795
 
781 796
     /**
782 797
      * {@inheritdoc}
798
+     * @param string $table
783 799
      */
784 800
     public function getListTableForeignKeysSQL($table)
785 801
     {
@@ -873,6 +889,7 @@  discard block
 block discarded – undo
873 889
 
874 890
     /**
875 891
      * {@inheritdoc}
892
+     * @param string $table
876 893
      */
877 894
     public function getListTableIndexesSQL($table, $currentDatabase = null)
878 895
     {
@@ -972,6 +989,8 @@  discard block
 block discarded – undo
972 989
 
973 990
     /**
974 991
      * {@inheritdoc}
992
+     * @param string $str
993
+     * @param string $substr
975 994
      */
976 995
     public function getLocateExpression($str, $substr, $startPos = false)
977 996
     {
@@ -992,6 +1011,7 @@  discard block
 block discarded – undo
992 1011
 
993 1012
     /**
994 1013
      * {@inheritdoc}
1014
+     * @param string $column
995 1015
      */
996 1016
     public function getMd5Expression($column)
997 1017
     {
@@ -1087,6 +1107,9 @@  discard block
 block discarded – undo
1087 1107
 
1088 1108
     /**
1089 1109
      * {@inheritdoc}
1110
+     * @param string $value
1111
+     * @param integer $from
1112
+     * @param integer $length
1090 1113
      */
1091 1114
     public function getSubstringExpression($value, $from, $length = null)
1092 1115
     {
@@ -1123,6 +1146,7 @@  discard block
 block discarded – undo
1123 1146
 
1124 1147
     /**
1125 1148
      * {@inheritdoc}
1149
+     * @param string $str
1126 1150
      */
1127 1151
     public function getTrimExpression($str, $pos = TrimMode::UNSPECIFIED, $char = false)
1128 1152
     {
@@ -1152,6 +1176,7 @@  discard block
 block discarded – undo
1152 1176
 
1153 1177
     /**
1154 1178
      * {@inheritdoc}
1179
+     * @param string $tableName
1155 1180
      */
1156 1181
     public function getTruncateTableSQL($tableName, $cascade = false)
1157 1182
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Query/Expression/ExpressionBuilder.php 1 patch
Doc Comments   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *     // (u.type = ?) AND (u.role = ?)
48 48
      *     $expr->andX('u.type = ?', 'u.role = ?'));
49 49
      *
50
-     * @param mixed $x Optional clause. Defaults = null, but requires
50
+     * @param string $x Optional clause. Defaults = null, but requires
51 51
      *                 at least one defined when converting to string.
52 52
      *
53 53
      * @return CompositeExpression
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
      *     // u.id = ?
101 101
      *     $expr->eq('u.id', '?');
102 102
      *
103
-     * @param mixed $x The left expression.
104
-     * @param mixed $y The right expression.
103
+     * @param string $x The left expression.
104
+     * @param string $y The right expression.
105 105
      *
106 106
      * @return string
107 107
      */
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
      *     // u.id <> 1
120 120
      *     $q->where($q->expr()->neq('u.id', '1'));
121 121
      *
122
-     * @param mixed $x The left expression.
123
-     * @param mixed $y The right expression.
122
+     * @param string $x The left expression.
123
+     * @param string $y The right expression.
124 124
      *
125 125
      * @return string
126 126
      */
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
      *     // u.id < ?
139 139
      *     $q->where($q->expr()->lt('u.id', '?'));
140 140
      *
141
-     * @param mixed $x The left expression.
142
-     * @param mixed $y The right expression.
141
+     * @param string $x The left expression.
142
+     * @param string $y The right expression.
143 143
      *
144 144
      * @return string
145 145
      */
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
      *     // u.id <= ?
158 158
      *     $q->where($q->expr()->lte('u.id', '?'));
159 159
      *
160
-     * @param mixed $x The left expression.
161
-     * @param mixed $y The right expression.
160
+     * @param string $x The left expression.
161
+     * @param string $y The right expression.
162 162
      *
163 163
      * @return string
164 164
      */
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
      *     // u.id > ?
177 177
      *     $q->where($q->expr()->gt('u.id', '?'));
178 178
      *
179
-     * @param mixed $x The left expression.
180
-     * @param mixed $y The right expression.
179
+     * @param string $x The left expression.
180
+     * @param string $y The right expression.
181 181
      *
182 182
      * @return string
183 183
      */
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
      *     // u.id >= ?
196 196
      *     $q->where($q->expr()->gte('u.id', '?'));
197 197
      *
198
-     * @param mixed $x The left expression.
199
-     * @param mixed $y The right expression.
198
+     * @param string $x The left expression.
199
+     * @param string $y The right expression.
200 200
      *
201 201
      * @return string
202 202
      */
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      * Creates a LIKE() comparison expression with the given arguments.
234 234
      *
235 235
      * @param string $x Field in string format to be inspected by LIKE() comparison.
236
-     * @param mixed  $y Argument to be used in LIKE() comparison.
236
+     * @param string  $y Argument to be used in LIKE() comparison.
237 237
      *
238 238
      * @return string
239 239
      */
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      * Creates a NOT LIKE() comparison expression with the given arguments.
248 248
      *
249 249
      * @param string $x Field in string format to be inspected by NOT LIKE() comparison.
250
-     * @param mixed  $y Argument to be used in NOT LIKE() comparison.
250
+     * @param string  $y Argument to be used in NOT LIKE() comparison.
251 251
      *
252 252
      * @return string
253 253
      */
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Query/QueryBuilder.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
      *         ->leftJoin('u', 'phonenumbers', 'p', 'u.id = p.user_id');
453 453
      * </code>
454 454
      *
455
-     * @param mixed $select The selection expressions.
455
+     * @param string $select The selection expressions.
456 456
      *
457 457
      * @return $this This QueryBuilder instance.
458 458
      */
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
      *         ->leftJoin('u', 'phonenumbers', 'u.id = p.user_id');
481 481
      * </code>
482 482
      *
483
-     * @param mixed $select The selection expression.
483
+     * @param string $select The selection expression.
484 484
      *
485 485
      * @return $this This QueryBuilder instance.
486 486
      */
@@ -788,7 +788,7 @@  discard block
 block discarded – undo
788 788
      *
789 789
      * @see where()
790 790
      *
791
-     * @param mixed $where The query restrictions.
791
+     * @param string $where The query restrictions.
792 792
      *
793 793
      * @return $this This QueryBuilder instance.
794 794
      */
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
      *
822 822
      * @see where()
823 823
      *
824
-     * @param mixed $where The WHERE statement.
824
+     * @param string $where The WHERE statement.
825 825
      *
826 826
      * @return $this This QueryBuilder instance.
827 827
      */
@@ -946,7 +946,7 @@  discard block
 block discarded – undo
946 946
      * Specifies a restriction over the groups of the query.
947 947
      * Replaces any previous having restrictions, if any.
948 948
      *
949
-     * @param mixed $having The restriction over the groups.
949
+     * @param string $having The restriction over the groups.
950 950
      *
951 951
      * @return $this This QueryBuilder instance.
952 952
      */
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
      * Adds a restriction over the groups of the query, forming a logical
964 964
      * conjunction with any existing having restrictions.
965 965
      *
966
-     * @param mixed $having The restriction to append.
966
+     * @param string $having The restriction to append.
967 967
      *
968 968
      * @return $this This QueryBuilder instance.
969 969
      */
@@ -986,7 +986,7 @@  discard block
 block discarded – undo
986 986
      * Adds a restriction over the groups of the query, forming a logical
987 987
      * disjunction with any existing having restrictions.
988 988
      *
989
-     * @param mixed $having The restriction to add.
989
+     * @param string $having The restriction to add.
990 990
      *
991 991
      * @return $this This QueryBuilder instance.
992 992
      */
@@ -1057,7 +1057,7 @@  discard block
 block discarded – undo
1057 1057
     /**
1058 1058
      * Resets SQL parts.
1059 1059
      *
1060
-     * @param string[]|null $queryPartNames
1060
+     * @param string[] $queryPartNames
1061 1061
      *
1062 1062
      * @return $this This QueryBuilder instance.
1063 1063
      */
@@ -1238,7 +1238,7 @@  discard block
 block discarded – undo
1238 1238
      *
1239 1239
      * @link http://www.zetacomponents.org
1240 1240
      *
1241
-     * @param mixed  $value
1241
+     * @param integer  $value
1242 1242
      * @param mixed  $type
1243 1243
      * @param string $placeHolder The name to bind with. The string must start with a colon ':'.
1244 1244
      *
@@ -1272,7 +1272,7 @@  discard block
 block discarded – undo
1272 1272
      *     ->orWhere('u.username = ' . $qb->createPositionalParameter('Bar', ParameterType::STRING))
1273 1273
      * </code>
1274 1274
      *
1275
-     * @param mixed $value
1275
+     * @param integer $value
1276 1276
      * @param int   $type
1277 1277
      *
1278 1278
      * @return string
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Schema/Index.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@
 block discarded – undo
255 255
     /**
256 256
      * Returns platform specific flags for indexes.
257 257
      *
258
-     * @return string[]
258
+     * @return integer[]
259 259
      */
260 260
     public function getFlags()
261 261
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Schema/Schema.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,7 @@  discard block
 block discarded – undo
57 57
      * @param Table[]    $tables
58 58
      * @param Sequence[] $sequences
59 59
      * @param string[]   $namespaces
60
+     * @param SchemaConfig $schemaConfig
60 61
      */
61 62
     public function __construct(
62 63
         array $tables = [],
@@ -238,7 +239,7 @@  discard block
 block discarded – undo
238 239
     /**
239 240
      * Gets all table names, prefixed with a schema name, even the default one if present.
240 241
      *
241
-     * @return string[]
242
+     * @return integer[]
242 243
      */
243 244
     public function getTableNames()
244 245
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Schema/Table.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -678,7 +678,7 @@
 block discarded – undo
678 678
     /**
679 679
      * Returns the primary key columns.
680 680
      *
681
-     * @return string[]
681
+     * @return integer[]
682 682
      *
683 683
      * @throws DBALException
684 684
      */
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Statement.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
      * type and the value undergoes the conversion routines of the mapping type before
82 82
      * being bound.
83 83
      *
84
-     * @param string|int $name  The name or position of the parameter.
85
-     * @param mixed      $value The value of the parameter.
84
+     * @param string $name  The name or position of the parameter.
85
+     * @param string      $value The value of the parameter.
86 86
      * @param mixed      $type  Either a PDO binding type or a DBAL mapping type name or instance.
87 87
      *
88 88
      * @return bool TRUE on success, FALSE on failure.
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
      *
114 114
      * Binding a parameter by reference does not support DBAL mapping types.
115 115
      *
116
-     * @param string|int $name   The name or position of the parameter.
117
-     * @param mixed      $var    The reference to the variable to bind.
116
+     * @param string $name   The name or position of the parameter.
117
+     * @param string      $var    The reference to the variable to bind.
118 118
      * @param int        $type   The PDO binding type.
119 119
      * @param int|null   $length Must be specified when using an OUT bind
120 120
      *                           so that PHP allocates enough memory to hold the returned value.
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Tools/Dumper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
      *
143 143
      * @param object $var
144 144
      *
145
-     * @return mixed
145
+     * @return stdClass
146 146
      */
147 147
     private static function fillReturnWithClassAttributes($var, stdClass $return, int $maxDepth)
148 148
     {
Please login to merge, or discard this patch.