From 86382ea71cf242b15efd86b6bc2555ede8f451c0 Mon Sep 17 00:00:00 2001 From: pabs Date: Thu, 23 Aug 2007 02:23:40 -0400 Subject: minor formatting cleanups. --- zipstream.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'zipstream.php') diff --git a/zipstream.php b/zipstream.php index f23fb8b..9323569 100644 --- a/zipstream.php +++ b/zipstream.php @@ -65,8 +65,6 @@ class ZipStream { array('v', 0x00), # general purpose bit flag array('v', 0x08), # compresion method (deflate) array('V', $dts), # dos timestamp - # array('v', 0x00), # file mod time (dos) FIXME - # array('v', 0x00), # file mod date (dos) FIXME array('V', $crc), # crc32 of data array('V', $zlen), # compressed data length array('V', $len), # uncompressed data length @@ -135,8 +133,6 @@ class ZipStream { array('v', 0x00), # general purpose bit flag array('v', 0x08), # compresion method (deflate) array('V', $dts), # dos timestamp - # array('v', 0x00), # file mod time (dos) FIXME - # array('v', 0x00), # file mod date (dos) FIXME array('V', $crc), # crc32 of data array('V', $zlen), # compressed data length array('V', $len), # uncompressed data length @@ -208,8 +204,10 @@ class ZipStream { $d = getdate($when); # set lower-bound on dates - if ($d['year'] < 1980) - $d = array('year' => 1980, 'mon' => 1, 'mday' => 1, 'hours' => 0, 'minutes' => 0, 'seconds' => 0); + if ($d['year'] < 1980) { + $d = array('year' => 1980, 'mon' => 1, 'mday' => 1, + 'hours' => 0, 'minutes' => 0, 'seconds' => 0); + } # remove extra years from 1980 $d['year'] -= 1980; -- cgit v1.2.3