Code Duplication    Length = 9-24 lines in 2 locations

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

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

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

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