Code Duplication    Length = 10-11 lines in 4 locations

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

@@ 22-31 (lines=10) @@
19
    /**
20
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::createGroup
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->clear('objectstategroup', 'all');
28
        $this->cache->getItem('objectstategroup', $group->id)->set($group)->save();
29
30
        return $group;
31
    }
32
33
    /**
34
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::loadGroup
@@ 112-121 (lines=10) @@
109
    /**
110
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::updateGroup
111
     */
112
    public function updateGroup($groupId, InputStruct $input)
113
    {
114
        $this->logger->logCall(__METHOD__, array('groupId' => $groupId, 'struct' => $input));
115
        $return = $this->persistenceHandler->objectStateHandler()->updateGroup($groupId, $input);
116
117
        $this->cache->clear('objectstategroup', 'all');
118
        $this->cache->clear('objectstategroup', $groupId);
119
120
        return $return;
121
    }
122
123
    /**
124
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::deleteGroup
@@ 126-136 (lines=11) @@
123
    /**
124
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::deleteGroup
125
     */
126
    public function deleteGroup($groupId)
127
    {
128
        $this->logger->logCall(__METHOD__, array('groupId' => $groupId));
129
        $return = $this->persistenceHandler->objectStateHandler()->deleteGroup($groupId);
130
131
        $this->cache->clear('objectstategroup', 'all');
132
        $this->cache->clear('objectstategroup', $groupId);
133
        $this->cache->clear('objectstate', 'byGroup', $groupId);
134
135
        return $return;
136
    }
137
138
    /**
139
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::create
@@ 179-188 (lines=10) @@
176
    /**
177
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::update
178
     */
179
    public function update($stateId, InputStruct $input)
180
    {
181
        $this->logger->logCall(__METHOD__, array('stateId' => $stateId, 'struct' => $input));
182
        $return = $this->persistenceHandler->objectStateHandler()->update($stateId, $input);
183
184
        $this->cache->clear('objectstate', $stateId);
185
        $this->cache->clear('objectstate', 'byGroup');
186
187
        return $return;
188
    }
189
190
    /**
191
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::setPriority