s/count/sizeof/g
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 06:56:19 +0000 (06:56 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 06:56:19 +0000 (06:56 +0000)
includes/cachev.php
includes/imaginary.php
includes/node.php
includes/paths.php
includes/repository.php
includes/svnlib.php

index a780e117ceee2f899adf31c8dc0c2991f8fe6214..c7f9ebf59e40b1a6fa16700822360f4cb2498228 100644 (file)
@@ -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);
                }
index 08d7001216f8e6e70f7b6e487fa559c4a87f80a0..5cc792e21b12eee0a8eedb9e07f128158a8f474b 100644 (file)
@@ -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"];
                                
index be5cb0b0abe9545ccbd4e2c3d65867f93d54391c..2c815b94ecaa2d8ab861c7de6ee05c5e5e44e9d2 100644 (file)
@@ -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)
                {
index 00ac0c2cc6801369912ee7740370844fe7c8f63e..95fb4fdc033e246cc3450a1fd8e433bf7b2ae9cf 100644 (file)
@@ -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;
                }
index 2b99350b8a48a2e4528b6fba6273309807829ff7..1a83218bed2e9ff993a4437a5147b9c5a26436c1 100644 (file)
@@ -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'));
                }
index 0c2776b4dcc76f17b00c6cacf7de46393e408bd7..a57a1d5375455a385dbc79abf4aacfe9a0d5426d 100644 (file)
@@ -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);