Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | 2 | public function invoke(Joinpoint $joinpoint) |
|
33 | { |
||
34 | try { |
||
35 | 2 | $result = $joinpoint->proceed(); |
|
36 | 1 | } catch (Exception $invocationException) { |
|
37 | 1 | $adviceMethod = $this->adviceMethod; |
|
38 | 1 | $adviceMethod($joinpoint); |
|
39 | |||
40 | 1 | throw $invocationException; |
|
41 | } |
||
42 | |||
43 | 1 | return $result; |
|
44 | } |
||
45 | } |
||
46 |