1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 23:44:27 +02:00

Applied fixes from StyleCI

This commit is contained in:
Toby Zerner
2016-02-25 22:09:39 -05:00
committed by StyleCI Bot
parent 83c22d73a4
commit a6cf10f854
96 changed files with 240 additions and 245 deletions

View File

@@ -28,7 +28,7 @@ abstract class AbstractModel extends Eloquent
/**
* Indicates if the model should be timestamped. Turn off by default.
*
* @var boolean
* @var bool
*/
public $timestamps = false;
@@ -107,7 +107,7 @@ abstract class AbstractModel extends Eloquent
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');
.'Illuminate\Database\Eloquent\Relations\Relation');
}
return $this->relations[$key] = $relation->getResults();