Passed
Pull Request — master (#224)
by David
02:58
created
src/PageIterator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public static function createResultIterator(ResultIterator $parentResult, string $magicSql, array $parameters, int $limit, int $offset, array $columnDescriptors, ObjectStorageInterface $objectStorage, ?string $className, TDBMService $tdbmService, MagicQuery $magicQuery, int $mode, LoggerInterface $logger): self
80 80
     {
81
-        $iterator =  new self();
81
+        $iterator = new self();
82 82
         $iterator->parentResult = $parentResult;
83 83
         $iterator->magicSql = $magicSql;
84 84
         $iterator->objectStorage = $objectStorage;
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      */
278 278
     public function jsonSerialize()
279 279
     {
280
-        return array_map(function (AbstractTDBMObject $item) {
280
+        return array_map(function(AbstractTDBMObject $item) {
281 281
             return $item->jsonSerialize();
282 282
         }, $this->toArray());
283 283
     }
Please login to merge, or discard this patch.
src/InnerResultIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      */
79 79
     public static function createInnerResultIterator(string $magicSql, array $parameters, ?int $limit, ?int $offset, array $columnDescriptors, ObjectStorageInterface $objectStorage, ?string $className, TDBMService $tdbmService, MagicQuery $magicQuery, LoggerInterface $logger): self
80 80
     {
81
-        $iterator =  new static();
81
+        $iterator = new static();
82 82
         $iterator->magicSql = $magicSql;
83 83
         $iterator->objectStorage = $objectStorage;
84 84
         $iterator->className = $className;
Please login to merge, or discard this patch.
src/Utils/StringUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public static function getValidVariableName(string $variableName): string
10 10
     {
11
-        $valid = preg_replace_callback('/^(\d+)/', static function (array $match) {
11
+        $valid = preg_replace_callback('/^(\d+)/', static function(array $match) {
12 12
             $f = new \NumberFormatter('en', \NumberFormatter::SPELLOUT);
13 13
             $number = $f->format((int) $match[0]);
14 14
             return preg_replace('/[^a-z]+/i', '_', $number);
Please login to merge, or discard this patch.