original_string: public function run($text, $filter)
      {
          if (is_string($filter)) {
              $filter = $this->get($filter);
          }
  
          $filtered = null;
          $this->hook->attach('filter', $text, $filter, $filtered, $this);
  
          if (isset($filtered)) {
              return (string) $filtered;
          }
  
          return $this->filter($text);
      }
code: public function run($text, $filter)
      {
          if (is_string($filter)) {
              $filter = $this->get($filter);
          }
  
          $filtered = null;
          $this->hook->attach('filter', $text, $filter, $filtered, $this);
  
          if (isset($filtered)) {
              return (string) $filtered;
          }
  
          return $this->filter($text);
      }
code_tokens: public function run ( $ text , $ filter ) { if ( is_string ( $ filter ) ) { $ filter = $ this -> get ( $ filter ) ; } $ filtered = null ; $ this -> hook -> attach ( 'filter' , $ text , $ filter , $ filtered , $ this ) ; if ( isset ( $ filtered ) ) { return ( string ) $ filtered ; } return $ this -> filter ( $ text ) ; }
docstring: Filter a text string
  @param string $text
  @param string|array $filter
  @return string
docstring_tokens: Filter a text string