Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 8a939f8

Browse files
committed
Removed redundant PHPDocs
1 parent dc6f7a7 commit 8a939f8

8 files changed

+0
-31
lines changed

src/AuthenticationInterface.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,11 @@ interface AuthenticationInterface
1515
/**
1616
* Authenticate the PSR-7 request and return a valid user
1717
* or null if not authenticated
18-
*
19-
* @param ServerRequestInterface $request
20-
* @return UserInterface|null
2118
*/
2219
public function authenticate(ServerRequestInterface $request): ?UserInterface;
2320

2421
/**
2522
* Generate the unauthorized response
26-
*
27-
* @param ServerRequestInterface $request
28-
* @return ResponseInterface
2923
*/
3024
public function unauthorizedResponse(ServerRequestInterface $request): ResponseInterface;
3125
}

src/AuthenticationMiddleware.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ class AuthenticationMiddleware implements ServerMiddlewareInterface
1818
*/
1919
protected $auth;
2020

21-
/**
22-
* Constructor
23-
*
24-
* @param AuthenticationInterface $authentication
25-
* @return void
26-
*/
2721
public function __construct(AuthenticationInterface $auth)
2822
{
2923
$this->auth = $auth;

src/ResponsePrototypeTrait.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ trait ResponsePrototypeTrait
1515
/**
1616
* Return a ResponseInterface service if present or Zend\Diactoros\Response
1717
*
18-
* @param ContainerInterface $container
1918
* @throws Exception\InvalidConfigException
20-
* @return ResponseInterface
2119
*/
2220
protected function getResponsePrototype(ContainerInterface $container): ResponseInterface
2321
{

src/UserInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@ interface UserInterface
1010
{
1111
/**
1212
* Get the username
13-
*
14-
* @return string
1513
*/
1614
public function getUsername(): string;
1715

1816
/**
1917
* Get the user role
20-
*
21-
* @return string
2218
*/
2319
public function getUserRole(): string;
2420
}

src/UserRepository/Htpasswd.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ class Htpasswd implements UserRepositoryInterface
2121

2222
/**
2323
* Constructor
24-
*
25-
* @param string $filename
2624
*/
2725
public function __construct(string $filename)
2826
{
@@ -63,8 +61,6 @@ public function authenticate(string $credential, string $password = null): ?User
6361
/**
6462
* Check bcrypt usage for security reason
6563
*
66-
* @param string $hash
67-
* @return void
6864
*/
6965
protected function checkBcryptHash(string $hash): void
7066
{

src/UserRepository/PdoDatabase.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ class PdoDatabase implements UserRepositoryInterface
2121

2222
/**
2323
* Constructor
24-
*
25-
* @param PDO $pdo
26-
* @param array $config
2724
*/
2825
public function __construct(PDO $pdo, array $config)
2926
{

src/UserRepository/UserTrait.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ trait UserTrait
1313
{
1414
/**
1515
* Generate a user from $username and $role
16-
*
17-
* @param string $username
18-
* @param string $role
19-
* @return UserInterface
2016
*/
2117
protected function generateUser(string $username, string $role): UserInterface
2218
{

src/UserRepositoryInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ interface UserRepositoryInterface
1414
* It returns the authenticated user or null.
1515
*
1616
* @param string $credential can be also a token
17-
* @param string $password
18-
* @return UserInterface|null
1917
*/
2018
public function authenticate(string $credential, string $password = null): ?UserInterface;
2119
}

0 commit comments

Comments
 (0)