Code Duplication    Length = 3-3 lines in 3 locations

admin/blocksadmin.php 3 locations

@@ 126-128 (lines=3) @@
123
            $sql          = 'SELECT module_id FROM ' . $db->prefix('block_module_link') . ' WHERE block_id=' . $i->getVar('bid');
124
            $result       = $db->query($sql);
125
            $modules      = [];
126
            while (false !== ($row = $db->fetchArray($result))) {
127
                $modules[] = (int)$row['module_id'];
128
            }
129
130
            $cachetime_options = '';
131
            foreach ($cachetimes as $cachetime => $cachetime_name) {
@@ 298-300 (lines=3) @@
295
        $sql     = 'SELECT module_id FROM ' . $db->prefix('block_module_link') . ' WHERE block_id=' . (int)$bid;
296
        $result  = $db->query($sql);
297
        $modules = [];
298
        while (false !== ($row = $db->fetchArray($result))) {
299
            $modules[] = (int)$row['module_id'];
300
        }
301
        $is_custom = ('C' === $myblock->getVar('block_type') || 'E' === $myblock->getVar('block_type'));
302
        $block     = [
303
            'title'      => $myblock->getVar('title') . ' Clone',
@@ 436-438 (lines=3) @@
433
        $sql     = 'SELECT module_id FROM ' . $db->prefix('block_module_link') . ' WHERE block_id=' . (int)$bid;
434
        $result  = $db->query($sql);
435
        $modules = [];
436
        while (false !== ($row = $db->fetchArray($result))) {
437
            $modules[] = (int)$row['module_id'];
438
        }
439
        $is_custom = ('C' === $myblock->getVar('block_type') || 'E' === $myblock->getVar('block_type'));
440
        $block     = [
441
            'title'      => $myblock->getVar('title'),