Passed
Push — master ( caf7cf...f71b04 )
by P.R.
02:07
created
src/Helper/RoutineLoaderHelper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
     {
492 492
       throw new RoutineLoaderException('Tag @type not found in DocBlock.');
493 493
     }
494
-    elseif (count($tags)>1)
494
+    elseif (count($tags) > 1)
495 495
     {
496 496
       throw new RoutineLoaderException('Multiple @type tags found in DocBlock.');
497 497
     }
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
       $key1 = $this->findFirstMatchingLine('/^\s*(as|is)\s*$/i');
655 655
       $key2 = $this->findFirstMatchingLine('/^\s*begin\s*$/i');
656 656
 
657
-      if ($key1!==null && $key2!==null && $key1<$key2)
657
+      if ($key1!==null && $key2!==null && $key1 < $key2)
658 658
       {
659 659
         $this->syntax = self::PL_SQL_SYNTAX;
660 660
       }
@@ -828,7 +828,7 @@  discard block
 block discarded – undo
828 828
 
829 829
     $start = $this->findFirstMatchingLine('/^\s*\/\*\*\s*$/');
830 830
     $end   = $this->findFirstMatchingLine('/^\s*\*\/\s*$/');
831
-    if ($start!==null && $end!==null && $start<$end)
831
+    if ($start!==null && $end!==null && $start < $end)
832 832
     {
833 833
       $lines    = array_slice($this->routineSourceCodeLines, $start, $end - $start + 1);
834 834
       $docBlock = implode(PHP_EOL, $lines);
@@ -913,7 +913,7 @@  discard block
 block discarded – undo
913 913
    */
914 914
   private function updateSourceTypeHints(): void
915 915
   {
916
-    $types   = ['int',
916
+    $types = ['int',
917 917
                 'smallint',
918 918
                 'tinyint',
919 919
                 'mediumint',
@@ -943,7 +943,7 @@  discard block
 block discarded – undo
943 943
                 'text',
944 944
                 'mediumtext',
945 945
                 'longtext'];
946
-    $parts   = ['whitespace' => '(?<whitespace>\s+)',
946
+    $parts = ['whitespace' => '(?<whitespace>\s+)',
947 947
                 'type_list'  => str_replace('type-list',
948 948
                                             implode('|', $types),
949 949
                                             '(?<datatype>(type-list).*)'),
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
 
1021 1021
     foreach ($blocks as $block)
1022 1022
     {
1023
-      for ($index = $block['first']; $index<$block['last']; $index++)
1023
+      for ($index = $block['first']; $index < $block['last']; $index++)
1024 1024
       {
1025 1025
         preg_match('/\s+type:\s+.*$/', $this->routineSourceCodeLines[$index], $matches);
1026 1026
         $leftPart = mb_substr($this->routineSourceCodeLines[$index], 0, -mb_strlen($matches[0]));
Please login to merge, or discard this patch.