| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait RobotsRulesTrait |
||
| 13 | { |
||
| 14 | public $noindexWhitelist = ['legifrance.gouv.fr']; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Detect if robots noindex |
||
| 18 | * https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag?hl=fr |
||
| 19 | */ |
||
| 20 | protected function isRobotNoIndex(array $pageData, string $url): bool |
||
| 36 | } |
||
| 37 | |||
| 38 | protected function isNoIndexDomainWhitelisted(?string $prettyDomain): bool |
||
| 47 | } |
||
| 48 | } |