original_string: protected static function updateHiddenValue($list, $name)
      {
          $sid = $list[$name];
          unset($list[$name]);
  
          preg_match("/" . self::$hiddenSidNamePattern . "/", $name, $match);
          $list[$match[1]] = $sid;
  
          return $list;
      }
code: protected static function updateHiddenValue($list, $name)
      {
          $sid = $list[$name];
          unset($list[$name]);
  
          preg_match("/" . self::$hiddenSidNamePattern . "/", $name, $match);
          $list[$match[1]] = $sid;
  
          return $list;
      }
code_tokens: protected static function updateHiddenValue ( $ list , $ name ) { $ sid = $ list [ $ name ] ; unset ( $ list [ $ name ] ) ; preg_match ( "/" . self :: $ hiddenSidNamePattern . "/" , $ name , $ match ) ; $ list [ $ match [ 1 ] ] = $ sid ; return $ list ; }
docstring: Update hidden value's name by removing leading _
  
  @param $list
  @param $name
  
  @return mixed
docstring_tokens: Update hidden value s name by removing leading _