@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Scalp\PatternMatching { |
6 | 6 | function match($x): MatchSubject |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Scalp\PatternMatching; |
6 | 6 | |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | final class PatternMatchingSubjectNotFound extends \RuntimeException |
10 | 10 | { |
11 | - public static function for($x): PatternMatchingSubjectNotFound |
|
11 | + public static function for ($x): PatternMatchingSubjectNotFound |
|
12 | 12 | { |
13 | 13 | return new self('Pattern matching subject "'.AnyToString($x).'" is not defined in this match expression".'); |
14 | 14 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Scalp\PatternMatching; |
6 | 6 | |
@@ -11,13 +11,13 @@ discard block |
||
11 | 11 | return $pattern |
12 | 12 | ->match($this->get()) |
13 | 13 | ->fold( |
14 | - function (): MatchSubject { return $this; }, |
|
15 | - function ($result) use ($handler): MatchSubject { return new ResolvedMatchSubject($handler(...$result)); } |
|
14 | + function(): MatchSubject { return $this; }, |
|
15 | + function($result) use ($handler): MatchSubject { return new ResolvedMatchSubject($handler(...$result)); } |
|
16 | 16 | ); |
17 | 17 | } |
18 | 18 | |
19 | 19 | public function done(): void |
20 | 20 | { |
21 | - throw PatternMatchingSubjectNotFound::for($this->get()); |
|
21 | + throw PatternMatchingSubjectNotFound::for ($this->get()); |
|
22 | 22 | } |
23 | 23 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Scalp\Type { |
6 | 6 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Scalp\PatternMatching; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Scalp\PatternMatching; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Scalp\PatternMatching; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Scalp\PatternMatching; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Scalp\PatternMatching; |
6 | 6 |