Completed
Pull Request — master (#14)
by Paweł
06:48
created
src/Scalp/PatternMatching/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/Pattern/Binding.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/Pattern/Pattern.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/Pattern/Bound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/Pattern/Bind.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/Pattern/Value.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/Pattern/Any.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/Pattern/Type.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.