original_string: public static function transformUrl($url, $id, $key = '')
      {
          return str_replace(!empty($key) ? $key : ':id', $id, $url);
      }
code: public static function transformUrl($url, $id, $key = '')
      {
          return str_replace(!empty($key) ? $key : ':id', $id, $url);
      }
code_tokens: public static function transformUrl ( $ url , $ id , $ key = '' ) { return str_replace ( ! empty ( $ key ) ? $ key : ':id' , $ id , $ url ) ; }
docstring: Transform url by replacing dummy data.
  
  @param $url
  @param $id
  @param string $key
  
  @return mixed
docstring_tokens: Transform url by replacing dummy data .