GroupBundle/DataFixtures/MongoDB/LoadGroupData.php
Call to undeclared method \OpenOrchestra\GroupBundle\DataFixtures\MongoDB\LoadGroupData::getReference
Open
Open
$this->getReference('site2')->getSiteId()
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (workflowProfileCollection)
is \OpenOrchestra\ModelBundle\Document\WorkflowProfileCollection
but \OpenOrchestra\GroupBundle\Document\Group::addWorkflowProfileCollection()
takes \OpenOrchestra\ModelInterface\Model\WorkflowProfileCollectionInterface
defined at /code/GroupBundle/Document/Group.php:159
Open
Open
$group->addWorkflowProfileCollection(NodeInterface::ENTITY_TYPE, $nodeProfileCollection);
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant ENTITY_TYPE
from undeclared class \OpenOrchestra\ModelInterface\Model\NodeInterface
Open
Open
$group->addWorkflowProfileCollection(NodeInterface::ENTITY_TYPE, $nodeProfileCollection);
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant ENTITY_TYPE
from undeclared class \OpenOrchestra\ModelInterface\Model\NodeInterface
Open
Open
$nodePerimeter = $this->createPerimeter(NodeInterface::ENTITY_TYPE, array(
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\DataFixtures\MongoDB\LoadGroupData::getReference
Open
Open
$sadmin2->setSite($this->getReference('site2'));
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\DataFixtures\MongoDB\LoadGroupData::addReference
Open
Open
$this->addReference('s-admin-demo', $sadmin2);
- Create a ticketCreate a ticket
- Exclude checks
Call to method persist
from undeclared class \Doctrine\Common\Persistence\ObjectManager
Open
Open
$manager->persist($groupDemo);
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\Document\Group::addRole
Open
Open
$sadmin2->addRole(ContributionRoleInterface::SITE_ADMIN);
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\DataFixtures\MongoDB\LoadGroupData::addReference
Open
Open
$this->addReference('group3', $group);
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\DataFixtures\MongoDB\LoadGroupData::addReference
Open
Open
$this->addReference('group2', $groupDemo);
- Create a ticketCreate a ticket
- Exclude checks
Call to method flush
from undeclared class \Doctrine\Common\Persistence\ObjectManager
Open
Open
$manager->flush();
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\DataFixtures\MongoDB\LoadGroupData::getReference
Open
Open
$group->setSite($this->getReference('site3'));
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant ENTITY_TYPE
from undeclared class \OpenOrchestra\ModelInterface\Model\SiteInterface
Open
Open
$sitePerimeter = $this->createPerimeter(SiteInterface::ENTITY_TYPE, array(
- Create a ticketCreate a ticket
- Exclude checks
Parameter $manager
has undeclared type \Doctrine\Common\Persistence\ObjectManager
Open
Open
public function load(ObjectManager $manager)
- Create a ticketCreate a ticket
- Exclude checks
Call to method persist
from undeclared class \Doctrine\Common\Persistence\ObjectManager
Open
Open
$manager->persist($group);
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\GroupBundle\DataFixtures\MongoDB\LoadGroupData::getReference
Open
Open
$group->setSite($this->getReference('site2'));
- Create a ticketCreate a ticket
- Exclude checks
Class implements undeclared interface \OpenOrchestra\ModelInterface\DataFixtures\OrchestraFunctionalFixturesInterface
Open
Open
class LoadGroupData extends AbstractLoadGroupData implements OrchestraFunctionalFixturesInterface
- Create a ticketCreate a ticket
- Exclude checks
Call to method persist
from undeclared class \Doctrine\Common\Persistence\ObjectManager
Open
Open
$manager->persist($sadmin2);
- Create a ticketCreate a ticket
- Exclude checks
Avoid excessively long variable names like $nodeProfileCollection. Keep variable name length under 20. Open
Open
$nodeProfileCollection = $this->createProfileCollection(array('profile-Contributor'));
- 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++ ) {
}
}
}