Skip to content

Commit

Permalink
🤖 Automatic code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain authored and github-actions[bot] committed Mar 13, 2024
1 parent d6a45e5 commit 46bd41a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 46bd41a

Please sign in to comment.