Passed
Push — master ( 2e64cc...304ce4 )
by P.R.
03:51
created
src/MySqlDataLayer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1000,7 +1000,7 @@
 block discarded – undo
1000 1000
       if (!$success) throw $this->queryError('mysqli::real_query', $query);
1001 1001
 
1002 1002
       $this->queryLog[] = ['query' => $query,
1003
-                           'time'  => microtime(true) - $time0];
1003
+                            'time'  => microtime(true) - $time0];
1004 1004
     }
1005 1005
     else
1006 1006
     {
Please login to merge, or discard this patch.
src/MySqlMetaDataLayer.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -545,8 +545,8 @@  discard block
 block discarded – undo
545 545
 where  TABLE_SCHEMA = %s
546 546
 and    TABLE_NAME   = %s
547 547
 order by ORDINAL_POSITION',
548
-                   $this->dl->quoteString($schemaName),
549
-                   $this->dl->quoteString($tableName));
548
+                    $this->dl->quoteString($schemaName),
549
+                    $this->dl->quoteString($tableName));
550 550
 
551 551
     return $this->executeRows($sql);
552 552
   }
@@ -567,8 +567,8 @@  discard block
 block discarded – undo
567 567
     $sql = sprintf('
568 568
 show index from `%s`.`%s`
569 569
 where Key_name = \'PRIMARY\'',
570
-                   $schemaName,
571
-                   $tableName);
570
+                    $schemaName,
571
+                    $tableName);
572 572
 
573 573
     return $this->executeRows($sql);
574 574
   }
@@ -589,8 +589,8 @@  discard block
 block discarded – undo
589 589
     $sql = sprintf('
590 590
 show index from `%s`.`%s`
591 591
 where Non_unique = 0',
592
-                   $schemaName,
593
-                   $tableName);
592
+                    $schemaName,
593
+                    $tableName);
594 594
 
595 595
     return $this->executeRows($sql);
596 596
   }
Please login to merge, or discard this patch.
src/Wrapper/FunctionWrapper.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@
 block discarded – undo
46 46
     if ($this->routine['return']=='bool')
47 47
     {
48 48
       $this->codeStore->append(sprintf("return !empty(\$this->executeSingleton0('select %s(%s)'));",
49
-                                       $this->routine['routine_name'],
50
-                                       $this->getRoutineArgs()));
49
+                                        $this->routine['routine_name'],
50
+                                        $this->getRoutineArgs()));
51 51
     }
52 52
     else
53 53
     {
54 54
       $this->codeStore->append(sprintf("return \$this->executeSingleton0('select %s(%s)');",
55
-                                       $this->routine['routine_name'],
56
-                                       $this->getRoutineArgs()));
55
+                                        $this->routine['routine_name'],
56
+                                        $this->getRoutineArgs()));
57 57
     }
58 58
   }
59 59
 
Please login to merge, or discard this patch.
src/Helper/Crud/BaseRoutine.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
                                                     $this->tableName,
265 265
                                                     $column['column_name'],
266 266
                                                     '%type')),
267
-                                 false);
267
+                                  false);
268 268
       }
269 269
 
270 270
       if ($column!=end($this->tableColumns))
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
                                                     $this->tableName,
315 315
                                                     $column['column_name'],
316 316
                                                     '%type')),
317
-                                 false);
317
+                                  false);
318 318
       }
319 319
 
320 320
       if ($column!=end($columns))
Please login to merge, or discard this patch.
src/Backend/MySqlRoutineLoaderWorker.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -401,7 +401,8 @@
 block discarded – undo
401 401
   {
402 402
     $this->io->writeln('');
403 403
 
404
-    usort($this->sources, function ($a, $b) {
404
+    usort($this->sources, function ($a, $b)
405
+    {
405 406
       return strcmp($a['routine_name'], $b['routine_name']);
406 407
     });
407 408
 
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
       }
190 190
 
191 191
       $this->io->error(sprintf("The following source files would result wrapper methods with equal name '%s'",
192
-                               $method));
192
+                                $method));
193 193
       $this->io->listing($tmp);
194 194
     }
195 195
 
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
       if (!isset($lookup[$oldRoutine['routine_name']]))
226 226
       {
227 227
         $this->io->logInfo('Dropping %s <dbo>%s</dbo>',
228
-                           strtolower($oldRoutine['routine_type']),
229
-                           $oldRoutine['routine_name']);
228
+                            strtolower($oldRoutine['routine_type']),
229
+                            $oldRoutine['routine_name']);
230 230
 
231 231
         $this->dl->dropRoutine($oldRoutine['routine_type'], $oldRoutine['routine_name']);
232 232
       }
