| Total Complexity | 5 |
| Total Lines | 36 |
| 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 | $commands[1] = str_replace( |
||
| 27 | $this->path, |
||
| 28 | static::normalizePath($this->path), |
||
| 29 | $commands[1] |
||
| 30 | ); |
||
| 31 | |||
| 32 | return $commands; |
||
| 33 | } |
||
| 34 | |||
| 35 | public static function normalizePath(string $path): string |
||
| 38 | } |
||
| 39 | |||
| 40 | public static function normalizeWindowsPath(string $path): string |
||
| 49 |