Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
4 changed files with 5 additions and 6 deletions
Showing only changes of commit f3a44e6f33 - Show all commits

View File

@ -140,7 +140,7 @@ class Manga extends Controller {
}
else
{
$this->set_flash_message('Failed to add new manga to list' . $result['body'] , 'error');
$this->set_flash_message('Failed to add new manga to list' . $result['body'], 'error');
}
$this->session_redirect();
@ -171,7 +171,6 @@ class Manga extends Controller {
/**
* Search for a manga to add to the list
*
* @param string $query
* @return void
*/
public function search()

View File

@ -104,7 +104,7 @@ class Dispatcher extends RoutingBase {
$logger->debug(print_r($route, TRUE));
}
if($route)
if ($route)
{
$parsed = $this->process_route($route);
$controller_name = $parsed['controller_name'];
@ -272,7 +272,7 @@ class Dispatcher extends RoutingBase {
'message' => 'Invalid HTTP Verb'
];
}
else if($failure->failedAccept())
else if ($failure->failedAccept())
{
$params = [
'http_code' => 406,

View File

@ -78,7 +78,7 @@ class Anime extends API {
* Remove an anime from a list
*
* @param array $data
* @return array
* @return array|false
*/
public function delete($data)
{

View File

@ -50,7 +50,7 @@ class Manga extends API {
*/
protected $base_url = "https://hummingbird.me/";
protected function _manga_api_call($type, $url, $json=null)
protected function _manga_api_call($type, $url, $json = NULL)
{
$token = $this->container->get('auth')
->get_auth_token();