Passed
Push — master ( 541cf6...145c86 )
by Whallysson
01:16
created
src/ToWebP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Convert/Converters/Cwebp.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -120,17 +120,17 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.