Controllers\xAPI\DocumentController::checkFormContentType PHP Méthode

checkFormContentType() private méthode

Determines if $contentType is a form.
private checkFormContentType ( string $contentType = '' ) : boolean
$contentType string
Résultat boolean
    private function checkFormContentType($contentType = '')
    {
        if (!is_string($contentType)) {
            return false;
        }
        return in_array(explode(';', $contentType)[0], ['multipart/form-data', 'application/x-www-form-urlencoded']);
    }