original_string: protected function getRelationMappedMorphClass($type)
      {
          $map = Relation::morphMap();
  
          if (empty($map)) {
              return $type;
          }
  
          return array_get($map, $type, ltrim($type, '\\'));
      }
code: protected function getRelationMappedMorphClass($type)
      {
          $map = Relation::morphMap();
  
          if (empty($map)) {
              return $type;
          }
  
          return array_get($map, $type, ltrim($type, '\\'));
      }
code_tokens: protected function getRelationMappedMorphClass ( $ type ) { $ map = Relation :: morphMap ( ) ; if ( empty ( $ map ) ) { return $ type ; } return array_get ( $ map , $ type , ltrim ( $ type , '\\' ) ) ; }
docstring: Returns morph relation class string for a morph relation type, or type if already a class.
  
  @param string $type
  @return string
docstring_tokens: Returns morph relation class string for a morph relation type or type if already a class .