Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function addFailure(RequestInterface $request, Exception $exception) |
||
40 | { |
||
41 | end($this->tuples); |
||
42 | $key = key($this->tuples); |
||
43 | |||
44 | $tuple = [$request, null]; |
||
45 | |||
46 | if ($exception instanceof HttpException) { |
||
47 | $tuple[1] = $exception->getResponse(); |
||
48 | } |
||
49 | |||
50 | $this->tuples[$key][] = $tuple; |
||
51 | |||
52 | reset($this->tuples); |
||
53 | } |
||
54 | |||
79 |