diff --git a/composer.json b/composer.json index 50a4022..0f16135 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/Parser.php b/src/Parser.php index c67b2bd..464965d 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -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; } /**