Code Duplication    Length = 9-9 lines in 2 locations

File/Attributes/Resolver/FileAttributesApplier.php 2 locations

@@ 53-61 (lines=9) @@
50
     */
51
    public function apply(FileInterface $file): FileInterface
52
    {
53
        if (!$file->hasContentType()) {
54
            $attr = $this->resolver->resolve($file);
55
56
            return $this->assignFileAttributes(
57
                $file,
58
                $attr->getContentType(),
59
                $attr->getExtension()
60
            );
61
        }
62
63
        if (!$file->hasExtension()) {
64
            $attr = $this->resolver->resolve($file);
@@ 63-71 (lines=9) @@
60
            );
61
        }
62
63
        if (!$file->hasExtension()) {
64
            $attr = $this->resolver->resolve($file);
65
66
            return $this->assignFileAttributes(
67
                $file,
68
                $file->getContentType(),
69
                $attr->getExtension()
70
            );
71
        }
72
73
        return $file;
74
    }