Skip to content

Commit d1c55d5

Browse files
committed
CS: Yoda condition style in MediaObjectFactoryTest
1 parent 07c11b2 commit d1c55d5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/Factory/Uploadable/MediaObjectFactoryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private function buildFactory(
4949
$fieldConfig = new UploadableField(adapter: 'test_adapter');
5050
$fieldConfig->property = 'filename';
5151

52-
if ($annotationReader === null) {
52+
if (null === $annotationReader) {
5353
$annotationReader = $this->createStub(UploadableAttributeReaderInterface::class);
5454
$annotationReader->method('getConfiguredProperties')->willReturn(['file' => $fieldConfig]);
5555
}
@@ -63,21 +63,21 @@ private function buildFactory(
6363
$registry = $this->createStub(ManagerRegistry::class);
6464
$registry->method('getManagerForClass')->willReturn($em);
6565

66-
if ($filesystem === null) {
66+
if (null === $filesystem) {
6767
$filesystem = $this->createStub(Filesystem::class);
6868
$filesystem->method('mimeType')->willReturn('image/png');
6969
$filesystem->method('fileSize')->willReturn(1024);
7070
$filesystem->method('read')->willReturn('PNG_DATA');
7171
}
7272

73-
if ($filesystemProvider === null) {
73+
if (null === $filesystemProvider) {
7474
$filesystemProvider = $this->createStub(FilesystemProvider::class);
7575
$filesystemProvider->method('getFilesystem')->willReturn($filesystem);
7676
}
7777

7878
$fileInfo = new FileInfo(self::FILE_PATH, 'image/png', 1024, 100, 100);
7979

80-
if ($fileInfoCacheManager === null) {
80+
if (null === $fileInfoCacheManager) {
8181
$fileInfoCacheManager = $this->createStub(FileInfoCacheManager::class);
8282
$fileInfoCacheManager->method('resolveCache')->willReturn($fileInfo);
8383
}

0 commit comments

Comments
 (0)