src/Shell/Task/CsvModuleTask.php
private function bake(string $name, string $template, array $data = [], string $suffix = '', array $options = []) : bool
    {
        $this->BakeTemplate->set($data);
        $contents = $this->BakeTemplate->generate('CsvMigrations.' . $template);

        $path = empty($options['path']) ? $this->getPath() : $options['path'];
        $extension = empty($options['ext']) ? $options['ext'] = 'php' : $options['ext'];

        return $this->createFile($path . $name . $suffix . '.' . $extension, $contents);
    }
private function bake(string $name, string $template, array $data = [], string $suffix = '', array $options = []) : bool
    {
        $this->BakeTemplate->set($data);
        $contents = $this->BakeTemplate->generate('CsvMigrations.' . $template);

        $path = empty($options['path']) ? $this->getPath() : $options['path'];
        $extension = empty($options['ext']) ? $options['ext'] = 'php' : $options['ext'];

        return $this->createFile($path . $name . $suffix . '.' . $extension, $contents);
    }
private function bake ( string $ name , string $ template , array $ data = [ ] , string $ suffix = '' , array $ options = [ ] ) : bool { $ this -> BakeTemplate -> set ( $ data ) ; $ contents = $ this -> BakeTemplate -> generate ( 'CsvMigrations.' . $ template ) ; $ path = empty ( $ options [ 'path' ] ) ? $ this -> getPath ( ) : $ options [ 'path' ] ; $ extension = empty ( $ options [ 'ext' ] ) ? $ options [ 'ext' ] = 'php' : $ options [ 'ext' ] ; return $ this -> createFile ( $ path . $ name . $ suffix . '.' . $ extension , $ contents ) ; }
Wrapper method responsible for baking the actual files.

@param string $name Filename
@param string $template Template name
@param mixed[] $data Template data
@param string $suffix Filename suffix
@param mixed[] $options Extra options
@return bool
Wrapper method responsible for baking the actual files .