Zend\Code\Generator\TypeGenerator::trimType PHP Method

trimType() private static method

private static trimType ( string $type ) : bool[] | string[]
$type string
return bool[] | string[] ordered tuple, first key represents whether the values was trimmed, second is the trimmed string
    private static function trimType($type)
    {
        if (0 === strpos($type, '\\')) {
            return [true, substr($type, 1)];
        }
        return [false, $type];
    }