Skip to content

Commit ce6a660

Browse files
committed
CS fixes
1 parent 2fa8c46 commit ce6a660

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/Api/Label/GithubLabelApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private function getAllLabels(Repository $repository): array
160160
$key = 'labels_'.sha1($repository->getFullName());
161161

162162
return $this->cache->get($key, function (ItemInterface $item) use ($repository) {
163-
$labels = $this->resultPager->fetchAll($this->labelsApi, 'all', [$repository->getVendor(), $repository->getName()]) ?? [];
163+
$labels = $this->resultPager->fetchAll($this->labelsApi, 'all', [$repository->getVendor(), $repository->getName()]);
164164
$item->expiresAfter(604800);
165165

166166
return $labels;

src/Command/RunTaskCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(TaskRepository $repository, TaskRunner $taskRunner,
2929

3030
protected function configure()
3131
{
32-
$this->addOption('limit', 'l', InputOption::VALUE_REQUIRED, 'Limit the number of tasks to run', 10);
32+
$this->addOption('limit', 'l', InputOption::VALUE_REQUIRED, 'Limit the number of tasks to run', '10');
3333
}
3434

3535
protected function execute(InputInterface $input, OutputInterface $output)

src/Kernel.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ protected function configureRoutes(RoutingConfigurator $routes): void
4646

4747
public function process(ContainerBuilder $container)
4848
{
49+
/** @var array $repositories */
50+
$repositories = $container->getParameter('repositories');
4951
$dispatcherCollection = $container->getDefinition(EventDispatcher::class);
50-
foreach ($container->getParameter('repositories') as $name => $repository) {
52+
53+
foreach ($repositories as $name => $repository) {
5154
$ed = new Definition(SymfonyEventDispatcher::class);
5255
foreach ($repository['subscribers'] as $subscriber) {
5356
$ed->addMethodCall('addSubscriber', [new Reference($subscriber)]);

0 commit comments

Comments
 (0)