From 71b81b7f9645aab5b569494deef6560a979f68e4 Mon Sep 17 00:00:00 2001 From: Adrian Gunawan Date: Thu, 30 Jun 2016 20:59:34 +1000 Subject: [PATCH] Remove unreachable return statement --- src/Eloquent/FormAccessible.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Eloquent/FormAccessible.php b/src/Eloquent/FormAccessible.php index a930e51..5a42608 100644 --- a/src/Eloquent/FormAccessible.php +++ b/src/Eloquent/FormAccessible.php @@ -39,13 +39,10 @@ trait FormAccessible // retrieval from the model to a form that is more useful for usage. if ($this->hasFormMutator($key)) { return $this->mutateFormAttribute($key, $value); - } else { - - // No form mutator, let the model resolve this - return data_get($this, $key); } - return $value; + // No form mutator, let the model resolve this + return data_get($this, $key); } /**