From e9671a8292d94be312132f7d5cc92b67dba2f357 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 20 Oct 2023 09:50:18 +0200 Subject: [PATCH] use php cs fixer --- src/Action/Action.php | 4 +++- src/Action/ConfigurationApplier.php | 3 ++- src/Action/Custom/Builder/Action.php | 4 +++- src/Action/SFTP/Builder/Action.php | 3 ++- src/Action/SFTP/Factory/Repository/Repository.php | 4 +++- src/Adapter/AdapterChoice.php | 3 ++- src/Adapter/AdapterNotFoundException.php | 4 +++- src/Adapter/Docker/FileOrDirectoryNotFoundException.php | 4 +++- src/Adapter/Docker/NetworkInterface.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 +++- src/Cloud/AddAfterPipelineStepFailedException.php | 4 +++- src/Cloud/AddBeforePipelineStepFailedException.php | 4 +++- .../AddPipelineComposerPSR4AutoloadFailedException.php | 4 +++- src/Cloud/AddPipelineStepProbeFailedException.php | 4 +++- src/Cloud/AppendPipelineStepFailedException.php | 4 +++- src/Cloud/Command/Command.php | 4 +++- src/Cloud/Command/Pipeline/AddAfterPipelineStepCommand.php | 3 ++- src/Cloud/Command/Pipeline/AddBeforePipelineStepCommand.php | 3 ++- .../Pipeline/AddPipelineComposerPSR4AutoloadCommand.php | 3 ++- src/Cloud/Command/Pipeline/AddPipelineStepProbeCommand.php | 3 ++- src/Cloud/Command/Pipeline/AppendPipelineStepCommand.php | 3 ++- src/Cloud/Command/Pipeline/CompilePipelineCommand.php | 3 ++- src/Cloud/Command/Pipeline/DeclarePipelineCommand.php | 3 ++- src/Cloud/Command/Pipeline/MoveAfterPipelineStepCommand.php | 3 ++- .../Command/Pipeline/MoveBeforePipelineStepCommand.php | 3 ++- src/Cloud/Command/Pipeline/PrependPipelineStepCommand.php | 3 ++- src/Cloud/Command/Pipeline/RemovePipelineCommand.php | 3 ++- src/Cloud/Command/Pipeline/RemovePipelineStepCommand.php | 3 ++- .../Command/Pipeline/RemovePipelineStepProbeCommand.php | 3 ++- src/Cloud/Command/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 ++- src/Cloud/Event/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 ++- .../Handler/Pipeline/AddAfterPipelineStepCommandHandler.php | 3 ++- .../Pipeline/AddBeforePipelineStepCommandHandler.php | 3 ++- .../AddPipelineComposerPSR4AutoloadCommandHandler.php | 3 ++- .../Handler/Pipeline/AddPipelineStepProbeCommandHandler.php | 3 ++- .../Handler/Pipeline/AppendPipelineStepCommandHandler.php | 3 ++- .../Handler/Pipeline/CompilePipelineCommandHandler.php | 3 ++- .../Handler/Pipeline/DeclarePipelineCommandHandler.php | 3 ++- src/Cloud/Handler/Pipeline/RemovePipelineCommandHandler.php | 3 ++- .../Handler/Pipeline/RemovePipelineStepCommandHandler.php | 3 ++- .../Pipeline/RemovePipelineStepProbeCommandHandler.php | 3 ++- .../Handler/Pipeline/ReplacePipelineStepCommandHandler.php | 3 ++- src/Cloud/NoOrganizationSelectedException.php | 4 +++- src/Cloud/NoWorkspaceSelectedException.php | 4 +++- src/Cloud/Pipeline.php | 3 ++- src/Cloud/RemovePipelineFailedException.php | 4 +++- src/Cloud/RemovePipelineStepFailedException.php | 4 +++- src/Cloud/RemovePipelineStepProbeFailedException.php | 4 +++- src/Cloud/ReplacePipelineStepFailedException.php | 4 +++- src/Composer/Accumulator.php | 4 +++- src/ConfigLoader.php | 4 +++- src/Console/Command/BuildCommand.php | 3 ++- src/Console/RuntimeContext.php | 3 ++- src/Feature/Logger/Builder/Logger.php | 4 +++- src/Feature/Logger/Builder/LogstashFormatterBuilder.php | 4 +++- src/Feature/Logger/Builder/Monolog/ElasticSearchBuilder.php | 4 +++- .../Logger/Builder/Monolog/MonologBuilderInterface.php | 4 +++- src/Feature/Logger/Builder/Monolog/StreamBuilder.php | 4 +++- src/Feature/Logger/Builder/Monolog/SyslogBuilder.php | 4 +++- src/Feature/Logger/Builder/MonologLogger.php | 4 +++- src/Feature/Rejection/Builder/RabbitMQBuilder.php | 3 ++- src/Feature/Rejection/Builder/Rejection.php | 3 ++- 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/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/FTP/Builder/Loader.php | 4 +++- src/Plugin/FTP/Builder/Server.php | 4 +++- src/Plugin/FTP/Factory/Repository/Repository.php | 4 +++- src/Plugin/Filtering/Builder/Drop.php | 4 +++- src/Plugin/Filtering/Builder/Reject.php | 6 ++++-- src/Plugin/Filtering/Factory/Reject.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/Repository/Repository.php | 4 +++- src/Plugin/SFTP/UploadFileException.php | 4 +++- src/Plugin/Stream/Builder/DebugLoader.php | 4 +++- src/Plugin/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 | 3 ++- src/Runtime/Workflow/Runtime.php | 4 +++- 137 files changed, 343 insertions(+), 138 deletions(-) diff --git a/src/Action/Action.php b/src/Action/Action.php index 31cd2269..4e40eb23 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..1dcc4011 100644 --- a/src/Action/ConfigurationApplier.php +++ b/src/Action/ConfigurationApplier.php @@ -17,7 +17,8 @@ public function __construct( private readonly string $plugin, private readonly FactoryInterface $service, private readonly ExpressionLanguage $interpreter, - ) {} + ) { + } public function withAction(): self { 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/SFTP/Builder/Action.php b/src/Action/SFTP/Builder/Action.php index c20bc4d8..ea0ca1b5 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 278c67dd..f9f87a4a 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\FileInterface|Packaging\DirectoryInterface ...$files): self { diff --git a/src/Adapter/AdapterChoice.php b/src/Adapter/AdapterChoice.php index bbd617fe..8c5a3f7a 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 { 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/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 fea89225..fefd9944 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( Node\Expr|Builder $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 80aa8c8c..f7d20e60 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( Node\Expr|Builder $extractor, diff --git a/src/Builder/Repository/API.php b/src/Builder/Repository/API.php index 6f084207..9f222485 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\FileInterface|Packaging\DirectoryInterface ...$files): Configurator\RepositoryInterface { diff --git a/src/Builder/Repository/Action.php b/src/Builder/Repository/Action.php index 807566ea..7014d598 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\FileInterface|Packaging\DirectoryInterface ...$files): Configurator\RepositoryInterface { diff --git a/src/Builder/Repository/Hook.php b/src/Builder/Repository/Hook.php index 849f88a6..dd324616 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\FileInterface|Packaging\DirectoryInterface ...$files): Configurator\RepositoryInterface { diff --git a/src/Builder/Repository/Pipeline.php b/src/Builder/Repository/Pipeline.php index ac171e2d..c3dcef7d 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\FileInterface|Packaging\DirectoryInterface ...$files): Configurator\RepositoryInterface { diff --git a/src/Builder/Repository/Workflow.php b/src/Builder/Repository/Workflow.php index 23aac5b6..db633888 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\FileInterface|Packaging\DirectoryInterface ...$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 d0d77cd9..e9e162b4 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 ebe839d5..44481f52 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..70333a72 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 { 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/ConfigLoader.php b/src/ConfigLoader.php index ef4fc22e..5e4c6f69 100644 --- a/src/ConfigLoader.php +++ b/src/ConfigLoader.php @@ -10,7 +10,9 @@ class ConfigLoader implements 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 5e6ad29c..9b0da209 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 { 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 1bb4018a..a008cdc0 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/Rejection/Builder/RabbitMQBuilder.php b/src/Feature/Rejection/Builder/RabbitMQBuilder.php index 0b2a4fc6..45eef8d9 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, 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/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 c362d0bf..40ebcf3b 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 7f8748d6..957927a5 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 f710cf6c..c22e0fd9 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 2190c765..150e6ace 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 038a867d..a59cb873 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 23dd6c42..cba06d41 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 Merge|Fork $builder) {} + public function __construct(private Merge|Fork $builder) + { + } public function addFiles(Packaging\FileInterface|Packaging\DirectoryInterface ...$files): self { 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/FTP/Builder/Loader.php b/src/Plugin/FTP/Builder/Loader.php index 05e21f32..2bfdfb78 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 { 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 240170e9..8263b3bf 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\FileInterface|Packaging\DirectoryInterface ...$files): self { diff --git a/src/Plugin/Filtering/Builder/Drop.php b/src/Plugin/Filtering/Builder/Drop.php index 3b0ca092..1abb8402 100644 --- a/src/Plugin/Filtering/Builder/Drop.php +++ b/src/Plugin/Filtering/Builder/Drop.php @@ -19,7 +19,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 b3779a4c..e585e0b7 100644 --- a/src/Plugin/Filtering/Builder/Reject.php +++ b/src/Plugin/Filtering/Builder/Reject.php @@ -20,7 +20,9 @@ final class Reject implements StepBuilderInterface /** @var list */ private array $exclusions = []; - public function __construct() {} + public function __construct() + { + } public function withLogger(Node\Expr $logger): self { @@ -133,7 +135,7 @@ class: new Node\Stmt\Class_(null, [ new Node\Expr\New_( new Node\Name\FullyQualified(RejectionResultBucket::class), [ - $this->serialize_rejection !== null ? new Node\Arg($this->serialize_rejection) : new Node\Arg(new Node\Expr\Variable('input')) + null !== $this->serialize_rejection ? new Node\Arg($this->serialize_rejection) : new Node\Arg(new Node\Expr\Variable('input')), ] ), ), diff --git a/src/Plugin/Filtering/Factory/Reject.php b/src/Plugin/Filtering/Factory/Reject.php index 6fc25475..252c285a 100644 --- a/src/Plugin/Filtering/Factory/Reject.php +++ b/src/Plugin/Filtering/Factory/Reject.php @@ -71,7 +71,7 @@ public function compile(array $config): Repository\Reject $builder->withExclusions( compileExpression($interpreter, $condition['when']) ); - if (array_key_exists('serialize_rejection', $condition)) { + if (\array_key_exists('serialize_rejection', $condition)) { $builder->withSerialiazeRejection(compileExpression($interpreter, $condition['serialize_rejection'])); } } diff --git a/src/Plugin/SFTP/Builder/Extractor.php b/src/Plugin/SFTP/Builder/Extractor.php index 79d617ce..fcee987a 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 ef10c89b..d5c8d2d3 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/Repository/Repository.php b/src/Plugin/SFTP/Factory/Repository/Repository.php index 8ed17a76..a930b4a3 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\FileInterface|Packaging\DirectoryInterface ...$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 29465d20..b6736a78 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 14ccac66..dbce02a8 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 79bb0dff..2d5fa9b0 100644 --- a/src/Plugin/Stream/Repository.php +++ b/src/Plugin/Stream/Repository.php @@ -11,7 +11,8 @@ { public function __construct( private Builder\StderrLoader|Builder\StdoutLoader|Builder\JSONStreamLoader|Builder\DebugLoader $builder - ) {} + ) { + } public function addFiles(Packaging\FileInterface|Packaging\DirectoryInterface ...$files): self { diff --git a/src/Runtime/Api/Runtime.php b/src/Runtime/Api/Runtime.php index dad49187..b038ad4a 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 1fd29002..33c405ce 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..6e488822 100644 --- a/src/Runtime/RuntimeChoice.php +++ b/src/Runtime/RuntimeChoice.php @@ -14,7 +14,8 @@ public function __construct( private FactoryInterface $service, private Satellite\Adapter\AdapterChoice $adapterChoice, private LoggerInterface $logger, - ) {} + ) { + } public function __invoke(array $configuration): RuntimeInterface { diff --git a/src/Runtime/Workflow/Runtime.php b/src/Runtime/Workflow/Runtime.php index 847b9ce7..4f06458e 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 {