The type Goetas\Twital\BaseTwitalLoader has been defined more than once; this definition is ignored, only the first definition in this file (L9-18) is considered.
This check looks for classes that have been defined more than once in the same file.
If you can, we would recommend to use standard object-oriented programming
techniques. For example, to avoid multiple types, it might make sense to create a
common interface, and then multiple, different implementations for that interface.
This also has the side-effect of providing you with better IDE auto-completion,
static analysis and also better OPCode caching from PHP.
Loading history...
21
{
22
}
23
} else { // Twig 3
24
abstract class BaseTwitalLoader extends TwitalLoaderTwigGte3
The type Goetas\Twital\BaseTwitalLoader has been defined more than once; this definition is ignored, only the first definition in this file (L9-18) is considered.
This check looks for classes that have been defined more than once in the same file.
If you can, we would recommend to use standard object-oriented programming
techniques. For example, to avoid multiple types, it might make sense to create a
common interface, and then multiple, different implementations for that interface.
This also has the side-effect of providing you with better IDE auto-completion,
static analysis and also better OPCode caching from PHP.
Loading history...
25
{
26
}
27
}
28
29
/**
30
* This is a Twital Loader.
31
* Compiles a Twital template into a Twig template.
This check looks for classes that have been defined more than once in the same file.
If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.
This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.