original_string: public function round($amount, array $currency)
      {
          if (empty($currency['rounding_step'])) {
              return round($amount, $currency['decimals']);
          }
  
          $modifier = 1 / $currency['rounding_step'];
          return round($amount * $modifier) / $modifier;
      }
code: public function round($amount, array $currency)
      {
          if (empty($currency['rounding_step'])) {
              return round($amount, $currency['decimals']);
          }
  
          $modifier = 1 / $currency['rounding_step'];
          return round($amount * $modifier) / $modifier;
      }
code_tokens: public function round ( $ amount , array $ currency ) { if ( empty ( $ currency [ 'rounding_step' ] ) ) { return round ( $ amount , $ currency [ 'decimals' ] ) ; } $ modifier = 1 / $ currency [ 'rounding_step' ] ; return round ( $ amount * $ modifier ) / $ modifier ; }
docstring: Rounds an amount
  @param integer $amount
  @param array $currency
  @return integer
docstring_tokens: Rounds an amount