Code Duplication    Length = 9-10 lines in 2 locations

app/Core/Forms/ItemForm.php 1 location

@@ 26-35 (lines=10) @@
23
24
    private $item;
25
26
    public function __construct(ITranslator $translator, DriverInterface $driver, $database, $type, $table, $item = null)
27
    {
28
        parent::__construct();
29
        $this->translator = $translator;
30
        $this->driver = $driver;
31
        $this->database = $database;
32
        $this->type = $type;
33
        $this->table = $table;
34
        $this->item = $item;
35
    }
36
37
    public function render()
38
    {

app/Core/Forms/TableForm.php 1 location

@@ 24-32 (lines=9) @@
21
22
    private $table;
23
24
    public function __construct(ITranslator $translator, DriverInterface $driver, $database, $type, $table = null)
25
    {
26
        parent::__construct();
27
        $this->translator = $translator;
28
        $this->driver = $driver;
29
        $this->database = $database;
30
        $this->type = $type;
31
        $this->table = $table;
32
    }
33
34
    public function render()
35
    {