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

@@ -61,7 +61,7 @@ class Account extends Model
public static function firstOrCreateEncrypted(array $fields)
{
// everything but the name:
$query = Account::orderBy('id');
$query = self::orderBy('id');
$search = $fields;
unset($search['name'], $search['iban']);
@@ -81,7 +81,7 @@ class Account extends Model
}
// create it!
$account = Account::create($fields);
$account = self::create($fields);
return $account;