Code Duplication    Length = 9-9 lines in 4 locations

src/Buttons/Abstract.php 1 location

@@ 41-49 (lines=9) @@
38
     *
39
     * @return string
40
     */
41
    public function getAttrib($key)
42
    {
43
        $key = (string) $key;
44
        if (!isset($this->_attribs[$key])) {
45
            return null;
46
        }
47
48
        return $this->_attribs[$key];
49
    }
50
51
    /**
52
     * @return Nip_Form_Button_Abstract

src/DisplayGroup.php 1 location

@@ 88-96 (lines=9) @@
85
     * @param string $key
86
     * @return mixed|null
87
     */
88
    public function getAttrib($key)
89
    {
90
        $key = (string) $key;
91
        if (!isset($this->_attribs[$key])) {
92
            return null;
93
        }
94
95
        return $this->_attribs[$key];
96
    }
97
98
    /**
99
     * @return array

src/Elements/Traits/HasAttributesTrait.php 1 location

@@ 143-151 (lines=9) @@
140
     * @param string $key
141
     * @return null
142
     */
143
    public function getAttrib($key)
144
    {
145
        $key = (string)$key;
146
        if (!isset($this->_attribs[$key])) {
147
            return null;
148
        }
149
150
        return $this->_attribs[$key];
151
    }
152
153
    /**
154
     * @param string $key

src/Traits/HasAttributesTrait.php 1 location

@@ 31-39 (lines=9) @@
28
     * @param string $key
29
     * @return string
30
     */
31
    public function getAttrib($key)
32
    {
33
        $key = (string)$key;
34
        if (!isset($this->_attribs[$key])) {
35
            return null;
36
        }
37
38
        return $this->_attribs[$key];
39
    }
40
41
    /**
42
     * @return array