mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-20 02:53:11 +00:00
Move long one-line array to multiple lines
This commit is contained in:
@@ -471,7 +471,14 @@ class ModelsCommand extends Command
|
|||||||
if ($relationObj instanceof Relation) {
|
if ($relationObj instanceof Relation) {
|
||||||
$relatedModel = '\\' . get_class($relationObj->getRelated());
|
$relatedModel = '\\' . get_class($relationObj->getRelated());
|
||||||
|
|
||||||
$relations = ['hasManyThrough', 'belongsToMany', 'hasMany', 'morphMany', 'morphToMany', 'morphedByMany'];
|
$relations = [
|
||||||
|
'hasManyThrough',
|
||||||
|
'belongsToMany',
|
||||||
|
'hasMany',
|
||||||
|
'morphMany',
|
||||||
|
'morphToMany',
|
||||||
|
'morphedByMany',
|
||||||
|
];
|
||||||
if (in_array($relation, $relations)) {
|
if (in_array($relation, $relations)) {
|
||||||
//Collection or array of models (because Collection is Arrayable)
|
//Collection or array of models (because Collection is Arrayable)
|
||||||
$this->setProperty(
|
$this->setProperty(
|
||||||
|
|||||||
Reference in New Issue
Block a user