cvs: php4 /pear/File Find.php
| From: | Sterling Hughes | Date: | Tue, 21 Aug 2001 03:57:34 +0000 |
| Subject: | cvs: php4 /pear/File Find.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-609@lists.php.net to get a copy of this message | ||
sterling Mon Aug 20 23:57:34 2001 EDT
Modified files:
/php4/pear/File Find.php
Log:
more ws fix
# goddamn its annoying that the php source uses tabs
Index: php4/pear/File/Find.php
diff -u php4/pear/File/Find.php:1.16 php4/pear/File/Find.php:1.17
--- php4/pear/File/Find.php:1.16 Mon Aug 20 23:06:06 2001
+++ php4/pear/File/Find.php Mon Aug 20 23:57:34 2001
@@ -16,7 +16,7 @@
// | Authors: Sterling Hughes <sterling@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Find.php,v 1.16 2001/08/21 03:06:06 cox Exp $
+// $Id: Find.php,v 1.17 2001/08/21 03:57:34 sterling Exp $
//
require_once 'PEAR.php';
@@ -25,7 +25,7 @@
* Commonly needed functions searching directory trees
*
* @access public
-* @version $Id: Find.php,v 1.16 2001/08/21 03:06:06 cox Exp $
+* @version $Id: Find.php,v 1.17 2001/08/21 03:57:34 sterling Exp $
* @package File
* @author Sterling Hughes <sterling@php.net>
*/
@@ -78,8 +78,7 @@
$match_function = File_Find::_determineRegex ($pattern, $pattern_type);
$matches = array();
- while ($entry = @readdir ($dh))
- {
+ while ($entry = @readdir ($dh)) {
if ($match_function ($pattern, $entry) &&
$entry != '.' &&
$entry != '..') {
@@ -108,8 +107,7 @@
{
$this->_dirs = array ($directory);
- while (count ($this->_dirs))
- {
+ while (count ($this->_dirs)) {
$dir = array_pop ($this->_dirs);
File_Find::_build ($dir);
array_push ($this->directories, $dir);
@@ -140,8 +138,7 @@
$match_function = File_Find::_determineRegex ($pattern, $type);
reset ($files);
- while (list (,$entry) = each ($files))
- {
+ while (list (,$entry) = each ($files)) {
if ($match_function ($pattern, $entry))
$matches[] = $entry;
}
@@ -188,9 +185,7 @@
return ($pe);
}
- while ($entry = @readdir ($dh))
- {
-
+ while ($entry = @readdir ($dh)) {
if ($entry != '.' &&
$entry != '..') {
@@ -271,4 +266,4 @@
* End:
*/
-?>
\ No newline at end of file
+?>