Fix some minor formating issues
This commit is contained in:
parent
fff46421bf
commit
c23c63cb15
@ -27,7 +27,7 @@ class AnimeClient {
|
|||||||
{
|
{
|
||||||
return ($a === $b) ? 'selected' : '';
|
return ($a === $b) ? 'selected' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inverse of selected helper function
|
* Inverse of selected helper function
|
||||||
*
|
*
|
||||||
@ -39,7 +39,7 @@ class AnimeClient {
|
|||||||
{
|
{
|
||||||
return ($a !== $b) ? 'selected' : '';
|
return ($a !== $b) ? 'selected' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine whether to show the sub-menu
|
* Determine whether to show the sub-menu
|
||||||
*
|
*
|
||||||
@ -51,9 +51,9 @@ class AnimeClient {
|
|||||||
->server->get('REQUEST_URI');
|
->server->get('REQUEST_URI');
|
||||||
$blacklist = ['edit', 'add', 'update', 'login', 'logout'];
|
$blacklist = ['edit', 'add', 'update', 'login', 'logout'];
|
||||||
$page_segments = explode("/", $url);
|
$page_segments = explode("/", $url);
|
||||||
|
|
||||||
$intersect = array_intersect($page_segments, $blacklist);
|
$intersect = array_intersect($page_segments, $blacklist);
|
||||||
|
|
||||||
return empty($intersect);
|
return empty($intersect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,8 +61,6 @@ class Manga extends API {
|
|||||||
|
|
||||||
$token = $this->container->get('auth')
|
$token = $this->container->get('auth')
|
||||||
->get_auth_token();
|
->get_auth_token();
|
||||||
$domain = $this->container->get('request')
|
|
||||||
->server->get('HTTP_HOST');
|
|
||||||
|
|
||||||
// Set the token cookie, with the authentication token
|
// Set the token cookie, with the authentication token
|
||||||
// from the auth class.
|
// from the auth class.
|
||||||
|
Loading…
Reference in New Issue
Block a user