Code Duplication    Length = 7-7 lines in 4 locations

src/phpsms/agents/Aliyun_MNSAgent.php 4 locations

@@ 214-220 (lines=7) @@
211
                {
212
                    case \XMLReader::ELEMENT:
213
                        switch ($xmlReader->name) {
214
                            case Constants::MESSAGE_ID:
215
                                $xmlReader->read();
216
                                if ($xmlReader->nodeType == \XMLReader::TEXT)
217
                                {
218
                                    $messageId = $xmlReader->value;
219
                                }
220
                                break;
221
                            case Constants::MESSAGE_BODY_MD5:
222
                                $xmlReader->read();
223
                                if ($xmlReader->nodeType == \XMLReader::TEXT)
@@ 221-227 (lines=7) @@
218
                                    $messageId = $xmlReader->value;
219
                                }
220
                                break;
221
                            case Constants::MESSAGE_BODY_MD5:
222
                                $xmlReader->read();
223
                                if ($xmlReader->nodeType == \XMLReader::TEXT)
224
                                {
225
                                    $messageBodyMD5 = $xmlReader->value;
226
                                }
227
                                break;
228
                            case Constants::ERROR_CODE:
229
                                $xmlReader->read();
230
                                if ($xmlReader->nodeType == \XMLReader::TEXT)
@@ 228-234 (lines=7) @@
225
                                    $messageBodyMD5 = $xmlReader->value;
226
                                }
227
                                break;
228
                            case Constants::ERROR_CODE:
229
                                $xmlReader->read();
230
                                if ($xmlReader->nodeType == \XMLReader::TEXT)
231
                                {
232
                                    $errorCode = $xmlReader->value;
233
                                }
234
                                break;
235
                            case Constants::ERROR_MESSAGE:
236
                                $xmlReader->read();
237
                                if ($xmlReader->nodeType == \XMLReader::TEXT)
@@ 235-241 (lines=7) @@
232
                                    $errorCode = $xmlReader->value;
233
                                }
234
                                break;
235
                            case Constants::ERROR_MESSAGE:
236
                                $xmlReader->read();
237
                                if ($xmlReader->nodeType == \XMLReader::TEXT)
238
                                {
239
                                    $errorMessage = $xmlReader->value;
240
                                }
241
                                break;
242
                        }
243
                        break;
244
                    case \XMLReader::END_ELEMENT: