| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 16 | public static function create(UriInterface $uri, string $glue): string |
||
| 17 | { |
||
| 18 | return self::stripExtraSlashes( |
||
| 19 | implode( |
||
| 20 | $glue, |
||
| 21 | [ |
||
| 22 | (string)$uri->getScheme(), |
||
| 23 | (string)$uri->getHost(), |
||
| 24 | (string)$uri->getPort(), |
||
| 25 | self::chunkUp(md5((string)$uri->getPath()), $glue), |
||
| 26 | self::chunkUp(md5((string)$uri->getQuery()), $glue), |
||
| 27 | ] |
||
| 28 | ), |
||
| 29 | $glue |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 52 |