@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public static function createResultIterator(QueryFactory $queryFactory, array $parameters, ObjectStorageInterface $objectStorage, ?string $className, TDBMService $tdbmService, MagicQuery $magicQuery, int $mode, LoggerInterface $logger): static |
85 | 85 | { |
86 | - $iterator = new static(); |
|
86 | + $iterator = new static(); |
|
87 | 87 | if ($mode !== TDBMService::MODE_CURSOR && $mode !== TDBMService::MODE_ARRAY) { |
88 | 88 | throw new TDBMException("Unknown fetch mode: '".$mode."'"); |
89 | 89 | } |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | */ |
281 | 281 | public function jsonSerialize($stopRecursion = false) |
282 | 282 | { |
283 | - return array_map(function (AbstractTDBMObject $item) use ($stopRecursion) { |
|
283 | + return array_map(function(AbstractTDBMObject $item) use ($stopRecursion) { |
|
284 | 284 | return $item->jsonSerialize($stopRecursion); |
285 | 285 | }, $this->toArray()); |
286 | 286 | } |