open-orchestra/open-orchestra-cms-bundle

View on GitHub
GroupBundle/Document/Group.php

Summary

Maintainability
A
0 mins
Test Coverage

Class extends undeclared class \OpenOrchestra\UserBundle\Document\Group (Did you mean class \OpenOrchestra\GroupBundle\Document\Group)
Open

class Group extends BaseGroup implements GroupInterface
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Class uses undeclared trait \OpenOrchestra\MongoTrait\SoftDeleteable
Open

class Group extends BaseGroup implements GroupInterface
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Possibly zero references to use statement for classlike/namespace ODM (\Doctrine\ODM\MongoDB\Mapping\Annotations)
Open

use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Call to method clear from undeclared class \Doctrine\Common\Collections\Collection
Open

        $this->perimeters->clear();
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Parameter $perimeters has undeclared type \Doctrine\Common\Collections\Collection
Open

    public function setPerimeters(Collection $perimeters)
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Call to method get from undeclared class \Doctrine\Common\Collections\Collection
Open

        return $this->perimeters->get($perimeterType);
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Call to method __construct from undeclared class \Doctrine\Common\Collections\ArrayCollection
Open

        $this->workflowProfileCollections = new ArrayCollection();
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Property \OpenOrchestra\GroupBundle\Document\Group->workflowProfileCollections has undeclared type \Doctrine\Common\Collections\Collection
Open

    protected $workflowProfileCollections;
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Return type of getPerimeters() is undeclared type \Doctrine\Common\Collections\Collection
Open

    public function getPerimeters()
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Reference to undeclared class \OpenOrchestra\UserBundle\Document\Group (Did you mean class \OpenOrchestra\GroupBundle\Document\Group)
Open

        parent::__construct($roles);
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Reference to undeclared property \OpenOrchestra\GroupBundle\Document\Group->id
Open

        $this->id = null;
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Call to undeclared method \OpenOrchestra\GroupBundle\Document\Group::setName
Open

        $this->setName(uniqid(self::PREFIX_GROUP_NAME));
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Parameter $workflowProfileCollections has undeclared type \Doctrine\Common\Collections\Collection
Open

    public function setWorkflowProfileCollections(Collection $workflowProfileCollections)
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Return type of getWorkflowProfileCollection() is undeclared type \OpenOrchestra\ModelInterface\Model\WorkflowProfileCollectionInterface
Open

    public function getWorkflowProfileCollection($entityType)
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Parameter $workflowProfileCollection has undeclared type \OpenOrchestra\ModelInterface\Model\WorkflowProfileCollectionInterface
Open

    public function addWorkflowProfileCollection($entityType, WorkflowProfileCollectionInterface $workflowProfileCollection)
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Call to method __construct from undeclared class \Doctrine\Common\Collections\ArrayCollection
Open

        $this->perimeters = new ArrayCollection();
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Call to method get from undeclared class \Doctrine\Common\Collections\Collection
Open

        return $this->workflowProfileCollections->get($entityType);
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Call to method set from undeclared class \Doctrine\Common\Collections\Collection
Open

        $this->perimeters->set($perimeter->getType(), $perimeter);
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Call to method set from undeclared class \Doctrine\Common\Collections\Collection
Open

            $this->perimeters->set($perimeter->getType(), $perimeter);
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Assigning \Doctrine\Common\Collections\ArrayCollection to property but \OpenOrchestra\GroupBundle\Document\Group->workflowProfileCollections is \Doctrine\Common\Collections\Collection
Open

        $this->workflowProfileCollections = new ArrayCollection();
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Return type of getSite() is undeclared type \OpenOrchestra\ModelInterface\Model\ReadSiteInterface
Open

    public function getSite()
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Call to method clear from undeclared class \Doctrine\Common\Collections\Collection
Open

        $this->workflowProfileCollections->clear();
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Assigning \Doctrine\Common\Collections\ArrayCollection to property but \OpenOrchestra\GroupBundle\Document\Group->perimeters is \Doctrine\Common\Collections\Collection
Open

        $this->perimeters = new ArrayCollection();
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Parameter $site has undeclared type \OpenOrchestra\ModelInterface\Model\ReadSiteInterface
Open

    public function setSite(ReadSiteInterface $site = null)
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Property \OpenOrchestra\GroupBundle\Document\Group->perimeters has undeclared type \Doctrine\Common\Collections\Collection
Open

    protected $perimeters;
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Return type of getWorkflowProfileCollections() is undeclared type \Doctrine\Common\Collections\Collection
Open

    public function getWorkflowProfileCollections()
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Call to method set from undeclared class \Doctrine\Common\Collections\Collection
Open

        $this->workflowProfileCollections->set($entityType, $workflowProfileCollection);
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Reference to undeclared constant \OpenOrchestra\GroupBundle\Document\Group::PREFIX_GROUP_NAME
Open

        $this->setName(uniqid(self::PREFIX_GROUP_NAME));
Severity: Minor
Found in GroupBundle/Document/Group.php by phan

Call to method set from undeclared class \Doctrine\Common\Collections\Collection
Open

            $this->workflowProfileCollections->set($entityType, $workflowProfileCollection);
Severity: Critical
Found in GroupBundle/Document/Group.php by phan

Avoid excessively long variable names like $workflowProfileCollection. Keep variable name length under 20.
Open

        foreach ($workflowProfileCollections as $entityType => $workflowProfileCollection) {
Severity: Minor
Found in GroupBundle/Document/Group.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $workflowProfileCollections. Keep variable name length under 20.
Open

    protected $workflowProfileCollections;
Severity: Minor
Found in GroupBundle/Document/Group.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $workflowProfileCollection. Keep variable name length under 20.
Open

    public function addWorkflowProfileCollection($entityType, WorkflowProfileCollectionInterface $workflowProfileCollection)
Severity: Minor
Found in GroupBundle/Document/Group.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $workflowProfileCollections. Keep variable name length under 20.
Open

    public function setWorkflowProfileCollections(Collection $workflowProfileCollections)
Severity: Minor
Found in GroupBundle/Document/Group.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Line exceeds 120 characters; contains 124 characters
Open

    public function addWorkflowProfileCollection($entityType, WorkflowProfileCollectionInterface $workflowProfileCollection)

There are no issues that match your filters.

Category
Status