REBELinBLUE\Deployer\Presenters\CommandPresenter::commandNames PHP Method

commandNames() private method

Gets the readable list of commands.
private commandNames ( integer $stage ) : string
$stage integer
return string
    private function commandNames($stage)
    {
        $commands = [];
        foreach ($this->getObject()->commands as $command) {
            if ($command->step === $stage) {
                $commands[] = $command->name;
            }
        }
        if (count($commands)) {
            return implode(', ', $commands);
        }
        return Lang::get('app.none');
    }