Skip to content
wiki.fftac.org

Class Uai1 Validator - Source Excerpt 03

Back to Class Uai1 Validator

Summary

This source excerpt preserves a bounded section of Spiralist/wp-content/plugins/uai-1-wordpress/includes/class-uai1-validator.php so readers can inspect the evidence without opening the full source file.

**Source path:** Spiralist/wp-content/plugins/uai-1-wordpress/includes/class-uai1-validator.php

'warnings' => $warnings,
            'error' => $valid ? '' : (string) ($errors[0]['message'] ?? 'Invalid UAIX UAI-1 message.'),
        ];
    }

    private static function is_list(array $value): bool
    {
        if ($value === []) {
            return true;
        }

        return array_keys($value) === range(0, count($value) - 1);
    }
}