@@ -104,7 +104,7 @@ |
||
| 104 | 104 | /** |
| 105 | 105 | * @param string $sql |
| 106 | 106 | * @param iterable $data |
| 107 | - * @param $callback |
|
| 107 | + * @param callable $callback |
|
| 108 | 108 | * |
| 109 | 109 | * @return bool |
| 110 | 110 | */ |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * @param $result |
|
| 89 | + * @param resource $result |
|
| 90 | 90 | * @param string|null $index |
| 91 | 91 | * @param bool $assoc |
| 92 | 92 | * |
@@ -24,6 +24,7 @@ |
||
| 24 | 24 | * @param \chillerlan\Database\Drivers\DriverInterface $db |
| 25 | 25 | * @param \chillerlan\Database\Dialects\Dialect $dialect |
| 26 | 26 | * @param \Psr\Log\LoggerInterface|null $logger |
| 27 | + * @return void |
|
| 27 | 28 | */ |
| 28 | 29 | public function __construct(DriverInterface $db, Dialect $dialect, LoggerInterface $logger = null); |
| 29 | 30 | |
@@ -22,6 +22,7 @@ |
||
| 22 | 22 | * @param iterable|null $data |
| 23 | 23 | * @param string|null $sourceEncoding |
| 24 | 24 | * @param string $destEncoding |
| 25 | + * @return void |
|
| 25 | 26 | */ |
| 26 | 27 | public function __construct(iterable $data = null, string $sourceEncoding = null, string $destEncoding = null); |
| 27 | 28 | |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | |
| 120 | 120 | // @todo: whitelist types? |
| 121 | 121 | $nolengthtypes = ['DATE', 'TINYBLOB', 'TINYTEXT', 'BLOB', 'TEXT', 'MEDIUMBLOB', |
| 122 | - 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
| 122 | + 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
| 123 | 123 | |
| 124 | 124 | $field[] = (is_int($length) || (is_string($length) && count(explode(',', $length)) === 2)) && !in_array($type, $nolengthtypes, true) |
| 125 | 125 | ? $type.'('. $length . ')' |
@@ -25,6 +25,7 @@ |
||
| 25 | 25 | * @param \chillerlan\Settings\SettingsContainerInterface $options |
| 26 | 26 | * @param \Psr\SimpleCache\CacheInterface|null $cache |
| 27 | 27 | * @param \Psr\Log\LoggerInterface|null $logger |
| 28 | + * @return void |
|
| 28 | 29 | */ |
| 29 | 30 | public function __construct(SettingsContainerInterface $options, CacheInterface $cache = null, LoggerInterface $logger = null); |
| 30 | 31 | |
@@ -25,8 +25,8 @@ discard block |
||
| 25 | 25 | * @param array $cols |
| 26 | 26 | * @param array $from |
| 27 | 27 | * @param string|null $where |
| 28 | - * @param null $limit |
|
| 29 | - * @param null $offset |
|
| 28 | + * @param integer $limit |
|
| 29 | + * @param integer $offset |
|
| 30 | 30 | * @param bool|null $distinct |
| 31 | 31 | * @param array $groupby |
| 32 | 32 | * @param array $orderby |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * @param string $dbname |
| 119 | 119 | * @param bool $ifExists |
| 120 | 120 | * |
| 121 | - * @return mixed |
|
| 121 | + * @return string[] |
|
| 122 | 122 | */ |
| 123 | 123 | public function dropDatabase(string $dbname, bool $ifExists); |
| 124 | 124 | |