@@ -168,7 +168,7 @@ |
||
168 | 168 | * @param string $sql The SQL statement to prepare |
169 | 169 | * @param array $values a multidimensional array with the values, each row represents one line to insert. |
170 | 170 | * |
171 | - * @return bool true query success, otherwise false |
|
171 | + * @return boolean|null true query success, otherwise false |
|
172 | 172 | */ |
173 | 173 | public function multi($sql, array $values){ |
174 | 174 | // TODO: Implement multi() method. |
@@ -12,10 +12,10 @@ |
||
12 | 12 | |
13 | 13 | namespace chillerlan\Database\Drivers\SQLite; |
14 | 14 | |
15 | -use chillerlan\Database\DBException; |
|
16 | -use chillerlan\Database\Drivers\DBDriverAbstract; |
|
17 | 15 | use Exception; |
18 | 16 | use SQLite3; |
17 | +use chillerlan\Database\DBException; |
|
18 | +use chillerlan\Database\Drivers\DBDriverAbstract; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * |
@@ -86,6 +86,7 @@ |
||
86 | 86 | * |
87 | 87 | * @param array $stats |
88 | 88 | * @internal |
89 | + * @return void |
|
89 | 90 | */ |
90 | 91 | public function addStats(array $stats); |
91 | 92 |
@@ -168,7 +168,7 @@ |
||
168 | 168 | * @param string $sql The SQL statement to prepare |
169 | 169 | * @param array $values a multidimensional array with the values, each row represents one line to insert. |
170 | 170 | * |
171 | - * @return bool true query success, otherwise false |
|
171 | + * @return boolean|null true query success, otherwise false |
|
172 | 172 | */ |
173 | 173 | public function multi($sql, array $values){ |
174 | 174 | // TODO: Implement multi() method. |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * @param string $class FQCN |
27 | 27 | * @param string $interface FQCN |
28 | 28 | * |
29 | - * @param mixed $params [optional] the following arguments are optional and will be passed to the class constructor if present. |
|
29 | + * @param \chillerlan\Database\DBOptions $params [optional] the following arguments are optional and will be passed to the class constructor if present. |
|
30 | 30 | * |
31 | 31 | * @return object of type $interface |
32 | 32 | * @throws \chillerlan\Database\DBException |
@@ -12,8 +12,8 @@ |
||
12 | 12 | |
13 | 13 | namespace chillerlan\Database\Traits; |
14 | 14 | |
15 | -use chillerlan\Database\DBException; |
|
16 | 15 | use ReflectionClass; |
16 | +use chillerlan\Database\DBException; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * A simple class loader |
@@ -9,15 +9,14 @@ |
||
9 | 9 | |
10 | 10 | namespace chillerlan\DatabaseTest; |
11 | 11 | |
12 | +use Dotenv\Dotenv; |
|
12 | 13 | use chillerlan\Database\DBOptions; |
13 | 14 | use chillerlan\Database\Drivers\MySQLi\MySQLiDriver; |
14 | -use chillerlan\Database\Drivers\PDO\PDOFirebirdDriver; |
|
15 | 15 | use chillerlan\Database\Drivers\PDO\PDOMySQLDriver; |
16 | 16 | use chillerlan\Database\Drivers\PDO\PDOPostgresDriver; |
17 | 17 | use chillerlan\Database\Drivers\PDO\PDOSQLiteDriver; |
18 | 18 | use chillerlan\Database\Drivers\PostgreSQL\PostgreSQLDriver; |
19 | 19 | use chillerlan\Database\Drivers\SQLite\SQLite3Driver; |
20 | -use Dotenv\Dotenv; |
|
21 | 20 | |
22 | 21 | class DBInstanceTest extends \PHPUnit_Framework_TestCase{ |
23 | 22 |
@@ -12,6 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | namespace chillerlan\Database\Drivers\MySQLi; |
14 | 14 | |
15 | +use ReflectionMethod; |
|
15 | 16 | use chillerlan\Database\DBException; |
16 | 17 | use chillerlan\Database\Drivers\DBBaseDriver; |
17 | 18 | use chillerlan\Database\Drivers\DBDriverInterface; |
@@ -19,8 +20,6 @@ discard block |
||
19 | 20 | use mysqli_result; |
20 | 21 | use mysqli_sql_exception; |
21 | 22 | use mysqli_stmt; |
22 | -use ReflectionClass; |
|
23 | -use ReflectionMethod; |
|
24 | 23 | use stdClass; |
25 | 24 | |
26 | 25 | /** |
@@ -12,10 +12,10 @@ |
||
12 | 12 | |
13 | 13 | namespace chillerlan\Database\Drivers\SQLite; |
14 | 14 | |
15 | -use chillerlan\Database\DBException; |
|
16 | -use chillerlan\Database\Drivers\DBDriverAbstract; |
|
17 | 15 | use Exception; |
18 | 16 | use SQLite3; |
17 | +use chillerlan\Database\DBException; |
|
18 | +use chillerlan\Database\Drivers\DBDriverAbstract; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * |