From 392e83e25c1f6c7a1bfd1801174a4703dd66f97f Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sat, 18 May 2019 00:39:38 -0400 Subject: app/model/Form: Remove repetitive method naming scheme --- app/controllers/contact.controller.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/contact.controller.php b/app/controllers/contact.controller.php index 803a67c..f7fa5ed 100644 --- a/app/controllers/contact.controller.php +++ b/app/controllers/contact.controller.php @@ -9,17 +9,17 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $form->message = $message = $_POST['26478'] ?? null; $form->spam = $spam = $_POST['agree'] ?? false; - if ($form->isEmpty()) { + if ($form->empty()) { include '../app/views/contact.view.php'; return; } - if ($form->isSpam()) { + if ($form->spam()) { error_log('Contact Form Spam: Error 403'); return http_response_code(403); } - if ($form->isEmailValid() === false) { + if ($form->emailValid() === false) { $emailError = 'Invalid email: ' . "\r" . ''. $email . ''; include '../app/views/contact.view.php'; return; @@ -43,7 +43,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ] ); - $form->isSubmit(); + $form->submit(); return; } -- cgit v1.2.3