Passed
Branch master (5303d4)
by Bjørn
07:49
created
src/Convert/Converters/Cwebp.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
     // If other binaries are going to be added, notice that the first argument is what PHP_OS returns.
48 48
     // (possible values, see here: https://stackoverflow.com/questions/738823/possible-values-for-php-os)
49 49
     private static $suppliedBinariesInfo = [
50
-        'WINNT' => [ 'cwebp.exe', '49e9cb98db30bfa27936933e6fd94d407e0386802cb192800d9fd824f6476873'],
51
-        'Darwin' => [ 'cwebp-mac12', 'a06a3ee436e375c89dbc1b0b2e8bd7729a55139ae072ed3f7bd2e07de0ebb379'],
52
-        'SunOS' => [ 'cwebp-sol', '1febaffbb18e52dc2c524cda9eefd00c6db95bc388732868999c0f48deb73b4f'],
53
-        'FreeBSD' => [ 'cwebp-fbsd', 'e5cbea11c97fadffe221fdf57c093c19af2737e4bbd2cb3cd5e908de64286573'],
54
-        'Linux' => [ 'cwebp-linux', '916623e5e9183237c851374d969aebdb96e0edc0692ab7937b95ea67dc3b2568']
50
+        'WINNT' => ['cwebp.exe', '49e9cb98db30bfa27936933e6fd94d407e0386802cb192800d9fd824f6476873'],
51
+        'Darwin' => ['cwebp-mac12', 'a06a3ee436e375c89dbc1b0b2e8bd7729a55139ae072ed3f7bd2e07de0ebb379'],
52
+        'SunOS' => ['cwebp-sol', '1febaffbb18e52dc2c524cda9eefd00c6db95bc388732868999c0f48deb73b4f'],
53
+        'FreeBSD' => ['cwebp-fbsd', 'e5cbea11c97fadffe221fdf57c093c19af2737e4bbd2cb3cd5e908de64286573'],
54
+        'Linux' => ['cwebp-linux', '916623e5e9183237c851374d969aebdb96e0edc0692ab7937b95ea67dc3b2568']
55 55
     ];
56 56
 
57 57
     public function checkOperationality()
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         // Size
96 96
         if (!is_null($options['size-in-percentage'])) {
97
-            $sizeSource =  filesize($this->source);
97
+            $sizeSource = filesize($this->source);
98 98
             if ($sizeSource !== false) {
99 99
                 $targetSize = floor($sizeSource * $options['size-in-percentage'] / 100);
100 100
             }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             // We only let near_lossless have effect when lossless is set.
120 120
             // otherwise lossless auto would not work as expected
121 121
             if ($options['lossless'] === true) {
122
-                $commandOptionsArray[] ='-near_lossless ' . $options['near-lossless'];
122
+                $commandOptionsArray[] = '-near_lossless ' . $options['near-lossless'];
123 123
             }
124 124
         }
125 125
 
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
                         'It ought to be here: ' . $binaryFile;
362 362
                     break;
363 363
                 default:
364
-                    $errorMsg .= ' (exit code:' .  $returnCode . ').';
364
+                    $errorMsg .= ' (exit code:' . $returnCode . ').';
365 365
             }
366 366
         }
367 367
         return $errorMsg;
Please login to merge, or discard this patch.