Completed
Push — master ( 2fec7f...f11719 )
by Iman
02:20
created
src/Conditions/ConditionsFacade.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,9 +23,10 @@
 block discarded – undo
23 23
 
24 24
     public function define($methodName, $callable)
25 25
     {
26
-        if (is_callable($callable) || (is_string($callable) and mb_strpos($callable, '@')))
27
-            $this->methods[$methodName] = $callable;
28
-        else
29
-            throw new \InvalidArgumentException("$callable should be string Class@method or a php callable");
26
+        if (is_callable($callable) || (is_string($callable) and mb_strpos($callable, '@'))) {
27
+                    $this->methods[$methodName] = $callable;
28
+        } else {
29
+                    throw new \InvalidArgumentException("$callable should be string Class@method or a php callable");
30
+        }
30 31
     }
31 32
 }
Please login to merge, or discard this patch.