@@ -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 | use Scalp\PatternMatching\Pattern\Any; |
@@ -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\Pattern; |
| 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\Pattern; |
| 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\Pattern; |
| 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\Pattern; |
| 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\Pattern; |
| 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\Pattern; |
| 6 | 6 | |
@@ -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\Pattern; |
| 6 | 6 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | ->filter(papply(isInstanceOfType, __, $this->type)); |
| 36 | 36 | |
| 37 | 37 | if (empty($this->patterns)) { |
| 38 | - return $typeMatch->flatMap(function (): Option { return Some([]); }); |
|
| 38 | + return $typeMatch->flatMap(function(): Option { return Some([]); }); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** @var TryCatch $caseClass */ |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | ); |
| 48 | 48 | |
| 49 | 49 | return $caseClass |
| 50 | - ->map(function (CaseClass $cc): array { return $cc->deconstruct(); }) |
|
| 50 | + ->map(function(CaseClass $cc): array { return $cc->deconstruct(); }) |
|
| 51 | 51 | ->map(papply(\Closure::fromCallable([$this, 'applyConstructorArgumentsPatterns']), __, $this->patterns)) |
| 52 | 52 | ->get(); |
| 53 | 53 | } |