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