Gush\ThirdParty\Bitbucket\BitbucketIssueTracker::detectLabelType PHP Метод

detectLabelType() защищенный Метод

protected detectLabelType ( $label )
    protected function detectLabelType($label)
    {
        if (in_array($label, static::$validPriorities)) {
            return 'priority';
        }
        if (in_array($label, static::$validKinds)) {
            return 'kind';
        }
        if (preg_match('/^(v?\\d+(\\.\\d+)*|PR-?\\d+)/i', $label)) {
            return 'version';
        }
        return 'component';
    }