Code Duplication    Length = 3-3 lines in 2 locations

Apps/Controller/Admin/Content.php 2 locations

@@ 309-311 (lines=3) @@
306
        $ids = App::$Request->query->get('selected');
307
308
        // check if input is array
309
        if (!Obj::isArray($ids) || count($ids) < 1) {
310
            throw new NotFoundException(__('Nothing to delete is founded'));
311
        }
312
313
        // get all records as object from db
314
        $records = ContentEntity::find($ids);
@@ 347-349 (lines=3) @@
344
    {
345
        // get ids as array from GET
346
        $ids = App::$Request->query->get('selected');
347
        if (!Obj::isArray($ids) || count($ids) < 1) {
348
            throw new NotFoundException(__('Items to publish is not found'));
349
        }
350
351
        // try to find items in db
352
        $records = ContentEntity::whereIn('id', $ids)->where('display', '=', 0);