@@ -249,17 +249,17 @@ |
||
249 | 249 | throw new InvalidOperationException($msg); |
250 | 250 | } |
251 | 251 | foreach ([ |
252 | - 'hasMany', |
|
253 | - 'hasManyThrough', |
|
254 | - 'belongsToMany', |
|
255 | - 'hasOne', |
|
256 | - 'belongsTo', |
|
257 | - 'morphOne', |
|
258 | - 'morphTo', |
|
259 | - 'morphMany', |
|
260 | - 'morphToMany', |
|
261 | - 'morphedByMany' |
|
262 | - ] as $relation) { |
|
252 | + 'hasMany', |
|
253 | + 'hasManyThrough', |
|
254 | + 'belongsToMany', |
|
255 | + 'hasOne', |
|
256 | + 'belongsTo', |
|
257 | + 'morphOne', |
|
258 | + 'morphTo', |
|
259 | + 'morphMany', |
|
260 | + 'morphToMany', |
|
261 | + 'morphedByMany' |
|
262 | + ] as $relation) { |
|
263 | 263 | $search = '$this->' . $relation . '('; |
264 | 264 | if (stripos(/* @scrutinizer ignore-type */$code, $search)) { |
265 | 265 | //Resolve the relation's model to a Relation object. |