Skip to content

Fix #206 #494

Closed
wants to merge 1 commit into from

2 participants

@jails
Union of RAD member
jails commented May 26, 2012

No description provided.

@nateabele nateabele commented on the diff May 26, 2012
data/model/Query.php
@@ -402,7 +402,10 @@ public function data($data = array()) {
$bind ? $bind->set($data) : $this->_data = array_merge($this->_data, $data);
return $this;
}
- $data = $bind ? $bind->data() : $this->_data;
+ $data = $bind ? $bind->to('array', array(
@nateabele
Union of RAD member
nateabele added a note May 26, 2012

Ternaries shouldn't be broken over multiple lines. Maybe you can just do:

$data = $this->_data;

if ($bind) {
    ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@jails jails closed this May 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.