src/CoreBundle/Repository/LegalRepository.php
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks
Missing class doc comment Open
Open
class LegalRepository extends ServiceEntityRepository
- Exclude checks
Missing function doc comment Open
Open
public function findLastConditionByLanguage(int $languageId): ?Legal
- Exclude checks
Missing function doc comment Open
Open
public function __construct(ManagerRegistry $registry)
- Exclude checks
Missing function doc comment Open
Open
public function getLastConditionByLanguage(int $languageId): ?Legal
- Exclude checks
The 'getLastVersion()' method which returns a boolean should be named 'is...()' or 'has...()' Open
Open
public function getLastVersion(int $languageId)
{
$qb = $this->createQueryBuilder('l');
$result = $qb
- Read upRead up
- Exclude checks
BooleanGetMethodName
Since: 0.2
Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.
Example
class Foo {
/**
* @return boolean
*/
public function getFoo() {} // bad
/**
* @return bool
*/
public function isFoo(); // ok
/**
* @return boolean
*/
public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}