Conditions | 5 |
Paths | 5 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function check(AuthorizationRequest $authorization): void |
||
33 | { |
||
34 | foreach ($this->parameterCheckers as $parameterChecker) { |
||
35 | try { |
||
36 | $parameterChecker->check($authorization); |
||
37 | } catch (OAuth2AuthorizationException $e) { |
||
38 | throw $e; |
||
39 | } catch (OAuth2Error $e) { |
||
40 | throw new OAuth2AuthorizationException($e->getMessage(), $e->getErrorDescription(), $authorization, $e); |
||
41 | } catch (\Exception $e) { |
||
42 | throw new OAuth2AuthorizationException(OAuth2Error::ERROR_INVALID_REQUEST, $e->getMessage(), $authorization, $e); |
||
43 | } |
||
44 | } |
||
45 | } |
||
46 | } |
||
47 |