| Conditions | 6 |
| Paths | 5 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | public function validate(array $data, Token $token) |
||
| 56 | { |
||
| 57 | $valid = true; |
||
| 58 | foreach ($this->validators as $claim => $validator) { |
||
| 59 | if ($token->hasClaim($claim) === false) { |
||
| 60 | if ($validator->isRequired()) { |
||
| 61 | $valid = false; |
||
| 62 | $this->messages[$claim] = sprintf('Missing required value for claim %s', $claim); |
||
| 63 | } |
||
| 64 | } else { |
||
| 65 | if (isset($data[$claim]) && !$validator->isSatisfiedBy($data[$claim], $token->getClaim($claim))) { |
||
| 66 | $valid = false; |
||
| 67 | $this->messages[$claim] = $validator->getMessage(); |
||
| 68 | } |
||
| 69 | } |
||
| 70 | } |
||
| 71 | |||
| 72 | return $valid; |
||
| 73 | } |
||
| 103 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths