diff --git a/Src/Sunra/PhpSimple/HtmlDomParser.php b/Src/Sunra/PhpSimple/HtmlDomParser.php index 4f3d013..79fd4c6 100644 --- a/Src/Sunra/PhpSimple/HtmlDomParser.php +++ b/Src/Sunra/PhpSimple/HtmlDomParser.php @@ -10,7 +10,7 @@ class HtmlDomParser { * @return \simplehtmldom_1_5\simple_html_dom */ static public function file_get_html() { - return call_user_func_array ( '\simplehtmldom_1_5\file_get_html' , func_get_args() ); + return \call_user_func_array ( '\simplehtmldom_1_5\file_get_html' , \func_get_args() ); } /** @@ -18,6 +18,6 @@ static public function file_get_html() { * @return \simplehtmldom_1_5\simple_html_dom */ static public function str_get_html() { - return call_user_func_array ( '\simplehtmldom_1_5\str_get_html' , func_get_args() ); + return \call_user_func_array ( '\simplehtmldom_1_5\str_get_html' , \func_get_args() ); } } \ No newline at end of file diff --git a/Src/Sunra/PhpSimple/simplehtmldom_1_5/app/index.php b/Src/Sunra/PhpSimple/simplehtmldom_1_5/app/index.php index 189aa5a..bd6bbfe 100644 --- a/Src/Sunra/PhpSimple/simplehtmldom_1_5/app/index.php +++ b/Src/Sunra/PhpSimple/simplehtmldom_1_5/app/index.php @@ -1,5 +1,5 @@ nodes). + echo 'Total: '. \count($dom->nodes). ', Text: '.$count_text. ', Commnet: '.$count_comm. ', Tag: '.$count_elem. @@ -52,27 +52,27 @@ function stat_dom($dom) { } function dump_my_html_tree($node, $show_attr=true, $deep=0, $last=true) { - $count = count($node->nodes); + $count = \count($node->nodes); if ($count>0) { if($last) - echo '
  • li11
  • li12
  • HTML; $dom->load($str); -assert($dom->find('ul', 0)->outertext==''); -assert($dom->find('ul', 1)->outertext==''); +\assert($dom->find('ul', 0)->outertext==''); +\assert($dom->find('ul', 1)->outertext==''); // ----------------------------------------------- $str = <<
  • li11
  • li12