| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| 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( |
||
| 31 | $this->path, |
||
| 32 | static::windowsPath($this->path), |
||
| 33 | $commands[1] |
||
| 34 | ); |
||
| 35 | |||
| 36 | return $commands; |
||
| 37 | } |
||
| 38 | |||
| 39 | private static function windowsPath(string $path): string |
||
| 42 | } |
||
| 43 | } |
||
| 44 |