Skip to content

Commit 7d3b07d

Browse files
authored
Merge branch 'main' into fix/delete-old-action-files
2 parents 959451a + 89ed54f commit 7d3b07d

File tree

142 files changed

+740
-1016
lines changed

Some content is hidden

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

142 files changed

+740
-1016
lines changed

composer.lock

Lines changed: 602 additions & 649 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Action/Action.php

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

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

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

src/Action/ConfigurationApplier.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ public function __construct(
1717
private readonly string $plugin,
1818
private readonly FactoryInterface $service,
1919
private readonly ExpressionLanguage $interpreter,
20-
) {
21-
}
20+
) {}
2221

2322
public function withAction(): self
2423
{

src/Action/Custom/Builder/Action.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ 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)
16-
{
17-
}
15+
public function __construct(private readonly Node\Expr $service, private readonly string $containerNamespace) {}
1816

1917
public function withLogger(Node\Expr $logger): self
2018
{

src/Action/SFTP/Builder/Action.php

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

2423
public function withLogger(Node\Expr $logger): self
2524
{

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

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

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

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

src/Adapter/AdapterChoice.php

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

1615
public function __invoke(array $configuration): Configurator\SatelliteBuilderInterface
1716
{

src/Adapter/AdapterNotFoundException.php

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

55
namespace Kiboko\Component\Satellite\Adapter;
66

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

src/Adapter/Composer.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -174,20 +174,6 @@ public function autoload(array $autoloads): void
174174
file_put_contents($this->workdir.'/composer.json', json_encode($composer, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES));
175175
}
176176

177-
public function install(): void
178-
{
179-
$this->command(
180-
'composer',
181-
'install',
182-
'--prefer-dist',
183-
'--no-progress',
184-
'--prefer-stable',
185-
'--sort-packages',
186-
'--optimize-autoloader',
187-
'--no-dev',
188-
);
189-
}
190-
191177
public function addGithubRepository(string $name, string $url): void
192178
{
193179
$this->command(

src/Adapter/Docker/Factory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ public function __invoke(array $configuration): Configurator\SatelliteBuilderInt
6060
} else {
6161
$builder->withComposerFile(new Packaging\Asset\LocalFile('composer.json'));
6262
}
63-
if (file_exists('vendor')) {
64-
$builder->withDirectory(new Packaging\Directory('vendor/'));
65-
}
6663
}
6764

6865
if (\array_key_exists('autoload', $configuration['composer']) && \array_key_exists('psr4', $configuration['composer']['autoload'])) {

0 commit comments

Comments
 (0)