@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | require_once __DIR__.'/../vendor/autoload.php'; |
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 | require_once __DIR__.'/../vendor/autoload.php'; |
6 | 6 | |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | $dividend = TryCatch(Delayed('readInt', "Enter an Int that you'd like to divide: ")); |
24 | 24 | $divisor = TryCatch(Delayed('readInt', "Enter an Int that you'd like to divide by: ")); |
25 | 25 | |
26 | -$result = $dividend->flatMap(function (int $x) use ($divisor): TryCatch { |
|
27 | - return $divisor->map(function (int $y) use ($x) { |
|
26 | +$result = $dividend->flatMap(function(int $x) use ($divisor): TryCatch { |
|
27 | + return $divisor->map(function(int $y) use ($x) { |
|
28 | 28 | return intdiv($x, $y); |
29 | 29 | }); |
30 | 30 | }); |
@@ -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\Exception; |
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 { |
6 | 6 | require_once __DIR__.'/Conversion/implicit_conversion.php'; |
@@ -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\Utils; |
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\Utils; |
6 | 6 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | return $this->value; |
44 | 44 | } |
45 | 45 | |
46 | - public function foreach(callable $f): void |
|
46 | + public function foreach (callable $f): void |
|
47 | 47 | { |
48 | 48 | $f($this->value); |
49 | 49 | } |
@@ -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\Utils; |
6 | 6 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @param callable $f |
68 | 68 | */ |
69 | - abstract public function foreach(callable $f): void; |
|
69 | + abstract public function foreach (callable $f): void; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * Returns the given function applied to the value from this `Success` or returns this if this is a `Failure`. |
@@ -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\Utils; |
6 | 6 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | throw $this->error; |
41 | 41 | } |
42 | 42 | |
43 | - public function foreach(callable $f): void |
|
43 | + public function foreach (callable $f): void |
|
44 | 44 | { |
45 | 45 | } |
46 | 46 |
@@ -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 | use function Scalp\Utils\checkType; |