Skip to content

Commit ca4a50a

Browse files
committed
cs-fixer changes
1 parent 98d82d7 commit ca4a50a

File tree

163 files changed

+414
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+414
-215
lines changed

src/Action/Action.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515

1616
final readonly class Action
1717
{
18-
public function __construct(private ?string $plugin, private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage()) {}
18+
public function __construct(private ?string $plugin, private ExpressionLanguage $interpreter = new Satellite\ExpressionLanguage())
19+
{
20+
}
1921

2022
public function __invoke(array $config, ActionBuilder $action, RepositoryInterface $repository): void
2123
{

src/Action/ConfigurationApplier.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@
1010

1111
final class ConfigurationApplier
1212
{
13-
private ?Action $action = null;
13+
private ?Satellite\Action\Action $action = null;
1414
private array $packages = [];
1515

1616
public function __construct(
1717
private readonly string $plugin,
1818
private readonly FactoryInterface $service,
1919
private readonly ExpressionLanguage $interpreter,
20-
) {}
20+
) {
21+
}
2122

2223
public function withAction(): self
2324
{
24-
$this->action = new Action($this->plugin, clone $this->interpreter);
25+
$this->action = new Satellite\Action\Action($this->plugin, clone $this->interpreter);
2526

2627
return $this;
2728
}

src/Action/Custom/Builder/Action.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ final class Action implements ActionBuilderInterface
1212
private ?Node\Expr $logger = null;
1313
private ?Node\Expr $state = null;
1414

15-
public function __construct(private readonly Node\Expr $service, private readonly string $containerNamespace) {}
15+
public function __construct(private readonly Node\Expr $service, private readonly string $containerNamespace)
16+
{
17+
}
1618

1719
public function withLogger(Node\Expr $logger): self
1820
{

src/Action/Custom/Factory/Action.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function validate(array $config): bool
6363
/**
6464
* @throws Configurator\ConfigurationExceptionInterface
6565
*/
66-
public function compile(array $config): Repository\Action
66+
public function compile(array $config): Custom\Factory\Repository\Action
6767
{
6868
$containerName = sprintf('ProjectServiceContainer%s', ByteString::fromRandom(8)->toString());
6969

@@ -74,7 +74,7 @@ public function compile(array $config): Repository\Action
7474

7575
$container = (new SatelliteDependencyInjection(...$this->providers))($config);
7676

77-
$repository = new Repository\Action($builder);
77+
$repository = new Custom\Factory\Repository\Action($builder);
7878

7979
$dumper = new PhpDumper($container);
8080
$repository->addFiles(

src/Action/SFTP/Builder/Action.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public function __construct(
1818
private readonly Node\Expr $password,
1919
private readonly Node\Expr $localFilePath,
2020
private readonly Node\Expr $serverFilePath,
21-
) {}
21+
) {
22+
}
2223

2324
public function withLogger(Node\Expr $logger): self
2425
{

src/Action/SFTP/Factory/Repository/Repository.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
final readonly class Repository implements Configurator\RepositoryInterface
1212
{
13-
public function __construct(private Builder\Action $builder) {}
13+
public function __construct(private Builder\Action $builder)
14+
{
15+
}
1416

1517
public function addFiles(Packaging\DirectoryInterface|Packaging\FileInterface ...$files): self
1618
{

src/Adapter/AdapterChoice.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
{
1111
public function __construct(
1212
private array $adapters,
13-
) {}
13+
) {
14+
}
1415

1516
public function __invoke(array $configuration): Configurator\SatelliteBuilderInterface
1617
{
@@ -22,7 +23,7 @@ public function __invoke(array $configuration): Configurator\SatelliteBuilderInt
2223
}
2324
}
2425

25-
\assert($factory instanceof \Kiboko\Contract\Configurator\Adapter\FactoryInterface, new AdapterNotFoundException('No compatible adapter was found for your satellite configuration.'));
26+
\assert($factory instanceof Configurator\Adapter\FactoryInterface, new AdapterNotFoundException('No compatible adapter was found for your satellite configuration.'));
2627

2728
return $factory($configuration);
2829
}

src/Adapter/AdapterNotFoundException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
namespace Kiboko\Component\Satellite\Adapter;
66

7-
final class AdapterNotFoundException extends \RuntimeException {}
7+
final class AdapterNotFoundException extends \RuntimeException
8+
{
9+
}

src/Adapter/Docker/FileOrDirectoryNotFoundException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
namespace Kiboko\Component\Satellite\Adapter\Docker;
66

7-
class FileOrDirectoryNotFoundException extends \RuntimeException {}
7+
class FileOrDirectoryNotFoundException extends \RuntimeException
8+
{
9+
}

src/Adapter/Docker/NetworkInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
namespace Kiboko\Component\Satellite\Adapter\Docker;
66

7-
interface NetworkInterface {}
7+
interface NetworkInterface
8+
{
9+
}

0 commit comments

Comments
 (0)