Skip to content

Commit

Permalink
Fix CS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
othercorey committed Apr 1, 2020
1 parent 2fcb441 commit dc5f462
Show file tree
Hide file tree
Showing 26 changed files with 35 additions and 35 deletions.
3 changes: 3 additions & 0 deletions src/AuthenticationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ public function loadIdentifier(string $name, array $config = []): IdentifierInte
/**
* {@inheritDoc}
*
* @param \Psr\Http\Message\ServerRequestInterface $request The request.
* @return \Authentication\Authenticator\ResultInterface The result object. If none of the adapters was a success
* the last failed result is returned.
* @throws \RuntimeException Throws a runtime exception when no authenticators are loaded.
*/
public function authenticate(ServerRequestInterface $request): ResultInterface
Expand Down
1 change: 0 additions & 1 deletion src/Authenticator/AuthenticatorCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ protected function _resolveClassName($class): ?string
}

/**
*
* @param string $class Missing class.
* @param string $plugin Class plugin.
* @return void
Expand Down
10 changes: 5 additions & 5 deletions src/Authenticator/CookieAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CookieAuthenticator extends AbstractAuthenticator implements PersistenceIn
use UrlCheckerTrait;

/**
* @inheritdoc
* @inheritDoc
*/
protected $_defaultConfig = [
'loginUrl' => null,
Expand All @@ -59,7 +59,7 @@ class CookieAuthenticator extends AbstractAuthenticator implements PersistenceIn
];

/**
* @inheritdoc
* @inheritDoc
*/
public function __construct(IdentifierCollection $identifiers, array $config = [])
{
Expand All @@ -81,7 +81,7 @@ protected function _checkCakeVersion(): void
}

/**
* @inheritdoc
* @inheritDoc
*/
public function authenticate(ServerRequestInterface $request): ResultInterface
{
Expand Down Expand Up @@ -123,7 +123,7 @@ public function authenticate(ServerRequestInterface $request): ResultInterface
}

/**
* @inheritdoc
* @inheritDoc
*/
public function persistIdentity(ServerRequestInterface $request, ResponseInterface $response, $identity): array
{
Expand Down Expand Up @@ -195,7 +195,7 @@ protected function _checkToken($identity, $tokenHash): bool
}

/**
* @inheritdoc
* @inheritDoc
*/
public function clearIdentity(ServerRequestInterface $request, ResponseInterface $response): array
{
Expand Down
4 changes: 2 additions & 2 deletions src/Authenticator/JwtAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class JwtAuthenticator extends TokenAuthenticator
{
/**
* @inheritdoc
* @inheritDoc
*/
protected $_defaultConfig = [
'header' => 'Authorization',
Expand All @@ -47,7 +47,7 @@ class JwtAuthenticator extends TokenAuthenticator
protected $payload;

/**
* @inheritdoc
* @inheritDoc
*/
public function __construct(IdentifierInterface $identifier, array $config = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Authenticator/PersistenceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface PersistenceInterface
* @param \Psr\Http\Message\ResponseInterface $response The response object.
* @param \ArrayAccess|array $identity Identity data to persist.
* @return array
* @psalm-return array{request: ServerRequestInterface, response: ResponseInterface} Returns an array containing the request and response object
* @psalm-return array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface} Returns an array containing the request and response object
*/
public function persistIdentity(ServerRequestInterface $request, ResponseInterface $response, $identity): array;

Expand All @@ -38,7 +38,7 @@ public function persistIdentity(ServerRequestInterface $request, ResponseInterfa
* @param \Psr\Http\Message\ServerRequestInterface $request The request object.
* @param \Psr\Http\Message\ResponseInterface $response The response object.
* @return array
* @psalm-return array{request: ServerRequestInterface, response: ResponseInterface} Returns an array containing the request and response object
* @psalm-return array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface} Returns an array containing the request and response object
*/
public function clearIdentity(ServerRequestInterface $request, ResponseInterface $response): array;
}
4 changes: 2 additions & 2 deletions src/Authenticator/SessionAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function authenticate(ServerRequestInterface $request): ResultInterface
}

/**
* @inheritdoc
* @inheritDoc
*/
public function persistIdentity(ServerRequestInterface $request, ResponseInterface $response, $identity): array
{
Expand All @@ -100,7 +100,7 @@ public function persistIdentity(ServerRequestInterface $request, ResponseInterfa
}

/**
* @inheritdoc
* @inheritDoc
*/
public function clearIdentity(ServerRequestInterface $request, ResponseInterface $response): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Authenticator/TokenAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class TokenAuthenticator extends AbstractAuthenticator implements StatelessInterface
{
/**
* @inheritdoc
* @inheritDoc
*/
protected $_defaultConfig = [
'header' => null,
Expand Down
1 change: 0 additions & 1 deletion src/Controller/Component/AuthenticationComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

/**
* Controller Component for interacting with Authentication.
*
*/
class AuthenticationComponent extends Component implements EventDispatcherInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Identifier/CallbackIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CallbackIdentifier extends AbstractIdentifier
];

/**
* @inheritdoc
* @inheritDoc
*/
public function __construct(array $config)
{
Expand Down Expand Up @@ -63,7 +63,7 @@ protected function checkCallable(): void
}

/**
* @inheritdoc
* @inheritDoc
*/
public function identify(array $data)
{
Expand Down
1 change: 0 additions & 1 deletion src/Identifier/IdentifierCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ protected function _resolveClassName($class): ?string
}

/**
*
* @param string $class Missing class.
* @param string $plugin Class plugin.
* @return void
Expand Down
4 changes: 2 additions & 2 deletions src/Identifier/LdapIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class LdapIdentifier extends AbstractIdentifier
protected $_ldap;

/**
* @inheritdoc
* @inheritDoc
*/
public function __construct(array $config = [])
{
Expand Down Expand Up @@ -138,7 +138,7 @@ protected function _buildLdapObject(): void
}

/**
* @inheritdoc
* @inheritDoc
*/
public function identify(array $data)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Identifier/PasswordIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getPasswordHasher(): PasswordHasherInterface
}

/**
* @inheritdoc
* @inheritDoc
*/
public function identify(array $data)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Identifier/Resolver/OrmResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct(array $config = [])
}

/**
* @inheritdoc
* @inheritDoc
*/
public function find(array $conditions, $type = self::TYPE_AND)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Identifier/TokenIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TokenIdentifier extends AbstractIdentifier
];

