Unverified Commit 36716b68 authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #57 from viralsolani/analysis-8bon7a

Apply fixes from StyleCI
parents bcfbaa1e af9cc834
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace App\Http\Controllers\Api\V1; namespace App\Http\Controllers\Api\V1;
use App\Repositories\Frontend\Access\User\UserRepository;
use Illuminate\Foundation\Auth\ResetsPasswords;
use Illuminate\Http\Request; use Illuminate\Http\Request;
/** /**
...@@ -12,7 +10,8 @@ use Illuminate\Http\Request; ...@@ -12,7 +10,8 @@ use Illuminate\Http\Request;
class ResetPasswordController extends APIController class ResetPasswordController extends APIController
{ {
/** /**
* Reset Password * Reset Password.
*
* @param ResetPasswordRequest * @param ResetPasswordRequest
* @param JWTAuth * @param JWTAuth
* *
...@@ -26,11 +25,11 @@ class ResetPasswordController extends APIController ...@@ -26,11 +25,11 @@ class ResetPasswordController extends APIController
} }
); );
if($response !== Password::PASSWORD_RESET) { if ($response !== Password::PASSWORD_RESET) {
throw new HttpException(500); throw new HttpException(500);
} }
if(!Config::get('boilerplate.reset_password.release_token')) { if (!Config::get('boilerplate.reset_password.release_token')) {
return response()->json([ return response()->json([
'status' => 'ok', 'status' => 'ok',
]); ]);
...@@ -40,7 +39,7 @@ class ResetPasswordController extends APIController ...@@ -40,7 +39,7 @@ class ResetPasswordController extends APIController
return response()->json([ return response()->json([
'status' => 'ok', 'status' => 'ok',
'token' => $JWTAuth->fromUser($user) 'token' => $JWTAuth->fromUser($user),
]); ]);
} }
...@@ -57,7 +56,8 @@ class ResetPasswordController extends APIController ...@@ -57,7 +56,8 @@ class ResetPasswordController extends APIController
/** /**
* Get the password reset credentials from the request. * Get the password reset credentials from the request.
* *
* @param ResetPasswordRequest $request * @param ResetPasswordRequest $request
*
* @return array * @return array
*/ */
protected function credentials(ResetPasswordRequest $request) protected function credentials(ResetPasswordRequest $request)
...@@ -70,8 +70,9 @@ class ResetPasswordController extends APIController ...@@ -70,8 +70,9 @@ class ResetPasswordController extends APIController
/** /**
* Reset the given user's password. * Reset the given user's password.
* *
* @param \Illuminate\Contracts\Auth\CanResetPassword $user * @param \Illuminate\Contracts\Auth\CanResetPassword $user
* @param string $password * @param string $password
*
* @return void * @return void
*/ */
protected function reset($user, $password) protected function reset($user, $password)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment