Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated php-etl dependencies #126

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 71 additions & 78 deletions composer.lock

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/Action/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

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
{
Expand Down
3 changes: 1 addition & 2 deletions src/Action/ConfigurationApplier.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
private readonly string $plugin,
private readonly FactoryInterface $service,
private readonly ExpressionLanguage $interpreter,
) {
}
) {}

public function withAction(): self
{
Expand Down
4 changes: 1 addition & 3 deletions src/Action/Custom/Builder/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ 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
{
Expand Down
3 changes: 1 addition & 2 deletions src/Action/SFTP/Builder/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ 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
{
Expand Down
4 changes: 1 addition & 3 deletions src/Action/SFTP/Factory/Repository/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

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
{
Expand Down
3 changes: 1 addition & 2 deletions src/Adapter/AdapterChoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
{
public function __construct(
private array $adapters,
) {
}
) {}

public function __invoke(array $configuration): Configurator\SatelliteBuilderInterface
{
Expand Down
4 changes: 1 addition & 3 deletions src/Adapter/AdapterNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Kiboko\Component\Satellite\Adapter;

final class AdapterNotFoundException extends \RuntimeException
{
}
final class AdapterNotFoundException extends \RuntimeException {}
4 changes: 1 addition & 3 deletions src/Adapter/Docker/NetworkInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Kiboko\Component\Satellite\Adapter\Docker;

interface NetworkInterface
{
}
interface NetworkInterface {}
4 changes: 1 addition & 3 deletions src/Builder/API/PipelineBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

final readonly class PipelineBuilder
{
public function __construct(private Builder $builder)
{
}
public function __construct(private Builder $builder) {}

public function getNode(): Node\Expr
{
Expand Down
3 changes: 1 addition & 2 deletions src/Builder/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ final class Action implements Builder

public function __construct(
private readonly Node\Expr $runtime,
) {
}
) {}

public function addAction(
Node\Expr|Builder $loader,
Expand Down
4 changes: 1 addition & 3 deletions src/Builder/Hook/PipelineBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

final readonly class PipelineBuilder
{
public function __construct(private Builder $builder)
{
}
public function __construct(private Builder $builder) {}

public function getNode(): Node\Expr
{
Expand Down
3 changes: 1 addition & 2 deletions src/Builder/Pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ final class Pipeline implements Builder

public function __construct(
private readonly Node\Expr $runtime
) {
}
) {}

public function addExtractor(
Node\Expr|Builder $extractor,
Expand Down
4 changes: 1 addition & 3 deletions src/Builder/Repository/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ 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
{
Expand Down
4 changes: 1 addition & 3 deletions src/Builder/Repository/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ 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
{
Expand Down
4 changes: 1 addition & 3 deletions src/Builder/Repository/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ 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
{
Expand Down
4 changes: 1 addition & 3 deletions src/Builder/Repository/Pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ 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
{
Expand Down
4 changes: 1 addition & 3 deletions src/Builder/Repository/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ 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
{
Expand Down
3 changes: 1 addition & 2 deletions src/Builder/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ final class Workflow implements Builder

public function __construct(
private readonly Node\Expr $runtime
) {
}
) {}

public function addPipeline(
string $pipelineFilename,
Expand Down
4 changes: 1 addition & 3 deletions src/Builder/Workflow/ActionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

final readonly class ActionBuilder implements Builder
{
public function __construct(private Builder $builder)
{
}
public function __construct(private Builder $builder) {}

public function getNode(): Node\Expr
{
Expand Down
4 changes: 1 addition & 3 deletions src/Builder/Workflow/PipelineBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

final readonly class PipelineBuilder implements Builder
{
public function __construct(private Builder $builder)
{
}
public function __construct(private Builder $builder) {}

public function getNode(): Node\Expr
{
Expand Down
4 changes: 1 addition & 3 deletions src/Cloud/AccessDeniedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Kiboko\Component\Satellite\Cloud;

final class AccessDeniedException extends \RuntimeException
{
}
final class AccessDeniedException extends \RuntimeException {}
4 changes: 1 addition & 3 deletions src/Cloud/AddAfterPipelineStepFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Kiboko\Component\Satellite\Cloud;

class AddAfterPipelineStepFailedException extends \RuntimeException
{
}
class AddAfterPipelineStepFailedException extends \RuntimeException {}
4 changes: 1 addition & 3 deletions src/Cloud/AddBeforePipelineStepFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Kiboko\Component\Satellite\Cloud;

class AddBeforePipelineStepFailedException extends \RuntimeException
{
}
class AddBeforePipelineStepFailedException extends \RuntimeException {}
4 changes: 1 addition & 3 deletions src/Cloud/AddPipelineComposerPSR4AutoloadFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Kiboko\Component\Satellite\Cloud;

class AddPipelineComposerPSR4AutoloadFailedException extends \RuntimeException
{
}
class AddPipelineComposerPSR4AutoloadFailedException extends \RuntimeException {}
4 changes: 1 addition & 3 deletions src/Cloud/AddPipelineStepProbeFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Kiboko\Component\Satellite\Cloud;

class AddPipelineStepProbeFailedException extends \RuntimeException
{
}
class AddPipelineStepProbeFailedException extends \RuntimeException {}
4 changes: 1 addition & 3 deletions src/Cloud/AppendPipelineStepFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Kiboko\Component\Satellite\Cloud;

class AppendPipelineStepFailedException extends \RuntimeException
{
}
class AppendPipelineStepFailedException extends \RuntimeException {}
4 changes: 1 addition & 3 deletions src/Cloud/Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Kiboko\Component\Satellite\Cloud\Command;

interface Command
{
}
interface Command {}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/AddAfterPipelineStepCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ public function __construct(
public PipelineId $pipeline,
public StepCode $previous,
public Step $step,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/AddBeforePipelineStepCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ public function __construct(
public PipelineId $pipeline,
public StepCode $next,
public Step $step,
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ public function __construct(
public PipelineId $pipeline,
public string $namespace,
public array $paths
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/AddPipelineStepProbeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ public function __construct(
public DTO\PipelineId $pipeline,
public DTO\StepCode $stepCode,
public DTO\Probe $probe,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/AppendPipelineStepCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ final class AppendPipelineStepCommand implements Command
public function __construct(
public PipelineId $pipeline,
public Step $step,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/CompilePipelineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ final class CompilePipelineCommand implements Command
{
public function __construct(
public PipelineId $pipeline
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/DeclarePipelineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ public function __construct(
public DTO\AuthList $auths,
public DTO\OrganizationId $organizationId,
public DTO\WorkspaceId $project,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/MoveAfterPipelineStepCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ public function __construct(
public PipelineId $pipeline,
public StepCode $previous,
public StepCode $current,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/MoveBeforePipelineStepCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ public function __construct(
public PipelineId $pipeline,
public StepCode $next,
public StepCode $current,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/PrependPipelineStepCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ final class PrependPipelineStepCommand implements Command
public function __construct(
public PipelineId $pipeline,
public Step $step,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/RemovePipelineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ final class RemovePipelineCommand implements Command
{
public function __construct(
public PipelineId $pipeline,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/RemovePipelineStepCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ final class RemovePipelineStepCommand implements Command
public function __construct(
public PipelineId $pipeline,
public StepCode $code,
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ public function __construct(
public DTO\PipelineId $pipeline,
public DTO\StepCode $stepCode,
public DTO\Probe $probe,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/Command/Pipeline/ReplacePipelineStepCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ public function __construct(
public PipelineId $pipeline,
public StepCode $former,
public Step $step,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Cloud/CommandBus.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ final class CommandBus

public function __construct(
private readonly array $handlers
) {
}
) {}

public static function withStandardHandlers(Client $client): self
{
Expand Down
4 changes: 1 addition & 3 deletions src/Cloud/CompilePipelineFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Kiboko\Component\Satellite\Cloud;

class CompilePipelineFailedException extends \RuntimeException
{
}
class CompilePipelineFailedException extends \RuntimeException {}
Loading