Test Setup Failed
Push — vue-test ( 2700c4...ca5b50 )
by Tony
07:42
created
app/Api/Controllers/DeviceController.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,8 @@  discard block
 block discarded – undo
22 22
     {
23 23
         if ($request->user()->hasGlobalRead()) {
24 24
             $devices = Device::query();
25
-        } else {
25
+        }
26
+        else {
26 27
             $devices = $request->user()->devices();
27 28
         }
28 29
 
@@ -67,7 +68,8 @@  discard block
 block discarded – undo
67 68
     {
68 69
         if ($request->user()->hasGlobalRead()) {
69 70
             $device = Device::find($id);
70
-        } else {
71
+        }
72
+        else {
71 73
             $user = User::find($request->user()->user_id);
72 74
             $device = $user->devices()->find($id);
73 75
         }
Please login to merge, or discard this patch.
app/Console/Commands/UpdateDevice.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,8 @@  discard block
 block discarded – undo
56 56
         if ($this->option('pop') || $delete) {
57 57
             if ($delete) {
58 58
                 $device = Device::find($delete);
59
-            } else {
59
+            }
60
+            else {
60 61
                 $device = Device::orderBy('device_id', 'desc')->first();
61 62
             }
62 63
 
@@ -70,13 +71,16 @@  discard block
 block discarded – undo
70 71
         if ($id == 'all') {
71 72
             $this->info('all');
72 73
             $devices = Device::all();
73
-        } elseif ($this->option('push')) {
74
+        }
75
+        elseif ($this->option('push')) {
74 76
             $this->info('push');
75 77
             $devices = [new Device(['hostname' => 'Mockery'])];
76
-        } elseif ($id === null) {
78
+        }
79
+        elseif ($id === null) {
77 80
             $this->info('first');
78 81
             $devices = [Device::first()];
79
-        } else {
82
+        }
83
+        else {
80 84
             $this->info('findOrNew');
81 85
             $devices = [Device::findOrNew($id)];
82 86
         }
Please login to merge, or discard this patch.