From d148cfd8fb857e6de2f4ac8f0f3ec526cc4124e1 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 18 Jun 2024 16:50:54 +0200 Subject: [PATCH] cs-fixer --- src/Action/Action.php | 4 +-- src/Action/Custom/Factory/Action.php | 2 +- src/Action/SFTP/Builder/Action.php | 2 +- src/Adapter/FactoryInterface.php | 4 +-- src/Builder/API/APIRuntime.php | 8 +++--- src/Builder/API/PipelineBuilder.php | 2 +- src/Builder/Hook/HookRuntime.php | 8 +++--- src/Builder/Hook/PipelineBuilder.php | 2 +- src/Builder/Pipeline/ConsoleRuntime.php | 10 +++---- src/Builder/Workflow.php | 8 +++--- src/Builder/Workflow/ActionBuilder.php | 2 +- src/Builder/Workflow/PipelineBuilder.php | 2 +- src/Builder/Workflow/WorkflowRuntime.php | 8 +++--- .../Builder/LogstashFormatterBuilder.php | 2 +- .../Builder/Monolog/ElasticSearchBuilder.php | 4 +-- .../Logger/Builder/Monolog/GelfBuilder.php | 8 +++--- .../Logger/Builder/Monolog/StreamBuilder.php | 2 +- .../Logger/Builder/Monolog/SyslogBuilder.php | 2 +- .../Logger/Builder/Monolog/TestBuilder.php | 2 +- src/Feature/Logger/Builder/MonologLogger.php | 6 ++--- .../Rejection/Builder/RabbitMQBuilder.php | 4 +-- src/Feature/Rejection/Builder/Rejection.php | 2 +- src/Filesystem/Asset/InMemory.php | 4 +-- src/Filesystem/Asset/LocalFile.php | 4 +-- src/Filesystem/Asset/Resource.php | 4 +-- src/Filesystem/AssetInterface.php | 4 +-- src/Filesystem/Directory.php | 4 +-- src/Filesystem/DirectoryInterface.php | 4 +-- src/Filesystem/File.php | 4 +-- src/Filesystem/FileInterface.php | 4 +-- src/Filesystem/TarArchive.php | 4 +-- src/Filesystem/VirtualDirectory.php | 4 +-- src/Filesystem/VirtualFile.php | 4 +-- src/Pipeline/Extractor.php | 2 +- src/Pipeline/Loader.php | 6 ++--- src/Pipeline/Transformer.php | 6 ++--- src/Plugin/Batching/Builder/Fork.php | 4 +-- src/Plugin/Batching/Builder/Merge.php | 12 ++++----- src/Plugin/Custom/Factory/Extractor.php | 2 +- src/Plugin/Custom/Factory/Loader.php | 2 +- src/Plugin/Custom/Factory/Transformer.php | 2 +- src/Plugin/FTP/Builder/Loader.php | 4 +-- src/Plugin/Filtering/Builder/Drop.php | 6 ++--- src/Plugin/Filtering/Builder/Reject.php | 6 ++--- src/Plugin/SFTP/Builder/Extractor.php | 4 +-- src/Plugin/SFTP/Builder/Loader.php | 4 +-- src/Plugin/Stream/Builder/DebugLoader.php | 2 +- .../Stream/Builder/JSONStreamLoader.php | 2 +- src/Plugin/Stream/Builder/StderrLoader.php | 2 +- src/Plugin/Stream/Builder/StdoutLoader.php | 2 +- src/Runtime/Api/Runtime.php | 26 +++++++++---------- src/Runtime/Authorization.php | 4 +-- src/Runtime/HttpHook/Runtime.php | 18 ++++++------- src/Runtime/Pipeline/Runtime.php | 2 +- src/Runtime/Workflow/Runtime.php | 2 +- src/SatelliteBuilderInterface.php | 4 +-- src/SatelliteInterface.php | 4 +-- 57 files changed, 133 insertions(+), 133 deletions(-) diff --git a/src/Action/Action.php b/src/Action/Action.php index 14897c9c..1896093d 100644 --- a/src/Action/Action.php +++ b/src/Action/Action.php @@ -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'), ); } @@ -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'), ); } diff --git a/src/Action/Custom/Factory/Action.php b/src/Action/Custom/Factory/Action.php index eb70c1ec..97cf083c 100644 --- a/src/Action/Custom/Factory/Action.php +++ b/src/Action/Custom/Factory/Action.php @@ -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); diff --git a/src/Action/SFTP/Builder/Action.php b/src/Action/SFTP/Builder/Action.php index 89a9ad5b..ea0ca1b5 100644 --- a/src/Action/SFTP/Builder/Action.php +++ b/src/Action/SFTP/Builder/Action.php @@ -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, diff --git a/src/Adapter/FactoryInterface.php b/src/Adapter/FactoryInterface.php index 75554601..f0bd9a07 100644 --- a/src/Adapter/FactoryInterface.php +++ b/src/Adapter/FactoryInterface.php @@ -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'); diff --git a/src/Builder/API/APIRuntime.php b/src/Builder/API/APIRuntime.php index 84f36637..824392df 100644 --- a/src/Builder/API/APIRuntime.php +++ b/src/Builder/API/APIRuntime.php @@ -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') ) ), ] diff --git a/src/Builder/API/PipelineBuilder.php b/src/Builder/API/PipelineBuilder.php index 967d928a..66d43659 100644 --- a/src/Builder/API/PipelineBuilder.php +++ b/src/Builder/API/PipelineBuilder.php @@ -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' => [ diff --git a/src/Builder/Hook/HookRuntime.php b/src/Builder/Hook/HookRuntime.php index f9cce9fa..fff2d7bf 100644 --- a/src/Builder/Hook/HookRuntime.php +++ b/src/Builder/Hook/HookRuntime.php @@ -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') ) ), ] diff --git a/src/Builder/Hook/PipelineBuilder.php b/src/Builder/Hook/PipelineBuilder.php index 957659ef..88768417 100644 --- a/src/Builder/Hook/PipelineBuilder.php +++ b/src/Builder/Hook/PipelineBuilder.php @@ -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' => [ diff --git a/src/Builder/Pipeline/ConsoleRuntime.php b/src/Builder/Pipeline/ConsoleRuntime.php index 1c42e17f..62aae9c4 100644 --- a/src/Builder/Pipeline/ConsoleRuntime.php +++ b/src/Builder/Pipeline/ConsoleRuntime.php @@ -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'), ) ), ], diff --git a/src/Builder/Workflow.php b/src/Builder/Workflow.php index 478eb825..8107075c 100644 --- a/src/Builder/Workflow.php +++ b/src/Builder/Workflow.php @@ -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)), @@ -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)), @@ -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)), @@ -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)), diff --git a/src/Builder/Workflow/ActionBuilder.php b/src/Builder/Workflow/ActionBuilder.php index 62fa9924..2c136b13 100644 --- a/src/Builder/Workflow/ActionBuilder.php +++ b/src/Builder/Workflow/ActionBuilder.php @@ -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' => [ diff --git a/src/Builder/Workflow/PipelineBuilder.php b/src/Builder/Workflow/PipelineBuilder.php index f9a4485f..c8762e31 100644 --- a/src/Builder/Workflow/PipelineBuilder.php +++ b/src/Builder/Workflow/PipelineBuilder.php @@ -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' => [ diff --git a/src/Builder/Workflow/WorkflowRuntime.php b/src/Builder/Workflow/WorkflowRuntime.php index 7e97f832..01bf89a8 100644 --- a/src/Builder/Workflow/WorkflowRuntime.php +++ b/src/Builder/Workflow/WorkflowRuntime.php @@ -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'), ) ), ], diff --git a/src/Feature/Logger/Builder/LogstashFormatterBuilder.php b/src/Feature/Logger/Builder/LogstashFormatterBuilder.php index 5c293e70..9f1218e5 100644 --- a/src/Feature/Logger/Builder/LogstashFormatterBuilder.php +++ b/src/Feature/Logger/Builder/LogstashFormatterBuilder.php @@ -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), diff --git a/src/Feature/Logger/Builder/Monolog/ElasticSearchBuilder.php b/src/Feature/Logger/Builder/Monolog/ElasticSearchBuilder.php index 53e79c75..29c731ac 100644 --- a/src/Feature/Logger/Builder/Monolog/ElasticSearchBuilder.php +++ b/src/Feature/Logger/Builder/Monolog/ElasticSearchBuilder.php @@ -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'), @@ -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, ); diff --git a/src/Feature/Logger/Builder/Monolog/GelfBuilder.php b/src/Feature/Logger/Builder/Monolog/GelfBuilder.php index 9e15116f..ef0849c1 100644 --- a/src/Feature/Logger/Builder/Monolog/GelfBuilder.php +++ b/src/Feature/Logger/Builder/Monolog/GelfBuilder.php @@ -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(), @@ -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, ); @@ -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, ); } @@ -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_( diff --git a/src/Feature/Logger/Builder/Monolog/StreamBuilder.php b/src/Feature/Logger/Builder/Monolog/StreamBuilder.php index 5a4e427b..ea9a4b45 100644 --- a/src/Feature/Logger/Builder/Monolog/StreamBuilder.php +++ b/src/Feature/Logger/Builder/Monolog/StreamBuilder.php @@ -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, ); diff --git a/src/Feature/Logger/Builder/Monolog/SyslogBuilder.php b/src/Feature/Logger/Builder/Monolog/SyslogBuilder.php index be583dd3..20c6f644 100644 --- a/src/Feature/Logger/Builder/Monolog/SyslogBuilder.php +++ b/src/Feature/Logger/Builder/Monolog/SyslogBuilder.php @@ -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, ); diff --git a/src/Feature/Logger/Builder/Monolog/TestBuilder.php b/src/Feature/Logger/Builder/Monolog/TestBuilder.php index afe3ac3c..9e8ca816 100644 --- a/src/Feature/Logger/Builder/Monolog/TestBuilder.php +++ b/src/Feature/Logger/Builder/Monolog/TestBuilder.php @@ -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'), ); } } diff --git a/src/Feature/Logger/Builder/MonologLogger.php b/src/Feature/Logger/Builder/MonologLogger.php index 6bc89885..2fae53b7 100644 --- a/src/Feature/Logger/Builder/MonologLogger.php +++ b/src/Feature/Logger/Builder/MonologLogger.php @@ -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) @@ -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') ) ), ], @@ -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') ) ), ], diff --git a/src/Feature/Rejection/Builder/RabbitMQBuilder.php b/src/Feature/Rejection/Builder/RabbitMQBuilder.php index 145a55cb..49ddb595 100644 --- a/src/Feature/Rejection/Builder/RabbitMQBuilder.php +++ b/src/Feature/Rejection/Builder/RabbitMQBuilder.php @@ -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, ); diff --git a/src/Feature/Rejection/Builder/Rejection.php b/src/Feature/Rejection/Builder/Rejection.php index 2732ecb3..57ffcc3c 100644 --- a/src/Feature/Rejection/Builder/Rejection.php +++ b/src/Feature/Rejection/Builder/Rejection.php @@ -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') ); } diff --git a/src/Filesystem/Asset/InMemory.php b/src/Filesystem/Asset/InMemory.php index 2cbbe2e0..0657becd 100644 --- a/src/Filesystem/Asset/InMemory.php +++ b/src/Filesystem/Asset/InMemory.php @@ -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'); diff --git a/src/Filesystem/Asset/LocalFile.php b/src/Filesystem/Asset/LocalFile.php index 293ec7a4..761e4c99 100644 --- a/src/Filesystem/Asset/LocalFile.php +++ b/src/Filesystem/Asset/LocalFile.php @@ -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\\LocalFile', Packaging\Asset\LocalFile::class); +trigger_deprecation('php-etl/satellite', '0.1', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\Asset\LocalFile', Packaging\Asset\LocalFile::class); /* * @deprecated since Satellite 0.1, use Kiboko\Component\Packaging\Asset\LocalFile instead. */ -class_alias(Packaging\Asset\LocalFile::class, 'Kiboko\\Component\\Satellite\\Filesystem\\Asset\\LocalFile'); +class_alias(Packaging\Asset\LocalFile::class, 'Kiboko\Component\Satellite\Filesystem\Asset\LocalFile'); diff --git a/src/Filesystem/Asset/Resource.php b/src/Filesystem/Asset/Resource.php index c4f040b5..78a01631 100644 --- a/src/Filesystem/Asset/Resource.php +++ b/src/Filesystem/Asset/Resource.php @@ -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\\Resource', Packaging\Asset\NativeResource::class); +trigger_deprecation('php-etl/satellite', '0.1', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\Asset\Resource', Packaging\Asset\NativeResource::class); /* * @deprecated since Satellite 0.1, use Kiboko\Component\Packaging\Asset\Resource instead. */ -class_alias(Packaging\Asset\NativeResource::class, 'Kiboko\\Component\\Satellite\\Filesystem\\Asset\\Resource'); +class_alias(Packaging\Asset\NativeResource::class, 'Kiboko\Component\Satellite\Filesystem\Asset\Resource'); diff --git a/src/Filesystem/AssetInterface.php b/src/Filesystem/AssetInterface.php index dbc9cfd1..b04f822f 100644 --- a/src/Filesystem/AssetInterface.php +++ b/src/Filesystem/AssetInterface.php @@ -4,9 +4,9 @@ use Kiboko\Contract\Packaging; -trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" interface is deprecated, use "%s" instead.', 'Kiboko\\Component\\Satellite\\Filesystem\\AssetInterface', Packaging\AssetInterface::class); +trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" interface is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\AssetInterface', Packaging\AssetInterface::class); /* * @deprecated since Satellite 0.1, use Kiboko\Contract\Packaging\AssetInterface instead. */ -class_alias(Packaging\AssetInterface::class, 'Kiboko\\Component\\Satellite\\Filesystem\\AssetInterface'); +class_alias(Packaging\AssetInterface::class, 'Kiboko\Component\Satellite\Filesystem\AssetInterface'); diff --git a/src/Filesystem/Directory.php b/src/Filesystem/Directory.php index 547d68ef..21e4ba1d 100644 --- a/src/Filesystem/Directory.php +++ b/src/Filesystem/Directory.php @@ -4,9 +4,9 @@ use Kiboko\Component\Packaging; -trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\\Component\\Satellite\\Filesystem\\Directory', Packaging\Directory::class); +trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\Directory', Packaging\Directory::class); /* * @deprecated since Satellite 0.1, use Kiboko\Component\Packaging\Directory instead. */ -class_alias(Packaging\Directory::class, 'Kiboko\\Component\\Satellite\\Filesystem\\Directory'); +class_alias(Packaging\Directory::class, 'Kiboko\Component\Satellite\Filesystem\Directory'); diff --git a/src/Filesystem/DirectoryInterface.php b/src/Filesystem/DirectoryInterface.php index 16964078..d4db57b9 100644 --- a/src/Filesystem/DirectoryInterface.php +++ b/src/Filesystem/DirectoryInterface.php @@ -4,9 +4,9 @@ use Kiboko\Contract\Packaging; -trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" interface is deprecated, use "%s" instead.', 'Kiboko\\Component\\Satellite\\Filesystem\\DirectoryInterface', Packaging\DirectoryInterface::class); +trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" interface is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\DirectoryInterface', Packaging\DirectoryInterface::class); /* * @deprecated since Satellite 0.1, use Kiboko\Contract\Packaging\DirectoryInterface instead. */ -class_alias(Packaging\DirectoryInterface::class, 'Kiboko\\Component\\Satellite\\Filesystem\\DirectoryInterface'); +class_alias(Packaging\DirectoryInterface::class, 'Kiboko\Component\Satellite\Filesystem\DirectoryInterface'); diff --git a/src/Filesystem/File.php b/src/Filesystem/File.php index abb1a565..935da280 100644 --- a/src/Filesystem/File.php +++ b/src/Filesystem/File.php @@ -4,9 +4,9 @@ use Kiboko\Component\Packaging; -trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\\Component\\Satellite\\Filesystem\\File', Packaging\File::class); +trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\File', Packaging\File::class); /* * @deprecated since Satellite 0.1, use Kiboko\Component\Packaging\File instead. */ -class_alias(Packaging\File::class, 'Kiboko\\Component\\Satellite\\Filesystem\\File'); +class_alias(Packaging\File::class, 'Kiboko\Component\Satellite\Filesystem\File'); diff --git a/src/Filesystem/FileInterface.php b/src/Filesystem/FileInterface.php index d5b76e73..7d5ef38c 100644 --- a/src/Filesystem/FileInterface.php +++ b/src/Filesystem/FileInterface.php @@ -4,9 +4,9 @@ use Kiboko\Contract\Packaging; -trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" interface is deprecated, use "%s" instead.', 'Kiboko\\Component\\Satellite\\Filesystem\\FileInterface', Packaging\FileInterface::class); +trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" interface is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\FileInterface', Packaging\FileInterface::class); /* * @deprecated since Satellite 0.1, use Kiboko\Contract\Packaging\FileInterface instead. */ -class_alias(Packaging\FileInterface::class, 'Kiboko\\Component\\Satellite\\Filesystem\\FileInterface'); +class_alias(Packaging\FileInterface::class, 'Kiboko\Component\Satellite\Filesystem\FileInterface'); diff --git a/src/Filesystem/TarArchive.php b/src/Filesystem/TarArchive.php index cde16df8..bca90783 100644 --- a/src/Filesystem/TarArchive.php +++ b/src/Filesystem/TarArchive.php @@ -4,9 +4,9 @@ use Kiboko\Component\Packaging; -trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\\Component\\Satellite\\Filesystem\\TarArchive', Packaging\TarArchive::class); +trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\TarArchive', Packaging\TarArchive::class); /* * @deprecated since Satellite 0.1, use Kiboko\Component\Packaging\TarArchive instead. */ -class_alias(Packaging\TarArchive::class, 'Kiboko\\Component\\Satellite\\Filesystem\\TarArchive'); +class_alias(Packaging\TarArchive::class, 'Kiboko\Component\Satellite\Filesystem\TarArchive'); diff --git a/src/Filesystem/VirtualDirectory.php b/src/Filesystem/VirtualDirectory.php index 376ceaa3..a7b913a8 100644 --- a/src/Filesystem/VirtualDirectory.php +++ b/src/Filesystem/VirtualDirectory.php @@ -4,9 +4,9 @@ use Kiboko\Component\Packaging; -trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\\Component\\Satellite\\Filesystem\\VirtualDirectory', Packaging\VirtualDirectory::class); +trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\VirtualDirectory', Packaging\VirtualDirectory::class); /* * @deprecated since Satellite 0.1, use Kiboko\Component\Packaging\VirtualDirectory instead. */ -class_alias(Packaging\VirtualDirectory::class, 'Kiboko\\Component\\Satellite\\Filesystem\\VirtualDirectory'); +class_alias(Packaging\VirtualDirectory::class, 'Kiboko\Component\Satellite\Filesystem\VirtualDirectory'); diff --git a/src/Filesystem/VirtualFile.php b/src/Filesystem/VirtualFile.php index de6a2faf..416e6b14 100644 --- a/src/Filesystem/VirtualFile.php +++ b/src/Filesystem/VirtualFile.php @@ -4,9 +4,9 @@ use Kiboko\Component\Packaging; -trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\\Component\\Satellite\\Filesystem\\VirtualFile', Packaging\VirtualFile::class); +trigger_deprecation('php-etl/satellite', '0.2', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\Filesystem\VirtualFile', Packaging\VirtualFile::class); /* * @deprecated since Satellite 0.1, use Kiboko\Component\Packaging\VirtualFile instead. */ -class_alias(Packaging\VirtualFile::class, 'Kiboko\\Component\\Satellite\\Filesystem\\VirtualFile'); +class_alias(Packaging\VirtualFile::class, 'Kiboko\Component\Satellite\Filesystem\VirtualFile'); diff --git a/src/Pipeline/Extractor.php b/src/Pipeline/Extractor.php index 7e8bca76..76b75dee 100644 --- a/src/Pipeline/Extractor.php +++ b/src/Pipeline/Extractor.php @@ -74,7 +74,7 @@ public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterf $pipeline->addExtractor( new Node\Expr\StaticCall( - new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\StepCode'), + new Node\Name\FullyQualified('Kiboko\Component\Pipeline\StepCode'), new Node\Identifier('fromString'), [ new Node\Arg(new Node\Scalar\String_($code)), diff --git a/src/Pipeline/Loader.php b/src/Pipeline/Loader.php index ff1fa4bb..476c8821 100644 --- a/src/Pipeline/Loader.php +++ b/src/Pipeline/Loader.php @@ -50,7 +50,7 @@ public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterf $rejection = $compiled->getBuilder()->getNode(); } else { $rejection = new Node\Expr\New_( - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\NullStepRejection'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\NullStepRejection'), ); } @@ -62,7 +62,7 @@ public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterf $state = $compiled->getBuilder()->getNode(); } else { $state = new Node\Expr\New_( - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\NullStepState'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\NullStepState'), ); } @@ -74,7 +74,7 @@ public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterf $pipeline->addLoader( new Node\Expr\StaticCall( - new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\StepCode'), + new Node\Name\FullyQualified('Kiboko\Component\Pipeline\StepCode'), new Node\Identifier('fromString'), [ new Node\Arg(new Node\Scalar\String_($code)), diff --git a/src/Pipeline/Transformer.php b/src/Pipeline/Transformer.php index 7b7c3607..e78355dd 100644 --- a/src/Pipeline/Transformer.php +++ b/src/Pipeline/Transformer.php @@ -50,7 +50,7 @@ public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterf $rejection = $compiled->getBuilder()->getNode(); } else { $rejection = new Node\Expr\New_( - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\NullStepRejection'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\NullStepRejection'), ); } @@ -62,7 +62,7 @@ public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterf $state = $compiled->getBuilder()->getNode(); } else { $state = new Node\Expr\New_( - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\NullStepState'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\NullStepState'), ); } @@ -74,7 +74,7 @@ public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterf $pipeline->addTransformer( new Node\Expr\StaticCall( - new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\StepCode'), + new Node\Name\FullyQualified('Kiboko\Component\Pipeline\StepCode'), new Node\Identifier('fromString'), [ new Node\Arg(new Node\Scalar\String_($code)), diff --git a/src/Plugin/Batching/Builder/Fork.php b/src/Plugin/Batching/Builder/Fork.php index cb23858c..30deb0de 100644 --- a/src/Plugin/Batching/Builder/Fork.php +++ b/src/Plugin/Batching/Builder/Fork.php @@ -52,7 +52,7 @@ class: new Node\Stmt\Class_( name: null, subNodes: [ 'implements' => [ - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\TransformerInterface'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\TransformerInterface'), ], 'stmts' => [ new Node\Stmt\ClassMethod( @@ -72,7 +72,7 @@ class: new Node\Stmt\Class_( expr: new Node\Expr\Yield_( new Node\Expr\New_( class: new Node\Name\FullyQualified( - name: 'Kiboko\\Component\\Bucket\\AcceptanceResultBucket' + name: 'Kiboko\Component\Bucket\AcceptanceResultBucket' ), args: [ new Node\Arg( diff --git a/src/Plugin/Batching/Builder/Merge.php b/src/Plugin/Batching/Builder/Merge.php index 54faf87c..08be4fbe 100644 --- a/src/Plugin/Batching/Builder/Merge.php +++ b/src/Plugin/Batching/Builder/Merge.php @@ -45,8 +45,8 @@ class: new Node\Stmt\Class_( name: null, subNodes: [ 'implements' => [ - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\TransformerInterface'), - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\FlushableInterface'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\TransformerInterface'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\FlushableInterface'), ], 'stmts' => [ new Node\Stmt\Property( @@ -146,7 +146,7 @@ class: new Node\Stmt\Class_( var: new Node\Expr\Variable('line'), expr: new Node\Expr\Yield_( value: new Node\Expr\New_( - class: new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\AcceptanceResultBucket'), + class: new Node\Name\FullyQualified('Kiboko\Component\Bucket\AcceptanceResultBucket'), args: [ new Node\Arg( new Node\Expr\PropertyFetch( @@ -192,7 +192,7 @@ class: new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\AcceptanceResult var: new Node\Expr\Variable('line'), expr: new Node\Expr\Yield_( value: new Node\Expr\New_( - class: new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\EmptyResultBucket') + class: new Node\Name\FullyQualified('Kiboko\Component\Bucket\EmptyResultBucket') ), ), ), @@ -214,7 +214,7 @@ class: new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\EmptyResultBucke 'stmts' => [ new Node\Stmt\Return_( expr: new Node\Expr\New_( - class: new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\AcceptanceResultBucket'), + class: new Node\Name\FullyQualified('Kiboko\Component\Bucket\AcceptanceResultBucket'), args: [ new Node\Arg( new Node\Expr\PropertyFetch( @@ -226,7 +226,7 @@ class: new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\AcceptanceResult ) ), ], - 'returnType' => new Node\Name\FullyQualified('Kiboko\\Contract\\Bucket\\ResultBucketInterface'), + 'returnType' => new Node\Name\FullyQualified('Kiboko\Contract\Bucket\ResultBucketInterface'), ], ), ], diff --git a/src/Plugin/Custom/Factory/Extractor.php b/src/Plugin/Custom/Factory/Extractor.php index 5690023d..9f96b7b6 100644 --- a/src/Plugin/Custom/Factory/Extractor.php +++ b/src/Plugin/Custom/Factory/Extractor.php @@ -69,7 +69,7 @@ public function compile(array $config): Repository\Extractor $builder = new Custom\Builder\Extractor( compileValueWhenExpression($this->interpreter, $config['use']), - sprintf('GyroscopsGenerated\\%s', $containerName), + sprintf('GyroscopsGenerated\%s', $containerName), ); $container = (new SatelliteDependencyInjection(...$this->providers))($config); diff --git a/src/Plugin/Custom/Factory/Loader.php b/src/Plugin/Custom/Factory/Loader.php index 69a17a52..bdcd4f26 100644 --- a/src/Plugin/Custom/Factory/Loader.php +++ b/src/Plugin/Custom/Factory/Loader.php @@ -69,7 +69,7 @@ public function compile(array $config): Repository\Loader $builder = new Custom\Builder\Loader( compileValueWhenExpression($this->interpreter, $config['use']), - sprintf('GyroscopsGenerated\\%s', $containerName), + sprintf('GyroscopsGenerated\%s', $containerName), ); $container = (new SatelliteDependencyInjection(...$this->providers))($config); diff --git a/src/Plugin/Custom/Factory/Transformer.php b/src/Plugin/Custom/Factory/Transformer.php index 5beb12e3..d04624e3 100644 --- a/src/Plugin/Custom/Factory/Transformer.php +++ b/src/Plugin/Custom/Factory/Transformer.php @@ -69,7 +69,7 @@ public function compile(array $config): Repository\Transformer $builder = new Custom\Builder\Transformer( compileValueWhenExpression($this->interpreter, $config['use']), - sprintf('GyroscopsGenerated\\%s', $containerName), + sprintf('GyroscopsGenerated\%s', $containerName), ); $container = (new SatelliteDependencyInjection(...$this->providers))($config); diff --git a/src/Plugin/FTP/Builder/Loader.php b/src/Plugin/FTP/Builder/Loader.php index e4e966ae..65593d9e 100644 --- a/src/Plugin/FTP/Builder/Loader.php +++ b/src/Plugin/FTP/Builder/Loader.php @@ -218,7 +218,7 @@ class: new Node\Stmt\Class_( name: null, subNodes: [ 'implements' => [ - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\LoaderInterface:'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\LoaderInterface:'), ], 'stmts' => [ new Node\Stmt\ClassMethod( @@ -291,7 +291,7 @@ class: new Node\Stmt\Class_( new Node\Expr\Assign( var: new Node\Expr\Variable('bucket'), expr: new Node\Expr\New_( - class: new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\ComplexResultBucket') + class: new Node\Name\FullyQualified('Kiboko\Component\Bucket\ComplexResultBucket') ) ) ), diff --git a/src/Plugin/Filtering/Builder/Drop.php b/src/Plugin/Filtering/Builder/Drop.php index 32ae3f7e..ff7c745d 100644 --- a/src/Plugin/Filtering/Builder/Drop.php +++ b/src/Plugin/Filtering/Builder/Drop.php @@ -95,7 +95,7 @@ public function getNode(): Node return new Node\Expr\New_( class: new Node\Stmt\Class_(null, [ 'implements' => [ - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\TransformerInterface'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\TransformerInterface'), ], 'stmts' => [ (new Builder\Method('transform')) @@ -122,7 +122,7 @@ class: new Node\Stmt\Class_(null, [ new Node\Expr\Variable('input'), new Node\Expr\Yield_( new Node\Expr\New_( - new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\RejectionResultBucket'), + new Node\Name\FullyQualified('Kiboko\Component\Bucket\RejectionResultBucket'), ), ), ), @@ -136,7 +136,7 @@ class: new Node\Stmt\Class_(null, [ new Node\Expr\Variable('input'), new Node\Expr\Yield_( new Node\Expr\New_( - new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\AcceptanceResultBucket'), + new Node\Name\FullyQualified('Kiboko\Component\Bucket\AcceptanceResultBucket'), [ new Node\Arg(new Node\Expr\Variable('input')), ] diff --git a/src/Plugin/Filtering/Builder/Reject.php b/src/Plugin/Filtering/Builder/Reject.php index 12bfdfb6..c055020e 100644 --- a/src/Plugin/Filtering/Builder/Reject.php +++ b/src/Plugin/Filtering/Builder/Reject.php @@ -95,7 +95,7 @@ public function getNode(): Node return new Node\Expr\New_( class: new Node\Stmt\Class_(null, [ 'implements' => [ - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\TransformerInterface'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\TransformerInterface'), ], 'stmts' => [ (new Builder\Method('transform')) @@ -122,7 +122,7 @@ class: new Node\Stmt\Class_(null, [ new Node\Expr\Variable('input'), new Node\Expr\Yield_( new Node\Expr\New_( - new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\RejectionResultBucket'), + new Node\Name\FullyQualified('Kiboko\Component\Bucket\RejectionResultBucket'), [ new Node\Arg(new Node\Expr\Variable('input')), ] @@ -139,7 +139,7 @@ class: new Node\Stmt\Class_(null, [ new Node\Expr\Variable('input'), new Node\Expr\Yield_( new Node\Expr\New_( - new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\AcceptanceResultBucket'), + new Node\Name\FullyQualified('Kiboko\Component\Bucket\AcceptanceResultBucket'), [ new Node\Arg(new Node\Expr\Variable('input')), ] diff --git a/src/Plugin/SFTP/Builder/Extractor.php b/src/Plugin/SFTP/Builder/Extractor.php index 3f362576..e5fbff3f 100644 --- a/src/Plugin/SFTP/Builder/Extractor.php +++ b/src/Plugin/SFTP/Builder/Extractor.php @@ -89,7 +89,7 @@ class: new Node\Stmt\Class_( name: null, subNodes: [ 'implements' => [ - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\LoaderInterface'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\LoaderInterface'), ], 'stmts' => [ new Node\Stmt\ClassMethod( @@ -137,7 +137,7 @@ class: new Node\Stmt\Class_( new Node\Expr\Assign( var: new Node\Expr\Variable('bucket'), expr: new Node\Expr\New_( - class: new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\ComplexResultBucket') + class: new Node\Name\FullyQualified('Kiboko\Component\Bucket\ComplexResultBucket') ) ) ), diff --git a/src/Plugin/SFTP/Builder/Loader.php b/src/Plugin/SFTP/Builder/Loader.php index 7f1629c4..2bc566f2 100644 --- a/src/Plugin/SFTP/Builder/Loader.php +++ b/src/Plugin/SFTP/Builder/Loader.php @@ -89,7 +89,7 @@ class: new Node\Stmt\Class_( name: null, subNodes: [ 'implements' => [ - new Node\Name\FullyQualified('Kiboko\\Contract\\Pipeline\\LoaderInterface'), + new Node\Name\FullyQualified('Kiboko\Contract\Pipeline\LoaderInterface'), ], 'stmts' => [ new Node\Stmt\ClassMethod( @@ -137,7 +137,7 @@ class: new Node\Stmt\Class_( new Node\Expr\Assign( var: new Node\Expr\Variable('bucket'), expr: new Node\Expr\New_( - class: new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\ComplexResultBucket') + class: new Node\Name\FullyQualified('Kiboko\Component\Bucket\ComplexResultBucket') ) ) ), diff --git a/src/Plugin/Stream/Builder/DebugLoader.php b/src/Plugin/Stream/Builder/DebugLoader.php index dfda9007..7c4ecbfd 100644 --- a/src/Plugin/Stream/Builder/DebugLoader.php +++ b/src/Plugin/Stream/Builder/DebugLoader.php @@ -41,7 +41,7 @@ public function withState(Node\Expr $state): self public function getNode(): Node { return new Node\Expr\New_( - class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\Loader\\DebugLoader'), + class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\Loader\DebugLoader'), args: [ new Node\Arg( value: new Node\Expr\FuncCall( diff --git a/src/Plugin/Stream/Builder/JSONStreamLoader.php b/src/Plugin/Stream/Builder/JSONStreamLoader.php index cdae743d..08ca50d3 100644 --- a/src/Plugin/Stream/Builder/JSONStreamLoader.php +++ b/src/Plugin/Stream/Builder/JSONStreamLoader.php @@ -41,7 +41,7 @@ public function withState(Node\Expr $state): self public function getNode(): Node { return new Node\Expr\New_( - class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\Loader\\JSONStreamLoader'), + class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\Loader\JSONStreamLoader'), args: [ new Node\Arg( value: new Node\Expr\FuncCall( diff --git a/src/Plugin/Stream/Builder/StderrLoader.php b/src/Plugin/Stream/Builder/StderrLoader.php index cc10c56b..28c0e9c6 100644 --- a/src/Plugin/Stream/Builder/StderrLoader.php +++ b/src/Plugin/Stream/Builder/StderrLoader.php @@ -37,7 +37,7 @@ public function withState(Node\Expr $state): self public function getNode(): Node { return new Node\Expr\New_( - class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\Loader\\StderrLoader'), + class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\Loader\StderrLoader'), ); } } diff --git a/src/Plugin/Stream/Builder/StdoutLoader.php b/src/Plugin/Stream/Builder/StdoutLoader.php index 4cceec34..7b178274 100644 --- a/src/Plugin/Stream/Builder/StdoutLoader.php +++ b/src/Plugin/Stream/Builder/StdoutLoader.php @@ -37,7 +37,7 @@ public function withState(Node\Expr $state): self public function getNode(): Node { return new Node\Expr\New_( - class: new Node\Name\FullyQualified('Kiboko\\Component\\Pipeline\\Loader\\StdoutLoader'), + class: new Node\Name\FullyQualified('Kiboko\Component\Pipeline\Loader\StdoutLoader'), ); } } diff --git a/src/Runtime/Api/Runtime.php b/src/Runtime/Api/Runtime.php index b038ad4a..f8e7abe9 100644 --- a/src/Runtime/Api/Runtime.php +++ b/src/Runtime/Api/Runtime.php @@ -53,14 +53,14 @@ public function build(Builder $builder): array ), ), new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('FastRoute'), 'NikiFastRoute')]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\\FastRoute'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\\Utils\\Dispatcher'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\\Uuid'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\\BasePath'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\\RequestHandler'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Nyholm\\Psr7'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Nyholm\\Psr7Server'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Laminas\\HttpHandlerRunner\\Emitter\\SapiEmitter'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\FastRoute'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\Utils\Dispatcher'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\Uuid'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\BasePath'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\RequestHandler'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Nyholm\Psr7'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Nyholm\Psr7Server'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Laminas\HttpHandlerRunner\Emitter\SapiEmitter'))]), new Node\Stmt\Return_( new Node\Expr\Closure( @@ -69,7 +69,7 @@ public function build(Builder $builder): array 'params' => [ new Node\Param( var: new Node\Expr\Variable('runtime'), - type: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\API\\APIRuntime'), + type: new Node\Name\FullyQualified('Kiboko\Component\Runtime\API\APIRuntime'), ), ], 'stmts' => $this->buildAPIClosure($builder), @@ -85,14 +85,14 @@ public function buildAPIClosure(Builder $builder): array new Node\Stmt\Expression( new Node\Expr\Assign( new Node\Expr\Variable('psr17Factory'), - new Node\Expr\New_(new Node\Name('Psr7\\Factory\\Psr17Factory')), + new Node\Expr\New_(new Node\Name('Psr7\Factory\Psr17Factory')), ), ), new Node\Stmt\Expression( new Node\Expr\Assign( new Node\Expr\Variable('creator'), new Node\Expr\New_( - new Node\Name('Psr7Server\\ServerRequestCreator'), + new Node\Name('Psr7Server\ServerRequestCreator'), [ new Node\Arg(new Node\Expr\Variable('psr17Factory')), new Node\Arg(new Node\Expr\Variable('psr17Factory')), @@ -116,7 +116,7 @@ public function buildAPIClosure(Builder $builder): array new Node\Expr\Assign( new Node\Expr\Variable('fastRouteDispatcher'), new Node\Expr\FuncCall( - new Node\Name('NikiFastRoute\\simpleDispatcher'), + new Node\Name('NikiFastRoute\simpleDispatcher'), [ new Node\Arg( new Node\Expr\Closure([ @@ -124,7 +124,7 @@ public function buildAPIClosure(Builder $builder): array new Node\Param( new Node\Expr\Variable('router'), null, - new Node\Name('NikiFastRoute\\RouteCollector') + new Node\Name('NikiFastRoute\RouteCollector') ), ], 'uses' => [ diff --git a/src/Runtime/Authorization.php b/src/Runtime/Authorization.php index 10dafb0b..8406b670 100644 --- a/src/Runtime/Authorization.php +++ b/src/Runtime/Authorization.php @@ -35,7 +35,7 @@ private function buildBasic(array $users) } return new Node\Expr\New_( - new Node\Name('Tuupola\\Middleware\\HttpBasicAuthentication'), + new Node\Name('Tuupola\Middleware\HttpBasicAuthentication'), [ new Node\Arg( value: new Node\Expr\Array_( @@ -56,7 +56,7 @@ private function buildBasic(array $users) private function buildJwt(string $secret) { return new Node\Expr\New_( - new Node\Name('Tuupola\\Middleware\\JwtAuthentication'), + new Node\Name('Tuupola\Middleware\JwtAuthentication'), [ new Node\Arg( value: new Node\Expr\Array_( diff --git a/src/Runtime/HttpHook/Runtime.php b/src/Runtime/HttpHook/Runtime.php index 683a5d79..719e435b 100644 --- a/src/Runtime/HttpHook/Runtime.php +++ b/src/Runtime/HttpHook/Runtime.php @@ -51,7 +51,7 @@ public function build(Builder $builder): array 'params' => [ new Node\Param( var: new Node\Expr\Variable('runtime'), - type: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Hook\\HookRuntime'), + type: new Node\Name\FullyQualified('Kiboko\Component\Runtime\Hook\HookRuntime'), ), ], 'stmts' => $this->buildHookClosure($builder), @@ -73,12 +73,12 @@ private function buildAutoload() type: Node\Expr\Include_::TYPE_REQUIRE ), ), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\\BasePath'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\\Utils\\Dispatcher'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\\Uuid'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Nyholm\\Psr7'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Nyholm\\Psr7Server'))]), - new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Laminas\\HttpHandlerRunner\\Emitter\\SapiEmitter'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\BasePath'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\Utils\Dispatcher'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Middlewares\Uuid'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Nyholm\Psr7'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Nyholm\Psr7Server'))]), + new Node\Stmt\Use_([new Node\Stmt\UseUse(new Node\Name('Laminas\HttpHandlerRunner\Emitter\SapiEmitter'))]), ]; } @@ -88,14 +88,14 @@ private function buildHookClosure(Builder $builder) new Node\Stmt\Expression( expr: new Node\Expr\Assign( var: new Node\Expr\Variable('psr17Factory'), - expr: new Node\Expr\New_(new Node\Name('Psr7\\Factory\\Psr17Factory')), + expr: new Node\Expr\New_(new Node\Name('Psr7\Factory\Psr17Factory')), ), ), new Node\Stmt\Expression( expr: new Node\Expr\Assign( var: new Node\Expr\Variable('creator'), expr: new Node\Expr\New_( - class: new Node\Name('Psr7Server\\ServerRequestCreator'), + class: new Node\Name('Psr7Server\ServerRequestCreator'), args: [ new Node\Arg(new Node\Expr\Variable('psr17Factory')), new Node\Arg(new Node\Expr\Variable('psr17Factory')), diff --git a/src/Runtime/Pipeline/Runtime.php b/src/Runtime/Pipeline/Runtime.php index 19b68910..6a0381f6 100644 --- a/src/Runtime/Pipeline/Runtime.php +++ b/src/Runtime/Pipeline/Runtime.php @@ -52,7 +52,7 @@ public function build(Builder $builder): array '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' => [ diff --git a/src/Runtime/Workflow/Runtime.php b/src/Runtime/Workflow/Runtime.php index 55f96256..730976eb 100644 --- a/src/Runtime/Workflow/Runtime.php +++ b/src/Runtime/Workflow/Runtime.php @@ -50,7 +50,7 @@ public function build(Builder $builder): array 'params' => [ new Node\Param( var: new Node\Expr\Variable('runtime'), - type: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Workflow\\WorkflowRuntimeInterface'), + type: new Node\Name\FullyQualified('Kiboko\Component\Runtime\Workflow\WorkflowRuntimeInterface'), ), ], 'stmts' => [ diff --git a/src/SatelliteBuilderInterface.php b/src/SatelliteBuilderInterface.php index b10011a0..5f069476 100644 --- a/src/SatelliteBuilderInterface.php +++ b/src/SatelliteBuilderInterface.php @@ -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\\SatelliteBuilderInterface', Kiboko\Contract\Configurator\SatelliteBuilderInterface::class); +trigger_deprecation('php-etl/satellite', '0.4', 'The "%s" interface is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\SatelliteBuilderInterface', Kiboko\Contract\Configurator\SatelliteBuilderInterface::class); /* * @deprecated since Satellite 0.4, use Kiboko\Contract\Configurator\SatelliteBuilderInterface instead. */ -class_alias(Kiboko\Contract\Configurator\SatelliteBuilderInterface::class, 'Kiboko\\Component\\Satellite\\SatelliteBuilderInterface'); +class_alias(Kiboko\Contract\Configurator\SatelliteBuilderInterface::class, 'Kiboko\Component\Satellite\SatelliteBuilderInterface'); diff --git a/src/SatelliteInterface.php b/src/SatelliteInterface.php index 646776d0..b0210186 100644 --- a/src/SatelliteInterface.php +++ b/src/SatelliteInterface.php @@ -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\\SatelliteInterface', Kiboko\Contract\Configurator\SatelliteInterface::class); +trigger_deprecation('php-etl/satellite', '0.4', 'The "%s" interface is deprecated, use "%s" instead.', 'Kiboko\Component\Satellite\SatelliteInterface', Kiboko\Contract\Configurator\SatelliteInterface::class); /* * @deprecated since Satellite 0.4, use Kiboko\Contract\Configurator\SatelliteInterface instead. */ -class_alias(Kiboko\Contract\Configurator\SatelliteInterface::class, 'Kiboko\\Component\\Satellite\\SatelliteInterface'); +class_alias(Kiboko\Contract\Configurator\SatelliteInterface::class, 'Kiboko\Component\Satellite\SatelliteInterface');