Conditions | 4 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | |||
11 | class MixedContentObserver extends CrawlObserver |
||
12 | { |
||
13 | public function crawled(UriInterface $url, ResponseInterface $response, ?UriInterface $foundOnUrl = null) |
||
14 | { |
||
15 | $mixedContent = MixedContentExtractor::extract((string) $response->getBody(), $url); |
||
16 | |||
17 | if (! count($mixedContent)) { |
||
18 | $this->noMixedContentFound($url); |
||
19 | |||
20 | return; |
||
21 | } |
||
22 | |||
23 | foreach ($mixedContent as $mixedContentItem) { |
||
24 | $this->mixedContentFound($mixedContentItem); |
||
25 | } |
||
26 | } |
||
27 | |||
28 | public function crawlFailed( |
||
29 | UriInterface $url, |
||
30 | RequestException $requestException, |
||
55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.