@@ -51,8 +51,7 @@ |
||
| 51 | 51 | protected function getAllContacts($custID, $shared = false) |
| 52 | 52 | { |
| 53 | 53 | return CustomerContacts::where('cust_id', $custID) |
| 54 | - ->when($shared, function($q) |
|
| 55 | - { |
|
| 54 | + ->when($shared, function($q) { |
|
| 56 | 55 | $q->where('shared', 1); |
| 57 | 56 | }) |
| 58 | 57 | ->with('CustomerContactPhones') |