Code Duplication    Length = 3-3 lines in 2 locations

src/SAML2/Utils.php 2 locations

@@ 307-309 (lines=3) @@
304
        if (array_key_exists('NameQualifier', $nameId) && $nameId['NameQualifier'] !== null) {
305
            $xml->setAttribute('NameQualifier', $nameId['NameQualifier']);
306
        }
307
        if (array_key_exists('SPNameQualifier', $nameId) && $nameId['SPNameQualifier'] !== null) {
308
            $xml->setAttribute('SPNameQualifier', $nameId['SPNameQualifier']);
309
        }
310
        if (array_key_exists('Format', $nameId) && $nameId['Format'] !== null) {
311
            $xml->setAttribute('Format', $nameId['Format']);
312
        }
@@ 310-312 (lines=3) @@
307
        if (array_key_exists('SPNameQualifier', $nameId) && $nameId['SPNameQualifier'] !== null) {
308
            $xml->setAttribute('SPNameQualifier', $nameId['SPNameQualifier']);
309
        }
310
        if (array_key_exists('Format', $nameId) && $nameId['Format'] !== null) {
311
            $xml->setAttribute('Format', $nameId['Format']);
312
        }
313
    }
314
315
    /**