Scrutinizer fixes
This commit is contained in:
parent
7269c5c393
commit
dbbea163d1
@ -2,7 +2,6 @@
|
|||||||
/**
|
/**
|
||||||
* Here begins everything!
|
* Here begins everything!
|
||||||
*/
|
*/
|
||||||
session_start();
|
|
||||||
|
|
||||||
// Work around the silly timezone error
|
// Work around the silly timezone error
|
||||||
$timezone = ini_get('date.timezone');
|
$timezone = ini_get('date.timezone');
|
||||||
|
@ -11,6 +11,9 @@ use \Aviat\Ion\View\JsonView;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller base, defines output methods
|
* Controller base, defines output methods
|
||||||
|
*
|
||||||
|
* @property Response object $response
|
||||||
|
* @property Config object $config
|
||||||
*/
|
*/
|
||||||
class Controller {
|
class Controller {
|
||||||
|
|
||||||
|
@ -102,8 +102,6 @@ class Manga extends Controller {
|
|||||||
? [$map[$status] => $this->model->get_list($map[$status])]
|
? [$map[$status] => $this->model->get_list($map[$status])]
|
||||||
: $this->model->get_all_lists();
|
: $this->model->get_all_lists();
|
||||||
|
|
||||||
//throw new \ErrorException("Data :" . print_r($data, TRUE));
|
|
||||||
|
|
||||||
$this->outputHTML('manga/' . $view_map[$view], [
|
$this->outputHTML('manga/' . $view_map[$view], [
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'sections' => $data,
|
'sections' => $data,
|
||||||
|
@ -99,6 +99,8 @@ class Friend {
|
|||||||
$property->setAccessible(TRUE);
|
$property->setAccessible(TRUE);
|
||||||
return $property;
|
return $property;
|
||||||
}
|
}
|
||||||
|
// Return NULL on any exception, so no further logic needed
|
||||||
|
// in the catch block
|
||||||
catch (\Exception $e) {}
|
catch (\Exception $e) {}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user