src/Entity/League.php
Method initPropertyMapDefinition
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected static function initPropertyMapDefinition() {
static::$propertyMapDefinition
->addPropertyMap(
new PropertyDefinition('idLeague'),
new PropertyDefinition('id')
League
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class League extends Entity implements LeagueInterface {
/**
* {@inheritdoc}
*/
The method initPropertyMapDefinition() has 102 lines of code. Current threshold is set to 100. Avoid really long methods. Open
Open
protected static function initPropertyMapDefinition() {
static::$propertyMapDefinition
->addPropertyMap(
new PropertyDefinition('idLeague'),
new PropertyDefinition('id')
- Exclude checks
Avoid unused parameters such as '$context'. Open
Open
public static function transformSeasons($values, $context, EntityManagerInterface $entityManager) {
- Read upRead up
- 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
}
}