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

AbstractVideoFilter::getFFMpegCLIArgument()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2.0625

Importance

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