Skip to content

Commit 4ced3b7

Browse files
committed
fix CS
1 parent 66a7614 commit 4ced3b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Matcher/Dumper/PhpMatcherDumper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,19 +216,19 @@ private function compileRoute(Route $route, $name, $supportsRedirections, $paren
216216
$conditions[] = sprintf("rtrim(\$pathinfo, '/') === %s", var_export(rtrim(str_replace('\\', '', $m['url']), '/'), true));
217217
$hasTrailingSlash = true;
218218
} else {
219-
$conditions[] = sprintf("\$pathinfo === %s", var_export(str_replace('\\', '', $m['url']), true));
219+
$conditions[] = sprintf('$pathinfo === %s', var_export(str_replace('\\', '', $m['url']), true));
220220
}
221221
} else {
222222
if ($compiledRoute->getStaticPrefix() && $compiledRoute->getStaticPrefix() !== $parentPrefix) {
223-
$conditions[] = sprintf("0 === strpos(\$pathinfo, %s)", var_export($compiledRoute->getStaticPrefix(), true));
223+
$conditions[] = sprintf('0 === strpos($pathinfo, %s)', var_export($compiledRoute->getStaticPrefix(), true));
224224
}
225225

226226
$regex = $compiledRoute->getRegex();
227227
if ($supportsTrailingSlash && $pos = strpos($regex, '/$')) {
228228
$regex = substr($regex, 0, $pos).'/?$'.substr($regex, $pos + 2);
229229
$hasTrailingSlash = true;
230230
}
231-
$conditions[] = sprintf("preg_match(%s, \$pathinfo, \$matches)", var_export($regex, true));
231+
$conditions[] = sprintf('preg_match(%s, $pathinfo, $matches)', var_export($regex, true));
232232

233233
$matches = true;
234234
}

0 commit comments

Comments
 (0)