Code Duplication    Length = 14-14 lines in 2 locations

Core/Executor/ObjectStateGroupManager.php 1 location

@@ 122-135 (lines=14) @@
119
    /**
120
     * Handles the delete step of object state group migrations
121
     */
122
    protected function delete($step)
123
    {
124
        $groupsCollection = $this->matchObjectStateGroups('delete', $step);
125
126
        $this->setReferences($groupsCollection, $step);
127
128
        $objectStateService = $this->repository->getObjectStateService();
129
130
        foreach ($groupsCollection as $objectStateGroup) {
131
            $objectStateService->deleteObjectStateGroup($objectStateGroup);
132
        }
133
134
        return $groupsCollection;
135
    }
136
137
    /**
138
     * @param string $action

Core/Executor/ObjectStateManager.php 1 location

@@ 140-153 (lines=14) @@
137
    /**
138
     * Handles the deletion step of object state migrations.
139
     */
140
    protected function delete($step)
141
    {
142
        $stateCollection = $this->matchObjectStates('delete', $step);
143
144
        $this->setReferences($stateCollection, $step);
145
146
        $objectStateService = $this->repository->getObjectStateService();
147
148
        foreach ($stateCollection as $state) {
149
            $objectStateService->deleteObjectState($state);
150
        }
151
152
        return $stateCollection;
153
    }
154
155
    /**
156
     * @param string $action