@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Stratadox\TableLoader; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Stratadox\TableLoader; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Stratadox\TableLoader; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Stratadox\TableLoader; |
5 | 5 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $this->from = $from; |
24 | 24 | $this->to = $to; |
25 | 25 | $this->relation = $relation; |
26 | - $this->setter = function (string $property, $value): void { |
|
26 | + $this->setter = function(string $property, $value): void { |
|
27 | 27 | $this->$property = $value; |
28 | 28 | }; |
29 | 29 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Stratadox\TableLoader; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Stratadox\TableLoader; |
5 | 5 | |
@@ -69,8 +69,7 @@ discard block |
||
69 | 69 | string $collectionClass = null |
70 | 70 | ): DefinesObjectMapping { |
71 | 71 | $hydrator = $collectionClass ? |
72 | - VariadicConstructor::forThe($collectionClass) : |
|
73 | - ArrayHydrator::create(); |
|
72 | + VariadicConstructor::forThe($collectionClass) : ArrayHydrator::create(); |
|
74 | 73 | $new = clone $this; |
75 | 74 | $new->relation[$label] = HasMany::in($property, $hydrator); |
76 | 75 | return $new; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Stratadox\TableLoader; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Stratadox\TableLoader; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Stratadox\TableLoader; |
5 | 5 |