Code Duplication    Length = 10-10 lines in 2 locations

src/Html/Html.php 2 locations

@@ 118-127 (lines=10) @@
115
     * @param string $function Function or method
116
     * @return bool
117
     */
118
    public static function register($key, $function)
119
    {
120
        list($key) = static::_extract($key);
121
        if (is_callable($function)) {
122
            static::$_registry[$key] = $function;
123
            return true;
124
        }
125
126
        return false;
127
    }
128
129
    /**
130
     * Removes a key for a method from registry.
@@ 135-144 (lines=10) @@
132
     * @param string $key  The name of the key
133
     * @return boolean True if a set key is unset
134
     */
135
    public static function unRegister($key)
136
    {
137
        list($key) = static::_extract($key);
138
        if (isset(static::$_registry[$key])) {
139
            unset(static::$_registry[$key]);
140
            return true;
141
        }
142
143
        return false;
144
    }
145
146
    /**
147
     * Function caller method.