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