Code Duplication    Length = 11-11 lines in 2 locations

src/Reports/PagesDueForReviewReport.php 1 location

@@ 112-122 (lines=11) @@
109
            "LastEditedByName" => "Last edited by",
110
            "AbsoluteLink" => array(
111
                "title" => "URL",
112
                "formatting" => function ($value, $item) {
113
                    $liveLink = $item->AbsoluteLiveLink;
114
                    $stageLink = $item->AbsoluteLink();
115
116
                    return sprintf(
117
                        "%s <a href='%s'>%s</a>",
118
                        $stageLink,
119
                        $liveLink ? $liveLink : $stageLink . "?stage=Stage",
120
                        $liveLink ? "(live)" : "(draft)"
121
                    );
122
                }
123
            ),
124
            "ContentReviewType" => array(
125
                "title" => "Settings are",

src/Reports/PagesWithoutReviewScheduleReport.php 1 location

@@ 66-76 (lines=11) @@
63
            "LastEditedByName"  => "Last edited by",
64
            "AbsoluteLink"      => array(
65
                "title"      => "URL",
66
                "formatting" => function ($value, $item) {
67
                    $liveLink = $item->AbsoluteLiveLink;
68
                    $stageLink = $item->AbsoluteLink();
69
70
                    return sprintf(
71
                        "%s <a href='%s'>%s</a>",
72
                        $stageLink,
73
                        $liveLink ? $liveLink : $stageLink . "?stage=Stage",
74
                        $liveLink ? "(live)" : "(draft)"
75
                    );
76
                },
77
            ),
78
            "ContentReviewType" => array(
79
                "title"      => "Settings are",