Code Duplication    Length = 9-9 lines in 3 locations

eZ/Publish/Core/Persistence/Cache/ObjectStateHandler.php 3 locations

@@ 22-30 (lines=9) @@
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function createGroup(InputStruct $input)
23
    {
24
        $this->logger->logCall(__METHOD__, array('struct' => $input));
25
        $group = $this->persistenceHandler->objectStateHandler()->createGroup($input);
26
27
        $this->cache->deleteItem('ez-state-group-all');
28
29
        return $group;
30
    }
31
32
    /**
33
     * {@inheritdoc}
@@ 136-144 (lines=9) @@
133
    /**
134
     * {@inheritdoc}
135
     */
136
    public function deleteGroup($groupId)
137
    {
138
        $this->logger->logCall(__METHOD__, array('groupId' => $groupId));
139
        $return = $this->persistenceHandler->objectStateHandler()->deleteGroup($groupId);
140
141
        $this->cache->invalidateTags(['state-group-' . $groupId]);
142
143
        return $return;
144
    }
145
146
    /**
147
     * {@inheritdoc}
@@ 228-236 (lines=9) @@
225
    /**
226
     * {@inheritdoc}
227
     */
228
    public function delete($stateId)
229
    {
230
        $this->logger->logCall(__METHOD__, array('stateId' => $stateId));
231
        $return = $this->persistenceHandler->objectStateHandler()->delete($stateId);
232
233
        $this->cache->invalidateTags(['state-' . $stateId]);
234
235
        return $return;
236
    }
237
238
    /**
239
     * {@inheritdoc}