@@ -153,7 +153,7 @@ |
||
| 153 | 153 | $this->config['audit_columns'], |
| 154 | 154 | $this->config['tables'][$table['table_name']]['alias'], |
| 155 | 155 | $this->config['tables'][$table['table_name']]['skip']); |
| 156 | - $res = StaticDataLayer::searchInRowSet('table_name', $currentTable->getTableName(), $this->auditSchemaTables); |
|
| 156 | + $res = StaticDataLayer::searchInRowSet('table_name', $currentTable->getTableName(), $this->auditSchemaTables); |
|
| 157 | 157 | if (!isset($res)) |
| 158 | 158 | { |
| 159 | 159 | $currentTable->createMissingAuditTable(); |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | { |
| 106 | 106 | $this->io->writeln(sprintf('<info>Found new table %s</info>', $table['table_name'])); |
| 107 | 107 | $this->config['tables'][$table['table_name']] = ['audit' => false, |
| 108 | - 'alias' => null, |
|
| 109 | - 'skip' => null]; |
|
| 108 | + 'alias' => null, |
|
| 109 | + 'skip' => null]; |
|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -143,8 +143,8 @@ discard block |
||
| 143 | 143 | protected function configure() |
| 144 | 144 | { |
| 145 | 145 | $this->setName('audit') |
| 146 | - ->setDescription('Create (missing) audit table and (re)creates audit triggers') |
|
| 147 | - ->addArgument('config file', InputArgument::OPTIONAL, 'The audit configuration file'); |
|
| 146 | + ->setDescription('Create (missing) audit table and (re)creates audit triggers') |
|
| 147 | + ->addArgument('config file', InputArgument::OPTIONAL, 'The audit configuration file'); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | //-------------------------------------------------------------------------------------------------------------------- |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * |
| 54 | 54 | * @param array[] $columns The metadata of the columns of a table. |
| 55 | 55 | * |
| 56 | - * @return array[] |
|
| 56 | + * @return \array[] |
|
| 57 | 57 | */ |
| 58 | 58 | private static function removeMatchingColumns($columns) |
| 59 | 59 | { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | /** |
| 143 | 143 | * Add not null to audit columns if it not nullable. |
| 144 | 144 | * |
| 145 | - * @param array $theColumns Audit columns. |
|
| 145 | + * @param \array[] $theColumns Audit columns. |
|
| 146 | 146 | * |
| 147 | 147 | * @return array |
| 148 | 148 | */ |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * @param Columns $dataColumns The table columns from data schema. |
| 174 | 174 | * @param Columns $auditColumns The table columns from audit schema. |
| 175 | 175 | * |
| 176 | - * @return \array[] |
|
| 176 | + * @return ColumnTypesExtended |
|
| 177 | 177 | */ |
| 178 | 178 | private function createDiffArray($dataColumns, $auditColumns) |
| 179 | 179 | { |