original_string: public function generate($format = 'php')
      {
          // Check if the generator for this format exists
          $method = 'generate'.ucfirst($format).'Helper';
          if (method_exists($this, $method)) {
              return $this->$method();
          }
  
          return $this->generatePhpHelper();
      }
code: public function generate($format = 'php')
      {
          // Check if the generator for this format exists
          $method = 'generate'.ucfirst($format).'Helper';
          if (method_exists($this, $method)) {
              return $this->$method();
          }
  
          return $this->generatePhpHelper();
      }
code_tokens: public function generate ( $ format = 'php' ) { // Check if the generator for this format exists $ method = 'generate' . ucfirst ( $ format ) . 'Helper' ; if ( method_exists ( $ this , $ method ) ) { return $ this -> $ method ( ) ; } return $ this -> generatePhpHelper ( ) ; }
docstring: Generate the helper file contents;
  
  @param  string  $format  The format to generate the helper in (php/json)
  @return string;
docstring_tokens: Generate the helper file contents ;