From: Pierre Joye Date: Thu, 22 Jan 2004 15:45:50 +0000 (+0000) Subject: - Update examples to studlyCaps syntax X-Git-Tag: php_ibase_before_split~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0dd6bd1d9f76a9202e4f88542631368b03c92c8c;p=php - Update examples to studlyCaps syntax --- diff --git a/ext/tidy/examples/cleanhtml5.php b/ext/tidy/examples/cleanhtml5.php index 5e4095e8ac..c31e36f1f2 100644 --- a/ext/tidy/examples/cleanhtml5.php +++ b/ext/tidy/examples/cleanhtml5.php @@ -21,7 +21,7 @@ $tidy = tidy_parse_file($_SERVER['argv'][1]); } - $tidy->clean_repair(); + $tidy->cleanRepair(); if(!empty($tidy->error_buf)) { @@ -36,4 +36,4 @@ - \ No newline at end of file + diff --git a/ext/tidy/examples/urlgrab5.php b/ext/tidy/examples/urlgrab5.php index d9f9f7f065..8e08322a14 100644 --- a/ext/tidy/examples/urlgrab5.php +++ b/ext/tidy/examples/urlgrab5.php @@ -22,12 +22,10 @@ } } - if($node->has_children()) { + if($node->hasChildren()) { foreach($node->child as $c) { - dump_nodes($c, $urls); - } } @@ -36,6 +34,6 @@ } $a = tidy_parse_file($_SERVER['argv'][1]); - $a->clean_repair(); + $a->cleanRepair(); print_r(dump_nodes($a->html())); -?> \ No newline at end of file +?>