protected function formatLabelNames(array $labels)
    {
        if (empty($labels)) {
            return;
        }
        $names = [];

        foreach ($labels as $label) {
            if (!isset($label['name'])) {
                continue;
            }
            $names[] = $label['name'];
        }

        return implode(', ', $names);
    }
protected function formatLabelNames(array $labels)
    {
        if (empty($labels)) {
            return;
        }
        $names = [];

        foreach ($labels as $label) {
            if (!isset($label['name'])) {
                continue;
            }
            $names[] = $label['name'];
        }

        return implode(', ', $names);
    }
protected function formatLabelNames ( array $ labels ) { if ( empty ( $ labels ) ) { return ; } $ names = [ ] ; foreach ( $ labels as $ label ) { if ( ! isset ( $ label [ 'name' ] ) ) { continue ; } $ names [ ] = $ label [ 'name' ] ; } return implode ( ', ' , $ names ) ; }
Format GitHub labels.

@param array $labels
An array of labels returned from API resource.

@return string
A comma separated list of GitHub labels.
Format GitHub labels .