| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | 19 | final public function validate(Token $token) |
|
| 31 | { |
||
| 32 | 19 | (new HasClaimValidator($this->claim))->validate($token); |
|
| 33 | |||
| 34 | 12 | $actual = $token->get($this->claim); |
|
| 35 | |||
| 36 | 12 | if ($this->expected !== $actual) { |
|
| 37 | 5 | throw new ClaimMismatch($this->claim, $actual, $this->expected, $token); |
|
| 38 | } |
||
| 39 | 7 | } |
|
| 40 | } |
||
| 41 |