Code Duplication    Length = 11-11 lines in 2 locations

src/component/Html/Navigation.php 1 location

@@ 288-298 (lines=11) @@
285
     *
286
     * @return string
287
     */
288
    private function isAtribute($atribute, $value)
289
    {
290
        if (is_array($value)) {
291
            array_filter($value);
292
            $value = trim(implode(' ', $value));
293
294
            return !empty($value) ? ' '.$atribute.'="'.$value.'"' : '';
295
        }
296
297
        return (isset($value) and !empty($value)) ? ' '.$atribute.'="'.trim($value).'"' : '';
298
    }
299
300
    private function addContainerWithSelectorIf($inside, $selector)
301
    {

src/module/Appearance/Menu/Navigation.php 1 location

@@ 109-119 (lines=11) @@
106
     *
107
     * @return string
108
     */
109
    private function isAttribute($attribute, $value)
110
    {
111
        if (is_array($value)) {
112
            array_filter($value);
113
            $value = trim(implode(' ', $value));
114
115
            return !empty($value) ? ' '.$attribute.'="'.$value.'"' : '';
116
        }
117
118
        return (isset($value) and !empty($value)) ? ' '.$attribute.'="'.trim($value).'"' : '';
119
    }
120
121
122
    /**