[5.7] Simplify method, no need for if
This commit is contained in:
1 parent
777b6d3908
commit
d316b45719
1 file changed
+1
-5
@@ -69,11 +69,7 @@ trait FormAccessible
|
||||
*/
|
||||
public function isNestedModel($key)
|
||||
{
|
||||
if (in_array($key, array_keys($this->getRelations()))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return in_array($key, array_keys($this->getRelations()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user