@@ -19,14 +19,17 @@ |
||
19 | 19 | { |
20 | 20 | $this->ffmpegBin = Yii::$app->getModule('files')->ffmpeg; |
21 | 21 | |
22 | - if (!file_exists($this->ffmpegBin)) |
|
23 | - throw new ErrorException("ffmpeg is not found: {$this->ffmpegBin}"); |
|
22 | + if (!file_exists($this->ffmpegBin)) { |
|
23 | + throw new ErrorException("ffmpeg is not found: {$this->ffmpegBin}"); |
|
24 | + } |
|
24 | 25 | |
25 | - if (!is_executable($this->ffmpegBin)) |
|
26 | - throw new ErrorException("ffmpeg is not executable: {$this->ffmpegBin}"); |
|
26 | + if (!is_executable($this->ffmpegBin)) { |
|
27 | + throw new ErrorException("ffmpeg is not executable: {$this->ffmpegBin}"); |
|
28 | + } |
|
27 | 29 | |
28 | - if (!is_file($videoSourceFilename)) |
|
29 | - throw new ErrorException('File not found on disk.'); |
|
30 | + if (!is_file($videoSourceFilename)) { |
|
31 | + throw new ErrorException('File not found on disk.'); |
|
32 | + } |
|
30 | 33 | |
31 | 34 | $this->videoSourceFilename = $videoSourceFilename; |
32 | 35 | $this->outputImageFilename = $outputImageFilename; |