final public static function detectAppType(string $appname):string
    {
        $apptype = 'none';
        $appsp = AppTools::registerApps();
        $appbs = AppTools::registerBaseApps();

        foreach ($appsp as $one => $val) {
            if ($one == $appname) {
                return ('simple');
            }
        }

        foreach ($appbs as $one => $val) {
            if ($val['name'] == $appname) {
                return ('base');
            }
        }

        return ($apptype);
    }
final public static function detectAppType(string $appname):string
    {
        $apptype = 'none';
        $appsp = AppTools::registerApps();
        $appbs = AppTools::registerBaseApps();

        foreach ($appsp as $one => $val) {
            if ($one == $appname) {
                return ('simple');
            }
        }

        foreach ($appbs as $one => $val) {
            if ($val['name'] == $appname) {
                return ('base');
            }
        }

        return ($apptype);
    }
final public static function detectAppType ( string $ appname ) : string { $ apptype = 'none' ; $ appsp = AppTools :: registerApps ( ) ; $ appbs = AppTools :: registerBaseApps ( ) ; foreach ( $ appsp as $ one => $ val ) { if ( $ one == $ appname ) { return ( 'simple' ) ; } } foreach ( $ appbs as $ one => $ val ) { if ( $ val [ 'name' ] == $ appname ) { return ( 'base' ) ; } } return ( $ apptype ) ; }
Detect the app type
@param string $appname App name
@return string The type of app called. Possibility to return a << none >> app when appname not detected
@throws
Detect the app type