Code Duplication    Length = 10-11 lines in 2 locations

Core/Executor/ObjectStateGroupManager.php 2 locations

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