original_string: public function scopeActive($query)
      {
          return $this->scopeActiveOn($query,
                  AcademicPeriod::current()->get()->first()->id);
      }
code: public function scopeActive($query)
      {
          return $this->scopeActiveOn($query,
                  AcademicPeriod::current()->get()->first()->id);
      }
code_tokens: public function scopeActive ( $ query ) { return $ this -> scopeActiveOn ( $ query , AcademicPeriod :: current ( ) -> get ( ) -> first ( ) -> id ) ; }
docstring: Only teachers active for current period.
  
  @param \Illuminate\Database\Eloquent\Builder $query
  @return mixed
docstring_tokens: Only teachers active for current period .