10000 Fixed CS · symfony/symfony@b957a83 · GitHub
[go: up one dir, main page]

Skip to content

Commit b957a83

Browse files
committed
Fixed CS
1 parent 2e8373b commit b957a83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/DomCrawler/AbstractUriElement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(\DOMElement $node, string $currentUri = null, ?strin
4747
$this->currentUri = $currentUri;
4848

4949
$elementUriIsRelative = null === parse_url(trim($this->getRawUri()), PHP_URL_SCHEME);
50-
$baseUriIsAbsolute = in_array(strtolower(substr($this->currentUri, 0, 4)), array('http', 'file'));
50+
$baseUriIsAbsolute = \in_array(strtolower(substr($this->currentUri, 0, 4)), array('http', 'file'));
5151
if ($elementUriIsRelative && !$baseUriIsAbsolute) {
5252
throw new \InvalidArgumentException(sprintf('The URL of the element is relative, so you must define its base URI passing an absolute URL to the constructor of the %s class ("%s" was passed).', __CLASS__, $this->currentUri));
5353
}
@@ -116,7 +116,7 @@ public function getUri()
116116
}
117117

118118
// relative path
119-
$path = parse_url(substr($this->currentUri, strlen($baseUri)), PHP_URL_PATH);
119+
$path = parse_url(substr($this->currentUri, \strlen($baseUri)), PHP_URL_PATH);
120120
$path = $this->canonicalizePath(substr($path, 0, strrpos($path, '/')).'/'.$uri);
121121

122122
return $baseUri.('' === $path || '/' !== $path[0] ? '/' : '').$path;

0 commit comments

Comments
 (0)
0