Completed
Push — master ( 20edd5...7d7f4e )
by smiley
02:32
created
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/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.
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.
tests/Query/QueryTestAbstract.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
 		$insert
114 114
 			->into(self::TEST_TABLENAME)
115 115
 			->values([
116
-				['id' => 1, 'hash' => md5(1), 'data' => 'foo', 'value' => 123.456,    'active' => 0],
116
+				['id' => 1, 'hash' => md5(1), 'data' => 'foo', 'value' => 123.456, 'active' => 0],
117 117
 				['id' => 2, 'hash' => md5(2), 'data' => 'foo', 'value' => 123.456789, 'active' => 1],
118
-				['id' => 3, 'hash' => md5(3), 'data' => 'foo', 'value' => 123.456,    'active' => 0],
118
+				['id' => 3, 'hash' => md5(3), 'data' => 'foo', 'value' => 123.456, 'active' => 0],
119 119
 			])
120 120
 		;
121 121
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 		$select = $this->statement->select;
172 172
 		$select
173 173
 			->from([self::TEST_TABLENAME])
174
-			->where('id', [1,2,3], 'in')
174
+			->where('id', [1, 2, 3], 'in')
175 175
 			->orderBy(['hash' => ['desc', 'lower']]);
176 176
 #		print_r(PHP_EOL.$select->sql().PHP_EOL);
177 177
 		$result = $select->execute();
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 #		print_r(PHP_EOL.$update->sql().PHP_EOL);
214 214
 		$this->assertTrue($update->execute());
215 215
 
216
-		$r = $this->statement->select->from([self::TEST_TABLENAME])->where('id' ,1)->execute();
216
+		$r = $this->statement->select->from([self::TEST_TABLENAME])->where('id', 1)->execute();
217 217
 
218 218
 		$this->assertSame('bar', $r[0]->data);
219 219
 		$this->assertSame(42.42, (float)$r[0]->value);
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 		$this->assertTrue($delete->execute());
248 248
 
249 249
 		$r = $this->statement->select->from([self::TEST_TABLENAME])->execute();
250
-		$this->assertCount(3,  $r);
250
+		$this->assertCount(3, $r);
251 251
 	}
252 252
 
253 253
 	/**
Please login to merge, or discard this patch.