@@ -15,7 +15,7 @@ |
||
15 | 15 | public function startWatching($chainData) |
16 | 16 | { |
17 | 17 | MatchedRoute::$chainData = $chainData; |
18 | - Route::matched(function (RouteMatched $eventObj) { |
|
18 | + Route::matched(function(RouteMatched $eventObj) { |
|
19 | 19 | $eventObj->route->middleware(MatchedRoute::class); |
20 | 20 | }); |
21 | 21 | } |
@@ -13,12 +13,12 @@ |
||
13 | 13 | |
14 | 14 | public function normalizeAction($actions) |
15 | 15 | { |
16 | - $addNamespace = function ($action) { |
|
16 | + $addNamespace = function($action) { |
|
17 | 17 | if (Str::startsWith($action, '\\')) { |
18 | 18 | return $action; |
19 | 19 | } |
20 | 20 | |
21 | - return app()->getNamespace().'Http\\Controllers\\'.$action; |
|
21 | + return app()->getNamespace() . 'Http\\Controllers\\' . $action; |
|
22 | 22 | }; |
23 | 23 | |
24 | 24 | return array_map($addNamespace, $actions); |
@@ -12,8 +12,8 @@ discard block |
||
12 | 12 | { |
13 | 13 | $method = $this->aliases[$method] ?? $method; |
14 | 14 | |
15 | - if (! isset($this->methods[$method])) { |
|
16 | - throw new \BadMethodCallException($method.' does not exist'); |
|
15 | + if (!isset($this->methods[$method])) { |
|
16 | + throw new \BadMethodCallException($method . ' does not exist'); |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | $condition = $this->methods[$method]; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | public function alias(string $currentName, string $newName, $override = true) |
40 | 40 | { |
41 | - if ($override || ! isset($this->aliases[$newName])) { |
|
41 | + if ($override || !isset($this->aliases[$newName])) { |
|
42 | 42 | $this->aliases[$newName] = $currentName; |
43 | 43 | |
44 | 44 | return true; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | public static function abortIt($args) |
18 | 18 | { |
19 | - return function () use ($args) { |
|
19 | + return function() use ($args) { |
|
20 | 20 | app()->abort(...$args); |
21 | 21 | }; |
22 | 22 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | public static function exception(array $e) |
26 | 26 | { |
27 | - return function () use ($e) { |
|
27 | + return function() use ($e) { |
|
28 | 28 | $exClass = $e[0]; |
29 | 29 | $message = $e[1]; |
30 | 30 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | private static function sendResponse(array $methodCalls, $func) |
37 | 37 | { |
38 | - return function () use ($func, $methodCalls) { |
|
38 | + return function() use ($func, $methodCalls) { |
|
39 | 39 | $respObj = $func(); |
40 | 40 | foreach ($methodCalls as $call) { |
41 | 41 | [$method, $args] = $call; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | { |
7 | 7 | public static function nothing() |
8 | 8 | { |
9 | - return function () { |
|
9 | + return function() { |
|
10 | 10 | }; |
11 | 11 | } |
12 | 12 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | public function checkPoint(string $pointName) |
31 | 31 | { |
32 | - event('heyman_checkpoint_'.$pointName); |
|
32 | + event('heyman_checkpoint_' . $pointName); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | public function aliasCondition(string $currentName, string $newName) |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | private function writeDebugInfo($debugTrace) |
66 | 66 | { |
67 | - if (config('app.debug') && ! app()->environment('production')) { |
|
67 | + if (config('app.debug') && !app()->environment('production')) { |
|
68 | 68 | $info = Arr::only($debugTrace, ['file', 'line', 'args']); |
69 | 69 | resolve('heyman.chain')->set('debugInfo', $info); |
70 | 70 | } |
@@ -6,8 +6,8 @@ |
||
6 | 6 | { |
7 | 7 | public function wrapForIgnorance(callable $callback, $key) |
8 | 8 | { |
9 | - return function (...$args) use ($callback, $key) { |
|
10 | - if (config('heyman_ignore_'.$key, false)) { |
|
9 | + return function(...$args) use ($callback, $key) { |
|
10 | + if (config('heyman_ignore_' . $key, false)) { |
|
11 | 11 | return true; |
12 | 12 | } |
13 | 13 |