Commit 57379036 authored by Steve Müller's avatar Steve Müller

fix code style

parent 959e19d8
...@@ -261,13 +261,15 @@ class MysqliStatement implements \IteratorAggregate, Statement ...@@ -261,13 +261,15 @@ class MysqliStatement implements \IteratorAggregate, Statement
$ret = array_combine($this->_columnNames, $values); $ret = array_combine($this->_columnNames, $values);
$ret += $values; $ret += $values;
return $ret; return $ret;
case PDO::FETCH_OBJ: case PDO::FETCH_OBJ:
$assoc = array_combine($this->_columnNames, $values); $assoc = array_combine($this->_columnNames, $values);
$ret = new \stdClass(); $ret = new \stdClass();
foreach ($assoc as $column => $value) { foreach ($assoc as $column => $value) {
$ret->$column = $value; $ret->$column = $value;
} }
return $ret; return $ret;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment