Skip to content

Commit ea39746

Browse files
committed
🧹 Fixed code-style
1 parent 517c6e6 commit ea39746

File tree

13 files changed

+10
-29
lines changed

13 files changed

+10
-29
lines changed

‎composer.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
"allow-plugins": {
7272
"dragon-code/codestyler": true,
7373
"ergebnis/composer-normalize": true,
74-
"friendsofphp/php-cs-fixer": true
74+
"friendsofphp/php-cs-fixer": true,
75+
"symfony/thanks": true
7576
},
7677
"preferred-install": "dist",
7778
"sort-packages": true

‎src/Concerns/Call.php‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ trait Call
99
use Arrayable;
1010

1111
/**
12-
* @param mixed $callback
13-
*
14-
* @return mixed
12+
* @param mixed $callback
1513
*/
1614
protected function call(mixed $callback = null): mixed
1715
{

‎src/Services/Cache.php‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ public function get(): mixed
8383
return $this->manager()->get($this->getKey());
8484
}
8585

86-
/**
87-
* @param mixed $value
88-
*
89-
* @return mixed
90-
*/
9186
public function put(mixed $value): mixed
9287
{
9388
return $this->manager()->put($this->getKey(), $value, $this->ttl);

‎src/Services/Storages/Disabled.php‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ public function remember(string $key, $value, int $seconds): mixed
2121
return $this->get($key, $value);
2222
}
2323

24-
public function forget(string $key): void
25-
{
26-
}
24+
public function forget(string $key): void {}
2725

2826
public function has(string $key): bool
2927
{

‎src/Services/Storages/Store.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
abstract class Store implements BaseStore
1212
{
1313
use Call;
14-
1514
use Makeable;
1615

1716
public function doesntHave(string $key): bool

‎src/Support/CacheManager.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ class CacheManager implements Store
2222

2323
public function __construct(
2424
protected bool $when = true
25-
) {
26-
}
25+
) {}
2726

2827
public function tags(array $tags): CacheManager
2928
{

‎src/Support/Key.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Key
1313
{
1414
use Arrayable;
1515

16-
public function get(string $separator, ArrayObject|array|DragonArrayable|IlluminateArrayable $values, bool $hash = true): string
16+
public function get(string $separator, array|ArrayObject|DragonArrayable|IlluminateArrayable $values, bool $hash = true): string
1717
{
1818
$values = $this->toArray($values);
1919

‎src/Support/Tag.php‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ class Tag
1414
use Arrayable;
1515

1616
/**
17-
* @param array|\DragonCode\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Arrayable|ArrayObject|DataTransferObject $tags
18-
*
19-
* @return array
17+
* @param array|\DragonCode\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Arrayable|ArrayObject|DataTransferObject $tags
2018
*/
2119
public function get(mixed $tags): array
2220
{

‎src/Support/Ttl.php‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@
1212
class Ttl
1313
{
1414
use Call;
15-
1615
use Has;
1716

18-
public const DAY = 60 * 24;
19-
17+
public const DAY = 60 * 24;
2018
public const MONTH = 60 * 24 * 30;
21-
22-
public const WEEK = 60 * 24 * 7;
19+
public const WEEK = 60 * 24 * 7;
2320

2421
protected int $default = 3600;
2522

‎tests/Fixtures/Ttl/AsDateTime.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ class AsDateTime implements Ttl
1212
{
1313
public function __construct(
1414
protected string $value
15-
) {
16-
}
15+
) {}
1716

1817
public function cacheTtl(): DateTimeInterface
1918
{

0 commit comments

Comments
 (0)