Code Duplication    Length = 9-24 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/ObjectStateHandler.php 1 location

@@ 228-236 (lines=9) @@
225
    /**
226
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::setContentState
227
     */
228
    public function setContentState($contentId, $groupId, $stateId)
229
    {
230
        $this->logger->logCall(__METHOD__, array('contentId' => $contentId, 'groupId' => $groupId, 'stateId' => $stateId));
231
        $return = $this->persistenceHandler->objectStateHandler()->setContentState($contentId, $groupId, $stateId);
232
233
        $this->cache->clear('objectstate', 'byContent', $contentId, $groupId);
234
235
        return $return;
236
    }
237
238
    /**
239
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::getContentState

eZ/Publish/Core/Persistence/Cache/UrlAliasHandler.php 1 location

@@ 321-344 (lines=24) @@
318
    /**
319
     * @see \eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler::swap
320
     */
321
    public function locationSwapped($location1ParentId, $location1Id, $location2ParentId, $location2Id)
322
    {
323
        $this->logger->logCall(
324
            __METHOD__,
325
            [
326
                'location1ParentId' => $location1ParentId,
327
                'location1Id' => $location1Id,
328
                'location2ParentId' => $location2ParentId,
329
                'location2Id' => $location2Id,
330
            ]
331
        );
332
333
        $return = $this->persistenceHandler->urlAliasHandler()->locationSwapped(
334
            $location1ParentId,
335
            $location1Id,
336
            $location2ParentId,
337
            $location2Id
338
        );
339
340
        $this->clearLocation($location1Id);
341
        $this->clearLocation($location2Id);
342
343
        return $return;
344
    }
345
}
346