Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized function calls.
This commit is contained in:
@@ -251,14 +251,20 @@ foreach($arrayQuestions_cartest as $group){
|
||||
$view .= '<a href="#">'.$group['Group'].'</a>';
|
||||
}
|
||||
}
|
||||
$view .= '</div>';
|
||||
|
||||
$view .= '</div>';
|
||||
|
||||
foreach($arrayQuestions_cartest as $group){
|
||||
|
||||
if ($group['Group_sequence'] == 1){
|
||||
$view .= '<div class="tabs">
|
||||
<a href="#" class="active">'.$group['Group'].'</a>
|
||||
</div>';
|
||||
$view .= '<div class="content-block tab-content active">
|
||||
<div class="form responsive-width-100">';
|
||||
} else {
|
||||
$view .= '<div class="tabs">
|
||||
<a href="#">'.$group['Group'].'</a>
|
||||
</div>';
|
||||
$view .= '<div class="content-block tab-content">
|
||||
<div class="form responsive-width-100">';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user