Skip to content

Commit 1dda4de

Browse files
committed
Fix PHP CS Fixer violations in AbstractDns01Handler
Align assignment operators in propagationDelay(), expand single-line method body to full brace style, and remove space before arrow function parenthesis to satisfy binary_operator_spaces, braces_position, and function_declaration rules.
1 parent f513589 commit 1dda4de

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/Challenge/Dns/AbstractDns01Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final public function supports(AuthorizationChallengeEnum $type): bool
4848
*/
4949
public function propagationDelay(int $seconds): static
5050
{
51-
$clone = clone $this;
51+
$clone = clone $this;
5252
$clone->propagationDelaySecs = max(0, $seconds);
5353

5454
return $clone;

tests/Unit/Challenge/Dns/AbstractDns01HandlerTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ public function cleanup(string $domain, string $token): void
4141
$handler = new class extends AbstractDns01Handler {
4242
public function deploy(string $d, string $t, string $k): void {}
4343
public function cleanup(string $d, string $t): void {}
44-
public function name(string $domain): string { return $this->challengeName($domain); }
44+
public function name(string $domain): string
45+
{
46+
return $this->challengeName($domain);
47+
}
4548
};
4649

4750
expect($handler->name('example.com'))->toBe('_acme-challenge.example.com');
@@ -59,7 +62,7 @@ public function name(string $domain): string { return $this->challengeName($doma
5962
it('propagationDelay clamps negative values to zero', function () {
6063
// Negative delays should not cause a sleep — verify no exception is thrown
6164
$handler = (new TestDns01Handler())->propagationDelay(-10);
62-
expect(fn () => $handler->deploy('example.com', 't', 'k'))->not->toThrow(\Throwable::class);
65+
expect(fn() => $handler->deploy('example.com', 't', 'k'))->not->toThrow(\Throwable::class);
6366
});
6467

6568
it('deploy and cleanup record their arguments', function () {

0 commit comments

Comments
 (0)