@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | public function format(Request $request, Response $response) |
36 | 36 | { |
37 | 37 | $this->collection->each( |
38 | - function (ContextFormatterContract $contextFormatterContract) use ($request, $response) { |
|
38 | + function(ContextFormatterContract $contextFormatterContract) use ($request, $response) { |
|
39 | 39 | $this->context[$contextFormatterContract->name()] = $contextFormatterContract->format($request, $response); |
40 | 40 | } |
41 | 41 | ); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | protected function validate(ContextFormatterContract $newFormatter): void |
60 | 60 | { |
61 | - $exists = $this->collection->first(function (ContextFormatterContract $formatter) use ($newFormatter) { |
|
61 | + $exists = $this->collection->first(function(ContextFormatterContract $formatter) use ($newFormatter) { |
|
62 | 62 | return $formatter->name() == $newFormatter->name(); |
63 | 63 | }); |
64 | 64 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | protected function registerLogger() |
54 | 54 | { |
55 | - $this->app->bind('app.request.logger', function () { |
|
55 | + $this->app->bind('app.request.logger', function() { |
|
56 | 56 | $logger = new Logger('request-logger'); |
57 | 57 | |
58 | 58 | $handler = new RotatingFileHandler( |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | return $logger; |
71 | 71 | }); |
72 | 72 | |
73 | - $this->app->bind(RequestLogger::class, function (Application $app) { |
|
73 | + $this->app->bind(RequestLogger::class, function(Application $app) { |
|
74 | 74 | return new RequestLogger( |
75 | 75 | $app->make('app.request.logger'), |
76 | 76 | $app->make(LogContextFormatter::class) |
@@ -83,11 +83,11 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function registerAppBenchmarkFormatter() |
85 | 85 | { |
86 | - $this->app->singleton('app.services.benchmark.application', function () { |
|
86 | + $this->app->singleton('app.services.benchmark.application', function() { |
|
87 | 87 | return new BenchmarkService('application'); |
88 | 88 | }); |
89 | 89 | |
90 | - $this->app->bind(ResponseBenchmarkFormatter::class, function (Application $app) { |
|
90 | + $this->app->bind(ResponseBenchmarkFormatter::class, function(Application $app) { |
|
91 | 91 | return new ResponseBenchmarkFormatter( |
92 | 92 | $app->make('app.services.benchmark.application') |
93 | 93 | ); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | protected function registerLogContextFormatter() |
101 | 101 | { |
102 | - $this->app->bind(LogContextFormatter::class, function (Application $app) { |
|
102 | + $this->app->bind(LogContextFormatter::class, function(Application $app) { |
|
103 | 103 | $contextFormatter = new LogContextFormatter(); |
104 | 104 | |
105 | 105 | $contextFormatter->addContextFormatter($app->make(RequestIPFormatter::class)); |