Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 81.82% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class Plural |
||
8 | { |
||
9 | /** |
||
10 | * Returns the plural form of the given name. |
||
11 | * |
||
12 | * This is **not** necessarily valid english grammar. Its only purpose is for internal usage, not for humans. |
||
13 | * |
||
14 | * This **MUST** be kept in sync with Natural's `makePlural()`. |
||
15 | * |
||
16 | * This is a bit performance-sensitive, so we should keep it fast and only cover cases that we actually need. |
||
17 | */ |
||
18 | 148 | public static function make(string $name): string |
|
39 |