Completed
Branch master (18a9d3)
by Bjørn
05:13
created
src/Convert/Converters/Wpc.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,21 +11,21 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public static $extraOptions = [
13 13
         [
14
-            'name' => 'api-version',        /* Can currently be 0 or 1 */
14
+            'name' => 'api-version', /* Can currently be 0 or 1 */
15 15
             'type' => 'number',
16 16
             'sensitive' => false,
17 17
             'default' => 0,
18 18
             'required' => false
19 19
         ],
20 20
         [
21
-            'name' => 'secret',        /* only in api v.0 */
21
+            'name' => 'secret', /* only in api v.0 */
22 22
             'type' => 'string',
23 23
             'sensitive' => true,
24 24
             'default' => 'my dog is white',
25 25
             'required' => false
26 26
         ],
27 27
         [
28
-            'name' => 'api-key',        /* new in api v.1 (renamed 'secret' to 'api-key') */
28
+            'name' => 'api-key', /* new in api v.1 (renamed 'secret' to 'api-key') */
29 29
             'type' => 'string',
30 30
             'sensitive' => true,
31 31
             'default' => 'my dog is white',
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             'required' => true
40 40
         ],
41 41
         [
42
-            'name' => 'crypt-api-key-in-transfer',  /* new in api v.1 */
42
+            'name' => 'crypt-api-key-in-transfer', /* new in api v.1 */
43 43
             'type' => 'boolean',
44 44
             'sensitive' => false,
45 45
             'default' => false,
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             ['.', '/']
75 75
         );
76 76
 
77
-        for ($i=0; $i<22; $i++) {
77
+        for ($i = 0; $i < 22; $i++) {
78 78
             $salt .= $validCharsForSalt[array_rand($validCharsForSalt)];
79 79
         }
80 80
         return $salt;
Please login to merge, or discard this patch.
src/Convert/Converters/AbstractConverters/AbstractCloudConverter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
             if (($uploadMaxSize !== false) && ($uploadMaxSize < $fileSize)) {
59 59
                 throw new ConversionFailedException(
60 60
                     'File is larger than your max upload (set in your php.ini). File size:' .
61
-                        round($fileSize/1024) . ' kb. ' .
61
+                        round($fileSize / 1024) . ' kb. ' .
62 62
                         'upload_max_filesize in php.ini: ' . ini_get('upload_max_filesize') .
63
-                        ' (parsed as ' . round($uploadMaxSize/1024) . ' kb)'
63
+                        ' (parsed as ' . round($uploadMaxSize / 1024) . ' kb)'
64 64
                 );
65 65
             }
66 66
 
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
             if (($postMaxSize !== false) && ($postMaxSize < $fileSize)) {
69 69
                 throw new ConversionFailedException(
70 70
                     'File is larger than your post_max_size limit (set in your php.ini). File size:' .
71
-                        round($fileSize/1024) . ' kb. ' .
71
+                        round($fileSize / 1024) . ' kb. ' .
72 72
                         'post_max_size in php.ini: ' . ini_get('post_max_size') .
73
-                        ' (parsed as ' . round($postMaxSize/1024) . ' kb)'
73
+                        ' (parsed as ' . round($postMaxSize / 1024) . ' kb)'
74 74
                 );
75 75
             }
76 76
 
Please login to merge, or discard this patch.
src/Convert/Converters/AbstractConverters/AbstractConverter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -478,14 +478,14 @@
 block discarded – undo
478 478
                 $sourceSize = @filesize($source);
479 479
                 if ($sourceSize !== false) {
480 480
                     $msg .= ', reducing file size with ' .
481
-                        round((filesize($source) - filesize($destination))/filesize($source) * 100) . '% ';
481
+                        round((filesize($source) - filesize($destination)) / filesize($source) * 100) . '% ';
482 482
 
483 483
                     if ($sourceSize < 10000) {
484 484
                         $msg .= '(went from ' . round(filesize($source)) . ' bytes to ';
485 485
                         $msg .= round(filesize($destination)) . ' bytes)';
486 486
                     } else {
487
-                        $msg .= '(went from ' . round(filesize($source)/1024) . ' kb to ';
488
-                        $msg .= round(filesize($destination)/1024) . ' kb)';
487
+                        $msg .= '(went from ' . round(filesize($source) / 1024) . ' kb to ';
488
+                        $msg .= round(filesize($destination) / 1024) . ' kb)';
489 489
                     }
490 490
                 }
491 491
                 $this->logLn($msg);
Please login to merge, or discard this patch.
build-tests-wod/WodBuildTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * @runInSeparateProcess
17 17
      */
18
-     public function testWodBuildNotCompletelyBroken()
18
+        public function testWodBuildNotCompletelyBroken()
19 19
     {
20 20
         $buildDir = __DIR__ . '/../build';
21 21
         $wod1 = $buildDir . '/webp-on-demand-1.inc';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
                     // Return false, in order to cancel serving
92 92
                     return false;
93 93
                 },
94
-                'aboutToPerformFailActionCallback' => function ($errorTitle, $errorDescription, $actionAboutToBeTaken, $serveConvertedObj) {
94
+                'aboutToPerformFailActionCallback' => function($errorTitle, $errorDescription, $actionAboutToBeTaken, $serveConvertedObj) {
95 95
                     return false;
96 96
                 }
97 97
             ]
Please login to merge, or discard this patch.