Total Complexity | 1 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | trait ChangeKeyCase |
||
11 | { |
||
12 | /** |
||
13 | * Changes the case of all keys in an array. |
||
14 | * |
||
15 | * Changes all keys from lowercased or uppercased. Numbered indices are left as is. |
||
16 | * |
||
17 | * @param int $case either `CASE_UPPER` or `CASE_LOWER` (default) |
||
18 | * |
||
19 | * @return self |
||
20 | */ |
||
21 | 2 | public function changeKeyCase(int $case = CASE_LOWER): self |
|
28 |