Skip to content

Commit d847676

Browse files
committed
fixed CS
1 parent c876d0c commit d847676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)), ['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
}
@@ -146,7 +146,7 @@ protected function canonicalizePath($path)
146146
$path .= '/';
147147
}
148148

149-
$output = array();
149+
$output = [];
150150

151151
foreach (explode('/', $path) as $segment) {
152152
if ('..' === $segment) {

0 commit comments

Comments
 (0)