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..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 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..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/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 22a90add..a5bf11a3 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 $code, 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 6d868baf..478eb825 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 $code, string $pipelineFilename): self { 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 73fd2409..7220a9d3 100644 --- a/src/Cloud/Command/Pipeline/DeclarePipelineCommand.php +++ b/src/Cloud/Command/Pipeline/DeclarePipelineCommand.php @@ -16,5 +16,6 @@ public function __construct( public DTO\Composer $composer, 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/Command/Workflow/AddAfterWorkflowJobCommand.php b/src/Cloud/Command/Workflow/AddAfterWorkflowJobCommand.php index 50f598d8..ac120466 100644 --- a/src/Cloud/Command/Workflow/AddAfterWorkflowJobCommand.php +++ b/src/Cloud/Command/Workflow/AddAfterWorkflowJobCommand.php @@ -13,5 +13,6 @@ public function __construct( public DTO\WorkflowId $workflowId, public DTO\JobCode $code, public DTO\Workflow\JobInterface $job, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Workflow/DeclareWorkflowCommand.php b/src/Cloud/Command/Workflow/DeclareWorkflowCommand.php index 9c2f9081..eba01740 100644 --- a/src/Cloud/Command/Workflow/DeclareWorkflowCommand.php +++ b/src/Cloud/Command/Workflow/DeclareWorkflowCommand.php @@ -16,5 +16,6 @@ public function __construct( public DTO\Composer $composer, public DTO\OrganizationId $organizationId, public DTO\WorkspaceId $project, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Workflow/PrependWorkflowJobCommand.php b/src/Cloud/Command/Workflow/PrependWorkflowJobCommand.php index a6b532b2..c9004d14 100644 --- a/src/Cloud/Command/Workflow/PrependWorkflowJobCommand.php +++ b/src/Cloud/Command/Workflow/PrependWorkflowJobCommand.php @@ -12,5 +12,6 @@ final class PrependWorkflowJobCommand implements Command public function __construct( public DTO\WorkflowId $workflowId, public DTO\Workflow\JobInterface $job, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Workflow/RemoveWorkflowCommand.php b/src/Cloud/Command/Workflow/RemoveWorkflowCommand.php index 770b75c8..1b72f841 100644 --- a/src/Cloud/Command/Workflow/RemoveWorkflowCommand.php +++ b/src/Cloud/Command/Workflow/RemoveWorkflowCommand.php @@ -11,5 +11,6 @@ final class RemoveWorkflowCommand implements Command { public function __construct( public WorkflowId $id, - ) {} + ) { + } } diff --git a/src/Cloud/Command/Workflow/RemoveWorkflowJobCommand.php b/src/Cloud/Command/Workflow/RemoveWorkflowJobCommand.php index 4ee8b04e..f26684da 100644 --- a/src/Cloud/Command/Workflow/RemoveWorkflowJobCommand.php +++ b/src/Cloud/Command/Workflow/RemoveWorkflowJobCommand.php @@ -12,5 +12,6 @@ final class RemoveWorkflowJobCommand implements Command public function __construct( public DTO\WorkflowId $workflowId, public DTO\StepCode $stepCode, - ) {} + ) { + } } diff --git a/src/Cloud/CommandBus.php b/src/Cloud/CommandBus.php index 9011c091..ce856758 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/Composer.php b/src/Cloud/DTO/Composer.php index 51e59ed5..0805047a 100644 --- a/src/Cloud/DTO/Composer.php +++ b/src/Cloud/DTO/Composer.php @@ -11,7 +11,8 @@ public function __construct( private PackageList $packages, private RepositoryList $repositories, private AuthList $auths, - ) {} + ) { + } public function autoload(): Autoload { 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/JobCode.php b/src/Cloud/DTO/JobCode.php index bc4a291c..fd76d9f2 100644 --- a/src/Cloud/DTO/JobCode.php +++ b/src/Cloud/DTO/JobCode.php @@ -8,7 +8,8 @@ { public function __construct( private string $reference, - ) {} + ) { + } public function asString(): string { 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 51f11857..a5309031 100644 --- a/src/Cloud/DTO/Pipeline.php +++ b/src/Cloud/DTO/Pipeline.php @@ -11,7 +11,8 @@ public function __construct( private string $code, private StepList $steps, private Composer $composer, - ) {} + ) { + } 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 e404172c..d5c21f1f 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/ReferencedWorkflow.php b/src/Cloud/DTO/ReferencedWorkflow.php index 26ae0cfd..e338b089 100644 --- a/src/Cloud/DTO/ReferencedWorkflow.php +++ b/src/Cloud/DTO/ReferencedWorkflow.php @@ -9,7 +9,8 @@ public function __construct( private WorkflowId $id, private Workflow $decorated, - ) {} + ) { + } public function id(): WorkflowId { 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/SatelliteId.php b/src/Cloud/DTO/SatelliteId.php index 73314acf..355e25af 100644 --- a/src/Cloud/DTO/SatelliteId.php +++ b/src/Cloud/DTO/SatelliteId.php @@ -8,7 +8,8 @@ { public function __construct( private string $reference, - ) {} + ) { + } public function asString(): string { 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/Workflow.php b/src/Cloud/DTO/Workflow.php index b8ecba13..8bcfa7fe 100644 --- a/src/Cloud/DTO/Workflow.php +++ b/src/Cloud/DTO/Workflow.php @@ -11,7 +11,8 @@ public function __construct( private string $code, private JobList $jobs, private Composer $composer, - ) {} + ) { + } public function code(): string { diff --git a/src/Cloud/DTO/Workflow/Action.php b/src/Cloud/DTO/Workflow/Action.php index 9f7b948f..94d6d121 100644 --- a/src/Cloud/DTO/Workflow/Action.php +++ b/src/Cloud/DTO/Workflow/Action.php @@ -13,5 +13,6 @@ public function __construct( public JobCode $code, public array $configuration, public int $order, - ) {} + ) { + } } diff --git a/src/Cloud/DTO/Workflow/JobInterface.php b/src/Cloud/DTO/Workflow/JobInterface.php index 7d488e89..945e8044 100644 --- a/src/Cloud/DTO/Workflow/JobInterface.php +++ b/src/Cloud/DTO/Workflow/JobInterface.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud\DTO\Workflow; -interface JobInterface {} +interface JobInterface +{ +} diff --git a/src/Cloud/DTO/Workflow/Pipeline.php b/src/Cloud/DTO/Workflow/Pipeline.php index 111817d1..db0015fb 100644 --- a/src/Cloud/DTO/Workflow/Pipeline.php +++ b/src/Cloud/DTO/Workflow/Pipeline.php @@ -14,5 +14,6 @@ public function __construct( public JobCode $code, public StepList $stepList, public int $order, - ) {} + ) { + } } diff --git a/src/Cloud/DTO/WorkflowId.php b/src/Cloud/DTO/WorkflowId.php index 28d223e2..ab3319d4 100644 --- a/src/Cloud/DTO/WorkflowId.php +++ b/src/Cloud/DTO/WorkflowId.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/DeclareWorkflowFailedException.php b/src/Cloud/DeclareWorkflowFailedException.php index 5c9c38af..3808597e 100644 --- a/src/Cloud/DeclareWorkflowFailedException.php +++ b/src/Cloud/DeclareWorkflowFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class DeclareWorkflowFailedException extends \RuntimeException {} +class DeclareWorkflowFailedException 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/JobListDiff.php b/src/Cloud/Diff/JobListDiff.php index 0a67ed9b..1f8634eb 100644 --- a/src/Cloud/Diff/JobListDiff.php +++ b/src/Cloud/Diff/JobListDiff.php @@ -10,7 +10,8 @@ { public function __construct( private DTO\WorkflowId $workflowId, - ) {} + ) { + } public function diff(DTO\JobList $left, DTO\JobList $right): DTO\CommandBatch { 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/Event/Workflow/WorkflowDeclared.php b/src/Cloud/Event/Workflow/WorkflowDeclared.php index b737c424..6b6dcdf7 100644 --- a/src/Cloud/Event/Workflow/WorkflowDeclared.php +++ b/src/Cloud/Event/Workflow/WorkflowDeclared.php @@ -8,7 +8,8 @@ { public function __construct( private string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Event/Workflow/WorkflowRemoved.php b/src/Cloud/Event/Workflow/WorkflowRemoved.php index 33330f0e..59152c67 100644 --- a/src/Cloud/Event/Workflow/WorkflowRemoved.php +++ b/src/Cloud/Event/Workflow/WorkflowRemoved.php @@ -8,7 +8,8 @@ class WorkflowRemoved { public function __construct( private readonly string $id, - ) {} + ) { + } public function getId(): string { diff --git a/src/Cloud/Handler/Pipeline/AddAfterPipelineStepCommandHandler.php b/src/Cloud/Handler/Pipeline/AddAfterPipelineStepCommandHandler.php index efd3f8f9..d694c628 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 71890776..74390b24 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 c0483c70..6c869ad8 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 b781b53f..97fa00e5 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 fe131212..7b8c0b53 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 6ca027db..c434e0bf 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 d8da39d3..aa487e3f 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 60a2530a..cf4be559 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 7480ced7..313b6714 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 4b9e4879..e163f8ce 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 c1f35aec..b1782299 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/Handler/Workflow/DeclareWorkflowCommandHandler.php b/src/Cloud/Handler/Workflow/DeclareWorkflowCommandHandler.php index 24df3982..54bb1f33 100644 --- a/src/Cloud/Handler/Workflow/DeclareWorkflowCommandHandler.php +++ b/src/Cloud/Handler/Workflow/DeclareWorkflowCommandHandler.php @@ -12,7 +12,8 @@ { public function __construct( private Api\Client $client, - ) {} + ) { + } public function __invoke(Cloud\Command\Workflow\DeclareWorkflowCommand $command): Cloud\Event\Workflow\WorkflowDeclared { diff --git a/src/Cloud/Handler/Workflow/RemoveWorkflowCommandHandler.php b/src/Cloud/Handler/Workflow/RemoveWorkflowCommandHandler.php index 94a144f4..5bd2b43f 100644 --- a/src/Cloud/Handler/Workflow/RemoveWorkflowCommandHandler.php +++ b/src/Cloud/Handler/Workflow/RemoveWorkflowCommandHandler.php @@ -11,7 +11,8 @@ { public function __construct( private \Gyroscops\Api\Client $client, - ) {} + ) { + } public function __invoke(Cloud\Command\Workflow\RemoveWorkflowCommand $command): Cloud\Event\Workflow\WorkflowRemoved { 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 1fd24ad7..db4df383 100644 --- a/src/Cloud/Pipeline.php +++ b/src/Cloud/Pipeline.php @@ -19,7 +19,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/RemoveWorkflowFailedException.php b/src/Cloud/RemoveWorkflowFailedException.php index 1221647a..f40b6b36 100644 --- a/src/Cloud/RemoveWorkflowFailedException.php +++ b/src/Cloud/RemoveWorkflowFailedException.php @@ -4,4 +4,6 @@ namespace Kiboko\Component\Satellite\Cloud; -class RemoveWorkflowFailedException extends \RuntimeException {} +class RemoveWorkflowFailedException 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/Cloud/Workflow.php b/src/Cloud/Workflow.php index ac42f57d..60a2b8d1 100644 --- a/src/Cloud/Workflow.php +++ b/src/Cloud/Workflow.php @@ -22,7 +22,8 @@ { public function __construct( private Context $context, - ) {} + ) { + } public static function fromLegacyConfiguration(array $configuration): DTO\Workflow { 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 2d1487b9..828fb1a6 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 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/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 075a7f6d..7e8bca76 100644 --- a/src/Pipeline/Extractor.php +++ b/src/Pipeline/Extractor.php @@ -19,7 +19,8 @@ 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 26235559..849c5974 100644 --- a/src/Pipeline/Loader.php +++ b/src/Pipeline/Loader.php @@ -19,7 +19,8 @@ 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 26fcfa0e..74dc219a 100644 --- a/src/Pipeline/Transformer.php +++ b/src/Pipeline/Transformer.php @@ -19,7 +19,8 @@ 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 f2fb68a9..6726bca4 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 cb0450ec..93f3680b 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/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 5661abc7..f9a65d83 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 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 af56404f..b811ab8d 100644 --- a/src/Plugin/Filtering/Builder/Drop.php +++ b/src/Plugin/Filtering/Builder/Drop.php @@ -17,7 +17,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 2a12b5da..c39b9067 100644 --- a/src/Plugin/Filtering/Builder/Reject.php +++ b/src/Plugin/Filtering/Builder/Reject.php @@ -17,7 +17,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/SFTP/Builder/Extractor.php b/src/Plugin/SFTP/Builder/Extractor.php index d8c6557a..72e112f7 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 7a388401..86c07d76 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 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 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 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..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 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');