Code Duplication    Length = 7-10 lines in 3 locations

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

@@ 214-220 (lines=7) @@
211
    /**
212
     * {@inheritdoc}
213
     */
214
    public function updateRole(RoleUpdateStruct $struct)
215
    {
216
        $this->logger->logCall(__METHOD__, array('struct' => $struct));
217
        $this->persistenceHandler->userHandler()->updateRole($struct);
218
219
        $this->cache->clear('user', 'role', $struct->id);
220
    }
221
222
    /**
223
     * {@inheritdoc}
@@ 304-310 (lines=7) @@
301
    /**
302
     * {@inheritdoc}
303
     */
304
    public function deletePolicy($policyId)
305
    {
306
        $this->logger->logCall(__METHOD__, array('policy' => $policyId));
307
        $this->persistenceHandler->userHandler()->deletePolicy($policyId);
308
309
        $this->cache->clear('user', 'role');
310
    }
311
312
    /**
313
     * {@inheritdoc}
@@ 355-364 (lines=10) @@
352
    /**
353
     * {@inheritdoc}
354
     */
355
    public function removeRoleAssignment($roleAssignmentId)
356
    {
357
        $this->logger->logCall(__METHOD__, array('assignment' => $roleAssignmentId));
358
        $return = $this->persistenceHandler->userHandler()->removeRoleAssignment($roleAssignmentId);
359
360
        // We don't know the contentId, so clear all assignment cache.
361
        $this->cache->clear('user', 'role', 'assignments'); //TIMBER!
362
363
        return $return;
364
    }
365
}
366