Passed
Push — master ( 2e64cc...304ce4 )
by P.R.
03:51
created
src/Helper/RoutineLoaderHelper.php 2 patches
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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
     {
478 478
       throw new RoutineLoaderException('Tag @type not found in DocBlock.');
479 479
     }
480
-    elseif (count($tags)>1)
480
+    elseif (count($tags) > 1)
481 481
     {
482 482
       throw new RoutineLoaderException('Multiple @type tags found in DocBlock.');
483 483
     }
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
         $key1 = $this->findFirstMatchingLine('/^\s*(as|is)\s*$/i');
712 712
         $key2 = $this->findFirstMatchingLine('/^\s*begin\s*$/i');
713 713
 
714
-        if ($key1!==null && $key2!==null && $key1<$key2)
714
+        if ($key1!==null && $key2!==null && $key1 < $key2)
715 715
         {
716 716
           $this->syntax = self::PL_SQL_SYNTAX;
717 717
         }
@@ -861,10 +861,10 @@  discard block
 block discarded – undo
861 861
 
862 862
     $start = $this->findFirstMatchingLine('/^\s*\/\*\*\s*$/');
863 863
     $end   = $this->findFirstMatchingLine('/^\s*\*\/\s*$/');
864
-    if ($start!==null && $end!==null && $start<$end)
864
+    if ($start!==null && $end!==null && $start < $end)
865 865
     {
866 866
       $lines    = array_slice($this->routineSourceCodeLines, $start, $end - $start + 1);
867
-      $docBlock = implode(PHP_EOL, (array)$lines);
867
+      $docBlock = implode(PHP_EOL, (array) $lines);
868 868
     }
869 869
     else
870 870
     {
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.
src/Backend/MySqlRoutineLoaderWorker.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     $duplicatesMethods = [];
305 305
     foreach ($this->sources as $source)
306 306
     {
307
-      if (sizeof($lookup[$source['method_name']])>1)
307
+      if (sizeof($lookup[$source['method_name']]) > 1)
308 308
       {
309 309
         $duplicatesSources[$source['path_name']]   = $source;
310 310
         $duplicatesMethods[$source['method_name']] = $lookup[$source['method_name']];
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
   {
394 394
     $this->io->writeln('');
395 395
 
396
-    usort($this->sources, function ($a, $b) {
396
+    usort($this->sources, function($a, $b) {
397 397
       return strcmp($a['routine_name'], $b['routine_name']);
398 398
     });
399 399
 
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 
474 474
     $size = $this->characterSets[$key]['maxlen'];
475 475
 
476
-    return (int)floor(self::MAX_COLUMN_SIZE / $size);
476
+    return (int) floor(self::MAX_COLUMN_SIZE / $size);
477 477
   }
478 478
 
479 479
   //--------------------------------------------------------------------------------------------------------------------
Please login to merge, or discard this patch.