Skip to content

Commit 6bc0157

Browse files
Cleanup @return annotations
1 parent c8cde89 commit 6bc0157

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

AbstractUriElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(\DOMElement $node, string $currentUri = null, ?strin
5656
/**
5757
* Gets the node associated with this link.
5858
*
59-
* @return \DOMElement A \DOMElement instance
59+
* @return \DOMElement
6060
*/
6161
public function getNode()
6262
{

Crawler.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ public function outerHtml(): string
690690
* Since an XPath expression might evaluate to either a simple type or a \DOMNodeList,
691691
* this method will return either an array of simple types or a new Crawler instance.
692692
*
693-
* @return array|Crawler An array of evaluation results or a new Crawler instance
693+
* @return array|Crawler
694694
*/
695695
public function evaluate(string $xpath)
696696
{
@@ -800,7 +800,7 @@ public function selectLink(string $value)
800800
/**
801801
* Selects images by alt value.
802802
*
803-
* @return static A new instance of Crawler with the filtered list of nodes
803+
* @return static
804804
*/
805805
public function selectImage(string $value)
806806
{
@@ -824,7 +824,7 @@ public function selectButton(string $value)
824824
/**
825825
* Returns a Link object for the first node in the list.
826826
*
827-
* @return Link A Link instance
827+
* @return Link
828828
*
829829
* @throws \InvalidArgumentException If the current node list is empty or the selected node is not instance of DOMElement
830830
*/
@@ -846,7 +846,7 @@ public function link(string $method = 'get')
846846
/**
847847
* Returns an array of Link objects for the nodes in the list.
848848
*
849-
* @return Link[] An array of Link instances
849+
* @return Link[]
850850
*
851851
* @throws \InvalidArgumentException If the current node list contains non-DOMElement instances
852852
*/
@@ -867,7 +867,7 @@ public function links()
867867
/**
868868
* Returns an Image object for the first node in the list.
869869
*
870-
* @return Image An Image instance
870+
* @return Image
871871
*
872872
* @throws \InvalidArgumentException If the current node list is empty
873873
*/
@@ -889,7 +889,7 @@ public function image()
889889
/**
890890
* Returns an array of Image objects for the nodes in the list.
891891
*
892-
* @return Image[] An array of Image instances
892+
* @return Image[]
893893
*/
894894
public function images()
895895
{
@@ -908,7 +908,7 @@ public function images()
908908
/**
909909
* Returns a Form object for the first node in the list.
910910
*
911-
* @return Form A Form instance
911+
* @return Form
912912
*
913913
* @throws \InvalidArgumentException If the current node list is empty or the selected node is not instance of DOMElement
914914
*/

Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(\DOMElement $node, string $currentUri = null, string
5555
/**
5656
* Gets the form node associated with this form.
5757
*
58-
* @return \DOMElement A \DOMElement instance
58+
* @return \DOMElement
5959
*/
6060
public function getFormNode()
6161
{

0 commit comments

Comments
 (0)