Code cleanup.

This commit is contained in:
James Cole
2023-12-20 19:35:52 +01:00
parent c4f6366642
commit 64ec0cf62e
997 changed files with 12908 additions and 28136 deletions

View File

@@ -29,17 +29,11 @@ use GuzzleHttp\Exception\RequestException;
/**
* Class PwndVerifierV2.
*
*/
class PwndVerifierV2 implements Verifier
{
/**
* Verify the given password against (some) service.
*
* @param string $password
*
* @return bool
*/
public function validPassword(string $password): bool
{
@@ -62,7 +56,7 @@ class PwndVerifierV2 implements Verifier
try {
$client = new Client();
$res = $client->request('GET', $url, $opt);
} catch (GuzzleException | RequestException $e) {
} catch (GuzzleException|RequestException $e) {
app('log')->error(sprintf('Could not verify password security: %s', $e->getMessage()));
return true;

View File

@@ -30,10 +30,6 @@ interface Verifier
{
/**
* Verify the given password against (some) service.
*
* @param string $password
*
* @return bool
*/
public function validPassword(string $password): bool;
}