@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | private function turn($key, callable $closure = null) |
58 | 58 | { |
59 | - $key = 'heyman_ignore_'.$key; |
|
59 | + $key = 'heyman_ignore_' . $key; |
|
60 | 60 | |
61 | 61 | $current = config($key); |
62 | 62 | $this->changeMode($key); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('resolve')) { |
|
3 | +if (!function_exists('resolve')) { |
|
4 | 4 | /** |
5 | 5 | * Resolve a service from the container. |
6 | 6 | * |
@@ -9,20 +9,20 @@ |
||
9 | 9 | { |
10 | 10 | public static function register() |
11 | 11 | { |
12 | - if (! app()->offsetExists('debugbar')) { |
|
12 | + if (!app()->offsetExists('debugbar')) { |
|
13 | 13 | return; |
14 | 14 | } |
15 | 15 | |
16 | - app()->singleton('heyman.debugger', function () { |
|
16 | + app()->singleton('heyman.debugger', function() { |
|
17 | 17 | return new MessagesCollector('HeyMan'); |
18 | 18 | }); |
19 | 19 | |
20 | 20 | app()->make('debugbar')->addCollector(app('heyman.debugger')); |
21 | 21 | |
22 | - Event::listen('heyman_reaction_is_happening', function (...$debug) { |
|
22 | + Event::listen('heyman_reaction_is_happening', function(...$debug) { |
|
23 | 23 | app()['heyman_reaction_is_happened_in_debug'] = $debug; |
24 | 24 | resolve('heyman.debugger')->addMessage('HeyMan Rule Matched in file: '); |
25 | - resolve('heyman.debugger')->addMessage($debug[0].' on line: '.$debug[1]); |
|
25 | + resolve('heyman.debugger')->addMessage($debug[0] . ' on line: ' . $debug[1]); |
|
26 | 26 | resolve('heyman.debugger')->addMessage($debug[2]); |
27 | 27 | }); |
28 | 28 | } |
@@ -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 | } |
@@ -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 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | public function normalize($method, $name) |
14 | 14 | { |
15 | 15 | if ($method == 'whenYouReachCheckPoint') { |
16 | - $name[0] = 'heyman_checkpoint_'.$name[0]; |
|
16 | + $name[0] = 'heyman_checkpoint_' . $name[0]; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | return [$name]; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | { |
7 | 7 | public function normalize($method, $params) |
8 | 8 | { |
9 | - array_walk($params, function ($view) { |
|
9 | + array_walk($params, function($view) { |
|
10 | 10 | $this->checkViewExists($view); |
11 | 11 | }); |
12 | 12 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | |
15 | 15 | private function normalizeUrl($urls, $verb = 'GET') |
16 | 16 | { |
17 | - $removeSlash = function ($url) use ($verb) { |
|
18 | - return $verb.ltrim($url, '/'); |
|
17 | + $removeSlash = function($url) use ($verb) { |
|
18 | + return $verb . ltrim($url, '/'); |
|
19 | 19 | }; |
20 | 20 | |
21 | 21 | return array_map($removeSlash, $urls); |