original_string: public function addToContainerWidget($containerId, WidgetConfig $widget)
      {
          if (isset($this->container[$containerId])) {
              $this->container[$containerId]->addWidgetConfig($widget);
          } else {
              if (!isset($this->containerWidgets[$containerId])) {
                  $this->containerWidgets[$containerId] = array();
              }
  
              $this->containerWidgets[$containerId][] = $widget;
          }
      }
code: public function addToContainerWidget($containerId, WidgetConfig $widget)
      {
          if (isset($this->container[$containerId])) {
              $this->container[$containerId]->addWidgetConfig($widget);
          } else {
              if (!isset($this->containerWidgets[$containerId])) {
                  $this->containerWidgets[$containerId] = array();
              }
  
              $this->containerWidgets[$containerId][] = $widget;
          }
      }
code_tokens: public function addToContainerWidget ( $ containerId , WidgetConfig $ widget ) { if ( isset ( $ this -> container [ $ containerId ] ) ) { $ this -> container [ $ containerId ] -> addWidgetConfig ( $ widget ) ; } else { if ( ! isset ( $ this -> containerWidgets [ $ containerId ] ) ) { $ this -> containerWidgets [ $ containerId ] = array ( ) ; } $ this -> containerWidgets [ $ containerId ] [ ] = $ widget ; } }
docstring: Add a widget to a widget container. It doesn't matter whether the container was added to this list already
  or whether the container is added later. As long as a container having the same containerId is added at
  some point the widget will be added to that container. If no container having this id is added the widget
  will not be recognized.
  
  @param string $containerId  eg 'Products' or 'Contents'. See {@link WidgetContainerConfig::setId}
  @param WidgetConfig $widget
docstring_tokens: Add a widget to a widget container . It doesn t matter whether the container was added to this list already or whether the container is added later . As long as a container having the same containerId is added at some point the widget will be added to that container . If no container having this id is added the widget will not be recognized .