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