Code Duplication    Length = 14-14 lines in 2 locations

Core/Executor/ObjectStateGroupManager.php 1 location

@@ 112-125 (lines=14) @@
109
    /**
110
     * Handles the delete step of object state group migrations
111
     */
112
    protected function delete($step)
113
    {
114
        $groupsCollection = $this->matchObjectStateGroups('delete', $step);
115
116
        $this->setReferences($groupsCollection, $step);
117
118
        $objectStateService = $this->repository->getObjectStateService();
119
120
        foreach ($groupsCollection as $objectStateGroup) {
121
            $objectStateService->deleteObjectStateGroup($objectStateGroup);
122
        }
123
124
        return $groupsCollection;
125
    }
126
127
    /**
128
     * @param string $action

Core/Executor/ObjectStateManager.php 1 location

@@ 130-143 (lines=14) @@
127
    /**
128
     * Handles the deletion step of object state migrations.
129
     */
130
    protected function delete($step)
131
    {
132
        $stateCollection = $this->matchObjectStates('delete', $step);
133
134
        $this->setReferences($stateCollection, $step);
135
136
        $objectStateService = $this->repository->getObjectStateService();
137
138
        foreach ($stateCollection as $state) {
139
            $objectStateService->deleteObjectState($state);
140
        }
141
142
        return $stateCollection;
143
    }
144
145
    /**
146
     * @param string $action