@@ -127,7 +127,7 @@ |
||
127 | 127 | |
128 | 128 | if (!class_exists($className)) { continue; } |
129 | 129 | |
130 | - $converter = new $className( $source, $filename, $quality, $stripMetadata ); |
|
130 | + $converter = new $className($source, $filename, $quality, $stripMetadata); |
|
131 | 131 | |
132 | 132 | if (!$converter instanceof AbstractConverter || !is_callable([$converter, 'convert'])) { continue; } |
133 | 133 |
@@ -120,17 +120,17 @@ |
||
120 | 120 | } |
121 | 121 | |
122 | 122 | // lossless PNG conversion |
123 | - $lossless = ( $this->extension == 'png' ? '-lossless' : '' ); |
|
123 | + $lossless = ($this->extension == 'png' ? '-lossless' : ''); |
|
124 | 124 | |
125 | 125 | // Metadata (all, exif, icc, xmp or none (default)) |
126 | - $metadata = ( $this->strip ? '-metadata none' : '-metadata all' ); |
|
126 | + $metadata = ($this->strip ? '-metadata none' : '-metadata all'); |
|
127 | 127 | |
128 | - $optionsArray = [ $lossless, '-q ' . $this->quality, '-m 6', $metadata, '-low_memory', |
|
128 | + $optionsArray = [$lossless, '-q ' . $this->quality, '-m 6', $metadata, '-low_memory', |
|
129 | 129 | $this->escapeFilename($this->source), '-o ' . $this->escapeFilename($this->destination), '2>&1', |
130 | 130 | ]; |
131 | 131 | |
132 | 132 | $options = implode(' ', array_filter($optionsArray)); |
133 | - $nice = ( $this->hasNiceSupport() ? 'nice' : '' ); |
|
133 | + $nice = ($this->hasNiceSupport() ? 'nice' : ''); |
|
134 | 134 | return $this->toConvert($binaries, $nice, $options); |
135 | 135 | } |
136 | 136 |