@@ -30,7 +30,7 @@ class EducationModel extends Model
->order('sort', 'asc')
->column('id,pid,name,sort', 'id');
- $tree = array();
+ $tree = [] ;
foreach ($items as $key => $item) {
$items[$key]['oriName'] = $item['name'];
if (isset ($items [$item ['pid']])) {
@@ -23,7 +23,7 @@ class EducationController
- $tree = array(); //格式化好的树
+ $tree = []; //格式化好的树
if (isset($items[$item['pid']])) {