Passed
Push — master ( 3f1406...7393c0 )
by Biao
09:32
created
src/Components/Prometheus/ServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,31 +15,31 @@
 block discarded – undo
15 15
     public function boot()
16 16
     {
17 17
         $this->publishes([
18
-            __DIR__ . '/../../../config/prometheus.php' => base_path('config/prometheus.php'),
18
+            __DIR__.'/../../../config/prometheus.php' => base_path('config/prometheus.php'),
19 19
         ]);
20 20
     }
21 21
 
22 22
     public function register()
23 23
     {
24 24
         $this->mergeConfigFrom(
25
-            __DIR__ . '/../../../config/prometheus.php', 'prometheus'
25
+            __DIR__.'/../../../config/prometheus.php', 'prometheus'
26 26
         );
27
-        $this->app->singleton(RequestMiddleware::class, function ($app) {
27
+        $this->app->singleton(RequestMiddleware::class, function($app) {
28 28
             return new RequestMiddleware($app->make(HttpRequestCollector::class));
29 29
         });
30
-        $this->app->singleton(HttpRequestCollector::class, function ($app) {
30
+        $this->app->singleton(HttpRequestCollector::class, function($app) {
31 31
             return new HttpRequestCollector($app['config']->get('prometheus'));
32 32
         });
33
-        $this->app->singleton(SwooleProcessCollector::class, function ($app) {
33
+        $this->app->singleton(SwooleProcessCollector::class, function($app) {
34 34
             return new SwooleProcessCollector($app['config']->get('prometheus'));
35 35
         });
36
-        $this->app->singleton(SwooleStatsCollector::class, function ($app) {
36
+        $this->app->singleton(SwooleStatsCollector::class, function($app) {
37 37
             return new SwooleStatsCollector($app['config']->get('prometheus'));
38 38
         });
39
-        $this->app->singleton(SystemCollector::class, function ($app) {
39
+        $this->app->singleton(SystemCollector::class, function($app) {
40 40
             return new SystemCollector($app['config']->get('prometheus'));
41 41
         });
42
-        $this->app->singleton(Exporter::class, function ($app) {
42
+        $this->app->singleton(Exporter::class, function($app) {
43 43
             return new Exporter($app['config']->get('prometheus'));
44 44
         });
45 45
     }
Please login to merge, or discard this patch.