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...
33
{
34
/**
35
* Implement entity handling in form
36
*/
37
use TEntityContainer;
38
39
/**
40
* @var ORM\EntityManager
41
*/
42
private $entityManager;
43
44
/**
45
* @param ORM\EntityManager $entityManager
46
*/
47
public function __construct(ORM\EntityManager $entityManager)
48
{
49
parent::__construct();
50
51
$this->entityManager = $entityManager;
52
}
53
54
/**
55
* Adds naming container to the form
56
*
57
* @param string $name
58
*
59
* @return EntityContainer
60
*/
61
public function addContainer($name) : EntityContainer
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.