Skip to content

Commit cea908e

Browse files
fix: ecs-fix
1 parent 55f4860 commit cea908e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+145
-107
lines changed

src/Command/ChangeUserPasswordCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Command;
45

src/Command/DevRobotsTxtCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Command;
45

@@ -15,8 +16,7 @@ class DevRobotsTxtCommand extends Command
1516
{
1617
public function __construct(
1718
#[Autowire('%kernel.project_dir%/public')] private readonly string $envPath
18-
)
19-
{
19+
) {
2020
parent::__construct();
2121
}
2222

src/Command/EnvDelCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Command;
45

@@ -16,8 +17,7 @@ class EnvDelCommand extends Command
1617
{
1718
public function __construct(
1819
#[Autowire('%kernel.project_dir%/.env')] private readonly string $envPath
19-
)
20-
{
20+
) {
2121
parent::__construct();
2222
}
2323

src/Command/EnvGetCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Command;
45

@@ -17,8 +18,7 @@ class EnvGetCommand extends Command
1718
{
1819
public function __construct(
1920
#[Autowire('%kernel.project_dir%/.env')] private readonly string $envPath
20-
)
21-
{
21+
) {
2222
parent::__construct();
2323
}
2424

src/Command/EnvListCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Command;
45

src/Command/EnvSetCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Command;
45

@@ -16,8 +17,7 @@ class EnvSetCommand extends Command
1617
{
1718
public function __construct(
1819
#[Autowire('%kernel.project_dir%/.env')] private readonly string $envPath
19-
)
20-
{
20+
) {
2121
parent::__construct();
2222
}
2323

src/Command/MonitorCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Command;
45

src/Command/UpdateComposerPluginsCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Command;
45

src/Command/UpdatePluginsCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Command;
45

src/Components/CacheAdapter.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components;
45

src/Components/CacheHelper.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components;
45

@@ -28,7 +29,7 @@ public static function removeDir(string $path): void
2829
if (self::rsyncAvailable()) {
2930
$blankDir = sys_get_temp_dir() . '/' . uniqid() . '/';
3031

31-
if (!mkdir($blankDir, 0755, true) && !is_dir($blankDir)) {
32+
if (!mkdir($blankDir, 0o755, true) && !is_dir($blankDir)) {
3233
throw new \RuntimeException(sprintf('Directory "%s" was not created', $blankDir));
3334
}
3435

src/Components/CacheRegistry.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components;
45

src/Components/Elasticsearch/AdminInfoSubscriber.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Elasticsearch;
45

@@ -9,8 +10,7 @@ final class AdminInfoSubscriber
910
{
1011
public function __construct(
1112
#[Autowire('%frosh_tools.elasticsearch.enabled%')] private readonly bool $elasticsearchEnabled
12-
)
13-
{
13+
) {
1414
}
1515

1616
public function __invoke(ResponseEvent $event): void

src/Components/Elasticsearch/DisabledElasticsearchManager.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Elasticsearch;
45

src/Components/Elasticsearch/ElasticsearchManager.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Elasticsearch;
45

@@ -19,7 +20,7 @@ public function __construct(
1920
private readonly Client $client,
2021
#[Autowire('%elasticsearch.enabled%')] private readonly bool $enabled,
2122
private readonly ElasticsearchIndexer $indexer,
22-
private readonly MessageBusInterface $messageBus,
23+
private readonly MessageBusInterface $messageBus,
2324
private readonly CreateAliasTaskHandler $createAliasTaskHandler,
2425
private readonly ElasticsearchOutdatedIndexDetector $outdatedIndexDetector,
2526
private readonly Connection $connection,

src/Components/Environment/EnvironmentCommentLine.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Environment;
45

src/Components/Environment/EnvironmentFile.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Environment;
45

src/Components/Environment/EnvironmentKeyValue.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Environment;
45

src/Components/Environment/EnvironmentLine.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Environment;
45

src/Components/Environment/EnvironmentManager.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Environment;
45

src/Components/Exception/CannotClearCacheException.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Exception;
45

src/Components/Health/Checker/CheckerInterface.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker;
45

src/Components/Health/Checker/HealthChecker/HealthCheckerInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
declare(strict_types=1);
44

55
namespace Frosh\Tools\Components\Health\Checker\HealthChecker;
6+
67
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
78

89
#[AutoconfigureTag('frosh_tools.health_checker')]
910
interface HealthCheckerInterface
1011
{
11-
12-
}
12+
}

src/Components/Health/Checker/HealthChecker/MysqlChecker.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker\HealthChecker;
45

src/Components/Health/Checker/HealthChecker/PhpChecker.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker\HealthChecker;
45

src/Components/Health/Checker/HealthChecker/ProductionChecker.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker\HealthChecker;
45

@@ -11,8 +12,7 @@ class ProductionChecker implements HealthCheckerInterface, CheckerInterface
1112
{
1213
public function __construct(
1314
#[Autowire('%kernel.environment%')] private readonly string $environment
14-
)
15-
{
15+
) {
1616
}
1717

1818
public function collect(HealthCollection $collection): void

src/Components/Health/Checker/HealthChecker/QueueChecker.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker\HealthChecker;
45

src/Components/Health/Checker/HealthChecker/TaskChecker.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker\HealthChecker;
45

@@ -10,8 +11,10 @@
1011

1112
class TaskChecker implements HealthCheckerInterface, CheckerInterface
1213
{
13-
public function __construct(private readonly Connection $connection, private readonly ParameterBagInterface $parameterBag)
14-
{
14+
public function __construct(
15+
private readonly Connection $connection,
16+
private readonly ParameterBagInterface $parameterBag
17+
) {
1518
}
1619

1720
public function collect(HealthCollection $collection): void

src/Components/Health/Checker/PerformanceChecker/AdminWorkerChecker.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker\PerformanceChecker;
45

@@ -11,8 +12,7 @@ class AdminWorkerChecker implements PerformanceCheckerInterface, CheckerInterfac
1112
{
1213
public function __construct(
1314
#[Autowire('%shopware.admin_worker.enable_admin_worker%')] private readonly bool $adminWorkerEnabled
14-
)
15-
{
15+
) {
1616
}
1717

1818
public function collect(HealthCollection $collection): void

src/Components/Health/Checker/PerformanceChecker/DisabledMailUpdatesChecker.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker\PerformanceChecker;
45

@@ -7,7 +8,7 @@
78
use Frosh\Tools\Components\Health\SettingsResult;
89
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
910

10-
class DisabledMailUpdatesChecker implements PerformanceCheckerInterface,CheckerInterface
11+
class DisabledMailUpdatesChecker implements PerformanceCheckerInterface, CheckerInterface
1112
{
1213
public function __construct(private readonly ParameterBagInterface $params)
1314
{

src/Components/Health/Checker/PerformanceChecker/EsChecker.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker\PerformanceChecker;
45

@@ -7,7 +8,7 @@
78
use Frosh\Tools\Components\Health\HealthCollection;
89
use Frosh\Tools\Components\Health\SettingsResult;
910

10-
class EsChecker implements PerformanceCheckerInterface,CheckerInterface
11+
class EsChecker implements PerformanceCheckerInterface, CheckerInterface
1112
{
1213
protected bool $esEnabled = false;
1314

src/Components/Health/Checker/PerformanceChecker/FixCacheIdSetChecker.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker\PerformanceChecker;
45

@@ -8,12 +9,11 @@
89
use Shopware\Core\DevOps\Environment\EnvironmentHelper;
910
use Symfony\Component\DependencyInjection\Attribute\Autowire;
1011

11-
class FixCacheIdSetChecker implements PerformanceCheckerInterface,CheckerInterface
12+
class FixCacheIdSetChecker implements PerformanceCheckerInterface, CheckerInterface
1213
{
1314
public function __construct(
1415
#[Autowire('%kernel.shopware_version%')] protected string $shopwareVersion
15-
)
16-
{
16+
) {
1717
}
1818

1919
public function collect(HealthCollection $collection): void

src/Components/Health/Checker/PerformanceChecker/IncrementStorageChecker.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
declare(strict_types=1);
23

34
namespace Frosh\Tools\Components\Health\Checker\PerformanceChecker;
45

@@ -7,7 +8,7 @@
78
use Frosh\Tools\Components\Health\SettingsResult;
89
use Symfony\Component\DependencyInjection\Attribute\Autowire;
910

10-
class IncrementStorageChecker implements PerformanceCheckerInterface,CheckerInterface
11+
class IncrementStorageChecker implements PerformanceCheckerInterface, CheckerInterface
1112
{
1213
public function __construct(
1314
#[Autowire('%shopware.increment.user_activity.type%')] private readonly string $userActivity,

0 commit comments

Comments
 (0)