Fix formatting

This commit is contained in:
Johannes 2021-09-27 20:27:06 +02:00
parent b1ca573dd1
commit 241014134f

View file

@ -177,7 +177,7 @@ class User extends Authenticatable implements MustVerifyEmail
*/
public function suspend()
{
foreach ($this->servers as $server){
foreach ($this->servers as $server) {
$server->suspend();
}
@ -193,10 +193,10 @@ class User extends Authenticatable implements MustVerifyEmail
*/
public function unSuspend()
{
foreach ($this->servers as $server){
if ($this->credits >= $server->product->getHourlyPrice()) {
$server->unSuspend();
}
foreach ($this->servers as $server) {
if ($this->credits >= $server->product->getHourlyPrice()) {
$server->unSuspend();
}
}
$this->update([