Completed
Push — master ( 9b3a78...39094b )
by Lars
16:00
created
src/voku/helper/HtmlDomParser.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
    * @param int    $offset
116 116
    * @param bool   $forceTagsClosed
117 117
    *
118
-   * @return bool|\voku\helper\SimpleHtmlDom
118
+   * @return SimpleHtmlDom
119 119
    */
120 120
   public static function file_get_html($url, $use_include_path = false, $context = null, $offset = -1, $forceTagsClosed = true)
121 121
   {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
    * @param        $str
141 141
    * @param bool   $forceTagsClosed
142 142
    *
143
-   * @return bool|\voku\helper\SimpleHtmlDom
143
+   * @return SimpleHtmlDom
144 144
    */
145 145
   public static function str_get_html($str, $forceTagsClosed = true)
146 146
   {
Please login to merge, or discard this patch.
src/voku/helper/SimpleHtmlDom.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
    * remove noise from html content
321 321
    * save the noise in the $this->noise array.
322 322
    *
323
-   * @param      $pattern
323
+   * @param      string $pattern
324 324
    * @param bool $remove_tag
325 325
    */
326 326
   protected function remove_noise($pattern, $remove_tag = false)
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
   /**
370 370
    * copy until - char
371 371
    *
372
-   * @param $char
372
+   * @param string $char
373 373
    *
374 374
    * @return string
375 375
    */
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
   /**
644 644
    * skip
645 645
    *
646
-   * @param $chars
646
+   * @param string $chars
647 647
    */
648 648
   protected function skip($chars)
649 649
   {
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
   /**
655 655
    * as a text node
656 656
    *
657
-   * @param $tag
657
+   * @param string $tag
658 658
    *
659 659
    * @return bool
660 660
    */
@@ -672,8 +672,8 @@  discard block
 block discarded – undo
672 672
   /**
673 673
    * link node's parent
674 674
    *
675
-   * @param $node
676
-   * @param $is_child
675
+   * @param SimpleHtmlDomNode $node
676
+   * @param boolean $is_child
677 677
    */
678 678
   protected function link_nodes(&$node, $is_child)
679 679
   {
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
   /**
689 689
    * copy until
690 690
    *
691
-   * @param $chars
691
+   * @param string $chars
692 692
    *
693 693
    * @return string
694 694
    */
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
   /**
706 706
    * copy skip
707 707
    *
708
-   * @param $chars
708
+   * @param string $chars
709 709
    *
710 710
    * @return string
711 711
    */
@@ -755,9 +755,9 @@  discard block
 block discarded – undo
755 755
   /**
756 756
    * parse attributes
757 757
    *
758
-   * @param $node
759
-   * @param $name
760
-   * @param $space
758
+   * @param SimpleHtmlDomNode $node
759
+   * @param string $name
760
+   * @param string[] $space
761 761
    */
762 762
   protected function parse_attr($node, $name, &$space)
763 763
   {
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
   /**
799 799
    * copy until - char-escape
800 800
    *
801
-   * @param $char
801
+   * @param string $char
802 802
    *
803 803
    * @return string
804 804
    */
@@ -1016,7 +1016,7 @@  discard block
 block discarded – undo
1016 1016
    * Paperg - allow us to specify that we want case insensitive testing of the value of the selector.
1017 1017
    *
1018 1018
    * @param      $selector
1019
-   * @param null $idx
1019
+   * @param integer|null $idx
1020 1020
    *
1021 1021
    * @return array|null|\voku\helper\SimpleHtmlDomNode[]|\voku\helper\SimpleHtmlDomNode
1022 1022
    */
Please login to merge, or discard this patch.
src/voku/helper/SimpleHtmlDomNode.php 1 patch
Doc Comments   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
   private $dom = null;
65 65
 
66 66
   /**
67
-   * @param $dom
67
+   * @param SimpleHtmlDom $dom
68 68
    */
69 69
   public function __construct($dom)
70 70
   {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
    * @param bool $echo
220 220
    * @param      $node
221 221
    *
222
-   * @return string|void
222
+   * @return string
223 223
    */
224 224
   public function dump_node($echo = true, $node)
225 225
   {
@@ -911,10 +911,10 @@  discard block
 block discarded – undo
911 911
    * match
912 912
    *
913 913
    * @param $exp
914
-   * @param $pattern
915
-   * @param $value
914
+   * @param string $pattern
915
+   * @param string $value
916 916
    *
917
-   * @return bool|int
917
+   * @return string
918 918
    */
919 919
   protected function match($exp, $pattern, $value)
920 920
   {
@@ -979,7 +979,7 @@  discard block
 block discarded – undo
979 979
   /**
980 980
    * parent node
981 981
    *
982
-   * @return null
982
+   * @return SimpleHtmlDomNode
983 983
    */
984 984
   public function parentNode()
985 985
   {
@@ -991,9 +991,9 @@  discard block
 block discarded – undo
991 991
    *
992 992
    * If a node is passed in, it will reset the parent of the current node to that one.
993 993
    *
994
-   * @param null $parent
994
+   * @param SimpleHtmlDomNode $parent
995 995
    *
996
-   * @return null
996
+   * @return SimpleHtmlDomNode
997 997
    */
998 998
   public function parent($parent = null)
999 999
   {
@@ -1043,7 +1043,7 @@  discard block
 block discarded – undo
1043 1043
   /**
1044 1044
    * first child
1045 1045
    *
1046
-   * @return null
1046
+   * @return SimpleHtmlDomNode|null
1047 1047
    */
1048 1048
   public function firstChild()
1049 1049
   {
@@ -1053,7 +1053,7 @@  discard block
 block discarded – undo
1053 1053
   /**
1054 1054
    * returns the first child of node
1055 1055
    *
1056
-   * @return null
1056
+   * @return SimpleHtmlDomNode|null
1057 1057
    */
1058 1058
   public function first_child()
1059 1059
   {
@@ -1067,7 +1067,7 @@  discard block
 block discarded – undo
1067 1067
   /**
1068 1068
    * last child
1069 1069
    *
1070
-   * @return null
1070
+   * @return SimpleHtmlDomNode|null
1071 1071
    */
1072 1072
   public function lastChild()
1073 1073
   {
@@ -1077,7 +1077,7 @@  discard block
 block discarded – undo
1077 1077
   /**
1078 1078
    * returns the last child of node
1079 1079
    *
1080
-   * @return null
1080
+   * @return SimpleHtmlDomNode|null
1081 1081
    */
1082 1082
   public function last_child()
1083 1083
   {
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
   /**
1092 1092
    * next sibling
1093 1093
    *
1094
-   * @return null
1094
+   * @return null|SimpleHtmlDomNode
1095 1095
    */
1096 1096
   public function nextSibling()
1097 1097
   {
@@ -1101,7 +1101,7 @@  discard block
 block discarded – undo
1101 1101
   /**
1102 1102
    * returns the next sibling of node
1103 1103
    *
1104
-   * @return null
1104
+   * @return null|SimpleHtmlDomNode
1105 1105
    */
1106 1106
   public function next_sibling()
1107 1107
   {
@@ -1125,7 +1125,7 @@  discard block
 block discarded – undo
1125 1125
   /**
1126 1126
    * previous sibling
1127 1127
    *
1128
-   * @return null
1128
+   * @return null|SimpleHtmlDomNode
1129 1129
    */
1130 1130
   public function previousSibling()
1131 1131
   {
@@ -1191,7 +1191,7 @@  discard block
 block discarded – undo
1191 1191
    *
1192 1192
    * @param SimpleHtmlDomNode $node
1193 1193
    *
1194
-   * @return mixed
1194
+   * @return SimpleHtmlDomNode
1195 1195
    */
1196 1196
   public function appendChild($node)
1197 1197
   {
Please login to merge, or discard this patch.
src/voku/helper/SimpleHtmlDomNodeBlank.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
    *
15 15
    * @param $name
16 16
    *
17
-   * @return bool|mixed|string
17
+   * @return string
18 18
    */
19 19
   public function __get($name)
20 20
   {
Please login to merge, or discard this patch.