original_string: public function get_scale_configuration($scaleid, $config) {
          $asarray = json_decode($config);
          $asarray[0]->scaleid = $scaleid;
          return json_encode($asarray);
      }
code: public function get_scale_configuration($scaleid, $config) {
          $asarray = json_decode($config);
          $asarray[0]->scaleid = $scaleid;
          return json_encode($asarray);
      }
code_tokens: public function get_scale_configuration ( $ scaleid , $ config ) { $ asarray = json_decode ( $ config ) ; $ asarray [ 0 ] -> scaleid = $ scaleid ; return json_encode ( $ asarray ) ; }
docstring: Recreate the scale config to point to a new scaleid.
  @param int $scaleid
  @param string $config json encoded scale data.
docstring_tokens: Recreate the scale config to point to a new scaleid .