Completed
Push — feature-20rc1 ( 008ae2 )
by Rob
16:55
created

ExtensionGuesser::isSupportedGuesser()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 1
1
<?php
2
3
/*
4
 * This file is part of the `liip/LiipImagineBundle` project.
5
 *
6
 * (c) https://github.com/liip/LiipImagineBundle/graphs/contributors
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Liip\ImagineBundle\File\Attributes\Guesser;
13
14
use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface as BaseExtensionGuesserInterface;
15
16
/**
17
 * @internal
18
 *
19
 * @author Rob Frawley 2nd <[email protected]>
20
 */
21
final class ExtensionGuesser extends AbstractGuesser implements ExtensionGuesserInterface
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected static function isSupportedGuesser($guesser): bool
27
    {
28
        return $guesser instanceof ExtensionGuesserInterface
29
            || $guesser instanceof BaseExtensionGuesserInterface;
30
    }
31
}
32