@@ -115,14 +115,14 @@ |
||
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | |
| 118 | - public function exportStructure(){ |
|
| 119 | - $export = []; |
|
| 118 | + public function exportStructure(){ |
|
| 119 | + $export = []; |
|
| 120 | 120 | $tables = $this->repositoryMysql->getTablesStructure($this->databaseName); |
| 121 | 121 | foreach ($tables as $table) { |
| 122 | 122 | $export[$table] = $this->getIndex($table); |
| 123 | 123 | $export[$table]['columns'] = $this->getColumns($table); |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | - return json_encode($export); |
|
| 127 | - } |
|
| 126 | + return json_encode($export); |
|
| 127 | + } |
|
| 128 | 128 | } |
@@ -75,10 +75,10 @@ discard block |
||
| 75 | 75 | continue; |
| 76 | 76 | } |
| 77 | 77 | $key = 'indexes'; |
| 78 | - if(!$row['NON_UNIQUE']) { |
|
| 78 | + if (!$row['NON_UNIQUE']) { |
|
| 79 | 79 | $key = 'uniques'; |
| 80 | 80 | } |
| 81 | - if(!$row['NON_FULLTEXT']) { |
|
| 81 | + if (!$row['NON_FULLTEXT']) { |
|
| 82 | 82 | $key = 'fulltexts'; |
| 83 | 83 | } |
| 84 | 84 | $export[$key][] = array_filter(['name' => $row['INDEX_NAME'], 'columns' => explode(',', $row['COLUMN_NAME'])]); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | |
| 118 | - public function exportStructure(){ |
|
| 118 | + public function exportStructure() { |
|
| 119 | 119 | $export = []; |
| 120 | 120 | $tables = $this->repositoryMysql->getTablesStructure($this->databaseName); |
| 121 | 121 | foreach ($tables as $table) { |