original_string: public function updateStats($key, $delta = 1, $sampleRate = 1, $metric = 'c')
      {
          if (!is_array($key)) {
              $key = array($key);
          }
          $data = array();
          foreach ($key as $stat) {
              $data[$stat] = "$delta|$metric";
          }
          $this->send($data, $sampleRate);
      }
code: public function updateStats($key, $delta = 1, $sampleRate = 1, $metric = 'c')
      {
          if (!is_array($key)) {
              $key = array($key);
          }
          $data = array();
          foreach ($key as $stat) {
              $data[$stat] = "$delta|$metric";
          }
          $this->send($data, $sampleRate);
      }
code_tokens: public function updateStats ( $ key , $ delta = 1 , $ sampleRate = 1 , $ metric = 'c' ) { if ( ! is_array ( $ key ) ) { $ key = array ( $ key ) ; } $ data = array ( ) ; foreach ( $ key as $ stat ) { $ data [ $ stat ] = "$delta|$metric" ; } $ this -> send ( $ data , $ sampleRate ) ; }
docstring: Updates one or more stats.
  
  @param string|array $key The metric(s) to update. Should be either a string or array of metrics.
  @param int $delta The amount to increment/decrement each metric by.
  @param float|int $sampleRate the rate (0-1) for sampling.
  @param string $metric The metric type ("c" for count, "ms" for timing, "g" for gauge, "s" for set)
  @return boolean
docstring_tokens: Updates one or more stats .