Passed
Push — develop ( 6529a6...0af8a8 )
by Andrew
04:46
created
src/controllers/DefaultController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $filePath = parse_url($url, PHP_URL_PATH);
69 69
         // Remove any relative paths
70 70
         if (!PathHelper::ensurePathIsContained($filePath)) {
71
-            throw new BadRequestHttpException('Invalid resource path: ' . $filePath);
71
+            throw new BadRequestHttpException('Invalid resource path: '.$filePath);
72 72
         }
73 73
         // Only work for `allowedFileExtensions` file extensions
74 74
         $extension = strtolower(pathinfo($filePath, PATHINFO_EXTENSION));
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
 
113 113
                     // rawDuration is in 00:00:00.00 format. This converts it to seconds.
114 114
                     $ar = array_reverse(explode(':', $rawDuration));
115
-                    $duration = (float)$ar[0];
115
+                    $duration = (float) $ar[0];
116 116
                     if (!empty($ar[1])) {
117
-                        $duration += (int)$ar[1] * 60;
117
+                        $duration += (int) $ar[1] * 60;
118 118
                     }
119 119
                     if (!empty($ar[2])) {
120
-                        $duration += (int)$ar[2] * 60 * 60;
120
+                        $duration += (int) $ar[2] * 60 * 60;
121 121
                     }
122 122
                 } else {
123 123
                     $duration = 'unknown'; // with GIF as input, duration is unknown
@@ -134,12 +134,12 @@  discard block
 block discarded – undo
134 134
 
135 135
                 //rawTime is in 00:00:00.00 format. This converts it to seconds.
136 136
                 $ar = array_reverse(explode(':', $rawTime));
137
-                $time = (float)$ar[0];
137
+                $time = (float) $ar[0];
138 138
                 if (!empty($ar[1])) {
139
-                    $time += (int)$ar[1] * 60;
139
+                    $time += (int) $ar[1] * 60;
140 140
                 }
141 141
                 if (!empty($ar[2])) {
142
-                    $time += (int)$ar[2] * 60 * 60;
142
+                    $time += (int) $ar[2] * 60 * 60;
143 143
                 }
144 144
 
145 145
                 //calculate the progress
Please login to merge, or discard this patch.