Fixed dumb indenting

This commit is contained in:
snipe 2016-11-11 19:46:25 -08:00
parent 2ddee9b44c
commit 9db28cf6d6

View file

@ -860,14 +860,14 @@ public function checkin_email()
} }
/** /**
* Query builder scope to order on assigned user * Query builder scope to order on assigned user
* *
* @param Illuminate\Database\Query\Builder $query Query builder instance * @param Illuminate\Database\Query\Builder $query Query builder instance
* @param text $order Order * @param text $order Order
* *
* @return Illuminate\Database\Query\Builder Modified query builder * @return Illuminate\Database\Query\Builder Modified query builder
*/ */
public function scopeOrderAssigned($query, $order) public function scopeOrderAssigned($query, $order)
{ {
return $query->join('users', 'assets.assigned_to', '=', 'users.id')->orderBy('users.first_name', $order)->orderBy('users.last_name', $order); return $query->join('users', 'assets.assigned_to', '=', 'users.id')->orderBy('users.first_name', $order)->orderBy('users.last_name', $order);