Skip to content

Commit

Permalink
cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
JoMessina committed Jun 18, 2024
1 parent b11c4df commit d148cfd
Show file tree
Hide file tree
Showing 57 changed files with 133 additions and 133 deletions.
4 changes: 2 additions & 2 deletions src/Action/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __invoke(array $config, ActionBuilder $action, RepositoryInterfa
$logger = $compiled->getBuilder()->getNode();
} else {
$logger = new Node\Expr\New_(
new Node\Name\FullyQualified('Psr\\Log\\NullLogger'),
new Node\Name\FullyQualified('Psr\Log\NullLogger'),
);
}

Expand All @@ -45,7 +45,7 @@ public function __invoke(array $config, ActionBuilder $action, RepositoryInterfa
$state = $compiled->getBuilder()->getNode();
} else {
$state = new Node\Expr\New_(
new Node\Name\FullyQualified('Kiboko\\Contract\\Action\\NullState'),
new Node\Name\FullyQualified('Kiboko\Contract\Action\NullState'),
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Action/Custom/Factory/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function compile(array $config): Repository\Action

$builder = new Custom\Builder\Action(
compileValueWhenExpression($this->interpreter, $config['use']),
sprintf('GyroscopsGenerated\\%s', $containerName),
sprintf('GyroscopsGenerated\%s', $containerName),
);

$container = (new SatelliteDependencyInjection(...$this->providers))($config);
Expand Down
2 changes: 1 addition & 1 deletion src/Action/SFTP/Builder/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function withState(Node\Expr $state): self
public function getNode(): Node
{
return new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Action\\Flow\\SFTP\\UploadFile'),
class: new Node\Name\FullyQualified('Kiboko\Component\Action\Flow\SFTP\UploadFile'),
args: [
new Node\Arg(
value: $this->host,
Expand Down
4 changes: 2 additions & 2 deletions src/Adapter/FactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

trigger_deprecation('php-etl/satellite', '0.4', 'The "%s" interface is deprecated, use "%s" instead.', 'Kiboko\\Component\\Satellite\\Adapter\\FactoryInterface', Kiboko\Contract\Configurator\Adapter\FactoryInterface::class);
trigger_deprecation('php-etl/satellite', '0.4', 'The "%s" interface is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Adapter\FactoryInterface', Kiboko\Contract\Configurator\Adapter\FactoryInterface::class);

/*
* @deprecated since Satellite 0.4, use Kiboko\Contract\Configurator\Adapter\FactoryInterface instead.
*/
class_alias(Kiboko\Contract\Configurator\Adapter\FactoryInterface::class, 'Kiboko\\Component\\Satellite\\Adapter\\FactoryInterface');
class_alias(Kiboko\Contract\Configurator\Adapter\FactoryInterface::class, 'Kiboko\Component\Satellite\Adapter\FactoryInterface');
8 changes: 4 additions & 4 deletions src/Builder/API/APIRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ final class APIRuntime
public function getNode(): Node\Expr
{
return new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\API\\APIRuntime'),
class: new Node\Name\FullyQualified('Kiboko\Component\Runtime\API\APIRuntime'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\Pipeline'),
class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\Pipeline'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\PipelineRunner'),
class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\PipelineRunner'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Psr\\Log\\NullLogger')
class: new Node\Name\FullyQualified('Psr\Log\NullLogger')
)
),
]
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/API/PipelineBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function getNode(): Node\Expr
'params' => [
new Node\Param(
var: new Node\Expr\Variable('runtime'),
type: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Hook\\HookRuntimeInterface'),
type: new Node\Name\FullyQualified('Kiboko\Component\Runtime\Hook\HookRuntimeInterface'),
),
],
'stmts' => [
Expand Down
8 changes: 4 additions & 4 deletions src/Builder/Hook/HookRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ final class HookRuntime
public function getNode(): Node\Expr
{
return new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Hook\\HookRuntime'),
class: new Node\Name\FullyQualified('Kiboko\Component\Runtime\Hook\HookRuntime'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\Pipeline'),
class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\Pipeline'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\PipelineRunner'),
class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\PipelineRunner'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Psr\\Log\\NullLogger')
class: new Node\Name\FullyQualified('Psr\Log\NullLogger')
)
),
]
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/Hook/PipelineBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function getNode(): Node\Expr
'params' => [
new Node\Param(
var: new Node\Expr\Variable('runtime'),
type: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Hook\\HookRuntimeInterface'),
type: new Node\Name\FullyQualified('Kiboko\Component\Runtime\Hook\HookRuntimeInterface'),
),
],
'stmts' => [
Expand Down
10 changes: 5 additions & 5 deletions src/Builder/Pipeline/ConsoleRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ final class ConsoleRuntime implements Builder
public function getNode(): Node\Expr
{
return new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Pipeline\\Console'),
class: new Node\Name\FullyQualified('Kiboko\Component\Runtime\Pipeline\Console'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Symfony\\Component\\Console\\Output\\ConsoleOutput'),
class: new Node\Name\FullyQualified('Symfony\Component\Console\Output\ConsoleOutput'),
)
),
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\Pipeline'),
class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\Pipeline'),
args: [
new Node\Arg(
new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\PipelineRunner'),
class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\PipelineRunner'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Psr\\Log\\NullLogger'),
class: new Node\Name\FullyQualified('Psr\Log\NullLogger'),
)
),
],
Expand Down
8 changes: 4 additions & 4 deletions src/Builder/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function addPipeline(string $code, string $pipelineFilename): self
args: [
new Node\Arg(
new Node\Expr\StaticCall(
new Node\Name\FullyQualified('Kiboko\\Component\\Workflow\\JobCode'),
new Node\Name\FullyQualified('Kiboko\Component\Workflow\JobCode'),
new Node\Identifier('fromString'),
[
new Node\Arg(new Node\Scalar\String_($code)),
Expand All @@ -38,7 +38,7 @@ public function addPipeline(string $code, string $pipelineFilename): self
args: [
new Node\Arg(
new Node\Expr\StaticCall(
new Node\Name\FullyQualified('Kiboko\\Component\\Workflow\\JobCode'),
new Node\Name\FullyQualified('Kiboko\Component\Workflow\JobCode'),
new Node\Identifier('fromString'),
[
new Node\Arg(new Node\Scalar\String_($code)),
Expand Down Expand Up @@ -73,7 +73,7 @@ public function addAction(string $code, string $pipelineFilename): self
args: [
new Node\Arg(
new Node\Expr\StaticCall(
new Node\Name\FullyQualified('Kiboko\\Component\\Workflow\\JobCode'),
new Node\Name\FullyQualified('Kiboko\Component\Workflow\JobCode'),
new Node\Identifier('fromString'),
[
new Node\Arg(new Node\Scalar\String_($code)),
Expand All @@ -87,7 +87,7 @@ public function addAction(string $code, string $pipelineFilename): self
args: [
new Node\Arg(
new Node\Expr\StaticCall(
new Node\Name\FullyQualified('Kiboko\\Component\\Workflow\\JobCode'),
new Node\Name\FullyQualified('Kiboko\Component\Workflow\JobCode'),
new Node\Identifier('fromString'),
[
new Node\Arg(new Node\Scalar\String_($code)),
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/Workflow/ActionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function getNode(): Node\Expr
'params' => [
new Node\Param(
var: new Node\Expr\Variable('runtime'),
type: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Action\\ActionRuntimeInterface'),
type: new Node\Name\FullyQualified('Kiboko\Component\Runtime\Action\ActionRuntimeInterface'),
),
],
'stmts' => [
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/Workflow/PipelineBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function getNode(): Node\Expr
'params' => [
new Node\Param(
var: new Node\Expr\Variable('runtime'),
type: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Pipeline\\PipelineRuntimeInterface'),
type: new Node\Name\FullyQualified('Kiboko\Component\Runtime\Pipeline\PipelineRuntimeInterface'),
),
],
'stmts' => [
Expand Down
8 changes: 4 additions & 4 deletions src/Builder/Workflow/WorkflowRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ final class WorkflowRuntime implements Builder
public function getNode(): Node\Expr
{
return new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Workflow\\Console'),
class: new Node\Name\FullyQualified('Kiboko\Component\Runtime\Workflow\Console'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Symfony\\Component\\Console\\Output\\ConsoleOutput'),
class: new Node\Name\FullyQualified('Symfony\Component\Console\Output\ConsoleOutput'),
)
),
new Node\Arg(
new Node\Expr\New_(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\PipelineRunner'),
class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\PipelineRunner'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Psr\\Log\\NullLogger'),
class: new Node\Name\FullyQualified('Psr\Log\NullLogger'),
)
),
],
Expand Down
2 changes: 1 addition & 1 deletion src/Feature/Logger/Builder/LogstashFormatterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(private string $applicationName)
public function getNode(): Node\Expr
{
return new Node\Expr\New_(
class: new Node\Name\FullyQualified('Monolog\\Formatter\\LogstashFormatter'),
class: new Node\Name\FullyQualified('Monolog\Formatter\LogstashFormatter'),
args: [
new Node\Arg(
value: new Node\Scalar\String_($this->applicationName),
Expand Down
4 changes: 2 additions & 2 deletions src/Feature/Logger/Builder/Monolog/ElasticSearchBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getNode(): Node\Expr
value: new Node\Expr\MethodCall(
var: new Node\Expr\MethodCall(
var: new Node\Expr\StaticCall(
class: new Node\Name\FullyQualified('Elasticsearch\\ClientBuilder'),
class: new Node\Name\FullyQualified('Elasticsearch\ClientBuilder'),
name: new Node\Identifier('create'),
),
name: new Node\Identifier('setHosts'),
Expand Down Expand Up @@ -98,7 +98,7 @@ class: new Node\Name\FullyQualified('Elasticsearch\\ClientBuilder'),
}

$instance = new Node\Expr\New_(
class: new Node\Name\FullyQualified('Monolog\\Handler\\ElasticsearchHandler'),
class: new Node\Name\FullyQualified('Monolog\Handler\ElasticsearchHandler'),
args: $arguments,
);

Expand Down
8 changes: 4 additions & 4 deletions src/Feature/Logger/Builder/Monolog/GelfBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getNode(): Node\Expr
if (null !== $this->level) {
$arguments[] = new Node\Arg(
value: new Node\Expr\New_(
class: new Node\Name\FullyQualified('Gelf\\Publisher'),
class: new Node\Name\FullyQualified('Gelf\Publisher'),
args: [
new Node\Arg(
value: $this->buildTransport(),
Expand All @@ -81,7 +81,7 @@ class: new Node\Name\FullyQualified('Gelf\\Publisher'),
}

$instance = new Node\Expr\New_(
class: new Node\Name\FullyQualified('Monolog\\Handler\\GelfHandler'),
class: new Node\Name\FullyQualified('Monolog\Handler\GelfHandler'),
args: $arguments,
);

Expand Down Expand Up @@ -126,7 +126,7 @@ private function buildTCPTransport(): Node\Expr
}

return new Node\Expr\New_(
class: new Node\Name\FullyQualified('Gelf\\Transport\\TcpTransport'),
class: new Node\Name\FullyQualified('Gelf\Transport\TcpTransport'),
args: $arguments,
);
}
Expand Down Expand Up @@ -202,7 +202,7 @@ class: new Node\Name\FullyQualified('AMQPConnection'),

new Node\Stmt\Return_(
new Node\Expr\New_(
class: new Node\Name\FullyQualified('Gelf\\Transport\\AmqpTransport'),
class: new Node\Name\FullyQualified('Gelf\Transport\AmqpTransport'),
args: [
new Node\Arg(
value: new Node\Expr\New_(
Expand Down
2 changes: 1 addition & 1 deletion src/Feature/Logger/Builder/Monolog/StreamBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getNode(): Node\Expr
}

$instance = new Node\Expr\New_(
class: new Node\Name\FullyQualified('Monolog\\Handler\\StreamHandler'),
class: new Node\Name\FullyQualified('Monolog\Handler\StreamHandler'),
args: $arguments,
);

Expand Down
2 changes: 1 addition & 1 deletion src/Feature/Logger/Builder/Monolog/SyslogBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getNode(): Node\Expr
}

$instance = new Node\Expr\New_(
class: new Node\Name\FullyQualified('Monolog\\Handler\\SyslogHandler'),
class: new Node\Name\FullyQualified('Monolog\Handler\SyslogHandler'),
args: $arguments,
);

Expand Down
2 changes: 1 addition & 1 deletion src/Feature/Logger/Builder/Monolog/TestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public function getNode(): Node\Expr
{
return new Node\Expr\New_(
class: new Node\Name\FullyQualified('Monolog\\Handler\\TestHandler'),
class: new Node\Name\FullyQualified('Monolog\Handler\TestHandler'),
);
}
}
6 changes: 3 additions & 3 deletions src/Feature/Logger/Builder/MonologLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function withProcessors(Node\Expr ...$processors): self
public function getNode(): Node\Expr
{
$instance = new Node\Expr\New_(
class: new Node\Name\FullyQualified('Monolog\\Logger'),
class: new Node\Name\FullyQualified('Monolog\Logger'),
args: [
new Node\Arg(
new Node\Scalar\String_($this->channel)
Expand Down Expand Up @@ -62,7 +62,7 @@ class: new Node\Name\FullyQualified('Monolog\\Logger'),
args: [
new Node\Arg(
new Node\Expr\New_(
class: new Node\Name\FullyQualified('Monolog\\Processor\\PsrLogMessageProcessor')
class: new Node\Name\FullyQualified('Monolog\Processor\PsrLogMessageProcessor')
)
),
],
Expand All @@ -74,7 +74,7 @@ class: new Node\Name\FullyQualified('Monolog\\Processor\\PsrLogMessageProcessor'
args: [
new Node\Arg(
new Node\Expr\New_(
class: new Node\Name\FullyQualified('Monolog\\Processor\\MemoryUsageProcessor')
class: new Node\Name\FullyQualified('Monolog\Processor\MemoryUsageProcessor')
)
),
],
Expand Down
4 changes: 2 additions & 2 deletions src/Feature/Rejection/Builder/RabbitMQBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ public function getNode(): Node\Expr
);

return new Node\Expr\StaticCall(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Flow\\RabbitMQ\\Rejection'),
class: new Node\Name\FullyQualified('Kiboko\Component\Flow\RabbitMQ\Rejection'),
name: new Identifier('withAuthentication'),
args: $args,
);
}

return new Node\Expr\StaticCall(
class: new Node\Name\FullyQualified('Kiboko\\Component\\Flow\\RabbitMQ\\Rejection'),
class: new Node\Name\FullyQualified('Kiboko\Component\Flow\RabbitMQ\Rejection'),
name: new Identifier('withoutAuthentication'),
args: $args,
);
Expand Down
2 changes: 1 addition & 1 deletion src/Feature/Rejection/Builder/Rejection.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function withRejection(Node\Expr $rejection): void
private static function nullRejection(): Node\Expr
{
return new Node\Expr\New_(
new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\NullRejection')
new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\NullRejection')
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Filesystem/Asset/InMemory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Kiboko\Component\Packaging;

trigger_deprecation('php-etl/satellite', '0.1', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\\Component\\Satellite\\Filesystem\\Asset\\InMemory', Packaging\Asset\InMemory::class);
trigger_deprecation('php-etl/satellite', '0.1', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\Asset\InMemory', Packaging\Asset\InMemory::class);

/*
* @deprecated since Satellite 0.1, use Kiboko\Component\Packaging\Asset\InMemory instead.
*/
class_alias(Packaging\Asset\InMemory::class, 'Kiboko\\Component\\Satellite\\Filesystem\\Asset\\InMemory');
class_alias(Packaging\Asset\InMemory::class, 'Kiboko\Component\Satellite\Filesystem\Asset\InMemory');
Loading

0 comments on commit d148cfd

Please sign in to comment.