original_string: protected function determineType()
      {
          if (in_array($this->group, static::$linkGroups)) {
              return 'link';
          }
  
          if (in_array($this->extension, static::$pictureExtensions)) {
              return 'picture';
          }
  
          if (in_array($this->extension, static::$videoExtensions)) {
              return 'video';
          }
  
          return 'document';
      }
code: protected function determineType()
      {
          if (in_array($this->group, static::$linkGroups)) {
              return 'link';
          }
  
          if (in_array($this->extension, static::$pictureExtensions)) {
              return 'picture';
          }
  
          if (in_array($this->extension, static::$videoExtensions)) {
              return 'video';
          }
  
          return 'document';
      }
code_tokens: protected function determineType ( ) { if ( in_array ( $ this -> group , static :: $ linkGroups ) ) { return 'link' ; } if ( in_array ( $ this -> extension , static :: $ pictureExtensions ) ) { return 'picture' ; } if ( in_array ( $ this -> extension , static :: $ videoExtensions ) ) { return 'video' ; } return 'document' ; }
docstring: Tries to determine type by extention or group
  
  @return string
docstring_tokens: Tries to determine type by extention or group