Skip to content

Commit 48f1afa

Browse files
committed
Fix code Style
Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
1 parent 9d15485 commit 48f1afa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Prometheus/Collector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ public static function assertValidLabel(string $label): void
116116
{
117117
if (preg_match(self::RE_LABEL_NAME, $label) !== 1) {
118118
throw new InvalidArgumentException("Invalid label name: '" . $label . "'");
119-
}
120-
else if (strpos($label, "__") === 0) {
119+
} else if (strpos($label, "__") === 0) {
121120
throw new InvalidArgumentException("Can't used a reserved label name: '" . $label . "'");
122121
}
123122
}

0 commit comments

Comments
 (0)