| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | 15 | public function build() |
|
| 47 | { |
||
| 48 | 15 | if (filter_var($this->uri, FILTER_VALIDATE_URL)) { |
|
| 49 | 14 | return new NativeHttpClient($this->uri, $this->token, new NativeArgumentsConverter(), new NativeResponseParser()); |
|
| 50 | } |
||
| 51 | |||
| 52 | 1 | throw new InvalidArgumentException('Please provide valid base URI.'); |
|
| 53 | } |
||
| 54 | } |
||
| 55 |