@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | $pdo = DB::connection()->getPdo(); |
| 55 | 55 | |
| 56 | - return $pdo->query('SELECT table_name FROM information_schema.tables WHERE table_schema="'.$this->database.'"'); |
|
| 56 | + return $pdo->query('SELECT table_name FROM information_schema.tables WHERE table_schema="' . $this->database . '"'); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | //end getTables() |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | $pdo = DB::connection()->getPdo(); |
| 64 | 64 | |
| 65 | - return $pdo->query('SHOW INDEX FROM '.$this->database.'.'.$table.' WHERE Key_name != "PRIMARY"'); |
|
| 65 | + return $pdo->query('SHOW INDEX FROM ' . $this->database . '.' . $table . ' WHERE Key_name != "PRIMARY"'); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | //end getTableIndexes() |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | protected function getTableData($table) |
| 114 | 114 | { |
| 115 | - return DB::table($this->database.'.'.$table)->get(); |
|
| 115 | + return DB::table($this->database . '.' . $table)->get(); |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | //end getTableData() |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | $directories = explode($del, $path); |
| 130 | 130 | foreach ($directories as $directory) { |
| 131 | 131 | if (!empty($directory)) { |
| 132 | - $dir .= $del.$directory; |
|
| 132 | + $dir .= $del . $directory; |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | if (!is_dir($dir)) { |
@@ -27,27 +27,27 @@ |
||
| 27 | 27 | * @var array |
| 28 | 28 | **/ |
| 29 | 29 | protected $selects = array( |
| 30 | - 'column_name as Field', |
|
| 31 | - 'column_type as Type', |
|
| 32 | - 'is_nullable as null', |
|
| 33 | - 'column_key as Key', |
|
| 34 | - 'column_default as Default', |
|
| 35 | - 'extra as Extra', |
|
| 36 | - 'data_type as Data_Type', |
|
| 37 | - ); |
|
| 30 | + 'column_name as Field', |
|
| 31 | + 'column_type as Type', |
|
| 32 | + 'is_nullable as null', |
|
| 33 | + 'column_key as Key', |
|
| 34 | + 'column_default as Default', |
|
| 35 | + 'extra as Extra', |
|
| 36 | + 'data_type as Data_Type', |
|
| 37 | + ); |
|
| 38 | 38 | /** |
| 39 | 39 | * Select fields from constraints. |
| 40 | 40 | * |
| 41 | 41 | * @var array |
| 42 | 42 | **/ |
| 43 | 43 | protected $constraints = array( |
| 44 | - 'key_column_usage.table_name as Table', |
|
| 45 | - 'key_column_usage.column_name as Field', |
|
| 46 | - 'key_column_usage.referenced_table_name as ON', |
|
| 47 | - 'key_column_usage.referenced_column_name as References', |
|
| 48 | - 'REFERENTIAL_CONSTRAINTS.UPDATE_RULE as onUpdate', |
|
| 49 | - 'REFERENTIAL_CONSTRAINTS.DELETE_RULE as onDelete', |
|
| 50 | - ); |
|
| 44 | + 'key_column_usage.table_name as Table', |
|
| 45 | + 'key_column_usage.column_name as Field', |
|
| 46 | + 'key_column_usage.referenced_table_name as ON', |
|
| 47 | + 'key_column_usage.referenced_column_name as References', |
|
| 48 | + 'REFERENTIAL_CONSTRAINTS.UPDATE_RULE as onUpdate', |
|
| 49 | + 'REFERENTIAL_CONSTRAINTS.DELETE_RULE as onDelete', |
|
| 50 | + ); |
|
| 51 | 51 | |
| 52 | 52 | protected function getTables() |
| 53 | 53 | { |