original_string: public function modules()
      {
          $courses = $this->courses->pluck('course_id');
          return StudyModule::whereHas('modulesByPeriod.courses', function ($query) use ($courses)  {
              $query->whereIn('course_id',$courses);
          });
      }
code: public function modules()
      {
          $courses = $this->courses->pluck('course_id');
          return StudyModule::whereHas('modulesByPeriod.courses', function ($query) use ($courses)  {
              $query->whereIn('course_id',$courses);
          });
      }
code_tokens: public function modules ( ) { $ courses = $ this -> courses -> pluck ( 'course_id' ) ; return StudyModule :: whereHas ( 'modulesByPeriod.courses' , function ( $ query ) use ( $ courses ) { $ query -> whereIn ( 'course_id' , $ courses ) ; } ) ; }
docstring: Get the active study modules for this study.
docstring_tokens: Get the active study modules for this study .