| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class UnretrievableAttribute implements SettingContract |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string[] |
||
| 23 | */ |
||
| 24 | private static $unretrievableAttributesKeys = [ |
||
| 25 | '*password*', |
||
| 26 | '*token*', |
||
| 27 | '*secret*', |
||
| 28 | '*hash*', |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Checks if the given key/value is a 'UnretrieableAttribute'. |
||
| 33 | * |
||
| 34 | * @param string $key |
||
| 35 | * @param mixed $value |
||
| 36 | * @param array $unretrievableAttributes |
||
| 37 | * |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | 3 | public static function exist(string $key, $value, array $unretrievableAttributes): array |
|
| 51 |