@@ -12,7 +12,7 @@ |
||
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) |
@@ -18,15 +18,15 @@ |
||
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 | } |
@@ -6,14 +6,14 @@ |
||
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 | } |
@@ -6,7 +6,7 @@ |
||
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 | } |