🤖 Automatic code style fixes

This commit is contained in:
splitbrain
2024-03-13 11:14:07 +00:00
committed by github-actions[bot]
parent d6a45e5c9f
commit 46bd41a864

View File

@@ -172,9 +172,7 @@ class Crawler
{
$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;
}