Cleaning up unnecessary use of 'die' and 'exit'

This commit is contained in:
Dan Cryer 2015-02-12 12:37:56 +00:00
commit 2d5659d613
13 changed files with 188 additions and 106 deletions

View file

@ -68,7 +68,8 @@ class HomeController extends \PHPCI\Controller
*/
public function latest()
{
die($this->getLatestBuildsHtml());
$this->response->setContent($this->getLatestBuildsHtml());
return $this->response;
}
/**
@ -77,7 +78,8 @@ class HomeController extends \PHPCI\Controller
public function summary()
{
$projects = $this->projectStore->getWhere(array(), 50, 0, array(), array('title' => 'ASC'));
die($this->getSummaryHtml($projects));
$this->response->setContent($this->getSummaryHtml($projects));
return $this->response;
}
/**