original_string: public function wp_title($title, $sep, $location){
          if( !empty($this->title) ){
              $array = [$this->title];
              $sep = ' '.trim($sep).' ';
              if( 'right' == $location ){
                  $array[] = $sep;
              }else{
                  array_unshift($array, $sep);
              }
              $title = implode('', $array);
          }
          return $title;
      }
code: public function wp_title($title, $sep, $location){
          if( !empty($this->title) ){
              $array = [$this->title];
              $sep = ' '.trim($sep).' ';
              if( 'right' == $location ){
                  $array[] = $sep;
              }else{
                  array_unshift($array, $sep);
              }
              $title = implode('', $array);
          }
          return $title;
      }
code_tokens: public function wp_title ( $ title , $ sep , $ location ) { if ( ! empty ( $ this -> title ) ) { $ array = [ $ this -> title ] ; $ sep = ' ' . trim ( $ sep ) . ' ' ; if ( 'right' == $ location ) { $ array [ ] = $ sep ; } else { array_unshift ( $ array , $ sep ) ; } $ title = implode ( '' , $ array ) ; } return $ title ; }
docstring: Filter wp title
  
  @param string $title
  @param string $sep
  @param string $location
  @return string
docstring_tokens: Filter wp title