Completed
Push — master ( 5c4201...24a9b5 )
by Siwapun
05:35
created
src/logic.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
  */
56 56
 function isEmpty()
57 57
 {
58
-  $isEmpty = function ($value) {
58
+  $isEmpty = function($value) {
59 59
     return empty($value);
60 60
   };
61 61
   $arguments = func_get_args();
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
  */
71 71
 function orLogically()
72 72
 {
73
-  $and = function (bool $firstValue, bool $secondValue) {
73
+  $and = function(bool $firstValue, bool $secondValue) {
74 74
     return $firstValue || $secondValue;
75 75
   };
76 76
   $arguments = func_get_args();
Please login to merge, or discard this patch.