Code Duplication    Length = 10-11 lines in 2 locations

Core/Executor/ObjectStateGroupManager.php 2 locations

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