Merge pull request #56 from php-etl/feature/reference-entities-extractor #285
Annotations
11 warnings
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
src/Builder/AlternativeLookup.php#L30
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
public function getNode() : Node
{
- return (new IsolatedFuncCallAppendingBuilder(new Node\Expr\Variable('input'), array_filter([$this->capacity->getNode(), $this->merge?->getNode(), new Node\Stmt\Expression(expr: new Node\Expr\MethodCall(var: new Node\Expr\Variable('bucket'), name: new Node\Name('accept'), args: [new Node\Arg(value: new Node\Expr\Variable('output'))]))]), new Node\Expr\Variable('bucket')))->getNode();
+ return (new IsolatedFuncCallAppendingBuilder(new Node\Expr\Variable('input'), array_filter([$this->merge?->getNode(), new Node\Stmt\Expression(expr: new Node\Expr\MethodCall(var: new Node\Expr\Variable('bucket'), name: new Node\Name('accept'), args: [new Node\Arg(value: new Node\Expr\Variable('output'))]))]), new Node\Expr\Variable('bucket')))->getNode();
}
}
|
src/Builder/Capacity/Extractor/All.php#L111
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
private function compileArguments() : array
{
$args = [];
- if (null !== $this->search) {
+ if (null === $this->search) {
$args[] = new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters'));
}
if (null !== $this->code) {
|
src/Builder/Capacity/Extractor/All.php#L144
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
if (null !== $this->referenceEntity) {
$args[] = new Node\Arg(value: $this->referenceEntityAttributeCode, name: new Node\Identifier('attributeCode'));
}
- return $args;
+ return count($args) > 1 ? array_slice($args, 0, 1, true) : $args;
}
}
|
src/Builder/Capacity/Extractor/Get.php#L53
Escaped Mutant for Mutator "UnwrapArrayFilter":
--- Original
+++ New
@@ @@
if (null === $this->endpoint) {
throw new MissingEndpointException(message: 'Please check your capacity builder, you should have selected an endpoint.');
}
- return new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(value: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('get'), args: array_filter([new Node\Arg(value: $this->identifier, name: new Node\Identifier('code'))])), unpack: true)])));
+ return new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(value: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('get'), args: [new Node\Arg(value: $this->identifier, name: new Node\Identifier('code'))]), unpack: true)])));
}
}
|
src/Builder/Capacity/Extractor/ListPerPage.php#L57
Escaped Mutant for Mutator "UnwrapArrayFilter":
--- Original
+++ New
@@ @@
if (null === $this->endpoint) {
throw new MissingEndpointException(message: 'Please check your capacity builder, you should have selected an endpoint.');
}
- return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => [new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(new Node\Expr\Variable('item'))])))]]);
+ return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: [new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null]), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => [new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(new Node\Expr\Variable('item'))])))]]);
}
private function compileSearch() : array
{
|
src/Builder/Capacity/Extractor/ListPerPage.php#L58
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (null === $this->endpoint) {
throw new MissingEndpointException(message: 'Please check your capacity builder, you should have selected an endpoint.');
}
- return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => [new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(new Node\Expr\Variable('item'))])))]]);
+ return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => [new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(new Node\Expr\Variable('item'))])))]]);
}
private function compileSearch() : array
{
|
src/Builder/Capacity/Extractor/ListPerPage.php#L62
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (null === $this->endpoint) {
throw new MissingEndpointException(message: 'Please check your capacity builder, you should have selected an endpoint.');
}
- return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => [new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(new Node\Expr\Variable('item'))])))]]);
+ return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: []), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => [new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(new Node\Expr\Variable('item'))])))]]);
}
private function compileSearch() : array
{
|
src/Builder/Capacity/Extractor/ListPerPage.php#L76
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (null === $this->endpoint) {
throw new MissingEndpointException(message: 'Please check your capacity builder, you should have selected an endpoint.');
}
- return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => [new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(new Node\Expr\Variable('item'))])))]]);
+ return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: []);
}
private function compileSearch() : array
{
|
src/Builder/Capacity/Extractor/ListPerPage.php#L77
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (null === $this->endpoint) {
throw new MissingEndpointException(message: 'Please check your capacity builder, you should have selected an endpoint.');
}
- return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => [new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(new Node\Expr\Variable('item'))])))]]);
+ return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => []]);
}
private function compileSearch() : array
{
|
src/Builder/Capacity/Extractor/ListPerPage.php#L82
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (null === $this->endpoint) {
throw new MissingEndpointException(message: 'Please check your capacity builder, you should have selected an endpoint.');
}
- return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => [new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [new Node\Arg(new Node\Expr\Variable('item'))])))]]);
+ return new Node\Stmt\Foreach_(expr: new Node\Expr\MethodCall(var: new Node\Expr\MethodCall(var: new Node\Expr\PropertyFetch(var: new Node\Expr\Variable('this'), name: new Node\Identifier('client')), name: $this->endpoint), name: new Node\Identifier('listPerPage'), args: array_filter([new Node\Arg(value: new Node\Expr\Array_(items: $this->compileSearch(), attributes: ['kind' => Node\Expr\Array_::KIND_SHORT]), name: new Node\Identifier('queryParameters')), null !== $this->code ? new Node\Arg(value: $this->code, name: new Node\Identifier('attributeCode')) : null])), valueVar: new Node\Expr\Variable('item'), subNodes: ['stmts' => [new Node\Stmt\Expression(expr: new Node\Expr\Yield_(value: new Node\Expr\New_(class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class), args: [])))]]);
}
private function compileSearch() : array
{
|
The logs for this run have expired and are no longer available.
Loading