This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
24
{
25
use HasInterfaces;
26
use HasFields;
27
28
/**
29
* @return TypeInterface
30
*/
31
public static function getType(): TypeInterface
32
{
33
return Type::of(Type::INTERFACE);
34
}
35
36
/**
37
* @param TypeDefinition $definition
38
* @return bool
39
*/
40
1
public function instanceOf($definition): bool
41
{
42
// Return a positive response if the parent type (like Object or Interface)
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.