original_string: protected function get_cognitive_indicator($modname) {
          $indicators = \core_analytics\manager::get_all_indicators();
          foreach ($indicators as $indicator) {
              if ($indicator instanceof community_of_inquiry_activity &&
                      $indicator->get_indicator_type() === community_of_inquiry_activity::INDICATOR_COGNITIVE &&
                      $indicator->get_activity_type() === $modname) {
                  return $indicator;
              }
          }
          return false;
      }
code: protected function get_cognitive_indicator($modname) {
          $indicators = \core_analytics\manager::get_all_indicators();
          foreach ($indicators as $indicator) {
              if ($indicator instanceof community_of_inquiry_activity &&
                      $indicator->get_indicator_type() === community_of_inquiry_activity::INDICATOR_COGNITIVE &&
                      $indicator->get_activity_type() === $modname) {
                  return $indicator;
              }
          }
          return false;
      }
code_tokens: protected function get_cognitive_indicator ( $ modname ) { $ indicators = \ core_analytics \ manager :: get_all_indicators ( ) ; foreach ( $ indicators as $ indicator ) { if ( $ indicator instanceof community_of_inquiry_activity && $ indicator -> get_indicator_type ( ) === community_of_inquiry_activity :: INDICATOR_COGNITIVE && $ indicator -> get_activity_type ( ) === $ modname ) { return $ indicator ; } } return false ; }
docstring: Returns the cognitive depth class of this indicator.
  
  @param string $modname
  @return \core_analytics\local\indicator\base|false
docstring_tokens: Returns the cognitive depth class of this indicator .