Workflow/Form/DataTransformer/ProfileTransitionsTransformer.php
Avoid using undefined variables such as '$statuses' which will lead to PHP notices. Open
Open
$statuses['from'] = $temp[0];
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$statuses' which will lead to PHP notices. Open
Open
$statuses['to'] = $temp[1];
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$statuses' which will lead to PHP notices. Open
Open
return $statuses;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Variable $statuses
was undeclared, but array fields are being added to it. Open
Open
$statuses['from'] = $temp[0];
- Create a ticketCreate a ticket
- Exclude checks
Call to method findOneById
from undeclared class \OpenOrchestra\ModelInterface\Repository\StatusRepositoryInterface
Open
Open
$this->cachedStatuses[$statusId] = $this->statusRepository->findOneById($statusId);
- Create a ticketCreate a ticket
- Exclude checks
Parameter $statusTo
has undeclared type \OpenOrchestra\ModelInterface\Model\StatusInterface
Open
Open
public function generateTransitionName(StatusInterface $statusFrom, StatusInterface $statusTo)
- Create a ticketCreate a ticket
- Exclude checks
Parameter $statusRepository
has undeclared type \OpenOrchestra\ModelInterface\Repository\StatusRepositoryInterface
Open
Open
public function __construct(StatusRepositoryInterface $statusRepository, TransitionFactory $transitionFactory)
- Create a ticketCreate a ticket
- Exclude checks
Parameter $statusFrom
has undeclared type \OpenOrchestra\ModelInterface\Model\StatusInterface
Open
Open
public function generateTransitionName(StatusInterface $statusFrom, StatusInterface $statusTo)
- Create a ticketCreate a ticket
- Exclude checks
Call to method getId
from undeclared class \OpenOrchestra\ModelInterface\Model\StatusInterface
Open
Open
return $statusFrom->getId() . self::STATUS_SEPARATOR . $statusTo->getId();
- Create a ticketCreate a ticket
- Exclude checks
Checking instanceof against undeclared class \OpenOrchestra\ModelInterface\Model\StatusInterface
Open
Open
if ($statusFrom instanceof StatusInterface && $statusTo instanceof StatusInterface) {
- Create a ticketCreate a ticket
- Exclude checks
Class implements undeclared interface \Symfony\Component\Form\DataTransformerInterface
Open
Open
class ProfileTransitionsTransformer implements DataTransformerInterface
- Create a ticketCreate a ticket
- Exclude checks