original_string: private function buildRequestRate($array)
      {
          $result = [];
          foreach ($array as $pair) {
              $string = self::DIRECTIVE_REQUEST_RATE . ':' . $pair['ratio'];
              if (isset($pair['from']) &&
                  isset($pair['to'])
              ) {
                  $string .= ' ' . $pair['from'] . '-' . $pair['to'];
              }
              $result[] = $string;
          }
          return $result;
      }
code: private function buildRequestRate($array)
      {
          $result = [];
          foreach ($array as $pair) {
              $string = self::DIRECTIVE_REQUEST_RATE . ':' . $pair['ratio'];
              if (isset($pair['from']) &&
                  isset($pair['to'])
              ) {
                  $string .= ' ' . $pair['from'] . '-' . $pair['to'];
              }
              $result[] = $string;
          }
          return $result;
      }
code_tokens: private function buildRequestRate ( $ array ) { $ result = [ ] ; foreach ( $ array as $ pair ) { $ string = self :: DIRECTIVE_REQUEST_RATE . ':' . $ pair [ 'ratio' ] ; if ( isset ( $ pair [ 'from' ] ) && isset ( $ pair [ 'to' ] ) ) { $ string .= ' ' . $ pair [ 'from' ] . '-' . $ pair [ 'to' ] ; } $ result [ ] = $ string ; } return $ result ; }
docstring: Request-rate
  
  @param array $array
  @return string[]
docstring_tokens: Request - rate