Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 17, 2020
1 parent e5fe073 commit 9a46e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gitignore.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function toRegex(string $gitignoreFileContent): string
}

$negativesAfter = array_filter(\array_slice($negatives, ++$index));
if ($negativesAfter !== []) {
if ([] !== $negativesAfter) {
$pattern .= sprintf('(?<!%s)', implode('|', $negativesAfter));
}

Expand Down

0 comments on commit 9a46e47

Please sign in to comment.