src/GameOfLife/Inputs/TemplateHandler/TemplateListPrinter.php
/**
     * Prints a list of default and custom templates.
     */
Prints a list of default and custom templates.
Prints a list of default and custom templates .
public function printTemplateLists()
    {
        try
        {
            $defaultTemplateFilePaths = $this->fileSystemReader->getFileList($this->defaultTemplatesDirectory . "/*.txt");
        }
        catch(\Exception $_exception)
        {
            $defaultTemplateFilePaths = array();
        }
        $this->printTemplateList("Default templates", $defaultTemplateFilePaths);
        try
        {
            $customTemplateFilePaths = $this->fileSystemReader->getFileList($this->customTemplatesDirectory . "/*.txt");
        }
        catch(\Exception $_exception)
        {
            $customTemplateFilePaths = array();
        }
        $this->printTemplateList("Custom templates", $customTemplateFilePaths);
    }
public function printTemplateLists ( ) { try { $ defaultTemplateFilePaths = $ this -> fileSystemReader -> getFileList ( $ this -> defaultTemplatesDirectory . " /*.txt " ) ; } catch ( \ Exception $ _exception ) { $ defaultTemplateFilePaths = array ( ) ; } $ this -> printTemplateList ( " Default templates " , $ defaultTemplateFilePaths ) ; try { $ customTemplateFilePaths = $ this -> fileSystemReader -> getFileList ( $ this -> customTemplatesDirectory . " /*.txt " ) ; } catch ( \ Exception $ _exception ) { $ customTemplateFilePaths = array ( ) ; } $ this -> printTemplateList ( " Custom templates " , $ customTemplateFilePaths ) ; }
Prints a list of default and custom templates.
Prints a list of default and custom templates .