Skip to content

Commit 5b05e7c

Browse files
committed
minor spacig changes
1 parent 40c3b13 commit 5b05e7c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/Plugin.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function_requirements('whm_api');
219219
$db->query("update {$settings['TABLE']} set {$settings['PREFIX']}_ip='$ip', {$settings['PREFIX']}_username='$username' where {$settings['PREFIX']}_id='{$serviceClass->getId()}'", __LINE__, __FILE__);
220220
website_welcome_email($serviceClass->getId());
221221
if (isset($extra['script']) && $extra['script'] > 0) {
222-
$script = (int)$extra['script'];
222+
$script = (int) $extra['script'];
223223
include_once('include/webhosting/softaculous/sdk.php');
224224
$userdata = $GLOBALS['tf']->accounts->read($serviceClass->getCustid());
225225
$soft = new Softaculous_SDK();
@@ -307,9 +307,9 @@ function_requirements('whm_api');
307307
$whm->set_hash($hash);
308308
//$whm = whm_api('faith.interserver.net');
309309
if (in_array('reseller', explode(',', $event['field1'])))
310-
$response = json_decode($whm->suspendreseller($serviceClass->getUsername(), 'Canceled Service'), true);
310+
$response = json_decode($whm->suspendreseller($serviceClass->getUsername(), 'Canceled Service'), TRUE);
311311
else
312-
$response = json_decode($whm->suspendacct($serviceClass->getUsername(), 'Canceled Service'), true);
312+
$response = json_decode($whm->suspendacct($serviceClass->getUsername(), 'Canceled Service'), TRUE);
313313
myadmin_log(self::$module, 'info', json_encode($response), __LINE__, __FILE__);
314314
$event->stopPropagation();
315315
}
@@ -336,9 +336,9 @@ function_requirements('whm_api');
336336
//$whm = whm_api('faith.interserver.net');
337337
if (trim($serviceClass->getUsername()) != '') {
338338
if (in_array('reseller', explode(',', $event['field1'])))
339-
$response = json_decode($whm->terminatereseller($serviceClass->getUsername(), true));
339+
$response = json_decode($whm->terminatereseller($serviceClass->getUsername(), TRUE));
340340
else
341-
$response = json_decode($whm->removeacct($serviceClass->getUsername(), false));
341+
$response = json_decode($whm->removeacct($serviceClass->getUsername(), FALSE));
342342
myadmin_log(self::$module, 'info', json_encode($response), __LINE__, __FILE__);
343343
} else
344344
myadmin_log(self::$module, 'info', "Skipping WHMAPI/Server Removal for {$serviceClass->getHostname()} because username is blank", __LINE__, __FILE__);
@@ -352,13 +352,13 @@ function_requirements('whm_api');
352352
myadmin_log(self::$module, 'info', "Skipping Removing DNS entry for {$serviceClass->getHostname()} because other non deleted sites w/ the same hostname exist", __LINE__, __FILE__);
353353
}
354354
if (trim($serviceClass->getUsername()) == '')
355-
return true;
355+
return TRUE;
356356
elseif ($response->result[0]->status == 1)
357-
return true;
357+
return TRUE;
358358
elseif ($response->result[0]->statusmsg == "System user {$serviceClass->getUsername()} does not exist!")
359-
return true;
359+
return TRUE;
360360
else
361-
return false;
361+
return FALSE;
362362
$event->stopPropagation();
363363
}
364364
}

0 commit comments

Comments
 (0)