Skip to content

Commit

Permalink
minor spacig changes
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Jul 2, 2017
1 parent ea00237 commit 173c5e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public static function getDeactivate(GenericEvent $event) {
$vesta = new \Detain\MyAdminVestaCP\VestaCP($ip, $user, $pass);
myadmin_log(self::$module, 'info', "Calling vesta->suspendAccount({$serviceClass->getUsername()})", __LINE__, __FILE__);
if ($vesta->suspendAccount($serviceClass->getUsername())) {
myadmin_log(self::$module, 'info', 'Success, Response: ' . json_encode($vesta->response), __LINE__, __FILE__);
myadmin_log(self::$module, 'info', 'Success, Response: '.json_encode($vesta->response), __LINE__, __FILE__);
} else {
myadmin_log(self::$module, 'info', 'Failure, Response: ' . json_encode($vesta->response), __LINE__, __FILE__);
myadmin_log(self::$module, 'info', 'Failure, Response: '.json_encode($vesta->response), __LINE__, __FILE__);
}
$event->stopPropagation();
}
Expand All @@ -121,10 +121,10 @@ public static function getTerminate(GenericEvent $event) {
$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__);
myadmin_log(self::$module, 'info', 'Success, Response: '.json_encode($vesta->response), __LINE__, __FILE__);
return true;
} else {
myadmin_log(self::$module, 'info', 'Failure, Response: ' . json_encode($vesta->response), __LINE__, __FILE__);
myadmin_log(self::$module, 'info', 'Failure, Response: '.json_encode($vesta->response), __LINE__, __FILE__);
return false;
}
$event->stopPropagation();
Expand Down

0 comments on commit 173c5e0

Please sign in to comment.