protected function getFileNames(string $directory = 'default'): array
    {
        $directoryIterator = $this->getDirectoryIterator($directory);
        $files = [];
        foreach ($directoryIterator as $file) {
            $this->resolveFile($file, $files);
        }
        return $files;
    }
protected function getFileNames(string $directory = 'default'): array
    {
        $directoryIterator = $this->getDirectoryIterator($directory);
        $files = [];
        foreach ($directoryIterator as $file) {
            $this->resolveFile($file, $files);
        }
        return $files;
    }
protected function getFileNames ( string $ directory = 'default' ) : array { $ directoryIterator = $ this -> getDirectoryIterator ( $ directory ) ; $ files = [ ] ; foreach ( $ directoryIterator as $ file ) { $ this -> resolveFile ( $ file , $ files ) ; } return $ files ; }
Get list of paths in directory
@param string $directory
@return array
Get list of paths in directory