Code Duplication    Length = 9-9 lines in 3 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/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

src/Utility/HasAttributesTrait.php 1 location

@@ 151-159 (lines=9) @@
148
     * @param string $key
149
     * @return null
150
     */
151
    public function getAttrib($key)
152
    {
153
        $key = (string)$key;
154
        if (!isset($this->_attribs[$key])) {
155
            return null;
156
        }
157
158
        return $this->_attribs[$key];
159
    }
160
161
    /**
162
     * @param string $key