Passed
Pull Request — master (#251)
by
unknown
03:11
created
src/PageIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
      */
263 263
     public function jsonSerialize()
264 264
     {
265
-        return array_map(function (AbstractTDBMObject $item) {
265
+        return array_map(function(AbstractTDBMObject $item) {
266 266
             return $item->jsonSerialize();
267 267
         }, $this->toArray());
268 268
     }
Please login to merge, or discard this patch.
src/Utils/TDBMDaoGenerator.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
 
90 90
         // Remove all beans and daos from junction tables
91 91
         $junctionTables = $this->configuration->getSchemaAnalyzer()->detectJunctionTables(true);
92
-        $junctionTableNames = array_map(function (Table $table) {
92
+        $junctionTableNames = array_map(function(Table $table) {
93 93
             return $table->getName();
94 94
         }, $junctionTables);
95 95
 
96
-        $tableList = array_filter($tableList, function (Table $table) use ($junctionTableNames) {
96
+        $tableList = array_filter($tableList, function(Table $table) use ($junctionTableNames) {
97 97
             return !in_array($table->getName(), $junctionTableNames, true);
98 98
         });
99 99
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         $fileContent = $this->psr2Fix($fileContent);
175 175
         // Add the declare strict-types directive
176 176
         $commentEnd = strpos($fileContent, ' */') + 3;
177
-        $fileContent = substr($fileContent, 0, $commentEnd) . "\n\ndeclare(strict_types=1);" . substr($fileContent, $commentEnd + 1);
177
+        $fileContent = substr($fileContent, 0, $commentEnd)."\n\ndeclare(strict_types=1);".substr($fileContent, $commentEnd + 1);
178 178
 
179 179
         $this->dumpFile($possibleBaseFileName, $fileContent);
180 180
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
         $fileContent = $this->psr2Fix($fileContent);
237 237
         // Add the declare strict-types directive
238 238
         $commentEnd = strpos($fileContent, ' */') + 3;
239
-        $fileContent = substr($fileContent, 0, $commentEnd) . "\n\ndeclare(strict_types=1);" . substr($fileContent, $commentEnd + 1);
239
+        $fileContent = substr($fileContent, 0, $commentEnd)."\n\ndeclare(strict_types=1);".substr($fileContent, $commentEnd + 1);
240 240
 
241 241
         $this->dumpFile($possibleBaseFileName, $fileContent);
242 242
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     private function psr2Fix(string $content): string
275 275
     {
276 276
         // Removes the extra blank line at the end (before: `\n\n`, after: `\n`)
277
-        return rtrim($content, PHP_EOL) . PHP_EOL;
277
+        return rtrim($content, PHP_EOL).PHP_EOL;
278 278
     }
279 279
 
280 280
     /**
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
         $resultIteratorClassName = $beanDescriptor->getResultIteratorClassName();
286 286
         $resultIteratorBaseClassName = $beanDescriptor->getBaseResultIteratorClassName();
287 287
         $resultIteratorNamespace = $this->configuration->getResultIteratorNamespace();
288
-        $resultIteratorBaseNamespace = $resultIteratorNamespace . '\\Generated';
288
+        $resultIteratorBaseNamespace = $resultIteratorNamespace.'\\Generated';
289 289
         $beanClassWithoutNameSpace = $beanDescriptor->getBeanClassName();
290 290
         $file = $beanDescriptor->generateResultIteratorPhpCode();
291 291
         if ($file === null) {
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 
295 295
         $fileContent = $this->psr2Fix($file->generate());
296 296
         $commentEnd = strpos($fileContent, ' */') + 3;
297
-        $fileContent = substr($fileContent, 0, $commentEnd) . "\n\ndeclare(strict_types=1);" . substr($fileContent, $commentEnd + 1);
297
+        $fileContent = substr($fileContent, 0, $commentEnd)."\n\ndeclare(strict_types=1);".substr($fileContent, $commentEnd + 1);
298 298
 
299 299
         $baseResultIteratorFilePath = $this->configuration->getPathFinder()->getPath($resultIteratorBaseNamespace.'\\'.$resultIteratorBaseClassName)->getPathname();
300 300
         $this->dumpFile($baseResultIteratorFilePath, $fileContent);
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 
360 360
         $constructorMethod = new MethodGenerator(
361 361
             '__construct',
362
-            [ new ParameterGenerator('container', ContainerInterface::class) ],
362
+            [new ParameterGenerator('container', ContainerInterface::class)],
363 363
             MethodGenerator::FLAG_PUBLIC,
364 364
             '$this->container = $container;'
365 365
         );
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 
376 376
             $daoInstanceProperty = new PropertyGenerator($daoInstanceName);
377 377
             $daoInstanceProperty->setVisibility(AbstractMemberGenerator::VISIBILITY_PRIVATE);
378
-            $daoInstanceProperty->setDocBlock(new DocBlockGenerator(null, null, [new VarTag(null, ['\\' . $daoNamespace . '\\' . $daoClassName, 'null'])]));
378
+            $daoInstanceProperty->setDocBlock(new DocBlockGenerator(null, null, [new VarTag(null, ['\\'.$daoNamespace.'\\'.$daoClassName, 'null'])]));
379 379
             $class->addPropertyFromGenerator($daoInstanceProperty);
380 380
 
381 381
             $fullClassNameVarExport = var_export($daoNamespace.'\\'.$daoClassName, true);
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 BODY;
389 389
 
390 390
             $getterMethod = new MethodGenerator(
391
-                'get' . $daoClassName,
391
+                'get'.$daoClassName,
392 392
                 [],
393 393
                 MethodGenerator::FLAG_PUBLIC,
394 394
                 $getterBody
@@ -400,10 +400,10 @@  discard block
 block discarded – undo
400 400
             }
401 401
 
402 402
             $setterMethod = new MethodGenerator(
403
-                'set' . $daoClassName,
404
-                [new ParameterGenerator($daoInstanceName, '\\' . $daoNamespace . '\\' . $daoClassName)],
403
+                'set'.$daoClassName,
404
+                [new ParameterGenerator($daoInstanceName, '\\'.$daoNamespace.'\\'.$daoClassName)],
405 405
                 MethodGenerator::FLAG_PUBLIC,
406
-                '$this->' . $daoInstanceName . ' = $' . $daoInstanceName . ';'
406
+                '$this->'.$daoInstanceName.' = $'.$daoInstanceName.';'
407 407
             );
408 408
             $setterMethod->setReturnType('void');
409 409
             $setterMethod = $this->configuration->getCodeGeneratorListener()->onDaoFactorySetterGenerated($setterMethod, $beanDescriptor, $this->configuration, $class);
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
             $fileContent = $this->psr2Fix($fileContent);
424 424
             // Add the declare strict-types directive
425 425
             $commentEnd = strpos($fileContent, ' */') + 3;
426
-            $fileContent = substr($fileContent, 0, $commentEnd) . "\n\ndeclare(strict_types=1);" . substr($fileContent, $commentEnd + 1);
426
+            $fileContent = substr($fileContent, 0, $commentEnd)."\n\ndeclare(strict_types=1);".substr($fileContent, $commentEnd + 1);
427 427
 
428 428
             $this->dumpFile($possibleFileName, $fileContent);
429 429
         }
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
         $map = [
531 531
             Type::TARRAY => 'array',
532 532
             Type::SIMPLE_ARRAY => 'array',
533
-            'json' => 'array',  // 'json' is supported from Doctrine DBAL 2.6 only.
533
+            'json' => 'array', // 'json' is supported from Doctrine DBAL 2.6 only.
534 534
             Type::JSON_ARRAY => 'array',
535 535
             Type::BIGINT => 'string',
536 536
             Type::BOOLEAN => 'bool',
Please login to merge, or discard this patch.
src/Utils/Logs/LevelFilter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,12 +19,12 @@
 block discarded – undo
19 19
      */
20 20
     private const LEVELS = array(
21 21
         LogLevel::EMERGENCY, // 0
22
-        LogLevel::ALERT,     // 1
23
-        LogLevel::CRITICAL,  // 2
24
-        LogLevel::ERROR,     // 3
25
-        LogLevel::WARNING,   // 4
26
-        LogLevel::NOTICE,    // 5
27
-        LogLevel::INFO,      // 6
22
+        LogLevel::ALERT, // 1
23
+        LogLevel::CRITICAL, // 2
24
+        LogLevel::ERROR, // 3
25
+        LogLevel::WARNING, // 4
26
+        LogLevel::NOTICE, // 5
27
+        LogLevel::INFO, // 6
28 28
         LogLevel::DEBUG      // 7
29 29
     );
30 30
 
Please login to merge, or discard this patch.
src/Utils/BeanDescriptor.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
      */
216 216
     public function getConstructorProperties(): array
217 217
     {
218
-        $constructorProperties = array_filter($this->beanPropertyDescriptors, static function (AbstractBeanPropertyDescriptor $property) {
218
+        $constructorProperties = array_filter($this->beanPropertyDescriptors, static function(AbstractBeanPropertyDescriptor $property) {
219 219
             return !$property instanceof InheritanceReferencePropertyDescriptor && $property->isCompulsory() && !$property->isReadOnly();
220 220
         });
221 221
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
     public function getPropertiesWithDefault(): array
231 231
     {
232 232
         $properties = $this->getPropertiesForTable($this->table);
233
-        $defaultProperties = array_filter($properties, function (AbstractBeanPropertyDescriptor $property) {
233
+        $defaultProperties = array_filter($properties, function(AbstractBeanPropertyDescriptor $property) {
234 234
             return $property->hasDefault();
235 235
         });
236 236
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      */
245 245
     public function getExposedProperties(): array
246 246
     {
247
-        $exposedProperties = array_filter($this->beanPropertyDescriptors, function (AbstractBeanPropertyDescriptor $property) {
247
+        $exposedProperties = array_filter($this->beanPropertyDescriptors, function(AbstractBeanPropertyDescriptor $property) {
248 248
             return !$property instanceof InheritanceReferencePropertyDescriptor && $property->getTable()->getName() === $this->table->getName();
249 249
         });
250 250
 
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
         foreach ($beanPropertyDescriptors as $beanDescriptor) {
351 351
             $name = $beanDescriptor->getGetterName();
352 352
             if (isset($names[$name])) {
353
-                throw new TDBMException('Unsolvable name conflict while generating method name "' . $name . '"');
353
+                throw new TDBMException('Unsolvable name conflict while generating method name "'.$name.'"');
354 354
             } else {
355 355
                 $names[$name] = $beanDescriptor;
356 356
             }
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
             $assigns[] = $property->assignToDefaultCode()."\n";
400 400
         }
401 401
 
402
-        $body = $parentConstructorCode . implode('', $assigns);
402
+        $body = $parentConstructorCode.implode('', $assigns);
403 403
 
404 404
         $constructor->setBody($body);
405 405
 
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
         $this->descriptorsByMethodName[$name][] = $descriptor;
474 474
         $descriptors = $this->descriptorsByMethodName[$name];
475 475
         if (count($descriptors) > 1) {
476
-            $properties = array_filter($descriptors, function ($descriptor) {
476
+            $properties = array_filter($descriptors, function($descriptor) {
477 477
                 return $descriptor instanceof AbstractBeanPropertyDescriptor;
478 478
             });
479 479
             $renameProperties = count($properties) > 1;
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
         foreach ($this->getExposedProperties() as $beanPropertyDescriptor) {
525 525
             $propertyCode = $beanPropertyDescriptor->getJsonSerializeCode();
526 526
             if (!empty($propertyCode)) {
527
-                $body .= PHP_EOL . $propertyCode;
527
+                $body .= PHP_EOL.$propertyCode;
528 528
             }
529 529
         }
530 530
 
@@ -532,11 +532,11 @@  discard block
 block discarded – undo
532 532
         foreach ($this->getMethodDescriptors() as $methodDescriptor) {
533 533
             $methodCode = $methodDescriptor->getJsonSerializeCode();
534 534
             if (!empty($methodCode)) {
535
-                $body .= PHP_EOL . $methodCode;
535
+                $body .= PHP_EOL.$methodCode;
536 536
             }
537 537
         }
538 538
 
539
-        $body .= PHP_EOL . 'return $array;';
539
+        $body .= PHP_EOL.'return $array;';
540 540
 
541 541
         $method->setBody($body);
542 542
 
@@ -631,10 +631,10 @@  discard block
 block discarded – undo
631 631
         /** @var AddInterface[] $addInterfaceAnnotations */
632 632
         $addInterfaceAnnotations = $this->annotationParser->getTableAnnotations($this->table)->findAnnotations(AddInterface::class);
633 633
 
634
-        $interfaces = [ JsonSerializable::class ];
634
+        $interfaces = [JsonSerializable::class];
635 635
         foreach ($addInterfaceAnnotations as $annotation) {
636 636
             /** @phpstan-var class-string $className */
637
-            $className =  $annotation->getName();
637
+            $className = $annotation->getName();
638 638
             $interfaces[] = $className;
639 639
         }
640 640
 
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
                 }
674 674
             } elseif ($methodDescriptor instanceof PivotTableMethodsDescriptor) {
675 675
                 $pivotTableMethodsDescriptors[] = $methodDescriptor;
676
-                [ $getter, $adder, $remover, $has, $setter ] = $methodDescriptor->getCode();
676
+                [$getter, $adder, $remover, $has, $setter] = $methodDescriptor->getCode();
677 677
                 $methods = $this->codeGeneratorListener->onBaseBeanManyToManyGenerated($getter, $adder, $remover, $has, $setter, $methodDescriptor, $this, $this->configuration, $class);
678 678
                 foreach ($methods as $method) {
679 679
                     if ($method) {
@@ -801,7 +801,7 @@  discard block
 block discarded – undo
801 801
         $interfaces = [];
802 802
         foreach ($addInterfaceOnDaoAnnotations as $annotation) {
803 803
             /** @phpstan-var class-string $className */
804
-            $className =  $annotation->getName();
804
+            $className = $annotation->getName();
805 805
             $interfaces[] = $className;
806 806
         }
807 807
 
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
 
824 824
         $constructorMethod = new MethodGenerator(
825 825
             '__construct',
826
-            [ new ParameterGenerator('tdbmService', TDBMService::class) ],
826
+            [new ParameterGenerator('tdbmService', TDBMService::class)],
827 827
             MethodGenerator::FLAG_PUBLIC,
828 828
             '$this->tdbmService = $tdbmService;',
829 829
             'Sets the TDBM service used by this DAO.'
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
 
836 836
         $saveMethod = new MethodGenerator(
837 837
             'save',
838
-            [ new ParameterGenerator('obj', $beanClassName) ],
838
+            [new ParameterGenerator('obj', $beanClassName)],
839 839
             MethodGenerator::FLAG_PUBLIC,
840 840
             '$this->tdbmService->save($obj);',
841 841
             (new DocBlockGenerator(
@@ -869,7 +869,7 @@  discard block
 block discarded – undo
869 869
             $findAllBody,
870 870
             (new DocBlockGenerator("Get all $beanClassWithoutNameSpace records."))->setWordWrap(false)
871 871
         );
872
-        $findAllMethod->setReturnType($this->resultIteratorNamespace . '\\' . $this->getResultIteratorClassName());
872
+        $findAllMethod->setReturnType($this->resultIteratorNamespace.'\\'.$this->getResultIteratorClassName());
873 873
         $findAllMethod = $this->codeGeneratorListener->onBaseDaoFindAllGenerated($findAllMethod, $this, $this->configuration, $class);
874 874
         if ($findAllMethod !== null) {
875 875
             $class->addMethodFromGenerator($findAllMethod);
@@ -883,7 +883,7 @@  discard block
 block discarded – undo
883 883
 
884 884
             foreach ($primaryKeyColumns as $primaryKeyColumn) {
885 885
                 if ($primaryKeyColumn === $lazyLoadingParameterName) {
886
-                    throw new TDBMException('Primary Column name `' . $lazyLoadingParameterName . '` is not allowed.');
886
+                    throw new TDBMException('Primary Column name `'.$lazyLoadingParameterName.'` is not allowed.');
887 887
                 }
888 888
                 $phpType = TDBMDaoGenerator::dbalTypeToPhpType($this->table->getColumn($primaryKeyColumn)->getType());
889 889
                 $parameters[] = new ParameterGenerator($primaryKeyColumn, $phpType);
@@ -899,7 +899,7 @@  discard block
 block discarded – undo
899 899
                 'getById',
900 900
                 $parameters,
901 901
                 MethodGenerator::FLAG_PUBLIC,
902
-                "return \$this->tdbmService->findObjectByPk('$tableName', [" . implode(', ', $primaryKeyFilter) . "], [], \$$lazyLoadingParameterName);",
902
+                "return \$this->tdbmService->findObjectByPk('$tableName', [".implode(', ', $primaryKeyFilter)."], [], \$$lazyLoadingParameterName);",
903 903
                 (new DocBlockGenerator(
904 904
                     "Get $beanClassWithoutNameSpace specified by its ID (its primary key).",
905 905
                     'If the primary key does not exist, an exception is thrown.',
@@ -976,7 +976,7 @@  discard block
 block discarded – undo
976 976
                 ]
977 977
             ))->setWordWrap(false)
978 978
         );
979
-        $findMethod->setReturnType($this->resultIteratorNamespace . '\\' . $this->getResultIteratorClassName());
979
+        $findMethod->setReturnType($this->resultIteratorNamespace.'\\'.$this->getResultIteratorClassName());
980 980
         $findMethod = $this->codeGeneratorListener->onBaseDaoFindGenerated($findMethod, $this, $this->configuration, $class);
981 981
         if ($findMethod !== null) {
982 982
             $class->addMethodFromGenerator($findMethod);
@@ -1018,7 +1018,7 @@  discard block
 block discarded – undo
1018 1018
                 ]
1019 1019
             ))->setWordWrap(false)
1020 1020
         );
1021
-        $findFromSqlMethod->setReturnType($this->resultIteratorNamespace . '\\' . $this->getResultIteratorClassName());
1021
+        $findFromSqlMethod->setReturnType($this->resultIteratorNamespace.'\\'.$this->getResultIteratorClassName());
1022 1022
         $findFromSqlMethod = $this->codeGeneratorListener->onBaseDaoFindFromSqlGenerated($findFromSqlMethod, $this, $this->configuration, $class);
1023 1023
         if ($findFromSqlMethod !== null) {
1024 1024
             $class->addMethodFromGenerator($findFromSqlMethod);
@@ -1053,7 +1053,7 @@  discard block
 block discarded – undo
1053 1053
                 ]
1054 1054
             ))->setWordWrap(false)
1055 1055
         );
1056
-        $findFromRawSqlMethod->setReturnType($this->resultIteratorNamespace . '\\' . $this->getResultIteratorClassName());
1056
+        $findFromRawSqlMethod->setReturnType($this->resultIteratorNamespace.'\\'.$this->getResultIteratorClassName());
1057 1057
         $findFromRawSqlMethod = $this->codeGeneratorListener->onBaseDaoFindFromRawSqlGenerated($findFromRawSqlMethod, $this, $this->configuration, $class);
1058 1058
         if ($findFromRawSqlMethod !== null) {
1059 1059
             $class->addMethodFromGenerator($findFromRawSqlMethod);
@@ -1187,7 +1187,7 @@  discard block
 block discarded – undo
1187 1187
         $class->setDocBlock((new DocBlockGenerator(
1188 1188
             "The $baseClassName class will iterate over results of $beanClassWithoutNameSpace class.",
1189 1189
             null,
1190
-            [new Tag\MethodTag('getIterator', ['\\' . $beanClassName . '[]'])]
1190
+            [new Tag\MethodTag('getIterator', ['\\'.$beanClassName.'[]'])]
1191 1191
         ))->setWordWrap(false));
1192 1192
 
1193 1193
         $file = $this->codeGeneratorListener->onBaseResultIteratorGenerated($file, $this, $this->configuration);
@@ -1243,7 +1243,7 @@  discard block
 block discarded – undo
1243 1243
                 }
1244 1244
             }
1245 1245
         }
1246
-        usort($methods, static function (MethodGenerator $methodA, MethodGenerator $methodB) {
1246
+        usort($methods, static function(MethodGenerator $methodA, MethodGenerator $methodB) {
1247 1247
             return $methodA->getName() <=> $methodB->getName();
1248 1248
         });
1249 1249
 
@@ -1392,11 +1392,11 @@  discard block
 block discarded – undo
1392 1392
 
1393 1393
         if ($index->isUnique()) {
1394 1394
             $parameters[] = new ParameterGenerator('additionalTablesFetch', 'array', []);
1395
-            $params[] = new ParamTag('additionalTablesFetch', [ 'string[]' ], 'A list of additional tables to fetch (for performance improvement)');
1396
-            $params[] = new ReturnTag([ '\\'.$beanNamespace.'\\'.$beanClassName, 'null' ]);
1395
+            $params[] = new ParamTag('additionalTablesFetch', ['string[]'], 'A list of additional tables to fetch (for performance improvement)');
1396
+            $params[] = new ReturnTag(['\\'.$beanNamespace.'\\'.$beanClassName, 'null']);
1397 1397
             $method->setReturnType('?\\'.$beanNamespace.'\\'.$beanClassName);
1398 1398
 
1399
-            $docBlock = new DocBlockGenerator("Get a $beanClassName filtered by ".implode(', ', $commentArguments). '.', null, $params);
1399
+            $docBlock = new DocBlockGenerator("Get a $beanClassName filtered by ".implode(', ', $commentArguments).'.', null, $params);
1400 1400
             $docBlock->setWordWrap(false);
1401 1401
 
1402 1402
             $body = "\$filter = [
@@ -1405,12 +1405,12 @@  discard block
 block discarded – undo
1405 1405
 ";
1406 1406
         } else {
1407 1407
             $parameters[] = (new ParameterGenerator('orderBy'))->setDefaultValue(null);
1408
-            $params[] = new ParamTag('orderBy', [ 'mixed' ], 'The order string');
1408
+            $params[] = new ParamTag('orderBy', ['mixed'], 'The order string');
1409 1409
             $parameters[] = new ParameterGenerator('additionalTablesFetch', 'array', []);
1410
-            $params[] = new ParamTag('additionalTablesFetch', [ 'string[]' ], 'A list of additional tables to fetch (for performance improvement)');
1410
+            $params[] = new ParamTag('additionalTablesFetch', ['string[]'], 'A list of additional tables to fetch (for performance improvement)');
1411 1411
             $parameters[] = (new ParameterGenerator('mode', '?int'))->setDefaultValue(null);
1412
-            $params[] = new ParamTag('mode', [ 'int', 'null' ], 'Either TDBMService::MODE_ARRAY or TDBMService::MODE_CURSOR (for large datasets). Defaults to TDBMService::MODE_ARRAY.');
1413
-            $method->setReturnType($this->resultIteratorNamespace . '\\' . $this->getResultIteratorClassName());
1412
+            $params[] = new ParamTag('mode', ['int', 'null'], 'Either TDBMService::MODE_ARRAY or TDBMService::MODE_CURSOR (for large datasets). Defaults to TDBMService::MODE_ARRAY.');
1413
+            $method->setReturnType($this->resultIteratorNamespace.'\\'.$this->getResultIteratorClassName());
1414 1414
 
1415 1415
             $docBlock = new DocBlockGenerator("Get a list of $beanClassName filtered by ".implode(', ', $commentArguments).".", null, $params);
1416 1416
             $docBlock->setWordWrap(false);
@@ -1727,17 +1727,17 @@  discard block
 block discarded – undo
1727 1727
      * @param string $indent
1728 1728
      * @return string
1729 1729
      */
1730
-    private function psr2VarExport($var, string $indent=''): string
1730
+    private function psr2VarExport($var, string $indent = ''): string
1731 1731
     {
1732 1732
         if (is_array($var)) {
1733 1733
             $indexed = array_keys($var) === range(0, count($var) - 1);
1734 1734
             $r = [];
1735 1735
             foreach ($var as $key => $value) {
1736 1736
                 $r[] = "$indent    "
1737
-                    . ($indexed ? '' : $this->psr2VarExport($key) . ' => ')
1737
+                    . ($indexed ? '' : $this->psr2VarExport($key).' => ')
1738 1738
                     . $this->psr2VarExport($value, "$indent    ");
1739 1739
             }
1740
-            return "[\n" . implode(",\n", $r) . "\n" . $indent . ']';
1740
+            return "[\n".implode(",\n", $r)."\n".$indent.']';
1741 1741
         }
1742 1742
         return var_export($var, true);
1743 1743
     }
Please login to merge, or discard this patch.