Skip to content

Commit ab1e2c1

Browse files
committed
Ran php-cs-fixer
1 parent c26c28d commit ab1e2c1

21 files changed

+42
-42
lines changed

src/Action/ConfigurationApplier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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(
@@ -22,7 +22,7 @@ public function __construct(
2222

2323
public function withAction(): self
2424
{
25-
$this->action = new Action($this->plugin, clone $this->interpreter);
25+
$this->action = new Satellite\Action\Action($this->plugin, clone $this->interpreter);
2626

2727
return $this;
2828
}

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/Adapter/AdapterChoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __invoke(array $configuration): Configurator\SatelliteBuilderInt
2323
}
2424
}
2525

26-
\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.'));
2727

2828
return $factory($configuration);
2929
}

src/Cloud/Pipeline.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function (string $namespace) {
8383
);
8484
}
8585

86-
public static function fromApiWithId(Api\Client $client, PipelineId $id, array $configuration): DTO\ReferencedPipeline
86+
public static function fromApiWithId(Api\Client $client, PipelineId $id, array $configuration): ReferencedPipeline
8787
{
8888
$item = $client->getPipelineItem($id->asString());
8989

@@ -99,7 +99,7 @@ public static function fromApiWithId(Api\Client $client, PipelineId $id, array $
9999
);
100100
}
101101

102-
public static function fromApiWithCode(Api\Client $client, string $code, array $configuration): DTO\ReferencedPipeline
102+
public static function fromApiWithCode(Api\Client $client, string $code, array $configuration): ReferencedPipeline
103103
{
104104
$collection = $client->getPipelineCollection(['code' => $code]);
105105

@@ -199,7 +199,7 @@ public function create(DTO\PipelineInterface $pipeline): DTO\CommandBatch
199199
);
200200
}
201201

202-
public function update(DTO\ReferencedPipeline $actual, DTO\PipelineInterface $desired): DTO\CommandBatch
202+
public function update(ReferencedPipeline $actual, DTO\PipelineInterface $desired): DTO\CommandBatch
203203
{
204204
if ($actual->code() !== $desired->code()) {
205205
throw new \RuntimeException('Code does not match between actual and desired pipeline definition.');
@@ -220,7 +220,7 @@ public function update(DTO\ReferencedPipeline $actual, DTO\PipelineInterface $de
220220
return new DTO\CommandBatch(...$commands);
221221
}
222222

223-
public function remove(DTO\PipelineId $id): DTO\CommandBatch
223+
public function remove(PipelineId $id): DTO\CommandBatch
224224
{
225225
return new DTO\CommandBatch(
226226
new Command\Pipeline\RemovePipelineCommand($id),

src/Cloud/PipelineInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ public function create(DTO\PipelineInterface $pipeline): DTO\CommandBatch;
1919

2020
public function update(DTO\ReferencedPipeline $actual, DTO\PipelineInterface $desired): DTO\CommandBatch;
2121

22-
public function remove(DTO\PipelineId $id): DTO\CommandBatch;
22+
public function remove(PipelineId $id): DTO\CommandBatch;
2323
}

src/ComposerScripts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class ComposerScripts
1515
public static function postInstall(Event $event): void
1616
{
1717
self::updatePlugins(
18-
$packages = new Composer\Accumulator(),
18+
$packages = new Accumulator(),
1919
$repository = $event->getComposer()
2020
->getRepositoryManager()
2121
->getLocalRepository(),
@@ -26,7 +26,7 @@ public static function postInstall(Event $event): void
2626
public static function postUpdate(Event $event): void
2727
{
2828
self::updatePlugins(
29-
$packages = new Composer\Accumulator(),
29+
$packages = new Accumulator(),
3030
$repository = $event->getComposer()
3131
->getRepositoryManager()
3232
->getLocalRepository(),

src/ConfigLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Kiboko\Contract\Configurator\InvalidConfigurationException;
99
use Symfony\Component\Config;
1010

11-
class ConfigLoader implements ConfigLoaderInterface
11+
class ConfigLoader implements Satellite\ConfigLoaderInterface
1212
{
1313
public function __construct(private readonly string $basePath)
1414
{

src/Console/Command/BuildCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,6 @@ public function log($level, $message, array $context = []): void
126126
}
127127
}
128128

129-
return \Symfony\Component\Console\Command\Command::SUCCESS;
129+
return Console\Command\Command::SUCCESS;
130130
}
131131
}

src/Console/Command/ValidateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ protected function execute(Console\Input\InputInterface $input, Console\Output\O
7676

7777
$style->writeln(json_encode($configuration, \JSON_PRETTY_PRINT));
7878

79-
return \Symfony\Component\Console\Command\Command::SUCCESS;
79+
return Console\Command\Command::SUCCESS;
8080
}
8181
}

src/Feature/Logger/Factory/ElasticSearchFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function validate(array $config): bool
5353
return false;
5454
}
5555

56-
public function compile(array $config): Repository\ElasticSearchRepository
56+
public function compile(array $config): Logger\Factory\Repository\ElasticSearchRepository
5757
{
5858
$builder = new Logger\Builder\Monolog\ElasticSearchBuilder($this->interpreter);
5959

@@ -69,6 +69,6 @@ public function compile(array $config): Repository\ElasticSearchRepository
6969
$builder->withIndex($config['index']);
7070
}
7171

72-
return new Repository\ElasticSearchRepository($builder);
72+
return new Logger\Factory\Repository\ElasticSearchRepository($builder);
7373
}
7474
}

0 commit comments

Comments
 (0)