Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php namespace Comodojo\Cache\Components; |
||
21 | class KeyValidator { |
||
22 | |||
23 | /** |
||
24 | * This method ensure that the key is valid under PSR-6. |
||
25 | * |
||
26 | * @param string $key |
||
27 | * The key to validate. |
||
28 | * @return bool |
||
29 | * TRUE if the specified key is legal. |
||
30 | */ |
||
31 | public static function validateKey($key) { |
||
40 |