Avoid unnecessary end() in Table::command() function.
This commit is contained in:
parent
d9802fe656
commit
8fc80c47d9
|
@ -393,9 +393,7 @@ protected function command($type, $parameters = array())
|
|||
{
|
||||
$parameters = array_merge(compact('type'), $parameters);
|
||||
|
||||
$this->commands[] = new Fluent($parameters);
|
||||
|
||||
return end($this->commands);
|
||||
return $this->commands[] = new Fluent($parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue