Skip to content

Commit

Permalink
build(deps): Update Infection (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Nov 3, 2024
1 parent 706e960 commit 50f9158
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
"ergebnis/composer-normalize": "^2.28",
"infection/infection": "^0.26",
"infection/infection": "^0.29",
"phpunit/phpunit": "^10.3"
},
"minimum-stability": "dev",
Expand Down
12 changes: 5 additions & 7 deletions src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,11 @@ private static function parseLine(

private static function isRule(string $line, bool $previousMultiline): bool
{
return (!str_starts_with($line, '#')
&& !str_starts_with($line, "\t")
&& 0 === preg_match('/\S+=.+/', $line)
)
|| (
$previousMultiline && (str_starts_with($line, "\t") || str_starts_with($line, ' '))
);
return (
!str_starts_with($line, '#')
&& !str_starts_with($line, "\t")
&& 0 === preg_match('/\S+=.+/', $line)
) || $previousMultiline;
}

/**
Expand Down

0 comments on commit 50f9158

Please sign in to comment.