1
0
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:
Franz Liedke
2016-02-26 12:31:59 +09:00
parent 445517ee84
commit 594a2ba8cc
11 changed files with 34 additions and 22 deletions

View File

@@ -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();