Backoffice/BusinessRules/Strategies/ContentTypeStrategy.php
Avoid unused parameters such as '$parameters'. Open
Open
public function canDelete(ContentTypeInterface $contentType, array $parameters)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused parameters such as '$parameters'. Open
Open
public function canReadList(ContentTypeInterface $contentType, array $parameters)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Parameter $siteRepository
has undeclared type \OpenOrchestra\ModelInterface\Repository\SiteRepositoryInterface
Open
Open
public function __construct(
- Create a ticketCreate a ticket
- Exclude checks
Call to method countByContentType
from undeclared class \OpenOrchestra\ModelInterface\Repository\ContentRepositoryInterface
Open
Open
return 0 == $this->contentRepository->countByContentType($contentType->getContentTypeId());
- Create a ticketCreate a ticket
- Exclude checks
Call to method getContentTypeId
from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
return in_array($contentType->getContentTypeId(), $site->getContentTypes());
- Create a ticketCreate a ticket
- Exclude checks
Parameter $contentRepository
has undeclared type \OpenOrchestra\ModelInterface\Repository\ContentRepositoryInterface
Open
Open
public function __construct(
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant ENTITY_TYPE
from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
return ContentTypeInterface::ENTITY_TYPE;
- Create a ticketCreate a ticket
- Exclude checks
Call to method getContentTypeId
from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
return 0 == $this->contentRepository->countByContentType($contentType->getContentTypeId());
- Create a ticketCreate a ticket
- Exclude checks
Parameter $contentType
has undeclared type \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
public function canReadList(ContentTypeInterface $contentType, array $parameters)
- 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
Parameter $contentType
has undeclared type \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open
Open
public function canDelete(ContentTypeInterface $contentType, array $parameters)
- Create a ticketCreate a ticket
- Exclude checks
PHP keywords must be lowercase; expected "const" but found "CONST" Open
Open
CONST READ_LIST = 'READ_LIST';
- Create a ticketCreate a ticket
- Exclude checks