Skip to content

Commit

Permalink
Merge pull request #40 from dokufreaks/bot/autofix
Browse files Browse the repository at this point in the history
🤖 Automatic code style fixes
  • Loading branch information
splitbrain authored Mar 13, 2024
2 parents d6a45e5 + 46bd41a commit 48ecd4d
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 48ecd4d

Please sign in to comment.