Passed
Push — master ( 66a286...1d5d98 )
by Aleksandr
02:37
created
src/Logger/LogContextFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/RequestLoggerServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.