@@ -26,8 +26,7 @@ |
||
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') |
@@ -78,9 +78,9 @@ |
||
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 | } |