Passed
Push — master ( 85c419...35703b )
by Arthur
07:22
created
src/Modules/Machine/Services/MachineService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
     {
54 54
         $this->update($id, [
55 55
             'last_heartbeat' => Carbon::now(),
56
-            'memory_usage' => $data['memory_usage'],
57
-            'cpu_usage' => $data['cpu_usage'],
56
+            'memory_usage' => $data[ 'memory_usage' ],
57
+            'cpu_usage' => $data[ 'cpu_usage' ],
58 58
             'online'    => true
59 59
         ]);
60 60
     }
Please login to merge, or discard this patch.
src/Foundation/Responses/ApiResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 class ApiResponse
13 13
 {
14
-    public static function deleted(){
14
+    public static function deleted() {
15 15
         return \response()->noContent(204);
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
src/Foundation/Traits/MutatesRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 {
14 14
     public function injectUserId($request): array
15 15
     {
16
-        return array_merge($request->toArray(), ['user_id' => get_authenticated_user_id()]);
16
+        return array_merge($request->toArray(), [ 'user_id' => get_authenticated_user_id() ]);
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Foundation/Traits/HandlesOwnership.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
 
15 15
 trait HandlesOwnership
16 16
 {
17
-    public function isOwner(?Ownable $model){
17
+    public function isOwner(?Ownable $model) {
18 18
 
19
-        if($model === null)
19
+        if ($model === null)
20 20
             throw new NotFoundHttpException("Could not found resouce.");
21 21
 
22 22
         $this->authorize('access', $model);
Please login to merge, or discard this patch.