WorkflowAdminBundle/DataFixtures/MongoDB/LoadWorkflowProfileDataFunctional.php
Class extends undeclared class \Doctrine\Common\DataFixtures\AbstractFixture
Open
Open
class LoadWorkflowProfileDataFunctional extends AbstractFixture implements OrderedFixtureInterface,OrchestraFunctionalFixturesInterface
- Create a ticketCreate a ticket
- Exclude checks
Class implements undeclared interface \Doctrine\Common\DataFixtures\OrderedFixtureInterface
Open
Open
class LoadWorkflowProfileDataFunctional extends AbstractFixture implements OrderedFixtureInterface,OrchestraFunctionalFixturesInterface
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\WorkflowAdminBundle\DataFixtures\MongoDB\LoadWorkflowProfileDataFunctional::getReference
Open
Open
$transition->setStatusTo($this->getReference($statusToReference));
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\WorkflowAdminBundle\DataFixtures\MongoDB\LoadWorkflowProfileDataFunctional::addReference
Open
Open
$this->addReference('profile-' . $referenceName, $profile);
- 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($profileContributor);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setStatusTo
from undeclared class \OpenOrchestra\ModelBundle\Document\WorkflowTransition
Open
Open
$transition->setStatusTo($this->getReference($statusToReference));
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\WorkflowAdminBundle\DataFixtures\MongoDB\LoadWorkflowProfileDataFunctional::getReference
Open
Open
$transition->setStatusFrom($this->getReference($statusFromReference));
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \OpenOrchestra\ModelBundle\Document\WorkflowProfile
Open
Open
$profile = new WorkflowProfile();
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabels
from undeclared class \OpenOrchestra\ModelBundle\Document\WorkflowProfile
Open
Open
$profile->setLabels($labels);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setStatusFrom
from undeclared class \OpenOrchestra\ModelBundle\Document\WorkflowTransition
Open
Open
$transition->setStatusFrom($this->getReference($statusFromReference));
- Create a ticketCreate a ticket
- Exclude checks
Return type of createProfile()
is undeclared type \OpenOrchestra\ModelBundle\Document\WorkflowProfile
Open
Open
protected function createProfile(array $labels, array $descriptions, array $transitions, $referenceName)
- Create a ticketCreate a ticket
- Exclude checks
Call to method addTransition
from undeclared class \OpenOrchestra\ModelBundle\Document\WorkflowProfile
Open
Open
$profile->addTransition($transition);
- Create a ticketCreate a ticket
- Exclude checks
Parameter $transitions
has undeclared type \OpenOrchestra\ModelBundle\Document\WorkflowTransition[]
Open
Open
protected function createProfile(array $labels, array $descriptions, array $transitions, $referenceName)
- 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 method __construct
from undeclared class \OpenOrchestra\ModelBundle\Document\WorkflowTransition
Open
Open
$transition = new WorkflowTransition();
- Create a ticketCreate a ticket
- Exclude checks
Return type of createTransition()
is undeclared type \OpenOrchestra\ModelBundle\Document\WorkflowTransition
Open
Open
protected function createTransition($statusFromReference, $statusToReference)
- Create a ticketCreate a ticket
- Exclude checks
Call to method setDescriptions
from undeclared class \OpenOrchestra\ModelBundle\Document\WorkflowProfile
Open
Open
$profile->setDescriptions($descriptions);
- Create a ticketCreate a ticket
- Exclude checks
Class implements undeclared interface \OpenOrchestra\ModelInterface\DataFixtures\OrchestraFunctionalFixturesInterface
Open
Open
class LoadWorkflowProfileDataFunctional extends AbstractFixture implements OrderedFixtureInterface,OrchestraFunctionalFixturesInterface
- Create a ticketCreate a ticket
- Exclude checks
Call to method persist
from undeclared class \Doctrine\Common\Persistence\ObjectManager
Open
Open
$manager->persist($profileValidator);
- Create a ticketCreate a ticket
- Exclude checks
Avoid excessively long variable names like $transitionDraftToPending. Keep variable name length under 20. Open
Open
$transitionDraftToPending = $this->createTransition('status-draft', 'status-pending');
- 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 $transitionDraftToPublished. Keep variable name length under 20. Open
Open
$transitionDraftToPublished = $this->createTransition('status-draft', 'status-published');
- 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 $transitionPendingToPublished. Keep variable name length under 20. Open
Open
$transitionPendingToPublished = $this->createTransition('status-pending', 'status-published');
- 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 $transitionToTranslateToPending. Keep variable name length under 20. Open
Open
$transitionToTranslateToPending = $this->createTransition('status-toTranslate', 'status-pending');
- 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 $transitionPublishedToDraft. Keep variable name length under 20. Open
Open
$transitionPublishedToDraft = $this->createTransition('status-published', 'status-draft');
- 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
Expected 1 space before "OrchestraFunctionalFixturesInterface"; 0 found Open
Open
class LoadWorkflowProfileDataFunctional extends AbstractFixture implements OrderedFixtureInterface,OrchestraFunctionalFixturesInterface
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 176 characters Open
Open
array('en' => 'Member which must submit his content to validation for publication', 'fr' => 'Membre qui doit soumettre son contenu à validation pour publication'),
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 135 characters Open
Open
class LoadWorkflowProfileDataFunctional extends AbstractFixture implements OrderedFixtureInterface,OrchestraFunctionalFixturesInterface
- Create a ticketCreate a ticket
- Exclude checks