Skip to content

Commit

Permalink
[TASK] CGL Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hojalatheef committed Jan 9, 2025
1 parent 9679499 commit 8d99dcc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Classes/Command/CompanyUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
final class CompanyUpdateCommand extends Command
{
public function __construct(
private readonly CompanyUpdateService $companyUpdateService
private readonly CompanyUpdateService $companyUpdateService,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/CompanyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function hideCompany(int $companyId): void
->update(self::COMPANY_TABLE_NAME)
->set('hidden', 1)
->where(
$queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter($companyId, ParameterType::INTEGER))
$queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter($companyId, ParameterType::INTEGER)),
)
->executeStatement();
}
Expand Down
3 changes: 1 addition & 2 deletions Classes/Mailer/NotificationMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
namespace JWeiland\Yellowpages2\Mailer;

use JWeiland\Yellowpages2\Configuration\ExtConf;
use JWeiland\Yellowpages2\Domain\Model\Company;
use TYPO3\CMS\Core\Mail\MailMessage;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;

final readonly class NotificationMailer
{
public function __construct(
private ExtConf $extConf
private ExtConf $extConf,
) {}

public function informUser(array $company, string $type)
Expand Down
3 changes: 1 addition & 2 deletions Classes/Service/CompanyUpdateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace JWeiland\Yellowpages2\Service;

use Doctrine\DBAL\Exception;
use JWeiland\Yellowpages2\Domain\Model\Company;
use JWeiland\Yellowpages2\Domain\Repository\CompanyRepository;
use JWeiland\Yellowpages2\Mailer\NotificationMailer;

Expand All @@ -23,7 +22,7 @@ class CompanyUpdateService

public function __construct(
private readonly CompanyRepository $companyRepository,
private readonly NotificationMailer $notificationMailer
private readonly NotificationMailer $notificationMailer,
) {}

/**
Expand Down

0 comments on commit 8d99dcc

Please sign in to comment.