chore(deps): update jetbrains/qodana-action action to v2023.2.8 #562
Annotations
1 error and 7 warnings
|
src/Parser/MarkdownParser.php#L45
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
$sampleCode = [];
$chunks = preg_split(self::PATTERN, $file->getContents(), -1, PREG_SPLIT_DELIM_CAPTURE);
- $startPosition = 0;
+ $startPosition = -1;
$endPosition = 0;
foreach ($chunks as $documentChunk) {
$lines = explode("\n", $documentChunk);
|
src/Parser/MarkdownParser.php#L52
Escaped Mutant for Mutator "PregMatchRemoveCaret":
--- Original
+++ New
@@ @@
foreach ($chunks as $documentChunk) {
$lines = explode("\n", $documentChunk);
$endPosition += count($lines);
- preg_match('/^```/', $lines[0] ?? '', $matches);
+ preg_match('/```/', $lines[0] ?? '', $matches);
if ($matches === []) {
$startPosition = $endPosition;
continue;
|
src/Validator/PhpValidator.php#L24
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
private PhpParser $phpParser;
public function __construct(PhpParser|null $phpParser = null)
{
- $this->phpParser = $phpParser ?? (new ParserFactory())->create(ParserFactory::PREFER_PHP7);
+ $this->phpParser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7) ?? $phpParser;
}
public function supports(SampleCode $sampleCode) : bool
{
|
src/Validator/PhpValidator.php#L64
Escaped Mutant for Mutator "PregMatchRemoveFlags":
--- Original
+++ New
@@ @@
}
private function ensureCodePrefix(string $code) : string
{
- if (!preg_match('/<\\?(=|php)/i', $code)) {
+ if (!preg_match('/<\\?(=|php)/', $code)) {
return '<?php ' . PHP_EOL . $code;
}
return $code;
}
}
|
src/Validator/PhpValidator.php#L65
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
private function ensureCodePrefix(string $code) : string
{
if (!preg_match('/<\\?(=|php)/i', $code)) {
- return '<?php ' . PHP_EOL . $code;
+ return PHP_EOL . '<?php ' . $code;
}
return $code;
}
}
|
src/Validator/PhpValidator.php#L65
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
private function ensureCodePrefix(string $code) : string
{
if (!preg_match('/<\\?(=|php)/i', $code)) {
- return '<?php ' . PHP_EOL . $code;
+ return '<?php ' . $code;
}
return $code;
}
}
|
src/Validator/PhpValidator.php#L65
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
private function ensureCodePrefix(string $code) : string
{
if (!preg_match('/<\\?(=|php)/i', $code)) {
- return '<?php ' . PHP_EOL . $code;
+ return '<?php ' . $code . PHP_EOL;
}
return $code;
}
}
|
The logs for this run have expired and are no longer available.
Loading