From f3a44e6f339e7a55ea4791d9daa9689b2d93dc4b Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 2 Feb 2016 21:38:38 -0500 Subject: [PATCH] Minor spacing fixes --- src/Aviat/AnimeClient/Controller/Manga.php | 3 +-- src/Aviat/AnimeClient/Dispatcher.php | 4 ++-- src/Aviat/AnimeClient/Model/Anime.php | 2 +- src/Aviat/AnimeClient/Model/Manga.php | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Aviat/AnimeClient/Controller/Manga.php b/src/Aviat/AnimeClient/Controller/Manga.php index c893ca8c..84cb8a85 100644 --- a/src/Aviat/AnimeClient/Controller/Manga.php +++ b/src/Aviat/AnimeClient/Controller/Manga.php @@ -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() diff --git a/src/Aviat/AnimeClient/Dispatcher.php b/src/Aviat/AnimeClient/Dispatcher.php index d0736004..75f4ad6e 100644 --- a/src/Aviat/AnimeClient/Dispatcher.php +++ b/src/Aviat/AnimeClient/Dispatcher.php @@ -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, diff --git a/src/Aviat/AnimeClient/Model/Anime.php b/src/Aviat/AnimeClient/Model/Anime.php index cd1cfb6c..3784cb34 100644 --- a/src/Aviat/AnimeClient/Model/Anime.php +++ b/src/Aviat/AnimeClient/Model/Anime.php @@ -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) { diff --git a/src/Aviat/AnimeClient/Model/Manga.php b/src/Aviat/AnimeClient/Model/Manga.php index 8705323e..609b39ca 100644 --- a/src/Aviat/AnimeClient/Model/Manga.php +++ b/src/Aviat/AnimeClient/Model/Manga.php @@ -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();