Updated the pipeline runner used for tests + ran php-cs-fixer #30
Annotations
10 warnings
infection:
src/FingersCrossed/Extractor.php#L31
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function extract() : iterable
{
try {
- $this->cleanBom();
+
if ($this->file->eof()) {
return;
}
|
infection:
src/FingersCrossed/Extractor.php#L44
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
} else {
$columns = $this->columns;
}
- $columnCount = null === $columns ? 0 : \count($columns);
+ $columnCount = null === $columns ? -1 : \count($columns);
while (!$this->file->eof()) {
try {
$line = $this->file->fgetcsv();
|
infection:
src/FingersCrossed/Extractor.php#L44
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
} else {
$columns = $this->columns;
}
- $columnCount = null === $columns ? 0 : \count($columns);
+ $columnCount = null === $columns ? 1 : \count($columns);
while (!$this->file->eof()) {
try {
$line = $this->file->fgetcsv();
|
infection:
src/FingersCrossed/Extractor.php#L49
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
while (!$this->file->eof()) {
try {
$line = $this->file->fgetcsv();
- if (false === $line) {
+ if (true === $line) {
continue;
}
$cellCount = \count((array) $line);
|
infection:
src/FingersCrossed/Extractor.php#L52
Escaped Mutant for Mutator "CastArray":
--- Original
+++ New
@@ @@
if (false === $line) {
continue;
}
- $cellCount = \count((array) $line);
+ $cellCount = \count($line);
if ($cellCount > $columnCount) {
$line = \array_slice($line, 0, $columnCount, true);
} elseif ($cellCount > $columnCount) {
|
infection:
src/FingersCrossed/Extractor.php#L54
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
continue;
}
$cellCount = \count((array) $line);
- if ($cellCount > $columnCount) {
+ if ($cellCount >= $columnCount) {
$line = \array_slice($line, 0, $columnCount, true);
} elseif ($cellCount > $columnCount) {
$line = array_pad($line, $columnCount - $cellCount, null);
|
infection:
src/FingersCrossed/Extractor.php#L54
Escaped Mutant for Mutator "GreaterThanNegotiation":
--- Original
+++ New
@@ @@
continue;
}
$cellCount = \count((array) $line);
- if ($cellCount > $columnCount) {
+ if ($cellCount <= $columnCount) {
$line = \array_slice($line, 0, $columnCount, true);
} elseif ($cellCount > $columnCount) {
$line = array_pad($line, $columnCount - $cellCount, null);
|
infection:
src/FingersCrossed/Extractor.php#L56
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
$cellCount = \count((array) $line);
if ($cellCount > $columnCount) {
$line = \array_slice($line, 0, $columnCount, true);
- } elseif ($cellCount > $columnCount) {
+ } elseif ($cellCount >= $columnCount) {
$line = array_pad($line, $columnCount - $cellCount, null);
}
$result = array_combine($columns, $line);
|
infection:
src/FingersCrossed/Extractor.php#L56
Escaped Mutant for Mutator "GreaterThanNegotiation":
--- Original
+++ New
@@ @@
$cellCount = \count((array) $line);
if ($cellCount > $columnCount) {
$line = \array_slice($line, 0, $columnCount, true);
- } elseif ($cellCount > $columnCount) {
+ } elseif ($cellCount <= $columnCount) {
$line = array_pad($line, $columnCount - $cellCount, null);
}
$result = array_combine($columns, $line);
|
infection:
src/FingersCrossed/Extractor.php#L75
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
$this->logger->emergency($exception->getMessage(), ['exception' => $exception]);
}
}
- public function cleanBom() : void
+ protected function cleanBom() : void
{
$bom = $this->file->fread(3);
if (!preg_match('/^\\xEF\\xBB\\xBF$/', $bom)) {
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
artifact
Expired
|
29.2 KB |
|