@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | public $searchConditions = [ |
41 | 41 | 'Caption' => [ |
42 | - 'qualifiers' => ['any','caption'] |
|
42 | + 'qualifiers' => ['any', 'caption'] |
|
43 | 43 | ,'points' => 2 |
44 | 44 | ,'sql' => 'Caption LIKE "%%%s%%"', |
45 | 45 | ] |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | } elseif ($_SERVER['REQUEST_METHOD'] == 'PUT') { |
192 | 192 | $put = fopen(static::$inputStream, 'r'); // open input stream |
193 | 193 | |
194 | - $tmp = tempnam('/tmp', 'dvr'); // use PHP to make a temporary file |
|
194 | + $tmp = tempnam('/tmp', 'dvr'); // use PHP to make a temporary file |
|
195 | 195 | $fp = fopen($tmp, 'w'); // open write stream to temp file |
196 | 196 | |
197 | 197 | // write |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | } |
228 | 228 | |
229 | 229 | return $this->respond('uploadComplete', [ |
230 | - 'success' => (boolean)$Media |
|
230 | + 'success' => (boolean) $Media |
|
231 | 231 | ,'data' => $Media |
232 | 232 | ]); |
233 | 233 | } |
@@ -275,10 +275,10 @@ discard block |
||
275 | 275 | } |
276 | 276 | |
277 | 277 | // send caching headers |
278 | - $expires = 60*60*24*365; |
|
278 | + $expires = 60 * 60 * 24 * 365; |
|
279 | 279 | if (!headers_sent()) { |
280 | 280 | header("Cache-Control: public, max-age=$expires"); |
281 | - header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time()+$expires)); |
|
281 | + header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + $expires)); |
|
282 | 282 | header('Pragma: public'); |
283 | 283 | } |
284 | 284 | |
@@ -505,9 +505,9 @@ discard block |
||
505 | 505 | { |
506 | 506 | // send caching headers |
507 | 507 | if (!headers_sent()) { |
508 | - $expires = 60*60*24*365; |
|
508 | + $expires = 60 * 60 * 24 * 365; |
|
509 | 509 | header("Cache-Control: public, max-age=$expires"); |
510 | - header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time()+$expires)); |
|
510 | + header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + $expires)); |
|
511 | 511 | header('Pragma: public'); |
512 | 512 | } |
513 | 513 |