Passed
Branch master (406faa)
by P.R.
05:09
created
src/Command/BaseCommand.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
    * @throws RuntimeException
59 59
    */
60 60
   protected static function getSetting(array $settings,
61
-                                       bool $mandatory,
62
-                                       string $sectionName,
63
-                                       string $settingName): ?string
61
+                                        bool $mandatory,
62
+                                        string $sectionName,
63
+                                        string $settingName): ?string
64 64
   {
65 65
     // Test if the section exists.
66 66
     if (!array_key_exists($sectionName, $settings))
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
       if ($mandatory)
82 82
       {
83 83
         throw new RuntimeException("Setting '%s' not found in section '%s' configuration file.",
84
-                                   $settingName,
85
-                                   $sectionName);
84
+                                    $settingName,
85
+                                    $sectionName);
86 86
       }
87 87
       else
88 88
       {
Please login to merge, or discard this patch.
src/Metadata/TableColumnsMetadata.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
    * @return TableColumnsMetadata
81 81
    */
82 82
   public static function notInOtherSet(TableColumnsMetadata $columns1,
83
-                                       TableColumnsMetadata $columns2): TableColumnsMetadata
83
+                                        TableColumnsMetadata $columns2): TableColumnsMetadata
84 84
   {
85 85
     $diff = new TableColumnsMetadata();
86 86
     foreach ($columns1->columns as $column_name => $column1)
Please login to merge, or discard this patch.
src/AuditTable.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -257,14 +257,14 @@  discard block
 block discarded – undo
257 257
                           $this->tableName);
258 258
 
259 259
     AuditDataLayer::createAuditTrigger($this->dataSchemaName,
260
-                                       $this->auditSchemaName,
261
-                                       $this->tableName,
262
-                                       $triggerName,
263
-                                       $action,
264
-                                       $this->additionalAuditColumns,
265
-                                       $this->dataTableColumnsDatabase,
266
-                                       $skipVariable,
267
-                                       $additionSql);
260
+                                        $this->auditSchemaName,
261
+                                        $this->tableName,
262
+                                        $triggerName,
263
+                                        $action,
264
+                                        $this->additionalAuditColumns,
265
+                                        $this->dataTableColumnsDatabase,
266
+                                        $skipVariable,
267
+                                        $additionSql);
268 268
   }
269 269
 
270 270
   //--------------------------------------------------------------------------------------------------------------------
@@ -333,29 +333,29 @@  discard block
 block discarded – undo
333 333
    * @param TableColumnsMetadata $alteredColumns  The metadata of the altered columns.
334 334
    */
335 335
   private function logColumnInfo(TableColumnsMetadata $newColumns,
336
-                                 TableColumnsMetadata $obsoleteColumns,
337
-                                 TableColumnsMetadata $alteredColumns): void
336
+                                  TableColumnsMetadata $obsoleteColumns,
337
+                                  TableColumnsMetadata $alteredColumns): void
338 338
   {
339 339
     foreach ($newColumns->getColumns() as $column)
340 340
     {
341 341
       $this->io->logInfo('New column <dbo>%s.%s</dbo>',
342
-                         $this->tableName,
343
-                         $column->getName());
342
+                          $this->tableName,
343
+                          $column->getName());
344 344
     }
345 345
 
346 346
     foreach ($obsoleteColumns->getColumns() as $column)
347 347
     {
348 348
       $this->io->logInfo('Obsolete column <dbo>%s.%s</dbo>',
349
-                         $this->tableName,
350
-                         $column->getName());
349
+                          $this->tableName,
350
+                          $column->getName());
351 351
     }
352 352
 
353 353
     foreach ($alteredColumns->getColumns() as $column)
354 354
     {
355 355
       $this->io->logInfo('Type of <dbo>%s.%s</dbo> has been altered to <dbo>%s</dbo>',
356
-                         $this->tableName,
357
-                         $column->getName(),
358
-                         $column->getProperty('column_type'));
356
+                          $this->tableName,
357
+                          $column->getName(),
358
+                          $column->getProperty('column_type'));
359 359
     }
360 360
   }
361 361
 
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
@@ -86,14 +86,14 @@  discard block
 block discarded – undo
86 86
                                             array $additionSql): void
87 87
   {
88 88
     $helper = new CreateAuditTrigger($dataSchemaName,
89
-                                     $auditSchemaName,
90
-                                     $tableName,
91
-                                     $triggerName,
92
-                                     $triggerAction,
93
-                                     $additionalAuditColumns,
94
-                                     $tableColumns,
95
-                                     $skipVariable,
96
-                                     $additionSql);
89
+                                      $auditSchemaName,
90
+                                      $tableName,
91
+                                      $triggerName,
92
+                                      $triggerAction,
93
+                                      $additionalAuditColumns,
94
+                                      $tableColumns,
95
+                                      $skipVariable,
96
+                                      $additionSql);
97 97
     $sql    = $helper->buildStatement();
98 98
 
99 99
     static::executeNone($sql);
@@ -275,8 +275,8 @@  discard block
 block discarded – undo
275 275
 where  TABLE_SCHEMA = %s
276 276
 and    TABLE_NAME   = %s
277 277
 order by ORDINAL_POSITION",
278
-                   static::quoteString($schemaName),
279
-                   static::quoteString($tableName));
278
+                    static::quoteString($schemaName),
279
+                    static::quoteString($tableName));
280 280
 
281 281
     return static::executeRows($sql);
282 282
   }
@@ -302,8 +302,8 @@  discard block
 block discarded – undo
302 302
 inner join information_schema.COLLATION_CHARACTER_SET_APPLICABILITY t2  on  t2.COLLATION_NAME = t1.TABLE_COLLATION
303 303
 WHERE t1.TABLE_SCHEMA = %s
304 304
 AND   t1.TABLE_NAME   = %s',
305
-                   static::quoteString($schemaName),
306
-                   static::quoteString($tableName));
305
+                    static::quoteString($schemaName),
306
+                    static::quoteString($tableName));
307 307
 
308 308
     return static::executeRow1($sql);
309 309
   }
@@ -325,8 +325,8 @@  discard block
 block discarded – undo
325 325
 where  TRIGGER_SCHEMA     = %s
326 326
 and    EVENT_OBJECT_TABLE = %s
327 327
 order by Trigger_Name',
328
-                   static::quoteString($schemaName),
329
-                   static::quoteString($tableName));
328
+                    static::quoteString($schemaName),
329
+                    static::quoteString($tableName));
330 330
 
331 331
     return static::executeRows($sql);
332 332
   }
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 where  TRIGGER_SCHEMA     = %s
369 369
 order by EVENT_OBJECT_TABLE
370 370
 ,        TRIGGER_NAME',
371
-                   static::quoteString($schemaName));
371
+                    static::quoteString($schemaName));
372 372
 
373 373
     return static::executeRows($sql);
374 374
   }
Please login to merge, or discard this patch.