Merge pull request #4621 from atif-shaikh/CRM-15589
[civicrm-core.git] / CRM / Utils / Zip.php
index 3fe425b23ad50cc6fe1c83af973d785228a077a9..38213520a250d716181d9f06739504828c23c195 100644 (file)
@@ -41,6 +41,8 @@ class CRM_Utils_Zip {
   /**
    * Given a zip file which contains a single root directory, determine the root's name.
    *
+   * @param ZipArchive $zip
+   *
    * @return mixed; FALSE if #root level items !=1; otherwise, the name of base dir
    */
   static public function findBaseDirName(ZipArchive $zip) {
@@ -69,6 +71,8 @@ class CRM_Utils_Zip {
   /**
    * Given a zip file, find all directory names in the root
    *
+   * @param ZipArchive $zip
+   *
    * @return array(string), no trailing /
    */
   static public function findBaseDirs(ZipArchive $zip) {
@@ -89,6 +93,9 @@ class CRM_Utils_Zip {
   /**
    * Determine the name of the folder within a zip
    *
+   * @param ZipArchive $zip
+   * @param $expected
+   *
    * @return string or FALSE
    */
   static public function guessBasedir(ZipArchive $zip, $expected) {