From 21c124948407f2e291d16a599660cb57e44871d9 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 17 Jun 2011 14:52:33 -0700 Subject: [PATCH] Fixing spacing in Eloquent. --- system/db/eloquent.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system/db/eloquent.php b/system/db/eloquent.php index 787f1c2b..be5d4d29 100644 --- a/system/db/eloquent.php +++ b/system/db/eloquent.php @@ -289,9 +289,9 @@ public function has_and_belongs_to_many($model, $table = null) $this->relating_key = Str::lower(get_class($this)).'_id'; return static::make($model) - ->select(static::table($model).'.*') - ->join($this->relating_table, static::table($model).'.id', '=', $this->relating_table.'.'.Str::lower($model).'_id') - ->where($this->relating_table.'.'.$this->relating_key, '=', $this->id); + ->select(static::table($model).'.*') + ->join($this->relating_table, static::table($model).'.id', '=', $this->relating_table.'.'.Str::lower($model).'_id') + ->where($this->relating_table.'.'.$this->relating_key, '=', $this->id); } /** @@ -393,8 +393,8 @@ public function __get($key) $model = $this->$key(); return ($this->relating == 'has_one' or $this->relating == 'belongs_to') - ? $this->ignore[$key] = $model->first() - : $this->ignore[$key] = $model->get(); + ? $this->ignore[$key] = $model->first() + : $this->ignore[$key] = $model->get(); } return (array_key_exists($key, $this->attributes)) ? $this->attributes[$key] : null;