open-orchestra/open-orchestra-cms-bundle

View on GitHub
Backoffice/Tests/Security/Authorization/Voter/PlatformAdministrationVoterTest.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method getBadRoles has 68 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getBadRoles()
    {
        $keyword = $this->createPhakeKeyword();

        return array(

Method getNotSupportedSubjects has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getNotSupportedSubjects()
    {
        $node = $this->createPhakeNode();
        $content = $this->createPhakeContent();
        $trashItem = $this->createPhakeTrashItem();

The class PlatformAdministrationVoterTest has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13.
Open

class PlatformAdministrationVoterTest extends AbstractVoterTest
{
    /**
     * Set up the test
     */

CouplingBetweenObjects

Since: 1.1.0

A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

Example

class Foo {
    /**
     * @var \foo\bar\X
     */
    private $x = null;

    /**
     * @var \foo\bar\Y
     */
    private $y = null;

    /**
     * @var \foo\bar\Z
     */
    private $z = null;

    public function setFoo(\Foo $foo) {}
    public function setBar(\Bar $bar) {}
    public function setBaz(\Baz $baz) {}

    /**
     * @return \SplObjectStorage
     * @throws \OutOfRangeException
     * @throws \InvalidArgumentException
     * @throws \ErrorException
     */
    public function process(\Iterator $it) {}

    // ...
}

Source https://phpmd.org/rules/design.html#couplingbetweenobjects

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Content'                 => array($content,                              ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Site'                    => array($site,                                 ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Log'                     => array($log,                                  ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad action : Trash Restore' => array($keyword, ContributionActionInterface::TRASH_RESTORE, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\RedirectionInterface
Open

            'Bad subject : Entity type Redirection' => array(RedirectionInterface::ENTITY_TYPE,     ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Entity type Group'       => array(GroupInterface::ENTITY_TYPE,           ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\SiteInterface
Open

            'Bad subject : Entity type Site'        => array(SiteInterface::ENTITY_TYPE,            ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) : Node contributor'                                => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Add) : Node super editor'                                => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) : Node super suprpessor'                           => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Content type'            => array($contentType,                          ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Entity type User'        => array(UserInterface::ENTITY_TYPE,            ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Add) : Trash Restorer'                                   => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Entity type Log'         => array(LogInterface::ENTITY_TYPE,             ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Add) : Trash Suppressor'                                 => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Add) : Content super suppressor'                         => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) : Content super editor'                            => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Redirection'             => array($redirection,                          ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\WorkflowProfileInterface
Open

            'Bad subject : Entity type Workflow'    => array(WorkflowProfileInterface::ENTITY_TYPE, ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Group'                   => array($group,                                ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Add) : Node super suppressor'                            => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Add) : Content contributor'                              => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Entity type ContentType' => array(ContentTypeInterface::ENTITY_TYPE,     ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Entity type Site'        => array(SiteInterface::ENTITY_TYPE,            ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Add) : Site Admin'                                       => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) : None'                                            => array($keyword,                      ContributionActionInterface::EDIT,   array(),                                                   null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Workflow profile'        => array($profile,                              ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad action : Trash Purge'   => array($keyword, ContributionActionInterface::TRASH_PURGE,   array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Add) : Node contributor'                                 => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) : Content contributor'                             => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Trash Item'              => array($trashItem,                            ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : User'                    => array($user,                                 ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) : Content super suppressor'                        => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Node'                    => array($node,                                 ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Status'                  => array($status,                               ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open

            'Bad subject : Entity type ContentType' => array(ContentTypeInterface::ENTITY_TYPE,     ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Entity type Workflow'    => array(WorkflowProfileInterface::ENTITY_TYPE, ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\StatusInterface
Open

            'Bad subject : Entity type Status'      => array(StatusInterface::ENTITY_TYPE,          ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\UserBundle\Model\UserInterface
Open

            'Bad subject : Entity type User'        => array(UserInterface::ENTITY_TYPE,            ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Add) : None'                                             => array($keyword,                      ContributionActionInterface::CREATE, array(),                                                   null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Entity type Status'      => array(StatusInterface::ENTITY_TYPE,          ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_ABSTAIN from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad subject : Entity type Redirection' => array(RedirectionInterface::ENTITY_TYPE,     ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Add) : Content super editor'                             => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) : Node super editor'                               => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) : Site Admin'                                      => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Delete) keyword entity type: Content contributor'        => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) keyword entity type: Content super editor'       => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) keyword entity type: Content super suppressor'     => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) keyword entity type: Trash Restorer'               => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Edit) keyword entity type: Trash Suppressor'             => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) api client entity type: Content super suppressor'=> array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) api client entity type: Content super editor'      => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Add api entity client'    => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::CREATE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) : None'                                          => array($keyword,                      ContributionActionInterface::DELETE, array(),                                                   null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) : Content contributor'                           => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) : Trash Restorer'                                => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Delete) api client entity type: Site Admin'              => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Edit entity keyword'      => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::EDIT,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Ok : Delete api entity client' => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) keyword entity type: Trash Suppressor'           => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Edit) keyword entity type: Content super suppressor'     => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) keyword entity type: Trash Suppressor'             => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Delete) api client entity type: Content super suppressor'=> array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) api client entity type: Content super suppressor'  => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Edit) api client entity type: Content super suppressor'  => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Add keyword'              => array($keyword,                        ContributionActionInterface::CREATE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) : Node contributor'                              => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Delete) keyword entity type: Node super suppressor'      => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) keyword entity type: Content contributor'        => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) keyword entity type: Site Admin'                 => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) keyword entity type: Content contributor'          => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Edit) keyword entity type: Trash Restorer'               => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Delete) api client entity type: Content contributor'     => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Delete) api client entity type: Trash Restorer'          => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Read entity keyword'      => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::READ,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Ok : Edit entity keyword'      => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::EDIT,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Delete entity keyword'    => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::DELETE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) : Site Admin'                                    => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) : Trash Suppressor'                              => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Delete) keyword entity type: Node contributor'           => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Delete) api client entity type: Node super suppressor'   => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) api client entity type: Content super editor'    => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) api client entity type: Trash Suppressor'        => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Edit) api client entity type: Content contributor'       => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Ok : Read entity keyword'      => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::READ,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Edit api entity client'   => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Delete) keyword entity type: Content super suppressor'   => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Edit) keyword entity type: Content super editor'         => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Delete) api client entity type: Content super editor'    => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) api client entity type: Node contributor'          => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Ok : Edit api entity client'   => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Edit) keyword entity type: Node contributor'             => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Edit) keyword entity type: Node super suppressor'        => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) api client entity type: Node super editor'         => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) api client entity type: Node super suppressor'     => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Edit) api client entity type: Site Admin'                => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Edit) api client entity type: Trash Restorer'            => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Delete api entity client' => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) keyword entity type: Node super suppressor'      => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) keyword entity type: Content super suppressor'   => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) keyword entity type: Trash Restorer'             => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Edit) keyword entity type: Node super editor'            => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) keyword entity type: Node super suppressor'        => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) : Trash Suppressor'                                => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Delete) api client entity type: Node super editor'       => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) api client entity type: Site Admin'              => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) api client entity type: Trash Restorer'          => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Edit) api client entity type: Node contributor'          => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Delete keyword'           => array($keyword,                        ContributionActionInterface::DELETE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Add entity keyword'       => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::CREATE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Ok : Delete entity keyword'    => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::DELETE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Read api entity client'   => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::READ,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) : Content super editor'                          => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Delete) keyword entity type: Node super editor'          => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Edit) api client entity type: Node super editor'         => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) : Trash Restorer'                                  => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) : Node super suppressor'                         => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) keyword entity type: Node super editor'          => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) keyword entity type: Site Admin'                   => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) api client entity type: Node super suppressor'   => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Delete) api client entity type: Trash Suppressor'        => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Edit) api client entity type: Content super editor'      => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Read keyword'             => array($keyword,                        ContributionActionInterface::READ,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Edit keyword'             => array($keyword,                        ContributionActionInterface::EDIT,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Ok : Add entity keyword'       => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::CREATE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Delete) keyword entity type: Content super editor'       => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Delete) keyword entity type: Site Admin'                 => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Edit api client'          => array($client,                         ContributionActionInterface::EDIT,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Ok : Add api entity client'    => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::CREATE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) : Content super suppressor'                      => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) api client entity type: Node super editor'       => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Read api client'          => array($client,                         ContributionActionInterface::READ,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Ok : Read api entity client'   => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::READ,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) : Node super editor'                             => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Edit) keyword entity type: Site Admin'                   => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) api client entity type: Site Admin'                => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) api client entity type: Trash Suppressor'          => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Edit) api client entity type: Trash Suppressor'          => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Delete api client'        => array($client,                         ContributionActionInterface::DELETE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Delete) keyword entity type: Trash Restorer'             => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Delete) keyword entity type: Trash Suppressor'           => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) keyword entity type: Node contributor'             => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) keyword entity type: Node super editor'            => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open

            'Bad role (Edit) keyword entity type: Content contributor'          => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) keyword entity type: Content super editor'         => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) api client entity type: Content contributor'     => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open

            'Bad role (Edit) api client entity type: Node super suppressor'     => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Delete) keyword entity type: Node contributor'           => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) api client entity type: Content contributor'       => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_DENIED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Bad role (Edit) api client entity type: Trash Restorer'            => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Reference to constant ACCESS_GRANTED from undeclared class \Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Open

            'Ok : Add api client'           => array($client,                         ContributionActionInterface::CREATE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Similar blocks of code found in 6 locations. Consider refactoring.
Open

    protected function getNotSupportedAttributes()
    {
        $keyword = $this->createPhakeKeyword();

        return array(
Backoffice/Tests/Security/Authorization/Voter/ContentVoterTest.php on lines 77..85
Backoffice/Tests/Security/Authorization/Voter/DeveloperToolVoterTest.php on lines 75..83
Backoffice/Tests/Security/Authorization/Voter/NodeNotHydratedVoterTest.php on lines 84..92
Backoffice/Tests/Security/Authorization/Voter/NodeVoterTest.php on lines 82..90
Backoffice/Tests/Security/Authorization/Voter/SiteAdministrationVoterTest.php on lines 69..77

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Add) : Content contributor'                              => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Add) : Trash Restorer'                                   => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Status'                  => array($status,                               ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Add) : Site Admin'                                       => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) : None'                                            => array($keyword,                      ContributionActionInterface::EDIT,   array(),                                                   null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Redirection'             => array($redirection,                          ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Entity type ContentType' => array(ContentTypeInterface::ENTITY_TYPE,     ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Entity type Workflow'    => array(WorkflowProfileInterface::ENTITY_TYPE, ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Add) : Content super editor'                             => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) : Site Admin'                                    => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Content'                 => array($content,                              ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Entity type User'        => array(UserInterface::ENTITY_TYPE,            ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Add) : None'                                             => array($keyword,                      ContributionActionInterface::CREATE, array(),                                                   null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Add) : Node super suppressor'                            => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) : None'                                          => array($keyword,                      ContributionActionInterface::DELETE, array(),                                                   null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Node'                    => array($node,                                 ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Trash Item'              => array($trashItem,                            ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Log'                     => array($log,                                  ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Entity type Group'       => array(GroupInterface::ENTITY_TYPE,           ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) : Node super editor'                               => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) : Trash Restorer'                                => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Entity type Site'        => array(SiteInterface::ENTITY_TYPE,            ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Group'                   => array($group,                                ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Entity type Redirection' => array(RedirectionInterface::ENTITY_TYPE,     ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) : Trash Restorer'                                  => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Add) : Node super editor'                                => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) : Site Admin'                                      => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) : Trash Suppressor'                                => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Add) : Content super suppressor'                         => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 187 characters
Open

            'Bad action : Trash Restore' => array($keyword, ContributionActionInterface::TRASH_RESTORE, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Add) : Node contributor'                                 => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) : Node super suppressor'                         => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) : Content super editor'                          => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Content type'            => array($contentType,                          ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Workflow profile'        => array($profile,                              ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) : Node contributor'                                => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) : Content super suppressor'                      => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Site'                    => array($site,                                 ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Add) : Trash Suppressor'                                 => array($keyword,                      ContributionActionInterface::CREATE, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) : Content super editor'                            => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) : Node contributor'                              => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) : Content super suppressor'                        => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) : Content contributor'                             => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) : Content contributor'                           => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Entity type Status'      => array(StatusInterface::ENTITY_TYPE,          ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : Entity type Log'         => array(LogInterface::ENTITY_TYPE,             ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 255 characters
Open

            'Bad role (Delete) api client entity type: Trash Restorer'          => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) api client entity type: Node super suppressor'     => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) api client entity type: Site Admin'                => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) : Trash Suppressor'                              => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 251 characters
