| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 510 | private function doInflect(string $word) : string |
|
| 42 | { |
||
| 43 | 510 | $inflected = $this->ruleset->getIrregular()->inflect($word); |
|
| 44 | |||
| 45 | 510 | if ($inflected !== null) { |
|
| 46 | 93 | return $inflected; |
|
| 47 | } |
||
| 48 | |||
| 49 | 420 | if ($this->ruleset->getUninflected()->isUninflected($word)) { |
|
| 50 | 244 | return $word; |
|
| 51 | } |
||
| 52 | |||
| 53 | 179 | return $this->ruleset->getRules()->inflect($word); |
|
| 54 | } |
||
| 56 |