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 extends \SplObjectStorage
22
22
{
23
- /**
24
- * @var string The current URI
25
- */
26
23
protected $ uri ;
27
24
28
25
/**
@@ -53,14 +50,14 @@ class Crawler extends \SplObjectStorage
53
50
private $ isHtml = true ;
54
51
55
52
/**
56
- * @param mixed $node A Node to use as the base for the crawling
57
- * @param string $currentUri The current URI
58
- * @param string $baseHref The base href value
53
+ * @param mixed $node A Node to use as the base for the crawling
54
+ * @param string $uri The current URI
55
+ * @param string $baseHref The base href value
59
56
*/
60
- public function __construct ($ node = null , $ currentUri = null , $ baseHref = null )
57
+ public function __construct ($ node = null , $ uri = null , $ baseHref = null )
61
58
{
62
- $ this ->uri = $ currentUri ;
63
- $ this ->baseHref = $ baseHref ?: $ currentUri ;
59
+ $ this ->uri = $ uri ;
60
+ $ this ->baseHref = $ baseHref ?: $ uri ;
64
61
65
62
$ this ->add ($ node );
66
63
}
You can’t perform that action at this time.
0 commit comments