| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class DisableTypoToleranceAttribute implements SettingContract |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string[] |
||
| 23 | */ |
||
| 24 | private static $disableTypoToleranceOnAttributesKeys = [ |
||
| 25 | 'slug', |
||
| 26 | '*_slug', |
||
| 27 | 'slug_*', |
||
| 28 | '*code*', |
||
| 29 | '*sku*', |
||
| 30 | '*reference*', |
||
| 31 | ]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Checks if the given key/value is a 'disableTypoToleranceOnAttributes'. |
||
| 35 | * |
||
| 36 | * @param string $key |
||
| 37 | * @param array|null|string $value |
||
| 38 | * @param array $disableTypoToleranceOnAttributes |
||
| 39 | * |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | 3 | public function getValue(string $key, $value, array $disableTypoToleranceOnAttributes): array |
|
| 51 |