Passed
Push — master ( 506468...810608 )
by Iman
09:59
created
src/Conditions/ConditionsFacade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
             return app()->call($this->methods[$method], $param);
13 13
         }
14 14
 
15
-        throw new \BadMethodCallException($method.' does not exists as a condition');
15
+        throw new \BadMethodCallException($method . ' does not exists as a condition');
16 16
     }
17 17
 
18 18
     public function define($methodName, $callable)
Please login to merge, or discard this patch.
src/Conditions/Traits/Callbacks.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@
 block discarded – undo
18 18
         // it is not clear why laravel passes the $emptyString as the first parameter here.
19 19
         // check Imanghafoori\HeyMan\Conditions\ConditionsFacade class line 12;
20 20
 
21
-        return function (...$payload) use ($callback, $parameters) {
22
-            return (bool) app()->call($callback, array_merge($parameters, ...$payload));
21
+        return function(...$payload) use ($callback, $parameters) {
22
+            return (bool)app()->call($callback, array_merge($parameters, ...$payload));
23 23
         };
24 24
     }
25 25
 
26 26
     public function valueAllows($value)
27 27
     {
28
-        return function () use ($value) {
29
-            return (bool) $value;
28
+        return function() use ($value) {
29
+            return (bool)$value;
30 30
         };
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Conditions/Traits/Authentication.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 {
7 7
     public function beGuest($guard = null)
8 8
     {
9
-        return function () use ($guard) {
9
+        return function() use ($guard) {
10 10
             return auth($guard)->guest();
11 11
         };
12 12
     }
13 13
 
14 14
     public function loggedIn($guard = null)
15 15
     {
16
-        return function () use ($guard) {
16
+        return function() use ($guard) {
17 17
             return auth($guard)->check();
18 18
         };
19 19
     }
Please login to merge, or discard this patch.
src/Conditions/Traits/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function sessionHas($key)
8 8
     {
9
-        return function () use ($key) {
9
+        return function() use ($key) {
10 10
             return session()->has($key);
11 11
         };
12 12
     }
Please login to merge, or discard this patch.