Code Duplication    Length = 9-24 lines in 2 locations

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

@@ 200-208 (lines=9) @@
197
    /**
198
     * {@inheritdoc}
199
     */
200
    public function setContentState($contentId, $groupId, $stateId)
201
    {
202
        $this->logger->logCall(__METHOD__, array('contentId' => $contentId, 'groupId' => $groupId, 'stateId' => $stateId));
203
        $return = $this->persistenceHandler->objectStateHandler()->setContentState($contentId, $groupId, $stateId);
204
205
        $this->cache->clear('objectstate', 'byContent', $contentId, $groupId);
206
207
        return $return;
208
    }
209
210
    /**
211
     * {@inheritdoc}

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

@@ 350-373 (lines=24) @@
347
    /**
348
     * {@inheritdoc}
349
     */
350
    public function locationSwapped($location1Id, $location1ParentId, $location2Id, $location2ParentId)
351
    {
352
        $this->logger->logCall(
353
            __METHOD__,
354
            [
355
                'location1Id' => $location1Id,
356
                'location1ParentId' => $location1ParentId,
357
                'location2Id' => $location2Id,
358
                'location2ParentId' => $location2ParentId,
359
            ]
360
        );
361
362
        $return = $this->persistenceHandler->urlAliasHandler()->locationSwapped(
363
            $location1Id,
364
            $location1ParentId,
365
            $location2Id,
366
            $location2ParentId
367
        );
368
369
        $this->clearLocation($location1Id);
370
        $this->clearLocation($location2Id);
371
372
        return $return;
373
    }
374
375
    /**
376
     * {@inheritdoc}