original_string: public function isType($type)
      {
          $template = sprintf('Bake/%s.ctp', $type);
  
          return strpos($this->event->getData('0'), $template) !== false;
      }
code: public function isType($type)
      {
          $template = sprintf('Bake/%s.ctp', $type);
  
          return strpos($this->event->getData('0'), $template) !== false;
      }
code_tokens: public function isType ( $ type ) { $ template = sprintf ( 'Bake/%s.ctp' , $ type ) ; return strpos ( $ this -> event -> getData ( '0' ) , $ template ) !== false ; }
docstring: Check whether or not a bake call is a certain type.
  
  @param string|array $type The type of file you want to check.
  @return bool Whether or not the bake template is the type you are checking.
docstring_tokens: Check whether or not a bake call is a certain type .