private function getProjectNotFoundMessage($projectId)
    {
        $message = 'Specified project not found: ' . $projectId;
        if ($projects = $this->api()->getProjects()) {
            $message .= "\n\nYour projects are:";
            $limit = 8;
            foreach (array_slice($projects, 0, $limit) as $project) {
                $message .= "\n    " . $project->id;
                if ($project->title) {
                    $message .= ' - ' . $project->title;
                }
            }
            if (count($projects) > $limit) {
                $message .= "\n    ...";
                $message .= "\n\n    List projects with: " . $this->config()->get('application.executable') . ' project:list';
            }
        }

        return $message;
    }
private function getProjectNotFoundMessage($projectId)
    {
        $message = 'Specified project not found: ' . $projectId;
        if ($projects = $this->api()->getProjects()) {
            $message .= "\n\nYour projects are:";
            $limit = 8;
            foreach (array_slice($projects, 0, $limit) as $project) {
                $message .= "\n    " . $project->id;
                if ($project->title) {
                    $message .= ' - ' . $project->title;
                }
            }
            if (count($projects) > $limit) {
                $message .= "\n    ...";
                $message .= "\n\n    List projects with: " . $this->config()->get('application.executable') . ' project:list';
            }
        }

        return $message;
    }
private function getProjectNotFoundMessage ( $ projectId ) { $ message = 'Specified project not found: ' . $ projectId ; if ( $ projects = $ this -> api ( ) -> getProjects ( ) ) { $ message .= "\n\nYour projects are:" ; $ limit = 8 ; foreach ( array_slice ( $ projects , 0 , $ limit ) as $ project ) { $ message .= "\n    " . $ project -> id ; if ( $ project -> title ) { $ message .= ' - ' . $ project -> title ; } } if ( count ( $ projects ) > $ limit ) { $ message .= "\n    ..." ; $ message .= "\n\n    List projects with: " . $ this -> config ( ) -> get ( 'application.executable' ) . ' project:list' ; } } return $ message ; }
Format an error message about a not-found project.

@param string $projectId

@return string
Format an error message about a not - found project .