SelectiveBlurFilter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 0
cbo 2
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the kaloa/image package.
5
 *
6
 * For full copyright and license information, please view the LICENSE file
7
 * that was distributed with this source code.
8
 */
9
10
namespace Kaloa\Image\Filter;
11
12
use Kaloa\Image\Image;
13
14
final class SelectiveBlurFilter extends AbstractFilter
15
{
16 1
    public function render(Image $srcImage)
17
    {
18 1
        imagefilter($srcImage->getResource(), IMG_FILTER_SELECTIVE_BLUR);
19
20 1
        return $srcImage->getResource();
21
    }
22
}
23