@@ -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 @@ 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 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Stratadox\TableLoader; |
| 5 | 5 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** @inheritdoc */ |
| 39 | - public function for(array $row): string |
|
| 39 | + public function for (array $row): string |
|
| 40 | 40 | { |
| 41 | 41 | $id = []; |
| 42 | 42 | foreach ($this->identifyingColumns as $column) { |
@@ -16,5 +16,5 @@ |
||
| 16 | 16 | * @return string A string representation of the identifier. |
| 17 | 17 | * @throws CannotIdentifyEntity When identifying columns are missing. |
| 18 | 18 | */ |
| 19 | - public function for(array $row): string; |
|
| 19 | + public function for (array $row): string; |
|
| 20 | 20 | } |
@@ -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 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Stratadox\TableLoader; |
| 5 | 5 | |