Code Duplication    Length = 6-6 lines in 2 locations

profile.php 1 location

@@ 37-42 (lines=6) @@
34
    $crit->setSort('name');
35
    $responseTpl =& $hResponseTpl->getObjects($crit);
36
37
    foreach($responseTpl as $response){
38
        $aResponseTpl[] = array('id'=>$response->getVar('id'),
39
                              'uid'=>$response->getVar('uid'),
40
                              'name'=>$response->getVar('name'),
41
                              'response'=>$response->getVar('response'));
42
    }
43
    $has_responseTpl = count($responseTpl) > 0;
44
    unset($responseTpl);
45

response.php 1 location

@@ 392-397 (lines=6) @@
389
        $responseTpl =& $hResponseTpl->getObjects($crit);
390
391
        $aResponseTpl = array();
392
        foreach($responseTpl as $response){
393
            $aResponseTpl[] = array('id'=>$response->getVar('id'),
394
            'uid'=>$response->getVar('uid'),
395
            'name'=>$response->getVar('name'),
396
            'response'=>$response->getVar('response'));
397
        }
398
        $has_responseTpl = count($responseTpl) > 0;
399
        unset($responseTpl);
400
        $displayTpl =& $hResponseTpl->get($refresh);