Merge pull request #23 from php-etl/fix/file-used-in-extractor #110
Annotations
10 warnings
src/Configuration/Extractor.php#L50
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
{
$builder = new TreeBuilder('extractor');
/* @phpstan-ignore-next-line */
- $builder->getRootNode()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->end();
+ $builder->getRootNode()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null === $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->end();
return $builder;
}
}
|
src/Configuration/Extractor.php#L50
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
{
$builder = new TreeBuilder('extractor');
/* @phpstan-ignore-next-line */
- $builder->getRootNode()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->end();
+ $builder->getRootNode()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && \is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->end();
return $builder;
}
}
|
src/Configuration/Extractor.php#L50
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
$builder = new TreeBuilder('extractor');
/* @phpstan-ignore-next-line */
- $builder->getRootNode()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->end();
+ $builder->getRootNode()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value || !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->end();
return $builder;
}
}
|
src/Configuration/Extractor.php#L54
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
{
$builder = new TreeBuilder('extractor');
/* @phpstan-ignore-next-line */
- $builder->getRootNode()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->end();
+ $builder->getRootNode()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null !== $value)->thenInvalid('Value cannot be null')->end()->end()->end();
return $builder;
}
}
|
src/Configuration/Loader.php#L35
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
$builder = new TreeBuilder('loader');
/* @phpstan-ignore-next-line */
- $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(1)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
+ $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(0)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
return $builder;
}
}
|
src/Configuration/Loader.php#L35
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
$builder = new TreeBuilder('loader');
/* @phpstan-ignore-next-line */
- $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(1)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
+ $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(2)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
return $builder;
}
}
|
src/Configuration/Loader.php#L62
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
{
$builder = new TreeBuilder('loader');
/* @phpstan-ignore-next-line */
- $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(1)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
+ $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(1)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null === $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
return $builder;
}
}
|
src/Configuration/Loader.php#L62
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
{
$builder = new TreeBuilder('loader');
/* @phpstan-ignore-next-line */
- $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(1)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
+ $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(1)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && \is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
return $builder;
}
}
|
src/Configuration/Loader.php#L62
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
$builder = new TreeBuilder('loader');
/* @phpstan-ignore-next-line */
- $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(1)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
+ $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(1)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value || !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
return $builder;
}
}
|
src/Configuration/Loader.php#L66
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
{
$builder = new TreeBuilder('loader');
/* @phpstan-ignore-next-line */
- $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(1)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null === $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
+ $builder->getRootNode()->beforeNormalization()->always(mutuallyExclusiveFields('nonstandard', 'enclosure'))->always(mutuallyExclusiveFields('nonstandard', 'escape'))->end()->children()->scalarNode('file_path')->isRequired()->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->integerNode('max_lines')->min(1)->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('delimiter')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('enclosure')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->scalarNode('escape')->validate()->ifTrue(isExpression())->then(asExpression())->end()->end()->booleanNode('safe_mode')->end()->variableNode('columns')->validate()->ifTrue(fn($value) => null !== $value && !\is_array($value))->thenInvalid('Value should be an array')->end()->validate()->ifTrue(fn($value) => null !== $value)->thenInvalid('Value cannot be null')->end()->end()->booleanNode('nonstandard')->end()->end();
return $builder;
}
}
|
The logs for this run have expired and are no longer available.
Loading