@@ -585,9 +585,9 @@  discard block
 block discarded – undo
585 585
           if ($max!==null)
586 586
           {
587 587
             $value = sprintf('%s(%d) character set %s',
588
-                             $column['data_type'],
589
-                             $max,
590
-                             $column['character_set_name']);
588
+                              $column['data_type'],
589
+                              $max,
590
+                              $column['character_set_name']);
591 591
           }
592 592
           else
593 593
           {
Please login to merge, or discard this patch.
src/Backend/MysqlConstantWorker.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -364,8 +364,8 @@
 block discarded – undo
364 364
           if ($n==0)
365 365
           {
366 366
             throw new RuntimeException("Illegal format at line %d in file '%s'.",
367
-                                       $lineNumber,
368
-                                       $this->constantsFilename);
367
+                                        $lineNumber,
368
+                                        $this->constantsFilename);
369 369
           }
370 370
 
371 371
           if (isset($matches[6]))
Please login to merge, or discard this patch.
src/Wrapper/Wrapper.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -483,9 +483,9 @@  discard block
 block discarded – undo
483 483
       $mangledName = $this->nameMangler->getParameterName($parameter['parameter_name']);
484 484
 
485 485
       $parameters[] = ['php_name'             => '$'.$mangledName,
486
-                       'description'          => $parameter['description'],
487
-                       'php_type'             => $parameter['php_type'],
488
-                       'data_type_descriptor' => $parameter['data_type_descriptor']];
486
+                        'description'          => $parameter['description'],
487
+                        'php_type'             => $parameter['php_type'],
488
+                        'data_type_descriptor' => $parameter['data_type_descriptor']];
489 489
     }
490 490
 
491 491
     $this->enhancePhpDocBlockParameters($parameters);
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
 
506 506
       // Generate phpDoc for the parameters of the wrapper method.
507 507
 
508
-       foreach ($parameters as $parameter)
508
+        foreach ($parameters as $parameter)
509 509
       {
510 510
         $format = sprintf(' * %%-%ds %%-%ds %%-%ds %%s', mb_strlen('@param'), $maxTypeLength, $maxNameLength);
511 511
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -506,7 +506,7 @@
 block discarded – undo
506 506
       // Generate phpDoc for the parameters of the wrapper method.
507 507
 
508 508
        foreach ($parameters as $parameter)
509
-      {
509
+       {
510 510
         $format = sprintf(' * %%-%ds %%-%ds %%-%ds %%s', mb_strlen('@param'), $maxTypeLength, $maxNameLength);
511 511
 
512 512
         $lines = $parameter['description'];
Please login to merge, or discard this patch.
src/Helper/RoutineLoaderHelper.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -528,9 +528,9 @@  discard block
 block discarded – undo
528 528
     foreach ($this->parameters as $parameter)
529 529
     {
530 530
       $parameters[] = ['parameter_name'       => $parameter['parameter_name'],
531
-                       'php_type'             => DataTypeHelper::columnTypeToPhpTypeHinting($parameter).'|null',
532
-                       'data_type_descriptor' => $parameter['data_type_descriptor'],
533
-                       'description'          => $lookup[($parameter['parameter_name'])] ?? []];
531
+                        'php_type'             => DataTypeHelper::columnTypeToPhpTypeHinting($parameter).'|null',
532
+                        'data_type_descriptor' => $parameter['data_type_descriptor'],
533
+                        'description'          => $lookup[($parameter['parameter_name'])] ?? []];
534 534
     }
535 535
 
536 536
     return ['short_description' => $this->docBlockReflection->getShortDescription(),
@@ -566,10 +566,10 @@  discard block
 block discarded – undo
566 566
       }
567 567
 
568 568
       $this->extendedParameters[$parameterName] = ['name'      => $parameterName,
569
-                                                   'data_type' => $dataType,
570
-                                                   'delimiter' => $delimiter,
571
-                                                   'enclosure' => $enclosure,
572
-                                                   'escape'    => $escape];
569
+                                                    'data_type' => $dataType,
570
+                                                    'delimiter' => $delimiter,
571
+                                                    'enclosure' => $enclosure,
572
+                                                    'escape'    => $escape];
573 573
     }
574 574
   }
575 575
 
Please login to merge, or discard this patch.
src/Helper/StratumMetadata.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
   public function writeMetadata(StratumStyle $io): void
121 121
   {
122 122
     $data = ['revision' => $this->revision,
123
-             'routines' => $this->routines];
123
+              'routines' => $this->routines];
124 124
 
125 125
     $json = json_encode($data, JSON_PRETTY_PRINT);
126 126
     if (json_last_error()!==JSON_ERROR_NONE)
Please login to merge, or discard this patch.