Private functions should be prefixed with an _

This commit is contained in:
James Brooks
2014-11-25 20:31:19 +00:00
parent 49f42b57c9
commit 620a7ebcb5

View File

@@ -88,7 +88,7 @@
public function postIncidents() {
$incident = new Incident(Input::all());
$incident->user_id = $this->auth->user()->id;
return $this->saveIncident($incident);
return $this->_saveIncident($incident);
}
/**
@@ -103,7 +103,7 @@
$incident->fill(Input::all());
return $this->saveIncident($incident);
return $this->_saveIncident($incident);
}
/**
@@ -137,7 +137,7 @@
*
* @return Incident
*/
private function saveIncident($incident) {
private function _saveIncident($incident) {
if ($incident->isValid()) {
try {
$component = $incident->parent;