Code Duplication    Length = 15-16 lines in 2 locations

web/ckfinder/core/connector/php/vendor/microsoft/azure-storage/src/Common/Internal/Serialization/XmlSerializer.php 1 location

@@ 87-101 (lines=15) @@
84
                foreach ($value as $attributeName => $attributeValue) {
85
                    $xmlw->writeAttribute($attributeName, $attributeValue);
86
                }
87
            } elseif (is_array($value)) {
88
                if (!is_int($key)) {
89
                    if ($key != Resources::EMPTY_STRING) {
90
                        $xmlw->startElement($key);
91
                    } else {
92
                        $xmlw->startElement($defaultTag);
93
                    }
94
                }
95
                
96
                $this->_arr2xml($xmlw, $value);
97
                
98
                if (!is_int($key)) {
99
                    $xmlw->endElement();
100
                }
101
            } else {
102
                $xmlw->writeElement($key, $value);
103
            }
104
        }

web/ckfinder/core/connector/php/vendor/microsoft/azure-storage/src/Common/Internal/Utilities.php 1 location

@@ 302-317 (lines=16) @@
299
                foreach ($value as $attributeName => $attributeValue) {
300
                    $xmlw->writeAttribute($attributeName, $attributeValue);
301
                }
302
            } elseif (is_array($value)) {
303
                if (!is_int($key)) {
304
                    if ($key != Resources::EMPTY_STRING) {
305
                        $xmlw->startElement($key);
306
                    } else {
307
                        $xmlw->startElement($defaultTag);
308
                    }
309
                }
310
311
                self::_arr2xml($xmlw, $value);
312
313
                if (!is_int($key)) {
314
                    $xmlw->endElement();
315
                }
316
                continue;
317
            } else {
318
                $xmlw->writeElement($key, $value);
319
            }
320
        }