| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class ArrayHelpers |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Yes, this is just a very pedantic version of `in_array()`, written to avoid mutations and |
||
| 17 | * designed to throw an exception if `$arrayOfStrings` is not a `string[]` as requested. |
||
| 18 | * |
||
| 19 | * @param string[] $arrayOfStrings |
||
| 20 | * |
||
| 21 | * @throws \InvalidArgumentException |
||
| 22 | */ |
||
| 23 | public static function stringArrayContainsString(string $value, array $arrayOfStrings) : bool |
||
| 30 |