@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | public function getUserCustomerFavs() |
| 24 | 24 | { |
| 25 | - $custFavs = CustomerFavs::where('user_id', $this->userID) |
|
| 26 | - ->with(array('Customers' => function($query){ |
|
| 25 | + $custFavs = CustomerFavs::where('user_id', $this->userID) |
|
| 26 | + ->with(array('Customers' => function($query) { |
|
| 27 | 27 | $query->select('cust_id', 'name'); |
| 28 | 28 | })) |
| 29 | 29 | ->get(); |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | public function getUserTechTipFavs() |
| 43 | 43 | { |
| 44 | - $tipFavs = TechTipFavs::where('user_id', $this->userID) |
|
| 45 | - ->with(array('TechTips' => function($query){ |
|
| 44 | + $tipFavs = TechTipFavs::where('user_id', $this->userID) |
|
| 45 | + ->with(array('TechTips' => function($query) { |
|
| 46 | 46 | $query->select('tip_id', 'subject'); |
| 47 | 47 | })) |
| 48 | 48 | ->get(); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | public function getUserTotalLinks() |
| 70 | 70 | { |
| 71 | - $totalLinks = FileLinks::where('user_id', $this->userID)->count(); |
|
| 71 | + $totalLinks = FileLinks::where('user_id', $this->userID)->count(); |
|
| 72 | 72 | |
| 73 | 73 | Log::debug('Retrieved count of total File Links for User ID'.$this->userID.'. Data - './** @scrutinizer ignore-type */$totalLinks.' found'); |
| 74 | 74 | return $totalLinks; |