Fix various code style issues.

This commit is contained in:
James Cole
2016-12-15 21:35:33 +01:00
parent e247aace8d
commit 1b4d55cca4
12 changed files with 24 additions and 28 deletions

View File

@@ -136,8 +136,7 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
public function reset(): bool
{
// split query to make it work in sqlite:
$set = PiggyBank::
leftJoin('accounts', 'accounts.id', '=', 'piggy_banks.id')
$set = PiggyBank::leftJoin('accounts', 'accounts.id', '=', 'piggy_banks.id')
->where('accounts.user_id', $this->user->id)->get(['piggy_banks.*']);
foreach ($set as $e) {
$e->order = 0;