Open

            'Bad role (Edit) keyword entity type: Node super suppressor'        => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 218 characters
Open

            'Bad subject : User'                    => array($user,                                 ContributionActionInterface::READ, array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 251 characters
Open

            'Bad role (Edit) keyword entity type: Content contributor'          => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) api client entity type: Content contributor'       => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 187 characters
Open

            'Bad action : Trash Purge'   => array($keyword, ContributionActionInterface::TRASH_PURGE,   array(ContributionRoleInterface::DEVELOPER), null, VoterInterface::ACCESS_ABSTAIN),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) : Node super editor'                             => array($keyword,                      ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) keyword entity type: Node super editor'          => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) keyword entity type: Content super suppressor'   => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) api client entity type: Trash Restorer'            => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Edit api entity client'   => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) : Node super suprpessor'                           => array($keyword,                      ContributionActionInterface::EDIT,   array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 255 characters
Open

            'Bad role (Delete) api client entity type: Trash Suppressor'        => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) api client entity type: Node super editor'         => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) keyword entity type: Site Admin'                 => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Read keyword'             => array($keyword,                        ContributionActionInterface::READ,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 251 characters
Open

            'Bad role (Edit) keyword entity type: Site Admin'                   => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 251 characters
Open

            'Bad role (Edit) keyword entity type: Trash Restorer'               => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 255 characters
