Conditions | 4 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | protected function isRobotNoIndex(array $pageData, string $url): bool |
||
21 | { |
||
22 | $robots = $pageData['meta']['robots'] ?? null; |
||
23 | if ( |
||
24 | !empty($robots) |
||
25 | && ( |
||
26 | stripos($robots, 'noindex') !== false |
||
27 | || stripos($robots, 'none') !== false |
||
28 | ) |
||
29 | ) { |
||
30 | $this->log->notice('robots NOINDEX : ' . $url); |
||
31 | |||
32 | return !$this->isNoIndexDomainWhitelisted($pageData['meta']['prettyDomainName']); |
||
33 | } |
||
34 | |||
35 | return false; |
||
36 | } |
||
48 | } |