From 0265da209c8fc1793b657881b2542f8ae9f0e484 Mon Sep 17 00:00:00 2001 From: Joe Huss Date: Sun, 2 Jul 2017 05:54:13 -0400 Subject: [PATCH] minor spacig changes --- src/Plugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Plugin.php b/src/Plugin.php index 83d3583..c007011 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -116,16 +116,16 @@ public static function getTerminate(GenericEvent $event) { $hash = $serverdata[$settings['PREFIX'].'_key']; $ip = $serverdata[$settings['PREFIX'].'_ip']; if (trim($serviceClass->getUsername()) == '') - return true; + return TRUE; list($user, $pass) = explode(':', $hash); $vesta = new \Detain\MyAdminVestaCP\VestaCP($ip, $user, $pass); myadmin_log(self::$module, 'info', "Calling vesta->suspendAccount({$serviceClass->getUsername()})", __LINE__, __FILE__); if ($vesta->deleteAccount($serviceClass->getUsername())) { myadmin_log(self::$module, 'info', 'Success, Response: '.json_encode($vesta->response), __LINE__, __FILE__); - return true; + return TRUE; } else { myadmin_log(self::$module, 'info', 'Failure, Response: '.json_encode($vesta->response), __LINE__, __FILE__); - return false; + return FALSE; } $event->stopPropagation(); }