Minor code cleanup, add newer php version for travis tests
All checks were successful
timw4mail/HummingBirdAnimeClient/develop This commit looks good
All checks were successful
timw4mail/HummingBirdAnimeClient/develop This commit looks good
This commit is contained in:
parent
f3b42ae056
commit
c6b74e2775
@ -6,6 +6,8 @@ install:
|
|||||||
php:
|
php:
|
||||||
- 7.1
|
- 7.1
|
||||||
- 7.2
|
- 7.2
|
||||||
|
- 7.3
|
||||||
|
- 7.4
|
||||||
- hhvm
|
- hhvm
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ class Controller {
|
|||||||
if (null === $url)
|
if (null === $url)
|
||||||
{
|
{
|
||||||
$url = $util->isViewPage()
|
$url = $util->isViewPage()
|
||||||
? $this->request->getUri()->__toString()
|
? (string) $this->request->getUri()
|
||||||
: $serverParams['HTTP_REFERER'];
|
: $serverParams['HTTP_REFERER'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ class Controller {
|
|||||||
$csp = [
|
$csp = [
|
||||||
"default-src 'self'",
|
"default-src 'self'",
|
||||||
"object-src 'none'",
|
"object-src 'none'",
|
||||||
"frame-src *.youtube.com",
|
'frame-src *.youtube.com',
|
||||||
];
|
];
|
||||||
|
|
||||||
$view->addHeader('Content-Security-Policy', implode('; ', $csp));
|
$view->addHeader('Content-Security-Policy', implode('; ', $csp));
|
||||||
|
@ -44,7 +44,7 @@ class API {
|
|||||||
array_multisort($sort, SORT_ASC, $array);
|
array_multisort($sort, SORT_ASC, $array);
|
||||||
|
|
||||||
// Re-key array items by their ids
|
// Re-key array items by their ids
|
||||||
if (array_key_exists('id', $array[0]))
|
if (array_key_exists('id', (array)$array[0]))
|
||||||
{
|
{
|
||||||
$keyed = [];
|
$keyed = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user