| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait HelpersTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Make snake_case from the given camelCase or StudlyCase. |
||
| 13 | * |
||
| 14 | * @param string $value |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | private function makeSnakeCase(string $value): string |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Make constant name from the given state name in StudlyCase. |
||
| 24 | * |
||
| 25 | * @param string $state_name |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | private function makeConstantName(string $state_name): string |
||
| 33 |