Backoffice/Form/Type/Component/SiteContentTypeChoiceType.php
Call to method findAllNotDeletedInLastVersion
from undeclared class \OpenOrchestra\ModelInterface\Repository\ContentTypeRepositoryInterface
Open
Open
$contentTypes = $this->contentTypeRepository->findAllNotDeletedInLastVersion($site->getContentTypes());
- Create a ticketCreate a ticket
- Exclude checks
Parameter $element
has undeclared type \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
$choices = array_map(function (ContentTypeInterface $element) use ($currentLanguage) {
- Create a ticketCreate a ticket
- Exclude checks
Parameter $resolver
has undeclared type \Symfony\Component\OptionsResolver\OptionsResolver
Open
Open
public function configureOptions(OptionsResolver $resolver)
- Create a ticketCreate a ticket
- Exclude checks
Parameter $siteRepository
has undeclared type \OpenOrchestra\ModelInterface\Repository\SiteRepositoryInterface
Open
Open
public function __construct(
- Create a ticketCreate a ticket
- Exclude checks
Parameter $contentTypeRepository
has undeclared type \OpenOrchestra\ModelInterface\Repository\ContentTypeRepositoryInterface
Open
Open
public function __construct(
- Create a ticketCreate a ticket
- Exclude checks
Return type of getParent()
is undeclared type \Symfony\Component\Form\FormTypeInterface
Open
Open
public function getParent()
- Create a ticketCreate a ticket
- Exclude checks
Class extends undeclared class \Symfony\Component\Form\AbstractType
Open
Open
class SiteContentTypeChoiceType extends AbstractType
- Create a ticketCreate a ticket
- Exclude checks
Call to method setDefaults
from undeclared class \Symfony\Component\OptionsResolver\OptionsResolver
Open
Open
$resolver->setDefaults(
- Create a ticketCreate a ticket
- Exclude checks
Call to method findOneBySiteId
from undeclared class \OpenOrchestra\ModelInterface\Repository\SiteRepositoryInterface
Open
Open
$site = $this->siteRepository->findOneBySiteId($siteId);
- Create a ticketCreate a ticket
- Exclude checks
Call to method getName
from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
return $element->getName($currentLanguage);
- Create a ticketCreate a ticket
- Exclude checks
Avoid excessively long variable names like $contentTypeRepository. Keep variable name length under 20. Open
Open
protected $contentTypeRepository;
- 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 $contentTypeRepository. Keep variable name length under 20. Open
Open
ContentTypeRepositoryInterface $contentTypeRepository,
- 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++ ) {
}
}
}