Skip to content

Commit

Permalink
Update LineEndingValidator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
janhelke committed Jan 7, 2019
1 parent da4508d commit ea0e8c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EditorconfigChecker/Validation/LineEndingValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public function validate(
int $lineNumber,
bool $autoFix
) : bool {

$utilities = new Utilities();

if (isset($rules['end_of_line'])) {
if ($rules['end_of_line'] === 'lf') {
str_replace("\n", '', $content, $eolsLF);
Expand Down

0 comments on commit ea0e8c9

Please sign in to comment.