Backoffice/Form/DataTransformer/ConditionToReferenceKeywordTransformer.php
Reference to constant OPERATOR_SPLIT
from undeclared class \OpenOrchestra\ModelInterface\Repository\RepositoryTrait\KeywordableTraitInterface
Open
Open
$keywordWithoutOperator = preg_replace(explode('|', KeywordableTraitInterface::OPERATOR_SPLIT), ' ', $keywords);
- Create a ticketCreate a ticket
- Exclude checks
Avoid excessively long variable names like $keywordWithoutOperator. Keep variable name length under 20. Open
Open
$keywordWithoutOperator = preg_replace(explode('|', KeywordableTraitInterface::OPERATOR_SPLIT), ' ', $keywords);
- 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
Opening brace should be on a new line Open
Open
protected function getKeywordAsCondition($keywords) {
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
Open
protected function getKeywordAsArray($keywords) {
- Create a ticketCreate a ticket
- Exclude checks