Code Duplication    Length = 3-3 lines in 2 locations

main/inc/lib/myspace.lib.php 1 location

@@ 786-788 (lines=3) @@
783
                    break;
784
                default:
785
                    $title = "";
786
                    if (!empty($exercises[$cnt - 4]['title'])) {
787
                        $title = ucwords(strtolower(trim($exercises[$cnt - 4]['title'])));
788
                    }
789
790
                    $column[] = $title;
791
                    $column_model[] = array(

main/inc/ajax/model.ajax.php 1 location

@@ 1480-1482 (lines=3) @@
1477
                    break;
1478
                default:
1479
                    $title = "";
1480
                    if (!empty($exercises[$cnt - 4]['title'])) {
1481
                        $title = ucwords(strtolower(trim($exercises[$cnt - 4]['title'])));
1482
                    }
1483
                    $columns[] = 'exer' . $i;
1484
                    $column_names[] = $title;
1485
                    $i++;