Completed
Push — master ( ab42e2...d99315 )
by Sébastien
02:49
created

AbstractVideoFilter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 9
ccs 3
cts 4
cp 0.75
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\Filter\Video;
6
7
abstract class AbstractVideoFilter implements VideoFilterInterface
8
{
9 1
    public function getFFMpegCLIArgument(): string
10
    {
11 1
        if (trim($this->getFFmpegCLIValue()) === '') {
12
            return '';
13
        }
14
15 1
        return '-vf ' . $this->getFFmpegCLIValue();
16
    }
17
}
18