Skip to content

Commit fcf7e2d

Browse files
committed
chore: codestyle
1 parent 4800dce commit fcf7e2d

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/Adapter/AdapterConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function setRoot(string $root): void
146146
$this->root = \rtrim($root, '/');
147147
}
148148

149-
public function getClient(): ?BunnyCDNClient
149+
public function getClient(): BunnyCDNClient
150150
{
151151
return new BunnyCDNClient(
152152
$this->getStorageName(),

tests/unit/Adapter/AdapterConfigTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,5 @@ public function testGetClientWithNonDefaultRefgion(): void
131131
]);
132132

133133
static::assertEquals('any', $adapterConfig->getRegion());
134-
135134
}
136135
}

tests/unit/Adapter/Shopware6BunnyCdnAdapterTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function testDeletionPreventedForDirectories(): void
1515
$this->expectException(UnableToDeleteFile::class);
1616

1717
$client = $this->createMock(BunnyCDNClient::class);
18-
$client->expects($this->never())->method('delete');
18+
$client->expects(static::never())->method('delete');
1919

2020
$config = $this->createMock(AdapterConfig::class);
2121
$config->method('getClient')->willReturn($client);
@@ -28,7 +28,7 @@ public function testDeletionPreventedForDirectories(): void
2828
public function testDeletionSkippedWhenNeverDeleteIsTrue(): void
2929
{
3030
$client = $this->createMock(BunnyCDNClient::class);
31-
$client->expects($this->never())->method('delete');
31+
$client->expects(static::never())->method('delete');
3232

3333
$config = $this->createMock(AdapterConfig::class);
3434
$config->method('getClient')->willReturn($client);
@@ -42,7 +42,7 @@ public function testDeletionSkippedWhenNeverDeleteIsTrue(): void
4242
public function testDeletionOfDirectorySkippedWhenNeverDeleteIsTrue(): void
4343
{
4444
$client = $this->createMock(BunnyCDNClient::class);
45-
$client->expects($this->never())->method('delete');
45+
$client->expects(static::never())->method('delete');
4646

4747
$config = $this->createMock(AdapterConfig::class);
4848
$config->method('getClient')->willReturn($client);
@@ -61,13 +61,13 @@ public function testFileExistsReturnsTrueForVariableThumbnail(): void
6161

6262
$adapter = new Shopware6BunnyCdnAdapter($config);
6363

64-
$this->assertTrue($adapter->fileExists('thumbnail?variable'));
64+
static::assertTrue($adapter->fileExists('thumbnail?variable'));
6565
}
6666

6767
public function testDeleteIsCalled(): void
6868
{
6969
$client = $this->createMock(BunnyCDNClient::class);
70-
$client->expects($this->once())->method('delete');
70+
$client->expects(static::once())->method('delete');
7171

7272
$config = $this->createMock(AdapterConfig::class);
7373
$config->method('getClient')->willReturn($client);
@@ -80,7 +80,7 @@ public function testDeleteIsCalled(): void
8080
public function testDeleteDirectoryIsCalled(): void
8181
{
8282
$client = $this->createMock(BunnyCDNClient::class);
83-
$client->expects($this->once())->method('delete');
83+
$client->expects(static::once())->method('delete');
8484

8585
$config = $this->createMock(AdapterConfig::class);
8686
$config->method('getClient')->willReturn($client);
@@ -93,7 +93,7 @@ public function testDeleteDirectoryIsCalled(): void
9393
public function testFileExistsIsCalled(): void
9494
{
9595
$client = $this->createMock(BunnyCDNClient::class);
96-
$client->expects($this->once())->method('list');
96+
$client->expects(static::once())->method('list');
9797

9898
$config = $this->createMock(AdapterConfig::class);
9999
$config->method('getClient')->willReturn($client);
@@ -102,4 +102,4 @@ public function testFileExistsIsCalled(): void
102102

103103
$adapter->fileExists('file.txt');
104104
}
105-
}
105+
}

0 commit comments

Comments
 (0)