@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $method = ltrim($method, 'about'); |
| 43 | 43 | |
| 44 | 44 | if (in_array($method, ['Route', 'Action', 'Url'])) { |
| 45 | - $args = resolve(RouteNormalizer::class)->{'normalize'.$method}($args); |
|
| 45 | + $args = resolve(RouteNormalizer::class)->{'normalize' . $method}($args); |
|
| 46 | 46 | |
| 47 | 47 | return resolve('heyman.chains')->forgetAbout('route', $args); |
| 48 | 48 | } |
@@ -26,11 +26,11 @@ |
||
| 26 | 26 | |
| 27 | 27 | private function guardRoutes() |
| 28 | 28 | { |
| 29 | - Route::matched(function (RouteMatched $eventObj) { |
|
| 29 | + Route::matched(function(RouteMatched $eventObj) { |
|
| 30 | 30 | $matchedRoute = [ |
| 31 | 31 | $eventObj->route->getName(), |
| 32 | 32 | $eventObj->route->getActionName(), |
| 33 | - $eventObj->request->method().$eventObj->route->uri, |
|
| 33 | + $eventObj->request->method() . $eventObj->route->uri, |
|
| 34 | 34 | ]; |
| 35 | 35 | |
| 36 | 36 | $t = resolve('heyman.chains')->data['route'] ?? []; |
@@ -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 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | public function checkPoint(string $pointName) |
| 37 | 37 | { |
| 38 | - event('heyman_checkpoint_'.$pointName); |
|
| 38 | + event('heyman_checkpoint_' . $pointName); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | public function condition(string $name, $callable) |
@@ -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 Heyman condition'); |
|
| 15 | + throw new \BadMethodCallException($method . ' does not exists as a Heyman condition'); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | 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 | } |