Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class WatermarkFilter extends FFMpegWatermarkFilter |
||
12 | { |
||
13 | protected $path; |
||
14 | |||
15 | public function __construct($watermarkPath, array $coordinates = [], $priority = 0) |
||
20 | } |
||
21 | |||
22 | protected function getCommands() |
||
23 | { |
||
24 | $commands = parent::getCommands(); |
||
25 | |||
26 | if (!windows_os()) { |
||
27 | return $commands; |
||
28 | } |
||
29 | |||
30 | $commands[1] = str_replace($this->path, static::windowsPath($this->path), $commands[1]); |
||
31 | |||
32 | return $commands; |
||
33 | } |
||
34 | |||
35 | private static function windowsPath(string $path): string |
||
38 | } |
||
39 | } |
||
40 |