@@ -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') |
@@ -24,8 +24,7 @@ |
||
| 24 | 24 | protected function getNotes($custID, $shared = false) |
| 25 | 25 | { |
| 26 | 26 | return CustomerNotes::where('cust_id', $custID) |
| 27 | - ->when($shared, function($q) |
|
| 28 | - { |
|
| 27 | + ->when($shared, function($q) { |
|
| 29 | 28 | $q->where('shared', 1); |
| 30 | 29 | }) |
| 31 | 30 | ->orderBy('urgent', 'DESC') |