Skip to content

Commit

Permalink
fixed cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Dec 23, 2024
1 parent fcf9fb8 commit 7ec0987
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
1 change: 1 addition & 0 deletions src/bundle/Controller/SystemInfoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function phpinfoAction(): Response
{
ob_start();
phpinfo();

return new Response(ob_get_clean() ?: '');
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class IbexaSystemInfoCollector implements SystemInfoCollector
];

/**
* @var ComposerSystemInfo|null
* @var \Ibexa\Bundle\SystemInfo\SystemInfo\Value\ComposerSystemInfo|null
*/
private $composerInfo;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Ibexa\Bundle\SystemInfo\SystemInfo\Exception;
use Ibexa\Bundle\SystemInfo\SystemInfo\Value\ComposerPackage;
use Ibexa\Bundle\SystemInfo\SystemInfo\Value\ComposerSystemInfo;
use Ibexa\Bundle\SystemInfo\SystemInfo\Value\SystemInfo;
use Ibexa\SystemInfo\Value\Stability;
use Ibexa\SystemInfo\VersionStability\VersionStabilityChecker;

Expand Down
24 changes: 12 additions & 12 deletions src/bundle/SystemInfo/EzcSystemInfoWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,30 @@
*/
class EzcSystemInfoWrapper
{
public string $osType;
public ?string $osType;

public string $osName;
public ?string $osName;

public string $fileSystemType;
public ?string $fileSystemType;

public int $cpuCount;
public ?int $cpuCount;

public string $cpuType;
public ?string $cpuType;

public float $cpuSpeed;
public ?float $cpuSpeed;

/** @var int */
public int $memorySize;
public ?int $memorySize;

public string $lineSeparator;
public ?string $lineSeparator;

public string $backupFileName;
public ?string $backupFileName;

public string $phpVersion;
public ?string $phpVersion;

public ezcSystemInfoAccelerator $phpAccelerator;
public ?ezcSystemInfoAccelerator $phpAccelerator;

public bool $isShellExecution;
public ?bool $isShellExecution;

public function __construct()
{
Expand Down
1 change: 1 addition & 0 deletions src/bundle/SystemInfo/OutputFormat/JsonOutputFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function format(array $collectedInfo)
if ($json === false) {
return '';
}

return $json;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/bundle/View/SystemInfoView.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function setInfo(SystemInfo $info): self

return $this;
}

public function getInfo(): SystemInfo
{
return $this->info;
Expand Down
1 change: 0 additions & 1 deletion src/bundle/View/SystemInfoViewBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Ibexa\Bundle\SystemInfo\SystemInfo\Exception\SystemInfoException;
use Ibexa\Bundle\SystemInfo\SystemInfo\SystemInfoCollectorRegistry;
use Ibexa\Bundle\SystemInfo\SystemInfo\Value\InvalidSystemInfo;
use Ibexa\Core\MVC\Symfony\View\BaseView;
use Ibexa\Core\MVC\Symfony\View\Builder\ViewBuilder;
use Ibexa\Core\MVC\Symfony\View\Configurator;
use Ibexa\Core\MVC\Symfony\View\View;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Component/Dashboard/EzInfoTwigComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EzInfoTwigComponent implements Renderable

private IbexaSystemInfo $ibexaSystemInfo;

/** @var array<string, string> */
/** @var array<string, string> */
private array $urlList;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RepositorySystemInfoCollectorTest extends TestCase
private $dbalConnectionMock;

/**
* @var \Doctrine\DBAL\Platforms\AbstractPlatform & \PHPUnit\Framework\MockObject\MockObject
* @var \Doctrine\DBAL\Platforms\AbstractPlatform&\PHPUnit\Framework\MockObject\MockObject
*/
private $dbalPlatformMock;

Expand Down
10 changes: 5 additions & 5 deletions tests/bundle/SystemInfo/Registry/IdentifierBasedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class IdentifierBasedTest extends TestCase
private IdentifierBased $registry;

/**
* @var \PHPUnit\Framework\MockObject\MockObject[]|SystemInfoCollector[]
* @var \PHPUnit\Framework\MockObject\MockObject[]|\Ibexa\Bundle\SystemInfo\SystemInfo\Collector\SystemInfoCollector[]
*/
private array $testItems;

Expand All @@ -33,7 +33,7 @@ protected function setUp(): void
/**
* Test adding items to the registry, and getting items from it.
*
* @covers IdentifierBased::getItem
* @covers \IdentifierBased::getItem
*/
public function testAddAndGetItems(): void
{
Expand All @@ -46,7 +46,7 @@ public function testAddAndGetItems(): void
/**
* Test exception when registry item is not found.
*
* @covers IdentifierBased::getItem
* @covers \IdentifierBased::getItem
*/
public function testGetItemNotFound(): void
{
Expand All @@ -57,7 +57,7 @@ public function testGetItemNotFound(): void
/**
* Test replacing an item in the registry.
*
* @covers IdentifierBased::getItem
* @covers \IdentifierBased::getItem
*/
public function testReplaceItem(): void
{
Expand All @@ -76,7 +76,7 @@ public function testReplaceItem(): void
/**
* Test getting all registered identifiers.
*
* @covers IdentifierBased::getIdentifiers
* @covers \IdentifierBased::getIdentifiers
* @depends testAddAndGetItems
*/
public function testGetIdentifiers(): void
Expand Down
7 changes: 4 additions & 3 deletions tests/bundle/View/SystemInfoViewBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testBuildView(): void
}

/**
* @return \PHPUnit\Framework\MockObject\MockObject & \Ibexa\Core\MVC\Symfony\View\Configurator
* @return \PHPUnit\Framework\MockObject\MockObject&\Ibexa\Core\MVC\Symfony\View\Configurator
*/
protected function getConfiguratorMock(): Configurator
{
Expand All @@ -69,12 +69,13 @@ protected function getConfiguratorMock(): Configurator
}

/**
* @return \PHPUnit\Framework\MockObject\MockObject & \Ibexa\Bundle\SystemInfo\SystemInfo\SystemInfoCollectorRegistry
* @return \PHPUnit\Framework\MockObject\MockObject&\Ibexa\Bundle\SystemInfo\SystemInfo\SystemInfoCollectorRegistry
*/
protected function getRegistryMock(): SystemInfoCollectorRegistry
{
if (!isset($this->registryMock)) {
$this->registryMock = $this->createMock(SystemInfoCollectorRegistry::class
$this->registryMock = $this->createMock(
SystemInfoCollectorRegistry::class
);
}

Expand Down
2 changes: 0 additions & 2 deletions tests/lib/EventListener/SystemInfoTabGroupListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
use Ibexa\SystemInfo\Tab\SystemInfo\SystemInfoTab;
use Ibexa\SystemInfo\Tab\SystemInfo\TabFactory;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;

class SystemInfoTabGroupListenerTest extends TestCase
{
Expand Down

0 comments on commit 7ec0987

Please sign in to comment.