Completed
Push — master ( 533386...57d77d )
by smiley
02:37
created
src/DBResult.php 1 patch
Unused Use Statements   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,9 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\Database;
14 14
 
15
-use ArrayAccess, Countable, Iterator;
15
+use ArrayAccess;
16
+use Countable;
17
+use Iterator;
16 18
 use chillerlan\Database\Traits\{Enumerable, Magic};
17 19
 
18 20
 /**
Please login to merge, or discard this patch.
src/DBResultRow.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 	 *
44 44
 	 * @return mixed|null
45 45
 	 */
46
-	public function __get(string $name) {
46
+	public function __get(string $name){
47 47
 
48 48
 		if(isset($this->array[$name])){
49 49
 			return $this->array[$name];
Please login to merge, or discard this patch.
tests/DBResultTest.php 1 patch
Unused Use Statements   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,11 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\DatabaseTest;
14 14
 
15
+use ArrayAccess;
16
+use Countable;
17
+use Iterator;
15 18
 use chillerlan\Database\DBResult;
16
-use Iterator, ArrayAccess, Countable, stdClass;
19
+use stdClass;
17 20
 
18 21
 class DBResultTest extends TestAbstract{
19 22
 
Please login to merge, or discard this patch.
src/Traits/Magic.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@
 block discarded – undo
18 18
  */
19 19
 trait Magic{
20 20
 
21
-	public function __get(string $name) {
21
+	public function __get(string $name){
22 22
 		return $this->get($name);
23 23
 	}
24 24
 
25
-	public function __set(string $name, $value) {
25
+	public function __set(string $name, $value){
26 26
 		$this->set($name, $value);
27 27
 	}
28 28
 
29
-	private function get(string $name) {
29
+	private function get(string $name){
30 30
 		$method = 'magic_get_'.$name;
31 31
 
32 32
 		return method_exists($this, $method) ? $this->$method() : null;
33 33
 	}
34 34
 
35
-	private function set(string $name, $value) {
35
+	private function set(string $name, $value){
36 36
 		$method = 'magic_set_'.$name;
37 37
 
38 38
 		if(method_exists($this, $method)){
Please login to merge, or discard this patch.
tests/Drivers/DriverTestAbstract.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\DatabaseTest\Drivers;
14 14
 
15
-use chillerlan\Database\Drivers\DBDriverInterface;
16
-use chillerlan\DatabaseTest\TestAbstract;
17 15
 use Psr\SimpleCache\CacheInterface;
16
+use chillerlan\DatabaseTest\TestAbstract;
17
+use chillerlan\Database\Drivers\DBDriverInterface;
18 18
 
19 19
 abstract class DriverTestAbstract extends TestAbstract{
20 20
 
Please login to merge, or discard this patch.
src/Drivers/DBDriverAbstract.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\Database\Drivers;
14 14
 
15
+use Psr\SimpleCache\CacheInterface;
15 16
 use chillerlan\Database\DBOptions;
16 17
 use chillerlan\Database\DBResult;
17 18
 use chillerlan\Database\Traits\Magic;
18
-use Psr\SimpleCache\CacheInterface;
19 19
 
20 20
 /**
21 21
  * @property string   $dialect
Please login to merge, or discard this patch.
src/Drivers/PDO/PDODriverAbstract.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,8 @@
 block discarded – undo
15 15
 use chillerlan\Database\Drivers\{
16 16
 	DBDriverAbstract, DBDriverException, DBDriverInterface
17 17
 };
18
-use PDO, PDOStatement;
18
+use PDO;
19
+use PDOStatement;
19 20
 
20 21
 /**
21 22
  * @see http://php.net/manual/pdo.constants.php
Please login to merge, or discard this patch.
src/Query/Dialects/SQLite/CreateTable.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\Database\Query\Dialects\SQLite;
14 14
 
15
-use chillerlan\Database\Query\CreateTableInterface;
16 15
 use chillerlan\Database\Query\CreateTableAbstract;
16
+use chillerlan\Database\Query\CreateTableInterface;
17 17
 use chillerlan\Database\Query\QueryException;
18 18
 
19 19
 /**
Please login to merge, or discard this patch.
src/DBQuery.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
 
15 15
 use chillerlan\Database\Drivers\DBDriverInterface;
16 16
 use chillerlan\Database\Query\AlterInterface;
17
+use chillerlan\Database\Query\CreateDatabaseInterface;
17 18
 use chillerlan\Database\Query\CreateInterface;
19
+use chillerlan\Database\Query\CreateTableInterface;
18 20
 use chillerlan\Database\Query\DropInterface;
19 21
 use chillerlan\Database\Query\StatementAbstract;
20
-use chillerlan\Database\Query\CreateDatabaseInterface;
21
-use chillerlan\Database\Query\CreateTableInterface;
22 22
 
23 23
 /**
24 24
  * @property \chillerlan\Database\Query\SelectInterface $select
Please login to merge, or discard this patch.