public function getAppNames()
    {
        $apps = [];
        if ($projectRoot = $this->getWelcomeCommand()->getProjectRoot()) {
            foreach (LocalApplication::getApplications($projectRoot) as $app) {
                $name = $app->getName();
                if ($name !== null) {
                    $apps[] = $name;
                }
            }
        } elseif ($project = $this->getProject()) {
            if ($environment = $this->api->getEnvironment('master', $project, false)) {
                $apps = array_keys($environment->getSshUrls());
            }
        }

        return $apps;
    }
public function getAppNames()
    {
        $apps = [];
        if ($projectRoot = $this->getWelcomeCommand()->getProjectRoot()) {
            foreach (LocalApplication::getApplications($projectRoot) as $app) {
                $name = $app->getName();
                if ($name !== null) {
                    $apps[] = $name;
                }
            }
        } elseif ($project = $this->getProject()) {
            if ($environment = $this->api->getEnvironment('master', $project, false)) {
                $apps = array_keys($environment->getSshUrls());
            }
        }

        return $apps;
    }
public function getAppNames ( ) { $ apps = [ ] ; if ( $ projectRoot = $ this -> getWelcomeCommand ( ) -> getProjectRoot ( ) ) { foreach ( LocalApplication :: getApplications ( $ projectRoot ) as $ app ) { $ name = $ app -> getName ( ) ; if ( $ name !== null ) { $ apps [ ] = $ name ; } } } elseif ( $ project = $ this -> getProject ( ) ) { if ( $ environment = $ this -> api -> getEnvironment ( 'master' , $ project , false ) ) { $ apps = array_keys ( $ environment -> getSshUrls ( ) ) ; } } return $ apps ; }
Get a list of application names in the local project.

@return string[]
Get a list of application names in the local project .