Skip to content

Commit

Permalink
Merge pull request #11 from timw4mail/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
timw4mail committed Jan 4, 2016
2 parents 6e4e8ed + 7cdd79a commit 6455541
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/Aviat/AnimeClient/Controller.php
Expand Up @@ -127,7 +127,7 @@ public function redirect_to_previous()
* @param string|null $url
* @return void
*/
public function set_session_redirect($url=NULL)
public function set_session_redirect($url = NULL)
{
$anime_client = $this->container->get('anime-client');
$double_form_page = $this->request->server->get('HTTP_REFERER') == $this->request->url->get();
Expand Down Expand Up @@ -317,7 +317,7 @@ public function not_found()
* @param string $type
* @return void
*/
public function set_flash_message($message, $type="info")
public function set_flash_message($message, $type = "info")
{
$this->session->setFlash('message', [
'message_type' => $type,
Expand Down
10 changes: 5 additions & 5 deletions src/Aviat/AnimeClient/Controller/Anime.php
Expand Up @@ -120,9 +120,9 @@ public function add_form()

$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()
->humanize()
->titleize();
Expand Down Expand Up @@ -171,16 +171,16 @@ public function add()
* @param string $status
* @return void
*/
public function edit($id, $status="all")
public function edit($id, $status = "all")
{
$item = $this->model->get_library_anime($id, $status);
$raw_status_list = AnimeWatchingStatus::getConstList();

$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()
->humanize()
->titleize();
Expand Down
6 changes: 3 additions & 3 deletions src/Aviat/Ion/View.php
Expand Up @@ -50,7 +50,7 @@ abstract class View {
*
* @var boolean
*/
protected $hasRendered = false;
protected $hasRendered = FALSE;

/**
* Constructor
Expand Down Expand Up @@ -81,7 +81,7 @@ public function __destruct()
*/
public function __toString()
{
$this->hasRendered = true;
$this->hasRendered = TRUE;
return $this->getOutput();
}

Expand Down Expand Up @@ -126,7 +126,7 @@ public function getOutput()
*/
public function send()
{
$this->hasRendered = true;
$this->hasRendered = TRUE;
$this->output();
}

Expand Down

0 comments on commit 6455541

Please sign in to comment.