mirror of
https://github.com/flarum/core.git
synced 2025-07-30 13:10:24 +02:00
More indentation cleanup
This commit is contained in:
@@ -106,8 +106,9 @@ abstract class AbstractModel extends Eloquent
|
||||
// value on the "relationships" array.
|
||||
if (! $this->relationLoaded($key) && ($relation = $this->getCustomRelation($key))) {
|
||||
if (! $relation instanceof Relation) {
|
||||
throw new LogicException('Relationship method must return an object of type '
|
||||
.'Illuminate\Database\Eloquent\Relations\Relation');
|
||||
throw new LogicException(
|
||||
'Relationship method must return an object of type '.Relation::class
|
||||
);
|
||||
}
|
||||
|
||||
return $this->relations[$key] = $relation->getResults();
|
||||
|
Reference in New Issue
Block a user