original_string: protected function translateClassroomId($oldClassroomId)
      {
          $classroom = Classroom::where('name',ClassroomGroup::findOrFail($oldClassroomId)->name)->first();
          if ( $classroom != null ) {
              return $classroom->id;
          }
          throw new ClassroomNotFoundByNameException();
      }
code: protected function translateClassroomId($oldClassroomId)
      {
          $classroom = Classroom::where('name',ClassroomGroup::findOrFail($oldClassroomId)->name)->first();
          if ( $classroom != null ) {
              return $classroom->id;
          }
          throw new ClassroomNotFoundByNameException();
      }
code_tokens: protected function translateClassroomId ( $ oldClassroomId ) { $ classroom = Classroom :: where ( 'name' , ClassroomGroup :: findOrFail ( $ oldClassroomId ) -> name ) -> first ( ) ; if ( $ classroom != null ) { return $ classroom -> id ; } throw new ClassroomNotFoundByNameException ( ) ; }
docstring: Translate old ebre-escool classroom id to scool id.
  
  @param $oldClassroomId
  @return integer
  @throws ClassroomNotFoundByNameException
docstring_tokens: Translate old ebre - escool classroom id to scool id .