소스 검색

Fix formatting

Johannes 3 년 전
부모
커밋
241014134f
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      app/Models/User.php

+ 5 - 5
app/Models/User.php

@@ -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([