Grammar/Vocabulary fixes

Signed-off-by: Chris Berthe <chrisberthe@gmail.com>
This commit is contained in:
Chris Berthe
2012-06-13 11:19:20 -04:00
parent d9802fe656
commit fafaf724b0
54 changed files with 130 additions and 130 deletions

View File

@@ -37,7 +37,7 @@ class MySQL extends Grammar {
}
/**
* Geenrate the SQL statements for a table modification command.
* Generate the SQL statements for a table modification command.
*
* @param Table $table
* @param Fluent $command
@@ -47,7 +47,7 @@ class MySQL extends Grammar {
{
$columns = $this->columns($table);
// Once we the array of column definitions, we need to add "add" to the
// Once we have the array of column definitions, we need to add "add" to the
// front of each definition, then we'll concatenate the definitions
// using commas like normal and generate the SQL.
$columns = implode(', ', array_map(function($column)
@@ -260,7 +260,7 @@ class MySQL extends Grammar {
}
/**
* Generate the SQL statement for a drop unqique key command.
* Generate the SQL statement for a drop unique key command.
*
* @param Table $table
* @param Fluent $command
@@ -284,7 +284,7 @@ class MySQL extends Grammar {
}
/**
* Generate the SQL statement for a drop unqique key command.
* Generate the SQL statement for a drop unique key command.
*
* @param Table $table
* @param Fluent $command
@@ -353,7 +353,7 @@ class MySQL extends Grammar {
}
/**
* Generate the data-type definintion for a decimal.
* Generate the data-type definition for a decimal.
*
* @param Fluent $column
* @return string

View File

@@ -35,7 +35,7 @@ class Postgres extends Grammar {
{
$columns = $this->columns($table);
// Once we the array of column definitions, we need to add "add" to the
// Once we have the array of column definitions, we need to add "add" to the
// front of each definition, then we'll concatenate the definitions
// using commas like normal and generate the SQL.
$columns = implode(', ', array_map(function($column)
@@ -246,7 +246,7 @@ class Postgres extends Grammar {
}
/**
* Generate the SQL statement for a drop unqique key command.
* Generate the SQL statement for a drop unique key command.
*
* @param Table $table
* @param Fluent $command

View File

@@ -29,7 +29,7 @@ class SQLite extends Grammar {
return $value->type == 'primary';
});
// If we found primary key in the array of commands, we'll create the SQL for
// If we found primary keys in the array of commands, we'll create the SQL for
// the key addition and append it to the SQL table creation statement for
// the schema table so the index is properly generated.
if ( ! is_null($primary))
@@ -43,7 +43,7 @@ class SQLite extends Grammar {
}
/**
* Geenrate the SQL statements for a table modification command.
* Generate the SQL statements for a table modification command.
*
* @param Table $table
* @param Fluent $command
@@ -53,7 +53,7 @@ class SQLite extends Grammar {
{
$columns = $this->columns($table);
// Once we the array of column definitions, we need to add "add" to the
// Once we have the array of column definitions, we need to add "add" to the
// front of each definition, then we'll concatenate the definitions
// using commas like normal and generate the SQL.
$columns = array_map(function($column)
@@ -87,7 +87,7 @@ class SQLite extends Grammar {
{
// Each of the data type's have their own definition creation method
// which is responsible for creating the SQL for the type. This lets
// us to keep the syntax easy and fluent, while translating the
// us keep the syntax easy and fluent, while translating the
// types to the types used by the database.
$sql = $this->wrap($column).' '.$this->type($column);
@@ -214,7 +214,7 @@ class SQLite extends Grammar {
}
/**
* Generate the SQL statement for a drop unqique key command.
* Generate the SQL statement for a drop unique key command.
*
* @param Table $table
* @param Fluent $command
@@ -226,7 +226,7 @@ class SQLite extends Grammar {
}
/**
* Generate the SQL statement for a drop unqique key command.
* Generate the SQL statement for a drop unique key command.
*
* @param Table $table
* @param Fluent $command

View File

@@ -32,7 +32,7 @@ class SQLServer extends Grammar {
}
/**
* Geenrate the SQL statements for a table modification command.
* Generate the SQL statements for a table modification command.
*
* @param Table $table
* @param Fluent $command
@@ -42,7 +42,7 @@ class SQLServer extends Grammar {
{
$columns = $this->columns($table);
// Once we the array of column definitions, we need to add "add" to the
// Once we have the array of column definitions, we need to add "add" to the
// front of each definition, then we'll concatenate the definitions
// using commas like normal and generate the SQL.
$columns = implode(', ', array_map(function($column)
@@ -235,7 +235,7 @@ class SQLServer extends Grammar {
{
$columns = array_map(array($this, 'wrap'), $command->columns);
// Once we the array of column names, we need to add "drop" to the front
// Once we have the array of column names, we need to add "drop" to the front
// of each column, then we'll concatenate the columns using commas and
// generate the alter statement SQL.
$columns = implode(', ', array_map(function($column)
@@ -260,7 +260,7 @@ class SQLServer extends Grammar {
}
/**
* Generate the SQL statement for a drop unqiue key command.
* Generate the SQL statement for a drop unique key command.
*
* @param Table $table
* @param Fluent $command