Code Duplication    Length = 9-24 lines in 2 locations

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

@@ 218-226 (lines=9) @@
215
    /**
216
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::setContentState
217
     */
218
    public function setContentState($contentId, $groupId, $stateId)
219
    {
220
        $this->logger->logCall(__METHOD__, array('contentId' => $contentId, 'groupId' => $groupId, 'stateId' => $stateId));
221
        $return = $this->persistenceHandler->objectStateHandler()->setContentState($contentId, $groupId, $stateId);
222
223
        $this->cache->clear('objectstate', 'byContent', $contentId, $groupId);
224
225
        return $return;
226
    }
227
228
    /**
229
     * @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::getContentState

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

@@ 333-356 (lines=24) @@
330
    /**
331
     * @see \eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler::swap
332
     */
333
    public function locationSwapped($location1Id, $location1ParentId, $location2Id, $location2ParentId)
334
    {
335
        $this->logger->logCall(
336
            __METHOD__,
337
            [
338
                'location1Id' => $location1Id,
339
                'location1ParentId' => $location1ParentId,
340
                'location2Id' => $location2Id,
341
                'location2ParentId' => $location2ParentId,
342
            ]
343
        );
344
345
        $return = $this->persistenceHandler->urlAliasHandler()->locationSwapped(
346
            $location1Id,
347
            $location1ParentId,
348
            $location2Id,
349
            $location2ParentId
350
        );
351
352
        $this->clearLocation($location1Id);
353
        $this->clearLocation($location2Id);
354
355
        return $return;
356
    }
357
}
358