Skip to content

Commit 4467183

Browse files
committed
docblock fix
1 parent c82f66c commit 4467183

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Rct567/DomQuery/DomQuery.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function find(string $css_expression)
248248
*
249249
* @param string|null $val
250250
*
251-
* @return self|string|void
251+
* @return $this|string|void
252252
*/
253253
public function text($val=null)
254254
{
@@ -270,7 +270,7 @@ public function text($val=null)
270270
*
271271
* @param string|null $html_string
272272
*
273-
* @return self|string|void
273+
* @return $this|string|void
274274
*/
275275
public function html($html_string=null)
276276
{
@@ -310,7 +310,7 @@ public function html($html_string=null)
310310
* @param string $name
311311
* @param string $val
312312
*
313-
* @return self|string
313+
* @return $this|string
314314
*/
315315
public function attr(string $name, $val=null)
316316
{
@@ -333,8 +333,9 @@ public function attr(string $name, $val=null)
333333
/**
334334
* Remove an attribute from each element in the set of matched elements
335335
*
336-
* @param [type] $name
337-
* @return void
336+
* @param string $name
337+
*
338+
* @return $this
338339
*/
339340
public function removeAttr($name)
340341
{
@@ -354,11 +355,10 @@ public function removeAttr($name)
354355
* @param string $name
355356
* @param string $val
356357
*
357-
* @return mixed
358+
* @return $this|mixed
358359
*/
359360
public function prop(string $name, $val=null)
360361
{
361-
362362
if (!is_null($val)) { // set attribute for all nodes
363363
foreach ($this->nodes as $node) {
364364
$node->$name = $val;
@@ -432,7 +432,7 @@ public function parent(string $selector=null)
432432
*
433433
* @param string $selector
434434
*
435-
* @return void
435+
* @return self
436436
*/
437437
public function not(string $selector)
438438
{
@@ -468,7 +468,7 @@ public function not(string $selector)
468468
*
469469
* @param string $selector
470470
*
471-
* @return void
471+
* @return self
472472
*/
473473
public function filter(string $selector)
474474
{
@@ -709,7 +709,7 @@ private function importNodes($content, callable $import_function)
709709
*
710710
* @param string|self $content,...
711711
*
712-
* @return self
712+
* @return $this
713713
*/
714714
public function append()
715715
{
@@ -725,7 +725,7 @@ public function append()
725725
*
726726
* @param string|self $content,...
727727
*
728-
* @return self
728+
* @return $this
729729
*/
730730
public function prepend()
731731
{
@@ -741,7 +741,7 @@ public function prepend()
741741
*
742742
* @param string|self $content,...
743743
*
744-
* @return self
744+
* @return $this
745745
*/
746746
public function before()
747747
{
@@ -761,7 +761,7 @@ public function before()
761761
*
762762
* @param string|self $content,...
763763
*
764-
* @return self
764+
* @return $this
765765
*/
766766
public function after()
767767
{

0 commit comments

Comments
 (0)