Compare commits

..

1 Commits

Author SHA1 Message Date
fa987f5d44 feat(altcha): add altcha validation layer to login
Some checks reported warnings
Cadoles/hydra-sql/pipeline/pr-develop This commit was not built
2025-04-02 14:32:12 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,7 @@
namespace App\Hydra; namespace App\Hydra;
use App\Hydra\Exception\InvalidChallengeException; use App\Hydra\Exception\InvalidChallengeException;
use Exception;
use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\HttpClientInterface;
use Symfony\Contracts\HttpClient\ResponseInterface; use Symfony\Contracts\HttpClient\ResponseInterface;
@ -88,7 +89,7 @@ class Client
break; break;
} }
if (self::MAX_RETRY === $attempt) { if (self::MAX_RETRY === $attempt) {
throw new \Exception(sprintf('Fetch consent a rencontré une erreur %s après %s tentatives', $response->getStatusCode(), self::MAX_RETRY)); throw new Exception(sprintf('Fetch consent a rencontré une erreur %s après %s tentatives', $response->getStatusCode(), self::MAX_RETRY));
} }
return $response; return $response;

View File

@ -20,7 +20,6 @@ return (new PhpCsFixer\Config())
'ternary_operator_spaces' => true, 'ternary_operator_spaces' => true,
'class_definition' => ['single_line' => true], 'class_definition' => ['single_line' => true],
'whitespace_after_comma_in_array' => true, 'whitespace_after_comma_in_array' => true,
'trailing_comma_in_multiline' => true,
// phpdoc // phpdoc
'phpdoc_add_missing_param_annotation' => ['only_untyped' => true], 'phpdoc_add_missing_param_annotation' => ['only_untyped' => true],