From 42a0e2f72fed0a947242b004a0fc6eb4a664174b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Apr 2021 16:04:28 +0300 Subject: Updated all double quotes to single quotes where possible --- src/controllers/DashboardLoginController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/controllers/DashboardLoginController.php') diff --git a/src/controllers/DashboardLoginController.php b/src/controllers/DashboardLoginController.php index fe2009b..af1113e 100644 --- a/src/controllers/DashboardLoginController.php +++ b/src/controllers/DashboardLoginController.php @@ -6,20 +6,20 @@ class DashboardLoginController extends BaseController { private static $message; public static function get() { - include "views/dashboard-login.php"; + include('views/dashboard-login.php'); } public static function post() { if (isset($_POST['_method'])) { DashboardController::invoke(); } - else if ($_POST['username'] == "admin" && $_POST['password'] == "admin") { + else if ($_POST['username'] == 'admin' && $_POST['password'] == 'admin') { // Load normal dashboard DashboardController::get(); } else { - self::$message = "Bad credentials!"; - include "views/dashboard-login.php"; + self::$message = 'Bad credentials!'; + include('views/dashboard-login.php'); } } } -- cgit v1.3.1-23-gd82d From 976b399f90fc5c0152f87e474e61e6065c0e7a5f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Apr 2021 16:25:24 +0300 Subject: Updated the comments and documentation in some controllers --- src/controllers/BaseController.php | 4 ++++ src/controllers/DashboardController.php | 3 +++ src/controllers/DashboardLoginController.php | 3 +++ 3 files changed, 10 insertions(+) (limited to 'src/controllers/DashboardLoginController.php') diff --git a/src/controllers/BaseController.php b/src/controllers/BaseController.php index f766398..412cf25 100644 --- a/src/controllers/BaseController.php +++ b/src/controllers/BaseController.php @@ -1,5 +1,9 @@