Code Duplication    Length = 6-6 lines in 5 locations

src/Parser/XmlReaderParser.php 5 locations

@@ 153-158 (lines=6) @@
150
                        case 'biginteger':
151
                        case 'i8':
152
                        case 'dateTime.iso8601':
153
                        case 'dateTime':
154
                            // Next: value, $tagName, #text
155
                            $nextExpectedElements = 0b000000000000000000100010000 | ${'flag'.$tagName};
156
                            $type = $tagName;
157
                            $aggregates[$depth + 1] = '';
158
                            break;
159
160
                        case 'nil':
161
                            // Next: value, $tagName
@@ 160-165 (lines=6) @@
157
                            $aggregates[$depth + 1] = '';
158
                            break;
159
160
                        case 'nil':
161
                            // Next: value, $tagName
162
                            $nextExpectedElements = 0b001000000000000000000010000 | ${'flag'.$tagName};
163
                            $type = $tagName;
164
                            $aggregates[$depth + 1] = null;
165
                            break;
166
167
                        case 'int':
168
                        case 'i4':
@@ 170-175 (lines=6) @@
167
                        case 'int':
168
                        case 'i4':
169
                        case 'i2':
170
                        case 'i1':
171
                            // Next: value, #text, $tagName
172
                            $nextExpectedElements = 0b000000000000000000100010000 | ${'flag'.$tagName};
173
                            $type = $tagName;
174
                            $aggregates[$depth + 1] = 0;
175
                            break;
176
177
                        case 'boolean':
178
                            // Next: value, #text, $tagName
@@ 177-182 (lines=6) @@
174
                            $aggregates[$depth + 1] = 0;
175
                            break;
176
177
                        case 'boolean':
178
                            // Next: value, #text, $tagName
179
                            $nextExpectedElements = 0b000000000000000000100010000 | ${'flag'.$tagName};
180
                            $type = 'boolean';
181
                            $aggregates[$depth + 1] = false;
182
                            break;
183
184
                        case 'double':
185
                        case 'float':
@@ 186-191 (lines=6) @@
183
184
                        case 'double':
185
                        case 'float':
186
                        case 'bigdecimal':
187
                            // Next: value, #text, $tagName
188
                            $nextExpectedElements = 0b000000000000000000100010000 | ${'flag'.$tagName};
189
                            $type = $tagName;
190
                            $aggregates[$depth + 1] = 0.0;
191
                            break;
192
193
                        case 'dom':
194
                            $type = 'dom';