mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 16:22:41 +09:00
Remove trailing whitespace
This commit is contained in:
parent
3b0030e82b
commit
a9f72a5cd2
81 changed files with 2455 additions and 2455 deletions
|
|
@ -13,10 +13,10 @@ class Table
|
|||
public $primary_key = array();
|
||||
public $constraints = array();
|
||||
public $deleted = false;
|
||||
|
||||
|
||||
/**
|
||||
* Generate the CREATE TABLE query for this table.
|
||||
*
|
||||
*
|
||||
* @param string $prefix
|
||||
* @param string $charset
|
||||
* @param string $engine
|
||||
|
|
@ -26,7 +26,7 @@ class Table
|
|||
{
|
||||
// Initialize the query.
|
||||
$result = 'CREATE TABLE `' . $prefix . $this->name . '` (';
|
||||
|
||||
|
||||
// Add columns.
|
||||
$columns = array();
|
||||
$adjusted_sizes = array();
|
||||
|
|
@ -74,7 +74,7 @@ class Table
|
|||
}
|
||||
$columns[] = $columndef;
|
||||
}
|
||||
|
||||
|
||||
// Add indexes.
|
||||
if (count($this->primary_key))
|
||||
{
|
||||
|
|
@ -106,7 +106,7 @@ class Table
|
|||
}
|
||||
$columns[] = $idxdef;
|
||||
}
|
||||
|
||||
|
||||
// Add constraints.
|
||||
foreach ($this->constraints as $constraint)
|
||||
{
|
||||
|
|
@ -125,7 +125,7 @@ class Table
|
|||
}
|
||||
$columns[] = $condef;
|
||||
}
|
||||
|
||||
|
||||
// Finish the query.
|
||||
$footer = '';
|
||||
if ($engine)
|
||||
|
|
@ -138,7 +138,7 @@ class Table
|
|||
}
|
||||
$result .= "\n" . implode(",\n", $columns);
|
||||
$result .= "\n" . ') ' . $footer . ';';
|
||||
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue