Skip to content

Commit cc3e3a9

Browse files
committed
Apply fixes from StyleCI
1 parent 19049f6 commit cc3e3a9

File tree

6 files changed

+8
-11
lines changed

6 files changed

+8
-11
lines changed

src/Illuminate/Contracts/Cache/Repository.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace Illuminate\Contracts\Cache;
44

55
use Closure;
6-
use DateInterval;
7-
use DateTimeInterface;
86
use Psr\SimpleCache\CacheInterface;
97

108
interface Repository extends CacheInterface

tests/Cache/CacheDatabaseStoreTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ public function testTouchExtendsTtl()
238238

239239
$this->assertTrue($store->touch('foo', $ttl));
240240
}
241+
241242
public function testTouchExtendsTtlOnPostgres(): void
242243
{
243244
$ttl = 60;

tests/Cache/CacheDynamoDbStoreTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Illuminate\Tests\Cache;
44

5-
use Aws\AwsClient;
65
use Aws\DynamoDb\DynamoDbClient;
76
use Illuminate\Cache\DynamoDbStore;
87
use PHPUnit\Framework\TestCase;
@@ -22,7 +21,7 @@ public function testTouchMethodCorrectlyCallsDynamoDb(): void
2221
&& $dynamo->args['TableName'] === $table
2322
&& $dynamo->args['Key']['key']['S'] === $key
2423
&& str_contains($dynamo->args['UpdateExpression'], 'SET')
25-
);
24+
);
2625

2726
$this->assertTrue(
2827
$ttl === $dynamo->args['ExpressionAttributeValues'][':expiry']['N']
@@ -35,7 +34,9 @@ class TestDynamo extends DynamoDbClient
3534
{
3635
public array $args;
3736

38-
public function __construct() {}
37+
public function __construct()
38+
{
39+
}
3940

4041
public function updateItem(array $args): bool
4142
{

tests/Cache/CacheFileStoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function testTouchExtendsTtl(): void
136136
->method('put')
137137
->with(
138138
$this->equalTo($path),
139-
$this->equalTo(($now->clone()->addSeconds($ttl)->getTimestamp()).serialize($content)),
139+
$this->equalTo($now->clone()->addSeconds($ttl)->getTimestamp().serialize($content)),
140140
$this->equalTo(true)
141141
)
142142
->willReturn(1);

tests/Cache/CacheMemoizedStoreTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
namespace Illuminate\Tests\Cache;
44

55
use Illuminate\Cache\ArrayStore;
6-
use Illuminate\Cache\MemcachedStore;
76
use Illuminate\Cache\MemoizedStore;
87
use Illuminate\Cache\Repository;
98
use Illuminate\Support\Carbon;
10-
use Memcached;
11-
use Mockery as m;
129
use PHPUnit\Framework\TestCase;
1310

1411
class CacheMemoizedStoreTest extends TestCase

tests/Cache/CacheRepositoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public function testTouchWithNullTTLRemembersItemForever(): void
437437
{
438438
$key = 'key';
439439
$ttl = null;
440-
440+
441441
$repo = $this->getRepository();
442442
$repo->getStore()->shouldReceive('get')->with($key)->andReturn('bar');
443443
$repo->getStore()->shouldReceive('forever')->once()->with($key, 'bar')->andReturn(true);
@@ -448,7 +448,7 @@ public function testTouchWithSecondsTtlCorrectlyProxiesToStore(): void
448448
{
449449
$key = 'key';
450450
$ttl = 60;
451-
451+
452452
$repo = $this->getRepository();
453453
$repo->getStore()->shouldReceive('get')->with($key)->andReturn('bar');
454454
$repo->getStore()->shouldReceive('touch')->once()->with($key, $ttl)->andReturn(true);

0 commit comments

Comments
 (0)