From ca4a50ae8353200dd7e46fe207f67b3be3c9005c Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 17 Jan 2024 17:29:41 +0100 Subject: [PATCH] cs-fixer changes --- src/Action/Action.php | 4 +++- src/Action/ConfigurationApplier.php | 7 ++++--- src/Action/Custom/Builder/Action.php | 4 +++- src/Action/Custom/Factory/Action.php | 4 ++-- src/Action/SFTP/Builder/Action.php | 3 ++- .../SFTP/Factory/Repository/Repository.php | 4 +++- src/Adapter/AdapterChoice.php | 5 +++-- src/Adapter/AdapterNotFoundException.php | 4 +++- .../FileOrDirectoryNotFoundException.php | 4 +++- src/Adapter/Docker/NetworkInterface.php | 4 +++- src/Adapter/FactoryInterface.php | 4 ++-- src/Builder/API/PipelineBuilder.php | 4 +++- src/Builder/Action.php | 3 ++- src/Builder/Hook/PipelineBuilder.php | 4 +++- src/Builder/Pipeline.php | 3 ++- src/Builder/Repository/API.php | 4 +++- src/Builder/Repository/Action.php | 4 +++- src/Builder/Repository/Hook.php | 4 +++- src/Builder/Repository/Pipeline.php | 4 +++- src/Builder/Repository/Workflow.php | 4 +++- src/Builder/Workflow.php | 3 ++- src/Builder/Workflow/ActionBuilder.php | 4 +++- src/Builder/Workflow/PipelineBuilder.php | 4 +++- src/Cloud/AccessDeniedException.php | 4 +++- .../AddAfterPipelineStepFailedException.php | 4 +++- .../AddBeforePipelineStepFailedException.php | 4 +++- ...ineComposerPSR4AutoloadFailedException.php | 4 +++- .../AddPipelineStepProbeFailedException.php | 4 +++- .../AppendPipelineStepFailedException.php | 4 +++- src/Cloud/Command/Command.php | 4 +++- .../Pipeline/AddAfterPipelineStepCommand.php | 3 ++- .../Pipeline/AddBeforePipelineStepCommand.php | 3 ++- ...AddPipelineComposerPSR4AutoloadCommand.php | 3 ++- .../Pipeline/AddPipelineStepProbeCommand.php | 3 ++- .../Pipeline/AppendPipelineStepCommand.php | 3 ++- .../Pipeline/CompilePipelineCommand.php | 3 ++- .../Pipeline/DeclarePipelineCommand.php | 3 ++- .../Pipeline/MoveAfterPipelineStepCommand.php | 3 ++- .../MoveBeforePipelineStepCommand.php | 3 ++- .../Pipeline/PrependPipelineStepCommand.php | 3 ++- .../Pipeline/RemovePipelineCommand.php | 3 ++- .../Pipeline/RemovePipelineStepCommand.php | 3 ++- .../RemovePipelineStepProbeCommand.php | 3 ++- .../Pipeline/ReplacePipelineStepCommand.php | 3 ++- src/Cloud/CommandBus.php | 3 ++- src/Cloud/CompilePipelineFailedException.php | 4 +++- src/Cloud/Context.php | 3 ++- src/Cloud/Credentials.php | 3 ++- src/Cloud/DTO/Auth.php | 3 ++- src/Cloud/DTO/CredentialsInterface.php | 4 +++- src/Cloud/DTO/OrganizationId.php | 3 ++- src/Cloud/DTO/Package.php | 3 ++- src/Cloud/DTO/Pipeline.php | 3 ++- src/Cloud/DTO/PipelineId.php | 3 ++- src/Cloud/DTO/Probe.php | 3 ++- src/Cloud/DTO/ReferencedPipeline.php | 3 ++- src/Cloud/DTO/Repository.php | 3 ++- src/Cloud/DTO/Step.php | 3 ++- src/Cloud/DTO/StepCode.php | 3 ++- src/Cloud/DTO/WorkspaceId.php | 3 ++- src/Cloud/DeclarePipelineFailedException.php | 4 +++- src/Cloud/Diff/CodeDoesNotMatchException.php | 4 +++- src/Cloud/Diff/LabelDoesNotMatchException.php | 4 +++- src/Cloud/Diff/OrderDoesNotMatchException.php | 4 +++- src/Cloud/Diff/StepDiff.php | 3 ++- src/Cloud/Diff/StepListDiff.php | 3 ++- src/Cloud/Event/AddedAfterPipelineStep.php | 3 ++- src/Cloud/Event/AddedBeforePipelineStep.php | 3 ++- .../AddedPipelineComposerPSR4Autoload.php | 3 ++- src/Cloud/Event/AddedPipelineStepProbe.php | 3 ++- src/Cloud/Event/AppendedPipelineStep.php | 3 ++- src/Cloud/Event/CompiledPipeline.php | 3 ++- src/Cloud/Event/PipelineDeclared.php | 3 ++- src/Cloud/Event/RemovedPipeline.php | 3 ++- src/Cloud/Event/RemovedPipelineStep.php | 3 ++- src/Cloud/Event/RemovedPipelineStepProbe.php | 3 ++- src/Cloud/Event/ReplacedPipelineStep.php | 3 ++- .../AddAfterPipelineStepCommandHandler.php | 3 ++- .../AddBeforePipelineStepCommandHandler.php | 3 ++- ...lineComposerPSR4AutoloadCommandHandler.php | 3 ++- .../AddPipelineStepProbeCommandHandler.php | 3 ++- .../AppendPipelineStepCommandHandler.php | 3 ++- .../CompilePipelineCommandHandler.php | 3 ++- .../DeclarePipelineCommandHandler.php | 3 ++- .../Pipeline/RemovePipelineCommandHandler.php | 3 ++- .../RemovePipelineStepCommandHandler.php | 3 ++- .../RemovePipelineStepProbeCommandHandler.php | 3 ++- .../ReplacePipelineStepCommandHandler.php | 3 ++- src/Cloud/NoOrganizationSelectedException.php | 4 +++- src/Cloud/NoWorkspaceSelectedException.php | 4 +++- src/Cloud/Pipeline.php | 11 ++++++----- src/Cloud/PipelineInterface.php | 2 +- src/Cloud/RemovePipelineFailedException.php | 4 +++- .../RemovePipelineStepFailedException.php | 4 +++- ...RemovePipelineStepProbeFailedException.php | 4 +++- .../ReplacePipelineStepFailedException.php | 4 +++- src/Composer/Accumulator.php | 4 +++- src/ComposerScripts.php | 4 ++-- src/ConfigLoader.php | 6 ++++-- src/Console/Command/BuildCommand.php | 5 +++-- src/Console/Command/HookRunCommand.php | 4 ++-- src/Console/Command/PipelineRunCommand.php | 6 +++--- src/Console/Command/ValidateCommand.php | 2 +- src/Console/Command/WorkflowRunCommand.php | 6 +++--- src/Console/RuntimeContext.php | 3 ++- src/Feature/Logger/Builder/Logger.php | 4 +++- .../Builder/LogstashFormatterBuilder.php | 4 +++- .../Builder/Monolog/ElasticSearchBuilder.php | 4 +++- .../Monolog/MonologBuilderInterface.php | 4 +++- .../Logger/Builder/Monolog/StreamBuilder.php | 4 +++- .../Logger/Builder/Monolog/SyslogBuilder.php | 4 +++- src/Feature/Logger/Builder/MonologLogger.php | 4 +++- .../Logger/Factory/ElasticSearchFactory.php | 4 ++-- src/Feature/Logger/Factory/GelfFactory.php | 4 ++-- src/Feature/Logger/Factory/StreamFactory.php | 4 ++-- src/Feature/Logger/Factory/SyslogFactory.php | 4 ++-- .../Rejection/Builder/RabbitMQBuilder.php | 19 ++++++++++--------- src/Feature/Rejection/Builder/Rejection.php | 3 ++- .../Rejection/Factory/RabbitMQFactory.php | 4 ++-- src/MissingAttributeException.php | 4 +++- src/Pipeline/ConfigurationApplier.php | 3 ++- src/Pipeline/Extractor.php | 4 +++- src/Pipeline/Loader.php | 4 +++- src/Pipeline/Transformer.php | 4 +++- src/Plugin/Batching/Builder/Fork.php | 4 +++- src/Plugin/Batching/Builder/Merge.php | 4 +++- src/Plugin/Batching/Repository.php | 4 +++- src/Plugin/Batching/Service.php | 2 +- src/Plugin/Custom/Builder/Extractor.php | 4 +++- src/Plugin/Custom/Builder/Loader.php | 4 +++- src/Plugin/Custom/Builder/Transformer.php | 4 +++- src/Plugin/Custom/CustomBuilder.php | 4 +++- src/Plugin/Custom/Factory/Extractor.php | 4 ++-- src/Plugin/Custom/Factory/Loader.php | 4 ++-- src/Plugin/Custom/Factory/Transformer.php | 4 ++-- src/Plugin/Custom/Service.php | 2 +- src/Plugin/FTP/Builder/Loader.php | 18 ++++++++++-------- src/Plugin/FTP/Builder/Server.php | 4 +++- .../FTP/Factory/Repository/Repository.php | 4 +++- src/Plugin/Filtering/Builder/Drop.php | 7 +++---- src/Plugin/Filtering/Builder/Reject.php | 7 +++---- src/Plugin/Filtering/Factory/Drop.php | 4 ++-- src/Plugin/Filtering/Factory/Reject.php | 4 ++-- src/Plugin/Filtering/Service.php | 2 +- src/Plugin/SFTP/Builder/Extractor.php | 4 +++- src/Plugin/SFTP/Builder/Loader.php | 4 +++- src/Plugin/SFTP/Builder/Server.php | 4 +++- src/Plugin/SFTP/Factory/Extractor.php | 2 +- src/Plugin/SFTP/Factory/Loader.php | 2 +- .../SFTP/Factory/Repository/Repository.php | 4 +++- src/Plugin/SFTP/UploadFileException.php | 4 +++- src/Plugin/Stream/Builder/DebugLoader.php | 4 +++- .../Stream/Builder/JSONStreamLoader.php | 4 +++- src/Plugin/Stream/Repository.php | 3 ++- src/Runtime/Api/Runtime.php | 4 +++- src/Runtime/HttpHook/Runtime.php | 4 +++- src/Runtime/Pipeline/Runtime.php | 3 ++- src/Runtime/RuntimeChoice.php | 5 +++-- src/Runtime/Workflow/Configuration.php | 4 ++-- src/Runtime/Workflow/Runtime.php | 4 +++- src/SatelliteBuilderInterface.php | 4 ++-- src/SatelliteInterface.php | 4 ++-- src/Service.php | 2 +- 163 files changed, 414 insertions(+), 215 deletions(-) diff --git a/src/Action/Action.php b/src/Action/Action.php index 6622894a..14897c9c 100644 --- a/src/Action/Action.php +++ b/src/Action/Action.php @@ -15,7 +15,9 @@ final readonly class Action { - public function __construct(private ?string $plugin, private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) {} + public function __construct(private ?string $plugin, private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) + { + } public function __invoke(array $config, ActionBuilder $action, RepositoryInterface $repository): void { diff --git a/src/Action/ConfigurationApplier.php b/src/Action/ConfigurationApplier.php index 8f6aa53f..014be7b1 100644 --- a/src/Action/ConfigurationApplier.php +++ b/src/Action/ConfigurationApplier.php @@ -10,18 +10,19 @@ final class ConfigurationApplier { - private ?Action $action = null; + private ?Satellite\Action\Action $action = null; private array $packages = []; public function __construct( private readonly string $plugin, private readonly FactoryInterface $service, private readonly ExpressionLanguage $interpreter, - ) {} + ) { + } public function withAction(): self { - $this->action = new Action($this->plugin, clone $this->interpreter); + $this->action = new Satellite\Action\Action($this->plugin, clone $this->interpreter); return $this; } diff --git a/src/Action/Custom/Builder/Action.php b/src/Action/Custom/Builder/Action.php index f4d2c6be..c5271bb1 100644 --- a/src/Action/Custom/Builder/Action.php +++ b/src/Action/Custom/Builder/Action.php @@ -12,7 +12,9 @@ final class Action implements ActionBuilderInterface private ?Node\Expr $logger = null; private ?Node\Expr $state = null; - public function __construct(private readonly Node\Expr $service, private readonly string $containerNamespace) {} + public function __construct(private readonly Node\Expr $service, private readonly string $containerNamespace) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Action/Custom/Factory/Action.php b/src/Action/Custom/Factory/Action.php index eb70c1ec..2780917c 100644 --- a/src/Action/Custom/Factory/Action.php +++ b/src/Action/Custom/Factory/Action.php @@ -63,7 +63,7 @@ public function validate(array $config): bool /** * @throws Configurator\ConfigurationExceptionInterface */ - public function compile(array $config): Repository\Action + public function compile(array $config): Custom\Factory\Repository\Action { $containerName = sprintf('ProjectServiceContainer%s', ByteString::fromRandom(8)->toString()); @@ -74,7 +74,7 @@ public function compile(array $config): Repository\Action $container = (new SatelliteDependencyInjection(...$this->providers))($config); - $repository = new Repository\Action($builder); + $repository = new Custom\Factory\Repository\Action($builder); $dumper = new PhpDumper($container); $repository->addFiles( diff --git a/src/Action/SFTP/Builder/Action.php b/src/Action/SFTP/Builder/Action.php index 98aba4de..89a9ad5b 100644 --- a/src/Action/SFTP/Builder/Action.php +++ b/src/Action/SFTP/Builder/Action.php @@ -18,7 +18,8 @@ public function __construct( private readonly Node\Expr $password, private readonly Node\Expr $localFilePath, private readonly Node\Expr $serverFilePath, - ) {} + ) { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Action/SFTP/Factory/Repository/Repository.php b/src/Action/SFTP/Factory/Repository/Repository.php index 30614486..65254b22 100644 --- a/src/Action/SFTP/Factory/Repository/Repository.php +++ b/src/Action/SFTP/Factory/Repository/Repository.php @@ -10,7 +10,9 @@ final readonly class Repository implements Configurator\RepositoryInterface { - public function __construct(private Builder\Action $builder) {} + public function __construct(private Builder\Action $builder) + { + } public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): self { diff --git a/src/Adapter/AdapterChoice.php b/src/Adapter/AdapterChoice.php index bbd617fe..df61e1fa 100644 --- a/src/Adapter/AdapterChoice.php +++ b/src/Adapter/AdapterChoice.php @@ -10,7 +10,8 @@ { public function __construct( private array $adapters, - ) {} + ) { + } public function __invoke(array $configuration): Configurator\SatelliteBuilderInterface { @@ -22,7 +23,7 @@ public function __invoke(array $configuration): Configurator\SatelliteBuilderInt } } - \assert($factory instanceof \Kiboko\Contract\Configurator\Adapter\FactoryInterface, new AdapterNotFoundException('No compatible adapter was found for your satellite configuration.')); + \assert($factory instanceof Configurator\Adapter\FactoryInterface, new AdapterNotFoundException('No compatible adapter was found for your satellite configuration.')); return $factory($configuration); } diff --git a/src/Adapter/AdapterNotFoundException.php b/src/Adapter/AdapterNotFoundException.php index 45a736d1..ccfefe8e 100644 --- a/src/Adapter/AdapterNotFoundException.php +++ b/src/Adapter/AdapterNotFoundException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Adapter; -final class AdapterNotFoundException extends \RuntimeException {} +final class AdapterNotFoundException extends \RuntimeException +{ +} diff --git a/src/Adapter/Docker/FileOrDirectoryNotFoundException.php b/src/Adapter/Docker/FileOrDirectoryNotFoundException.php index c3a2e14b..03534716 100644 --- a/src/Adapter/Docker/FileOrDirectoryNotFoundException.php +++ b/src/Adapter/Docker/FileOrDirectoryNotFoundException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Adapter\Docker; -class FileOrDirectoryNotFoundException extends \RuntimeException {} +class FileOrDirectoryNotFoundException extends \RuntimeException +{ +} diff --git a/src/Adapter/Docker/NetworkInterface.php b/src/Adapter/Docker/NetworkInterface.php index 5d3ec456..1b2e21a3 100644 --- a/src/Adapter/Docker/NetworkInterface.php +++ b/src/Adapter/Docker/NetworkInterface.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Adapter\Docker; -interface NetworkInterface {} +interface NetworkInterface +{ +} diff --git a/src/Adapter/FactoryInterface.php b/src/Adapter/FactoryInterface.php index ede897fa..75554601 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/PipelineBuilder.php b/src/Builder/API/PipelineBuilder.php index 6b628dd6..967d928a 100644 --- a/src/Builder/API/PipelineBuilder.php +++ b/src/Builder/API/PipelineBuilder.php @@ -9,7 +9,9 @@ final readonly class PipelineBuilder { - public function __construct(private Builder $builder) {} + public function __construct(private Builder $builder) + { + } public function getNode(): Node\Expr { diff --git a/src/Builder/Action.php b/src/Builder/Action.php index 3bcc2282..f4252d23 100644 --- a/src/Builder/Action.php +++ b/src/Builder/Action.php @@ -13,7 +13,8 @@ final class Action implements Builder public function __construct( private readonly Node\Expr $runtime, - ) {} + ) { + } public function addAction( Builder|Node\Expr $loader, diff --git a/src/Builder/Hook/PipelineBuilder.php b/src/Builder/Hook/PipelineBuilder.php index d816ee99..957659ef 100644 --- a/src/Builder/Hook/PipelineBuilder.php +++ b/src/Builder/Hook/PipelineBuilder.php @@ -9,7 +9,9 @@ final readonly class PipelineBuilder { - public function __construct(private Builder $builder) {} + public function __construct(private Builder $builder) + { + } public function getNode(): Node\Expr { diff --git a/src/Builder/Pipeline.php b/src/Builder/Pipeline.php index 2c6a3eb1..e5a3a066 100644 --- a/src/Builder/Pipeline.php +++ b/src/Builder/Pipeline.php @@ -13,7 +13,8 @@ final class Pipeline implements Builder public function __construct( private readonly Node\Expr $runtime - ) {} + ) { + } public function addExtractor( Builder|Node\Expr $extractor, diff --git a/src/Builder/Repository/API.php b/src/Builder/Repository/API.php index ec96aca5..02ffec2b 100644 --- a/src/Builder/Repository/API.php +++ b/src/Builder/Repository/API.php @@ -15,7 +15,9 @@ final class API implements Configurator\RepositoryInterface /** @var string[] */ private array $packages = []; - public function __construct(private readonly Satellite\Builder\API $builder) {} + public function __construct(private readonly Satellite\Builder\API $builder) + { + } public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): Configurator\RepositoryInterface { diff --git a/src/Builder/Repository/Action.php b/src/Builder/Repository/Action.php index be8a0e73..a7811ee4 100644 --- a/src/Builder/Repository/Action.php +++ b/src/Builder/Repository/Action.php @@ -15,7 +15,9 @@ final class Action implements Configurator\RepositoryInterface /** @var string[] */ private array $packages = []; - public function __construct(private readonly Satellite\Builder\Action $builder) {} + public function __construct(private readonly Satellite\Builder\Action $builder) + { + } public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): Configurator\RepositoryInterface { diff --git a/src/Builder/Repository/Hook.php b/src/Builder/Repository/Hook.php index d7d56b3a..4bc4b9c2 100644 --- a/src/Builder/Repository/Hook.php +++ b/src/Builder/Repository/Hook.php @@ -15,7 +15,9 @@ final class Hook implements Configurator\RepositoryInterface /** @var string[] */ private array $packages = []; - public function __construct(private readonly Satellite\Builder\Hook $builder) {} + public function __construct(private readonly Satellite\Builder\Hook $builder) + { + } public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): Configurator\RepositoryInterface { diff --git a/src/Builder/Repository/Pipeline.php b/src/Builder/Repository/Pipeline.php index 2d82a798..f9c84154 100644 --- a/src/Builder/Repository/Pipeline.php +++ b/src/Builder/Repository/Pipeline.php @@ -15,7 +15,9 @@ final class Pipeline implements Configurator\RepositoryInterface /** @var string[] */ private array $packages = []; - public function __construct(private readonly Satellite\Builder\Pipeline $builder) {} + public function __construct(private readonly Satellite\Builder\Pipeline $builder) + { + } public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): Configurator\RepositoryInterface { diff --git a/src/Builder/Repository/Workflow.php b/src/Builder/Repository/Workflow.php index f4516fe6..af6c155c 100644 --- a/src/Builder/Repository/Workflow.php +++ b/src/Builder/Repository/Workflow.php @@ -15,7 +15,9 @@ final class Workflow implements Configurator\RepositoryInterface /** @var string[] */ private array $packages = []; - public function __construct(private readonly Satellite\Builder\Workflow $builder) {} + public function __construct(private readonly Satellite\Builder\Workflow $builder) + { + } public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): Configurator\RepositoryInterface { diff --git a/src/Builder/Workflow.php b/src/Builder/Workflow.php index b64a2c83..da085ffe 100644 --- a/src/Builder/Workflow.php +++ b/src/Builder/Workflow.php @@ -13,7 +13,8 @@ final class Workflow implements Builder public function __construct( private readonly Node\Expr $runtime - ) {} + ) { + } public function addPipeline( string $pipelineFilename, diff --git a/src/Builder/Workflow/ActionBuilder.php b/src/Builder/Workflow/ActionBuilder.php index c53ba66d..62fa9924 100644 --- a/src/Builder/Workflow/ActionBuilder.php +++ b/src/Builder/Workflow/ActionBuilder.php @@ -9,7 +9,9 @@ final readonly class ActionBuilder implements Builder { - public function __construct(private Builder $builder) {} + public function __construct(private Builder $builder) + { + } public function getNode(): Node\Expr { diff --git a/src/Builder/Workflow/PipelineBuilder.php b/src/Builder/Workflow/PipelineBuilder.php index 55bdc5ac..f9a4485f 100644 --- a/src/Builder/Workflow/PipelineBuilder.php +++ b/src/Builder/Workflow/PipelineBuilder.php @@ -9,7 +9,9 @@ final readonly class PipelineBuilder implements Builder { - public function __construct(private Builder $builder) {} + public function __construct(private Builder $builder) + { + } public function getNode(): Node\Expr { diff --git a/src/Cloud/AccessDeniedException.php b/src/Cloud/AccessDeniedException.php index a1489ce7..f72c5486 100644 --- a/src/Cloud/AccessDeniedException.php +++ b/src/Cloud/AccessDeniedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -final class AccessDeniedException extends \RuntimeException {} +final class AccessDeniedException extends \RuntimeException +{ +} diff --git a/src/Cloud/AddAfterPipelineStepFailedException.php b/src/Cloud/AddAfterPipelineStepFailedException.php index 28949426..f1d4c7ea 100644 --- a/src/Cloud/AddAfterPipelineStepFailedException.php +++ b/src/Cloud/AddAfterPipelineStepFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class AddAfterPipelineStepFailedException extends \RuntimeException {} +class AddAfterPipelineStepFailedException extends \RuntimeException +{ +} diff --git a/src/Cloud/AddBeforePipelineStepFailedException.php b/src/Cloud/AddBeforePipelineStepFailedException.php index a50ef84c..3be24b5e 100644 --- a/src/Cloud/AddBeforePipelineStepFailedException.php +++ b/src/Cloud/AddBeforePipelineStepFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class AddBeforePipelineStepFailedException extends \RuntimeException {} +class AddBeforePipelineStepFailedException extends \RuntimeException +{ +} diff --git a/src/Cloud/AddPipelineComposerPSR4AutoloadFailedException.php b/src/Cloud/AddPipelineComposerPSR4AutoloadFailedException.php index 87f0de43..c7372169 100644 --- a/src/Cloud/AddPipelineComposerPSR4AutoloadFailedException.php +++ b/src/Cloud/AddPipelineComposerPSR4AutoloadFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class AddPipelineComposerPSR4AutoloadFailedException extends \RuntimeException {} +class AddPipelineComposerPSR4AutoloadFailedException extends \RuntimeException +{ +} diff --git a/src/Cloud/AddPipelineStepProbeFailedException.php b/src/Cloud/AddPipelineStepProbeFailedException.php index 73147bfd..0ef7d200 100644 --- a/src/Cloud/AddPipelineStepProbeFailedException.php +++ b/src/Cloud/AddPipelineStepProbeFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class AddPipelineStepProbeFailedException extends \RuntimeException {} +class AddPipelineStepProbeFailedException extends \RuntimeException +{ +} diff --git a/src/Cloud/AppendPipelineStepFailedException.php b/src/Cloud/AppendPipelineStepFailedException.php index f997eacb..e0fe2507 100644 --- a/src/Cloud/AppendPipelineStepFailedException.php +++ b/src/Cloud/AppendPipelineStepFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class AppendPipelineStepFailedException extends \RuntimeException {} +class AppendPipelineStepFailedException extends \RuntimeException +{ +} diff --git a/src/Cloud/Command/Command.php b/src/Cloud/Command/Command.php index 75eddeab..86791f06 100644 --- a/src/Cloud/Command/Command.php +++ b/src/Cloud/Command/Command.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud\Command; -interface Command {} +interface Command +{ +} diff --git a/src/Cloud/Command/Pipeline/AddAfterPipelineStepCommand.php b/src/Cloud/Command/Pipeline/AddAfterPipelineStepCommand.php index c2e927bf..6872ccdb 100644 --- a/src/Cloud/Command/Pipeline/AddAfterPipelineStepCommand.php +++ b/src/Cloud/Command/Pipeline/AddAfterPipelineStepCommand.php @@ -15,5 +15,6 @@ public function __construct( public PipelineId $pipeline, public StepCode $previous, public Step $step, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/AddBeforePipelineStepCommand.php b/src/Cloud/Command/Pipeline/AddBeforePipelineStepCommand.php index 3f95f747..e26cc528 100644 --- a/src/Cloud/Command/Pipeline/AddBeforePipelineStepCommand.php +++ b/src/Cloud/Command/Pipeline/AddBeforePipelineStepCommand.php @@ -15,5 +15,6 @@ public function __construct( public PipelineId $pipeline, public StepCode $next, public Step $step, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/AddPipelineComposerPSR4AutoloadCommand.php b/src/Cloud/Command/Pipeline/AddPipelineComposerPSR4AutoloadCommand.php index fd3dcb6e..0f702cfc 100644 --- a/src/Cloud/Command/Pipeline/AddPipelineComposerPSR4AutoloadCommand.php +++ b/src/Cloud/Command/Pipeline/AddPipelineComposerPSR4AutoloadCommand.php @@ -13,5 +13,6 @@ public function __construct( public PipelineId $pipeline, public string $namespace, public array $paths - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/AddPipelineStepProbeCommand.php b/src/Cloud/Command/Pipeline/AddPipelineStepProbeCommand.php index 5cf4b464..b7714a27 100644 --- a/src/Cloud/Command/Pipeline/AddPipelineStepProbeCommand.php +++ b/src/Cloud/Command/Pipeline/AddPipelineStepProbeCommand.php @@ -13,5 +13,6 @@ public function __construct( public DTO\PipelineId $pipeline, public DTO\StepCode $stepCode, public DTO\Probe $probe, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/AppendPipelineStepCommand.php b/src/Cloud/Command/Pipeline/AppendPipelineStepCommand.php index 00d4a033..c2196f05 100644 --- a/src/Cloud/Command/Pipeline/AppendPipelineStepCommand.php +++ b/src/Cloud/Command/Pipeline/AppendPipelineStepCommand.php @@ -13,5 +13,6 @@ final class AppendPipelineStepCommand implements Command public function __construct( public PipelineId $pipeline, public Step $step, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/CompilePipelineCommand.php b/src/Cloud/Command/Pipeline/CompilePipelineCommand.php index f1ed2e17..51ccd81f 100644 --- a/src/Cloud/Command/Pipeline/CompilePipelineCommand.php +++ b/src/Cloud/Command/Pipeline/CompilePipelineCommand.php @@ -11,5 +11,6 @@ final class CompilePipelineCommand implements Command { public function __construct( public PipelineId $pipeline - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/DeclarePipelineCommand.php b/src/Cloud/Command/Pipeline/DeclarePipelineCommand.php index 9d4d4d90..dca6f23d 100644 --- a/src/Cloud/Command/Pipeline/DeclarePipelineCommand.php +++ b/src/Cloud/Command/Pipeline/DeclarePipelineCommand.php @@ -19,5 +19,6 @@ public function __construct( public DTO\AuthList $auths, public DTO\OrganizationId $organizationId, public DTO\WorkspaceId $project, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/MoveAfterPipelineStepCommand.php b/src/Cloud/Command/Pipeline/MoveAfterPipelineStepCommand.php index cf9debe2..9bf1e90f 100644 --- a/src/Cloud/Command/Pipeline/MoveAfterPipelineStepCommand.php +++ b/src/Cloud/Command/Pipeline/MoveAfterPipelineStepCommand.php @@ -14,5 +14,6 @@ public function __construct( public PipelineId $pipeline, public StepCode $previous, public StepCode $current, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/MoveBeforePipelineStepCommand.php b/src/Cloud/Command/Pipeline/MoveBeforePipelineStepCommand.php index 6cd0808b..5dcd7879 100644 --- a/src/Cloud/Command/Pipeline/MoveBeforePipelineStepCommand.php +++ b/src/Cloud/Command/Pipeline/MoveBeforePipelineStepCommand.php @@ -14,5 +14,6 @@ public function __construct( public PipelineId $pipeline, public StepCode $next, public StepCode $current, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/PrependPipelineStepCommand.php b/src/Cloud/Command/Pipeline/PrependPipelineStepCommand.php index c82e2569..c88c2584 100644 --- a/src/Cloud/Command/Pipeline/PrependPipelineStepCommand.php +++ b/src/Cloud/Command/Pipeline/PrependPipelineStepCommand.php @@ -13,5 +13,6 @@ final class PrependPipelineStepCommand implements Command public function __construct( public PipelineId $pipeline, public Step $step, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/RemovePipelineCommand.php b/src/Cloud/Command/Pipeline/RemovePipelineCommand.php index 87dce957..7127aaa9 100644 --- a/src/Cloud/Command/Pipeline/RemovePipelineCommand.php +++ b/src/Cloud/Command/Pipeline/RemovePipelineCommand.php @@ -11,5 +11,6 @@ final class RemovePipelineCommand implements Command { public function __construct( public PipelineId $pipeline, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/RemovePipelineStepCommand.php b/src/Cloud/Command/Pipeline/RemovePipelineStepCommand.php index e8cc6377..7574dbcf 100644 --- a/src/Cloud/Command/Pipeline/RemovePipelineStepCommand.php +++ b/src/Cloud/Command/Pipeline/RemovePipelineStepCommand.php @@ -13,5 +13,6 @@ final class RemovePipelineStepCommand implements Command public function __construct( public PipelineId $pipeline, public StepCode $code, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/RemovePipelineStepProbeCommand.php b/src/Cloud/Command/Pipeline/RemovePipelineStepProbeCommand.php index 10908ae6..9e568949 100644 --- a/src/Cloud/Command/Pipeline/RemovePipelineStepProbeCommand.php +++ b/src/Cloud/Command/Pipeline/RemovePipelineStepProbeCommand.php @@ -13,5 +13,6 @@ public function __construct( public DTO\PipelineId $pipeline, public DTO\StepCode $stepCode, public DTO\Probe $probe, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Pipeline/ReplacePipelineStepCommand.php b/src/Cloud/Command/Pipeline/ReplacePipelineStepCommand.php index d84fd1de..23f20555 100644 --- a/src/Cloud/Command/Pipeline/ReplacePipelineStepCommand.php +++ b/src/Cloud/Command/Pipeline/ReplacePipelineStepCommand.php @@ -15,5 +15,6 @@ public function __construct( public PipelineId $pipeline, public StepCode $former, public Step $step, - ) {} + ) { + } } diff --git a/src/Cloud/CommandBus.php b/src/Cloud/CommandBus.php index 3510fb42..940c0695 100644 --- a/src/Cloud/CommandBus.php +++ b/src/Cloud/CommandBus.php @@ -16,7 +16,8 @@ final class CommandBus public function __construct( private readonly array $handlers - ) {} + ) { + } public static function withStandardHandlers(Client $client): self { diff --git a/src/Cloud/CompilePipelineFailedException.php b/src/Cloud/CompilePipelineFailedException.php index 8579f327..08ca46eb 100644 --- a/src/Cloud/CompilePipelineFailedException.php +++ b/src/Cloud/CompilePipelineFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class CompilePipelineFailedException extends \RuntimeException {} +class CompilePipelineFailedException extends \RuntimeException +{ +} diff --git a/src/Cloud/Context.php b/src/Cloud/Context.php index 98dc0787..56ddf252 100644 --- a/src/Cloud/Context.php +++ b/src/Cloud/Context.php @@ -14,7 +14,8 @@ public function __construct( private Api\Client $client, private Auth $auth, private string $url, - ) {} + ) { + } public function changeOrganization(OrganizationId $organization): void { diff --git a/src/Cloud/Credentials.php b/src/Cloud/Credentials.php index c6a7d643..d8b1105f 100644 --- a/src/Cloud/Credentials.php +++ b/src/Cloud/Credentials.php @@ -14,7 +14,8 @@ public function __construct( public string $password, public ?OrganizationId $organization = null, public ?WorkspaceId $workspace = null, - ) {} + ) { + } public function __debugInfo(): ?array { diff --git a/src/Cloud/DTO/Auth.php b/src/Cloud/DTO/Auth.php index 66358776..0e408c32 100644 --- a/src/Cloud/DTO/Auth.php +++ b/src/Cloud/DTO/Auth.php @@ -9,5 +9,6 @@ final class Auth public function __construct( public string $url, public string $token, - ) {} + ) { + } } diff --git a/src/Cloud/DTO/CredentialsInterface.php b/src/Cloud/DTO/CredentialsInterface.php index ee735296..6f216161 100644 --- a/src/Cloud/DTO/CredentialsInterface.php +++ b/src/Cloud/DTO/CredentialsInterface.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud\DTO; -interface CredentialsInterface {} +interface CredentialsInterface +{ +} diff --git a/src/Cloud/DTO/OrganizationId.php b/src/Cloud/DTO/OrganizationId.php index b89f7657..859eb202 100644 --- a/src/Cloud/DTO/OrganizationId.php +++ b/src/Cloud/DTO/OrganizationId.php @@ -8,7 +8,8 @@ { public function __construct( private string $reference, - ) {} + ) { + } public function isNil(): bool { diff --git a/src/Cloud/DTO/Package.php b/src/Cloud/DTO/Package.php index 2824d454..2023f935 100644 --- a/src/Cloud/DTO/Package.php +++ b/src/Cloud/DTO/Package.php @@ -9,5 +9,6 @@ final class Package public function __construct( public string $name, public string $version, - ) {} + ) { + } } diff --git a/src/Cloud/DTO/Pipeline.php b/src/Cloud/DTO/Pipeline.php index 7112f487..9d231de8 100644 --- a/src/Cloud/DTO/Pipeline.php +++ b/src/Cloud/DTO/Pipeline.php @@ -14,7 +14,8 @@ public function __construct( private PackageList $packages, private RepositoryList $repositories, private AuthList $auths, - ) {} + ) { + } public function code(): string { diff --git a/src/Cloud/DTO/PipelineId.php b/src/Cloud/DTO/PipelineId.php index e4a2a9d8..8d9efd45 100644 --- a/src/Cloud/DTO/PipelineId.php +++ b/src/Cloud/DTO/PipelineId.php @@ -8,7 +8,8 @@ { public function __construct( private string $reference, - ) {} + ) { + } public function asString(): string { diff --git a/src/Cloud/DTO/Probe.php b/src/Cloud/DTO/Probe.php index 0d095392..4de343f5 100644 --- a/src/Cloud/DTO/Probe.php +++ b/src/Cloud/DTO/Probe.php @@ -10,5 +10,6 @@ public function __construct( public string $label, public string $code, public int $order, - ) {} + ) { + } } diff --git a/src/Cloud/DTO/ReferencedPipeline.php b/src/Cloud/DTO/ReferencedPipeline.php index e86a090e..05098b9a 100644 --- a/src/Cloud/DTO/ReferencedPipeline.php +++ b/src/Cloud/DTO/ReferencedPipeline.php @@ -9,7 +9,8 @@ public function __construct( private PipelineId $id, private Pipeline $decorated, - ) {} + ) { + } public function id(): PipelineId { diff --git a/src/Cloud/DTO/Repository.php b/src/Cloud/DTO/Repository.php index 5bafd5c1..4eb0007a 100644 --- a/src/Cloud/DTO/Repository.php +++ b/src/Cloud/DTO/Repository.php @@ -10,5 +10,6 @@ public function __construct( public string $name, public string $type, public string $url, - ) {} + ) { + } } diff --git a/src/Cloud/DTO/Step.php b/src/Cloud/DTO/Step.php index 2cfbcc25..ca0878f0 100644 --- a/src/Cloud/DTO/Step.php +++ b/src/Cloud/DTO/Step.php @@ -12,5 +12,6 @@ public function __construct( public array $config, public ProbeList $probes, public int $order, - ) {} + ) { + } } diff --git a/src/Cloud/DTO/StepCode.php b/src/Cloud/DTO/StepCode.php index 3836cdf5..615ecdb0 100644 --- a/src/Cloud/DTO/StepCode.php +++ b/src/Cloud/DTO/StepCode.php @@ -8,7 +8,8 @@ { public function __construct( private string $reference, - ) {} + ) { + } public function asString(): string { diff --git a/src/Cloud/DTO/WorkspaceId.php b/src/Cloud/DTO/WorkspaceId.php index 3780e665..d9f48074 100644 --- a/src/Cloud/DTO/WorkspaceId.php +++ b/src/Cloud/DTO/WorkspaceId.php @@ -8,7 +8,8 @@ { public function __construct( private string $reference, - ) {} + ) { + } public function isNil(): bool { diff --git a/src/Cloud/DeclarePipelineFailedException.php b/src/Cloud/DeclarePipelineFailedException.php index 24e9d55c..0f91e60d 100644 --- a/src/Cloud/DeclarePipelineFailedException.php +++ b/src/Cloud/DeclarePipelineFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class DeclarePipelineFailedException extends \RuntimeException {} +class DeclarePipelineFailedException extends \RuntimeException +{ +} diff --git a/src/Cloud/Diff/CodeDoesNotMatchException.php b/src/Cloud/Diff/CodeDoesNotMatchException.php index af7def54..925047b8 100644 --- a/src/Cloud/Diff/CodeDoesNotMatchException.php +++ b/src/Cloud/Diff/CodeDoesNotMatchException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud\Diff; -final class CodeDoesNotMatchException extends \RuntimeException {} +final class CodeDoesNotMatchException extends \RuntimeException +{ +} diff --git a/src/Cloud/Diff/LabelDoesNotMatchException.php b/src/Cloud/Diff/LabelDoesNotMatchException.php index 9fc9d5a6..0a1023d8 100644 --- a/src/Cloud/Diff/LabelDoesNotMatchException.php +++ b/src/Cloud/Diff/LabelDoesNotMatchException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud\Diff; -final class LabelDoesNotMatchException extends \RuntimeException {} +final class LabelDoesNotMatchException extends \RuntimeException +{ +} diff --git a/src/Cloud/Diff/OrderDoesNotMatchException.php b/src/Cloud/Diff/OrderDoesNotMatchException.php index 01ad2e4b..0538224f 100644 --- a/src/Cloud/Diff/OrderDoesNotMatchException.php +++ b/src/Cloud/Diff/OrderDoesNotMatchException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud\Diff; -final class OrderDoesNotMatchException extends \RuntimeException {} +final class OrderDoesNotMatchException extends \RuntimeException +{ +} diff --git a/src/Cloud/Diff/StepDiff.php b/src/Cloud/Diff/StepDiff.php index 7336e147..94f8ef48 100644 --- a/src/Cloud/Diff/StepDiff.php +++ b/src/Cloud/Diff/StepDiff.php @@ -10,7 +10,8 @@ { public function __construct( private DTO\PipelineId $pipelineId, - ) {} + ) { + } public function diff(DTO\Step $left, DTO\Step $right): DTO\CommandBatch { diff --git a/src/Cloud/Diff/StepListDiff.php b/src/Cloud/Diff/StepListDiff.php index 9b7ecbc5..d3893062 100644 --- a/src/Cloud/Diff/StepListDiff.php +++ b/src/Cloud/Diff/StepListDiff.php @@ -11,7 +11,8 @@ { public function __construct( private DTO\PipelineId $pipelineId, - ) {} + ) { + } public function diff(DTO\StepList $left, DTO\StepList $right): DTO\CommandBatch { diff --git a/src/Cloud/Event/AddedAfterPipelineStep.php b/src/Cloud/Event/AddedAfterPipelineStep.php index 983e3778..f3f1ec37 100644 --- a/src/Cloud/Event/AddedAfterPipelineStep.php +++ b/src/Cloud/Event/AddedAfterPipelineStep.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/AddedBeforePipelineStep.php b/src/Cloud/Event/AddedBeforePipelineStep.php index 9c20f5da..145966a8 100644 --- a/src/Cloud/Event/AddedBeforePipelineStep.php +++ b/src/Cloud/Event/AddedBeforePipelineStep.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/AddedPipelineComposerPSR4Autoload.php b/src/Cloud/Event/AddedPipelineComposerPSR4Autoload.php index c39f257c..a2e08015 100644 --- a/src/Cloud/Event/AddedPipelineComposerPSR4Autoload.php +++ b/src/Cloud/Event/AddedPipelineComposerPSR4Autoload.php @@ -10,7 +10,8 @@ public function __construct( private string $id, private string $namespace, private array $paths, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/AddedPipelineStepProbe.php b/src/Cloud/Event/AddedPipelineStepProbe.php index 9b23ae63..34ebf00f 100644 --- a/src/Cloud/Event/AddedPipelineStepProbe.php +++ b/src/Cloud/Event/AddedPipelineStepProbe.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/AppendedPipelineStep.php b/src/Cloud/Event/AppendedPipelineStep.php index 11128a90..d43c8270 100644 --- a/src/Cloud/Event/AppendedPipelineStep.php +++ b/src/Cloud/Event/AppendedPipelineStep.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/CompiledPipeline.php b/src/Cloud/Event/CompiledPipeline.php index ffe3a56d..d97b6c1d 100644 --- a/src/Cloud/Event/CompiledPipeline.php +++ b/src/Cloud/Event/CompiledPipeline.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/PipelineDeclared.php b/src/Cloud/Event/PipelineDeclared.php index 40dabbf0..f8847566 100644 --- a/src/Cloud/Event/PipelineDeclared.php +++ b/src/Cloud/Event/PipelineDeclared.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/RemovedPipeline.php b/src/Cloud/Event/RemovedPipeline.php index ec50d64e..9dbc9290 100644 --- a/src/Cloud/Event/RemovedPipeline.php +++ b/src/Cloud/Event/RemovedPipeline.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/RemovedPipelineStep.php b/src/Cloud/Event/RemovedPipelineStep.php index 60fb22cb..7baf0cc3 100644 --- a/src/Cloud/Event/RemovedPipelineStep.php +++ b/src/Cloud/Event/RemovedPipelineStep.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/RemovedPipelineStepProbe.php b/src/Cloud/Event/RemovedPipelineStepProbe.php index f5446b9c..a8813133 100644 --- a/src/Cloud/Event/RemovedPipelineStepProbe.php +++ b/src/Cloud/Event/RemovedPipelineStepProbe.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/ReplacedPipelineStep.php b/src/Cloud/Event/ReplacedPipelineStep.php index 426f2703..f7c436e3 100644 --- a/src/Cloud/Event/ReplacedPipelineStep.php +++ b/src/Cloud/Event/ReplacedPipelineStep.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Handler/Pipeline/AddAfterPipelineStepCommandHandler.php b/src/Cloud/Handler/Pipeline/AddAfterPipelineStepCommandHandler.php index b3d94222..e07d1f9a 100644 --- a/src/Cloud/Handler/Pipeline/AddAfterPipelineStepCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/AddAfterPipelineStepCommandHandler.php @@ -12,7 +12,8 @@ { public function __construct( private Api\Client $client, - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\AddAfterPipelineStepCommand $command): Cloud\Event\AddedAfterPipelineStep { diff --git a/src/Cloud/Handler/Pipeline/AddBeforePipelineStepCommandHandler.php b/src/Cloud/Handler/Pipeline/AddBeforePipelineStepCommandHandler.php index ab5cb2fa..680679bd 100644 --- a/src/Cloud/Handler/Pipeline/AddBeforePipelineStepCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/AddBeforePipelineStepCommandHandler.php @@ -12,7 +12,8 @@ { public function __construct( private Api\Client $client, - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\AddBeforePipelineStepCommand $command): Cloud\Event\AddedBeforePipelineStep { diff --git a/src/Cloud/Handler/Pipeline/AddPipelineComposerPSR4AutoloadCommandHandler.php b/src/Cloud/Handler/Pipeline/AddPipelineComposerPSR4AutoloadCommandHandler.php index e9f8a365..c7dbc610 100644 --- a/src/Cloud/Handler/Pipeline/AddPipelineComposerPSR4AutoloadCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/AddPipelineComposerPSR4AutoloadCommandHandler.php @@ -11,7 +11,8 @@ { public function __construct( private Api\Client $client - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\AddPipelineComposerPSR4AutoloadCommand $command): Cloud\Event\AddedPipelineComposerPSR4Autoload { diff --git a/src/Cloud/Handler/Pipeline/AddPipelineStepProbeCommandHandler.php b/src/Cloud/Handler/Pipeline/AddPipelineStepProbeCommandHandler.php index 599a9567..97f84f15 100644 --- a/src/Cloud/Handler/Pipeline/AddPipelineStepProbeCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/AddPipelineStepProbeCommandHandler.php @@ -11,7 +11,8 @@ { public function __construct( private Api\Client $client - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\AddPipelineStepProbeCommand $command): Cloud\Event\AddedPipelineStepProbe { diff --git a/src/Cloud/Handler/Pipeline/AppendPipelineStepCommandHandler.php b/src/Cloud/Handler/Pipeline/AppendPipelineStepCommandHandler.php index 1d873bf7..54687946 100644 --- a/src/Cloud/Handler/Pipeline/AppendPipelineStepCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/AppendPipelineStepCommandHandler.php @@ -12,7 +12,8 @@ { public function __construct( private Api\Client $client, - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\AppendPipelineStepCommand $command): Cloud\Event\AppendedPipelineStep { diff --git a/src/Cloud/Handler/Pipeline/CompilePipelineCommandHandler.php b/src/Cloud/Handler/Pipeline/CompilePipelineCommandHandler.php index c4b2156e..b9312e48 100644 --- a/src/Cloud/Handler/Pipeline/CompilePipelineCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/CompilePipelineCommandHandler.php @@ -11,7 +11,8 @@ { public function __construct( private Api\Client $client - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\CompilePipelineCommand $command): Cloud\Event\CompiledPipeline { diff --git a/src/Cloud/Handler/Pipeline/DeclarePipelineCommandHandler.php b/src/Cloud/Handler/Pipeline/DeclarePipelineCommandHandler.php index b2747f8e..d45588d1 100644 --- a/src/Cloud/Handler/Pipeline/DeclarePipelineCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/DeclarePipelineCommandHandler.php @@ -14,7 +14,8 @@ { public function __construct( private Api\Client $client, - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\DeclarePipelineCommand $command): Cloud\Event\PipelineDeclared { diff --git a/src/Cloud/Handler/Pipeline/RemovePipelineCommandHandler.php b/src/Cloud/Handler/Pipeline/RemovePipelineCommandHandler.php index ad015fbe..33c4b1a7 100644 --- a/src/Cloud/Handler/Pipeline/RemovePipelineCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/RemovePipelineCommandHandler.php @@ -11,7 +11,8 @@ { public function __construct( private Api\Client $client - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\RemovePipelineCommand $command): Cloud\Event\RemovedPipeline { diff --git a/src/Cloud/Handler/Pipeline/RemovePipelineStepCommandHandler.php b/src/Cloud/Handler/Pipeline/RemovePipelineStepCommandHandler.php index 3e84ac0a..623e325e 100644 --- a/src/Cloud/Handler/Pipeline/RemovePipelineStepCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/RemovePipelineStepCommandHandler.php @@ -11,7 +11,8 @@ { public function __construct( private Api\Client $client - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\RemovePipelineStepCommand $command): Cloud\Event\RemovedPipelineStep { diff --git a/src/Cloud/Handler/Pipeline/RemovePipelineStepProbeCommandHandler.php b/src/Cloud/Handler/Pipeline/RemovePipelineStepProbeCommandHandler.php index d240a599..b09aa58b 100644 --- a/src/Cloud/Handler/Pipeline/RemovePipelineStepProbeCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/RemovePipelineStepProbeCommandHandler.php @@ -11,7 +11,8 @@ { public function __construct( private Api\Client $client - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\RemovePipelineStepProbeCommand $command): Cloud\Event\RemovedPipelineStepProbe { diff --git a/src/Cloud/Handler/Pipeline/ReplacePipelineStepCommandHandler.php b/src/Cloud/Handler/Pipeline/ReplacePipelineStepCommandHandler.php index a49ded93..cc9ab593 100644 --- a/src/Cloud/Handler/Pipeline/ReplacePipelineStepCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/ReplacePipelineStepCommandHandler.php @@ -12,7 +12,8 @@ { public function __construct( private Api\Client $client, - ) {} + ) { + } public function __invoke(Cloud\Command\Pipeline\ReplacePipelineStepCommand $command): Cloud\Event\ReplacedPipelineStep { diff --git a/src/Cloud/NoOrganizationSelectedException.php b/src/Cloud/NoOrganizationSelectedException.php index 4e3177c0..2b096330 100644 --- a/src/Cloud/NoOrganizationSelectedException.php +++ b/src/Cloud/NoOrganizationSelectedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -final class NoOrganizationSelectedException extends \RuntimeException {} +final class NoOrganizationSelectedException extends \RuntimeException +{ +} diff --git a/src/Cloud/NoWorkspaceSelectedException.php b/src/Cloud/NoWorkspaceSelectedException.php index a79fe989..7029ae68 100644 --- a/src/Cloud/NoWorkspaceSelectedException.php +++ b/src/Cloud/NoWorkspaceSelectedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -final class NoWorkspaceSelectedException extends \RuntimeException {} +final class NoWorkspaceSelectedException extends \RuntimeException +{ +} diff --git a/src/Cloud/Pipeline.php b/src/Cloud/Pipeline.php index 2a3e9a1d..52d3e80d 100644 --- a/src/Cloud/Pipeline.php +++ b/src/Cloud/Pipeline.php @@ -18,7 +18,8 @@ { public function __construct( private Context $context, - ) {} + ) { + } public static function fromLegacyConfiguration(array $configuration): DTO\Pipeline { @@ -82,7 +83,7 @@ function (string $namespace) { ); } - public static function fromApiWithId(Api\Client $client, PipelineId $id, array $configuration): DTO\ReferencedPipeline + public static function fromApiWithId(Api\Client $client, PipelineId $id, array $configuration): ReferencedPipeline { $item = $client->getPipelineItem($id->asString()); @@ -98,7 +99,7 @@ public static function fromApiWithId(Api\Client $client, PipelineId $id, array $ ); } - public static function fromApiWithCode(Api\Client $client, string $code, array $configuration): DTO\ReferencedPipeline + public static function fromApiWithCode(Api\Client $client, string $code, array $configuration): ReferencedPipeline { $collection = $client->getPipelineCollection(['code' => $code]); @@ -198,7 +199,7 @@ public function create(DTO\PipelineInterface $pipeline): DTO\CommandBatch ); } - public function update(DTO\ReferencedPipeline $actual, DTO\PipelineInterface $desired): DTO\CommandBatch + public function update(ReferencedPipeline $actual, DTO\PipelineInterface $desired): DTO\CommandBatch { if ($actual->code() !== $desired->code()) { throw new \RuntimeException('Code does not match between actual and desired pipeline definition.'); @@ -219,7 +220,7 @@ public function update(DTO\ReferencedPipeline $actual, DTO\PipelineInterface $de return new DTO\CommandBatch(...$commands); } - public function remove(DTO\PipelineId $id): DTO\CommandBatch + public function remove(PipelineId $id): DTO\CommandBatch { return new DTO\CommandBatch( new Command\Pipeline\RemovePipelineCommand($id), diff --git a/src/Cloud/PipelineInterface.php b/src/Cloud/PipelineInterface.php index ae03a156..30792e4f 100644 --- a/src/Cloud/PipelineInterface.php +++ b/src/Cloud/PipelineInterface.php @@ -19,5 +19,5 @@ public function create(DTO\PipelineInterface $pipeline): DTO\CommandBatch; public function update(DTO\ReferencedPipeline $actual, DTO\PipelineInterface $desired): DTO\CommandBatch; - public function remove(DTO\PipelineId $id): DTO\CommandBatch; + public function remove(PipelineId $id): DTO\CommandBatch; } diff --git a/src/Cloud/RemovePipelineFailedException.php b/src/Cloud/RemovePipelineFailedException.php index 6eea6fb0..1bceb7a9 100644 --- a/src/Cloud/RemovePipelineFailedException.php +++ b/src/Cloud/RemovePipelineFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class RemovePipelineFailedException extends \RuntimeException {} +class RemovePipelineFailedException extends \RuntimeException +{ +} diff --git a/src/Cloud/RemovePipelineStepFailedException.php b/src/Cloud/RemovePipelineStepFailedException.php index 076054d4..ff4b117b 100644 --- a/src/Cloud/RemovePipelineStepFailedException.php +++ b/src/Cloud/RemovePipelineStepFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class RemovePipelineStepFailedException extends \RuntimeException {} +class RemovePipelineStepFailedException extends \RuntimeException +{ +} diff --git a/src/Cloud/RemovePipelineStepProbeFailedException.php b/src/Cloud/RemovePipelineStepProbeFailedException.php index 000f7b99..4b3f3766 100644 --- a/src/Cloud/RemovePipelineStepProbeFailedException.php +++ b/src/Cloud/RemovePipelineStepProbeFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class RemovePipelineStepProbeFailedException extends \RuntimeException {} +class RemovePipelineStepProbeFailedException extends \RuntimeException +{ +} diff --git a/src/Cloud/ReplacePipelineStepFailedException.php b/src/Cloud/ReplacePipelineStepFailedException.php index bc5b6662..c5fb27bc 100644 --- a/src/Cloud/ReplacePipelineStepFailedException.php +++ b/src/Cloud/ReplacePipelineStepFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class ReplacePipelineStepFailedException extends \RuntimeException {} +class ReplacePipelineStepFailedException extends \RuntimeException +{ +} diff --git a/src/Composer/Accumulator.php b/src/Composer/Accumulator.php index 4ddd67b4..5e4488d8 100644 --- a/src/Composer/Accumulator.php +++ b/src/Composer/Accumulator.php @@ -12,7 +12,9 @@ final class Accumulator implements \IteratorAggregate, \Stringable /** @var iterable|PackageInterface[] */ private iterable $packages = []; - public function __construct() {} + public function __construct() + { + } public function append(PackageInterface ...$packages): self { diff --git a/src/ComposerScripts.php b/src/ComposerScripts.php index d89e8c4a..e3ef1ccf 100644 --- a/src/ComposerScripts.php +++ b/src/ComposerScripts.php @@ -15,7 +15,7 @@ final class ComposerScripts public static function postInstall(Event $event): void { self::updatePlugins( - $packages = new Composer\Accumulator(), + $packages = new Accumulator(), $repository = $event->getComposer() ->getRepositoryManager() ->getLocalRepository(), @@ -26,7 +26,7 @@ public static function postInstall(Event $event): void public static function postUpdate(Event $event): void { self::updatePlugins( - $packages = new Composer\Accumulator(), + $packages = new Accumulator(), $repository = $event->getComposer() ->getRepositoryManager() ->getLocalRepository(), diff --git a/src/ConfigLoader.php b/src/ConfigLoader.php index ef4fc22e..f299dfe0 100644 --- a/src/ConfigLoader.php +++ b/src/ConfigLoader.php @@ -8,9 +8,11 @@ use Kiboko\Contract\Configurator\InvalidConfigurationException; use Symfony\Component\Config; -class ConfigLoader implements ConfigLoaderInterface +class ConfigLoader implements Satellite\ConfigLoaderInterface { - public function __construct(private readonly string $basePath) {} + public function __construct(private readonly string $basePath) + { + } /** @return \Generator */ private function load( diff --git a/src/Console/Command/BuildCommand.php b/src/Console/Command/BuildCommand.php index 2d1487b9..997eb0a9 100644 --- a/src/Console/Command/BuildCommand.php +++ b/src/Console/Command/BuildCommand.php @@ -111,7 +111,8 @@ public function log($level, $message, array $context = []): void new class($output) extends Log\AbstractLogger { public function __construct( private readonly Console\Output\OutputInterface $output, - ) {} + ) { + } public function log($level, $message, array $context = []): void { @@ -125,6 +126,6 @@ public function log($level, $message, array $context = []): void } } - return \Symfony\Component\Console\Command\Command::SUCCESS; + return Console\Command\Command::SUCCESS; } } diff --git a/src/Console/Command/HookRunCommand.php b/src/Console/Command/HookRunCommand.php index 6a538c29..bd379795 100644 --- a/src/Console/Command/HookRunCommand.php +++ b/src/Console/Command/HookRunCommand.php @@ -31,7 +31,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int if (!file_exists($input->getArgument('path').'/vendor/autoload.php')) { $style->error('Nothing is compiled at the provided path'); - return \Symfony\Component\Console\Command\Command::FAILURE; + return Console\Command\Command::FAILURE; } $cwd = getcwd(); @@ -45,6 +45,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int chdir($cwd); - return \Symfony\Component\Console\Command\Command::SUCCESS; + return Console\Command\Command::SUCCESS; } } diff --git a/src/Console/Command/PipelineRunCommand.php b/src/Console/Command/PipelineRunCommand.php index 6f31bf52..36da8f05 100644 --- a/src/Console/Command/PipelineRunCommand.php +++ b/src/Console/Command/PipelineRunCommand.php @@ -33,7 +33,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int if (!file_exists($input->getArgument('path').'/vendor/autoload.php')) { $style->error('There is no compiled pipeline at the provided path'); - return \Symfony\Component\Console\Command\Command::FAILURE; + return Console\Command\Command::FAILURE; } $cwd = getcwd(); @@ -69,7 +69,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int if (!file_exists('pipeline.php')) { $style->error('The provided path does not contain one single pipeline, did you mean to run "run:workflow"?'); - return \Symfony\Component\Console\Command\Command::FAILURE; + return Console\Command\Command::FAILURE; } /** @var callable(runtime: PipelineRuntimeInterface): \Runtime $pipeline */ $pipeline = include 'pipeline.php'; @@ -85,7 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int chdir($cwd); - return \Symfony\Component\Console\Command\Command::SUCCESS; + return Console\Command\Command::SUCCESS; } private function formatTime(float $time): string diff --git a/src/Console/Command/ValidateCommand.php b/src/Console/Command/ValidateCommand.php index 2ae8db02..4490b8e0 100644 --- a/src/Console/Command/ValidateCommand.php +++ b/src/Console/Command/ValidateCommand.php @@ -76,6 +76,6 @@ protected function execute(Console\Input\InputInterface $input, Console\Output\O $style->writeln(json_encode($configuration, \JSON_PRETTY_PRINT)); - return \Symfony\Component\Console\Command\Command::SUCCESS; + return Console\Command\Command::SUCCESS; } } diff --git a/src/Console/Command/WorkflowRunCommand.php b/src/Console/Command/WorkflowRunCommand.php index 56cf2c15..ddcc63b1 100644 --- a/src/Console/Command/WorkflowRunCommand.php +++ b/src/Console/Command/WorkflowRunCommand.php @@ -33,7 +33,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int if (!file_exists($input->getArgument('path').'/vendor/autoload.php')) { $style->error('There is no compiled workflow at the provided path'); - return \Symfony\Component\Console\Command\Command::FAILURE; + return Console\Command\Command::FAILURE; } $cwd = getcwd(); @@ -64,7 +64,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int if (!file_exists('workflow.php')) { $style->error('The provided path does not contain a workflow, did you mean to run "run:pipeline"?'); - return \Symfony\Component\Console\Command\Command::FAILURE; + return Console\Command\Command::FAILURE; } /** @var callable(runtime: WorkflowRuntimeInterface): \Runtime $workflow */ $workflow = include 'workflow.php'; @@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int chdir($cwd); - return \Symfony\Component\Console\Command\Command::SUCCESS; + return Console\Command\Command::SUCCESS; } private function formatTime(float $time): string diff --git a/src/Console/RuntimeContext.php b/src/Console/RuntimeContext.php index f6881227..7aea20ab 100644 --- a/src/Console/RuntimeContext.php +++ b/src/Console/RuntimeContext.php @@ -12,7 +12,8 @@ public function __construct( private string $workingDirectory, private ExpressionLanguage $expressionLanguage, - ) {} + ) { + } public function workingDirectory(): string { diff --git a/src/Feature/Logger/Builder/Logger.php b/src/Feature/Logger/Builder/Logger.php index 47e68552..024565f7 100644 --- a/src/Feature/Logger/Builder/Logger.php +++ b/src/Feature/Logger/Builder/Logger.php @@ -9,7 +9,9 @@ final class Logger implements Builder { - public function __construct(private ?Node\Expr $logger = null) {} + public function __construct(private ?Node\Expr $logger = null) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Feature/Logger/Builder/LogstashFormatterBuilder.php b/src/Feature/Logger/Builder/LogstashFormatterBuilder.php index d9bdbb46..5c293e70 100644 --- a/src/Feature/Logger/Builder/LogstashFormatterBuilder.php +++ b/src/Feature/Logger/Builder/LogstashFormatterBuilder.php @@ -9,7 +9,9 @@ final readonly class LogstashFormatterBuilder implements Builder { - public function __construct(private string $applicationName) {} + public function __construct(private string $applicationName) + { + } public function getNode(): Node\Expr { diff --git a/src/Feature/Logger/Builder/Monolog/ElasticSearchBuilder.php b/src/Feature/Logger/Builder/Monolog/ElasticSearchBuilder.php index be01985f..53e79c75 100644 --- a/src/Feature/Logger/Builder/Monolog/ElasticSearchBuilder.php +++ b/src/Feature/Logger/Builder/Monolog/ElasticSearchBuilder.php @@ -18,7 +18,9 @@ final class ElasticSearchBuilder implements MonologBuilderInterface private iterable $hosts = []; private iterable $formatters = []; - public function __construct(private readonly ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) {} + public function __construct(private readonly ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) + { + } public function withLevel(string $level): self { diff --git a/src/Feature/Logger/Builder/Monolog/MonologBuilderInterface.php b/src/Feature/Logger/Builder/Monolog/MonologBuilderInterface.php index d49f6da5..93291db0 100644 --- a/src/Feature/Logger/Builder/Monolog/MonologBuilderInterface.php +++ b/src/Feature/Logger/Builder/Monolog/MonologBuilderInterface.php @@ -6,4 +6,6 @@ use PhpParser\Builder; -interface MonologBuilderInterface extends Builder {} +interface MonologBuilderInterface extends Builder +{ +} diff --git a/src/Feature/Logger/Builder/Monolog/StreamBuilder.php b/src/Feature/Logger/Builder/Monolog/StreamBuilder.php index 13e608c1..5a4e427b 100644 --- a/src/Feature/Logger/Builder/Monolog/StreamBuilder.php +++ b/src/Feature/Logger/Builder/Monolog/StreamBuilder.php @@ -13,7 +13,9 @@ final class StreamBuilder implements MonologBuilderInterface private ?bool $useLocking = false; private iterable $formatters = []; - public function __construct(private readonly string $path) {} + public function __construct(private readonly string $path) + { + } public function withLevel(string $level): self { diff --git a/src/Feature/Logger/Builder/Monolog/SyslogBuilder.php b/src/Feature/Logger/Builder/Monolog/SyslogBuilder.php index 0e041b6b..be583dd3 100644 --- a/src/Feature/Logger/Builder/Monolog/SyslogBuilder.php +++ b/src/Feature/Logger/Builder/Monolog/SyslogBuilder.php @@ -13,7 +13,9 @@ final class SyslogBuilder implements MonologBuilderInterface private ?int $logopts = null; private iterable $formatters = []; - public function __construct(private readonly string $ident) {} + public function __construct(private readonly string $ident) + { + } public function withLevel(string $level): self { diff --git a/src/Feature/Logger/Builder/MonologLogger.php b/src/Feature/Logger/Builder/MonologLogger.php index 77902236..6bc89885 100644 --- a/src/Feature/Logger/Builder/MonologLogger.php +++ b/src/Feature/Logger/Builder/MonologLogger.php @@ -12,7 +12,9 @@ final class MonologLogger implements Builder private iterable $handlers = []; private iterable $processors = []; - public function __construct(private readonly string $channel) {} + public function __construct(private readonly string $channel) + { + } public function withHandlers(Node\Expr ...$handlers): self { diff --git a/src/Feature/Logger/Factory/ElasticSearchFactory.php b/src/Feature/Logger/Factory/ElasticSearchFactory.php index 7e265448..4e681b5a 100644 --- a/src/Feature/Logger/Factory/ElasticSearchFactory.php +++ b/src/Feature/Logger/Factory/ElasticSearchFactory.php @@ -53,7 +53,7 @@ public function validate(array $config): bool return false; } - public function compile(array $config): Repository\ElasticSearchRepository + public function compile(array $config): Logger\Factory\Repository\ElasticSearchRepository { $builder = new Logger\Builder\Monolog\ElasticSearchBuilder($this->interpreter); @@ -69,6 +69,6 @@ public function compile(array $config): Repository\ElasticSearchRepository $builder->withIndex($config['index']); } - return new Repository\ElasticSearchRepository($builder); + return new Logger\Factory\Repository\ElasticSearchRepository($builder); } } diff --git a/src/Feature/Logger/Factory/GelfFactory.php b/src/Feature/Logger/Factory/GelfFactory.php index c7017afe..d510c07d 100644 --- a/src/Feature/Logger/Factory/GelfFactory.php +++ b/src/Feature/Logger/Factory/GelfFactory.php @@ -50,7 +50,7 @@ public function validate(array $config): bool return false; } - public function compile(array $config): Repository\GelfRepository + public function compile(array $config): Logger\Factory\Repository\GelfRepository { $builder = new Logger\Builder\Monolog\GelfBuilder(); @@ -74,6 +74,6 @@ public function compile(array $config): Repository\GelfRepository ); } - return new Repository\GelfRepository($builder); + return new Logger\Factory\Repository\GelfRepository($builder); } } diff --git a/src/Feature/Logger/Factory/StreamFactory.php b/src/Feature/Logger/Factory/StreamFactory.php index 0048058d..2c98d56c 100644 --- a/src/Feature/Logger/Factory/StreamFactory.php +++ b/src/Feature/Logger/Factory/StreamFactory.php @@ -50,7 +50,7 @@ public function validate(array $config): bool return false; } - public function compile(array $config): Repository\StreamRepository + public function compile(array $config): Logger\Factory\Repository\StreamRepository { $builder = new Logger\Builder\Monolog\StreamBuilder($config['path']); @@ -66,6 +66,6 @@ public function compile(array $config): Repository\StreamRepository $builder->withLocking($config['use_locking']); } - return new Repository\StreamRepository($builder); + return new Logger\Factory\Repository\StreamRepository($builder); } } diff --git a/src/Feature/Logger/Factory/SyslogFactory.php b/src/Feature/Logger/Factory/SyslogFactory.php index 9d2ad46c..30d9fd6e 100644 --- a/src/Feature/Logger/Factory/SyslogFactory.php +++ b/src/Feature/Logger/Factory/SyslogFactory.php @@ -50,7 +50,7 @@ public function validate(array $config): bool return false; } - public function compile(array $config): Repository\SyslogRepository + public function compile(array $config): Logger\Factory\Repository\SyslogRepository { $builder = new Logger\Builder\Monolog\SyslogBuilder($config['ident']); @@ -66,6 +66,6 @@ public function compile(array $config): Repository\SyslogRepository $builder->withLogopts($config['logopts']); } - return new Repository\SyslogRepository($builder); + return new Logger\Factory\Repository\SyslogRepository($builder); } } diff --git a/src/Feature/Rejection/Builder/RabbitMQBuilder.php b/src/Feature/Rejection/Builder/RabbitMQBuilder.php index 0b2a4fc6..145a55cb 100644 --- a/src/Feature/Rejection/Builder/RabbitMQBuilder.php +++ b/src/Feature/Rejection/Builder/RabbitMQBuilder.php @@ -20,7 +20,8 @@ public function __construct( private readonly Node\Expr $port, private readonly Node\Expr $vhost, private readonly Node\Expr $topic, - ) {} + ) { + } public function withAuthentication( Node\Expr $user, @@ -43,25 +44,25 @@ public function withExchange( public function getNode(): Node\Expr { $args = [ - new Node\Arg($this->host, name: new Node\Identifier('host')), - new Node\Arg($this->vhost, name: new Node\Identifier('vhost')), - new Node\Arg($this->topic, name: new Node\Identifier('topic')), - new Node\Arg($this->stepUuid, name: new Node\Identifier('stepUuid')), + new Node\Arg($this->host, name: new Identifier('host')), + new Node\Arg($this->vhost, name: new Identifier('vhost')), + new Node\Arg($this->topic, name: new Identifier('topic')), + new Node\Arg($this->stepUuid, name: new Identifier('stepUuid')), ]; if (null !== $this->exchange) { - $args[] = new Node\Arg($this->exchange, name: new Node\Identifier('exchange')); + $args[] = new Node\Arg($this->exchange, name: new Identifier('exchange')); } if (null !== $this->port) { - $args[] = new Node\Arg($this->port, name: new Node\Identifier('port')); + $args[] = new Node\Arg($this->port, name: new Identifier('port')); } if (null !== $this->user) { array_push( $args, - new Node\Arg($this->user, name: new Node\Identifier('user')), - new Node\Arg($this->password, name: new Node\Identifier('password')), + new Node\Arg($this->user, name: new Identifier('user')), + new Node\Arg($this->password, name: new Identifier('password')), ); return new Node\Expr\StaticCall( diff --git a/src/Feature/Rejection/Builder/Rejection.php b/src/Feature/Rejection/Builder/Rejection.php index c24df18f..b7c5c263 100644 --- a/src/Feature/Rejection/Builder/Rejection.php +++ b/src/Feature/Rejection/Builder/Rejection.php @@ -11,7 +11,8 @@ final class Rejection implements Builder { public function __construct( private ?Node\Expr $rejection = null - ) {} + ) { + } public function withRejection(Node\Expr $rejection): void { diff --git a/src/Feature/Rejection/Factory/RabbitMQFactory.php b/src/Feature/Rejection/Factory/RabbitMQFactory.php index 7de68b4f..66813ca4 100644 --- a/src/Feature/Rejection/Factory/RabbitMQFactory.php +++ b/src/Feature/Rejection/Factory/RabbitMQFactory.php @@ -55,7 +55,7 @@ public function validate(array $config): bool return false; } - public function compile(array $config): Repository\RabbitMQRepository + public function compile(array $config): Rejection\Factory\Repository\RabbitMQRepository { $builder = new Rejection\Builder\RabbitMQBuilder( stepUuid: compileValueWhenExpression($this->interpreter, uniqid()), @@ -76,6 +76,6 @@ public function compile(array $config): Repository\RabbitMQRepository $builder->withExchange(compileValueWhenExpression($this->interpreter, $config['exchange'])); } - return new Repository\RabbitMQRepository($builder); + return new Rejection\Factory\Repository\RabbitMQRepository($builder); } } diff --git a/src/MissingAttributeException.php b/src/MissingAttributeException.php index 3076cba7..fba86f77 100644 --- a/src/MissingAttributeException.php +++ b/src/MissingAttributeException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite; -class MissingAttributeException extends \RuntimeException {} +class MissingAttributeException extends \RuntimeException +{ +} diff --git a/src/Pipeline/ConfigurationApplier.php b/src/Pipeline/ConfigurationApplier.php index 745c4581..7cf5dfb8 100644 --- a/src/Pipeline/ConfigurationApplier.php +++ b/src/Pipeline/ConfigurationApplier.php @@ -17,7 +17,8 @@ public function __construct( private readonly string $plugin, private readonly FactoryInterface $service, private readonly ExpressionLanguage $interpreter, - ) {} + ) { + } public function withExtractor(?string $key = 'extractor'): self { diff --git a/src/Pipeline/Extractor.php b/src/Pipeline/Extractor.php index 62005af2..fba381c6 100644 --- a/src/Pipeline/Extractor.php +++ b/src/Pipeline/Extractor.php @@ -15,7 +15,9 @@ final readonly class Extractor implements StepInterface { - public function __construct(private ?string $plugin, private ?string $key, private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) {} + public function __construct(private ?string $plugin, private ?string $key, private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) + { + } public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterface $repository): void { diff --git a/src/Pipeline/Loader.php b/src/Pipeline/Loader.php index 339111c8..d93561a4 100644 --- a/src/Pipeline/Loader.php +++ b/src/Pipeline/Loader.php @@ -15,7 +15,9 @@ final readonly class Loader implements StepInterface { - public function __construct(private ?string $plugin, private ?string $key, private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) {} + public function __construct(private ?string $plugin, private ?string $key, private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) + { + } public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterface $repository): void { diff --git a/src/Pipeline/Transformer.php b/src/Pipeline/Transformer.php index 8325b3a6..85edf3ed 100644 --- a/src/Pipeline/Transformer.php +++ b/src/Pipeline/Transformer.php @@ -15,7 +15,9 @@ final readonly class Transformer implements StepInterface { - public function __construct(private ?string $plugin, private ?string $key, private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) {} + public function __construct(private ?string $plugin, private ?string $key, private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) + { + } public function __invoke(array $config, Pipeline $pipeline, StepRepositoryInterface $repository): void { diff --git a/src/Plugin/Batching/Builder/Fork.php b/src/Plugin/Batching/Builder/Fork.php index d251caa3..cb23858c 100644 --- a/src/Plugin/Batching/Builder/Fork.php +++ b/src/Plugin/Batching/Builder/Fork.php @@ -13,7 +13,9 @@ final class Fork implements StepBuilderInterface private ?Node\Expr $rejection = null; private ?Node\Expr $state = null; - public function __construct(private Node\Expr $foreach, private readonly Node\Expr $do) {} + public function __construct(private Node\Expr $foreach, private readonly Node\Expr $do) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/Batching/Builder/Merge.php b/src/Plugin/Batching/Builder/Merge.php index 99c6e006..54faf87c 100644 --- a/src/Plugin/Batching/Builder/Merge.php +++ b/src/Plugin/Batching/Builder/Merge.php @@ -13,7 +13,9 @@ final class Merge implements StepBuilderInterface private ?Node\Expr $rejection = null; private ?Node\Expr $state = null; - public function __construct(private readonly int $size) {} + public function __construct(private readonly int $size) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/Batching/Repository.php b/src/Plugin/Batching/Repository.php index cb4d4e14..7c8514d7 100644 --- a/src/Plugin/Batching/Repository.php +++ b/src/Plugin/Batching/Repository.php @@ -11,7 +11,9 @@ final readonly class Repository implements Configurator\StepRepositoryInterface { - public function __construct(private Fork|Merge $builder) {} + public function __construct(private Fork|Merge $builder) + { + } public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): self { diff --git a/src/Plugin/Batching/Service.php b/src/Plugin/Batching/Service.php index 1c997c4d..5dbea56c 100644 --- a/src/Plugin/Batching/Service.php +++ b/src/Plugin/Batching/Service.php @@ -4,10 +4,10 @@ namespace Kiboko\Component\Satellite\Plugin\Batching; -use Kiboko\Component\SatelliteToolbox\Builder\PropertyPathBuilder; use Kiboko\Component\Satellite\ExpressionLanguage as Satellite; use Kiboko\Component\Satellite\Plugin\Batching\Builder\Fork; use Kiboko\Component\Satellite\Plugin\Batching\Builder\Merge; +use Kiboko\Component\SatelliteToolbox\Builder\PropertyPathBuilder; use Kiboko\Contract\Configurator; use PhpParser\Node\Expr\Variable; use Symfony\Component\Config\Definition\Exception as Symfony; diff --git a/src/Plugin/Custom/Builder/Extractor.php b/src/Plugin/Custom/Builder/Extractor.php index 9c25ccdb..1356fb21 100644 --- a/src/Plugin/Custom/Builder/Extractor.php +++ b/src/Plugin/Custom/Builder/Extractor.php @@ -13,7 +13,9 @@ final class Extractor implements StepBuilderInterface private ?Node\Expr $rejection = null; private ?Node\Expr $state = null; - public function __construct(private readonly Node\Expr $service, private readonly string $containerNamespace) {} + public function __construct(private readonly Node\Expr $service, private readonly string $containerNamespace) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/Custom/Builder/Loader.php b/src/Plugin/Custom/Builder/Loader.php index b0879c58..3b326a5f 100644 --- a/src/Plugin/Custom/Builder/Loader.php +++ b/src/Plugin/Custom/Builder/Loader.php @@ -13,7 +13,9 @@ final class Loader implements StepBuilderInterface private ?Node\Expr $rejection = null; private ?Node\Expr $state = null; - public function __construct(private Node\Expr $service, private readonly string $containerNamespace) {} + public function __construct(private Node\Expr $service, private readonly string $containerNamespace) + { + } public function withService(Node\Expr $service): self { diff --git a/src/Plugin/Custom/Builder/Transformer.php b/src/Plugin/Custom/Builder/Transformer.php index ced74d43..32f7d54d 100644 --- a/src/Plugin/Custom/Builder/Transformer.php +++ b/src/Plugin/Custom/Builder/Transformer.php @@ -13,7 +13,9 @@ final class Transformer implements StepBuilderInterface private ?Node\Expr $rejection = null; private ?Node\Expr $state = null; - public function __construct(private readonly Node\Expr $service, private readonly string $containerNamespace) {} + public function __construct(private readonly Node\Expr $service, private readonly string $containerNamespace) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/Custom/CustomBuilder.php b/src/Plugin/Custom/CustomBuilder.php index fdda9e31..c99ede75 100644 --- a/src/Plugin/Custom/CustomBuilder.php +++ b/src/Plugin/Custom/CustomBuilder.php @@ -13,7 +13,9 @@ final class CustomBuilder implements StepBuilderInterface private ?Node\Expr $rejection = null; private ?Node\Expr $state = null; - public function __construct(private readonly string $className) {} + public function __construct(private readonly string $className) + { + } public function withLogger(Node\Expr $logger): StepBuilderInterface { diff --git a/src/Plugin/Custom/Factory/Extractor.php b/src/Plugin/Custom/Factory/Extractor.php index 5690023d..848688bc 100644 --- a/src/Plugin/Custom/Factory/Extractor.php +++ b/src/Plugin/Custom/Factory/Extractor.php @@ -63,7 +63,7 @@ public function validate(array $config): bool /** * @throws Configurator\ConfigurationExceptionInterface */ - public function compile(array $config): Repository\Extractor + public function compile(array $config): Custom\Factory\Repository\Extractor { $containerName = sprintf('ProjectServiceContainer%s', ByteString::fromRandom(8)->toString()); @@ -74,7 +74,7 @@ public function compile(array $config): Repository\Extractor $container = (new SatelliteDependencyInjection(...$this->providers))($config); - $repository = new Repository\Extractor($builder); + $repository = new Custom\Factory\Repository\Extractor($builder); $dumper = new PhpDumper($container); $repository->addFiles( diff --git a/src/Plugin/Custom/Factory/Loader.php b/src/Plugin/Custom/Factory/Loader.php index 69a17a52..9fd5d1b3 100644 --- a/src/Plugin/Custom/Factory/Loader.php +++ b/src/Plugin/Custom/Factory/Loader.php @@ -63,7 +63,7 @@ public function validate(array $config): bool /** * @throws Configurator\ConfigurationExceptionInterface */ - public function compile(array $config): Repository\Loader + public function compile(array $config): Custom\Factory\Repository\Loader { $containerName = sprintf('ProjectServiceContainer%s', ByteString::fromRandom(8)->toString()); @@ -74,7 +74,7 @@ public function compile(array $config): Repository\Loader $container = (new SatelliteDependencyInjection(...$this->providers))($config); - $repository = new Repository\Loader($builder); + $repository = new Custom\Factory\Repository\Loader($builder); $dumper = new PhpDumper($container); $repository->addFiles( diff --git a/src/Plugin/Custom/Factory/Transformer.php b/src/Plugin/Custom/Factory/Transformer.php index 5beb12e3..e1c29e41 100644 --- a/src/Plugin/Custom/Factory/Transformer.php +++ b/src/Plugin/Custom/Factory/Transformer.php @@ -63,7 +63,7 @@ public function validate(array $config): bool /** * @throws Configurator\ConfigurationExceptionInterface */ - public function compile(array $config): Repository\Transformer + public function compile(array $config): Custom\Factory\Repository\Transformer { $containerName = sprintf('ProjectServiceContainer%s', ByteString::fromRandom(8)->toString()); @@ -74,7 +74,7 @@ public function compile(array $config): Repository\Transformer $container = (new SatelliteDependencyInjection(...$this->providers))($config); - $repository = new Repository\Transformer($builder); + $repository = new Custom\Factory\Repository\Transformer($builder); $dumper = new PhpDumper($container); $repository->addFiles( diff --git a/src/Plugin/Custom/Service.php b/src/Plugin/Custom/Service.php index 0818a8e4..aeac335b 100644 --- a/src/Plugin/Custom/Service.php +++ b/src/Plugin/Custom/Service.php @@ -27,7 +27,7 @@ public function __construct( private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage() ) { $this->processor = new Processor(); - $this->configuration = new Configuration(); + $this->configuration = new Custom\Configuration(); } public function interpreter(): ExpressionLanguage diff --git a/src/Plugin/FTP/Builder/Loader.php b/src/Plugin/FTP/Builder/Loader.php index 347a9f1c..13d9ec48 100644 --- a/src/Plugin/FTP/Builder/Loader.php +++ b/src/Plugin/FTP/Builder/Loader.php @@ -21,7 +21,9 @@ final class Loader implements StepBuilderInterface private iterable $putStatements = []; private array $serversMapping = []; - public function __construct(private readonly ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) {} + public function __construct(private readonly ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) + { + } public function addServerBasePath(Node\Expr $base_path): void { @@ -111,7 +113,7 @@ private function getPutNode($index, $server, $path, $content, $mode): array new Node\Expr\ArrayDimFetch( new Node\Expr\PropertyFetch( new Node\Expr\Variable('this'), - new Node\Identifier('servers') + new Identifier('servers') ), new Node\Scalar\LNumber($index), ), @@ -122,7 +124,7 @@ private function getPutNode($index, $server, $path, $content, $mode): array new Node\Expr\ArrayDimFetch( new Node\Expr\PropertyFetch( new Node\Expr\Variable('this'), - new Node\Identifier('serversMapping') + new Identifier('serversMapping') ), dim: new Node\Scalar\LNumber($index), ), @@ -220,7 +222,7 @@ class: new Node\Stmt\Class_( ], 'stmts' => [ new Node\Stmt\ClassMethod( - name: new Node\Identifier('__construct'), + name: new Identifier('__construct'), subNodes: [ 'flags' => Node\Stmt\Class_::MODIFIER_PUBLIC, 'params' => [ @@ -253,7 +255,7 @@ class: new Node\Stmt\Class_( new Node\Expr\ArrayDimFetch( new Node\Expr\PropertyFetch( new Node\Expr\Variable('this'), - new Node\Identifier('servers') + new Identifier('servers') ), new Node\Scalar\LNumber($index), ), @@ -267,7 +269,7 @@ class: new Node\Stmt\Class_( ], ), new Node\Stmt\ClassMethod( - name: new Node\Identifier('load'), + name: new Identifier('load'), subNodes: [ 'flags' => Node\Stmt\Class_::MODIFIER_PUBLIC, 'stmts' => [ @@ -313,7 +315,7 @@ class: new Node\Name\FullyQualified('Kiboko\\Component\\Bucket\\ComplexResultBuc ], ), new Node\Stmt\ClassMethod( - name: new Node\Identifier('createDirectories'), + name: new Identifier('createDirectories'), subNodes: [ 'flags' => Node\Stmt\Class_::MODIFIER_PUBLIC, 'returnType' => new Node\Expr\ConstFetch(new Node\Name('void')), @@ -526,7 +528,7 @@ public function compileCloseServers(): array new Node\Expr\ArrayDimFetch( var: new Node\Expr\PropertyFetch( var: new Node\Expr\Variable('this'), - name: new Node\Identifier('servers') + name: new Identifier('servers') ), dim: new Node\Scalar\LNumber($key), ), diff --git a/src/Plugin/FTP/Builder/Server.php b/src/Plugin/FTP/Builder/Server.php index 24c15c2d..5f3ccfe0 100644 --- a/src/Plugin/FTP/Builder/Server.php +++ b/src/Plugin/FTP/Builder/Server.php @@ -18,7 +18,9 @@ final class Server implements StepBuilderInterface private ?Node\Expr $passiveMode = null; private ?Node\Expr $basePath = null; - public function __construct(private readonly Node\Expr $host, private ?Node\Expr $port = null, private ?Node\Expr $timeout = null) {} + public function __construct(private readonly Node\Expr $host, private ?Node\Expr $port = null, private ?Node\Expr $timeout = null) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/FTP/Factory/Repository/Repository.php b/src/Plugin/FTP/Factory/Repository/Repository.php index 81b74abf..856bd27d 100644 --- a/src/Plugin/FTP/Factory/Repository/Repository.php +++ b/src/Plugin/FTP/Factory/Repository/Repository.php @@ -10,7 +10,9 @@ final readonly class Repository implements Configurator\StepRepositoryInterface { - public function __construct(private Builder\Loader|Builder\Server $builder) {} + public function __construct(private Builder\Loader|Builder\Server $builder) + { + } public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): self { diff --git a/src/Plugin/Filtering/Builder/Drop.php b/src/Plugin/Filtering/Builder/Drop.php index 088a8456..32ae3f7e 100644 --- a/src/Plugin/Filtering/Builder/Drop.php +++ b/src/Plugin/Filtering/Builder/Drop.php @@ -4,10 +4,7 @@ namespace Kiboko\Component\Satellite\Plugin\Filtering\Builder; -use Kiboko\Component\Bucket\AcceptanceResultBucket; -use Kiboko\Component\Bucket\RejectionResultBucket; use Kiboko\Contract\Configurator\StepBuilderInterface; -use Kiboko\Contract\Pipeline\TransformerInterface; use PhpParser\Builder; use PhpParser\Node; @@ -19,7 +16,9 @@ final class Drop implements StepBuilderInterface /** @var list */ private array $exclusions = []; - public function __construct() {} + public function __construct() + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/Filtering/Builder/Reject.php b/src/Plugin/Filtering/Builder/Reject.php index 0e5ab23a..12bfdfb6 100644 --- a/src/Plugin/Filtering/Builder/Reject.php +++ b/src/Plugin/Filtering/Builder/Reject.php @@ -4,10 +4,7 @@ namespace Kiboko\Component\Satellite\Plugin\Filtering\Builder; -use Kiboko\Component\Bucket\AcceptanceResultBucket; -use Kiboko\Component\Bucket\RejectionResultBucket; use Kiboko\Contract\Configurator\StepBuilderInterface; -use Kiboko\Contract\Pipeline\TransformerInterface; use PhpParser\Builder; use PhpParser\Node; @@ -19,7 +16,9 @@ final class Reject implements StepBuilderInterface /** @var list */ private array $exclusions = []; - public function __construct() {} + public function __construct() + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/Filtering/Factory/Drop.php b/src/Plugin/Filtering/Factory/Drop.php index 0736b536..4648a092 100644 --- a/src/Plugin/Filtering/Factory/Drop.php +++ b/src/Plugin/Filtering/Factory/Drop.php @@ -59,13 +59,13 @@ public function validate(array $config): bool /** * @throws Configurator\ConfigurationExceptionInterface */ - public function compile(array $config): Repository\Drop + public function compile(array $config): Filtering\Factory\Repository\Drop { $interpreter = clone $this->interpreter; $builder = new Filtering\Builder\Drop(); - $repository = new Repository\Drop($builder); + $repository = new Filtering\Factory\Repository\Drop($builder); foreach ($config as $condition) { $builder->withExclusions( diff --git a/src/Plugin/Filtering/Factory/Reject.php b/src/Plugin/Filtering/Factory/Reject.php index 73cb67a0..3de1a3c8 100644 --- a/src/Plugin/Filtering/Factory/Reject.php +++ b/src/Plugin/Filtering/Factory/Reject.php @@ -59,13 +59,13 @@ public function validate(array $config): bool /** * @throws Configurator\ConfigurationExceptionInterface */ - public function compile(array $config): Repository\Reject + public function compile(array $config): Filtering\Factory\Repository\Reject { $interpreter = clone $this->interpreter; $builder = new Filtering\Builder\Reject(); - $repository = new Repository\Reject($builder); + $repository = new Filtering\Factory\Repository\Reject($builder); foreach ($config as $condition) { $builder->withExclusions( diff --git a/src/Plugin/Filtering/Service.php b/src/Plugin/Filtering/Service.php index 8c04104b..364773a1 100644 --- a/src/Plugin/Filtering/Service.php +++ b/src/Plugin/Filtering/Service.php @@ -26,7 +26,7 @@ public function __construct( private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage() ) { $this->processor = new Processor(); - $this->configuration = new Configuration(); + $this->configuration = new Filtering\Configuration(); } public function interpreter(): ExpressionLanguage diff --git a/src/Plugin/SFTP/Builder/Extractor.php b/src/Plugin/SFTP/Builder/Extractor.php index fbe5a980..5ec450e4 100644 --- a/src/Plugin/SFTP/Builder/Extractor.php +++ b/src/Plugin/SFTP/Builder/Extractor.php @@ -19,7 +19,9 @@ final class Extractor implements StepBuilderInterface private iterable $servers = []; private iterable $putStatements = []; - public function __construct(private readonly ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) {} + public function __construct(private readonly ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/SFTP/Builder/Loader.php b/src/Plugin/SFTP/Builder/Loader.php index 5605835c..7f1629c4 100644 --- a/src/Plugin/SFTP/Builder/Loader.php +++ b/src/Plugin/SFTP/Builder/Loader.php @@ -19,7 +19,9 @@ final class Loader implements StepBuilderInterface private iterable $servers = []; private iterable $putStatements = []; - public function __construct(private readonly ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) {} + public function __construct(private readonly ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/SFTP/Builder/Server.php b/src/Plugin/SFTP/Builder/Server.php index d80753ef..dbbef64c 100644 --- a/src/Plugin/SFTP/Builder/Server.php +++ b/src/Plugin/SFTP/Builder/Server.php @@ -20,7 +20,9 @@ final class Server implements StepBuilderInterface private ?Node\Expr $privateKeyPassphrase = null; private ?Node\Expr $basePath = null; - public function __construct(private readonly Node\Expr $host, private ?Node\Expr $port = null) {} + public function __construct(private readonly Node\Expr $host, private ?Node\Expr $port = null) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/SFTP/Factory/Extractor.php b/src/Plugin/SFTP/Factory/Extractor.php index dc4e97ed..0d5ea13d 100644 --- a/src/Plugin/SFTP/Factory/Extractor.php +++ b/src/Plugin/SFTP/Factory/Extractor.php @@ -63,7 +63,7 @@ public function compile(array $config): Repository && \is_array($config['loader']['servers']) ) { foreach ($config['loader']['servers'] as $server) { - $serverFactory = new Server($this->interpreter); + $serverFactory = new SFTP\Factory\Server($this->interpreter); $loader = $serverFactory->compile($server); $serverBuilder = $loader->getBuilder(); diff --git a/src/Plugin/SFTP/Factory/Loader.php b/src/Plugin/SFTP/Factory/Loader.php index e24b3611..6ef47e8b 100644 --- a/src/Plugin/SFTP/Factory/Loader.php +++ b/src/Plugin/SFTP/Factory/Loader.php @@ -63,7 +63,7 @@ public function compile(array $config): Repository && \is_array($config['loader']['servers']) ) { foreach ($config['loader']['servers'] as $server) { - $serverFactory = new Server($this->interpreter); + $serverFactory = new SFTP\Factory\Server($this->interpreter); $loader = $serverFactory->compile($server); $serverBuilder = $loader->getBuilder(); diff --git a/src/Plugin/SFTP/Factory/Repository/Repository.php b/src/Plugin/SFTP/Factory/Repository/Repository.php index d6277f17..c6c8d21a 100644 --- a/src/Plugin/SFTP/Factory/Repository/Repository.php +++ b/src/Plugin/SFTP/Factory/Repository/Repository.php @@ -10,7 +10,9 @@ final readonly class Repository implements Configurator\StepRepositoryInterface { - public function __construct(private Builder\Loader|Builder\Server $builder) {} + public function __construct(private Builder\Loader|Builder\Server $builder) + { + } public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): self { diff --git a/src/Plugin/SFTP/UploadFileException.php b/src/Plugin/SFTP/UploadFileException.php index c957a278..f9f9d6c1 100644 --- a/src/Plugin/SFTP/UploadFileException.php +++ b/src/Plugin/SFTP/UploadFileException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Plugin\SFTP; -class UploadFileException extends \RuntimeException {} +class UploadFileException extends \RuntimeException +{ +} diff --git a/src/Plugin/Stream/Builder/DebugLoader.php b/src/Plugin/Stream/Builder/DebugLoader.php index e519401e..dfda9007 100644 --- a/src/Plugin/Stream/Builder/DebugLoader.php +++ b/src/Plugin/Stream/Builder/DebugLoader.php @@ -13,7 +13,9 @@ final class DebugLoader implements StepBuilderInterface private ?Node\Expr $rejection = null; private ?Node\Expr $state = null; - public function __construct(private readonly string $stream) {} + public function __construct(private readonly string $stream) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/Stream/Builder/JSONStreamLoader.php b/src/Plugin/Stream/Builder/JSONStreamLoader.php index a05434ba..cdae743d 100644 --- a/src/Plugin/Stream/Builder/JSONStreamLoader.php +++ b/src/Plugin/Stream/Builder/JSONStreamLoader.php @@ -13,7 +13,9 @@ final class JSONStreamLoader implements StepBuilderInterface private ?Node\Expr $rejection = null; private ?Node\Expr $state = null; - public function __construct(private readonly string $stream) {} + public function __construct(private readonly string $stream) + { + } public function withLogger(Node\Expr $logger): self { diff --git a/src/Plugin/Stream/Repository.php b/src/Plugin/Stream/Repository.php index c2f9b53c..68e3aeec 100644 --- a/src/Plugin/Stream/Repository.php +++ b/src/Plugin/Stream/Repository.php @@ -11,7 +11,8 @@ { public function __construct( private Builder\DebugLoader|Builder\JSONStreamLoader|Builder\StderrLoader|Builder\StdoutLoader $builder - ) {} + ) { + } public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): self { diff --git a/src/Runtime/Api/Runtime.php b/src/Runtime/Api/Runtime.php index e5800afd..3e0480c1 100644 --- a/src/Runtime/Api/Runtime.php +++ b/src/Runtime/Api/Runtime.php @@ -14,7 +14,9 @@ final readonly class Runtime implements Satellite\Runtime\RuntimeInterface { - public function __construct(private array $config, private string $filename = 'api.php') {} + public function __construct(private array $config, private string $filename = 'api.php') + { + } public function getFilename(): string { diff --git a/src/Runtime/HttpHook/Runtime.php b/src/Runtime/HttpHook/Runtime.php index 42fc142a..683a5d79 100644 --- a/src/Runtime/HttpHook/Runtime.php +++ b/src/Runtime/HttpHook/Runtime.php @@ -14,7 +14,9 @@ final readonly class Runtime implements Satellite\Runtime\RuntimeInterface { - public function __construct(private array $config, private string $filename = 'hook.php') {} + public function __construct(private array $config, private string $filename = 'hook.php') + { + } public function getFilename(): string { diff --git a/src/Runtime/Pipeline/Runtime.php b/src/Runtime/Pipeline/Runtime.php index df38dae7..19b68910 100644 --- a/src/Runtime/Pipeline/Runtime.php +++ b/src/Runtime/Pipeline/Runtime.php @@ -17,7 +17,8 @@ public function __construct( private array $config, private string $filename = 'pipeline.php' - ) {} + ) { + } public function getFilename(): string { diff --git a/src/Runtime/RuntimeChoice.php b/src/Runtime/RuntimeChoice.php index 02632825..3dccba45 100644 --- a/src/Runtime/RuntimeChoice.php +++ b/src/Runtime/RuntimeChoice.php @@ -14,9 +14,10 @@ public function __construct( private FactoryInterface $service, private Satellite\Adapter\AdapterChoice $adapterChoice, private LoggerInterface $logger, - ) {} + ) { + } - public function __invoke(array $configuration): RuntimeInterface + public function __invoke(array $configuration): Satellite\Runtime\RuntimeInterface { $satellite = ($this->adapterChoice)($configuration)->build(); diff --git a/src/Runtime/Workflow/Configuration.php b/src/Runtime/Workflow/Configuration.php index fec70034..2a2973a3 100644 --- a/src/Runtime/Workflow/Configuration.php +++ b/src/Runtime/Workflow/Configuration.php @@ -11,12 +11,12 @@ final readonly class Configuration implements Configurator\RuntimeConfigurationInterface { private Satellite\Runtime\Pipeline\Configuration $pipelineConfiguration; - private Satellite\Runtime\Workflow\Action\Configuration $actionConfiguration; + private Action\Configuration $actionConfiguration; public function __construct() { $this->pipelineConfiguration = new Satellite\Runtime\Pipeline\Configuration(); - $this->actionConfiguration = new Satellite\Runtime\Workflow\Action\Configuration(); + $this->actionConfiguration = new Action\Configuration(); } public function addPlugin(string $name, Configurator\PluginConfigurationInterface $plugin): self diff --git a/src/Runtime/Workflow/Runtime.php b/src/Runtime/Workflow/Runtime.php index 1d61ae30..4549a85e 100644 --- a/src/Runtime/Workflow/Runtime.php +++ b/src/Runtime/Workflow/Runtime.php @@ -14,7 +14,9 @@ final readonly class Runtime implements Satellite\Runtime\RuntimeInterface { - public function __construct(private array $config, private string $filename = 'workflow.php') {} + public function __construct(private array $config, private string $filename = 'workflow.php') + { + } public function getFilename(): string { diff --git a/src/SatelliteBuilderInterface.php b/src/SatelliteBuilderInterface.php index 02b62bba..b10011a0 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 6a76d89a..646776d0 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'); diff --git a/src/Service.php b/src/Service.php index 079ddec4..f0890971 100644 --- a/src/Service.php +++ b/src/Service.php @@ -128,7 +128,7 @@ public function registerAdapters(Configurator\Adapter\FactoryInterface ...$adapt foreach (expectAttributes($adapter, Configurator\Adapter::class) as $attribute) { $this->addAdapter($attribute, $adapter); } - } catch (MissingAttributeException) { + } catch (Satellite\MissingAttributeException) { } }