@@ -550,9 +550,9 @@ discard block |
||
| 550 | 550 | private function extractParameters(): void |
| 551 | 551 | { |
| 552 | 552 | $this->routineParameters = new RoutineParametersHelper($this->dl, |
| 553 | - $this->io, |
|
| 554 | - $this->docBlockReflection, |
|
| 555 | - $this->routineName); |
|
| 553 | + $this->io, |
|
| 554 | + $this->docBlockReflection, |
|
| 555 | + $this->routineName); |
|
| 556 | 556 | |
| 557 | 557 | $this->routineParameters->extractRoutineParameters(); |
| 558 | 558 | } |
@@ -943,8 +943,8 @@ discard block |
||
| 943 | 943 | 'longtext']; |
| 944 | 944 | $parts = ['whitespace' => '(?<whitespace>\s+)', |
| 945 | 945 | 'type_list' => str_replace('type-list', |
| 946 | - implode('|', $types), |
|
| 947 | - '(?<datatype>(type-list).*)'), |
|
| 946 | + implode('|', $types), |
|
| 947 | + '(?<datatype>(type-list).*)'), |
|
| 948 | 948 | 'nullable' => '(?<nullable>not\s+null)?', |
| 949 | 949 | 'punctuation' => '(?<punctuation>\s*[,;])?', |
| 950 | 950 | 'hint' => '(?<hint>\s+--\s+type:\s+(\w+\.)?\w+\.\w+\s*)']; |
@@ -491,7 +491,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | |
| 827 | 827 | $start = $this->findFirstMatchingLine('/^\s*\/\*\*\s*$/'); |
| 828 | 828 | $end = $this->findFirstMatchingLine('/^\s*\*\/\s*$/'); |
| 829 | - if ($start!==null && $end!==null && $start<$end) |
|
| 829 | + if ($start!==null && $end!==null && $start < $end) |
|
| 830 | 830 | { |
| 831 | 831 | $lines = array_slice($this->routineSourceCodeLines, $start, $end - $start + 1); |
| 832 | 832 | $docBlock = implode(PHP_EOL, $lines); |
@@ -911,7 +911,7 @@ discard block |
||
| 911 | 911 | */ |
| 912 | 912 | private function updateSourceTypeHints(): void |
| 913 | 913 | { |
| 914 | - $types = ['int', |
|
| 914 | + $types = ['int', |
|
| 915 | 915 | 'smallint', |
| 916 | 916 | 'tinyint', |
| 917 | 917 | 'mediumint', |
@@ -941,7 +941,7 @@ discard block |
||
| 941 | 941 | 'text', |
| 942 | 942 | 'mediumtext', |
| 943 | 943 | 'longtext']; |
| 944 | - $parts = ['whitespace' => '(?<whitespace>\s+)', |
|
| 944 | + $parts = ['whitespace' => '(?<whitespace>\s+)', |
|
| 945 | 945 | 'type_list' => str_replace('type-list', |
| 946 | 946 | implode('|', $types), |
| 947 | 947 | '(?<datatype>(type-list).*)'), |
@@ -974,7 +974,7 @@ discard block |
||
| 974 | 974 | $matches['nullable'], |
| 975 | 975 | $matches['punctuation'], |
| 976 | 976 | $matches['hint']); |
| 977 | - $this->typeHints[$hint] = $actualType; |
|
| 977 | + $this->typeHints[$hint] = $actualType; |
|
| 978 | 978 | } |
| 979 | 979 | } |
| 980 | 980 | |