Passed
Push — develop ( 940473...be70d2 )
by Henry
03:02
created
src/Controllers/MediaRequestHandler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     public $searchConditions = [
47 47
         'Caption' => [
48
-            'qualifiers' => ['any','caption']
48
+            'qualifiers' => ['any', 'caption']
49 49
             ,'points' => 2
50 50
             ,'sql' => 'Caption LIKE "%%%s%%"',
51 51
         ]
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         } elseif ($_SERVER['REQUEST_METHOD'] == 'PUT') {
203 203
             $put = fopen(static::$inputStream, 'r'); // open input stream
204 204
 
205
-            $tmp = tempnam('/tmp', 'dvr');  // use PHP to make a temporary file
205
+            $tmp = tempnam('/tmp', 'dvr'); // use PHP to make a temporary file
206 206
             $fp = fopen($tmp, 'w'); // open write stream to temp file
207 207
 
208 208
             // write
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         }
239 239
 
240 240
         return $this->respond('uploadComplete', [
241
-            'success' => (bool)$Media
241
+            'success' => (bool) $Media
242 242
             ,'data' => $Media,
243 243
         ]);
244 244
     }
@@ -260,9 +260,9 @@  discard block
 block discarded – undo
260 260
      */
261 261
     public function setCache(Response $response): Response
262 262
     {
263
-        $expires = 60*60*24*365;
263
+        $expires = 60 * 60 * 24 * 365;
264 264
         return $response->withHeader('Cache-Control', "public, max-age= $expires")
265
-        ->withHeader('Expires', gmdate('D, d M Y H:i:s \G\M\T', time()+$expires))
265
+        ->withHeader('Expires', gmdate('D, d M Y H:i:s \G\M\T', time() + $expires))
266 266
         ->withHeader('Pragma', 'public');
267 267
     }
268 268
 
Please login to merge, or discard this patch.