Passed
Push — master ( e997b4...814bec )
by Sébastien
02:46
created

AbstractVideoFilter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 9
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFFMpegCLIArgument() 0 7 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Soluble\MediaTools\Video\Filter;
6
7
abstract class AbstractVideoFilter implements VideoFilterInterface
8
{
9 2
    public function getFFMpegCLIArgument(): string
10
    {
11 2
        if (trim($this->getFFmpegCLIValue()) === '') {
12 1
            return '';
13
        }
14
15 1
        return '-vf ' . $this->getFFmpegCLIValue();
16
    }
17
}
18