Skip to content

Commit 5019c7c

Browse files
committed
Fix CS
1 parent 65f58f1 commit 5019c7c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/AdapterCollection.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ public function empty(): void
111111
*/
112112
public function getNameToClassmap(): array
113113
{
114-
if (!$this->adapters) {
114+
// phpcs:disable PhpCollective.ControlStructures.DisallowCloakingCheck.FixableEmpty
115+
if (empty($this->adapters)) {
115116
return [];
116117
}
117118

tests/TestCase/Exception/FileDoesNotExistExceptionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testException(): void
3030
{
3131
$exception = FileDoesNotExistException::filename('foobar.jpg');
3232
$this->assertEquals(
33-
'File foobar.jpg does not exist',
33+
'File `foobar.jpg` does not exist',
3434
$exception->getMessage(),
3535
);
3636
}

tests/TestCase/Exception/FileNotReadableExceptionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testException(): void
3030
{
3131
$exception = FileNotReadableException::filename('foobar.jpg');
3232
$this->assertEquals(
33-
'File foobar.jpg is not readable',
33+
'File `foobar.jpg` is not readable',
3434
$exception->getMessage(),
3535
);
3636
}

0 commit comments

Comments
 (0)