Open

            'Bad role (Delete) api client entity type: Site Admin'              => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::SITE_ADMIN),              null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) api client entity type: Node contributor'          => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Read api entity client'   => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::READ,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) keyword entity type: Content super editor'       => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 251 characters
Open

            'Bad role (Edit) keyword entity type: Node contributor'             => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 251 characters
Open

            'Bad role (Edit) keyword entity type: Node super editor'            => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 210 characters
Open

            'Ok : Delete entity keyword'    => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::DELETE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Delete api entity client' => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 251 characters
Open

            'Bad role (Edit) keyword entity type: Trash Suppressor'             => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 255 characters
Open

            'Bad role (Delete) api client entity type: Content super suppressor'=> array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 251 characters
Open

            'Bad role (Edit) keyword entity type: Content super editor'         => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) api client entity type: Content super editor'      => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) api client entity type: Content super suppressor'  => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Add keyword'              => array($keyword,                        ContributionActionInterface::CREATE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Edit keyword'             => array($keyword,                        ContributionActionInterface::EDIT,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) keyword entity type: Node super suppressor'      => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) keyword entity type: Content contributor'        => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 255 characters
Open

            'Bad role (Delete) api client entity type: Node super editor'       => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_EDITOR),       null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 255 characters
