| @@ -12,6 +12,9 @@ discard block | ||
| 12 | 12 | |
| 13 | 13 | } | 
| 14 | 14 | |
| 15 | + /** | |
| 16 | + * @param string $userId | |
| 17 | + */ | |
| 15 | 18 | public function uploadPhoto($userId, $filePath, $newImage = false) | 
| 16 | 19 |      { | 
| 17 | 20 |          $tmpFilePath = storage_path('app') . '/' . $userId . '.png'; | 
| @@ -46,7 +49,7 @@ discard block | ||
| 46 | 49 | |
| 47 | 50 | /** | 
| 48 | 51 | * Delete an old profile image and replace it with a new one. | 
| 49 | - * @param $userId | |
| 52 | + * @param string $userId | |
| 50 | 53 | */ | 
| 51 | 54 | public function approveNewImage($userId) | 
| 52 | 55 |      { | 
| @@ -33,7 +33,7 @@ | ||
| 33 | 33 | } | 
| 34 | 34 | |
| 35 | 35 | /** | 
| 36 | - * @param $deviceId | |
| 36 | + * @param string $deviceId | |
| 37 | 37 | * @return array | 
| 38 | 38 | */ | 
| 39 | 39 | public function getTrainersForEquipment($deviceId) | 
| @@ -39,6 +39,9 @@ | ||
| 39 | 39 | self::create(['key' => $key, 'value' => $value]); | 
| 40 | 40 | } | 
| 41 | 41 | |
| 42 | + /** | |
| 43 | + * @param string $key | |
| 44 | + */ | |
| 42 | 45 | public static function get($key) | 
| 43 | 46 |      { | 
| 44 | 47 | $setting = self::findOrFail($key); |