original_string: public static function getWidgetUniqueId($controllerName, $controllerAction, $customParameters = array())
      {
          $widgetUniqueId = 'widget' . $controllerName . $controllerAction;
  
          foreach ($customParameters as $name => $value) {
              if (is_array($value)) {
                  // use 'Array' for backward compatibility;
                  // could we switch to using $value[0]?
                  $value = 'Array';
              }
              $value = urlencode($value);
              $value = str_replace('%', '', $value);
              $widgetUniqueId .= $name . $value;
          }
  
          return $widgetUniqueId;
      }
code: public static function getWidgetUniqueId($controllerName, $controllerAction, $customParameters = array())
      {
          $widgetUniqueId = 'widget' . $controllerName . $controllerAction;
  
          foreach ($customParameters as $name => $value) {
              if (is_array($value)) {
                  // use 'Array' for backward compatibility;
                  // could we switch to using $value[0]?
                  $value = 'Array';
              }
              $value = urlencode($value);
              $value = str_replace('%', '', $value);
              $widgetUniqueId .= $name . $value;
          }
  
          return $widgetUniqueId;
      }
code_tokens: public static function getWidgetUniqueId ( $ controllerName , $ controllerAction , $ customParameters = array ( ) ) { $ widgetUniqueId = 'widget' . $ controllerName . $ controllerAction ; foreach ( $ customParameters as $ name => $ value ) { if ( is_array ( $ value ) ) { // use 'Array' for backward compatibility; // could we switch to using $value[0]? $ value = 'Array' ; } $ value = urlencode ( $ value ) ; $ value = str_replace ( '%' , '' , $ value ) ; $ widgetUniqueId .= $ name . $ value ; } return $ widgetUniqueId ; }
docstring: CAUTION! If you ever change this method, existing updates will fail as they currently use that method!
  If you change the output the uniqueId for existing widgets would not be found anymore
  
  Returns the unique id of an widget with the given parameters
  
  @param $controllerName
  @param $controllerAction
  @param array $customParameters
  @return string
docstring_tokens: CAUTION! If you ever change this method existing updates will fail as they currently use that method! If you change the output the uniqueId for existing widgets would not be found anymore