original_string: public static function get_areas($tagcollid) {
          $allitemtypes = core_tag_area::get_areas($tagcollid, true);
          $itemtypes = array();
          foreach ($allitemtypes as $itemtype => $it) {
              foreach ($it as $component => $v) {
                  $itemtypes[$v->id] = $v;
              }
          }
          return $itemtypes;
      }
code: public static function get_areas($tagcollid) {
          $allitemtypes = core_tag_area::get_areas($tagcollid, true);
          $itemtypes = array();
          foreach ($allitemtypes as $itemtype => $it) {
              foreach ($it as $component => $v) {
                  $itemtypes[$v->id] = $v;
              }
          }
          return $itemtypes;
      }
code_tokens: public static function get_areas ( $ tagcollid ) { $ allitemtypes = core_tag_area :: get_areas ( $ tagcollid , true ) ; $ itemtypes = array ( ) ; foreach ( $ allitemtypes as $ itemtype => $ it ) { foreach ( $ it as $ component => $ v ) { $ itemtypes [ $ v -> id ] = $ v ; } } return $ itemtypes ; }
docstring: Returns all tag areas in the given tag collection
  
  @param int $tagcollid
  @return array
docstring_tokens: Returns all tag areas in the given tag collection