| Total Complexity | 9 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 76.92% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | final class AssetUtil |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Returns a value indicating whether a URL is relative. |
||
| 10 | * A relative URL does not have host info part. |
||
| 11 | * @param string $url the URL to be checked |
||
| 12 | * @return bool whether the URL is relative |
||
| 13 | */ |
||
| 14 | 20 | public static function isRelative(string $url): bool |
|
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param AssetBundle $bundle |
||
| 21 | * @param string $pathAsset |
||
| 22 | * @param array $assetMap |
||
| 23 | * |
||
| 24 | * @return string|null |
||
| 25 | */ |
||
| 26 | 20 | public static function resolveAsset(AssetBundle $bundle, string $pathAsset, array $assetMap): ?string |
|
| 48 |