Fix formatting
This commit is contained in:
parent
b1ca573dd1
commit
241014134f
|
@ -177,7 +177,7 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||||
*/
|
*/
|
||||||
public function suspend()
|
public function suspend()
|
||||||
{
|
{
|
||||||
foreach ($this->servers as $server){
|
foreach ($this->servers as $server) {
|
||||||
$server->suspend();
|
$server->suspend();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||||
*/
|
*/
|
||||||
public function unSuspend()
|
public function unSuspend()
|
||||||
{
|
{
|
||||||
foreach ($this->servers as $server){
|
foreach ($this->servers as $server) {
|
||||||
if ($this->credits >= $server->product->getHourlyPrice()) {
|
if ($this->credits >= $server->product->getHourlyPrice()) {
|
||||||
$server->unSuspend();
|
$server->unSuspend();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue