1 | <?php |
||
10 | class MixedContentObserver extends CrawlObserver |
||
11 | { |
||
12 | private $crawledCss = []; |
||
13 | |||
14 | private $shouldExtractLinkedCss = false; |
||
15 | |||
16 | public function crawled(UriInterface $url, ResponseInterface $response, ?UriInterface $foundOnUrl = null) |
||
36 | |||
37 | public function crawlFailed( |
||
43 | |||
44 | /** |
||
45 | * Will be called when mixed content was found. |
||
46 | * |
||
47 | * @param \Spatie\MixedContentScanner\MixedContent $mixedContent |
||
48 | */ |
||
49 | public function mixedContentFound(MixedContent $mixedContent) |
||
52 | |||
53 | /** |
||
54 | * Will be called when no mixed content was found on the given url. |
||
55 | * |
||
56 | * @param \Psr\Http\Message\UriInterface |
||
57 | */ |
||
58 | public function noMixedContentFound(UriInterface $crawledUrl) |
||
61 | |||
62 | public function linkedCssFound(UriInterface $css, UriInterface $linkedByUrl) |
||
69 | |||
70 | public function withLinkedCss() |
||
75 | } |
||
76 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.