Browse Source

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

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

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

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