Open

            'Bad role (Delete) api client entity type: Node super suppressor'   => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_SUPER_SUPRESSOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Edit api client'          => array($client,                         ContributionActionInterface::EDIT,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 210 characters
Open

            'Ok : Edit entity keyword'      => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::EDIT,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) keyword entity type: Node contributor'           => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::NODE_CONTRIBUTOR),        null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) keyword entity type: Trash Restorer'             => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_RESTORER),          null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 251 characters
Open

            'Bad role (Edit) keyword entity type: Content super suppressor'     => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::CONTENT_SUPER_SUPRESSOR), null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Delete api client'        => array($client,                         ContributionActionInterface::DELETE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 210 characters
Open

            'Ok : Add entity keyword'       => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::CREATE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Edit) api client entity type: Trash Suppressor'          => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::EDIT, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Read api client'          => array($client,                         ContributionActionInterface::READ,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Add api client'           => array($client,                         ContributionActionInterface::CREATE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 255 characters
Open

            'Bad role (Delete) api client entity type: Content contributor'     => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_CONTRIBUTOR),     null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 255 characters
Open

            'Bad role (Delete) api client entity type: Content super editor'    => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::CONTENT_SUPER_EDITOR),    null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Delete keyword'           => array($keyword,                        ContributionActionInterface::DELETE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 253 characters
Open

            'Bad role (Delete) keyword entity type: Trash Suppressor'           => array(KeywordInterface::ENTITY_TYPE, ContributionActionInterface::DELETE, array(ContributionRoleInterface::TRASH_SUPRESSOR),         null, VoterInterface::ACCESS_DENIED),

Line exceeds 120 characters; contains 210 characters
Open

            'Ok : Read entity keyword'      => array(KeywordInterface::ENTITY_TYPE,  ContributionActionInterface::READ,   array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

Line exceeds 120 characters; contains 211 characters
Open

            'Ok : Add api entity client'    => array(ApiClientInterface::ENTITY_TYPE, ContributionActionInterface::CREATE, array(ContributionRoleInterface::PLATFORM_ADMIN), null, VoterInterface::ACCESS_GRANTED),

There are no issues that match your filters.

Category
Status