Browse Source

Avoid unnecessary end() in Table::command() function.

Franz Liedke 12 years ago
parent
commit
8fc80c47d9
1 changed files with 1 additions and 3 deletions
  1. 1 3
      laravel/database/schema/table.php

+ 1 - 3
laravel/database/schema/table.php

@@ -393,9 +393,7 @@ class Table {
 	{
 		$parameters = array_merge(compact('type'), $parameters);
 
-		$this->commands[] = new Fluent($parameters);
-
-		return end($this->commands);
+		return $this->commands[] = new Fluent($parameters);
 	}
 
 	/**