Completed
Pull Request — master (#14)
by Paweł
02:04
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
     function match($x): MatchSubject
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/PatternMatchingSubjectNotFound.php 1 patch
Spacing   +2 added lines, -2 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;
6 6
 
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/UnresolvedMatchSubject.php 1 patch
Spacing   +4 added lines, -4 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;
6 6
 
@@ -11,13 +11,13 @@  discard block
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Scalp/Type/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\Type {
6 6
 }
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/Deconstruction.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
 
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/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;
6 6
 
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/Type.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
 
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/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;
6 6
 
Please login to merge, or discard this patch.
src/Scalp/PatternMatching/CaseClass.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
 
Please login to merge, or discard this patch.