Code Duplication    Length = 7-8 lines in 2 locations

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

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

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

@@ 38-44 (lines=7) @@
35
     * @param int $lines
36
     * @param int $width
37
     */
38
    public function __construct($name, $default = "", $lines = 1, $width = 30)
39
    {
40
        $this->name = $name;
41
        $this->default = $default;
42
        $this->lines = $lines;
43
        $this->setSize($width, ($lines * 5)+2);
44
    }
45
46
    /**
47
     * Render the XML element