@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | function andLogically() |
| 10 | 10 | { |
| 11 | - $and = function (bool $firstValue, bool $secondValue) { |
|
| 11 | + $and = function(bool $firstValue, bool $secondValue) { |
|
| 12 | 12 | return $firstValue && $secondValue; |
| 13 | 13 | }; |
| 14 | 14 | $arguments = func_get_args(); |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | function defaultTo() |
| 20 | 20 | { |
| 21 | - $defaultTo = function ($defaultValue, $value) { |
|
| 21 | + $defaultTo = function($defaultValue, $value) { |
|
| 22 | 22 | return $value ? $value : $defaultValue; |
| 23 | 23 | }; |
| 24 | 24 | $arguments = func_get_args(); |
@@ -35,8 +35,8 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | function ifElse() |
| 37 | 37 | { |
| 38 | - $ifElse = function (callable $condition, callable $onTrue, callable $onFalse) { |
|
| 39 | - return function () use ($condition, $onTrue, $onFalse) { |
|
| 38 | + $ifElse = function(callable $condition, callable $onTrue, callable $onFalse) { |
|
| 39 | + return function() use ($condition, $onTrue, $onFalse) { |
|
| 40 | 40 | $arguments = func_get_args(); |
| 41 | 41 | if (call_user_func_array($condition, $arguments)) { |
| 42 | 42 | return call_user_func_array($onTrue, $arguments); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | function orLogically() |
| 58 | 58 | { |
| 59 | - $and = function (bool $firstValue, bool $secondValue) { |
|
| 59 | + $and = function(bool $firstValue, bool $secondValue) { |
|
| 60 | 60 | return $firstValue || $secondValue; |
| 61 | 61 | }; |
| 62 | 62 | $arguments = func_get_args(); |