@@ -124,7 +124,6 @@ |
||
| 124 | 124 | * @param string $type type of the column. See [[$type]]. |
| 125 | 125 | * @param int|string|array $length length or precision of the column. See [[$length]]. |
| 126 | 126 | * @param \yii\db\Connection $db the current database connection. See [[$db]]. |
| 127 | - * @param array $config name-value pairs that will be used to initialize the object properties |
|
| 128 | 127 | */ |
| 129 | 128 | public function __construct($type, $length = null, $db = null) |
| 130 | 129 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use yii\db\ExpressionBuilderInterface; |
| 11 | 11 | use yii\db\ExpressionBuilderTrait; |
| 12 | 12 | use yii\db\ExpressionInterface; |
| 13 | -use yii\db\Query; |
|
| 14 | 13 | |
| 15 | 14 | /** |
| 16 | 15 | * Class NotConditionBuilder builds objects of [[SimpleCondition]] |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | /** |
| 116 | 116 | * Returns a single column from the next row of a result set. |
| 117 | 117 | * @param int $columnIndex zero-based column index |
| 118 | - * @return mixed the column of the current row, false if no more rows available |
|
| 118 | + * @return string the column of the current row, false if no more rows available |
|
| 119 | 119 | */ |
| 120 | 120 | public function readColumn($columnIndex) |
| 121 | 121 | { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * This method contains the logic to be executed when applying this migration. |
| 106 | 106 | * Child classes may override this method to provide actual migration logic. |
| 107 | - * @return bool return a false value to indicate the migration fails |
|
| 107 | + * @return false|null return a false value to indicate the migration fails |
|
| 108 | 108 | * and should not proceed further. All other return values mean the migration succeeds. |
| 109 | 109 | */ |
| 110 | 110 | public function up() |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * This method contains the logic to be executed when removing this migration. |
| 130 | 130 | * The default implementation throws an exception indicating the migration cannot be removed. |
| 131 | 131 | * Child classes may override this method if the corresponding migrations can be removed. |
| 132 | - * @return bool return a false value to indicate the migration fails |
|
| 132 | + * @return false|null return a false value to indicate the migration fails |
|
| 133 | 133 | * and should not proceed further. All other return values mean the migration succeeds. |
| 134 | 134 | */ |
| 135 | 135 | public function down() |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * Note: Not all DBMS support transactions. And some DB queries cannot be put into a transaction. For some examples, |
| 170 | 170 | * please refer to [implicit commit](http://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html). |
| 171 | 171 | * |
| 172 | - * @return bool return a false value to indicate the migration fails |
|
| 172 | + * @return boolean|null return a false value to indicate the migration fails |
|
| 173 | 173 | * and should not proceed further. All other return values mean the migration succeeds. |
| 174 | 174 | */ |
| 175 | 175 | public function safeUp() |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | * Note: Not all DBMS support transactions. And some DB queries cannot be put into a transaction. For some examples, |
| 187 | 187 | * please refer to [implicit commit](http://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html). |
| 188 | 188 | * |
| 189 | - * @return bool return a false value to indicate the migration fails |
|
| 189 | + * @return boolean|null return a false value to indicate the migration fails |
|
| 190 | 190 | * and should not proceed further. All other return values mean the migration succeeds. |
| 191 | 191 | */ |
| 192 | 192 | public function safeDown() |
@@ -102,7 +102,6 @@ discard block |
||
| 102 | 102 | /** |
| 103 | 103 | * Constructor. |
| 104 | 104 | * @param Connection $connection the database connection. |
| 105 | - * @param array $config name-value pairs that will be used to initialize the object properties |
|
| 106 | 105 | */ |
| 107 | 106 | public function __construct($connection) |
| 108 | 107 | { |
@@ -1409,7 +1408,7 @@ discard block |
||
| 1409 | 1408 | |
| 1410 | 1409 | /** |
| 1411 | 1410 | * Checks to see if the given limit is effective. |
| 1412 | - * @param mixed $limit the given limit |
|
| 1411 | + * @param integer $limit the given limit |
|
| 1413 | 1412 | * @return bool whether the limit is effective |
| 1414 | 1413 | */ |
| 1415 | 1414 | protected function hasLimit($limit) |
@@ -1419,7 +1418,7 @@ discard block |
||
| 1419 | 1418 | |
| 1420 | 1419 | /** |
| 1421 | 1420 | * Checks to see if the given offset is effective. |
| 1422 | - * @param mixed $offset the given offset |
|
| 1421 | + * @param integer $offset the given offset |
|
| 1423 | 1422 | * @return bool whether the offset is effective |
| 1424 | 1423 | */ |
| 1425 | 1424 | protected function hasOffset($offset) |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use yii\caching\Cache; |
| 15 | 15 | use yii\caching\CacheInterface; |
| 16 | 16 | use yii\caching\TagDependency; |
| 17 | -use yii\helpers\StringHelper; |
|
| 18 | 17 | use yii\helpers\Yii; |
| 19 | 18 | |
| 20 | 19 | /** |
@@ -46,7 +46,6 @@ |
||
| 46 | 46 | * Constructor. |
| 47 | 47 | * @param string $expression the DB expression |
| 48 | 48 | * @param array $params parameters |
| 49 | - * @param array $config name-value pairs that will be used to initialize the object properties |
|
| 50 | 49 | */ |
| 51 | 50 | public function __construct($expression, $params = []) |
| 52 | 51 | { |