Merge pull request #583 from shadoWalker89/patch-2

[5.7] Simplify isNestedModel() method, no need for if
This commit is contained in:
Victor Isadov authored and GitHub committed 2019-01-25 21:42:58 +03:00
commit 48d7cff502
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;
} }
/** /**