Adding Docblocks throughout the project and lowering the missing docblock limit in phpci.yml to zero.

Closes #692
This commit is contained in:
Dan Cryer 2014-12-08 11:25:33 +00:00
commit 7f9a09fa29
83 changed files with 1283 additions and 69 deletions

View file

@ -21,6 +21,11 @@ use PHPCI\Store\Base\ProjectStoreBase;
*/
class ProjectStore extends ProjectStoreBase
{
/**
* Returns a list of all branch names PHPCI has run builds against.
* @param $projectId
* @return array
*/
public function getKnownBranches($projectId)
{
$query = 'SELECT DISTINCT branch from build WHERE project_id = :pid';
@ -41,6 +46,10 @@ class ProjectStore extends ProjectStoreBase
}
}
/**
* Get a list of all projects, ordered by their title.
* @return array
*/
public function getAll()
{
$query = 'SELECT * FROM `project` ORDER BY `title` ASC';