Completed
Push — master ( 1b1f57...7b29c9 )
by smiley
02:13
created
src/DBResult.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	 ***************/
89 89
 
90 90
 	/**
91
-	 * @param int|string $offset
91
+	 * @param integer $offset
92 92
 	 *
93 93
 	 * @return bool
94 94
 	 */
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	}
98 98
 
99 99
 	/**
100
-	 * @param int|string $offset
100
+	 * @param integer $offset
101 101
 	 *
102 102
 	 * @return \chillerlan\Database\DBResultRow|mixed|null
103 103
 	 */
Please login to merge, or discard this 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/Drivers/PDO/PDODriverAbstract.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
 	}
200 200
 
201 201
 	/**
202
-	 * @param             $stmt
202
+	 * @param             PDOStatement $stmt
203 203
 	 * @param string|null $index
204 204
 	 * @param bool        $assoc
205 205
 	 *
Please login to merge, or discard this 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, PDOException, PDOStatement;
17
+use PDO;
18
+use PDOStatement;
18 19
 
19 20
 /**
20 21
  *
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/Drivers/DBDriverAbstract.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -45,6 +45,10 @@
 block discarded – undo
45 45
 	abstract protected function __raw(string $sql, string $index = null, bool $assoc = true);
46 46
 	abstract protected function __prepared(string $sql, array $values = [], string $index = null, bool $assoc = true);
47 47
 	abstract protected function __multi(string $sql, array $values);
48
+
49
+	/**
50
+	 * @param callable $callback
51
+	 */
48 52
 	abstract protected function __multi_callback(string $sql, array $data, $callback);
49 53
 
50 54
 	/**
Please login to merge, or discard this 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\DBException;
16 17
 use chillerlan\Database\DBOptions;
17 18
 use chillerlan\Database\DBResult;
18
-use Psr\SimpleCache\CacheInterface;
19 19
 
20 20
 /**
21 21
   * @see http://blog.mclaughlinsoftware.com/2010/02/21/php-binding-a-wildcard/ LIKE %...% -> LIKE CONCAT('%',?,'%')
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,11 +12,11 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\DatabaseTest\Drivers;
14 14
 
15
-use chillerlan\Database\Drivers\DBDriverInterface;
15
+use Psr\SimpleCache\CacheInterface;
16 16
 use chillerlan\DatabaseTest\TestAbstract;
17
+use chillerlan\Database\Drivers\DBDriverInterface;
17 18
 use chillerlan\SimpleCache\Cache;
18 19
 use chillerlan\SimpleCache\Drivers\MemoryCacheDriver;
19
-use Psr\SimpleCache\CacheInterface;
20 20
 
21 21
 abstract class DriverTestAbstract extends TestAbstract{
22 22
 
Please login to merge, or discard this patch.