| Conditions | 5 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | private function checkAllUris($value) |
||
| 42 | { |
||
| 43 | if (!is_array($value)) { |
||
| 44 | throw new \InvalidArgumentException('The parameter "request_uris" must be a list of URI.'); |
||
| 45 | } |
||
| 46 | foreach ($value as $redirectUri) { |
||
| 47 | if (!is_string($redirectUri) || !filter_var($redirectUri, FILTER_VALIDATE_URL)) { |
||
| 48 | throw new \InvalidArgumentException('The parameter "request_uris" must be a list of URI.'); |
||
| 49 | } |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 |