GroupBundle/Document/Group.php
Class extends undeclared class \OpenOrchestra\UserBundle\Document\Group
(Did you mean class \OpenOrchestra\GroupBundle\Document\Group) Open
Open
class Group extends BaseGroup implements GroupInterface
- Create a ticketCreate a ticket
- Exclude checks
Class uses undeclared trait \OpenOrchestra\MongoTrait\SoftDeleteable
Open
Open
class Group extends BaseGroup implements GroupInterface
- Create a ticketCreate a ticket
- Exclude checks
Possibly zero references to use statement for classlike/namespace ODM
(\Doctrine\ODM\MongoDB\Mapping\Annotations)
Open
Open
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
- Create a ticketCreate a ticket
- Exclude checks
Call to method clear
from undeclared class \Doctrine\Common\Collections\Collection
Open
Open
$this->perimeters->clear();
- Create a ticketCreate a ticket
- Exclude checks
Parameter $perimeters
has undeclared type \Doctrine\Common\Collections\Collection
Open
Open
public function setPerimeters(Collection $perimeters)
- Create a ticketCreate a ticket
- Exclude checks
Call to method get
from undeclared class \Doctrine\Common\Collections\Collection
Open
Open
return $this->perimeters->get($perimeterType);
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \Doctrine\Common\Collections\ArrayCollection
Open
Open
$this->workflowProfileCollections = new ArrayCollection();
- Create a ticketCreate a ticket
- Exclude checks
Property \OpenOrchestra\GroupBundle\Document\Group->workflowProfileCollections
has undeclared type \Doctrine\Common\Collections\Collection
Open
Open
protected $workflowProfileCollections;
- Create a ticketCreate a ticket
- Exclude checks
Return type of getPerimeters()
is undeclared type \Doctrine\Common\Collections\Collection
Open
Open
public function getPerimeters()
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared class \OpenOrchestra\UserBundle\Document\Group
(Did you mean class \OpenOrchestra\GroupBundle\Document\Group) Open
Open
parent::__construct($roles);
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \OpenOrchestra\GroupBundle\Document\Group->id
Open
Open
$this->id = null;
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\Document\Group::setName
Open
Open
$this->setName(uniqid(self::PREFIX_GROUP_NAME));
- Create a ticketCreate a ticket
- Exclude checks
Parameter $workflowProfileCollections
has undeclared type \Doctrine\Common\Collections\Collection
Open
Open
public function setWorkflowProfileCollections(Collection $workflowProfileCollections)
- Create a ticketCreate a ticket
- Exclude checks
Return type of getWorkflowProfileCollection()
is undeclared type \OpenOrchestra\ModelInterface\Model\WorkflowProfileCollectionInterface
Open
Open
public function getWorkflowProfileCollection($entityType)
- Create a ticketCreate a ticket
- Exclude checks
Parameter $workflowProfileCollection
has undeclared type \OpenOrchestra\ModelInterface\Model\WorkflowProfileCollectionInterface
Open
Open
public function addWorkflowProfileCollection($entityType, WorkflowProfileCollectionInterface $workflowProfileCollection)
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \Doctrine\Common\Collections\ArrayCollection
Open
Open
$this->perimeters = new ArrayCollection();
- Create a ticketCreate a ticket
- Exclude checks
Call to method get
from undeclared class \Doctrine\Common\Collections\Collection
Open
Open
return $this->workflowProfileCollections->get($entityType);
- Create a ticketCreate a ticket
- Exclude checks
Call to method set
from undeclared class \Doctrine\Common\Collections\Collection
Open
Open
$this->perimeters->set($perimeter->getType(), $perimeter);
- Create a ticketCreate a ticket
- Exclude checks
Call to method set
from undeclared class \Doctrine\Common\Collections\Collection
Open
Open
$this->perimeters->set($perimeter->getType(), $perimeter);
- Create a ticketCreate a ticket
- Exclude checks
Assigning \Doctrine\Common\Collections\ArrayCollection
to property but \OpenOrchestra\GroupBundle\Document\Group->workflowProfileCollections
is \Doctrine\Common\Collections\Collection
Open
Open
$this->workflowProfileCollections = new ArrayCollection();
- Create a ticketCreate a ticket
- Exclude checks
Return type of getSite()
is undeclared type \OpenOrchestra\ModelInterface\Model\ReadSiteInterface
Open
Open
public function getSite()
- Create a ticketCreate a ticket
- Exclude checks
Call to method clear
from undeclared class \Doctrine\Common\Collections\Collection
Open
Open
$this->workflowProfileCollections->clear();
- Create a ticketCreate a ticket
- Exclude checks
Assigning \Doctrine\Common\Collections\ArrayCollection
to property but \OpenOrchestra\GroupBundle\Document\Group->perimeters
is \Doctrine\Common\Collections\Collection
Open
Open
$this->perimeters = new ArrayCollection();
- Create a ticketCreate a ticket
- Exclude checks
Parameter $site
has undeclared type \OpenOrchestra\ModelInterface\Model\ReadSiteInterface
Open
Open
public function setSite(ReadSiteInterface $site = null)
- Create a ticketCreate a ticket
- Exclude checks
Property \OpenOrchestra\GroupBundle\Document\Group->perimeters
has undeclared type \Doctrine\Common\Collections\Collection
Open
Open
protected $perimeters;
- Create a ticketCreate a ticket
- Exclude checks
Return type of getWorkflowProfileCollections()
is undeclared type \Doctrine\Common\Collections\Collection
Open
Open
public function getWorkflowProfileCollections()
- Create a ticketCreate a ticket
- Exclude checks
Call to method set
from undeclared class \Doctrine\Common\Collections\Collection
Open
Open
$this->workflowProfileCollections->set($entityType, $workflowProfileCollection);
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared constant \OpenOrchestra\GroupBundle\Document\Group::PREFIX_GROUP_NAME
Open
Open
$this->setName(uniqid(self::PREFIX_GROUP_NAME));
- Create a ticketCreate a ticket
- Exclude checks
Call to method set
from undeclared class \Doctrine\Common\Collections\Collection
Open
Open
$this->workflowProfileCollections->set($entityType, $workflowProfileCollection);
- Create a ticketCreate a ticket
- Exclude checks
Avoid excessively long variable names like $workflowProfileCollection. Keep variable name length under 20. Open
Open
foreach ($workflowProfileCollections as $entityType => $workflowProfileCollection) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
protected $workflowProfileCollections;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
public function addWorkflowProfileCollection($entityType, WorkflowProfileCollectionInterface $workflowProfileCollection)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
public function setWorkflowProfileCollections(Collection $workflowProfileCollections)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
public function addWorkflowProfileCollection($entityType, WorkflowProfileCollectionInterface $workflowProfileCollection)
- Create a ticketCreate a ticket
- Exclude checks