@@ -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(); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * Execute the console command. |
| 44 | 44 | * |
| 45 | - * @return mixed |
|
| 45 | + * @return integer |
|
| 46 | 46 | */ |
| 47 | 47 | public function handle() |
| 48 | 48 | { |
@@ -128,6 +128,9 @@ discard block |
||
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | + /** |
|
| 132 | + * @param string $disk |
|
| 133 | + */ |
|
| 131 | 134 | protected function clearAllFiles($disk) |
| 132 | 135 | { |
| 133 | 136 | $files = Storage::disk($disk)->files(); |
@@ -145,6 +148,10 @@ discard block |
||
| 145 | 148 | } |
| 146 | 149 | } |
| 147 | 150 | |
| 151 | + /** |
|
| 152 | + * @param string $backupFolder |
|
| 153 | + * @param string $disk |
|
| 154 | + */ |
|
| 148 | 155 | protected function copyAllFiles($backupFolder, $disk) |
| 149 | 156 | { |
| 150 | 157 | $files = Storage::disk('backup')->allFiles($this->baseName.DIRECTORY_SEPARATOR.$backupFolder); |
@@ -14,6 +14,12 @@ |
||
| 14 | 14 | protected $hidden = ['created_at', 'updated_at', 'file_link']; |
| 15 | 15 | |
| 16 | 16 | // Remove any illegal characters from filename and make sure it is unique |
| 17 | + |
|
| 18 | + /** |
|
| 19 | + * @param string $path |
|
| 20 | + * |
|
| 21 | + * @return string |
|
| 22 | + */ |
|
| 17 | 23 | public static function cleanFileName($path, $fileName) |
| 18 | 24 | { |
| 19 | 25 | Log::debug('Preparing to clean a file. Current Name - '.$fileName.'. Current Path - '.$path); |
@@ -204,6 +204,10 @@ discard block |
||
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | // Create the tech tip |
| 207 | + |
|
| 208 | + /** |
|
| 209 | + * @param Request $tipData |
|
| 210 | + */ |
|
| 207 | 211 | private function createTip($tipData) |
| 208 | 212 | { |
| 209 | 213 | // Remove any forward slash (/) from the Subject Field |
@@ -389,6 +393,10 @@ discard block |
||
| 389 | 393 | } |
| 390 | 394 | |
| 391 | 395 | // Store the updated tip |
| 396 | + |
|
| 397 | + /** |
|
| 398 | + * @param Request $tipData |
|
| 399 | + */ |
|
| 392 | 400 | public function storeUpdatedTip($tipData, $id) |
| 393 | 401 | { |
| 394 | 402 | $this->authorize('hasAccess', 'Edit Tech Tip'); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * Get the notification's delivery channels. |
| 28 | 28 | * |
| 29 | 29 | * @param mixed $notifiable |
| 30 | - * @return array |
|
| 30 | + * @return string[] |
|
| 31 | 31 | */ |
| 32 | 32 | public function via($notifiable) |
| 33 | 33 | { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * Get the notification's delivery channels. |
| 29 | 29 | * |
| 30 | 30 | * @param mixed $notifiable |
| 31 | - * @return array |
|
| 31 | + * @return string[] |
|
| 32 | 32 | */ |
| 33 | 33 | public function via($notifiable) |
| 34 | 34 | { |
@@ -15,6 +15,7 @@ discard block |
||
| 15 | 15 | /** |
| 16 | 16 | * Create a new notification instance. |
| 17 | 17 | * |
| 18 | + * @param string $hash |
|
| 18 | 19 | * @return void |
| 19 | 20 | */ |
| 20 | 21 | public function __construct($user, $hash) |
@@ -28,7 +29,7 @@ discard block |
||
| 28 | 29 | * Get the notification's delivery channels. |
| 29 | 30 | * |
| 30 | 31 | * @param mixed $notifiable |
| 31 | - * @return array |
|
| 32 | + * @return string[] |
|
| 32 | 33 | */ |
| 33 | 34 | public function via(/** @scrutinizer ignore-unused */$notifiable) |
| 34 | 35 | { |