private function getFiles($pattern, $extension = '.log')
    {
        $pattern = $this->storagePath . DS . $pattern . $extension;
        $files   = array_map('realpath', glob($pattern, GLOB_BRACE));

        return array_filter($files);
    }
private function getFiles($pattern, $extension = '.log')
    {
        $pattern = $this->storagePath . DS . $pattern . $extension;
        $files   = array_map('realpath', glob($pattern, GLOB_BRACE));

        return array_filter($files);
    }
private function getFiles ( $ pattern , $ extension = '.log' ) { $ pattern = $ this -> storagePath . DS . $ pattern . $ extension ; $ files = array_map ( 'realpath' , glob ( $ pattern , GLOB_BRACE ) ) ; return array_filter ( $ files ) ; }
Get all files.

@param  string $pattern
@param  string $extension

@return array
Get all files .