X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fdom-crawler%2FAbstractUriElement.php;fp=vendor%2Fsymfony%2Fdom-crawler%2FAbstractUriElement.php;h=192d7922f479d31f9ca33939004f8501c5ba03db;hp=d602d6f3316bfb46d3b994382f86fe93c93d458e;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/symfony/dom-crawler/AbstractUriElement.php b/vendor/symfony/dom-crawler/AbstractUriElement.php index d602d6f33..192d7922f 100644 --- a/vendor/symfony/dom-crawler/AbstractUriElement.php +++ b/vendor/symfony/dom-crawler/AbstractUriElement.php @@ -42,7 +42,7 @@ abstract class AbstractUriElement */ public function __construct(\DOMElement $node, $currentUri, $method = 'GET') { - if (!in_array(strtolower(substr($currentUri, 0, 4)), array('http', 'file'))) { + if (!\in_array(strtolower(substr($currentUri, 0, 4)), array('http', 'file'))) { throw new \InvalidArgumentException(sprintf('Current URI must be an absolute URL ("%s").', $currentUri)); } @@ -114,7 +114,7 @@ abstract class AbstractUriElement } // relative path - $path = parse_url(substr($this->currentUri, strlen($baseUri)), PHP_URL_PATH); + $path = parse_url(substr($this->currentUri, \strlen($baseUri)), PHP_URL_PATH); $path = $this->canonicalizePath(substr($path, 0, strrpos($path, '/')).'/'.$uri); return $baseUri.('' === $path || '/' !== $path[0] ? '/' : '').$path;