Backoffice/Manager/KeywordToDocumentManager.php
Reference to undeclared property \OpenOrchestra\Backoffice\Manager\KeywordToDocumentManager->keywordRepository
Open
Open
$this->keywordRepository->getManager()->flush($keywordEntity);
- Create a ticketCreate a ticket
- Exclude checks
Parameter $keywordRepository
has undeclared type \OpenOrchestra\ModelInterface\Repository\KeywordRepositoryInterface
Open
Open
public function __construct(
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \OpenOrchestra\Backoffice\Manager\KeywordToDocumentManager->keywordRepository
Open
Open
$keywordEntity = $this->keywordRepository->findOneByLabel($keyword);
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \OpenOrchestra\Backoffice\Manager\KeywordToDocumentManager->keywordClass
(Did you mean $keywordClass) Open
Open
$this->keywordClass = $keywordClass;
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \OpenOrchestra\Backoffice\Manager\KeywordToDocumentManager->authorizationChecker
(Did you mean $authorizationChecker) Open
Open
$this->authorizationChecker = $authorizationChecker;
- Create a ticketCreate a ticket
- Exclude checks
Parameter $authorizationChecker
has undeclared type \Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
Open
Open
public function __construct(
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \OpenOrchestra\Backoffice\Manager\KeywordToDocumentManager->suppressSpecialCharacterHelper
Open
Open
$keyword = $this->suppressSpecialCharacterHelper->transform($keyword);
- Create a ticketCreate a ticket
- Exclude checks
Parameter $suppressSpecialCharacterHelper
has undeclared type \OpenOrchestra\ModelInterface\Helper\SuppressSpecialCharacterHelperInterface
Open
Open
public function __construct(
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \OpenOrchestra\Backoffice\Manager\KeywordToDocumentManager->keywordClass
Open
Open
$keywordClass = $this->keywordClass;
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \OpenOrchestra\Backoffice\Manager\KeywordToDocumentManager->keywordRepository
(Did you mean $keywordRepository) Open
Open
$this->keywordRepository = $keywordRepository;
- Create a ticketCreate a ticket
- Exclude checks
Return type of getDocument()
is undeclared type \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open
Open
public function getDocument($keyword)
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant ENTITY_TYPE
from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open
Open
&& !$this->authorizationChecker->isGranted(ContributionActionInterface::CREATE, KeywordInterface::ENTITY_TYPE)
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
Open
Open
throw new AccessDeniedHttpException();
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \OpenOrchestra\Backoffice\Manager\KeywordToDocumentManager->keywordRepository
Open
Open
$this->keywordRepository->getManager()->persist($keywordEntity);
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \OpenOrchestra\Backoffice\Manager\KeywordToDocumentManager->authorizationChecker
Open
Open
&& !$this->authorizationChecker->isGranted(ContributionActionInterface::CREATE, KeywordInterface::ENTITY_TYPE)
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \OpenOrchestra\Backoffice\Manager\KeywordToDocumentManager->suppressSpecialCharacterHelper
(Did you mean $suppressSpecialCharacterHelper) Open
Open
$this->suppressSpecialCharacterHelper = $suppressSpecialCharacterHelper;
- Create a ticketCreate a ticket
- Exclude checks
Avoid excessively long variable names like $suppressSpecialCharacterHelper. Keep variable name length under 20. Open
Open
SuppressSpecialCharacterHelperInterface $suppressSpecialCharacterHelper,
- 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
There must be a single space between the closing parenthesis and the opening brace of a multi-line function declaration; found 0 spaces Open
Open
){
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 122 characters Open
Open
&& !$this->authorizationChecker->isGranted(ContributionActionInterface::CREATE, KeywordInterface::ENTITY_TYPE)
- Create a ticketCreate a ticket
- Exclude checks