Skip to content

Commit

Permalink
Merge "Fix mismatched casing in class names"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Aug 1, 2023
2 parents 2155162 + 57e0039 commit 1294631
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Less/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ public function svggradient( $direction ) {
$returner = "'data:image/svg+xml," . $returner . "'";
}

return new Less_Tree_URL( new Less_Tree_Anonymous( $returner ) );
return new Less_Tree_Url( new Less_Tree_Anonymous( $returner ) );
}

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/Less/Tree/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ public function getPath() {
$path = $this->path->value;
$path = ( isset( $this->css ) || preg_match( '/(\.[a-z]*$)|([\?;].*)$/', $path ) ) ? $path : $path . '.less';

// During the first pass, Less_Tree_URL may contain a Less_Tree_Variable (not yet expanded),
// During the first pass, Less_Tree_Url may contain a Less_Tree_Variable (not yet expanded),
// and thus has no value property defined yet. Return null until we reach the next phase.
// https://github.com/wikimedia/less.php/issues/29
} elseif ( $this->path instanceof Less_Tree_URL && !( $this->path->value instanceof Less_Tree_Variable ) ) {
} elseif ( $this->path instanceof Less_Tree_Url && !( $this->path->value instanceof Less_Tree_Variable ) ) {
$path = $this->path->value->value;
} else {
return null;
Expand All @@ -129,7 +129,7 @@ public function compilePath( $env ) {
$rootpath = $this->currentFileInfo['rootpath'];
}

if ( !( $path instanceof Less_Tree_URL ) ) {
if ( !( $path instanceof Less_Tree_Url ) ) {
if ( $rootpath ) {
$pathValue = $path->value;
// Add the base path if the import is relative
Expand Down
2 changes: 1 addition & 1 deletion lib/Less/Tree/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function compile( $ctx ) {
}
}

return new Less_Tree_URL( $val, $this->currentFileInfo, true );
return new Less_Tree_Url( $val, $this->currentFileInfo, true );
}

}

0 comments on commit 1294631

Please sign in to comment.