@@ -25,7 +25,7 @@ |
||
| 25 | 25 | // Show the link details for the user |
| 26 | 26 | public function show($id) |
| 27 | 27 | { |
| 28 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by IP Address ' . \Request::ip()); |
|
| 28 | + Log::debug('Route '.Route::currentRouteName().' visited by IP Address '.\Request::ip()); |
|
| 29 | 29 | |
| 30 | 30 | $linkObj = new GetFileLinkDetails; |
| 31 | 31 | $linkID = $linkObj->getLinkID($id); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | // Show the files attached to a link |
| 44 | 44 | public function show($id) |
| 45 | 45 | { |
| 46 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
| 46 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
| 47 | 47 | |
| 48 | 48 | return (new GetFileLinkFiles)->execute($id, true); |
| 49 | 49 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | // Delete a file attached to a link |
| 63 | 63 | public function destroy($id) |
| 64 | 64 | { |
| 65 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
| 65 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
| 66 | 66 | |
| 67 | 67 | (new SaveFileLinkFile)->deleteLinkFile($id); |
| 68 | 68 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
| 46 | 46 | |
| 47 | 47 | // If the user is trying to access the links of another user, they must have the proper permissions permissions |
| 48 | - if ($id != 0) |
|
| 48 | + if($id != 0) |
|
| 49 | 49 | { |
| 50 | 50 | $this->authorize('hasAccess', 'manage_users'); |
| 51 | 51 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | // Update the instructions attached to the link |
| 133 | 133 | public function submitInstructions(UpdateFileLinkInstructionsRequest $request, $linkID) |
| 134 | 134 | { |
| 135 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name . '. Submitted Data - ', $request->toArray()); |
|
| 135 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
| 136 | 136 | |
| 137 | 137 | (new SetFileLinkDetails)->setLinkInstructions($request, $linkID); |
| 138 | 138 | |
@@ -23,8 +23,8 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | public function getUserCustomerFavs() |
| 25 | 25 | { |
| 26 | - $custFavs = CustomerFavs::where('user_id', $this->userID) |
|
| 27 | - ->with(array('Customers' => function($query){ |
|
| 26 | + $custFavs = CustomerFavs::where('user_id', $this->userID) |
|
| 27 | + ->with(array('Customers' => function($query) { |
|
| 28 | 28 | $query->select('cust_id', 'name'); |
| 29 | 29 | })) |
| 30 | 30 | ->get(); |
@@ -34,8 +34,8 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | public function getUserTechTipFavs() |
| 36 | 36 | { |
| 37 | - $tipFavs = TechTipFavs::where('user_id', $this->userID) |
|
| 38 | - ->with(array('TechTips' => function($query){ |
|
| 37 | + $tipFavs = TechTipFavs::where('user_id', $this->userID) |
|
| 38 | + ->with(array('TechTips' => function($query) { |
|
| 39 | 39 | $query->select('tip_id', 'subject'); |
| 40 | 40 | })) |
| 41 | 41 | ->get(); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | public function getUserTotalLinks() |
| 53 | 53 | { |
| 54 | - $totalLinks = FileLinks::where('user_id', Auth::user()->user_id)->count(); |
|
| 54 | + $totalLinks = FileLinks::where('user_id', Auth::user()->user_id)->count(); |
|
| 55 | 55 | return $totalLinks; |
| 56 | 56 | } |
| 57 | 57 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | public function getUserCustomerFavs() |
| 25 | 25 | { |
| 26 | 26 | $custFavs = CustomerFavs::where('user_id', $this->userID) |
| 27 | - ->with(array('Customers' => function($query){ |
|
| 27 | + ->with(array('Customers' => function($query) { |
|
| 28 | 28 | $query->select('cust_id', 'name'); |
| 29 | 29 | })) |
| 30 | 30 | ->get(); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | public function getUserTechTipFavs() |
| 36 | 36 | { |
| 37 | 37 | $tipFavs = TechTipFavs::where('user_id', $this->userID) |
| 38 | - ->with(array('TechTips' => function($query){ |
|
| 38 | + ->with(array('TechTips' => function($query) { |
|
| 39 | 39 | $query->select('tip_id', 'subject'); |
| 40 | 40 | })) |
| 41 | 41 | ->get(); |
@@ -10,13 +10,13 @@ |
||
| 10 | 10 | { |
| 11 | 11 | public function getTipsInLastDays($numDays = 30) |
| 12 | 12 | { |
| 13 | - $tips = TechTips::where('created_at', '>', Carbon::now()->subDays($numDays))->count(); |
|
| 13 | + $tips = TechTips::where('created_at', '>', Carbon::now()->subDays($numDays))->count(); |
|
| 14 | 14 | return $tips; |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function getTotalTechTipCount() |
| 18 | 18 | { |
| 19 | - $tipsTotal = TechTips::all()->count(); |
|
| 19 | + $tipsTotal = TechTips::all()->count(); |
|
| 20 | 20 | return $tipsTotal; |
| 21 | 21 | } |
| 22 | 22 | } |