@@ -397,7 +397,7 @@ |
||
| 397 | 397 | /** |
| 398 | 398 | * Find node by id |
| 399 | 399 | * |
| 400 | - * @param $id |
|
| 400 | + * @param integer $id |
|
| 401 | 401 | * @return bool|AbstractNode |
| 402 | 402 | */ |
| 403 | 403 | public function findById($id) |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | |
| 4 | 4 | use PHPHtmlParser\Exceptions\CircularException; |
| 5 | 5 | use PHPHtmlParser\Exceptions\ParentNotFoundException; |
| 6 | +use PHPHtmlParser\Finder; |
|
| 6 | 7 | use PHPHtmlParser\Selector; |
| 7 | 8 | use stringEncode\Encode; |
| 8 | -use PHPHtmlParser\Finder; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Dom node object. |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace PHPHtmlParser; |
| 3 | 3 | |
| 4 | +use Countable; |
|
| 4 | 5 | use PHPHtmlParser\Dom\AbstractNode; |
| 5 | 6 | use PHPHtmlParser\Dom\Collection; |
| 6 | 7 | use PHPHtmlParser\Dom\InnerNode; |
| 7 | 8 | use PHPHtmlParser\Dom\LeafNode; |
| 8 | 9 | use PHPHtmlParser\Exceptions\ChildNotFoundException; |
| 9 | -use Countable; |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Class Selector |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | * Insert element before child with provided id |
| 178 | 178 | * |
| 179 | 179 | * @param AbstractNode $child |
| 180 | - * @return bool |
|
| 180 | + * @return boolean|null |
|
| 181 | 181 | * @param int $id |
| 182 | 182 | */ |
| 183 | 183 | public function insertBefore(AbstractNode $child, $id){ |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | /** |
| 238 | 238 | * Check if has next Child |
| 239 | 239 | * |
| 240 | - * @param $id childId |
|
| 240 | + * @param string $id childId |
|
| 241 | 241 | * @return mixed |
| 242 | 242 | */ |
| 243 | 243 | public function hasNextChild($id) |