Code Duplication    Length = 3-3 lines in 2 locations

Alpha/View/Widget/RecordSelector.php 1 location

@@ 219-221 (lines=3) @@
216
                if ($this->name == 'tags' && $this->relationObject->getRelatedClass() == 'TagObject') {
217
                    $html .= '<p><strong>'.$this->label.':</strong>';
218
219
                    foreach ($objects as $tag) {
220
                        $html .= ' <a href="'.$config->get('app.url').'/search/'.$tag->get('content').'">'.$tag->get('content').'</a>';
221
                    }
222
223
                    $html .= '</p>';
224
                } else {

Alpha/Controller/ArticleController.php 1 location

@@ 553-555 (lines=3) @@
550
                    if (count($tags) > 0) {
551
                        $html .= '<p>Tags:';
552
553
                        foreach ($tags as $tag) {
554
                            $html .= ' <a href="'.$config->get('app.url').'/search/'.$tag->get('content').'">'.$tag->get('content').'</a>';
555
                        }
556
                        $html .= '</p>';
557
                    }
558
                }