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/model/Form.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/model') diff --git a/app/model/Form.php b/app/model/Form.php index 7d972e7..f3d7a15 100644 --- a/app/model/Form.php +++ b/app/model/Form.php @@ -10,7 +10,7 @@ class Form public $message; public $spam; - public function isSpam() + public function spam() { if ((bool) $this->spam == true) { error_log('Contact Form Spam: Error 403'); @@ -18,7 +18,7 @@ class Form } } - public function isEmpty() + public function empty() { if ((bool) empty($this->email) == true || (bool) empty($this->message) == true @@ -27,12 +27,12 @@ class Form } } - public function isEmailValid() + public function emailValid() { return $email = PHPMailer::validateAddress($this->email, 'auto'); } - public function isSubmit() + public function submit() { // Include mail config $config = include '../AppConfig.php'; -- cgit v1.2.3