From 51812c8030d3c4c411de19445f11fd4f8cda17fb Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 06:56:19 +0000 Subject: [PATCH] s/count/sizeof/g --- includes/cachev.php | 2 +- includes/imaginary.php | 2 +- includes/node.php | 2 +- includes/paths.php | 2 +- includes/repository.php | 2 +- includes/svnlib.php | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/cachev.php b/includes/cachev.php index a780e11..c7f9ebf 100644 --- a/includes/cachev.php +++ b/includes/cachev.php @@ -141,7 +141,7 @@ class cacheV $data = $this->fetch_node(); $data = $data['history']; - if (count($data['history']) < 1) + if (sizeof($data['history']) < 1) { return $this->fetch_revision(0); } diff --git a/includes/imaginary.php b/includes/imaginary.php index 08d7001..5cc792e 100644 --- a/includes/imaginary.php +++ b/includes/imaginary.php @@ -54,7 +54,7 @@ class Imaginary $backtrace = debug_backtrace(); $calls = array(); - for ($i = 1; $i < count($backtrace); $i++) + for ($i = 1; $i < sizeof($backtrace); $i++) { $call = $backtrace["$i"]; diff --git a/includes/node.php b/includes/node.php index be5cb0b..2c815b9 100644 --- a/includes/node.php +++ b/includes/node.php @@ -242,7 +242,7 @@ class Node_Controller $itembit = '/'; $temp = preg_split('#/#', $this->fullpath, -1, PREG_SPLIT_NO_EMPTY); - $count = count($temp) - 1; + $count = sizeof($temp) - 1; foreach ($temp AS $val => $item) { diff --git a/includes/paths.php b/includes/paths.php index 00ac0c2..95fb4fd 100644 --- a/includes/paths.php +++ b/includes/paths.php @@ -152,7 +152,7 @@ class Paths { $path = $this->fetch_path($path); $temp = preg_split('#/#', $path, -1, PREG_SPLIT_NO_EMPTY); - if (count($temp) > 0) + if (sizeof($temp) > 0) { return false; } diff --git a/includes/repository.php b/includes/repository.php index 2b99350..1a83218 100644 --- a/includes/repository.php +++ b/includes/repository.php @@ -93,7 +93,7 @@ class Repository sort($this->repositories); - if (count($this->repositories) < 1) + if (sizeof($this->repositories) < 1) { $viewsvn->trigger->error($viewsvn->lang->string('There are no valid repositories')); } diff --git a/includes/svnlib.php b/includes/svnlib.php index 0c2776b..a57a1d5 100644 --- a/includes/svnlib.php +++ b/includes/svnlib.php @@ -382,7 +382,7 @@ class SVNLog { $lastrev = 0; - for ($i = 1; $i <= count($this->rawoutput) - 1; $i++) + for ($i = 1; $i <= sizeof($this->rawoutput) - 1; $i++) { $line = $this->rawoutput["$i"]; @@ -559,7 +559,7 @@ class SVNDiff else if ($act == '+') { // potential line delta - if (count($delstack) > 0) + if (sizeof($delstack) > 0) { $lastline = array_shift($delstack); @@ -599,7 +599,7 @@ class SVNDiff 'newlineno' => '' ); - $key = count($this->diff["$index"]["$chunk"]) - 2; + $key = sizeof($this->diff["$index"]["$chunk"]) - 2; $thearray['INDEX'] = $key; array_push($delstack, $thearray); -- 2.22.5