The branch, master has been updated
via ca16dfb46f98776555e0bcca8bcf17b8fafd49fc (commit)
from 878e78866c39b2b1229984861e094eccf9e59ae7 (commit)
- Log -----------------------------------------------------------------
commit ca16dfb46f98776555e0bcca8bcf17b8fafd49fc
Author: Madhura Jayaratne <[email protected]>
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
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git