Passed
Pull Request — 5.3 (#284)
by
unknown
09:08
created
src/ResultIterator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.