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

ExtensionGuesser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isSupportedGuesser() 0 5 2
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