Passed
Push — master ( 0f35fa...fa6214 )
by Biao
03:11
created
src/Components/Prometheus/PrometheusServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,22 +13,22 @@
 block discarded – undo
13 13
     public function boot()
14 14
     {
15 15
         $this->publishes([
16
-            __DIR__ . '/../../../config/prometheus.php' => base_path('config/prometheus.php'),
16
+            __DIR__.'/../../../config/prometheus.php' => base_path('config/prometheus.php'),
17 17
         ]);
18 18
     }
19 19
 
20 20
     public function register()
21 21
     {
22 22
         $this->mergeConfigFrom(
23
-            __DIR__ . '/../../../config/prometheus.php', 'prometheus'
23
+            __DIR__.'/../../../config/prometheus.php', 'prometheus'
24 24
         );
25
-        $this->app->singleton(HttpRequestCollector::class, function ($app) {
25
+        $this->app->singleton(HttpRequestCollector::class, function($app) {
26 26
             return new HttpRequestCollector($app['config']->get('prometheus'));
27 27
         });
28
-        $this->app->singleton(SwooleProcessCollector::class, function ($app) {
28
+        $this->app->singleton(SwooleProcessCollector::class, function($app) {
29 29
             return new SwooleProcessCollector($app['config']->get('prometheus'));
30 30
         });
31
-        $this->app->singleton(PrometheusExporter::class, function ($app) {
31
+        $this->app->singleton(PrometheusExporter::class, function($app) {
32 32
             return new PrometheusExporter($app['config']->get('prometheus'));
33 33
         });
34 34
     }
Please login to merge, or discard this patch.