| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 3 | public function inflect($command, $commandHandler): string |
|
| 45 | { |
||
| 46 | 3 | $methodName = parent::inflect($command, $commandHandler); |
|
| 47 | |||
| 48 | 3 | if (substr($methodName, $this->suffixLength * -1) !== $this->suffix) { |
|
| 49 | 1 | return $methodName; |
|
| 50 | } |
||
| 51 | |||
| 52 | 2 | return substr($methodName, 0, strlen($methodName) - $this->suffixLength); |
|
| 53 | } |
||
| 54 | |||
| 60 |