Backoffice/UsageFinder/StatusUsageFinder.php
Parameter $status
has undeclared type \OpenOrchestra\ModelInterface\Model\StatusInterface
Open
Open
public function hasUsage(StatusInterface $status)
- Create a ticketCreate a ticket
- Exclude checks
Call to method hasStatusedElement
from undeclared class \OpenOrchestra\ModelInterface\Repository\StatusableContainerRepositoryInterface
Open
Open
if ($repository->hasStatusedElement($status)) {
- Create a ticketCreate a ticket
- Exclude checks
Parameter $repository
has undeclared type \OpenOrchestra\ModelInterface\Repository\StatusableContainerRepositoryInterface
Open
Open
public function addRepository(StatusableContainerRepositoryInterface $repository)
- Create a ticketCreate a ticket
- Exclude checks
Avoid excessively long variable names like $statusableElementRepositories. Keep variable name length under 20. Open
Open
protected $statusableElementRepositories = array();
- 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++ ) {
}
}
}