Skip to content

Commit 3e3a0a4

Browse files
committedMar 31, 2019
Fix case of contants based on best practices from PSR2
Signed-off-by: CodeLingoBot <[email protected]>
1 parent dd96f33 commit 3e3a0a4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎application/controller/LoginController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function index()
2525
if (LoginModel::isUserLoggedIn()) {
2626
Redirect::home();
2727
} else {
28-
$data = array('redirect' => Request::get('redirect') ? Request::get('redirect') : NULL);
28+
$data = array('redirect' => Request::get('redirect') ? Request::get('redirect') : null);
2929
$this->View->render('login/index', $data);
3030
}
3131
}

‎application/core/Request.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function post($key, $clean = false)
3535
*/
3636
public static function postCheckbox($key)
3737
{
38-
return isset($_POST[$key]) ? 1 : NULL;
38+
return isset($_POST[$key]) ? 1 : null;
3939
}
4040

4141
/**

‎application/model/LoginModel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public static function deleteCookie($user_id = null)
362362

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

368368
// delete remember_me cookie in browser

0 commit comments

Comments
 (0)
Please sign in to comment.