original_string: private function migrateCurriculum()
      {
          foreach ($this->departments() as $department) {
              $this->setDepartment($department);
              $this->showMigratingInfo($department,1);
              $this->migrateDepartment($department);
              foreach ($this->studies($department) as $study) {
                  $this->setStudy($study);
                  $this->showMigratingInfo($study,2);
                  $this->migrateStudy($study);
                  $this->addStudyToDeparment();
                  foreach ($this->courses($study) as $course) {
                      $this->setCourse($course);
                      $this->showMigratingInfo($course,3);
                      $this->migrateCourse($course);
                      $this->addCourseToStudy();
                      foreach ($this->modules($course) as $module) {
                          $this->setModule($module);
                          $this->showMigratingInfo($module, 4);
                          $this->migrateModule($module);
                          $this->addModuleToCourse();
                          foreach ($this->submodules($module) as $submodule) {
                              $this->setSubmodule($submodule);
                              $this->showMigratingInfo($submodule, 5);
                              $this->migrateSubmodule($submodule);
                              $this->addSubModuleToModule();
                          }
                      }
                  }
              }
          }
      }
code: private function migrateCurriculum()
      {
          foreach ($this->departments() as $department) {
              $this->setDepartment($department);
              $this->showMigratingInfo($department,1);
              $this->migrateDepartment($department);
              foreach ($this->studies($department) as $study) {
                  $this->setStudy($study);
                  $this->showMigratingInfo($study,2);
                  $this->migrateStudy($study);
                  $this->addStudyToDeparment();
                  foreach ($this->courses($study) as $course) {
                      $this->setCourse($course);
                      $this->showMigratingInfo($course,3);
                      $this->migrateCourse($course);
                      $this->addCourseToStudy();
                      foreach ($this->modules($course) as $module) {
                          $this->setModule($module);
                          $this->showMigratingInfo($module, 4);
                          $this->migrateModule($module);
                          $this->addModuleToCourse();
                          foreach ($this->submodules($module) as $submodule) {
                              $this->setSubmodule($submodule);
                              $this->showMigratingInfo($submodule, 5);
                              $this->migrateSubmodule($submodule);
                              $this->addSubModuleToModule();
                          }
                      }
                  }
              }
          }
      }
code_tokens: private function migrateCurriculum ( ) { foreach ( $ this -> departments ( ) as $ department ) { $ this -> setDepartment ( $ department ) ; $ this -> showMigratingInfo ( $ department , 1 ) ; $ this -> migrateDepartment ( $ department ) ; foreach ( $ this -> studies ( $ department ) as $ study ) { $ this -> setStudy ( $ study ) ; $ this -> showMigratingInfo ( $ study , 2 ) ; $ this -> migrateStudy ( $ study ) ; $ this -> addStudyToDeparment ( ) ; foreach ( $ this -> courses ( $ study ) as $ course ) { $ this -> setCourse ( $ course ) ; $ this -> showMigratingInfo ( $ course , 3 ) ; $ this -> migrateCourse ( $ course ) ; $ this -> addCourseToStudy ( ) ; foreach ( $ this -> modules ( $ course ) as $ module ) { $ this -> setModule ( $ module ) ; $ this -> showMigratingInfo ( $ module , 4 ) ; $ this -> migrateModule ( $ module ) ; $ this -> addModuleToCourse ( ) ; foreach ( $ this -> submodules ( $ module ) as $ submodule ) { $ this -> setSubmodule ( $ submodule ) ; $ this -> showMigratingInfo ( $ submodule , 5 ) ; $ this -> migrateSubmodule ( $ submodule ) ; $ this -> addSubModuleToModule ( ) ; } } } } } }
docstring: Migrate curriculum.
docstring_tokens: Migrate curriculum .