original_string: public static function is_enabled($component, $itemtype) {
          global $CFG;
          if (empty($CFG->usetags)) {
              return false;
          }
          $itemtypes = self::get_areas();
          if (isset($itemtypes[$itemtype][$component])) {
              return $itemtypes[$itemtype][$component]->enabled ? true : false;
          }
          return null;
      }
code: public static function is_enabled($component, $itemtype) {
          global $CFG;
          if (empty($CFG->usetags)) {
              return false;
          }
          $itemtypes = self::get_areas();
          if (isset($itemtypes[$itemtype][$component])) {
              return $itemtypes[$itemtype][$component]->enabled ? true : false;
          }
          return null;
      }
code_tokens: public static function is_enabled ( $ component , $ itemtype ) { global $ CFG ; if ( empty ( $ CFG -> usetags ) ) { return false ; } $ itemtypes = self :: get_areas ( ) ; if ( isset ( $ itemtypes [ $ itemtype ] [ $ component ] ) ) { return $ itemtypes [ $ itemtype ] [ $ component ] -> enabled ? true : false ; } return null ; }
docstring: Returns whether the tag area is enabled
  
  @param string $component component responsible for tagging
  @param string $itemtype what is being tagged, for example, 'post', 'course', 'user', etc.
  @return bool|null
docstring_tokens: Returns whether the tag area is enabled