@@ -238,17 +238,17 @@ |
||
| 238 | 238 | $lastCode = $code[strlen(/** @scrutinizer ignore-type */$code)-1]; |
| 239 | 239 | assert('}' == $lastCode, 'Final character of function definition must be closing brace'); |
| 240 | 240 | foreach ([ |
| 241 | - 'hasMany', |
|
| 242 | - 'hasManyThrough', |
|
| 243 | - 'belongsToMany', |
|
| 244 | - 'hasOne', |
|
| 245 | - 'belongsTo', |
|
| 246 | - 'morphOne', |
|
| 247 | - 'morphTo', |
|
| 248 | - 'morphMany', |
|
| 249 | - 'morphToMany', |
|
| 250 | - 'morphedByMany' |
|
| 251 | - ] as $relation) { |
|
| 241 | + 'hasMany', |
|
| 242 | + 'hasManyThrough', |
|
| 243 | + 'belongsToMany', |
|
| 244 | + 'hasOne', |
|
| 245 | + 'belongsTo', |
|
| 246 | + 'morphOne', |
|
| 247 | + 'morphTo', |
|
| 248 | + 'morphMany', |
|
| 249 | + 'morphToMany', |
|
| 250 | + 'morphedByMany' |
|
| 251 | + ] as $relation) { |
|
| 252 | 252 | $search = '$this->' . $relation . '('; |
| 253 | 253 | if (stripos(/** @scrutinizer ignore-type */$code, $search)) { |
| 254 | 254 | //Resolve the relation's model to a Relation object. |