src/Util/Validator.php
protected function validateContainsUnique($field, $value)
    {
        if (!\is_array($value)) {
            return false;
        }

        return $value === \array_unique($value, SORT_REGULAR);
    }
protected function validateContainsUnique($field, $value)
    {
        if (!\is_array($value)) {
            return false;
        }

        return $value === \array_unique($value, SORT_REGULAR);
    }
protected function validateContainsUnique ( $ field , $ value ) { if ( ! \ is_array ( $ value ) ) { return false ; } return $ value === \ array_unique ( $ value , SORT_REGULAR ) ; }
Validate that field array has only unique values

@param  string $field
@param  array  $value

@return bool
Validate that field array has only unique values