* [misc] Optimated code.

This commit is contained in:
xieqiyu
2024-09-09 14:22:42 +08:00
committed by 唐胡成
parent e65ae671a0
commit 025acf97c1
+1 -10
View File
@@ -1850,16 +1850,7 @@ class tutorialModel extends model
*/
public function getPrograms(): array
{
$program = $this->getProject();
$program->id = 1;
$program->name = 'Test program';
$program->project = 0;
$program->type = 'program';
$program->parent = 0;
$program->path = ',1,';
$program->grade = 1;
return array(1 => $program);
return array(1 => $this->getProgram());
}
/**