StripFilterLoader::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 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\Imagine\Filter\Loader;
13
14
use Imagine\Filter\Basic\Strip;
15
use Imagine\Image\ImageInterface;
16
17
class StripFilterLoader implements LoaderInterface
18
{
19
    public function load(ImageInterface $image, array $options = [])
20
    {
21
        $filter = new Strip();
22
        $image = $filter->apply($image);
23
24
        return $image;
25
    }
26
}
27