From bed6c3287e1d50bd7124ac331dbb107a2a1f0c36 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 20 Nov 2014 23:53:14 +0000 Subject: [PATCH] Spelling fixes --- src/AuthorizationServer.php | 4 ++-- src/Entity/SessionEntity.php | 6 +++--- src/Grant/AbstractGrant.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AuthorizationServer.php b/src/AuthorizationServer.php index 671a7685..4a2899a9 100644 --- a/src/AuthorizationServer.php +++ b/src/AuthorizationServer.php @@ -121,7 +121,7 @@ class AuthorizationServer extends AbstractServer } /** - * Require the "scope" paremter in checkAuthoriseParams() + * Require the "scope" parameter in checkAuthoriseParams() * @param boolean $require * @return self */ @@ -248,7 +248,7 @@ class AuthorizationServer extends AbstractServer /** * Return a grant type class - * @param string $grantType The grant type identifer + * @param string $grantType The grant type identifier * @return Grant\GrantTypeInterface * @throws */ diff --git a/src/Entity/SessionEntity.php b/src/Entity/SessionEntity.php index e16e6ba3..3ec7a5e6 100644 --- a/src/Entity/SessionEntity.php +++ b/src/Entity/SessionEntity.php @@ -153,11 +153,11 @@ class SessionEntity * @param \League\OAuth2\Server\Entity\Scope[] * @return array */ - private function formatScopes($unformated = []) + private function formatScopes($unformatted = []) { $scopes = []; - if (is_array($unformated)) { - foreach ($unformated as $scope) { + if (is_array($unformatted)) { + foreach ($unformatted as $scope) { if ($scope instanceof ScopeEntity) { $scopes[$scope->getId()] = $scope; } diff --git a/src/Grant/AbstractGrant.php b/src/Grant/AbstractGrant.php index 99d9885a..42309970 100644 --- a/src/Grant/AbstractGrant.php +++ b/src/Grant/AbstractGrant.php @@ -35,7 +35,7 @@ abstract class AbstractGrant implements GrantTypeInterface /** * Callback to authenticate a user's name and password - * @var function + * @var callable */ protected $callback;