Code Duplication    Length = 10-11 lines in 2 locations

Core/Executor/ObjectStateGroupManager.php 2 locations

@@ 218-228 (lines=11) @@
215
                        )
216
                    );
217
                    break;
218
                case 'update':
219
                    $groupData = array_merge(
220
                        $groupData,
221
                        array(
222
                            'match' => array(
223
                                ObjectStateGroupMatcher::MATCH_OBJECTSTATEGROUP_IDENTIFIER => $objectStateGroup->identifier
224
                            ),
225
                            'identifier' => $objectStateGroup->identifier,
226
                        )
227
                    );
228
                    break;
229
                case 'delete':
230
                    $groupData = array_merge(
231
                        $groupData,
@@ 229-238 (lines=10) @@
226
                        )
227
                    );
228
                    break;
229
                case 'delete':
230
                    $groupData = array_merge(
231
                        $groupData,
232
                        array(
233
                            'match' => array(
234
                                ObjectStateGroupMatcher::MATCH_OBJECTSTATEGROUP_IDENTIFIER => $objectStateGroup->identifier
235
                            )
236
                        )
237
                    );
238
                    break;
239
                default:
240
                    throw new \Exception("Executor 'object_state_group' doesn't support mode '$mode'");
241
            }