Code Duplication    Length = 3-3 lines in 2 locations

main/gradebook/lib/fe/gradebooktable.class.php 2 locations

@@ 296-298 (lines=3) @@
293
            $total_categories_weight += $item->get_weight();
294
295
            // Description.
296
            if ($this->exportToPdf == false) {
297
                $row[] = $invisibility_span_open.$data[2].$invisibility_span_close;
298
            }
299
300
            // Weight.
301
            $weight = $scoredisplay->display_score(
@@ 462-464 (lines=3) @@
459
                        $row[] = $invisibility_span_open."     ".$this->build_name_link($item, $type) . $invisibility_span_close;
460
461
                        // Description.
462
                        if ($this->exportToPdf == false) {
463
                            $row[] = $invisibility_span_open.$data[2].$invisibility_span_close;
464
                        }
465
466
                        $weight = $data[3];
467
                        $total_weight += $weight;