Skip to content

Commit 4460be2

Browse files
authored
Merge pull request #176 from PrestaShop/dependabot/composer/symfony/console-8.0.4
2 parents 1359d3f + 4817982 commit 4460be2

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed

composer.lock

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

src/Command/GenerateTopCompaniesCommand.php

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -346,21 +346,20 @@ protected function extractCompany(array $datum): ?Company
346346
$company = $this->getCompanyByAlias($matchCompany);
347347
if ($company) {
348348
return $company;
349-
} else {
350-
$this->output->writeln(
351-
'Sponsor Company Not Found : '
352-
. $datum['repository']['name']
353-
. '#' . $datum['number']
354-
. ' => ' . $datum['author']['login']
355-
. '/' . $matchCompany
356-
);
357-
if (!isset($this->unknownSponsorCompanies[$matchCompany])) {
358-
$this->unknownSponsorCompanies[$matchCompany] = 0;
359-
}
360-
++$this->unknownSponsorCompanies[$matchCompany];
361-
362-
return null;
363349
}
350+
$this->output->writeln(
351+
'Sponsor Company Not Found : '
352+
. $datum['repository']['name']
353+
. '#' . $datum['number']
354+
. ' => ' . $datum['author']['login']
355+
. '/' . $matchCompany
356+
);
357+
if (!isset($this->unknownSponsorCompanies[$matchCompany])) {
358+
$this->unknownSponsorCompanies[$matchCompany] = 0;
359+
}
360+
++$this->unknownSponsorCompanies[$matchCompany];
361+
362+
return null;
364363
}
365364

366365
// Extract company from "Author"

0 commit comments

Comments
 (0)