@@ -1000,7 +1000,7 @@ |
||
| 1000 | 1000 | if (!$success) throw $this->queryError('mysqli::real_query', $query); |
| 1001 | 1001 | |
| 1002 | 1002 | $this->queryLog[] = ['query' => $query, |
| 1003 | - 'time' => microtime(true) - $time0]; |
|
| 1003 | + 'time' => microtime(true) - $time0]; |
|
| 1004 | 1004 | } |
| 1005 | 1005 | else |
| 1006 | 1006 | { |
@@ -545,8 +545,8 @@ discard block |
||
| 545 | 545 | where TABLE_SCHEMA = %s |
| 546 | 546 | and TABLE_NAME = %s |
| 547 | 547 | order by ORDINAL_POSITION', |
| 548 | - $this->dl->quoteString($schemaName), |
|
| 549 | - $this->dl->quoteString($tableName)); |
|
| 548 | + $this->dl->quoteString($schemaName), |
|
| 549 | + $this->dl->quoteString($tableName)); |
|
| 550 | 550 | |
| 551 | 551 | return $this->executeRows($sql); |
| 552 | 552 | } |
@@ -567,8 +567,8 @@ discard block |
||
| 567 | 567 | $sql = sprintf(' |
| 568 | 568 | show index from `%s`.`%s` |
| 569 | 569 | where Key_name = \'PRIMARY\'', |
| 570 | - $schemaName, |
|
| 571 | - $tableName); |
|
| 570 | + $schemaName, |
|
| 571 | + $tableName); |
|
| 572 | 572 | |
| 573 | 573 | return $this->executeRows($sql); |
| 574 | 574 | } |
@@ -589,8 +589,8 @@ discard block |
||
| 589 | 589 | $sql = sprintf(' |
| 590 | 590 | show index from `%s`.`%s` |
| 591 | 591 | where Non_unique = 0', |
| 592 | - $schemaName, |
|
| 593 | - $tableName); |
|
| 592 | + $schemaName, |
|
| 593 | + $tableName); |
|
| 594 | 594 | |
| 595 | 595 | return $this->executeRows($sql); |
| 596 | 596 | } |
@@ -364,8 +364,8 @@ |
||
| 364 | 364 | if ($n==0) |
| 365 | 365 | { |
| 366 | 366 | throw new RuntimeException("Illegal format at line %d in file '%s'.", |
| 367 | - $line_number, |
|
| 368 | - $this->constantsFilename); |
|
| 367 | + $line_number, |
|
| 368 | + $this->constantsFilename); |
|
| 369 | 369 | } |
| 370 | 370 | |
| 371 | 371 | if (isset($matches[6])) |
@@ -46,14 +46,14 @@ |
||
| 46 | 46 | if ($this->routine['return']=='bool') |
| 47 | 47 | { |
| 48 | 48 | $this->codeStore->append(sprintf("return !empty(\$this->executeSingleton0('select %s(%s)'));", |
| 49 | - $this->routine['routine_name'], |
|
| 50 | - $this->getRoutineArgs())); |
|
| 49 | + $this->routine['routine_name'], |
|
| 50 | + $this->getRoutineArgs())); |
|
| 51 | 51 | } |
| 52 | 52 | else |
| 53 | 53 | { |
| 54 | 54 | $this->codeStore->append(sprintf("return \$this->executeSingleton0('select %s(%s)');", |
| 55 | - $this->routine['routine_name'], |
|
| 56 | - $this->getRoutineArgs())); |
|
| 55 | + $this->routine['routine_name'], |
|
| 56 | + $this->getRoutineArgs())); |
|
| 57 | 57 | } |
| 58 | 58 | } |
| 59 | 59 | |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | $this->tableName, |
| 265 | 265 | $column['column_name'], |
| 266 | 266 | '%type')), |
| 267 | - false); |
|
| 267 | + false); |
|
| 268 | 268 | } |
| 269 | 269 | |
| 270 | 270 | if ($column!=end($this->tableColumns)) |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | $this->tableName, |
| 315 | 315 | $column['column_name'], |
| 316 | 316 | '%type')), |
| 317 | - false); |
|
| 317 | + false); |
|
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | if ($column!=end($columns)) |
@@ -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 | |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | $this->io->error(sprintf("The following source files would result wrapper methods with equal name '%s'", |
| 198 | - $method)); |
|
| 198 | + $method)); |
|
| 199 | 199 | $this->io->listing($tmp); |
| 200 | 200 | } |
| 201 | 201 | |
@@ -231,8 +231,8 @@ discard block |
||
| 231 | 231 | if (!isset($lookup[$oldRoutine['routine_name']])) |
| 232 | 232 | { |
| 233 | 233 | $this->io->logInfo('Dropping %s <dbo>%s</dbo>', |
| 234 | - strtolower($oldRoutine['routine_type']), |
|
| 235 | - $oldRoutine['routine_name']); |
|
| 234 | + strtolower($oldRoutine['routine_type']), |
|
| 235 | + $oldRoutine['routine_name']); |
|
| 236 | 236 | |
| 237 | 237 | $this->dl->dropRoutine($oldRoutine['routine_type'], $oldRoutine['routine_name']); |
| 238 | 238 | } |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | catch (RoutineLoaderException $e) |
| 429 | 429 | { |
| 430 | 430 | $messages = [$e->getMessage(), |
| 431 | - sprintf("Failed to load file '%s'", $filename['path_name'])]; |
|
| 431 | + sprintf("Failed to load file '%s'", $filename['path_name'])]; |
|
| 432 | 432 | $this->io->error($messages); |
| 433 | 433 | |
| 434 | 434 | $this->errorFilenames[] = $filename['path_name']; |
@@ -615,9 +615,9 @@ discard block |
||
| 615 | 615 | if ($max!==null) |
| 616 | 616 | { |
| 617 | 617 | $value = sprintf('%s(%d) character set %s', |
| 618 | - $column['data_type'], |
|
| 619 | - $max, |
|
| 620 | - $column['character_set_name']); |
|
| 618 | + $column['data_type'], |
|
| 619 | + $max, |
|
| 620 | + $column['character_set_name']); |
|
| 621 | 621 | } |
| 622 | 622 | else |
| 623 | 623 | { |
@@ -563,9 +563,9 @@ discard block |
||
| 563 | 563 | foreach ($this->parameters as $parameter) |
| 564 | 564 | { |
| 565 | 565 | $parameters[] = ['parameter_name' => $parameter['parameter_name'], |
| 566 | - 'php_type' => DataTypeHelper::columnTypeToPhpTypeHinting($parameter).'|null', |
|
| 567 | - 'data_type_descriptor' => $parameter['data_type_descriptor'], |
|
| 568 | - 'description' => $lookup[($parameter['parameter_name'])] ?? []]; |
|
| 566 | + 'php_type' => DataTypeHelper::columnTypeToPhpTypeHinting($parameter).'|null', |
|
| 567 | + 'data_type_descriptor' => $parameter['data_type_descriptor'], |
|
| 568 | + 'description' => $lookup[($parameter['parameter_name'])] ?? []]; |
|
| 569 | 569 | } |
| 570 | 570 | |
| 571 | 571 | return ['sort_description' => $this->docBlockReflection->getShortDescription(), |
@@ -601,10 +601,10 @@ discard block |
||
| 601 | 601 | } |
| 602 | 602 | |
| 603 | 603 | $this->extendedParameters[$parameterName] = ['name' => $parameterName, |
| 604 | - 'data_type' => $dataType, |
|
| 605 | - 'delimiter' => $delimiter, |
|
| 606 | - 'enclosure' => $enclosure, |
|
| 607 | - 'escape' => $escape]; |
|
| 604 | + 'data_type' => $dataType, |
|
| 605 | + 'delimiter' => $delimiter, |
|
| 606 | + 'enclosure' => $enclosure, |
|
| 607 | + 'escape' => $escape]; |
|
| 608 | 608 | } |
| 609 | 609 | } |
| 610 | 610 | |