Skip to content

Commit

Permalink
Simplify boolean condition in Functions class
Browse files Browse the repository at this point in the history
Change-Id: If9b17ca8b69bf4651d9017553e48d13b463073a8
  • Loading branch information
umherirrender authored and Hokwelum committed Aug 15, 2024
1 parent 87c7a57 commit fff1924
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence.MissingParentheses" />
<exclude name="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase" />
<exclude name="Generic.PHP.NoSilencedErrors.Discouraged" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
Expand Down
2 changes: 1 addition & 1 deletion lib/Less/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ private function _minMax( $isMin, $args ) {
$unit = $currentUnified->unit->toString();
}

if ( $unit !== '' && !$unitStatic || $unit !== '' && $order[0]->unify()->unit->toString() === "" ) {
if ( ( $unit !== '' && !$unitStatic ) || ( $unit !== '' && $order[0]->unify()->unit->toString() === "" ) ) {
$unitStatic = $unit;
}

Expand Down

0 comments on commit fff1924

Please sign in to comment.