original_string: public function getDisplayName()
      {
          if ($this->name !== '') {
              $result = $this->name;
          } else {
              $result = '';
              $string = trim($this->handle, '_-');
              $segments = preg_split('/[_-]+/', $string);
              foreach ($segments as $segment) {
                  if ($segment !== '') {
                      $len = mb_strlen($segment);
                      if ($len === 1) {
                          $segment = mb_strtoupper($segment);
                      } else {
                          $segment = mb_strtoupper(mb_substr($segment, 0, 1)) . mb_substr($segment, 1);
                      }
                      if ($result === '') {
                          $result = $segment;
                      } else {
                          $result .= ' ' . $segment;
                      }
                  }
              }
              if ($result === '') {
                  $result = $this->handle;
              }
          }
  
          return $result;
      }
code: public function getDisplayName()
      {
          if ($this->name !== '') {
              $result = $this->name;
          } else {
              $result = '';
              $string = trim($this->handle, '_-');
              $segments = preg_split('/[_-]+/', $string);
              foreach ($segments as $segment) {
                  if ($segment !== '') {
                      $len = mb_strlen($segment);
                      if ($len === 1) {
                          $segment = mb_strtoupper($segment);
                      } else {
                          $segment = mb_strtoupper(mb_substr($segment, 0, 1)) . mb_substr($segment, 1);
                      }
                      if ($result === '') {
                          $result = $segment;
                      } else {
                          $result .= ' ' . $segment;
                      }
                  }
              }
              if ($result === '') {
                  $result = $this->handle;
              }
          }
  
          return $result;
      }
code_tokens: public function getDisplayName ( ) { if ( $ this -> name !== '' ) { $ result = $ this -> name ; } else { $ result = '' ; $ string = trim ( $ this -> handle , '_-' ) ; $ segments = preg_split ( '/[_-]+/' , $ string ) ; foreach ( $ segments as $ segment ) { if ( $ segment !== '' ) { $ len = mb_strlen ( $ segment ) ; if ( $ len === 1 ) { $ segment = mb_strtoupper ( $ segment ) ; } else { $ segment = mb_strtoupper ( mb_substr ( $ segment , 0 , 1 ) ) . mb_substr ( $ segment , 1 ) ; } if ( $ result === '' ) { $ result = $ segment ; } else { $ result .= ' ' . $ segment ; } } } if ( $ result === '' ) { $ result = $ this -> handle ; } } return $ result ; }
docstring: Get the package display name.
  
  @return string
docstring_tokens: Get the package display name .