Skip to content

Commit 92296f1

Browse files
turegjorupclaude
andcommitted
6654: Apply PHP coding standards fixes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 66a9e96 commit 92296f1

18 files changed

Lines changed: 4 additions & 115 deletions

config/reference.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
declare(strict_types=1);
4-
53
// This file is auto-generated and is for apps only. Bundles SHOULD NOT rely on its content.
64

75
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
@@ -1362,7 +1360,7 @@
13621360
* mercure?: bool|array{
13631361
* enabled?: bool|Param, // Default: false
13641362
* hub_url?: scalar|Param|null, // The URL sent in the Link HTTP header. If not set, will default to the URL for MercureBundle's default hub. // Default: null
1365-
* include_type?: bool|Param, // Always include @var in updates (including delete ones). // Default: false
1363+
* include_type?: bool|Param, // Always include @type in updates (including delete ones). // Default: false
13661364
* },
13671365
* messenger?: bool|array{
13681366
* enabled?: bool|Param, // Default: true

src/Command/ReplayDetectionResultsCommand.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ class ReplayDetectionResultsCommand extends Command
3030
{
3131
/**
3232
* ReplayDetectionResultsCommand constructor.
33-
*
34-
* @param EntityManagerInterface $entityManager
35-
* @param MessageBusInterface $messageBus
3633
*/
3734
public function __construct(
3835
private readonly EntityManagerInterface $entityManager,
@@ -68,7 +65,6 @@ protected function configure(): void
6865
;
6966
}
7067

71-
/** {@inheritDoc} */
7268
protected function execute(InputInterface $input, OutputInterface $output): int
7369
{
7470
$io = new SymfonyStyle($input, $output);
@@ -147,10 +143,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
147143
/**
148144
* Dispatch message to the message bus.
149145
*
150-
* @param Ulid $detectionResultID
151-
*
152-
* @return Envelope
153-
*
154146
* @throws \Throwable
155147
*/
156148
private function dispatch(Ulid $detectionResultID): Envelope
@@ -172,10 +164,6 @@ private function dispatch(Ulid $detectionResultID): Envelope
172164

173165
/**
174166
* Get a Ulid from a string with/without dashes.
175-
*
176-
* @param string $ulid
177-
*
178-
* @return Ulid
179167
*/
180168
private static function fromString(string $ulid): Ulid
181169
{

src/Entity/Site.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ public function getPrimaryDomain(): ?string
167167
* these domains the first is the primary:
168168
* - 360.aarhuskommune.dk
169169
* - 360.aarhuskommune.dk.srvitkphp74.itkdev.dk
170-
*
171-
* @return void
172170
*/
173171
private function updatePrimaryDomain(): void
174172
{

src/Handler/DetectionResultHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function handleResult(DetectionResult $detectionResult): void;
2323
* Does the handler support the give detection result type.
2424
*
2525
* @param string $type
26-
* The result type
26+
* The result type
2727
*/
2828
public function supportsType(string $type): bool;
2929
}

src/Handler/DirectoryHandler.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
{
2121
/**
2222
* DirectoryHandler constructor.
23-
*
24-
* @param SiteRepository $siteRepository
25-
* @param InstallationFactory $installationFactory
2623
*/
2724
public function __construct(
2825
private SiteRepository $siteRepository,
@@ -31,9 +28,6 @@ public function __construct(
3128
) {
3229
}
3330

34-
/**
35-
* {@inheritDoc}
36-
*/
3731
public function handleResult(DetectionResult $detectionResult): void
3832
{
3933
$server = $detectionResult->getServer();
@@ -63,9 +57,6 @@ public function handleResult(DetectionResult $detectionResult): void
6357
}
6458
}
6559

66-
/**
67-
* {@inheritDoc}
68-
*/
6960
public function supportsType(string $type): bool
7061
{
7162
return DetectionType::DIRECTORY === $type;

src/Handler/DockerImageHandler.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@
2525

2626
/**
2727
* DirectoryHandler constructor.
28-
*
29-
* @param DockerImageTagFactory $dockerImageTagFactory
30-
* @param ModuleVersionFactory $moduleVersionFactory
31-
* @param PackageVersionFactory $packageVersionFactory
32-
* @param AdvisoryFactory $advisoryFactory
33-
* @param SiteFactory $siteFactory
34-
* @param DomainFactory $domainFactory
3528
*/
3629
public function __construct(
3730
private DockerImageTagFactory $dockerImageTagFactory,
@@ -43,9 +36,6 @@ public function __construct(
4336
) {
4437
}
4538

46-
/**
47-
* {@inheritDoc}
48-
*/
4939
public function handleResult(DetectionResult $detectionResult): void
5040
{
5141
if (empty($detectionResult->getData())) {
@@ -86,7 +76,6 @@ public function handleResult(DetectionResult $detectionResult): void
8676
}
8777
}
8878

89-
/** {@inheritDoc} */
9079
public function supportsType(string $type): bool
9180
{
9281
return DetectionType::DOCKER === $type;

src/Handler/DrupalHandler.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
{
1919
/**
2020
* DirectoryHandler constructor.
21-
*
22-
* @param InstallationFactory $installationFactory
23-
* @param PackageVersionFactory $packageVersionFactory
24-
* @param ModuleVersionFactory $moduleVersionFactory
2521
*/
2622
public function __construct(
2723
private InstallationFactory $installationFactory,
@@ -30,9 +26,6 @@ public function __construct(
3026
) {
3127
}
3228

33-
/**
34-
* {@inheritDoc}
35-
*/
3629
public function handleResult(DetectionResult $detectionResult): void
3730
{
3831
try {
@@ -56,7 +49,6 @@ public function handleResult(DetectionResult $detectionResult): void
5649
}
5750
}
5851

59-
/** {@inheritDoc} */
6052
public function supportsType(string $type): bool
6153
{
6254
return DetectionType::DRUPAL === $type;

src/Handler/GitHandler.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,13 @@
1616
{
1717
/**
1818
* DirectoryHandler constructor.
19-
*
20-
* @param InstallationFactory $installationFactory
21-
* @param GitTagFactory $gitCloneFactory
2219
*/
2320
public function __construct(
2421
private InstallationFactory $installationFactory,
2522
private GitTagFactory $gitCloneFactory,
2623
) {
2724
}
2825

29-
/**
30-
* {@inheritDoc}
31-
*/
3226
public function handleResult(DetectionResult $detectionResult): void
3327
{
3428
try {
@@ -47,9 +41,6 @@ public function handleResult(DetectionResult $detectionResult): void
4741
}
4842
}
4943

50-
/**
51-
* {@inheritDoc}
52-
*/
5344
public function supportsType(string $type): bool
5445
{
5546
return DetectionType::GIT === $type;
@@ -61,10 +52,6 @@ public function supportsType(string $type): bool
6152
* The git harvester will send an empty result even for
6253
* "fatal: not a git repository (or any parent up to mount point /)"
6354
*
64-
* @param DetectionResult $result
65-
*
66-
* @return object|null
67-
*
6855
* @throws \JsonException
6956
*/
7057
private function getData(DetectionResult $result): ?object

src/Handler/NginxHandler.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020

2121
/**
2222
* DirectoryHandler constructor.
23-
*
24-
* @param SiteFactory $siteFactory
25-
* @param DomainFactory $domainFactory
26-
* @param ValidatorInterface $validator
2723
*/
2824
public function __construct(
2925
private SiteFactory $siteFactory,
@@ -32,9 +28,6 @@ public function __construct(
3228
) {
3329
}
3430

35-
/**
36-
* {@inheritDoc}
37-
*/
3831
public function handleResult(DetectionResult $detectionResult): void
3932
{
4033
try {
@@ -63,7 +56,6 @@ public function handleResult(DetectionResult $detectionResult): void
6356
}
6457
}
6558

66-
/** {@inheritDoc} */
6759
public function supportsType(string $type): bool
6860
{
6961
return DetectionType::NGINX === $type;

src/Handler/SymfonyHandler.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,13 @@
1717
{
1818
/**
1919
* DirectoryHandler constructor.
20-
*
21-
* @param PackageVersionFactory $packageVersionFactory
22-
* @param InstallationFactory $installationFactory
2320
*/
2421
public function __construct(
2522
private PackageVersionFactory $packageVersionFactory,
2623
private InstallationFactory $installationFactory,
2724
) {
2825
}
2926

30-
/**
31-
* {@inheritDoc}
32-
*/
3327
public function handleResult(DetectionResult $detectionResult): void
3428
{
3529
try {
@@ -57,7 +51,6 @@ public function handleResult(DetectionResult $detectionResult): void
5751
}
5852
}
5953

60-
/** {@inheritDoc} */
6154
public function supportsType(string $type): bool
6255
{
6356
return DetectionType::SYMFONY === $type;

0 commit comments

Comments
 (0)