@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | /** |
40 | 40 | * @inheritdoc |
41 | 41 | */ |
42 | - public function incCounter($name, $help, $namespace = null, array $labelKeys = [], array $labelValues = []) { |
|
42 | + public function incCounter($name, $help, $namespace = null, array $labelKeys = [ ], array $labelValues = [ ]) { |
|
43 | 43 | $namespace = $this->getNamespace($namespace); |
44 | 44 | |
45 | 45 | try { |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | $help, |
62 | 62 | $value, |
63 | 63 | $namespace = null, |
64 | - array $labelKeys = [], |
|
65 | - array $labelValues = [] |
|
64 | + array $labelKeys = [ ], |
|
65 | + array $labelValues = [ ] |
|
66 | 66 | ) { |
67 | 67 | $namespace = $this->getNamespace($namespace); |
68 | 68 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | /** |
81 | 81 | * @inheritdoc |
82 | 82 | */ |
83 | - public function setGauge($name, $help, $value, $namespace = null, array $labelKeys = [], array $labelValues = []) { |
|
83 | + public function setGauge($name, $help, $value, $namespace = null, array $labelKeys = [ ], array $labelValues = [ ]) { |
|
84 | 84 | $namespace = $this->getNamespace($namespace); |
85 | 85 | |
86 | 86 | try { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | /** |
98 | 98 | * @inheritdoc |
99 | 99 | */ |
100 | - public function incGauge($name, $help, $namespace = null, array $labelKeys = [], array $labelValues = []) { |
|
100 | + public function incGauge($name, $help, $namespace = null, array $labelKeys = [ ], array $labelValues = [ ]) { |
|
101 | 101 | $namespace = $this->getNamespace($namespace); |
102 | 102 | |
103 | 103 | try { |
@@ -119,8 +119,8 @@ discard block |
||
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 |
||
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); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | __DIR__ . '/../Config/config.php' => config_path('prometheus-exporter.php'), |
28 | 28 | ], 'config'); |
29 | 29 | } elseif (class_exists('Laravel\Lumen\Application', false)) { |
30 | - $lumenApp = $this->app/** @scrutinizer ignore-call */ ; |
|
30 | + $lumenApp = $this->app/** @scrutinizer ignore-call */; |
|
31 | 31 | $lumenApp->configure('prometheus-exporter'); |
32 | 32 | } |
33 | 33 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $this->app->bind(Adapter::class, APC::class); |
53 | 53 | break; |
54 | 54 | case 'redis': |
55 | - $this->app->bind(Adapter::class, function () { |
|
55 | + $this->app->bind(Adapter::class, function() { |
|
56 | 56 | return new Redis(config('prometheus-exporter.redis')); |
57 | 57 | }); |
58 | 58 | break; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** @var Router $router */ |
70 | - $router = $this->app['router']; |
|
70 | + $router = $this->app[ 'router' ]; |
|
71 | 71 | $router->aliasMiddleware('lpe.requestPerRoute', RequestPerRoute::class); |
72 | 72 | |
73 | 73 | $this->app->bind(PrometheusExporterContract::class, PrometheusExporter::class, true); |