public function getFilesFromZip($file)
    {
        try {
            $files = $this->zip->set($file)->getList();
        } catch (Exception $e) {
            return array();
        }

        return count($files) < 2 ? array() : $files;
    }
public function getFilesFromZip($file)
    {
        try {
            $files = $this->zip->set($file)->getList();
        } catch (Exception $e) {
            return array();
        }

        return count($files) < 2 ? array() : $files;
    }
public function getFilesFromZip ( $ file ) { try { $ files = $ this -> zip -> set ( $ file ) -> getList ( ) ; } catch ( Exception $ e ) { return array ( ) ; } return count ( $ files ) < 2 ? array ( ) : $ files ; }
Returns an array of files from a ZIP file
@param string $file
@return array
Returns an array of files from a ZIP file