ApiBundle/Facade/NodeFacade.php
The class NodeFacade has 18 fields. Consider redesigning NodeFacade to keep the number of fields under 15. Open
Open
class NodeFacade extends DeletedFacade
{
use BlameableFacade;
/**
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
TooManyFields
Since: 0.1
Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zip fields could instead have one Address field.
Example
class Person {
protected $one;
private $two;
private $three;
[... many more fields ...]
}
Source https://phpmd.org/rules/codesize.html#toomanyfields
Possibly zero references to use statement for classlike/namespace Serializer
(\JMS\Serializer\Annotation)
Open
Open
use JMS\Serializer\Annotation as Serializer;
- Create a ticketCreate a ticket
- Exclude checks
Parameter $facade
has undeclared type \OpenOrchestra\BaseApi\Facade\FacadeInterface
Open
Open
public function setAreas(FacadeInterface $facade, $key)
- Create a ticketCreate a ticket
- Exclude checks
Parameter $previewLink
has undeclared type \OpenOrchestra\BaseApi\Facade\FacadeInterface
Open
Open
public function addPreviewLink(FacadeInterface $previewLink)
- Create a ticketCreate a ticket
- Exclude checks
Class uses undeclared trait \OpenOrchestra\BaseApi\Facade\Traits\BlameableFacade
Open
Open
class NodeFacade extends DeletedFacade
- Create a ticketCreate a ticket
- Exclude checks