Commit 1b062499 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #774 from franzliedke/patch-8

Avoid unnecessary end() in Table::command() function
parents 3fcb3aac 605be704
...@@ -393,9 +393,7 @@ class Table { ...@@ -393,9 +393,7 @@ class Table {
{ {
$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 @@ class Table { ...@@ -409,9 +407,7 @@ class Table {
{ {
$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);
} }
} }
\ No newline at end of file
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