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