includes/phing/src/Tasks/PhpCodeSnifferConfigurationTask.php
protected function appendArgument(
        \DOMDocument $document,
        \DOMElement $element,
        $value,
        $name = ''
    ) {
        $argument = $document->createElement('arg');
        if (!empty($name)) {
            $argument->setAttribute('name', $name);
        }

        if (!empty($value)) {
            $argument->setAttribute('value', $value);
        }

        $element->appendChild($argument);

    }
protected function appendArgument(
        \DOMDocument $document,
        \DOMElement $element,
        $value,
        $name = ''
    ) {
        $argument = $document->createElement('arg');
        if (!empty($name)) {
            $argument->setAttribute('name', $name);
        }

        if (!empty($value)) {
            $argument->setAttribute('value', $value);
        }

        $element->appendChild($argument);

    }
protected function appendArgument ( \ DOMDocument $ document , \ DOMElement $ element , $ value , $ name = '' ) { $ argument = $ document -> createElement ( 'arg' ) ; if ( ! empty ( $ name ) ) { $ argument -> setAttribute ( 'name' , $ name ) ; } if ( ! empty ( $ value ) ) { $ argument -> setAttribute ( 'value' , $ value ) ; } $ element -> appendChild ( $ argument ) ; }
Appends an argument element to the XML document.

This will append an XML element in the following format:
<arg name="name" value="value" />

@param \DOMDocument $document The document that will contain the argument
to append.
@param \DOMElement  $element  The parent element of the argument
to append.
@param string       $value    The argument value.
@param string       $name     Optional argument name.

@return void
Appends an argument element to the XML document .