classes/phing/tasks/ext/dbdeploy/DbDeployTask.php
protected function getDeltasFilesArray()
    {
        $files = [];

        $baseDir = realpath($this->dir);
        $dh = opendir($baseDir);

        if ($dh === false) {
            return $files;
        }

        $fileChangeNumberPrefix = '';
        while (($file = readdir($dh)) !== false) {
            if (preg_match('[\d+]', $file, $fileChangeNumberPrefix)) {
                $files[(int) $fileChangeNumberPrefix[0]] = $file;
            }
        }

        return $files;
    }
protected function getDeltasFilesArray()
    {
        $files = [];

        $baseDir = realpath($this->dir);
        $dh = opendir($baseDir);

        if ($dh === false) {
            return $files;
        }

        $fileChangeNumberPrefix = '';
        while (($file = readdir($dh)) !== false) {
            if (preg_match('[\d+]', $file, $fileChangeNumberPrefix)) {
                $files[(int) $fileChangeNumberPrefix[0]] = $file;
            }
        }

        return $files;
    }
protected function getDeltasFilesArray ( ) { $ files = [ ] ; $ baseDir = realpath ( $ this -> dir ) ; $ dh = opendir ( $ baseDir ) ; if ( $ dh === false ) { return $ files ; } $ fileChangeNumberPrefix = '' ; while ( ( $ file = readdir ( $ dh ) ) !== false ) { if ( preg_match ( '[\d+]' , $ file , $ fileChangeNumberPrefix ) ) { $ files [ ( int ) $ fileChangeNumberPrefix [ 0 ] ] = $ file ; } } return $ files ; }
Get a list of all the patch files in the patch file directory

@return array
Get a list of all the patch files in the patch file directory