Code Duplication    Length = 10-11 lines in 2 locations

Core/Executor/ObjectStateGroupManager.php 2 locations

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