summaryrefslogtreecommitdiff
path: root/src/Enums/PathSegmentType.php
diff options
context:
space:
mode:
authorSam Light <sam@lightscale.co.uk>2026-06-10 19:00:32 +0100
committerSam Light <sam@lightscale.co.uk>2026-06-10 19:00:32 +0100
commit11beca762b31722e0e6690446f6dabf83bf9dafa (patch)
tree7271aa4948002c6f57feb6230975d2304d95ddf5 /src/Enums/PathSegmentType.php
parentac836311005458a10dded324420be92f44976332 (diff)
code formatting
Diffstat (limited to 'src/Enums/PathSegmentType.php')
-rw-r--r--src/Enums/PathSegmentType.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Enums/PathSegmentType.php b/src/Enums/PathSegmentType.php
index 7cb1a51..414b945 100644
--- a/src/Enums/PathSegmentType.php
+++ b/src/Enums/PathSegmentType.php
@@ -26,10 +26,10 @@ enum PathSegmentType
$regex = $type->routeMatchRegex();
if (preg_match($regex, $value, $matches) === 1) {
$value = $matches[1];
- }
- else {
+ } else {
$type = PathSegmentType::Raw;
}
- return new PathSegmentTypeMatch( $type, $value);
+
+ return new PathSegmentTypeMatch($type, $value);
}
}