@@ -186,7 +186,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |