| @@ -9,11 +9,11 @@ | ||
| 9 | 9 | |
| 10 | 10 | class AvatarUploder |
| 11 | 11 | { |
| 12 | 12 | /** |
| 13 | - * @param $file - file object | |
| 14 | - * @param int $userid - user id | |
| 15 | - * @param string $type - Customer or Agent | |
| 13 | + * @param array $file | |
| 14 | + * @param int $userid Person id | |
| 15 | + * @param string $type 'customer' or 'agent' | |
| 16 | 16 | * @throws Exception |
| 17 | 17 | * @return array |
| 18 | 18 | */ |
| 19 | 19 | public function addOrUpdateProfileImage ( $file, $userid, $type ) |
| @@ -39,10 +39,9 @@ | ||
| 39 | 39 | ]; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * This Method Will Validate The Extension Of The File | |
| 44 | - * @param $file - file object | |
| 43 | + * @param array $file | |
| 45 | 44 | * @throws Exception |
| 46 | 45 | * @return bool |
| 47 | 46 | */ |
| 48 | 47 | private function validateExtension($file) |
| @@ -47,9 +46,9 @@ | ||
| 47 | 46 | */ |
| 48 | 47 | private function validateExtension($file) |
| 49 | 48 | { |
| 50 | 49 | /** |
| 51 | - * Filter profile picture upload types | |
| 50 | + * Filter allowed profile picture extensions. | |
| 52 | 51 | * @param array $allowedExtension |
| 53 | 52 | */ |
| 54 | 53 | $allowedExtension = apply_filters('fluent_support/allowed_customer_profile_picture_file_type', |
| 55 | 54 | array('jpeg', 'jpe', 'jpg', 'png')); |