Adding Docblocks throughout the project and lowering the missing docblock limit in phpci.yml to zero.
Closes #692
This commit is contained in:
parent
a2d136e0f1
commit
7f9a09fa29
83 changed files with 1283 additions and 69 deletions
|
|
@ -30,6 +30,9 @@ class BuildStatusController extends \PHPCI\Controller
|
|||
protected $projectStore;
|
||||
protected $buildStore;
|
||||
|
||||
/**
|
||||
* Initialise the controller, set up stores and services.
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
$this->response->disableLayout();
|
||||
|
|
@ -79,6 +82,12 @@ class BuildStatusController extends \PHPCI\Controller
|
|||
die(file_get_contents('http://img.shields.io/badge/build-' . $status . '-' . $color . '.svg'));
|
||||
}
|
||||
|
||||
/**
|
||||
* View the public status page of a given project, if enabled.
|
||||
* @param $projectId
|
||||
* @return string
|
||||
* @throws \b8\Exception\HttpException\NotFoundException
|
||||
*/
|
||||
public function view($projectId)
|
||||
{
|
||||
$project = $this->projectStore->getById($projectId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue