@@ -216,19 +216,19 @@ private function compileRoute(Route $route, $name, $supportsRedirections, $paren
216
216
$ conditions [] = sprintf ("rtrim( \$pathinfo, '/') === %s " , var_export (rtrim (str_replace ('\\' , '' , $ m ['url ' ]), '/ ' ), true ));
217
217
$ hasTrailingSlash = true ;
218
218
} 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 ));
220
220
}
221
221
} else {
222
222
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 ));
224
224
}
225
225
226
226
$ regex = $ compiledRoute ->getRegex ();
227
227
if ($ supportsTrailingSlash && $ pos = strpos ($ regex , '/$ ' )) {
228
228
$ regex = substr ($ regex , 0 , $ pos ).'/?$ ' .substr ($ regex , $ pos + 2 );
229
229
$ hasTrailingSlash = true ;
230
230
}
231
- $ conditions [] = sprintf (" preg_match(%s, \ $pathinfo, \ $matches) " , var_export ($ regex , true ));
231
+ $ conditions [] = sprintf (' preg_match(%s, $pathinfo, $matches) ' , var_export ($ regex , true ));
232
232
233
233
$ matches = true ;
234
234
}
0 commit comments