@@ -301,17 +301,17 @@ |
||
| 301 | 301 | $lastCode = $code[strlen($code) - 1]; |
| 302 | 302 | assert('}' == $lastCode, 'Final character of function definition must be closing brace'); |
| 303 | 303 | foreach ([ |
| 304 | - 'hasMany', |
|
| 305 | - 'hasManyThrough', |
|
| 306 | - 'belongsToMany', |
|
| 307 | - 'hasOne', |
|
| 308 | - 'belongsTo', |
|
| 309 | - 'morphOne', |
|
| 310 | - 'morphTo', |
|
| 311 | - 'morphMany', |
|
| 312 | - 'morphToMany', |
|
| 313 | - 'morphedByMany' |
|
| 314 | - ] as $relation) { |
|
| 304 | + 'hasMany', |
|
| 305 | + 'hasManyThrough', |
|
| 306 | + 'belongsToMany', |
|
| 307 | + 'hasOne', |
|
| 308 | + 'belongsTo', |
|
| 309 | + 'morphOne', |
|
| 310 | + 'morphTo', |
|
| 311 | + 'morphMany', |
|
| 312 | + 'morphToMany', |
|
| 313 | + 'morphedByMany' |
|
| 314 | + ] as $relation) { |
|
| 315 | 315 | $search = '$this->' . $relation . '('; |
| 316 | 316 | if ($pos = stripos($code, $search)) { |
| 317 | 317 | //Resolve the relation's model to a Relation object. |