Completed
Push — master ( 744b49...fa00f5 )
by P.R.
04:15
created
src/MySql/Command/DropTriggersCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
   protected function configure()
22 22
   {
23 23
     $this->setName('drop-triggers')
24
-         ->setDescription('Drops all triggers')
25
-         ->addArgument('config file', InputArgument::REQUIRED, 'The audit configuration file');
24
+          ->setDescription('Drops all triggers')
25
+          ->addArgument('config file', InputArgument::REQUIRED, 'The audit configuration file');
26 26
   }
27 27
 
28 28
   //--------------------------------------------------------------------------------------------------------------------
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
     foreach ($triggers as $trigger)
59 59
     {
60 60
       $this->io->logInfo('Dropping trigger <dbo>%s</dbo> from table <dbo>%s</dbo>',
61
-                         $trigger['trigger_name'],
62
-                         $trigger['table_name']);
61
+                          $trigger['trigger_name'],
62
+                          $trigger['table_name']);
63 63
 
64 64
       AuditDataLayer::dropTrigger($data_schema, $trigger['trigger_name']);
65 65
     }
Please login to merge, or discard this patch.
src/MySql/AuditDataLayer.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
                                             $additionSql)
114 114
   {
115 115
     $helper = new CreateAuditTrigger($dataSchemaName,
116
-                                     $auditSchemaName,
117
-                                     $tableName,
118
-                                     $triggerAction,
119
-                                     $triggerName,
120
-                                     $auditColumns,
121
-                                     $tableColumns,
122
-                                     $skipVariable,
123
-                                     $additionSql);
116
+                                      $auditSchemaName,
117
+                                      $tableName,
118
+                                      $triggerAction,
119
+                                      $triggerName,
120
+                                      $auditColumns,
121
+                                      $tableColumns,
122
+                                      $skipVariable,
123
+                                      $additionSql);
124 124
     $sql    = $helper->buildStatement();
125 125
 
126 126
     self::executeNone($sql);
@@ -305,8 +305,8 @@  discard block
 block discarded – undo
305 305
 where  TABLE_SCHEMA = %s
306 306
 and    TABLE_NAME   = %s
307 307
 order by ORDINAL_POSITION',
308
-                   self::$dl->quoteString($schemaName),
309
-                   self::$dl->quoteString($tableName));
308
+                    self::$dl->quoteString($schemaName),
309
+                    self::$dl->quoteString($tableName));
310 310
 
311 311
     return self::executeRows($sql);
312 312
   }
@@ -330,8 +330,8 @@  discard block
 block discarded – undo
330 330
 inner join information_schema.COLLATION_CHARACTER_SET_APPLICABILITY t2  on  t2.COLLATION_NAME = t1.TABLE_COLLATION
331 331
 WHERE t1.TABLE_SCHEMA = %s
332 332
 AND   t1.TABLE_NAME   = %s',
333
-                   self::$dl->quoteString($schemaName),
334
-                   self::$dl->quoteString($tableName));
333
+                    self::$dl->quoteString($schemaName),
334
+                    self::$dl->quoteString($tableName));
335 335
 
336 336
     return self::executeRow1($sql);
337 337
   }
@@ -353,8 +353,8 @@  discard block
 block discarded – undo
353 353
 where  TRIGGER_SCHEMA     = %s
354 354
 and    EVENT_OBJECT_TABLE = %s
355 355
 order by Trigger_Name',
356
-                   self::$dl->quoteString($schemaName),
357
-                   self::$dl->quoteString($tableName));
356
+                    self::$dl->quoteString($schemaName),
357
+                    self::$dl->quoteString($tableName));
358 358
 
359 359
     return self::executeRows($sql);
360 360
   }
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 where  TRIGGER_SCHEMA     = %s
377 377
 order by EVENT_OBJECT_TABLE
378 378
 ,        TRIGGER_NAME',
379
-                   self::$dl->quoteString($schemaName));
379
+                    self::$dl->quoteString($schemaName));
380 380
 
381 381
     return self::executeRows($sql);
382 382
   }
Please login to merge, or discard this patch.