original_string: public function update(ScriptTag $scriptTag)
      {
          $data = $scriptTag->exportData();
          $response = $this->request(
              '/admin/script_tags/'.$scriptTag->id.'.json', 'PUT', array(
              'script_tag' => $data
              )
          );
          $scriptTag->setData($response['script_tag']);
      }
code: public function update(ScriptTag $scriptTag)
      {
          $data = $scriptTag->exportData();
          $response = $this->request(
              '/admin/script_tags/'.$scriptTag->id.'.json', 'PUT', array(
              'script_tag' => $data
              )
          );
          $scriptTag->setData($response['script_tag']);
      }
code_tokens: public function update ( ScriptTag $ scriptTag ) { $ data = $ scriptTag -> exportData ( ) ; $ response = $ this -> request ( '/admin/script_tags/' . $ scriptTag -> id . '.json' , 'PUT' , array ( 'script_tag' => $ data ) ) ; $ scriptTag -> setData ( $ response [ 'script_tag' ] ) ; }
docstring: Update a script tag
  
  @link   https://help.shopify.com/api/reference/scripttag#update
  @param  ScriptTag $scriptTag
  @return void
docstring_tokens: Update a script tag