[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_3_2-15899-gca16dfb

Madhura Jayaratne madhuracj at users.sourceforge.net
Fri Aug 19 16:36:49 CEST 2011


The branch, master has been updated
       via  ca16dfb46f98776555e0bcca8bcf17b8fafd49fc (commit)
      from  878e78866c39b2b1229984861e094eccf9e59ae7 (commit)


- Log -----------------------------------------------------------------
commit ca16dfb46f98776555e0bcca8bcf17b8fafd49fc
Author: Madhura Jayaratne <madhura.cj at gmail.com>
Date:   Fri Aug 19 20:05:48 2011 +0530

    Coding style improvements

-----------------------------------------------------------------------

Summary of changes:
 libraries/zip.lib.php |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/libraries/zip.lib.php b/libraries/zip.lib.php
index 9208e93..f8b5878 100644
--- a/libraries/zip.lib.php
+++ b/libraries/zip.lib.php
@@ -62,8 +62,11 @@ class zipfile
      *   "echo $zipfile;" command
      *
      * @access public
+     *
+     * @return nothing
      */
-    function setDoWrite() {
+    function setDoWrite()
+    {
         $this -> doWrite = true;
     } // end of the 'setDoWrite()' method
 
@@ -71,13 +74,14 @@ class zipfile
      * Converts an Unix timestamp to a four byte DOS date and time format (date
      * in high two bytes, time in low two bytes allowing magnitude comparison).
      *
-     * @param integer  the current Unix timestamp
+     * @param integer $unixtime the current Unix timestamp
      *
-     * @return integer  the current date in a four byte DOS format
+     * @return integer the current date in a four byte DOS format
      *
      * @access private
      */
-    function unix2DosTime($unixtime = 0) {
+    function unix2DosTime($unixtime = 0)
+    {
         $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime);
 
         if ($timearray['year'] < 1980) {
@@ -97,17 +101,19 @@ class zipfile
     /**
      * Adds "file" to archive
      *
-     * @param string   file contents
-     * @param string   name of the file in the archive (may contains the path)
-     * @param integer  the current timestamp
+     * @param string  $data file contents
+     * @param string  $name name of the file in the archive (may contains the path)
+     * @param integer $time the current timestamp
      *
      * @access public
+     *
+     * @return nothing
      */
     function addFile($data, $name, $time = 0)
     {
         $name     = str_replace('\\', '/', $name);
 
-        $dtime    = substr( "00000000" . dechex($this->unix2DosTime($time)), -8);
+        $dtime    = substr("00000000" . dechex($this->unix2DosTime($time)), -8);
         $hexdtime = '\x' . $dtime[6] . $dtime[7]
                   . '\x' . $dtime[4] . $dtime[5]
                   . '\x' . $dtime[2] . $dtime[3]


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list