original_string: protected function supportedType($type)
      {
          $supportedType = false;
  
          $baseType = substr($type, 0, strpos($type, '-'));
  
          if (array_key_exists($baseType, $this->supportedTypes)) {
              $supportedType = $baseType;
          }
  
          return $supportedType;
      }
code: protected function supportedType($type)
      {
          $supportedType = false;
  
          $baseType = substr($type, 0, strpos($type, '-'));
  
          if (array_key_exists($baseType, $this->supportedTypes)) {
              $supportedType = $baseType;
          }
  
          return $supportedType;
      }
code_tokens: protected function supportedType ( $ type ) { $ supportedType = false ; $ baseType = substr ( $ type , 0 , strpos ( $ type , '-' ) ) ; if ( array_key_exists ( $ baseType , $ this -> supportedTypes ) ) { $ supportedType = $ baseType ; } return $ supportedType ; }
docstring: Find the matching installer type
  
  @param string $type
  @return boolean|string
docstring_tokens: Find the matching installer type