Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class AuthController extends RestController

public function __construct(AuthService $authService)
{

$this->authService = $authService;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/SanctumUserException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class SanctumUserException extends Exception
{
public static function wrongConfiguration()
{
return new static("Auth provider should be [sanctum] in the configuration [restify.auth.provider].");
return new static('Auth provider should be [sanctum] in the configuration [restify.auth.provider].');
}
}
3 changes: 1 addition & 2 deletions src/Services/AuthService.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public function forgotPassword(Request $request)
return ForgotPasswordService::make($request);
}


/*
* @param $id
* @param null $hash
Expand All @@ -60,7 +59,7 @@ public function verify($id, $hash = null)
*/
$user = $this->userQuery()->query()->find($id);

if ($user instanceof Sanctumable && !hash_equals((string)$hash, sha1($user->getEmailForVerification()))) {
if ($user instanceof Sanctumable && ! hash_equals((string) $hash, sha1($user->getEmailForVerification()))) {
throw new AuthorizationException('Invalid hash');
}

Expand Down
1 change: 0 additions & 1 deletion src/Services/ForgotPasswordService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Http\Request;

/**
* @package Binaryk\LaravelRestify\Services;
* @author Eduard Lupacescu <eduard.lupacescu@binarcode.com>
*/
class ForgotPasswordService
Expand Down
1 change: 0 additions & 1 deletion src/Services/LoginService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Http\Request;

/**
* @package Binaryk\LaravelRestify\Services;
* @author Eduard Lupacescu <eduard.lupacescu@binarcode.com>
*/
class LoginService
Expand Down
1 change: 0 additions & 1 deletion src/Services/LogoutService.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Illuminate\Support\Facades\Auth;

/**
* @package Binaryk\LaravelRestify\Services;
* @author Eduard Lupacescu <eduard.lupacescu@binarcode.com>
*/
class LogoutService
Expand Down
2 changes: 1 addition & 1 deletion src/Services/PassportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class PassportService extends RestifyService
{
/**
* Create user token based on credentials
* Create user token based on credentials.
*
* @param array $credentials
* @return string|null
Expand Down
3 changes: 0 additions & 3 deletions src/Services/RegisterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
use ReflectionException;

/**
* @package Binaryk\LaravelRestify\Services;
* @author Eduard Lupacescu <eduard.lupacescu@binarcode.com>
*/
class RegisterService
{

/**
* The callback that should be used to create the registered user.
*
Expand Down Expand Up @@ -80,5 +78,4 @@ public function validateRegister(array $payload)

return true;
}

}
1 change: 0 additions & 1 deletion src/Services/ResetPasswordService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Http\Request;

/**
* @package Binaryk\LaravelRestify\Services;
* @author Eduard Lupacescu <eduard.lupacescu@binarcode.com>
*/
class ResetPasswordService
Expand Down
2 changes: 1 addition & 1 deletion tests/AuthServiceLoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Binaryk\LaravelRestify\Contracts\Passportable;
use Binaryk\LaravelRestify\Events\UserLoggedIn;
use Binaryk\LaravelRestify\Events\UserLogout;
use Binaryk\LaravelRestify\Exceptions\SanctumUserException;
use Binaryk\LaravelRestify\Exceptions\AuthenticatableUserException;
use Binaryk\LaravelRestify\Exceptions\CredentialsDoesntMatch;
use Binaryk\LaravelRestify\Exceptions\PassportUserException;
use Binaryk\LaravelRestify\Exceptions\SanctumUserException;
use Binaryk\LaravelRestify\Exceptions\UnverifiedUser;
use Binaryk\LaravelRestify\Services\AuthService;
use Binaryk\LaravelRestify\Tests\Fixtures\SimpleUser as User;
Expand Down