Merge pull request #774 from franzliedke/patch-8
Avoid unnecessary end() in Table::command() function
This commit is contained in:
commit
1b062499dd
|
@ -393,9 +393,7 @@ protected function command($type, $parameters = array())
|
||||||
{
|
{
|
||||||
$parameters = array_merge(compact('type'), $parameters);
|
$parameters = array_merge(compact('type'), $parameters);
|
||||||
|
|
||||||
$this->commands[] = new Fluent($parameters);
|
return $this->commands[] = new Fluent($parameters);
|
||||||
|
|
||||||
return end($this->commands);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -409,9 +407,7 @@ protected function column($type, $parameters = array())
|
||||||
{
|
{
|
||||||
$parameters = array_merge(compact('type'), $parameters);
|
$parameters = array_merge(compact('type'), $parameters);
|
||||||
|
|
||||||
$this->columns[] = new Fluent($parameters);
|
return $this->columns[] = new Fluent($parameters);
|
||||||
|
|
||||||
return end($this->columns);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue