Code Duplication    Length = 7-7 lines in 2 locations

src/Reports/PagesDueForReviewReport.php 1 location

@@ 199-205 (lines=7) @@
196
        }
197
198
        // Show virtual pages?
199
        if (empty($params["ShowVirtualPages"])) {
200
            $virtualPageClasses = ClassInfo::subclassesFor(VirtualPage::class);
201
            $records = $records->where(sprintf(
202
                "\"SiteTree\".\"ClassName\" NOT IN ('%s')",
203
                implode("','", array_values($virtualPageClasses))
204
            ));
205
        }
206
207
        // Owner dropdown
208
        if (!empty($params[ContentReviewOwner::class])) {

src/Reports/PagesWithoutReviewScheduleReport.php 1 location

@@ 119-125 (lines=7) @@
116
        // If there's no review dates set, default to all pages due for review now.
117
118
        // Show virtual pages?
119
        if (empty($params["ShowVirtualPages"])) {
120
            $virtualPageClasses = ClassInfo::subclassesFor(VirtualPage::class);
121
            $records = $records->where(sprintf(
122
                "\"SiteTree\".\"ClassName\" NOT IN ('%s')",
123
                implode("','", array_values($virtualPageClasses))
124
            ));
125
        }
126
127
        $records->sort("ParentID");
128
        $records = $records->toArray();