cvs: pear /PEAR_PackageFileManager/PackageFileManager File.php

From: Date: Thu, 21 Jul 2005 04:17:02 +0000
Subject: cvs: pear /PEAR_PackageFileManager/PackageFileManager File.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33182@lists.php.net to get a copy of this message
cellog Thu Jul 21 00:17:02 2005 EDT Modified files: /pear/PEAR_PackageFileManager/PackageFileManager File.php Log: tabs -> spaces http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/PackageFileManager/File.php?r1=1.23&r2=1.24&ty=u Index: pear/PEAR_PackageFileManager/PackageFileManager/File.php diff -u pear/PEAR_PackageFileManager/PackageFileManager/File.php:1.23 pear/PEAR_PackageFileManager/PackageFileManager/File.php:1.24 --- pear/PEAR_PackageFileManager/PackageFileManager/File.php:1.23 Thu Jul 21 00:05:51 2005 +++ pear/PEAR_PackageFileManager/PackageFileManager/File.php Thu Jul 21 00:17:02 2005 @@ -16,7 +16,7 @@ // | Web http://www.phpdoc.org | // | Mirror http://phpdocu.sourceforge.net/ | // +------------------------------------------------------------------------+ -// $Id: File.php,v 1.23 2005/07/21 04:05:51 cellog Exp $ +// $Id: File.php,v 1.24 2005/07/21 04:17:02 cellog Exp $ // /** * Retrieve the files from a directory listing @@ -99,18 +99,18 @@ } $struc = array(); foreach($allfiles as $file) { - $path = substr(dirname($file), strlen(str_replace(DIRECTORY_SEPARATOR, + $path = substr(dirname($file), strlen(str_replace(DIRECTORY_SEPARATOR, '/', realpath($package_directory))) + 1); - if (!$path) { + if (!$path) { $path = '/'; } $stupidassphp5_1 = explode('.', $file); - $ext = array_pop($stupidassphp5_1); - if (strlen($ext) == strlen($file)) { + $ext = array_pop($stupidassphp5_1); + if (strlen($ext) == strlen($file)) { $ext = ''; } - $struc[$path][] = array('file' => basename($file), + $struc[$path][] = array('file' => basename($file), 'ext' => $ext, 'path' => (($path == '/') ? basename($file) : $path . '/' . basename($file)), 'fullpath' => $file); @@ -122,8 +122,8 @@ } uksort($struc,'strnatcasecmp'); foreach($struc as $key => $ind) { - usort($ind, array($this, 'sortfiles')); - $struc[$key] = $ind; + usort($ind, array($this, 'sortfiles')); + $struc[$key] = $ind; } $tempstruc = $struc; @@ -133,11 +133,11 @@ $struc = array('/' => $tempstruc['/']); $bv = 0; foreach($tempstruc as $key => $ind) { - $save = $key; - if ($key != '/') - { + $save = $key; + if ($key != '/') + { $struc['/'] = $this->_setupDirs($struc['/'], explode('/',$key), $tempstruc[$key]); - } + } } uksort($struc['/'], array($this, 'mystrucsort'));

« previous php.pear.cvs (#33182) next »