@@ 307-312 (lines=6) @@ | ||
304 | */ |
|
305 | public static function toRegEx($glob, $flags = 0, $delimiter = '~') |
|
306 | { |
|
307 | if (!Path::isAbsolute($glob) && false === strpos($glob, '://')) { |
|
308 | throw new InvalidArgumentException(sprintf( |
|
309 | 'The glob "%s" is not absolute and not a URI.', |
|
310 | $glob |
|
311 | )); |
|
312 | } |
|
313 | ||
314 | $inSquare = false; |
|
315 | $curlyLevels = 0; |
|
@@ 452-457 (lines=6) @@ | ||
449 | */ |
|
450 | public static function getStaticPrefix($glob, $flags = 0) |
|
451 | { |
|
452 | if (!Path::isAbsolute($glob) && false === strpos($glob, '://')) { |
|
453 | throw new InvalidArgumentException(sprintf( |
|
454 | 'The glob "%s" is not absolute and not a URI.', |
|
455 | $glob |
|
456 | )); |
|
457 | } |
|
458 | ||
459 | $prefix = ''; |
|
460 | $length = strlen($glob); |