@@ -483,9 +483,9 @@ discard block |
||
| 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 |
||
| 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'), $max_type_length, $max_name_length); |
| 511 | 511 | |
@@ -506,7 +506,7 @@ |
||
| 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'), $max_type_length, $max_name_length); |
| 511 | 511 | |
| 512 | 512 | $lines = $parameter['description']; |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | case 'int': |
| 262 | 262 | case 'bigint': |
| 263 | 263 | preg_match('/^\((\d+)\)/', $parts1[2], $parts2); |
| 264 | - $tmp['numeric_precision'] = (int)$parts2[1]; |
|
| 264 | + $tmp['numeric_precision'] = (int) $parts2[1]; |
|
| 265 | 265 | $tmp['numeric_scale'] = 0; |
| 266 | 266 | break; |
| 267 | 267 | |
@@ -286,8 +286,8 @@ discard block |
||
| 286 | 286 | |
| 287 | 287 | case 'decimal': |
| 288 | 288 | preg_match('/^\((\d+),(\d+)\)$/', $parts1[2], $parts2); |
| 289 | - $tmp['numeric_precision'] = (int)$parts2[1]; |
|
| 290 | - $tmp['numeric_scale'] = (int)$parts2[2]; |
|
| 289 | + $tmp['numeric_precision'] = (int) $parts2[1]; |
|
| 290 | + $tmp['numeric_scale'] = (int) $parts2[2]; |
|
| 291 | 291 | break; |
| 292 | 292 | |
| 293 | 293 | case 'time': |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | |
| 305 | 305 | case 'bit': |
| 306 | 306 | preg_match('/^\((\d+)\)$/', $parts1[2], $parts2); |
| 307 | - $tmp['numeric_precision'] = (int)$parts2[1]; |
|
| 307 | + $tmp['numeric_precision'] = (int) $parts2[1]; |
|
| 308 | 308 | break; |
| 309 | 309 | |
| 310 | 310 | case 'tinytext': |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | |
| 438 | 438 | if ($key!==false) |
| 439 | 439 | { |
| 440 | - for ($i = 1; $i<$key; $i++) |
|
| 440 | + for ($i = 1; $i < $key; $i++) |
|
| 441 | 441 | { |
| 442 | 442 | $n = preg_match('/^\s*--\s+type:\s*(\w+)\s*(.+)?\s*$/', |
| 443 | 443 | $this->routineSourceCodeLines[$key - $i], |
@@ -557,7 +557,7 @@ discard block |
||
| 557 | 557 | |
| 558 | 558 | if ($key!==false) |
| 559 | 559 | { |
| 560 | - for ($i = 1; $i<$key; $i++) |
|
| 560 | + for ($i = 1; $i < $key; $i++) |
|
| 561 | 561 | { |
| 562 | 562 | $k = preg_match('/^\s*--\s+param:(?:\s*(\w+)\s+(\w+)(?:(?:\s+([^\s-])\s+([^\s-])\s+([^\s-])\s*$)|(?:\s*$)))?/', |
| 563 | 563 | $this->routineSourceCodeLines[$key - $i + 1], |
@@ -648,7 +648,7 @@ discard block |
||
| 648 | 648 | |
| 649 | 649 | if ($key!==false) |
| 650 | 650 | { |
| 651 | - for ($i = 1; $i<$key; $i++) |
|
| 651 | + for ($i = 1; $i < $key; $i++) |
|
| 652 | 652 | { |
| 653 | 653 | $n = preg_match('/^\s*--\s+return:\s*((\w|\|)+)\s*$/', |
| 654 | 654 | $this->routineSourceCodeLines[$key - $i], |