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();
    }
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();
    }
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 ( ) ; }
Generate the helper file contents;

@param  string  $format  The format to generate the helper in (php/json)
@return string;
Generate the helper file contents ;