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

Commit 834daf0

Browse files
committed
Added missing @throws tags
1 parent c750d9d commit 834daf0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/UserRepository/Htpasswd.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Htpasswd implements UserRepositoryInterface
2020
use UserTrait;
2121

2222
/**
23-
* Constructor
23+
* @throws Exception\InvalidConfigException
2424
*/
2525
public function __construct(string $filename)
2626
{
@@ -61,6 +61,7 @@ public function authenticate(string $credential, string $password = null) : ?Use
6161
/**
6262
* Check bcrypt usage for security reason
6363
*
64+
* @throws Exception\RuntimeException
6465
*/
6566
protected function checkBcryptHash(string $hash) : void
6667
{

src/UserRepository/HtpasswdFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
class HtpasswdFactory
1414
{
15+
/**
16+
* @throws Exception\InvalidConfigException
17+
*/
1518
public function __invoke(ContainerInterface $container) : Htpasswd
1619
{
1720
$htpasswd = $container->get('config')['authentication']['htpasswd'] ?? null;

src/UserRepository/PdoDatabaseFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
class PdoDatabaseFactory
1515
{
16+
/**
17+
* @throws Exception\InvalidConfigException
18+
*/
1619
public function __invoke(ContainerInterface $container) : PdoDatabase
1720
{
1821
$pdo = $container->get('config')['authentication']['pdo'] ?? null;

0 commit comments

Comments
 (0)