@@ -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 |
@@ -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 |
@@ -119,6 +119,10 @@ |
||
119 | 119 | } |
120 | 120 | |
121 | 121 | // Save the file in the database |
122 | + |
|
123 | + /** |
|
124 | + * @param Request $request |
|
125 | + */ |
|
122 | 126 | private function saveFile(UploadedFile $file, $id, $request) |
123 | 127 | { |
124 | 128 | $details = FileLinks::where('link_hash', $id)->first(); |
@@ -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 |