Completed
Push — master ( 7d7f4e...c0227e )
by smiley
02:27
created
src/Drivers/PDO/PDODriverAbstract.php 1 patch
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.
src/Drivers/DBDriverAbstract.php 1 patch
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.
src/Query/Traits/WhereTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 	/**
54 54
 	 * @param        $val1
55 55
 	 * @param null   $val2
56
-	 * @param null   $operator
56
+	 * @param string   $operator
57 57
 	 * @param bool   $bind
58 58
 	 * @param string $join
59 59
 	 *
Please login to merge, or discard this patch.
src/Query/Dialects/MySQL/CreateTable.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
 		// @todo: whitelist types?
67 67
 		$nolengthtypes = ['DATE', 'TINYBLOB', 'TINYTEXT', 'BLOB', 'TEXT', 'MEDIUMBLOB',
68
-		                  'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID'];
68
+						  'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID'];
69 69
 
70 70
 		$field[] = (is_int($length) || is_string($length) && count(explode(',', $length)) === 2) && !in_array($type, $nolengthtypes)
71 71
 			? $type.'('. $length . ')'
Please login to merge, or discard this patch.
src/Query/SelectAbstract.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
 	/**
51 51
 	 * @param      $expr1
52
-	 * @param null $expr2
52
+	 * @param string|null $expr2
53 53
 	 * @param null $func
54 54
 	 *
55 55
 	 * @return void
Please login to merge, or discard this patch.
src/Query/Dialects/SQLite/CreateTable.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 			if($this->primaryKey){
53 53
 				$sql .=','.PHP_EOL."\t".'PRIMARY KEY ('.$this->quote($this->primaryKey)
54
-				       .(in_array($this->dir, ['ASC', 'DESC']) ? $this->dir : '').')';
54
+					   .(in_array($this->dir, ['ASC', 'DESC']) ? $this->dir : '').')';
55 55
 			}
56 56
 
57 57
 			$sql .= PHP_EOL.')';
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
 
89 89
 		if(is_int($length)&& in_array($type, ['CHAR', 'NCHAR','VARCHAR', 'NVARCHAR', 'CHARACTER'])
90
-		    || is_string($length) && count(explode(',', $length)) === 2 && $type === 'DECIMAL'){
90
+			|| is_string($length) && count(explode(',', $length)) === 2 && $type === 'DECIMAL'){
91 91
 			$field[] = $type_translation.'('. $length . ')';
92 92
 		}
93 93
 		else{
Please login to merge, or discard this patch.
src/DBResult.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 ***************/
116 116
 
117 117
 	/**
118
-	 * @param int|string $offset
118
+	 * @param integer $offset
119 119
 	 *
120 120
 	 * @return bool
121 121
 	 */
@@ -124,9 +124,9 @@  discard block
 block discarded – undo
124 124
 	}
125 125
 
126 126
 	/**
127
-	 * @param int|string $offset
127
+	 * @param integer $offset
128 128
 	 *
129
-	 * @return \chillerlan\Database\DBResultRow|mixed|null
129
+	 * @return DBResultRow|null
130 130
 	 */
131 131
 	public function offsetGet($offset){
132 132
 		return $this->array[$offset] ?? null;
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 	 ************/
177 177
 
178 178
 	/**
179
-	 * @return \chillerlan\Database\DBResultRow|mixed
179
+	 * @return DBResultRow|null
180 180
 	 */
181 181
 	public function current(){
182 182
 		return $this->offsetGet($this->offset);
Please login to merge, or discard this patch.