Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/PrefixMultiplier.php

    r873 r874  
    8484      }
    8585    }
    86     return ($Value);
     86    return $Value;
    8787  }
    8888
     
    9494    $Value = abs($Value);
    9595    if (($Unit == '') and ($PrefixType != 'Time'))
    96       return ($this->TruncateDigits($Value, $Digits));
     96      return $this->TruncateDigits($Value, $Digits);
    9797
    9898    $I = $PrefixMultipliers[$PrefixType]['BaseIndex'];
    99     if ($Value == 0) return ($Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit);
     99    if ($Value == 0) return $Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit;
    100100
    101101    if ($Value > 1)
     
    114114    $Value = $this->TruncateDigits($Value, $Digits);
    115115    if ($Negative) $Value = -$Value;
    116     return ($Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit);
     116    return $Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit;
    117117  }
    118118}
Note: See TracChangeset for help on using the changeset viewer.