@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $students = Institution_class_student::where('institution_class_id',0)->get()->toArray(); |
45 | 45 | if(count($students)>0){ |
46 | 46 | processParallel(array($this,'process'),$students,15); |
47 | - }else{ |
|
47 | + } else{ |
|
48 | 48 | echo "all are updated \r\n"; |
49 | 49 | } |
50 | 50 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | Institution_class_student::where('student_id',$student['student_id']) |
57 | 57 | ->update(['institution_class_id' => $institutionClass->id,'education_grade_id' => $student['education_grade_id']]); |
58 | 58 | echo "updated:" .$student['student_id']; |
59 | - }else{ |
|
59 | + } else{ |
|
60 | 60 | Institution_class_student::where('student_id',$student['student_id'])->delete(); |
61 | 61 | } |
62 | 62 | } |