original_string: protected function handleText()
      {
          $content = $this->getContent();
          foreach ($this->rules['text'] as $rule) {
              if ($rule['type'] == 'is' && 0 === strcasecmp($content, $rule['keyword'])) {
                  return $this->handle($rule['fn']);
              }
  
              if ($rule['type'] == 'has' && false !== mb_stripos($content, $rule['keyword'])) {
                  return $this->handle($rule['fn']);
              }
  
              if ($rule['type'] == 'startsWith' && 0 === mb_stripos($content, $rule['keyword'])) {
                  return $this->handle($rule['fn']);
              }
  
              if ($rule['type'] == 'match' && preg_match($rule['keyword'], $content)) {
                  return $this->handle($rule['fn']);
              }
          }
          return false;
      }
code: protected function handleText()
      {
          $content = $this->getContent();
          foreach ($this->rules['text'] as $rule) {
              if ($rule['type'] == 'is' && 0 === strcasecmp($content, $rule['keyword'])) {
                  return $this->handle($rule['fn']);
              }
  
              if ($rule['type'] == 'has' && false !== mb_stripos($content, $rule['keyword'])) {
                  return $this->handle($rule['fn']);
              }
  
              if ($rule['type'] == 'startsWith' && 0 === mb_stripos($content, $rule['keyword'])) {
                  return $this->handle($rule['fn']);
              }
  
              if ($rule['type'] == 'match' && preg_match($rule['keyword'], $content)) {
                  return $this->handle($rule['fn']);
              }
          }
          return false;
      }
code_tokens: protected function handleText ( ) { $ content = $ this -> getContent ( ) ; foreach ( $ this -> rules [ 'text' ] as $ rule ) { if ( $ rule [ 'type' ] == 'is' && 0 === strcasecmp ( $ content , $ rule [ 'keyword' ] ) ) { return $ this -> handle ( $ rule [ 'fn' ] ) ; } if ( $ rule [ 'type' ] == 'has' && false !== mb_stripos ( $ content , $ rule [ 'keyword' ] ) ) { return $ this -> handle ( $ rule [ 'fn' ] ) ; } if ( $ rule [ 'type' ] == 'startsWith' && 0 === mb_stripos ( $ content , $ rule [ 'keyword' ] ) ) { return $ this -> handle ( $ rule [ 'fn' ] ) ; } if ( $ rule [ 'type' ] == 'match' && preg_match ( $ rule [ 'keyword' ] , $ content ) ) { return $ this -> handle ( $ rule [ 'fn' ] ) ; } } return false ; }
docstring: Handle text rule
  
  @return string|false
docstring_tokens: Handle text rule