private function setProjectPhpCsProfile(SimpleXMLElement $xml)
    {
        $node = $this->xmlAccessor->getDescendant(
            $xml,
            [
                ['profile'],
                ['inspection_tool', ['class' => 'PhpCSValidationInspection']],
                ['option', ['name' => 'CUSTOM_RULESET_PATH']]
            ]
        );
        $this->xmlAccessor->setAttributes(
            $node,
            ['value' => '$PROJECT_DIR$/' . self::PROJECT_PHPCS]
        );
    }
private function setProjectPhpCsProfile(SimpleXMLElement $xml)
    {
        $node = $this->xmlAccessor->getDescendant(
            $xml,
            [
                ['profile'],
                ['inspection_tool', ['class' => 'PhpCSValidationInspection']],
                ['option', ['name' => 'CUSTOM_RULESET_PATH']]
            ]
        );
        $this->xmlAccessor->setAttributes(
            $node,
            ['value' => '$PROJECT_DIR$/' . self::PROJECT_PHPCS]
        );
    }
private function setProjectPhpCsProfile ( SimpleXMLElement $ xml ) { $ node = $ this -> xmlAccessor -> getDescendant ( $ xml , [ [ 'profile' ] , [ 'inspection_tool' , [ 'class' => 'PhpCSValidationInspection' ] ] , [ 'option' , [ 'name' => 'CUSTOM_RULESET_PATH' ] ] ] ) ; $ this -> xmlAccessor -> setAttributes ( $ node , [ 'value' => '$PROJECT_DIR$/' . self :: PROJECT_PHPCS ] ) ; }
Set the PhpCs profile in the XML.

@param SimpleXMLElement $xml

@return void
Set the PhpCs profile in the XML .