Cleaning up unnecessary use of 'die' and 'exit'
This commit is contained in:
parent
84b00e305e
commit
2d5659d613
13 changed files with 188 additions and 106 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue