Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 11, 2023
1 parent d543d9f commit 6465a63
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/Builder/Capacity/Extractor/ListPerPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getNode(): Node
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: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class),
args: [
new Node\Arg(
new Node\Expr\Variable('item')
Expand Down
4 changes: 2 additions & 2 deletions src/Builder/Capacity/Loader/Upsert.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function getNode(): Node
var: new Node\Expr\Variable('line'),
expr: new Node\Expr\Yield_(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified(name: 'Kiboko\\Component\\Bucket\\AcceptanceResultBucket'),
class: new Node\Name\FullyQualified(name: \Kiboko\Component\Bucket\AcceptanceResultBucket::class),
args: [
new Node\Arg(
value: new Node\Expr\Variable('line'),
Expand All @@ -109,7 +109,7 @@ class: new Node\Name\FullyQualified(name: 'Kiboko\\Component\\Bucket\\Acceptance
new Node\Stmt\Catch_(
types: [
new Node\Name\FullyQualified(
name: 'Akeneo\\Pim\\ApiClient\\Exception\\HttpException',
name: \Akeneo\Pim\ApiClient\Exception\HttpException::class,
),
],
var: new Node\Expr\Variable('exception'),
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/Capacity/Lookup/All.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function getNode(): Node
catches: [
new Node\Stmt\Catch_(
types: [
new Node\Name\FullyQualified('Akeneo\Pim\ApiClient\Exception\HttpException'),
new Node\Name\FullyQualified(\Akeneo\Pim\ApiClient\Exception\HttpException::class),
],
var: new Node\Expr\Variable('exception'),
stmts: [
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/Capacity/Lookup/ListPerPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function getNode(): Node
catches: [
new Node\Stmt\Catch_(
types: [
new Node\Name\FullyQualified('Akeneo\Pim\ApiClient\Exception\HttpException'),
new Node\Name\FullyQualified(\Akeneo\Pim\ApiClient\Exception\HttpException::class),
],
var: new Node\Expr\Variable('exception'),
stmts: [
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function withFileSystem(Node\Expr $fileSystem): self
public function getNode(): Node\Expr\MethodCall
{
$instance = new Node\Expr\New_(
new Node\Name\FullyQualified('Akeneo\\Pim\\ApiClient\\AkeneoPimClientBuilder'),
new Node\Name\FullyQualified(\Akeneo\Pim\ApiClient\AkeneoPimClientBuilder::class),
[
new Node\Arg($this->baseUrl),
],
Expand Down
10 changes: 5 additions & 5 deletions src/Builder/ConditionalLookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function compileAllAlternatives(): Node
expr: new Node\Expr\Assign(
var: new Node\Expr\Variable('bucket'),
expr: new Node\Expr\New_(
new Node\Name\FullyQualified('Kiboko\Component\Bucket\ComplexResultBucket')
new Node\Name\FullyQualified(\Kiboko\Component\Bucket\ComplexResultBucket::class)
)
)
),
Expand Down Expand Up @@ -126,7 +126,7 @@ class: new Node\Stmt\Class_(
name: null,
subNodes: [
'implements' => [
new Node\Name\FullyQualified(name: 'Kiboko\\Contract\\Pipeline\\TransformerInterface'),
new Node\Name\FullyQualified(name: \Kiboko\Contract\Pipeline\TransformerInterface::class),
],
'stmts' => [
new Node\Stmt\ClassMethod(
Expand All @@ -136,12 +136,12 @@ class: new Node\Stmt\Class_(
'params' => [
new Node\Param(
var: new Node\Expr\Variable('client'),
type: new Node\Name\FullyQualified(name: 'Akeneo\\Pim\\ApiClient\\AkeneoPimClientInterface'),
type: new Node\Name\FullyQualified(name: \Akeneo\Pim\ApiClient\AkeneoPimClientInterface::class),
flags: Node\Stmt\Class_::MODIFIER_PUBLIC,
),
new Node\Param(
var: new Node\Expr\Variable('logger'),
type: new Node\Name\FullyQualified(name: 'Psr\\Log\\LoggerInterface'),
type: new Node\Name\FullyQualified(name: \Psr\Log\LoggerInterface::class),
flags: Node\Stmt\Class_::MODIFIER_PUBLIC,
),
],
Expand Down Expand Up @@ -170,7 +170,7 @@ class: new Node\Stmt\Class_(
),
args: [
new Node\Arg(value: $this->client),
new Node\Arg(value: $this->logger ?? new Node\Expr\New_(new Node\Name\FullyQualified('Psr\\Log\\NullLogger'))),
new Node\Arg(value: $this->logger ?? new Node\Expr\New_(new Node\Name\FullyQualified(\Psr\Log\NullLogger::class))),
],
);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Builder/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class: new Node\Stmt\Class_(
name: null,
subNodes: [
'implements' => [
new Node\Name\FullyQualified(name: 'Kiboko\\Contract\\Pipeline\\ExtractorInterface'),
new Node\Name\FullyQualified(name: \Kiboko\Contract\Pipeline\ExtractorInterface::class),
],
'stmts' => [
new Node\Stmt\ClassMethod(
Expand All @@ -59,12 +59,12 @@ class: new Node\Stmt\Class_(
'params' => [
new Node\Param(
var: new Node\Expr\Variable('client'),
type: new Node\Name\FullyQualified(name: 'Akeneo\\Pim\\ApiClient\\AkeneoPimClientInterface'),
type: new Node\Name\FullyQualified(name: \Akeneo\Pim\ApiClient\AkeneoPimClientInterface::class),
flags: Node\Stmt\Class_::MODIFIER_PUBLIC,
),
new Node\Param(
var: new Node\Expr\Variable('logger'),
type: new Node\Name\FullyQualified(name: 'Psr\\Log\\LoggerInterface'),
type: new Node\Name\FullyQualified(name: \Psr\Log\LoggerInterface::class),
flags: Node\Stmt\Class_::MODIFIER_PUBLIC,
),
],
Expand Down Expand Up @@ -215,7 +215,7 @@ class: new Node\Stmt\Class_(
),
args: [
new Node\Arg(value: $this->client),
new Node\Arg(value: $this->logger ?? new Node\Expr\New_(new Node\Name\FullyQualified('Psr\\Log\\NullLogger'))),
new Node\Arg(value: $this->logger ?? new Node\Expr\New_(new Node\Name\FullyQualified(\Psr\Log\NullLogger::class))),
],
);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Builder/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class: new Node\Stmt\Class_(
name: null,
subNodes: [
'implements' => [
new Node\Name\FullyQualified(name: 'Kiboko\\Contract\\Pipeline\\LoaderInterface'),
new Node\Name\FullyQualified(name: \Kiboko\Contract\Pipeline\LoaderInterface::class),
],
'stmts' => [
new Node\Stmt\ClassMethod(
Expand All @@ -59,12 +59,12 @@ class: new Node\Stmt\Class_(
'params' => [
new Node\Param(
var: new Node\Expr\Variable('client'),
type: new Node\Name\FullyQualified(name: 'Akeneo\\Pim\\ApiClient\\AkeneoPimClientInterface'),
type: new Node\Name\FullyQualified(name: \Akeneo\Pim\ApiClient\AkeneoPimClientInterface::class),
flags: Node\Stmt\Class_::MODIFIER_PUBLIC,
),
new Node\Param(
var: new Node\Expr\Variable('logger'),
type: new Node\Name\FullyQualified(name: 'Psr\\Log\\LoggerInterface'),
type: new Node\Name\FullyQualified(name: \Psr\Log\LoggerInterface::class),
flags: Node\Stmt\Class_::MODIFIER_PUBLIC,
),
],
Expand Down Expand Up @@ -136,7 +136,7 @@ class: new Node\Stmt\Class_(
),
args: [
new Node\Arg(value: $this->client),
new Node\Arg(value: $this->logger ?? new Node\Expr\New_(new Node\Name\FullyQualified('Psr\\Log\\NullLogger'))),
new Node\Arg(value: $this->logger ?? new Node\Expr\New_(new Node\Name\FullyQualified(\Psr\Log\NullLogger::class))),
],
);
}
Expand Down
10 changes: 5 additions & 5 deletions src/Builder/Lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class: new Node\Stmt\Class_(
name: null,
subNodes: [
'implements' => [
new Node\Name\FullyQualified(name: 'Kiboko\\Contract\\Pipeline\\TransformerInterface'),
new Node\Name\FullyQualified(name: \Kiboko\Contract\Pipeline\TransformerInterface::class),
],
'stmts' => [
new Node\Stmt\ClassMethod(
Expand All @@ -71,12 +71,12 @@ class: new Node\Stmt\Class_(
'params' => [
new Node\Param(
var: new Node\Expr\Variable('client'),
type: new Node\Name\FullyQualified(name: 'Akeneo\\Pim\\ApiClient\\AkeneoPimClientInterface'),
type: new Node\Name\FullyQualified(name: \Akeneo\Pim\ApiClient\AkeneoPimClientInterface::class),
flags: Node\Stmt\Class_::MODIFIER_PUBLIC,
),
new Node\Param(
var: new Node\Expr\Variable('logger'),
type: new Node\Name\FullyQualified(name: 'Psr\\Log\\LoggerInterface'),
type: new Node\Name\FullyQualified(name: \Psr\Log\LoggerInterface::class),
flags: Node\Stmt\Class_::MODIFIER_PUBLIC,
),
],
Expand Down Expand Up @@ -107,7 +107,7 @@ class: new Node\Stmt\Class_(
expr: new Node\Expr\Assign(
var: new Node\Expr\Variable('bucket'),
expr: new Node\Expr\New_(
new Node\Name\FullyQualified('Kiboko\Component\Bucket\ComplexResultBucket')
new Node\Name\FullyQualified(\Kiboko\Component\Bucket\ComplexResultBucket::class)
)
)
),
Expand All @@ -122,7 +122,7 @@ class: new Node\Stmt\Class_(
),
args: [
new Node\Arg(value: $this->client),
new Node\Arg(value: $this->logger ?? new Node\Expr\New_(new Node\Name\FullyQualified('Psr\\Log\\NullLogger'))),
new Node\Arg(value: $this->logger ?? new Node\Expr\New_(new Node\Name\FullyQualified(\Psr\Log\NullLogger::class))),
],
);
}
Expand Down

0 comments on commit 6465a63

Please sign in to comment.