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

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