Passed
Push — master ( 047d0e...5cefa4 )
by Marco
06:53
created
lib/Doctrine/DBAL/Connection.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
      * @param integer $column    The 0-indexed column number to retrieve.
576 576
      * @param array  $types      The query parameter types.
577 577
      *
578
-     * @return mixed|bool False is returned if no rows are found.
578
+     * @return string|boolean False is returned if no rows are found.
579 579
      */
580 580
     public function fetchColumn($statement, array $params = array(), $column = 0, array $types = array())
581 581
     {
@@ -1113,7 +1113,7 @@  discard block
 block discarded – undo
1113 1113
     /**
1114 1114
      * Fetches the SQLSTATE associated with the last database operation.
1115 1115
      *
1116
-     * @return integer The last error code.
1116
+     * @return string|null The last error code.
1117 1117
      */
1118 1118
     public function errorCode()
1119 1119
     {
@@ -1219,7 +1219,7 @@  discard block
 block discarded – undo
1219 1219
      * Returns the savepoint name to use for nested transactions are false if they are not supported
1220 1220
      * "savepointFormat" parameter is not set
1221 1221
      *
1222
-     * @return mixed A string with the savepoint name or false.
1222
+     * @return string A string with the savepoint name or false.
1223 1223
      */
1224 1224
     protected function _getNestedTransactionSavePointName()
1225 1225
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,6 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
     /**
140 140
      * {@inheritDoc}
141
+     * @param string $connectionName
141 142
      */
142 143
     public function connect($connectionName = null)
143 144
     {
@@ -196,7 +197,7 @@  discard block
 block discarded – undo
196 197
      *
197 198
      * @param string $connectionName
198 199
      *
199
-     * @return \Doctrine\DBAL\Driver
200
+     * @return Driver\Connection
200 201
      */
201 202
     protected function connectTo($connectionName)
202 203
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/DBALException.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -142,6 +142,7 @@
 block discarded – undo
142 142
     /**
143 143
      * @param \Doctrine\DBAL\Driver     $driver
144 144
      * @param \Exception $driverEx
145
+     * @param string $msg
145 146
      *
146 147
      * @return \Doctrine\DBAL\DBALException
147 148
      */
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
     /**
488 488
      * Marks this type as to be commented in ALTER TABLE and CREATE TABLE statements.
489 489
      *
490
-     * @param string|\Doctrine\DBAL\Types\Type $doctrineType
490
+     * @param Type $doctrineType
491 491
      *
492 492
      * @return void
493 493
      */
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
     /**
604 604
      * Gets all SQL wildcard characters of the platform.
605 605
      *
606
-     * @return array
606
+     * @return string[]
607 607
      */
608 608
     public function getWildcards()
609 609
     {
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
      *
856 856
      * @param string          $str      Literal string.
857 857
      * @param string          $substr   Literal string to find.
858
-     * @param integer|boolean $startPos Position to start at, beginning of string by default.
858
+     * @param integer $startPos Position to start at, beginning of string by default.
859 859
      *
860 860
      * @return string
861 861
      *
@@ -1416,7 +1416,7 @@  discard block
 block discarded – undo
1416 1416
     /**
1417 1417
      * Returns the SQL to safely drop a temporary table WITHOUT implicitly committing an open transaction.
1418 1418
      *
1419
-     * @param \Doctrine\DBAL\Schema\Table|string $table
1419
+     * @param string $table
1420 1420
      *
1421 1421
      * @return string
1422 1422
      */
@@ -1639,7 +1639,7 @@  discard block
 block discarded – undo
1639 1639
      * @param array  $columns
1640 1640
      * @param array  $options
1641 1641
      *
1642
-     * @return array
1642
+     * @return string[]
1643 1643
      */
1644 1644
     protected function _getCreateTableSQL($tableName, array $columns, array $options = array())
1645 1645
     {
@@ -1822,7 +1822,7 @@  discard block
 block discarded – undo
1822 1822
      * Returns the SQL to create an unnamed primary key constraint.
1823 1823
      *
1824 1824
      * @param \Doctrine\DBAL\Schema\Index        $index
1825
-     * @param \Doctrine\DBAL\Schema\Table|string $table
1825
+     * @param string $table
1826 1826
      *
1827 1827
      * @return string
1828 1828
      */
@@ -2120,7 +2120,7 @@  discard block
 block discarded – undo
2120 2120
      * @param \Doctrine\DBAL\Schema\Index $index        The definition of the index to rename to.
2121 2121
      * @param string                      $tableName    The table to rename the given index on.
2122 2122
      *
2123
-     * @return array The sequence of SQL statements for renaming the given index.
2123
+     * @return string[] The sequence of SQL statements for renaming the given index.
2124 2124
      */
2125 2125
     protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName)
2126 2126
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/DB2Platform.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -209,6 +209,8 @@  discard block
 block discarded – undo
209 209
 
210 210
     /**
211 211
      * {@inheritdoc}
212
+     * @param string $date1
213
+     * @param string $date2
212 214
      */
213 215
     public function getDateDiffExpression($date1, $date2)
214 216
     {
@@ -245,6 +247,7 @@  discard block
 block discarded – undo
245 247
 
246 248
     /**
247 249
      * {@inheritdoc}
250
+     * @param string $tableName
248 251
      */
249 252
     public function getTruncateTableSQL($tableName, $cascade = false)
250 253
     {
@@ -329,6 +332,7 @@  discard block
 block discarded – undo
329 332
 
330 333
     /**
331 334
      * {@inheritDoc}
335
+     * @param string $table
332 336
      */
333 337
     public function getListTableIndexesSQL($table, $currentDatabase = null)
334 338
     {
@@ -353,6 +357,7 @@  discard block
 block discarded – undo
353 357
 
354 358
     /**
355 359
      * {@inheritDoc}
360
+     * @param string $table
356 361
      */
357 362
     public function getListTableForeignKeysSQL($table)
358 363
     {
@@ -387,6 +392,8 @@  discard block
 block discarded – undo
387 392
 
388 393
     /**
389 394
      * {@inheritDoc}
395
+     * @param string $name
396
+     * @param string $sql
390 397
      */
391 398
     public function getCreateViewSQL($name, $sql)
392 399
     {
@@ -395,6 +402,7 @@  discard block
 block discarded – undo
395 402
 
396 403
     /**
397 404
      * {@inheritDoc}
405
+     * @param string $name
398 406
      */
399 407
     public function getDropViewSQL($name)
400 408
     {
@@ -403,6 +411,7 @@  discard block
 block discarded – undo
403 411
 
404 412
     /**
405 413
      * {@inheritDoc}
414
+     * @param string $database
406 415
      */
407 416
     public function getCreateDatabaseSQL($database)
408 417
     {
@@ -411,6 +420,7 @@  discard block
 block discarded – undo
411 420
 
412 421
     /**
413 422
      * {@inheritDoc}
423
+     * @param string $database
414 424
      */
415 425
     public function getDropDatabaseSQL($database)
416 426
     {
@@ -795,6 +805,8 @@  discard block
 block discarded – undo
795 805
 
796 806
     /**
797 807
      * {@inheritDoc}
808
+     * @param string $str
809
+     * @param string $substr
798 810
      */
799 811
     public function getLocateExpression($str, $substr, $startPos = false)
800 812
     {
@@ -807,6 +819,9 @@  discard block
 block discarded – undo
807 819
 
808 820
     /**
809 821
      * {@inheritDoc}
822
+     * @param string $value
823
+     * @param integer $from
824
+     * @param integer $length
810 825
      */
811 826
     public function getSubstringExpression($value, $from, $length = null)
812 827
     {
@@ -837,6 +852,7 @@  discard block
 block discarded – undo
837 852
      * {@inheritDoc}
838 853
      *
839 854
      * DB2 returns all column names in SQL result sets in uppercase.
855
+     * @param string $column
840 856
      */
841 857
     public function getSQLResultCasing($column)
842 858
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -444,6 +444,7 @@
 block discarded – undo
444 444
 
445 445
     /**
446 446
      * {@inheritDoc}
447
+     * @param string $table
447 448
      */
448 449
     protected function getDropPrimaryKeySQL($table)
449 450
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      * @param string  $table
488 488
      * @param integer $start
489 489
      *
490
-     * @return array
490
+     * @return string[]
491 491
      */
492 492
     public function getCreateAutoincrementSql($name, $table, $start = 1)
493 493
     {
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
      *
552 552
      * @param string $table The table name to drop the autoincrement for.
553 553
      *
554
-     * @return array
554
+     * @return string[]
555 555
      */
556 556
     public function getDropAutoincrementSql($table)
557 557
     {
@@ -684,6 +684,7 @@  discard block
 block discarded – undo
684 684
 
685 685
     /**
686 686
      * {@inheritDoc}
687
+     * @param string $sequence
687 688
      */
688 689
     public function getDropSequenceSQL($sequence)
689 690
     {
@@ -881,6 +882,7 @@  discard block
 block discarded – undo
881 882
 
882 883
     /**
883 884
      * {@inheritdoc}
885
+     * @param string $name
884 886
      */
885 887
     public function getColumnDeclarationSQL($name, array $field)
886 888
     {
@@ -939,6 +941,8 @@  discard block
 block discarded – undo
939 941
 
940 942
     /**
941 943
      * {@inheritdoc}
944
+     * @param string $tableName
945
+     * @param string $columnName
942 946
      */
943 947
     public function getIdentitySequenceName($tableName, $columnName)
944 948
     {
@@ -1169,6 +1173,7 @@  discard block
 block discarded – undo
1169 1173
 
1170 1174
     /**
1171 1175
      * {@inheritdoc}
1176
+     * @param string $str
1172 1177
      */
1173 1178
     public function quoteStringLiteral($str)
1174 1179
     {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -81,6 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
     /**
83 83
      * {@inheritDoc}
84
+     * @param boolean $from
84 85
      */
85 86
     public function getSubstringExpression($value, $from, $length = null)
86 87
     {
@@ -192,6 +193,8 @@  discard block
 block discarded – undo
192 193
 
193 194
     /**
194 195
      * {@inheritdoc}
196
+     * @param string $tableName
197
+     * @param string $columnName
195 198
      */
196 199
     public function getIdentitySequenceName($tableName, $columnName)
197 200
     {
@@ -668,6 +671,9 @@  discard block
 block discarded – undo
668 671
 
669 672
     /**
670 673
      * {@inheritdoc}
674
+     * @param string $tableName
675
+     * @param string $columnName
676
+     * @param string|null $comment
671 677
      */
672 678
     public function getCommentOnColumnSQL($tableName, $columnName, $comment)
673 679
     {
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
@@ -60,6 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
     /**
62 62
      * {@inheritdoc}
63
+     * @param string $fromClause
63 64
      */
64 65
     public function appendLockHint($fromClause, $lockMode)
65 66
     {
@@ -82,6 +83,7 @@  discard block
 block discarded – undo
82 83
      * {@inheritdoc}
83 84
      *
84 85
      * SQL Anywhere supports a maximum length of 128 bytes for identifiers.
86
+     * @param string $schemaElementName
85 87
      */
86 88
     public function fixSchemaElementName($schemaElementName)
87 89
     {
@@ -364,6 +366,9 @@  discard block
 block discarded – undo
364 366
 
365 367
     /**
366 368
      * {@inheritdoc}
369
+     * @param string $tableName
370
+     * @param string $columnName
371
+     * @param string|null $comment
367 372
      */
368 373
     public function getCommentOnColumnSQL($tableName, $columnName, $comment)
369 374
     {
@@ -402,6 +407,7 @@  discard block
 block discarded – undo
402 407
 
403 408
     /**
404 409
      * {@inheritdoc}
410
+     * @param string $database
405 411
      */
406 412
     public function getCreateDatabaseSQL($database)
407 413
     {
@@ -442,6 +448,8 @@  discard block
 block discarded – undo
442 448
 
443 449
     /**
444 450
      * {@inheritdoc}
451
+     * @param string $name
452
+     * @param string $sql
445 453
      */
446 454
     public function getCreateViewSQL($name, $sql)
447 455
     {
@@ -488,6 +496,8 @@  discard block
 block discarded – undo
488 496
 
489 497
     /**
490 498
      * {@inheritdoc}
499
+     * @param string $date1
500
+     * @param string $date2
491 501
      */
492 502
     public function getDateDiffExpression($date1, $date2)
493 503
     {
@@ -536,6 +546,7 @@  discard block
 block discarded – undo
536 546
 
537 547
     /**
538 548
      * {@inheritdoc}
549
+     * @param string $database
539 550
      */
540 551
     public function getDropDatabaseSQL($database)
541 552
     {
@@ -580,6 +591,7 @@  discard block
 block discarded – undo
580 591
 
581 592
     /**
582 593
      * {@inheritdoc}
594
+     * @param string $name
583 595
      */
584 596
     public function getDropViewSQL($name)
585 597
     {
@@ -690,6 +702,7 @@  discard block
 block discarded – undo
690 702
 
691 703
     /**
692 704
      * {@inheritdoc}
705
+     * @param string $name
693 706
      */
694 707
     public function getIndexDeclarationSQL($name, Index $index)
695 708
     {
@@ -717,6 +730,7 @@  discard block
 block discarded – undo
717 730
 
718 731
     /**
719 732
      * {@inheritdoc}
733
+     * @param string $table
720 734
      */
721 735
     public function getListTableColumnsSQL($table, $database = null)
722 736
     {
@@ -749,6 +763,7 @@  discard block
 block discarded – undo
749 763
      * {@inheritdoc}
750 764
      *
751 765
      * @todo Where is this used? Which information should be retrieved?
766
+     * @param string $table
752 767
      */
753 768
     public function getListTableConstraintsSQL($table)
754 769
     {
@@ -771,6 +786,7 @@  discard block
 block discarded – undo
771 786
 
772 787
     /**
773 788
      * {@inheritdoc}
789
+     * @param string $table
774 790
      */
775 791
     public function getListTableForeignKeysSQL($table)
776 792
     {
@@ -857,6 +873,7 @@  discard block
 block discarded – undo
857 873
 
858 874
     /**
859 875
      * {@inheritdoc}
876
+     * @param string $table
860 877
      */
861 878
     public function getListTableIndexesSQL($table, $currentDatabase = null)
862 879
     {
@@ -949,6 +966,8 @@  discard block
 block discarded – undo
949 966
 
950 967
     /**
951 968
      * {@inheritdoc}
969
+     * @param string $str
970
+     * @param string $substr
952 971
      */
953 972
     public function getLocateExpression($str, $substr, $startPos = false)
954 973
     {
@@ -969,6 +988,7 @@  discard block
 block discarded – undo
969 988
 
970 989
     /**
971 990
      * {@inheritdoc}
991
+     * @param string $column
972 992
      */
973 993
     public function getMd5Expression($column)
974 994
     {
@@ -1064,6 +1084,9 @@  discard block
 block discarded – undo
1064 1084
 
1065 1085
     /**
1066 1086
      * {@inheritdoc}
1087
+     * @param string $value
1088
+     * @param integer $from
1089
+     * @param integer $length
1067 1090
      */
1068 1091
     public function getSubstringExpression($value, $from, $length = null)
1069 1092
     {
@@ -1100,6 +1123,7 @@  discard block
 block discarded – undo
1100 1123
 
1101 1124
     /**
1102 1125
      * {@inheritdoc}
1126
+     * @param string $str
1103 1127
      */
1104 1128
     public function getTrimExpression($str, $pos = self::TRIM_UNSPECIFIED, $char = false)
1105 1129
     {
@@ -1130,6 +1154,7 @@  discard block
 block discarded – undo
1130 1154
 
1131 1155
     /**
1132 1156
      * {@inheritdoc}
1157
+     * @param string $tableName
1133 1158
      */
1134 1159
     public function getTruncateTableSQL($tableName, $cascade = false)
1135 1160
     {
Please login to merge, or discard this patch.