@@ -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 | { |
@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php namespace BB\Helpers; |
| 2 | 2 | |
| 3 | -use BB\Exceptions\UserImageFailedException; |
|
| 4 | 3 | use Illuminate\Support\Facades\Storage; |
| 5 | 4 | use Intervention\Image\Facades\Image; |
| 6 | 5 | |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php namespace BB\Http\Controllers; |
| 2 | 2 | |
| 3 | 3 | use BB\Entities\Induction; |
| 4 | -use BB\Exceptions\PaymentException; |
|
| 5 | 4 | use BB\Repo\PaymentRepository; |
| 6 | 5 | |
| 7 | 6 | class InductionController extends Controller |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | public function index() |
| 34 | 34 | { |
| 35 | - $users = $this->userRepository->getActivePublicList(!\Auth::guest()); |
|
| 35 | + $users = $this->userRepository->getActivePublicList( ! \Auth::guest()); |
|
| 36 | 36 | return \View::make('members.index')->withUsers($users); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | return \Response::make('', 404); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - if (!$user->active) { |
|
| 47 | + if ( ! $user->active) { |
|
| 48 | 48 | return \Response::make('', 404); |
| 49 | 49 | } |
| 50 | 50 | |
@@ -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) |