@@ -253,17 +253,17 @@ |
||
253 | 253 | throw new InvalidOperationException($msg); |
254 | 254 | } |
255 | 255 | foreach ([ |
256 | - 'hasMany', |
|
257 | - 'hasManyThrough', |
|
258 | - 'belongsToMany', |
|
259 | - 'hasOne', |
|
260 | - 'belongsTo', |
|
261 | - 'morphOne', |
|
262 | - 'morphTo', |
|
263 | - 'morphMany', |
|
264 | - 'morphToMany', |
|
265 | - 'morphedByMany' |
|
266 | - ] as $relation) { |
|
256 | + 'hasMany', |
|
257 | + 'hasManyThrough', |
|
258 | + 'belongsToMany', |
|
259 | + 'hasOne', |
|
260 | + 'belongsTo', |
|
261 | + 'morphOne', |
|
262 | + 'morphTo', |
|
263 | + 'morphMany', |
|
264 | + 'morphToMany', |
|
265 | + 'morphedByMany' |
|
266 | + ] as $relation) { |
|
267 | 267 | $search = '$this->' . $relation . '('; |
268 | 268 | $found = stripos(/** @scrutinizer ignore-type */$code, $search); |
269 | 269 | if (!$found) { |