public presentShortCommitHash ( ) : string | ||
Результат | string |
public function presentShortCommitHash()
{
if ($this->short_commit === Deployment::LOADING) {
if ($this->status === Deployment::FAILED) {
return Lang::get('deployments.unknown');
}
return Lang::get('deployments.loading');
}
return $this->short_commit;
}