@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * |
| 75 | 75 | * @param array[] $columns The metadata of the columns of a table. |
| 76 | 76 | * |
| 77 | - * @return array[] |
|
| 77 | + * @return \array[] |
|
| 78 | 78 | */ |
| 79 | 79 | private static function removeMatchingColumns($columns) |
| 80 | 80 | { |
@@ -211,9 +211,9 @@ discard block |
||
| 211 | 211 | /** |
| 212 | 212 | * Add not null to audit columns if it not nullable. |
| 213 | 213 | * |
| 214 | - * @param array $theColumns Audit columns. |
|
| 214 | + * @param \array[] $theColumns Audit columns. |
|
| 215 | 215 | * |
| 216 | - * @return array |
|
| 216 | + * @return \array[] |
|
| 217 | 217 | */ |
| 218 | 218 | private function addNotNull($theColumns) |
| 219 | 219 | { |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | * @param TableColumnsMetadata $dataColumns The table columns from data schema. |
| 243 | 243 | * @param TableColumnsMetadata $auditColumns The table columns from audit schema. |
| 244 | 244 | * |
| 245 | - * @return \array[] |
|
| 245 | + * @return ColumnTypesExtended |
|
| 246 | 246 | */ |
| 247 | 247 | private function createDiffArray($dataColumns, $auditColumns) |
| 248 | 248 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace SetBased\Audit\MySql\Helper; |
| 4 | 4 | |
| 5 | 5 | //---------------------------------------------------------------------------------------------------------------------- |
| 6 | -use SetBased\Audit\MySql\Table\Columns; |
|
| 7 | 6 | use SetBased\Audit\MySQl\Table\ColumnType; |
| 8 | 7 | |
| 9 | 8 | /** |
@@ -159,8 +159,8 @@ discard block |
||
| 159 | 159 | { |
| 160 | 160 | $this->io->writeln(sprintf('<info>Found new table %s</info>', $table['table_name'])); |
| 161 | 161 | $this->configMetadata['tables'][$table['table_name']] = ['audit' => false, |
| 162 | - 'alias' => null, |
|
| 163 | - 'skip' => null]; |
|
| 162 | + 'alias' => null, |
|
| 163 | + 'skip' => null]; |
|
| 164 | 164 | } |
| 165 | 165 | } |
| 166 | 166 | } |
@@ -223,15 +223,15 @@ discard block |
||
| 223 | 223 | $tableColumns = []; |
| 224 | 224 | } |
| 225 | 225 | $configTable = new TableMetadata($table['table_name'], |
| 226 | - $this->config['database']['data_schema'], |
|
| 227 | - $tableColumns); |
|
| 226 | + $this->config['database']['data_schema'], |
|
| 227 | + $tableColumns); |
|
| 228 | 228 | |
| 229 | 229 | $currentTable = new AuditTable($this->io, |
| 230 | - $configTable, |
|
| 231 | - $this->config['database']['audit_schema'], |
|
| 232 | - $this->auditColumnsMetadata, |
|
| 233 | - $this->configMetadata['tables'][$table['table_name']]['alias'], |
|
| 234 | - $this->configMetadata['tables'][$table['table_name']]['skip']); |
|
| 230 | + $configTable, |
|
| 231 | + $this->config['database']['audit_schema'], |
|
| 232 | + $this->auditColumnsMetadata, |
|
| 233 | + $this->configMetadata['tables'][$table['table_name']]['alias'], |
|
| 234 | + $this->configMetadata['tables'][$table['table_name']]['skip']); |
|
| 235 | 235 | |
| 236 | 236 | // Ensure an audit table exists. |
| 237 | 237 | if (StaticDataLayer::searchInRowSet('table_name', $table['table_name'], $this->auditSchemaTables)===null) |