Code Duplication    Length = 6-6 lines in 5 locations

frontend/views/media/protected.php 1 location

@@ 17-22 (lines=6) @@
14
15
$this->title = Html::encode($media->title . ' - ' . Option::get('sitetitle'));
16
17
if ($media->mediaPost) {
18
    $this->params['breadcrumbs'][] = [
19
        'label' => Html::encode($media->mediaPost->title),
20
        'url' => $media->mediaPost->url,
21
    ];
22
}
23
24
$this->params['breadcrumbs'][] = Html::encode($media->title);
25
?>

frontend/views/media/view.php 1 location

@@ 20-25 (lines=6) @@
17
18
$this->title = Html::encode($media->title . ' - ' . Option::get('sitetitle'));
19
20
if ($media->mediaPost) {
21
    $this->params['breadcrumbs'][] = [
22
        'label' => Html::encode($media->mediaPost->title),
23
        'url' => $media->mediaPost->url,
24
    ];
25
}
26
27
$this->params['breadcrumbs'][] = Html::encode($media->title);
28
CommentAsset::register($this);

themes/writesdown/media/protected.php 1 location

@@ 17-22 (lines=6) @@
14
15
$this->title = Html::encode($media->title . ' - ' . Option::get('sitetitle'));
16
17
if ($media->mediaPost) {
18
    $this->params['breadcrumbs'][] = [
19
        'label' => Html::encode($media->mediaPost->title),
20
        'url' => $media->mediaPost->url,
21
    ];
22
}
23
24
$this->params['breadcrumbs'][] = Html::encode($media->title);
25
?>

themes/writesdown/media/view-image.php 1 location

@@ 20-25 (lines=6) @@
17
18
$this->title = Html::encode($media->title . ' - ' . Option::get('sitetitle'));
19
20
if ($media->mediaPost) {
21
    $this->params['breadcrumbs'][] = [
22
        'label' => Html::encode($media->mediaPost->title),
23
        'url' => $media->mediaPost->url,
24
    ];
25
}
26
27
$this->params['breadcrumbs'][] = Html::encode($media->title);
28
CommentAsset::register($this);

themes/writesdown/media/view.php 1 location

@@ 20-25 (lines=6) @@
17
18
$this->title = Html::encode($media->title . ' - ' . Option::get('sitetitle'));
19
20
if ($media->mediaPost) {
21
    $this->params['breadcrumbs'][] = [
22
        'label' => Html::encode($media->mediaPost->title),
23
        'url' => $media->mediaPost->url,
24
    ];
25
}
26
27
$this->params['breadcrumbs'][] = Html::encode($media->title);
28
CommentAsset::register($this);