Completed
Push — master ( 47c098...6c95d6 )
by smiley
02:23
created
src/Drivers/DBDriverAbstract.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\Database\Drivers;
14 14
 
15
+use Psr\SimpleCache\CacheInterface;
15 16
 use chillerlan\Database\DBException;
16 17
 use chillerlan\Database\DBOptions;
17 18
 use chillerlan\Database\DBResult;
18 19
 use chillerlan\Database\Traits\Magic;
19
-use Psr\SimpleCache\CacheInterface;
20 20
 
21 21
 /**
22 22
  * @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
@@ -14,7 +14,8 @@
 block discarded – undo
14 14
 
15 15
 use chillerlan\Database\DBException;
16 16
 use chillerlan\Database\Drivers\{DBDriverAbstract, DBDriverInterface};
17
-use PDO, PDOStatement;
17
+use PDO;
18
+use PDOStatement;
18 19
 
19 20
 /**
20 21
  *
Please login to merge, or discard this patch.
src/Query/CreateTableInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -31,5 +31,9 @@
 block discarded – undo
31 31
 		$defaultValue = null,
32 32
 		string $extra = null
33 33
 	):CreateTableInterface;
34
+
35
+	/**
36
+	 * @return void
37
+	 */
34 38
 	public function index($name);
35 39
 }
Please login to merge, or discard this patch.
src/Query/DeleteInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -16,7 +16,14 @@
 block discarded – undo
16 16
  */
17 17
 interface DeleteInterface extends StatementInterface{
18 18
 
19
+	/**
20
+	 * @return void
21
+	 */
19 22
 	public function from();
23
+
24
+	/**
25
+	 * @return void
26
+	 */
20 27
 	public function where();
21 28
 #	public function orWhere();
22 29
 
Please login to merge, or discard this patch.
src/Query/InsertInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -16,7 +16,14 @@
 block discarded – undo
16 16
  */
17 17
 interface InsertInterface extends StatementInterface{
18 18
 
19
+	/**
20
+	 * @return void
21
+	 */
19 22
 	public function into();
23
+
24
+	/**
25
+	 * @return void
26
+	 */
20 27
 	public function values();
21 28
 
22 29
 }
Please login to merge, or discard this patch.
src/Query/StatementInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -17,6 +17,10 @@
 block discarded – undo
17 17
 interface StatementInterface{
18 18
 
19 19
 	public function sql():string;
20
+
21
+	/**
22
+	 * @return void
23
+	 */
20 24
 	public function execute();
21 25
 	public function quote(string $str):string;
22 26
 
Please login to merge, or discard this patch.
src/Query/UpdateInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -16,7 +16,14 @@
 block discarded – undo
16 16
  */
17 17
 interface UpdateInterface extends StatementInterface{
18 18
 
19
+	/**
20
+	 * @return void
21
+	 */
19 22
 	public function table();
23
+
24
+	/**
25
+	 * @return void
26
+	 */
20 27
 	public function where();
21 28
 #	public function orWhere();
22 29
 
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/Query/SelectAbstract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
 		$sql = 'SELECT ';
36 36
 
37 37
 		$sql .= $this->distinct ? 'DISTINCT ' : '';
38
-		$sql .= implode($glue , $this->cols).PHP_EOL;
39
-		$sql .= !empty($this->from) ? 'FROM '.implode($glue , $this->from) : '';
38
+		$sql .= implode($glue, $this->cols).PHP_EOL;
39
+		$sql .= !empty($this->from) ? 'FROM '.implode($glue, $this->from) : '';
40 40
 		$sql .= !empty($this->where) ? PHP_EOL.'WHERE ' : '';
41 41
 		$sql .= !empty($this->groupby) ? PHP_EOL.'GROUP BY '.implode($glue, $this->groupby) : '';
42 42
 		$sql .= !empty($this->orderby) ? PHP_EOL.'ORDER BY '.implode($glue, $this->orderby) : '';
Please login to merge, or discard this patch.