Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
31 | public function convert(string $file, ?int $width = null, ?int $height = null): void |
||
32 | { |
||
33 | $info = $this->reader->getInfo($file); |
||
34 | |||
35 | $vStream = $info->getVideoStreams()->getFirst(); |
||
36 | $aStream = $info->getAudioStreams()->getFirst(); |
||
|
|||
37 | |||
38 | $width = $width ?? $vStream->getWidth(); |
||
39 | $height = $height ?? $vStream->getHeight(); |
||
40 | |||
41 | $params = $this->getParams($width, $height); |
||
42 | } |
||
52 |