| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 45 | 42 | public function applyToRequest(RequestInterface $request, string $action): RequestInterface | |
| 46 |     { | ||
| 47 | 42 | $request = $request->withUri($this->uri->withPath($this->uri->getPath() . $action)); | |
| 48 | 42 |         foreach ($this->additionalHeaders as $name => $value) { | |
| 49 | 3 | $request = $request->withHeader($name, $value); | |
| 50 | } | ||
| 51 | 42 | return $request; | |
| 52 | } | ||
| 53 | |||
| 62 |