| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 511 | private function doInflect(string $word) : string |
|
| 32 | { |
||
| 33 | 511 | $inflected = $this->ruleset->getIrregular()->inflect($word); |
|
| 34 | |||
| 35 | 511 | if ($inflected !== null) { |
|
| 36 | 92 | return $inflected; |
|
| 37 | } |
||
| 38 | |||
| 39 | 421 | if ($this->ruleset->getUninflected()->isUninflected($word)) { |
|
| 40 | 244 | return $word; |
|
| 41 | } |
||
| 42 | |||
| 43 | 179 | return $this->ruleset->getRules()->inflect($word); |
|
| 44 | } |
||
| 46 |