Skip to content

Update src/Illuminate/Database/Schema/Blueprint.php #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions src/Illuminate/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public function __construct($table, Closure $callback = null)
/**
* Execute the blueprint against the database.
*
* @param Illuminate\Database\Connection $connection
* @param Illuminate\Database\Schema\Grammars\Grammar $grammar
* @param \Illuminate\Database\Connection $connection
* @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
* @return void
*/
public function build(Connection $connection, Grammar $grammar)
Expand All @@ -60,7 +60,7 @@ public function build(Connection $connection, Grammar $grammar)
/**
* Get the raw SQL statements for the blueprint.
*
* @param Illuminate\Database\Schema\Grammars\Grammar $grammar
* @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
* @return array
*/
public function toSql(Grammar $grammar)
Expand Down Expand Up @@ -155,7 +155,7 @@ protected function creating()
/**
* Indicate that the table needs to be created.
*
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function create()
{
Expand All @@ -165,7 +165,7 @@ public function create()
/**
* Indicate that the table should be dropped.
*
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function drop()
{
Expand All @@ -175,7 +175,7 @@ public function drop()
/**
* Indicate that the table should be dropped if it exists.
*
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function dropIfExists()
{
Expand All @@ -186,7 +186,7 @@ public function dropIfExists()
* Indicate that the given columns should be dropped.
*
* @param string|array $columns
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function dropColumn($columns)
{
Expand All @@ -199,7 +199,7 @@ public function dropColumn($columns)
* Indicate that the given columns should be dropped.
*
* @param dynamic
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function dropColumns()
{
Expand All @@ -210,7 +210,7 @@ public function dropColumns()
* Indicate that the given primary key should be dropped.
*
* @param string|array $index
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function dropPrimary($index = null)
{
Expand All @@ -221,7 +221,7 @@ public function dropPrimary($index = null)
* Indicate that the given unique key should be dropped.
*
* @param string|array $index
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function dropUnique($index)
{
Expand All @@ -232,7 +232,7 @@ public function dropUnique($index)
* Indicate that the given index should be dropped.
*
* @param string|array $index
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function dropIndex($index)
{
Expand All @@ -243,7 +243,7 @@ public function dropIndex($index)
* Indicate that the given foreign key should be dropped.
*
* @param string $index
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function dropForeign($index)
{
Expand All @@ -254,7 +254,7 @@ public function dropForeign($index)
* Rename the table to a given name.
*
* @param string $to
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function rename($to)
{
Expand All @@ -266,7 +266,7 @@ public function rename($to)
*
* @param string|array $columns
* @param string $name
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function primary($columns, $name = null)
{
Expand All @@ -278,7 +278,7 @@ public function primary($columns, $name = null)
*
* @param string|array $columns
* @param string $name
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function unique($columns, $name = null)
{
Expand All @@ -290,7 +290,7 @@ public function unique($columns, $name = null)
*
* @param string|array $columns
* @param string $name
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function index($columns, $name = null)
{
Expand All @@ -302,7 +302,7 @@ public function index($columns, $name = null)
*
* @param string|array $columns
* @param string $name
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function foreign($columns, $name = null)
{
Expand All @@ -313,7 +313,7 @@ public function foreign($columns, $name = null)
* Create a new auto-incrementing column on the table.
*
* @param string $column
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function increments($column)
{
Expand All @@ -325,7 +325,7 @@ public function increments($column)
*
* @param string $column
* @param int $length
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function string($column, $length = 255)
{
Expand All @@ -336,7 +336,7 @@ public function string($column, $length = 255)
* Create a new text column on the table.
*
* @param string $column
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function text($column)
{
Expand All @@ -347,7 +347,7 @@ public function text($column)
* Create a new integer column on the table.
*
* @param string $column
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function integer($column, $autoIncrement = false)
{
Expand All @@ -360,7 +360,7 @@ public function integer($column, $autoIncrement = false)
* @param string $column
* @param int $total
* @param int $places
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function float($column, $total = 8, $places = 2)
{
Expand All @@ -373,7 +373,7 @@ public function float($column, $total = 8, $places = 2)
* @param string $column
* @param int $total
* @param int $places
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function decimal($column, $total = 8, $places = 2)
{
Expand All @@ -384,7 +384,7 @@ public function decimal($column, $total = 8, $places = 2)
* Create a new boolean column on the table.
*
* @param string $column
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function boolean($column)
{
Expand All @@ -396,7 +396,7 @@ public function boolean($column)
*
* @param string $column
* @param array $allowed
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function enum($column, array $allowed)
{
Expand All @@ -407,7 +407,7 @@ public function enum($column, array $allowed)
* Create a new date column on the table.
*
* @param string $column
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function date($column)
{
Expand All @@ -418,7 +418,7 @@ public function date($column)
* Create a new date-time column on the table.
*
* @param string $column
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function dateTime($column)
{
Expand All @@ -429,7 +429,7 @@ public function dateTime($column)
* Create a new time column on the table.
*
* @param string $column
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function time($column)
{
Expand All @@ -440,7 +440,7 @@ public function time($column)
* Create a new timestamp column on the table.
*
* @param string $column
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function timestamp($column)
{
Expand All @@ -463,7 +463,7 @@ public function timestamps()
* Create a new binary column on the table.
*
* @param string $column
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
public function binary($column)
{
Expand All @@ -475,7 +475,7 @@ public function binary($column)
*
* @param string $type
* @param string|array $index
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
protected function dropIndexCommand($type, $index)
{
Expand All @@ -500,7 +500,7 @@ protected function dropIndexCommand($type, $index)
* @param string $type
* @param string|array $columns
* @param string $index
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
protected function indexCommand($type, $columns, $index)
{
Expand Down Expand Up @@ -537,7 +537,7 @@ protected function createIndexName($type, array $columns)
* @param string $type
* @param string $name
* @param array $parameters
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
protected function addColumn($type, $name, array $parameters = array())
{
Expand All @@ -553,7 +553,7 @@ protected function addColumn($type, $name, array $parameters = array())
*
* @param string $name
* @param array $parameters
* @return Illuminate\Support\Fluent
* @return \Illuminate\Support\Fluent
*/
protected function addCommand($name, array $parameters = array())
{
Expand All @@ -567,7 +567,7 @@ protected function addCommand($name, array $parameters = array())
*
* @param string $name
* @param array $parameters
* @return Illuminate\Support\Fluent
* @return Support\Fluent
*/
protected function createCommand($name, array $parameters = array())
{
Expand Down Expand Up @@ -604,4 +604,4 @@ public function getCommands()
return $this->commands;
}

}
}