@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | public function _call($method, $param) |
| 10 | 10 | { |
| 11 | - if(in_array($method, ['thisClosureShouldAllow', 'thisMethodShouldAllow'])) { |
|
| 11 | + if (in_array($method, ['thisClosureShouldAllow', 'thisMethodShouldAllow'])) { |
|
| 12 | 12 | $param = [ |
| 13 | 13 | 'callback' => $param[0], |
| 14 | 14 | 'parameters' => $param[1] ?? [], |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | return app()->call($this->methods[$method], $param); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - throw new \BadMethodCallException($method.' does not exists as a Heyman condition'); |
|
| 22 | + throw new \BadMethodCallException($method . ' does not exists as a Heyman condition'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public function define($methodName, $callable) |
@@ -11,15 +11,15 @@ |
||
| 11 | 11 | |
| 12 | 12 | public function methodAllows($callback, array $parameters) |
| 13 | 13 | { |
| 14 | - return function (...$payload) use ($callback, $parameters) { |
|
| 15 | - return (bool) app()->call($callback, array_merge($parameters, ...$payload)); |
|
| 14 | + return function(...$payload) use ($callback, $parameters) { |
|
| 15 | + return (bool)app()->call($callback, array_merge($parameters, ...$payload)); |
|
| 16 | 16 | }; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | public function valueAllows($value) |
| 20 | 20 | { |
| 21 | - return function () use ($value) { |
|
| 22 | - return (bool) $value; |
|
| 21 | + return function() use ($value) { |
|
| 22 | + return (bool)$value; |
|
| 23 | 23 | }; |
| 24 | 24 | } |
| 25 | 25 | } |