| Conditions | 3 |
| Paths | 4 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public function build($uri = null, array $queries = null, array $headers = null, array $postBody = null, $body = null, array $options = []) |
||
|
|
|||
| 8 | { |
||
| 9 | parent::build($uri, $queries, $headers, $postBody, $body, $options); |
||
| 10 | |||
| 11 | $resource = $queries ? sprintf('%s?%s', $uri, $this->formatQueryString($queries)) : $uri; |
||
| 12 | $postBody = $postBody ?: $body; |
||
| 13 | |||
| 14 | return $this->getClient()->post($resource, $headers, $postBody, $options); |
||
| 15 | } |
||
| 16 | } |
||
| 17 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.