original_string: public function percent(&$amount, array &$components, array $price_rule)
      {
          $value = $amount * ($price_rule['value'] / 100);
          $components[$price_rule['price_rule_id']] = array('rule' => $price_rule, 'price' => $value);
          return $amount += $value;
      }
code: public function percent(&$amount, array &$components, array $price_rule)
      {
          $value = $amount * ($price_rule['value'] / 100);
          $components[$price_rule['price_rule_id']] = array('rule' => $price_rule, 'price' => $value);
          return $amount += $value;
      }
code_tokens: public function percent ( & $ amount , array & $ components , array $ price_rule ) { $ value = $ amount * ( $ price_rule [ 'value' ] / 100 ) ; $ components [ $ price_rule [ 'price_rule_id' ] ] = array ( 'rule' => $ price_rule , 'price' => $ value ) ; return $ amount += $ value ; }
docstring: Adds a percent price rule value to the original amount
  @param int $amount
  @param array $components
  @param array $price_rule
  @return int
docstring_tokens: Adds a percent price rule value to the original amount