Passed
Push — dev5a ( 8099d5...bf034e )
by Ron
07:35
created
app/Domains/Customers/GetCustomerEquipment.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
     protected function getEquipment($custID, $shared = false)
27 27
     {
28 28
         return CustomerSystems::where('cust_id', $custID)
29
-            ->when($shared, function($q)
30
-            {
29
+            ->when($shared, function($q) {
31 30
                 $q->where('shared', 1);
32 31
             })
33 32
             ->with('CustomerSystemData')
Please login to merge, or discard this patch.
app/Domains/Customers/SetCustomerEquipment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,9 +78,9 @@
 block discarded – undo
78 78
                 'cust_sys_id' => $equipID,
79 79
                 'field_id'    => $field['field_id'],
80 80
             ],
81
-            [   'cust_sys_id' => $equipID,
81
+            ['cust_sys_id' => $equipID,
82 82
                 'field_id'    => $field['field_id'],
83
-                'value' => isset($field['value']) ? $field['value'] : null,])->update([
83
+                'value' => isset($field['value']) ? $field['value'] : null, ])->update([
84 84
                 'value' => isset($field['value']) ? $field['value'] : null,
85 85
             ]);
86 86
         }
Please login to merge, or discard this patch.