original_string: protected function createCourse(Course $srcCourse)
      {
          $course = ScoolCourse::firstOrNew([
              'name'         => $srcCourse->name,
          ]);
          $course->save();
          $course->shortname = $srcCourse->shortname;
          $course->description = $srcCourse->description;
  
          return $course;
      }
code: protected function createCourse(Course $srcCourse)
      {
          $course = ScoolCourse::firstOrNew([
              'name'         => $srcCourse->name,
          ]);
          $course->save();
          $course->shortname = $srcCourse->shortname;
          $course->description = $srcCourse->description;
  
          return $course;
      }
code_tokens: protected function createCourse ( Course $ srcCourse ) { $ course = ScoolCourse :: firstOrNew ( [ 'name' => $ srcCourse -> name , ] ) ; $ course -> save ( ) ; $ course -> shortname = $ srcCourse -> shortname ; $ course -> description = $ srcCourse -> description ; return $ course ; }
docstring: Create scool course using ebre-escool course.
  
  @param Course $srcCourse
  @return mixed
docstring_tokens: Create scool course using ebre - escool course .