Completed
Push — master ( 1e5c48...15dd9f )
by smiley
02:21
created
src/Drivers/MySQLi/MySQLiDriver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
 			$out = [];
188 188
 			$method = 'fetch_'.($assoc ? ($fetch_array ? 'assoc' : 'object') : 'row');
189
-			$i = 0 ;
189
+			$i = 0;
190 190
 
191 191
 			// ok, we have a result with one or more rows, loop out the rows and output as array
192 192
 			while($row = $result->{$method}()){
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 	 * @param \ReflectionMethod $reflectionMethod
351 351
 	 * @param array             $row
352 352
 	 */
353
-	protected function insertPreparedRow(mysqli_stmt &$stmt, ReflectionMethod &$reflectionMethod, array &$row){
353
+	protected function insertPreparedRow(mysqli_stmt&$stmt, ReflectionMethod&$reflectionMethod, array &$row){
354 354
 		$references = $this->getReferences($row);
355 355
 		array_unshift($references, $this->getTypes($references));
356 356
 		$reflectionMethod->invokeArgs($stmt, $references);
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 	 *
369 369
 	 * @return array|bool
370 370
 	 */
371
-	protected function getResult(mysqli_stmt &$stmt, mysqli_result &$result, $index, $assoc, $fetch_array){
371
+	protected function getResult(mysqli_stmt&$stmt, mysqli_result&$result, $index, $assoc, $fetch_array){
372 372
 		// get the columns and their references
373 373
 		// http://php.net/manual/mysqli-stmt.bind-result.php
374 374
 		$cols = $refs = [];
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
 		foreach($values as &$v){
425 425
 			switch(gettype($v)){
426 426
 				case 'integer': $types[] = 'i'; break;
427
-				case 'double': $types[] ='d'; break;
427
+				case 'double': $types[] = 'd'; break;
428 428
 				default: $types[] = 's'; break;
429 429
 			}
430 430
 		}
Please login to merge, or discard this patch.