original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Processes an array of tags to find the ticket number as well as other internally used tags