private static function parseDefinitions(array $definitions): array
    {
        if (\count($definitions) === 0) {
            return $definitions;
        }

        return \array_map(
            function ($definition) {
                if (\is_array($definition)) {
                    return $definition;
                }

                return self::loadDefinitionsFromPath($definition);
            },
            $definitions
        );
    }
private static function parseDefinitions(array $definitions): array
    {
        if (\count($definitions) === 0) {
            return $definitions;
        }

        return \array_map(
            function ($definition) {
                if (\is_array($definition)) {
                    return $definition;
                }

                return self::loadDefinitionsFromPath($definition);
            },
            $definitions
        );
    }
private static function parseDefinitions ( array $ definitions ) : array { if ( \ count ( $ definitions ) === 0 ) { return $ definitions ; } return \ array_map ( function ( $ definition ) { if ( \ is_array ( $ definition ) ) { return $ definition ; } return self :: loadDefinitionsFromPath ( $ definition ) ; } , $ definitions ) ; }
Parse definitions.

@param array $definitions

@throws \RuntimeException

@return array
Parse definitions .