@@ -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,11 +275,11 @@ 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 | // @codeCoverageIgnoreStart |
| 281 | 281 | header("Cache-Control: public, max-age=$expires"); |
| 282 | - header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time()+$expires)); |
|
| 282 | + header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + $expires)); |
|
| 283 | 283 | header('Pragma: public'); |
| 284 | 284 | // @codeCoverageIgnoreEnd |
| 285 | 285 | } |
@@ -522,9 +522,9 @@ discard block |
||
| 522 | 522 | // send caching headers |
| 523 | 523 | if (!headers_sent()) { |
| 524 | 524 | // @codeCoverageIgnoreStart |
| 525 | - $expires = 60*60*24*365; |
|
| 525 | + $expires = 60 * 60 * 24 * 365; |
|
| 526 | 526 | header("Cache-Control: public, max-age=$expires"); |
| 527 | - header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time()+$expires)); |
|
| 527 | + header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + $expires)); |
|
| 528 | 528 | header('Pragma: public'); |
| 529 | 529 | // @codeCoverageIgnoreEnd |
| 530 | 530 | } |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | $Session->setFields($sessionData); |
| 114 | 114 | if (function_exists('fastcgi_finish_request')) { |
| 115 | 115 | // @codeCoverageIgnoreStart |
| 116 | - register_shutdown_function(function (&$Session) { |
|
| 116 | + register_shutdown_function(function(&$Session) { |
|
| 117 | 117 | $Session->save(); |
| 118 | 118 | }, $Session); |
| 119 | 119 | // @codeCoverageIgnoreEnd |