Merge pull request #11 from timw4mail/scrutinizer-patch-1
Scrutinizer Auto-Fixes
This commit is contained in:
commit
6455541210
@ -127,7 +127,7 @@ class Controller {
|
|||||||
* @param string|null $url
|
* @param string|null $url
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function set_session_redirect($url=NULL)
|
public function set_session_redirect($url = NULL)
|
||||||
{
|
{
|
||||||
$anime_client = $this->container->get('anime-client');
|
$anime_client = $this->container->get('anime-client');
|
||||||
$double_form_page = $this->request->server->get('HTTP_REFERER') == $this->request->url->get();
|
$double_form_page = $this->request->server->get('HTTP_REFERER') == $this->request->url->get();
|
||||||
@ -317,7 +317,7 @@ class Controller {
|
|||||||
* @param string $type
|
* @param string $type
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function set_flash_message($message, $type="info")
|
public function set_flash_message($message, $type = "info")
|
||||||
{
|
{
|
||||||
$this->session->setFlash('message', [
|
$this->session->setFlash('message', [
|
||||||
'message_type' => $type,
|
'message_type' => $type,
|
||||||
|
@ -120,9 +120,9 @@ class Anime extends BaseController {
|
|||||||
|
|
||||||
$statuses = [];
|
$statuses = [];
|
||||||
|
|
||||||
foreach($raw_status_list as $status_item)
|
foreach ($raw_status_list as $status_item)
|
||||||
{
|
{
|
||||||
$statuses[$status_item] = (string) $this->string($status_item)
|
$statuses[$status_item] = (string)$this->string($status_item)
|
||||||
->underscored()
|
->underscored()
|
||||||
->humanize()
|
->humanize()
|
||||||
->titleize();
|
->titleize();
|
||||||
@ -171,16 +171,16 @@ class Anime extends BaseController {
|
|||||||
* @param string $status
|
* @param string $status
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function edit($id, $status="all")
|
public function edit($id, $status = "all")
|
||||||
{
|
{
|
||||||
$item = $this->model->get_library_anime($id, $status);
|
$item = $this->model->get_library_anime($id, $status);
|
||||||
$raw_status_list = AnimeWatchingStatus::getConstList();
|
$raw_status_list = AnimeWatchingStatus::getConstList();
|
||||||
|
|
||||||
$statuses = [];
|
$statuses = [];
|
||||||
|
|
||||||
foreach($raw_status_list as $status_item)
|
foreach ($raw_status_list as $status_item)
|
||||||
{
|
{
|
||||||
$statuses[$status_item] = (string) $this->string($status_item)
|
$statuses[$status_item] = (string)$this->string($status_item)
|
||||||
->underscored()
|
->underscored()
|
||||||
->humanize()
|
->humanize()
|
||||||
->titleize();
|
->titleize();
|
||||||
|
@ -50,7 +50,7 @@ abstract class View {
|
|||||||
*
|
*
|
||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
protected $hasRendered = false;
|
protected $hasRendered = FALSE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@ -81,7 +81,7 @@ abstract class View {
|
|||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
$this->hasRendered = true;
|
$this->hasRendered = TRUE;
|
||||||
return $this->getOutput();
|
return $this->getOutput();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ abstract class View {
|
|||||||
*/
|
*/
|
||||||
public function send()
|
public function send()
|
||||||
{
|
{
|
||||||
$this->hasRendered = true;
|
$this->hasRendered = TRUE;
|
||||||
$this->output();
|
$this->output();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user