/home/techb158/ileadtechnology.com/vendor/spatie/robots-txt/src
NameSizeModeActions
Robots.php16060644editdlrm
RobotsHeaders.php26760644editdlrm
RobotsMeta.php17410644editdlrm
RobotsTxt.php50200644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/spatie/robots-txt/src/RobotsMeta.php (1741B)
robotsMetaTagProperties = $this->findRobotsMetaTagProperties($html); } public function mayIndex(): bool { return ! $this->noindex(); } public function mayFollow(): bool { return ! $this->nofollow(); } public function noindex(): bool { return $this->robotsMetaTagProperties['noindex'] ?? false; } public function nofollow(): bool { return $this->robotsMetaTagProperties['nofollow'] ?? false; } protected function findRobotsMetaTagProperties(string $html): array { $metaTagLine = $this->findRobotsMetaTagLine($html); return [ 'noindex' => $metaTagLine ? strpos(strtolower($metaTagLine), 'noindex') !== false : false, 'nofollow' => $metaTagLine ? strpos(strtolower($metaTagLine), 'nofollow') !== false : false, ]; } protected function findRobotsMetaTagLine(string $html): ?string { if (preg_match('/\/mis', $html, $matches)) { return $matches[0]; } return null; } }