Completed
Branch master (822e24)
by Christopher
04:48
created
Category
src/Provider/PrometheusExporterServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 $this->app->bind(Adapter::class, APC::class);
52 52
                 break;
53 53
             case 'redis':
54
-                $this->app->bind(Adapter::class, function () {
54
+                $this->app->bind(Adapter::class, function() {
55 55
                     return new Redis(config('prometheus-exporter.redis'));
56 56
                 });
57 57
                 break;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         }
67 67
     
68 68
         /** @var Router $router */
69
-        $router = $this->app['router'];
69
+        $router = $this->app[ 'router' ];
70 70
         $router->aliasMiddleware('lpe.requestPerRoute', RequestPerRoute::class);
71 71
     
72 72
         $this->app->bind(PrometheusExporterContract::class, PrometheusExporter::class, true);
Please login to merge, or discard this patch.
src/Contract/PrometheusExporterContract.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @throws MetricsRegistrationException
26 26
      */
27
-    public function incCounter($name, $help, $namespace = null, array $labelKeys = [], array $labelValues = []);
27
+    public function incCounter($name, $help, $namespace = null, array $labelKeys = [ ], array $labelValues = [ ]);
28 28
 
29 29
     /**
30 30
      * incBy
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
         $help,
44 44
         $value,
45 45
         $namespace = null,
46
-        array $labelKeys = [],
47
-        array $labelValues = []
46
+        array $labelKeys = [ ],
47
+        array $labelValues = [ ]
48 48
     );
49 49
 
50 50
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *
60 60
      * @throws MetricsRegistrationException
61 61
      */
62
-    public function setGauge($name, $help, $value, $namespace = null, array $labelKeys = [], array $labelValues = []);
62
+    public function setGauge($name, $help, $value, $namespace = null, array $labelKeys = [ ], array $labelValues = [ ]);
63 63
     
64 64
     /**
65 65
      * Inc by gauge
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @throws MetricsRegistrationException
74 74
      */
75
-    public function incGauge($name, $help, $namespace = null, array $labelKeys = [], array $labelValues = []);
75
+    public function incGauge($name, $help, $namespace = null, array $labelKeys = [ ], array $labelValues = [ ]);
76 76
     
77 77
     /**
78 78
      * incBy Gauge
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
         $help,
92 92
         $value,
93 93
         $namespace = null,
94
-        array $labelKeys = [],
95
-        array $labelValues = []
94
+        array $labelKeys = [ ],
95
+        array $labelValues = [ ]
96 96
     );
97 97
     
98 98
     /**
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
         $help,
114 114
         $value,
115 115
         $namespace = null,
116
-        array $labelKeys = [],
117
-        array $labelValues = [],
116
+        array $labelKeys = [ ],
117
+        array $labelValues = [ ],
118 118
         ?array $buckets = null
119 119
     );
120 120
 }
Please login to merge, or discard this patch.
src/PrometheusExporter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @inheritdoc
38 38
      */
39
-    public function incCounter($name, $help, $namespace = null, array $labelKeys = [], array $labelValues = [])
39
+    public function incCounter($name, $help, $namespace = null, array $labelKeys = [ ], array $labelValues = [ ])
40 40
     {
41 41
         $namespace = $this->getNamespace($namespace);
42 42
         
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
         $help,
60 60
         $value,
61 61
         $namespace = null,
62
-        array $labelKeys = [],
63
-        array $labelValues = []
62
+        array $labelKeys = [ ],
63
+        array $labelValues = [ ]
64 64
     ) {
65 65
         $namespace = $this->getNamespace($namespace);
66 66
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     /**
79 79
      * @inheritdoc
80 80
      */
81
-    public function setGauge($name, $help, $value, $namespace = null, array $labelKeys = [], array $labelValues = [])
81
+    public function setGauge($name, $help, $value, $namespace = null, array $labelKeys = [ ], array $labelValues = [ ])
82 82
     {
83 83
         $namespace = $this->getNamespace($namespace);
84 84
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     /**
97 97
      * @inheritdoc
98 98
      */
99
-    public function incGauge($name, $help, $namespace = null, array $labelKeys = [], array $labelValues = [])
99
+    public function incGauge($name, $help, $namespace = null, array $labelKeys = [ ], array $labelValues = [ ])
100 100
     {
101 101
         $namespace = $this->getNamespace($namespace);
102 102
 
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
         $help,
120 120
         $value,
121 121
         $namespace = null,
122
-        array $labelKeys = [],
123
-        array $labelValues = []
122
+        array $labelKeys = [ ],
123
+        array $labelValues = [ ]
124 124
     ) {
125 125
         $namespace = $this->getNamespace($namespace);
126 126
 
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
         $help,
144 144
         $value,
145 145
         $namespace = null,
146
-        array $labelKeys = [],
147
-        array $labelValues = [],
146
+        array $labelKeys = [ ],
147
+        array $labelValues = [ ],
148 148
         ?array $buckets = null
149 149
     ) {
150 150
         $namespace = $this->getNamespace($namespace);
Please login to merge, or discard this patch.
src/Config/config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     'redis' => [
11 11
         'host'                   => env('PROMETHEUS_REDIS_HOST', '127.0.0.1'),
12 12
         'port'                   => env('PROMETHEUS_REDIS_PORT', 6379),
13
-        'timeout'                => 0.1,  // in seconds
13
+        'timeout'                => 0.1, // in seconds
14 14
         'read_timeout'           => 10, // in seconds
15 15
         'persistent_connections' => false,
16 16
     ],
@@ -19,5 +19,5 @@  discard block
 block discarded – undo
19 19
         'address' => env('PROMETHEUS_PUSH_GATEWAY_ADDRESS', 'localhost:9091')
20 20
     ],
21 21
     
22
-    'buckets_per_route' => []
22
+    'buckets_per_route' => [ ]
23 23
 ];
Please login to merge, or discard this patch.