@@ -477,7 +477,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | { |
@@ -304,7 +304,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | //-------------------------------------------------------------------------------------------------------------------- |