[5.7] Simplify method, no need for if

This commit is contained in:
Melek REBAI authored and GitHub committed 2019-01-25 11:07:59 +01:00
1 parent 777b6d3908
commit d316b45719
1 file changed
+1 -5
+1 -5
View File
@@ -69,11 +69,7 @@ trait FormAccessible
*/ */
public function isNestedModel($key) public function isNestedModel($key)
{ {
if (in_array($key, array_keys($this->getRelations()))) { return in_array($key, array_keys($this->getRelations()));
return true;
}
return false;
} }
/** /**