From 025acf97c1f4bc967eff58e5c7aaa6a3877a9c07 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Mon, 9 Sep 2024 14:19:42 +0800 Subject: [PATCH] * [misc] Optimated code. --- module/tutorial/model.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/module/tutorial/model.php b/module/tutorial/model.php index 828396053f..e0d3a14039 100644 --- a/module/tutorial/model.php +++ b/module/tutorial/model.php @@ -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()); } /**