Skip to content

Commit

Permalink
Rename FindGithubRepositoryThroughOrganizationService
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Mar 5, 2024
1 parent d531f00 commit a974d15
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .phpdoc-md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ return (object)[
'\OpenCatalogi\OpenCatalogiBundle\Service\EnrichPubliccodeFromGithubUrlService',
'\OpenCatalogi\OpenCatalogiBundle\Service\EnrichPubliccodeService',
'\OpenCatalogi\OpenCatalogiBundle\Service\FederalizationService',
'\OpenCatalogi\OpenCatalogiBundle\Service\FindGithubRepositoryThroughOrganizationService',
'\OpenCatalogi\OpenCatalogiBundle\Service\FindRepositoryThroughOrganizationService',
'\OpenCatalogi\OpenCatalogiBundle\Service\FindOrganizationThroughRepositoriesService',
'\OpenCatalogi\OpenCatalogiBundle\Service\GithubApiService',
'\OpenCatalogi\OpenCatalogiBundle\Service\GithubEventService',
Expand Down
2 changes: 1 addition & 1 deletion src/ActionHandler/EnrichDownloadHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use CommonGateway\CoreBundle\ActionHandler\ActionHandlerInterface;
use OpenCatalogi\OpenCatalogiBundle\Service\DownloadObjectService;
use OpenCatalogi\OpenCatalogiBundle\Service\FindGithubRepositoryThroughOrganizationService;
use OpenCatalogi\OpenCatalogiBundle\Service\FindRepositoryThroughOrganizationService;
use OpenCatalogi\OpenCatalogiBundle\Service\GithubApiService;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/ActionHandler/EnrichOrganizationHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use CommonGateway\CoreBundle\ActionHandler\ActionHandlerInterface;
use OpenCatalogi\OpenCatalogiBundle\Service\EnrichOrganizationService;
use OpenCatalogi\OpenCatalogiBundle\Service\FindGithubRepositoryThroughOrganizationService;
use OpenCatalogi\OpenCatalogiBundle\Service\FindRepositoryThroughOrganizationService;
use OpenCatalogi\OpenCatalogiBundle\Service\GithubApiService;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/ComponentenCatalogusGetApplicationsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Symfony\Component\Console\Style\SymfonyStyle;

/**
* Command to execute the FindGithubRepositoryThroughOrganizationService.
* Command to execute the FindRepositoryThroughOrganizationService.
*/
class ComponentenCatalogusGetApplicationsCommand extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/ComponentenCatalogusGetComponentsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Symfony\Component\Console\Style\SymfonyStyle;

/**
* Command to execute the FindGithubRepositoryThroughOrganizationService.
* Command to execute the FindRepositoryThroughOrganizationService.
*/
class ComponentenCatalogusGetComponentsCommand extends Command
{
Expand Down
18 changes: 9 additions & 9 deletions src/Command/FindGithubRepositoryThroughOrganizationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
namespace OpenCatalogi\OpenCatalogiBundle\Command;

use CommonGateway\CoreBundle\Service\GatewayResourceService;
use OpenCatalogi\OpenCatalogiBundle\Service\FindGithubRepositoryThroughOrganizationService;
use OpenCatalogi\OpenCatalogiBundle\Service\FindRepositoryThroughOrganizationService;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

/**
* Command to execute the FindGithubRepositoryThroughOrganizationService.
* Command to execute the FindRepositoryThroughOrganizationService.
*/
class FindGithubRepositoryThroughOrganizationCommand extends Command
{
Expand All @@ -23,9 +23,9 @@ class FindGithubRepositoryThroughOrganizationCommand extends Command
protected static $defaultName = 'opencatalogi:github:discoverrepository';

/**
* @var FindGithubRepositoryThroughOrganizationService
* @var FindRepositoryThroughOrganizationService
*/
private FindGithubRepositoryThroughOrganizationService $findGitService;
private FindRepositoryThroughOrganizationService $findGitService;

/**
* @var GatewayResourceService
Expand All @@ -34,11 +34,11 @@ class FindGithubRepositoryThroughOrganizationCommand extends Command


/**
* @param FindGithubRepositoryThroughOrganizationService $findGitService find Github Repository Through Organization Service
* @param FindRepositoryThroughOrganizationService $findGitService find Github Repository Through Organization Service
* @param GatewayResourceService $resourceService The Gateway Resource Service
*/
public function __construct(
FindGithubRepositoryThroughOrganizationService $findGitService,
FindRepositoryThroughOrganizationService $findGitService,
GatewayResourceService $resourceService
) {
$this->findGitService = $findGitService;
Expand All @@ -54,7 +54,7 @@ public function __construct(
protected function configure(): void
{
$this
->setDescription('This command triggers OpenCatalogi FindGithubRepositoryThroughOrganizationService')
->setDescription('This command triggers OpenCatalogi FindRepositoryThroughOrganizationService')
->setHelp('This command allows you to update create owned repositories from organisation')
->addOption('organizationId', 'o', InputOption::VALUE_OPTIONAL, 'Find owned repositories for a specific organisation by id');

Check warning on line 59 in src/Command/FindGithubRepositoryThroughOrganizationCommand.php

View workflow job for this annotation

GitHub Actions / build

Line exceeds 125 characters; contains 137 characters

Expand All @@ -76,12 +76,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$organizationId = $input->getOption('organizationId', false);

if ($organizationId === null) {
if (empty($this->findGitService->findGithubRepositoryThroughOrganizationHandler([], $configuration)) === true) {
if (empty($this->findGitService->findRepositoryThroughOrganizationHandler([], $configuration)) === true) {
return Command::FAILURE;
}
}

if (empty($this->findGitService->findGithubRepositoryThroughOrganizationHandler([], $configuration, $organizationId)) === true) {
if (empty($this->findGitService->findRepositoryThroughOrganizationHandler([], $configuration, $organizationId)) === true) {

Check warning on line 84 in src/Command/FindGithubRepositoryThroughOrganizationCommand.php

View workflow job for this annotation

GitHub Actions / build

Line exceeds 125 characters; contains 131 characters
return Command::FAILURE;
}

Expand Down

0 comments on commit a974d15

Please sign in to comment.