Code Duplication    Length = 7-8 lines in 3 locations

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

@@ 39-46 (lines=8) @@
36
37
    protected $horizontalAlign = "left";
38
39
    public function __construct($name, $default = "", $width = 30, $textFormat = "Basic")
40
    {
41
        $this->name = $name;
42
        $this->default = $default;
43
        $this->width = $width;
44
        $this->setSize($width, 4);
45
        $this->textFormat = $textFormat;
46
    }
47
48
    /**
49
     * Render the XML element

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

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

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

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