Backoffice/Manager/ContentTypeManager.php
Call to method getFields
from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
foreach ($contentType->getFields() as $field) {
- Create a ticketCreate a ticket
- Exclude checks
Return type of duplicate()
is undeclared type \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
public function duplicate(ContentTypeInterface $contentType)
- Create a ticketCreate a ticket
- Exclude checks
Call to method addFieldType
from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
$newContentType->addFieldType($newField);
- Create a ticketCreate a ticket
- Exclude checks
Call to method getDefaultListable
from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
$newContentType->setDefaultListable($this->updateDefaultListable($newContentType->getDefaultListable()));
- Create a ticketCreate a ticket
- Exclude checks
Return type of initializeNewContentType()
is undeclared type \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
public function initializeNewContentType()
- Create a ticketCreate a ticket
- Exclude checks
Call to method setDefaultListable
from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
$newContentType->setDefaultListable($this->updateDefaultListable($newContentType->getDefaultListable()));
- Create a ticketCreate a ticket
- Exclude checks
Parameter $contentType
has undeclared type \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
public function duplicate(ContentTypeInterface $contentType)
- Create a ticketCreate a ticket
- Exclude checks
Avoid excessively long variable names like $contentTypeDefaultListable. Keep variable name length under 20. Open
Open
protected function updateDefaultListable(array $contentTypeDefaultListable)
- 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 after closing parenthesis; found 13 Open
Open
foreach ($contentTypes as $contentType)
- Create a ticketCreate a ticket
- Exclude checks