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

AbstractVideoFilter::getFFMpegCLIArgument()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
crap 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