@@ -45,7 +45,7 @@ class CollectorRegistry implements RegistryInterface
4545 * CollectorRegistry constructor.
4646 *
4747 * @param Adapter $storageAdapter
48- * @param bool $registerDefaultMetrics
48+ * @param bool $registerDefaultMetrics
4949 */
5050 public function __construct (Adapter $ storageAdapter , bool $ registerDefaultMetrics = true )
5151 {
@@ -72,9 +72,9 @@ public function getMetricFamilySamples(): array
7272 }
7373
7474 /**
75- * @param string $namespace e.g. cms
76- * @param string $name e.g. duration_seconds
77- * @param string $help e.g. The duration something took in seconds.
75+ * @param string $namespace e.g. cms
76+ * @param string $name e.g. duration_seconds
77+ * @param string $help e.g. The duration something took in seconds.
7878 * @param string[] $labels e.g. ['controller', 'action']
7979 *
8080 * @return Gauge
@@ -106,16 +106,16 @@ public function registerGauge(string $namespace, string $name, string $help, $la
106106 public function getGauge (string $ namespace , string $ name ): Gauge
107107 {
108108 $ metricIdentifier = self ::metricIdentifier ($ namespace , $ name );
109- if (! isset ($ this ->gauges [$ metricIdentifier ])) {
109+ if (!isset ($ this ->gauges [$ metricIdentifier ])) {
110110 throw new MetricNotFoundException ("Metric not found: " . $ metricIdentifier );
111111 }
112112 return $ this ->gauges [$ metricIdentifier ];
113113 }
114114
115115 /**
116- * @param string $namespace e.g. cms
117- * @param string $name e.g. duration_seconds
118- * @param string $help e.g. The duration something took in seconds.
116+ * @param string $namespace e.g. cms
117+ * @param string $name e.g. duration_seconds
118+ * @param string $help e.g. The duration something took in seconds.
119119 * @param string[] $labels e.g. ['controller', 'action']
120120 *
121121 * @return Gauge
@@ -132,9 +132,9 @@ public function getOrRegisterGauge(string $namespace, string $name, string $help
132132 }
133133
134134 /**
135- * @param string $namespace e.g. cms
136- * @param string $name e.g. requests
137- * @param string $help e.g. The number of requests made.
135+ * @param string $namespace e.g. cms
136+ * @param string $name e.g. requests
137+ * @param string $help e.g. The number of requests made.
138138 * @param string[] $labels e.g. ['controller', 'action']
139139 *
140140 * @return Counter
@@ -166,16 +166,16 @@ public function registerCounter(string $namespace, string $name, string $help, $
166166 public function getCounter (string $ namespace , string $ name ): Counter
167167 {
168168 $ metricIdentifier = self ::metricIdentifier ($ namespace , $ name );
169- if (! isset ($ this ->counters [$ metricIdentifier ])) {
169+ if (!isset ($ this ->counters [$ metricIdentifier ])) {
170170 throw new MetricNotFoundException ("Metric not found: " . $ metricIdentifier );
171171 }
172172 return $ this ->counters [self ::metricIdentifier ($ namespace , $ name )];
173173 }
174174
175175 /**
176- * @param string $namespace e.g. cms
177- * @param string $name e.g. requests
178- * @param string $help e.g. The number of requests made.
176+ * @param string $namespace e.g. cms
177+ * @param string $name e.g. requests
178+ * @param string $help e.g. The number of requests made.
179179 * @param string[] $labels e.g. ['controller', 'action']
180180 *
181181 * @return Counter
@@ -192,10 +192,10 @@ public function getOrRegisterCounter(string $namespace, string $name, string $he
192192 }
193193
194194 /**
195- * @param string $namespace e.g. cms
196- * @param string $name e.g. duration_seconds
197- * @param string $help e.g. A histogram of the duration in seconds.
198- * @param string[] $labels e.g. ['controller', 'action']
195+ * @param string $namespace e.g. cms
196+ * @param string $name e.g. duration_seconds
197+ * @param string $help e.g. A histogram of the duration in seconds.
198+ * @param string[] $labels e.g. ['controller', 'action']
199199 * @param mixed[]|null $buckets e.g. [100, 200, 300]
200200 *
201201 * @return Histogram
@@ -233,17 +233,17 @@ public function registerHistogram(
233233 public function getHistogram (string $ namespace , string $ name ): Histogram
234234 {
235235 $ metricIdentifier = self ::metricIdentifier ($ namespace , $ name );
236- if (! isset ($ this ->histograms [$ metricIdentifier ])) {
236+ if (!isset ($ this ->histograms [$ metricIdentifier ])) {
237237 throw new MetricNotFoundException ("Metric not found: " . $ metricIdentifier );
238238 }
239239 return $ this ->histograms [self ::metricIdentifier ($ namespace , $ name )];
240240 }
241241
242242 /**
243- * @param string $namespace e.g. cms
244- * @param string $name e.g. duration_seconds
245- * @param string $help e.g. A histogram of the duration in seconds.
246- * @param string[] $labels e.g. ['controller', 'action']
243+ * @param string $namespace e.g. cms
244+ * @param string $name e.g. duration_seconds
245+ * @param string $help e.g. A histogram of the duration in seconds.
246+ * @param string[] $labels e.g. ['controller', 'action']
247247 * @param float[]|null $buckets e.g. [100, 200, 300]
248248 *
249249 * @return Histogram
0 commit comments