@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Reflection\InjectionStrategy; |
5 | 5 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $strategy = $this->strategies->reduce( |
57 | 57 | null, |
58 | - function(?InjectionStrategy $target, InjectionStrategy $strategy) use ($object, $property, $value): ?InjectionStrategy { |
|
58 | + function(?InjectionStrategy $target, InjectionStrategy $strategy) use ($object, $property, $value) : ?InjectionStrategy { |
|
59 | 59 | return $target ?? ($strategy->supports($object, $property, $value) ? $strategy : null); |
60 | 60 | } |
61 | 61 | ); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Reflection\ExtractionStrategy; |
5 | 5 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $strategy = $this->strategies->reduce( |
57 | 57 | null, |
58 | - function(?ExtractionStrategy $target, ExtractionStrategy $strategy) use ($object, $property): ?ExtractionStrategy { |
|
58 | + function(?ExtractionStrategy $target, ExtractionStrategy $strategy) use ($object, $property) : ?ExtractionStrategy { |
|
59 | 59 | return $target ?? ($strategy->supports($object, $property) ? $strategy : null); |
60 | 60 | } |
61 | 61 | ); |