Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
39 | public static function rewriteLocation($e, $file, $line) |
||
40 | 8 | { |
|
41 | $rc = new \ReflectionClass($e); |
||
42 | 8 | ||
43 | $rpf = $rc->getProperty('file'); |
||
44 | 8 | $rpl = $rc->getProperty('line'); |
|
45 | 8 | ||
46 | $rpf->setAccessible(true); |
||
47 | 8 | $rpl->setAccessible(true); |
|
48 | 8 | ||
49 | $rpf->setValue($e, $file); |
||
50 | 8 | $rpl->setValue($e, $line); |
|
51 | 8 | ||
52 | return $e; |
||
53 | 8 | } |
|
55 |