public function processTags($tags = null)
    {
        if (empty($tags)) {
            $tags = $this->tags;
        }
        foreach ($tags as $tag) {
            $this->tags[] = $tag;
            if (preg_match('/[A-Z]+\-[\d]+/', $tag)) {
                $this->setTicket($tag);
                continue;
            }
            if ($tag == 'Jira') {
                $this->setLogged(true);
            }
        }
        $this->tags = array_unique($this->tags);
    }
public function processTags($tags = null)
    {
        if (empty($tags)) {
            $tags = $this->tags;
        }
        foreach ($tags as $tag) {
            $this->tags[] = $tag;
            if (preg_match('/[A-Z]+\-[\d]+/', $tag)) {
                $this->setTicket($tag);
                continue;
            }
            if ($tag == 'Jira') {
                $this->setLogged(true);
            }
        }
        $this->tags = array_unique($this->tags);
    }
public function processTags ( $ tags = null ) { if ( empty ( $ tags ) ) { $ tags = $ this -> tags ; } foreach ( $ tags as $ tag ) { $ this -> tags [ ] = $ tag ; if ( preg_match ( '/[A-Z]+\-[\d]+/' , $ tag ) ) { $ this -> setTicket ( $ tag ) ; continue ; } if ( $ tag == 'Jira' ) { $ this -> setLogged ( true ) ; } } $ this -> tags = array_unique ( $ this -> tags ) ; }
Processes an array of tags to find the ticket number
as well as other internally used tags

@param array $tags An array of tags to process
Processes an array of tags to find the ticket number as well as other internally used tags