Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Feb 26, 2023
1 parent 8d9504a commit aed02a6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/Command/SpaceCheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ public function execute(InputInterface $input, OutputInterface $output): int
}

/**
* @throws AllInklException
*
* @return AccountWarning[]
*
* @throws AllInklException
*/
private function getAccountData(): array
{
Expand Down
3 changes: 0 additions & 3 deletions src/Mailer/Mail/SpaceWarningMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ public function getAccountWarning(): ?AccountWarning
return $this->accountWarning;
}

/**
* @return SpaceWarningMail
*/
public function setAccountWarning(?AccountWarning $accountWarning): self
{
$this->accountWarning = $accountWarning;
Expand Down
10 changes: 5 additions & 5 deletions src/Service/StatisticService.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ public function getSpace(Session $session, bool $subAccounts = false, $details =

return array_map(static function ($item) {
$item['last_calculation'] = new DateTime('@'.$item['last_calculation']);
$item['used_htdocs_space'] *= 1000;
$item['used_chroot_space'] *= 1000;
$item['used_database_space'] *= 1000;
$item['used_htdocs_space'] *= 1000;
$item['used_chroot_space'] *= 1000;
$item['used_database_space'] *= 1000;
$item['used_mailaccount_space'] *= 1000;
$item['used_webspace'] *= 1000;
$item['max_webspace'] *= 1000;
$item['used_webspace'] *= 1000;
$item['max_webspace'] *= 1000;

return $item;
}, $result);
Expand Down
4 changes: 2 additions & 2 deletions src/Service/StatisticServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ interface StatisticServiceInterface
*
* @param bool $details
*
* @throws AllInklException
*
* @return array<array<string, mixed>>
*
* @throws AllInklException
*/
public function getSpace(Session $session, bool $subAccounts = false, $details = false): array;

Expand Down
3 changes: 3 additions & 0 deletions tests/App/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ public function __construct()
public function registerBundles(): iterable
{
yield new FrameworkBundle();

yield new TwigBundle();

yield new NucleosTwigBundle();

yield new NucleosAllInklBundle();
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Block/Service/SpaceStatisticBlockServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
final class SpaceStatisticBlockServiceTest extends BlockServiceTestCase
{
/**
* @var MockObject&Environment
* @var Environment&MockObject
*/
protected $twig;

Expand All @@ -35,7 +35,7 @@ final class SpaceStatisticBlockServiceTest extends BlockServiceTestCase
private $authService;

/**
* @var StatisticServiceInterface&MockObject
* @var MockObject&StatisticServiceInterface
*/
private $statisticService;

Expand Down

0 comments on commit aed02a6

Please sign in to comment.