private function getFiles($path)
    {
        $files = array();

        foreach (new \DirectoryIterator($path) as $file) {
            if ($file->isDot()
                || (null != $this->scriptName && sprintf('%s.php', $this->scriptName) != $file->getFilename())
            ) {
                continue;
            }

            $files[$file->getFilename()] = sprintf('%s/%s', $file->getPath(), $file->getFilename());
        }
        sort($files);

        return $files;
    }
private function getFiles($path)
    {
        $files = array();

        foreach (new \DirectoryIterator($path) as $file) {
            if ($file->isDot()
                || (null != $this->scriptName && sprintf('%s.php', $this->scriptName) != $file->getFilename())
            ) {
                continue;
            }

            $files[$file->getFilename()] = sprintf('%s/%s', $file->getPath(), $file->getFilename());
        }
        sort($files);

        return $files;
    }
private function getFiles ( $ path ) { $ files = array ( ) ; foreach ( new \ DirectoryIterator ( $ path ) as $ file ) { if ( $ file -> isDot ( ) || ( null != $ this -> scriptName && sprintf ( '%s.php' , $ this -> scriptName ) != $ file -> getFilename ( ) ) ) { continue ; } $ files [ $ file -> getFilename ( ) ] = sprintf ( '%s/%s' , $ file -> getPath ( ) , $ file -> getFilename ( ) ) ; } sort ( $ files ) ; return $ files ; }
Get files for a specific path

@param $path
@return array
Get files for a specific path