diff --git a/adapter.php b/adapter.php index 26d3c04..c609cce 100644 --- a/adapter.php +++ b/adapter.php @@ -15,8 +15,9 @@ public function execute(): string; class AdapterImplementation implements Adapter { - public function __construct(private APIClass $apiClass) - { + public function __construct( + private APIClass $apiClass + ) { } public function execute(): string diff --git a/builder.php b/builder.php index 8aa41c0..5cdf6ae 100644 --- a/builder.php +++ b/builder.php @@ -50,8 +50,9 @@ private function setText(string $methodName): void class Director { - public function __construct(private Builder $builder) - { + public function __construct( + private Builder $builder + ) { } public function build(): string @@ -65,8 +66,9 @@ public function build(): string class Manager { - public function __construct(private StepABuilder $stepABuilder) - { + public function __construct( + private StepABuilder $stepABuilder + ) { } public function build(): string diff --git a/builder2.php b/builder2.php index 28dbbda..d1dd0fa 100644 --- a/builder2.php +++ b/builder2.php @@ -21,8 +21,9 @@ interface Builder extends StepABuilder, StepBBuilder class TextBuilderImplementation implements TextBuilder { - public function __construct(protected TextDTO $textDTO) - { + public function __construct( + protected TextDTO $textDTO + ) { } public function getText(): string @@ -70,8 +71,10 @@ class BuilderImplementation implements Builder { private TextBuilder $textBuilder; - public function __construct(private StepABuilder $stepABuilder, private StepBBuilder $stepBBuilder) - { + public function __construct( + private StepABuilder $stepABuilder, + private StepBBuilder $stepBBuilder + ) { $this->textBuilder = $stepABuilder; } @@ -97,8 +100,9 @@ public function getText(): string class Director { - public function __construct(private Builder $builder) - { + public function __construct( + private Builder $builder + ) { } public function build(): string @@ -112,8 +116,9 @@ public function build(): string class Manager { - public function __construct(private StepABuilder $stepABuilder) - { + public function __construct( + private StepABuilder $stepABuilder + ) { } public function build(): string diff --git a/command.php b/command.php index 2b408e4..5ad245d 100644 --- a/command.php +++ b/command.php @@ -23,8 +23,10 @@ public function execute(): string class Invoker { - public function __construct(private Command $commandA, private Command $commandB) - { + public function __construct( + private Command $commandA, + private Command $commandB + ) { } public function executeCommandA(): string diff --git a/decorator.php b/decorator.php index 3192495..b8ec994 100644 --- a/decorator.php +++ b/decorator.php @@ -15,8 +15,9 @@ public function execute(): string class ComponentADecorator implements Component { - public function __construct(private Component $component) - { + public function __construct( + private Component $component + ) { } public function execute(): string diff --git a/dependencyInjection.php b/dependencyInjection.php index 822f946..696274f 100644 --- a/dependencyInjection.php +++ b/dependencyInjection.php @@ -2,8 +2,10 @@ class Client { - public function __construct(private ServiceA $serviceA, private ServiceB $serviceB) - { + public function __construct( + private ServiceA $serviceA, + private ServiceB $serviceB + ) { } public function execute(): string diff --git a/facade.php b/facade.php index de45ef2..97ac582 100644 --- a/facade.php +++ b/facade.php @@ -28,8 +28,10 @@ public function process(): string class Facade { - public function __construct(private InterfaceA $interfaceA, private InterfaceB $interfaceB) - { + public function __construct( + private InterfaceA $interfaceA, + private InterfaceB $interfaceB + ) { } public function execute(): string diff --git a/mediator.php b/mediator.php index f089122..c46d70f 100644 --- a/mediator.php +++ b/mediator.php @@ -40,8 +40,10 @@ public function execute(): string class MediatorImplementation implements Mediator { - public function __construct(private ComponentA $componentA, private ComponentB $componentB) - { + public function __construct( + private ComponentA $componentA, + private ComponentB $componentB + ) { $this->componentA->setMediator($this); $this->componentB->setMediator($this); } diff --git a/mockObject.php b/mockObject.php index 55297bf..69c82f7 100644 --- a/mockObject.php +++ b/mockObject.php @@ -28,8 +28,10 @@ public function write(string $message): void class ActionClientUseCase { - public function __construct(private Service $service, private Logger $logger) - { + public function __construct( + private Service $service, + private Logger $logger + ) { } public function execute(): string diff --git a/proxy.php b/proxy.php index b58c842..5edc90a 100644 --- a/proxy.php +++ b/proxy.php @@ -15,8 +15,9 @@ public function execute(): string class Proxy implements Service { - public function __construct(private ServiceImplementation $serviceImplementation) - { + public function __construct( + private ServiceImplementation $serviceImplementation + ) { } public function execute(): string diff --git a/strategy.php b/strategy.php index 40b79ac..652b3b8 100644 --- a/strategy.php +++ b/strategy.php @@ -23,8 +23,9 @@ public function process(int $x, int $y): int class Context { - public function __construct(private Strategy $strategy) - { + public function __construct( + private Strategy $strategy + ) { } public function execute(int $x, int $y): int