/**
* @inheritdoc
* @inheritDoc
*/
public function identify(array $data)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct($data, array $config = [])
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function getIdentifier()
{
Expand Down Expand Up @@ -172,7 +172,7 @@ public function offsetUnset($offset): void
}

/**
* @inheritdoc
* @inheritDoc
*/
public function getOriginalData()
{
Expand Down
2 changes: 1 addition & 1 deletion src/PasswordHasher/LegacyPasswordHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class LegacyPasswordHasher extends AbstractPasswordHasher
];

/**
* @inheritdoc
* @inheritDoc
*/
public function __construct(array $config = [])
{
Expand Down
2 changes: 1 addition & 1 deletion src/UrlChecker/CakeRouterUrlChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CakeRouterUrlChecker extends DefaultUrlChecker
];

/**
* {@inheritDoc}
* @inheritDoc
*/
public function check(ServerRequestInterface $request, $loginUrls, array $options = []): bool
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/AuthenticationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class AuthenticationTestCase extends TestCase
];

/**
* @inheritdoc
* @inheritDoc
*/
public function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Authenticator/CookieAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CookieAuthenticatorTest extends TestCase
];

/**
* {@inheritDoc}
* @inheritDoc
*/
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class HttpBasicAuthenticatorTest extends TestCase
];

/**
* @inheritdoc
* @inheritDoc
*/
public function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Authenticator/JwtAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class JwtAuthenticatorTest extends TestCase
public $identifiers;

/**
* {@inheritDoc}
* @inheritDoc
*/
public function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Authenticator/SessionAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SessionAuthenticatorTest extends TestCase
];

/**
* @inheritdoc
* @inheritDoc
*/
public function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Authenticator/TokenAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TokenAuthenticatorTest extends TestCase
];

/**
* {@inheritDoc}
* @inheritDoc
*/
public function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AuthenticationComponentTest extends TestCase
protected $service;

/**
* {@inheritDoc}
* @inheritDoc
*/
public function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Middleware/AuthenticationMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AuthenticationMiddlewareTest extends TestCase
];

/**
* @inheritdoc
* @inheritDoc
*/
public function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/UrlChecker/CakeRouterUrlCheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class CakeRouterUrlCheckerTest extends TestCase
{
/**
* {@inheritDoc}
* @inheritDoc
*/
public function setUp(): void
{
Expand Down

0 comments on commit dc5f462

Please sign in to comment.