protected function findFrameworkType($type)
    {
        $frameworkType = false;

        krsort($this->supportedTypes);

        foreach ($this->supportedTypes as $key => $val) {
            if ($key === substr($type, 0, strlen($key))) {
                $frameworkType = substr($type, 0, strlen($key));
                break;
            }
        }

        return $frameworkType;
    }
protected function findFrameworkType($type)
    {
        $frameworkType = false;

        krsort($this->supportedTypes);

        foreach ($this->supportedTypes as $key => $val) {
            if ($key === substr($type, 0, strlen($key))) {
                $frameworkType = substr($type, 0, strlen($key));
                break;
            }
        }

        return $frameworkType;
    }
protected function findFrameworkType ( $ type ) { $ frameworkType = false ; krsort ( $ this -> supportedTypes ) ; foreach ( $ this -> supportedTypes as $ key => $ val ) { if ( $ key === substr ( $ type , 0 , strlen ( $ key ) ) ) { $ frameworkType = substr ( $ type , 0 , strlen ( $ key ) ) ; break ; } } return $ frameworkType ; }
Finds a supported framework type if it exists and returns it

@param  string $type
@return string
Finds a supported framework type if it exists and returns it