Code Duplication    Length = 3-3 lines in 3 locations

core/functions/tv.php 3 locations

@@ 256-258 (lines=3) @@
253
                        if (isset($params['align']) && $params['align'] != 'none') {
254
                            $attr['align'] = $params['align'];
255
                        }
256
                        foreach ($attr as $k => $v) {
257
                            $attributes .= ($v ? ' ' . $k . '="' . $v . '"' : '');
258
                        }
259
                        $attributes .= ' ' . $params['attrib'];
260
261
                        // Output the image with attributes
@@ 333-335 (lines=3) @@
330
                            'style'  => $params['style'],
331
                            'target' => $params['target'],
332
                        );
333
                        foreach ($attr as $k => $v) {
334
                            $attributes .= ($v ? ' ' . $k . '="' . $v . '"' : '');
335
                        }
336
                        $attributes .= ' ' . $params['attrib']; // add extra
337
338
                        // Output the link
@@ 364-366 (lines=3) @@
361
                        'class' => $params['class'],
362
                        'style' => $params['style'],
363
                    );
364
                    foreach ($attr as $k => $v) {
365
                        $attributes .= ($v ? ' ' . $k . '="' . $v . '"' : '');
366
                    }
367
                    $attributes .= ' ' . $params['attrib']; // add extra
368
369
                    // Output the HTML Tag