Completed
Branch master (0121e8)
by Christopher
02:38
created
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
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 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.