Code Duplication    Length = 7-7 lines in 2 locations

src/eXpansion/Framework/Gui/Components/uiInput.php 1 location

@@ 24-30 (lines=7) @@
21
    protected $default;
22
23
24
    public function __construct($name, $default = "", $width = 30)
25
    {
26
        $this->name = $name;
27
        $this->default = $default;
28
        $this->width = $width;
29
        $this->setSize($width, 5);
30
    }
31
32
    /**
33
     * Render the XML element

src/eXpansion/Framework/Gui/Components/uiTextbox.php 1 location

@@ 30-36 (lines=7) @@
27
    protected $lines;
28
29
30
    public function __construct($name, $default = "", $lines = 1, $width = 30)
31
    {
32
        $this->name = $name;
33
        $this->default = $default;
34
        $this->lines = $lines;
35
        $this->setSize($width, ($lines * 5)+2);
36
    }
37
38
    /**
39
     * Render the XML element