Skip to content

Commit

Permalink
Minor syntax update.
Browse files Browse the repository at this point in the history
  • Loading branch information
hexydec committed Dec 18, 2023
1 parent a606a14 commit edc5927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tokens/tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ public function minify(array $minify) : void {
if ($minify['urls'] && $attributes[$key] && \in_array($key, $attr['urls'], true) && (!\in_array($tag, \array_keys($attr['urlskip']), true) || $this->hasAttribute($attributes, $attr['urlskip'][$tag]))) {

// make folder variables
if ($folder === null && isset($_SERVER['HTTP_HOST']) && isset($_SERVER['REQUEST_URI'])) {
if (($folder = \parse_url('//' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], PHP_URL_PATH)) !== null) {
if ($folder === null && isset($_SERVER['HTTP_HOST'], $_SERVER['REQUEST_URI'])) {
if (($folder = \parse_url('//'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], PHP_URL_PATH)) !== null) {
if (\mb_substr($folder, -1) !== '/') {
$folder = \dirname($folder).'/';
}
Expand Down

0 comments on commit edc5927

Please sign in to comment.