Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public static function decorate(RuntimeException $runtimeException): EncodingException |
||
11 | { |
||
12 | return tap(new static( |
||
13 | $runtimeException->getMessage(), |
||
14 | $runtimeException->getCode(), |
||
15 | $runtimeException->getPrevious() |
||
16 | ), function (self $exception) { |
||
17 | if (config('laravel-ffmpeg.set_command_and_error_output_on_exception')) { |
||
18 | $exception->message = $exception->getAlchemyException()->getMessage(); |
||
19 | } |
||
38 |