Code Duplication    Length = 9-11 lines in 2 locations

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

@@ 322-330 (lines=9) @@
319
    /**
320
     * {@inheritdoc}
321
     */
322
    public function createDraft($modifierId, $typeId)
323
    {
324
        $this->logger->logCall(__METHOD__, array('modifier' => $modifierId, 'type' => $typeId));
325
        $draft = $this->persistenceHandler->contentTypeHandler()->createDraft($modifierId, $typeId);
326
327
        $this->cache->deleteItems(['ez-content-type-' . $typeId . '-' . Type::STATUS_DRAFT]);
328
329
        return $draft;
330
    }
331
332
    /**
333
     * {@inheritdoc}

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

@@ 410-420 (lines=11) @@
407
    /**
408
     * {@inheritdoc}
409
     */
410
    public function deleteRole($roleId, $status = Role::STATUS_DEFINED)
411
    {
412
        $this->logger->logCall(__METHOD__, array('role' => $roleId));
413
        $return = $this->persistenceHandler->userHandler()->deleteRole($roleId, $status);
414
415
        if ($status === Role::STATUS_DEFINED) {
416
            $this->cache->invalidateTags(['role-' . $roleId, 'role-assignment-role-list-' . $roleId]);
417
        }
418
419
        return $return;
420
    }
421
422
    /**
423
     * {@inheritdoc}