Code Duplication    Length = 9-11 lines in 2 locations

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

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

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

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