diff --git a/Crawler.php b/Crawler.php index 09e5806..48b52a3 100644 --- a/Crawler.php +++ b/Crawler.php @@ -172,9 +172,7 @@ protected function loadIgnores() { $file = __DIR__ . '/conf/ignore.txt'; $ignore = file($file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); - $ignore = array_map(function ($line) { - return trim(preg_replace('/\s*#.*$/', '', $line)); - }, $ignore); + $ignore = array_map(static fn($line) => trim(preg_replace('/\s*#.*$/', '', $line)), $ignore); $ignore = array_filter($ignore); return $ignore; }