| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function getCommand(): string |
||
| 20 | { |
||
| 21 | $optionString = implode(' ', $this->options); |
||
| 22 | |||
| 23 | return "\"{$this->binaryPath}{$this->binaryName}\" {$optionString}" |
||
| 24 | .' '.escapeshellarg($this->imagePath) |
||
| 25 | .' -o '. |
||
| 26 | escapeshellarg( |
||
| 27 | preg_replace( |
||
| 28 | '/'.pathinfo($this->imagePath, PATHINFO_EXTENSION).'$/', |
||
| 29 | 'webp', |
||
| 30 | $this->imagePath |
||
| 31 | ) |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |