Skip to content

Commit 9f534cb

Browse files
authored
Merge pull request #202 from aygee/get-form-value-related-model
Remove unreachable return statement
2 parents bcf0697 + 71b81b7 commit 9f534cb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Eloquent/FormAccessible.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,10 @@ public function getFormValue($key)
3939
// retrieval from the model to a form that is more useful for usage.
4040
if ($this->hasFormMutator($key)) {
4141
return $this->mutateFormAttribute($key, $value);
42-
} else {
43-
44-
// No form mutator, let the model resolve this
45-
return data_get($this, $key);
4642
}
4743

48-
return $value;
44+
// No form mutator, let the model resolve this
45+
return data_get($this, $key);
4946
}
5047

5148
/**

0 commit comments

Comments
 (0)