Skip to content

Commit 5a1f568

Browse files
committed
fixed @return when returning this or static
1 parent 1a3ea98 commit 5a1f568

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

Crawler.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public function serialize()
324324
*
325325
* @param int $position The position
326326
*
327-
* @return Crawler A new instance of the Crawler with the selected node, or an empty Crawler if it does not exist
327+
* @return self
328328
*/
329329
public function eq($position)
330330
{
@@ -369,7 +369,7 @@ public function each(\Closure $closure)
369369
* @param int $offset
370370
* @param int $length
371371
*
372-
* @return Crawler A Crawler instance with the sliced nodes
372+
* @return self
373373
*/
374374
public function slice($offset = 0, $length = -1)
375375
{
@@ -383,7 +383,7 @@ public function slice($offset = 0, $length = -1)
383383
*
384384
* @param \Closure $closure An anonymous function
385385
*
386-
* @return Crawler A Crawler instance with the selected nodes
386+
* @return self
387387
*/
388388
public function reduce(\Closure $closure)
389389
{
@@ -400,7 +400,7 @@ public function reduce(\Closure $closure)
400400
/**
401401
* Returns the first node of the current selection.
402402
*
403-
* @return Crawler A Crawler instance with the first selected node
403+
* @return self
404404
*/
405405
public function first()
406406
{
@@ -410,7 +410,7 @@ public function first()
410410
/**
411411
* Returns the last node of the current selection.
412412
*
413-
* @return Crawler A Crawler instance with the last selected node
413+
* @return self
414414
*/
415415
public function last()
416416
{
@@ -420,7 +420,7 @@ public function last()
420420
/**
421421
* Returns the siblings nodes of the current selection.
422422
*
423-
* @return Crawler A Crawler instance with the sibling nodes
423+
* @return self
424424
*
425425
* @throws \InvalidArgumentException When current node is empty
426426
*/
@@ -436,7 +436,7 @@ public function siblings()
436436
/**
437437
* Returns the next siblings nodes of the current selection.
438438
*
439-
* @return Crawler A Crawler instance with the next sibling nodes
439+
* @return self
440440
*
441441
* @throws \InvalidArgumentException When current node is empty
442442
*/
@@ -452,7 +452,7 @@ public function nextAll()
452452
/**
453453
* Returns the previous sibling nodes of the current selection.
454454
*
455-
* @return Crawler A Crawler instance with the previous sibling nodes
455+
* @return self
456456
*
457457
* @throws \InvalidArgumentException
458458
*/
@@ -468,7 +468,7 @@ public function previousAll()
468468
/**
469469
* Returns the parents nodes of the current selection.
470470
*
471-
* @return Crawler A Crawler instance with the parents nodes of the current selection
471+
* @return self
472472
*
473473
* @throws \InvalidArgumentException When current node is empty
474474
*/
@@ -493,7 +493,7 @@ public function parents()
493493
/**
494494
* Returns the children nodes of the current selection.
495495
*
496-
* @return Crawler A Crawler instance with the children nodes
496+
* @return self
497497
*
498498
* @throws \InvalidArgumentException When current node is empty
499499
*/
@@ -626,7 +626,7 @@ public function extract($attributes)
626626
*
627627
* @param string $xpath An XPath expression
628628
*
629-
* @return Crawler A new instance of Crawler with the filtered list of nodes
629+
* @return self
630630
*/
631631
public function filterXPath($xpath)
632632
{
@@ -647,7 +647,7 @@ public function filterXPath($xpath)
647647
*
648648
* @param string $selector A CSS selector
649649
*
650-
* @return Crawler A new instance of Crawler with the filtered list of nodes
650+
* @return self
651651
*
652652
* @throws \RuntimeException if the CssSelector Component is not available
653653
*/
@@ -666,7 +666,7 @@ public function filter($selector)
666666
*
667667
* @param string $value The link text
668668
*
669-
* @return Crawler A new instance of Crawler with the filtered list of nodes
669+
* @return self
670670
*/
671671
public function selectLink($value)
672672
{
@@ -681,7 +681,7 @@ public function selectLink($value)
681681
*
682682
* @param string $value The button text
683683
*
684-
* @return Crawler A new instance of Crawler with the filtered list of nodes
684+
* @return self
685685
*/
686686
public function selectButton($value)
687687
{
@@ -826,7 +826,7 @@ public static function xpathLiteral($s)
826826
*
827827
* @param string $xpath
828828
*
829-
* @return Crawler
829+
* @return self
830830
*/
831831
private function filterRelativeXPath($xpath)
832832
{

Form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function getFormNode()
6969
*
7070
* @param array $values An array of field values
7171
*
72-
* @return Form
72+
* @return $this
7373
*/
7474
public function setValues(array $values)
7575
{
@@ -279,7 +279,7 @@ public function set(FormField $field)
279279
/**
280280
* Gets all fields.
281281
*
282-
* @return FormField[] An array of fields
282+
* @return FormField[]
283283
*/
284284
public function all()
285285
{

FormFieldRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function all()
151151
* @param string $base The fully qualified name of the base field
152152
* @param array $values The values of the fields
153153
*
154-
* @return FormFieldRegistry
154+
* @return static
155155
*/
156156
private static function create($base, array $values)
157157
{

0 commit comments

Comments
 (0)