Code Duplication    Length = 11-11 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/UserHandler.php 2 locations

@@ 325-335 (lines=11) @@
322
    /**
323
     * {@inheritdoc}
324
     */
325
    public function assignRole($contentId, $roleId, array $limitation = null)
326
    {
327
        $this->logger->logCall(__METHOD__, array('group' => $contentId, 'role' => $roleId, 'limitation' => $limitation));
328
        $return = $this->persistenceHandler->userHandler()->assignRole($contentId, $roleId, $limitation);
329
330
        $this->cache->clear('user', 'role', $roleId);
331
        $this->cache->clear('user', 'role', 'assignments', 'byGroup', $contentId);
332
        $this->cache->clear('user', 'role', 'assignments', 'byGroup', 'inherited');
333
334
        return $return;
335
    }
336
337
    /**
338
     * {@inheritdoc}
@@ 340-350 (lines=11) @@
337
    /**
338
     * {@inheritdoc}
339
     */
340
    public function unassignRole($contentId, $roleId)
341
    {
342
        $this->logger->logCall(__METHOD__, array('group' => $contentId, 'role' => $roleId));
343
        $return = $this->persistenceHandler->userHandler()->unassignRole($contentId, $roleId);
344
345
        $this->cache->clear('user', 'role', $roleId);
346
        $this->cache->clear('user', 'role', 'assignments', 'byGroup', $contentId);
347
        $this->cache->clear('user', 'role', 'assignments', 'byGroup', 'inherited');
348
349
        return $return;
350
    }
351
352
    /**
353
     * {@inheritdoc}