@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $id = Auth::user()->user_id; |
| 57 | 57 | } |
| 58 | 58 | // If the user is trying to pull someone elses links, they must be able to manage users |
| 59 | - else if ($id != Auth::user()->user_id) |
|
| 59 | + else if($id != Auth::user()->user_id) |
|
| 60 | 60 | { |
| 61 | 61 | $this->authorize('hasAccess', 'manage_users'); |
| 62 | 62 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | // Verify that the upload is valid and being processed |
| 95 | 95 | if($receiver->isUploaded() === false) |
| 96 | 96 | { |
| 97 | - Log::error('Upload File Missing - ' . |
|
| 97 | + Log::error('Upload File Missing - '. |
|
| 98 | 98 | /** @scrutinizer ignore-type */ |
| 99 | 99 | $request->toArray()); |
| 100 | 100 | throw new UploadMissingFileException(); |
@@ -166,6 +166,10 @@ |
||
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | // Create the new file link |
| 169 | + |
|
| 170 | + /** |
|
| 171 | + * @param Request $data |
|
| 172 | + */ |
|
| 169 | 173 | private function createLink($data) |
| 170 | 174 | { |
| 171 | 175 | // Generate a random hash to use as the file link and make sure it is not already in use |
@@ -23,6 +23,10 @@ |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | // Remove any illegal characters from filename and make sure it is unique |
| 26 | + |
|
| 27 | + /** |
|
| 28 | + * @return string |
|
| 29 | + */ |
|
| 26 | 30 | public static function cleanFileName($path, $fileName) |
| 27 | 31 | { |
| 28 | 32 | // Remove all spaces |
@@ -233,6 +233,10 @@ |
||
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | // Create the tech tip |
| 236 | + |
|
| 237 | + /** |
|
| 238 | + * @param Request $tipData |
|
| 239 | + */ |
|
| 236 | 240 | private function createTip($tipData) |
| 237 | 241 | { |
| 238 | 242 | // Remove any forward slash (/) from the Subject Field |