Code Duplication    Length = 9-12 lines in 2 locations

src/LightSaml/Model/Assertion/SubjectConfirmation.php 1 location

@@ 136-147 (lines=12) @@
133
     * @param \DOMNode               $node
134
     * @param DeserializationContext $context
135
     */
136
    public function deserialize(\DOMNode $node, DeserializationContext $context)
137
    {
138
        $this->checkXmlNodeName($node, 'SubjectConfirmation', SamlConstants::NS_ASSERTION);
139
140
        $this->attributesFromXml($node, array('Method'));
141
142
        $this->singleElementsFromXml($node, $context, array(
143
            'NameID' => array('saml', 'LightSaml\Model\Assertion\NameID'),
144
            'EncryptedID' => array('saml', 'LightSaml\Model\Assertion\EncryptedID'),
145
            'SubjectConfirmationData' => array('saml', 'LightSaml\Model\Assertion\SubjectConfirmationData'),
146
        ));
147
    }
148
}
149

src/LightSaml/Model/Protocol/SamlMessage.php 1 location

@@ 311-319 (lines=9) @@
308
     * @param \DOMNode               $node
309
     * @param DeserializationContext $context
310
     */
311
    public function deserialize(\DOMNode $node, DeserializationContext $context)
312
    {
313
        $this->attributesFromXml($node, array('ID', 'Version', 'IssueInstant', 'Destination', 'Consent'));
314
315
        $this->singleElementsFromXml($node, $context, array(
316
            'Issuer' => array('saml', 'LightSaml\Model\Assertion\Issuer'),
317
            'Signature' => array('ds', 'LightSaml\Model\XmlDSig\SignatureXmlReader'),
318
        ));
319
    }
320
}
321