Skip to content

Commit 051a7a5

Browse files
committed
code style fixes
1 parent 0b1edbe commit 051a7a5

File tree

7 files changed

+17
-6
lines changed

7 files changed

+17
-6
lines changed

Taskfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tasks:
1919
phpcbf:
2020
desc: Runs PHPCBF
2121
cmds:
22-
- php vendor/bin/phpcbf --standard=ruleset.xml
22+
- php vendor/bin/phpcbf --standard=phpcs.xml
2323

2424
rector:
2525
desc: Runs Rector

src/Bridge/Amphp/Seal/AmpMutexToken.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class AmpMutexToken implements SealToken
1616
public function __construct(
1717
private string $resource,
1818
private string $id,
19-
) {}
19+
) {
20+
}
2021

2122
public function getResource(): string
2223
{
@@ -32,4 +33,4 @@ public function __toString(): string
3233
{
3334
return json_encode(['resource' => $this->resource, 'id' => $this->id]);
3435
}
35-
}
36+
}

src/Bridge/Symfony/Seal/SymfonyLockToken.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
class SymfonyLockToken implements PortableToken
1111
{
12-
public function __construct(private Key $key) {}
12+
public function __construct(private Key $key)
13+
{
14+
}
1315

1416
public function getKey(): Key
1517
{

src/Bridge/Symfony/Seal/SymfonySemaphoreToken.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
class SymfonySemaphoreToken implements PortableToken
1111
{
12-
public function __construct(private Key $key) {}
12+
public function __construct(private Key $key)
13+
{
14+
}
1315

1416
public function getKey(): Key
1517
{

src/Queue/LotteryQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function add(string $identifier, int $priority = 0): int
1919

2020
public function remove(string $identifier): void
2121
{
22-
$this->storage->remove($identifier);
22+
$this->storage->remove($identifier);
2323
}
2424

2525
public function peek(): ?string

src/Queue/Storage/Lottery/LotteryQueueStorage.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
interface LotteryQueueStorage
88
{
99
public function add(string $identifier, int $priority = 0): int;
10+
1011
public function remove(string $identifier): void;
12+
1113
public function peek(): ?string;
14+
1215
public function getPosition(string $identifier): ?int;
1316
}

src/Seal/SealToken.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Clegginabox\Airlock\Seal;
46

57
use Stringable;
68

79
interface SealToken extends Stringable
810
{
911
public function getResource(): string;
12+
1013
public function getId(): string;
1114
}

0 commit comments

Comments
 (0)