Skip to content

Commit 9cfadff

Browse files
committed
Formatting
1 parent 3aa5d05 commit 9cfadff

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

src/Contracts/ContextSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88

99
interface ContextSerializer
1010
{
11-
public function serialize(?Context $context = null): string;
11+
public function serialize(Context $context = null): string;
1212
}

src/Contracts/KeyGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
interface KeyGenerator
1010
{
11-
public function generate(string $key, ?Context $context = null): string;
11+
public function generate(string $key, Context $context = null): string;
1212

1313
public function removeContextFromKey(string $key): string;
1414

src/Drivers/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(protected Application $app)
2121
{
2222
}
2323

24-
public function driver(?string $driver = null): Driver
24+
public function driver(string $driver = null): Driver
2525
{
2626
return $this->resolveDriver($driver);
2727
}
@@ -64,7 +64,7 @@ protected function getDriverConfig(string $driver): ?array
6464
return $this->app['config']["settings.drivers.{$driver}"];
6565
}
6666

67-
protected function resolveDriver(?string $driver = null): Driver
67+
protected function resolveDriver(string $driver = null): Driver
6868
{
6969
$driver = $driver ?: $this->getDefaultDriver();
7070

src/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function getDriver(): Driver
7979
* Pass in `false` for context when calling `all()` to only return results
8080
* that do not have context.
8181
*/
82-
public function context(Context|bool|null $context = null): self
82+
public function context(Context|bool $context = null): self
8383
{
8484
$this->context = $context;
8585

src/Support/ContextSerializers/ContextSerializer.php

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

1010
class ContextSerializer implements ContextSerializerContract
1111
{
12-
public function serialize(?Context $context = null): string
12+
public function serialize(Context $context = null): string
1313
{
1414
return serialize($context);
1515
}

src/Support/ContextSerializers/DotNotationContextSerializer.php

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

1010
class DotNotationContextSerializer implements ContextSerializerContract
1111
{
12-
public function serialize(?Context $context = null): string
12+
public function serialize(Context $context = null): string
1313
{
1414
if (is_null($context)) {
1515
return '';

src/Support/KeyGenerators/Md5KeyGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Md5KeyGenerator implements KeyGeneratorContract
1313
{
1414
protected ContextSerializer $serializer;
1515

16-
public function generate(string $key, ?Context $context = null): string
16+
public function generate(string $key, Context $context = null): string
1717
{
1818
return md5($key . $this->serializer->serialize($context));
1919
}

src/Support/KeyGenerators/ReadableKeyGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ReadableKeyGenerator implements KeyGeneratorContract
1313
{
1414
protected ContextSerializer $serializer;
1515

16-
public function generate(string $key, ?Context $context = null): string
16+
public function generate(string $key, Context $context = null): string
1717
{
1818
$key = $this->normalizeKey($key);
1919

0 commit comments

Comments
 (0)