original_string: public function render(\DOMDocument $domDocument)
      {
          $domElement = $domDocument->createElement("custom_ui");
  
          $settings = $this->getSettings();
          foreach ($settings as $setting => $value) {
              if ($value === null) {
                  continue;
              }
  
              $settingDomElement = $domDocument->createElement($setting);
              $settingDomElement->setAttribute("visible", ($value ? 1 : 0));
              $domElement->appendChild($settingDomElement);
          }
  
          return $domElement;
      }
code: public function render(\DOMDocument $domDocument)
      {
          $domElement = $domDocument->createElement("custom_ui");
  
          $settings = $this->getSettings();
          foreach ($settings as $setting => $value) {
              if ($value === null) {
                  continue;
              }
  
              $settingDomElement = $domDocument->createElement($setting);
              $settingDomElement->setAttribute("visible", ($value ? 1 : 0));
              $domElement->appendChild($settingDomElement);
          }
  
          return $domElement;
      }
code_tokens: public function render ( \ DOMDocument $ domDocument ) { $ domElement = $ domDocument -> createElement ( "custom_ui" ) ; $ settings = $ this -> getSettings ( ) ; foreach ( $ settings as $ setting => $ value ) { if ( $ value === null ) { continue ; } $ settingDomElement = $ domDocument -> createElement ( $ setting ) ; $ settingDomElement -> setAttribute ( "visible" , ( $ value ? 1 : 0 ) ) ; $ domElement -> appendChild ( $ settingDomElement ) ; } return $ domElement ; }
docstring: Render the Custom UI
  
  @param \DOMDocument $domDocument DOMDocument for which the Custom UI should be rendered
  @return \DOMElement
docstring_tokens: Render the Custom UI