original_string: protected function parseStatementPrice($key)
      {
          $results = [];
          if (preg_match('/:' . $key . ':([CD])?.*[A-Z]{3}([\d,\.]+)*/', $this->getCurrentStatementData(), $results)
              && !empty($results[2])
          ) {
              $sanitizedPrice = $this->sanitizePrice($results[2]);
  
              return (!empty($results[1]) && $results[1] === 'D') ? -$sanitizedPrice : $sanitizedPrice;
          }
  
          return '';
      }
code: protected function parseStatementPrice($key)
      {
          $results = [];
          if (preg_match('/:' . $key . ':([CD])?.*[A-Z]{3}([\d,\.]+)*/', $this->getCurrentStatementData(), $results)
              && !empty($results[2])
          ) {
              $sanitizedPrice = $this->sanitizePrice($results[2]);
  
              return (!empty($results[1]) && $results[1] === 'D') ? -$sanitizedPrice : $sanitizedPrice;
          }
  
          return '';
      }
code_tokens: protected function parseStatementPrice ( $ key ) { $ results = [ ] ; if ( preg_match ( '/:' . $ key . ':([CD])?.*[A-Z]{3}([\d,\.]+)*/' , $ this -> getCurrentStatementData ( ) , $ results ) && ! empty ( $ results [ 2 ] ) ) { $ sanitizedPrice = $ this -> sanitizePrice ( $ results [ 2 ] ) ; return ( ! empty ( $ results [ 1 ] ) && $ results [ 1 ] === 'D' ) ? - $ sanitizedPrice : $ sanitizedPrice ; } return '' ; }
docstring: The actual pricing parser for statements.
  
  @param string $key
  
  @return float|string
docstring_tokens: The actual pricing parser for statements .