| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | private function getCommandInstance(?UuidInterface $uuid, string $name): ReflectionClass |
||
| 15 | { |
||
| 16 | if (empty($uuid)) { |
||
| 17 | $class = new ReflectionClass('\App\Command\Create'.$name.'Command'); |
||
| 18 | } else { |
||
| 19 | $class = new ReflectionClass('\App\Command\Update'.$name.'Command'); |
||
| 20 | } |
||
| 21 | |||
| 22 | return $class; |
||
| 23 | } |
||
| 25 |