@@ -227,17 +227,17 @@ |
||
| 227 | 227 | $lastCode = $code[strlen($code)-1]; |
| 228 | 228 | assert('}' == $lastCode, 'Final character of function definition must be closing brace'); |
| 229 | 229 | foreach ([ |
| 230 | - 'hasMany', |
|
| 231 | - 'hasManyThrough', |
|
| 232 | - 'belongsToMany', |
|
| 233 | - 'hasOne', |
|
| 234 | - 'belongsTo', |
|
| 235 | - 'morphOne', |
|
| 236 | - 'morphTo', |
|
| 237 | - 'morphMany', |
|
| 238 | - 'morphToMany', |
|
| 239 | - 'morphedByMany' |
|
| 240 | - ] as $relation) { |
|
| 230 | + 'hasMany', |
|
| 231 | + 'hasManyThrough', |
|
| 232 | + 'belongsToMany', |
|
| 233 | + 'hasOne', |
|
| 234 | + 'belongsTo', |
|
| 235 | + 'morphOne', |
|
| 236 | + 'morphTo', |
|
| 237 | + 'morphMany', |
|
| 238 | + 'morphToMany', |
|
| 239 | + 'morphedByMany' |
|
| 240 | + ] as $relation) { |
|
| 241 | 241 | $search = '$this->' . $relation . '('; |
| 242 | 242 | if ($pos = stripos($code, $search)) { |
| 243 | 243 | //Resolve the relation's model to a Relation object. |