| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| 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 | |||
| 16 | return collect($matches[1])->map(function ($item, $i) use ($cssUri, $linkedByUri) { |
||
|
|
|||
| 17 | return new MixedContent($cssUri, new Uri($item), $linkedByUri); |
||
| 18 | })->toArray(); |
||
| 19 | } |
||
| 20 | } |
||
| 21 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.