From 620a7ebcb5e1f361b659fbe8f6e197a099b442f7 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Tue, 25 Nov 2014 20:31:19 +0000 Subject: [PATCH] Private functions should be prefixed with an _ --- app/controllers/ApiController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/ApiController.php b/app/controllers/ApiController.php index 92c767a7..3364a174 100644 --- a/app/controllers/ApiController.php +++ b/app/controllers/ApiController.php @@ -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;