src/Utility/Validate/Check/AbstractCheck.php
protected function addRelationToSchema(array $schema, string $module): array
    {
        if (isset($schema['definitions']['relation'])) {
            $relations = Utility::getRealRelationFields($module);
            if (!empty($relations)) {
                $schema['definitions']['relation']['enum'] = $relations;
            }
        }

        return $schema;
    }
protected function addRelationToSchema(array $schema, string $module): array
    {
        if (isset($schema['definitions']['relation'])) {
            $relations = Utility::getRealRelationFields($module);
            if (!empty($relations)) {
                $schema['definitions']['relation']['enum'] = $relations;
            }
        }

        return $schema;
    }
protected function addRelationToSchema ( array $ schema , string $ module ) : array { if ( isset ( $ schema [ 'definitions' ] [ 'relation' ] ) ) { $ relations = Utility :: getRealRelationFields ( $ module ) ; if ( ! empty ( $ relations ) ) { $ schema [ 'definitions' ] [ 'relation' ] [ 'enum' ] = $ relations ; } } return $ schema ; }
Add relation fields

@param mixed[] $schema Schema.
@param string $module Module name
@return string[] Schema.
Add relation fields