Code Duplication    Length = 10-11 lines in 2 locations

Core/Executor/ObjectStateGroupManager.php 2 locations

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