| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 3 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 13 | 2 | protected function preparePendingRequest(): PendingRequest | |
| 14 |     { | ||
| 15 | 2 |         $pendingRequest = Http::timeout((int) $this->args->get('timeout', 20)); | |
| 16 | if ( | ||
| 17 | 2 |             ($headers = $this->args->get('headers')) | |
| 18 | 2 | && is_array($headers) | |
| 19 |         ) { | ||
| 20 | 1 | $pendingRequest->withHeaders($headers); | |
| 21 | } | ||
| 22 | |||
| 23 | 2 | return $pendingRequest; | |
| 24 | } | ||
| 26 |