Skip to content

Commit

Permalink
Fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Ivančić committed Dec 14, 2024
1 parent 6edc115 commit e5e6529
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Controllers/Admin/TestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public function trustChainResolution(Request $request): Response
$isFormSubmitted = true;

Check warning on line 61 in src/Controllers/Admin/TestController.php

View check run for this annotation

Codecov / codecov/patch

src/Controllers/Admin/TestController.php#L60-L61

Added lines #L60 - L61 were not covered by tests

!empty($leafEntityId = $request->request->getString('leafEntityId')) ||
throw new OidcException('Empty leaf entity ID.');
throw new OidcException('Empty leaf entity ID.');
!empty($rawTrustAnchorIds = $request->request->getString('trustAnchorIds')) ||
throw new OidcException('Empty Trust Anchor IDs.');
throw new OidcException('Empty Trust Anchor IDs.');

Check warning on line 66 in src/Controllers/Admin/TestController.php

View check run for this annotation

Codecov / codecov/patch

src/Controllers/Admin/TestController.php#L63-L66

Added lines #L63 - L66 were not covered by tests

/** @var non-empty-array<non-empty-string> $trustAnchorIds */
$trustAnchorIds = $this->helpers->str()->convertTextToArray($rawTrustAnchorIds);

Check warning on line 69 in src/Controllers/Admin/TestController.php

View check run for this annotation

Codecov / codecov/patch

src/Controllers/Admin/TestController.php#L69

Added line #L69 was not covered by tests
Expand All @@ -76,7 +76,7 @@ public function trustChainResolution(Request $request): Response
foreach (EntityTypesEnum::cases() as $entityTypeEnum) {

Check warning on line 76 in src/Controllers/Admin/TestController.php

View check run for this annotation

Codecov / codecov/patch

src/Controllers/Admin/TestController.php#L74-L76

Added lines #L74 - L76 were not covered by tests
try {
$metadataEntries[$entityTypeEnum->value] =
$trustChain->getResolvedMetadata($entityTypeEnum);
$trustChain->getResolvedMetadata($entityTypeEnum);
} catch (\Throwable $exception) {
$this->arrayLogger->error(
'Metadata resolving error: ' . $exception->getMessage(),
Expand Down
1 change: 0 additions & 1 deletion tests/unit/src/Utils/Debug/ArrayLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public function testCanLogEntriesBasedOnWeight(): void
$sut->log(LogLevel::DEBUG, 'debug message');

$this->assertCount(9, $sut->getEntries());

}

public function testWontLogLessThanEmergency(): void
Expand Down

0 comments on commit e5e6529

Please sign in to comment.