Skip to content

Commit 9904bd7

Browse files
PHP Linting (Pint)
1 parent 56e1f91 commit 9904bd7

File tree

8 files changed

+8
-19
lines changed

8 files changed

+8
-19
lines changed

src/Drivers/DatabaseDriver.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ public function __construct(
1717
protected Connection $connection,
1818
protected string $table,
1919
protected ?string $teamForeignKey = null,
20-
) {
21-
}
20+
) {}
2221

2322
public function forget($key, $teamId = null): void
2423
{

src/Drivers/EloquentDriver.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
class EloquentDriver implements Driver
1212
{
13-
public function __construct(protected Setting $model)
14-
{
15-
}
13+
public function __construct(protected Setting $model) {}
1614

1715
public function forget($key, $teamId = null): void
1816
{

src/Drivers/Factory.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ class Factory
1717

1818
protected array $customCreators = [];
1919

20-
public function __construct(protected Application $app)
21-
{
22-
}
20+
public function __construct(protected Application $app) {}
2321

2422
public function driver(?string $driver = null): Driver
2523
{

src/Events/SettingWasDeleted.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ public function __construct(
1919
public string $cacheKey,
2020
public mixed $teamId,
2121
public bool|Context|null $context,
22-
) {
23-
}
22+
) {}
2423
}

src/Events/SettingWasStored.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ public function __construct(
2020
public mixed $value,
2121
public mixed $teamId,
2222
public bool|Context|null $context,
23-
) {
24-
}
23+
) {}
2524
}

src/Events/SettingsFlushed.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ public function __construct(
1818
public bool|Collection|string $keys,
1919
public mixed $teamId,
2020
public bool|Context|null $context,
21-
) {
22-
}
21+
) {}
2322
}

src/Settings.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ public function __construct(
6666
protected Driver $driver,
6767
protected KeyGenerator $keyGenerator,
6868
protected ValueSerializer $valueSerializer,
69-
) {
70-
}
69+
) {}
7170

7271
// mainly for testing purposes
7372
public function getDriver(): Driver

tests/Support/Drivers/CustomDriver.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@ public function all($teamId = null, $keys = null): array|Arrayable
3434
return [];
3535
}
3636

37-
public function flush($teamId = null, $keys = null): void
38-
{
39-
}
37+
public function flush($teamId = null, $keys = null): void {}
4038
}

0 commit comments

Comments
 (0)