Completed
Pull Request — master (#42)
by Dima
27:18
created
src/MySql/AuditDataLayer.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -110,14 +110,14 @@  discard block
 block discarded – undo
110 110
                                             $additionSql)
111 111
   {
112 112
     $helper = new CreateAuditTrigger($dataSchemaName,
113
-                                     $auditSchemaName,
114
-                                     $tableName,
115
-                                     $triggerName,
116
-                                     $triggerAction,
117
-                                     $auditColumns,
118
-                                     $tableColumns,
119
-                                     $skipVariable,
120
-                                     $additionSql);
113
+                                      $auditSchemaName,
114
+                                      $tableName,
115
+                                      $triggerName,
116
+                                      $triggerAction,
117
+                                      $auditColumns,
118
+                                      $tableColumns,
119
+                                      $skipVariable,
120
+                                      $additionSql);
121 121
     $sql    = $helper->buildStatement();
122 122
 
123 123
     self::executeNone($sql);
@@ -302,8 +302,8 @@  discard block
 block discarded – undo
302 302
 where  TABLE_SCHEMA = %s
303 303
 and    TABLE_NAME   = %s
304 304
 order by ORDINAL_POSITION',
305
-                   self::$dl->quoteString($schemaName),
306
-                   self::$dl->quoteString($tableName));
305
+                    self::$dl->quoteString($schemaName),
306
+                    self::$dl->quoteString($tableName));
307 307
 
308 308
     return self::executeRows($sql);
309 309
   }
@@ -327,8 +327,8 @@  discard block
 block discarded – undo
327 327
 inner join information_schema.COLLATION_CHARACTER_SET_APPLICABILITY t2  on  t2.COLLATION_NAME = t1.TABLE_COLLATION
328 328
 WHERE t1.TABLE_SCHEMA = %s
329 329
 AND   t1.TABLE_NAME   = %s',
330
-                   self::$dl->quoteString($schemaName),
331
-                   self::$dl->quoteString($tableName));
330
+                    self::$dl->quoteString($schemaName),
331
+                    self::$dl->quoteString($tableName));
332 332
 
333 333
     return self::executeRow1($sql);
334 334
   }
@@ -350,8 +350,8 @@  discard block
 block discarded – undo
350 350
 where  TRIGGER_SCHEMA     = %s
351 351
 and    EVENT_OBJECT_TABLE = %s
352 352
 order by Trigger_Name',
353
-                   self::$dl->quoteString($schemaName),
354
-                   self::$dl->quoteString($tableName));
353
+                    self::$dl->quoteString($schemaName),
354
+                    self::$dl->quoteString($tableName));
355 355
 
356 356
     return self::executeRows($sql);
357 357
   }
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 where  TRIGGER_SCHEMA     = %s
394 394
 order by EVENT_OBJECT_TABLE
395 395
 ,        TRIGGER_NAME',
396
-                   self::$dl->quoteString($schemaName));
396
+                    self::$dl->quoteString($schemaName));
397 397
 
398 398
     return self::executeRows($sql);
399 399
   }
Please login to merge, or discard this patch.
src/MySql/Audit.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
       {
151 151
         $this->io->writeln(sprintf('<info>Found new table %s</info>', $table['table_name']));
152 152
         $this->config['tables'][$table['table_name']] = ['audit' => false,
153
-                                                         'alias' => null,
154
-                                                         'skip'  => null];
153
+                                                          'alias' => null,
154
+                                                          'skip'  => null];
155 155
       }
156 156
     }
157 157
   }
@@ -169,8 +169,8 @@  discard block
 block discarded – undo
169 169
     foreach ($triggers as $trigger)
170 170
     {
171 171
       $this->io->logInfo('Dropping trigger <dbo>%s</dbo> from obsolete table <dbo>%s</dbo>',
172
-                         $trigger['trigger_name'],
173
-                         $tableName);
172
+                          $trigger['trigger_name'],
173
+                          $tableName);
174 174
 
175 175
       AuditDataLayer::dropTrigger($schemaName, $trigger['trigger_name']);
176 176
     }
@@ -234,15 +234,15 @@  discard block
 block discarded – undo
234 234
           $tableColumns = [];
235 235
         }
236 236
         $configTable = new TableMetadata($table['table_name'],
237
-                                         $this->config['database']['data_schema'],
238
-                                         $tableColumns);
237
+                                          $this->config['database']['data_schema'],
238
+                                          $tableColumns);
239 239
 
240 240
         $currentTable = new AuditTable($this->io,
241
-                                       $configTable,
242
-                                       $this->config['database']['audit_schema'],
243
-                                       $this->auditColumnsMetadata,
244
-                                       $this->config['tables'][$table['table_name']]['alias'],
245
-                                       $this->config['tables'][$table['table_name']]['skip']);
241
+                                        $configTable,
242
+                                        $this->config['database']['audit_schema'],
243
+                                        $this->auditColumnsMetadata,
244
+                                        $this->config['tables'][$table['table_name']]['alias'],
245
+                                        $this->config['tables'][$table['table_name']]['skip']);
246 246
 
247 247
         // Ensure an audit table exists.
248 248
         if (StaticDataLayer::searchInRowSet('table_name', $table['table_name'], $this->auditSchemaTables)===null)
Please login to merge, or discard this patch.