File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 20
20
*/
21
21
class Crawler implements \Countable, \IteratorAggregate
22
22
{
23
- /**
24
- * @var string The current URI
25
- */
26
23
protected $ uri ;
27
24
28
25
/**
@@ -58,14 +55,14 @@ class Crawler implements \Countable, \IteratorAggregate
58
55
private $ isHtml = true ;
59
56
60
57
/**
61
- * @param mixed $node A Node to use as the base for the crawling
62
- * @param string $currentUri The current URI
63
- * @param string $baseHref The base href value
58
+ * @param mixed $node A Node to use as the base for the crawling
59
+ * @param string $uri The current URI
60
+ * @param string $baseHref The base href value
64
61
*/
65
- public function __construct ($ node = null , $ currentUri = null , $ baseHref = null )
62
+ public function __construct ($ node = null , $ uri = null , $ baseHref = null )
66
63
{
67
- $ this ->uri = $ currentUri ;
68
- $ this ->baseHref = $ baseHref ?: $ currentUri ;
64
+ $ this ->uri = $ uri ;
65
+ $ this ->baseHref = $ baseHref ?: $ uri ;
69
66
70
67
$ this ->add ($ node );
71
68
}
You can’t perform that action at this time.
0 commit comments