cvs: pear /HTTP_Upload Upload.php
| From: | Tomas V.V.Cox | Date: | Tue, 28 May 2002 15:33:36 +0000 |
| Subject: | cvs: pear /HTTP_Upload Upload.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4210@lists.php.net to get a copy of this message | ||
cox Tue May 28 11:33:36 2002 EDT
Modified files:
/pear/HTTP_Upload Upload.php
Log:
minor CS stuff
Index: pear/HTTP_Upload/Upload.php
diff -u pear/HTTP_Upload/Upload.php:1.22 pear/HTTP_Upload/Upload.php:1.23
--- pear/HTTP_Upload/Upload.php:1.22 Tue May 28 11:30:33 2002
+++ pear/HTTP_Upload/Upload.php Tue May 28 11:33:36 2002
@@ -7,7 +7,7 @@
//
// **********************************************
//
-// $Id: Upload.php,v 1.22 2002/05/28 15:30:33 cox Exp $
+// $Id: Upload.php,v 1.23 2002/05/28 15:33:36 cox Exp $
/*
* Pear File Uploader class. Easy and secure managment of files
@@ -386,7 +386,7 @@
* @param string $lang used language for errormessages
* @access public
*/
- function HTTP_Upload_File ($name=null, $tmp=null, $formname=null,
+ function HTTP_Upload_File($name=null, $tmp=null, $formname=null,
$type=null, $size=null, $lang=null)
{
$this->HTTP_Upload_Error($lang);
@@ -434,7 +434,7 @@
* @return string The modified name of the destination file
* @access public
*/
- function setName ($mode, $prepend=null, $append=null)
+ function setName($mode, $prepend=null, $append=null)
{
switch ($mode) {
case 'uniq':
@@ -465,7 +465,7 @@
* Unique file names in the form: 9022210413b75410c28bef.html
* @see HTTP_Upload_File::setName()
*/
- function nameToUniq ()
+ function nameToUniq()
{
if (! $this->_seeded) {
srand((double) microtime() * 1000000);
@@ -483,7 +483,7 @@
* @return string Formatted file name
* @see HTTP_Upload_File::setName()
*/
- function nameToSafe ($name, $maxlen=250)
+ function nameToSafe($name, $maxlen=250)
{
$noalpha =
'áéíóúàèìòùäëïöüÁÉÍÓÚÀÈÌÒÙÄËÏÖÜâêîôûÂÊÎÔÛñçÇ@';
$alpha = 'aeiouaeiouaeiouAEIOUAEIOUAEIOUaeiouAEIOUncCa';
@@ -544,7 +544,7 @@
* @return mixed True on success or Pear_Error object on error
* @access public
*/
- function moveTo ($dir_dest, $overwrite=true)
+ function moveTo($dir_dest, $overwrite=true)
{
if (!$this->isValid()) {
return $this->raiseError($this->upload['error']);
@@ -587,7 +587,7 @@
* @param string $dir_dest Destination dir
* @return mixed False on no errors or error code on error
*/
- function _chk_dir_dest ($dir_dest)
+ function _chk_dir_dest($dir_dest)
{
if (!$dir_dest) {
return 'MISSING_DIR';
@@ -608,7 +608,7 @@
* @see HTTP_Upload_File::HTTP_Upload_File()
* @access public
*/
- function getProp ($name=null)
+ function getProp($name=null)
{
if ($name === null) {
return $this->upload;