This method 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...
28
{
29
1
if (! $this->has($type)) {
30
1
$this->register($type); // auto-wiring (for Types with no special constructor dependencies)
31
}
32
33
1
$type = $this->get($type);
34
35
1
if (! $type instanceof Type) {
36
$class_name = get_class($type);
37
38
throw new UnexpectedValueException("{$class_name} does not implement the Type interface");
39
}
40
41
1
return $type;
42
}
43
44
/**
45
* @inheritdoc
46
*/
47
1
public function createTable($class_name, $table_name, $alias)
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.