| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | trait CommandValidator |
||
| 8 | { |
||
| 9 | |||
| 10 | private $invalidKeyException = 'Invalid environment key. Only use upper letters, digits, and underscores. A variable must start with the letter.'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Check if a given string is valid as an environment variable key. |
||
| 14 | * |
||
| 15 | * @param string $key |
||
| 16 | * @return bool |
||
| 17 | */ |
||
| 18 | protected function isValidKey(string $key): bool |
||
| 27 |