Passed
Push — master ( ee9528...91a583 )
by Aleksandr
01:56
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
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     protected function registerLogger()
53 53
     {
54
-        $this->app->bind('app.request.logger', function () {
54
+        $this->app->bind('app.request.logger', function() {
55 55
             $logger = new Logger('request-logger');
56 56
 
57 57
             $handler = new RotatingFileHandler(
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             return $logger;
70 70
         });
71 71
 
72
-        $this->app->bind(RequestLogger::class, function (Application $app) {
72
+        $this->app->bind(RequestLogger::class, function(Application $app) {
73 73
             return new RequestLogger(
74 74
                 $app->make('app.request.logger'),
75 75
                 $app->make(LogContextFormatter::class)
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
      */
83 83
     protected function registerAppBenchmarkFormatter()
84 84
     {
85
-        $this->app->singleton('app.services.benchmark.application', function () {
85
+        $this->app->singleton('app.services.benchmark.application', function() {
86 86
             return new BenchmarkService('application');
87 87
         });
88 88
 
89
-        $this->app->bind(ResponseBenchmarkFormatter::class, function (Application $app) {
89
+        $this->app->bind(ResponseBenchmarkFormatter::class, function(Application $app) {
90 90
             return new ResponseBenchmarkFormatter(
91 91
                 $app->make('app.services.benchmark.application')
92 92
             );
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function registerLogContextFormatter()
100 100
     {
101
-        $this->app->bind(LogContextFormatter::class, function (Application $app) {
101
+        $this->app->bind(LogContextFormatter::class, function(Application $app) {
102 102
             $contextFormatter = new LogContextFormatter();
103 103
 
104 104
             $contextFormatter->addContextFormatter($app->make(RequestMethodFormatter::class));
Please login to merge, or discard this patch.