Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public static function extract(string $css, UriInterface $cssUri, UriInterface $linkedByUri): array |
||
11 | { |
||
12 | $pattern = '/url\((http:\/\/.*?)\)/m'; |
||
13 | $matches = []; |
||
14 | preg_match_all($pattern, $css, $matches); |
||
15 | return collect($matches[1])->map(function ($item, $i) use ($cssUri, $linkedByUri) { |
||
|
|||
16 | return new MixedContent($cssUri, new Uri($item), $linkedByUri); |
||
17 | })->toArray(); |
||
18 | } |
||
19 | } |
||
20 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.