Skip to content

Commit

Permalink
Merge pull request panique#881 from CodeLingoBot/rewrite-panique-huge…
Browse files Browse the repository at this point in the history
…-psr2-lower-case-constant-values

Change PHP keywords to comply with PSR2
  • Loading branch information
panique authored Apr 1, 2019
2 parents dd96f33 + 3e3a0a4 commit 5e223ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function index()
if (LoginModel::isUserLoggedIn()) {
Redirect::home();
} else {
$data = array('redirect' => Request::get('redirect') ? Request::get('redirect') : NULL);
$data = array('redirect' => Request::get('redirect') ? Request::get('redirect') : null);
$this->View->render('login/index', $data);
}
}
Expand Down
2 changes: 1 addition & 1 deletion application/core/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function post($key, $clean = false)
*/
public static function postCheckbox($key)
{
return isset($_POST[$key]) ? 1 : NULL;
return isset($_POST[$key]) ? 1 : null;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion application/model/LoginModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public static function deleteCookie($user_id = null)

$sql = "UPDATE users SET user_remember_me_token = :user_remember_me_token WHERE user_id = :user_id LIMIT 1";
$sth = $database->prepare($sql);
$sth->execute(array(':user_remember_me_token' => NULL, ':user_id' => $user_id));
$sth->execute(array(':user_remember_me_token' => null, ':user_id' => $user_id));
}

// delete remember_me cookie in browser
Expand Down

0 comments on commit 5e223ff

Please sign in to comment.