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