Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | 3 | private function getConstructorArgument($executor, $argument, $class) |
|
39 | { |
||
40 | 3 | if ($class == GoToAction::class) { |
|
41 | 2 | $classArgument = new \stdClass; |
|
42 | 2 | $classArgument->route = $argument; |
|
43 | 2 | $classArgument->executor = $executor; |
|
44 | 2 | } else { |
|
45 | 3 | $classArgument = $argument; |
|
46 | } |
||
47 | |||
48 | 3 | return $classArgument; |
|
49 | } |
||
50 | } |
||
51 |