Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Start of some remodelling.
James Cole6e90c033b1ca
diff --git a/app/Models/Account.php b/app/Models/Account.phpindex b27944737c..42f628b1bc 100644--- a/app/Models/Account.php+++ b/app/Models/Account.php@@ -121,31 +121,6 @@ class Account extends Model}- /**- * @param array $fields- *- * @return Account|null- */- public static function firstOrNullEncrypted(array $fields)- {- // everything but the name:- $query = Account::orderBy('id');- $search = $fields;- unset($search['name']);- foreach ($search as $name => $value) {- $query->where($name, $value);- }- $set = $query->get(['accounts.*']);- /** @var Account $account */- foreach ($set as $account) {- if ($account->name == $fields['name']) {- return $account;- }- }-- return null;- }-/*** @param Account $value*diff --git a/app/Repositories/Account/AccountTasker.php b/app/Repositories/Account/AccountTasker.phpnew file mode 100644index 0000000000..6339e12290--- /dev/null+++ b/app/Repositories/Account/AccountTasker.php@@ -0,0 +1,24 @@+<?php+/**+ * AccountTasker.php+ * Copyright (C) 2016 [email protected]+ *+ * This software may be modified and distributed under the terms of the+ * Creative Commons Attribution-ShareAlike 4.0 International License.+ *+ * See the LICENSE file for details.+ */++declare(strict_types = 1);++namespace FireflyIII\Repositories\Account;++/**+ * Class AccountTasker+ *+ * @package FireflyIII\Repositories\Account+ */+class AccountTasker+{++}\ No newline at end of filediff --git a/app/Repositories/Account/AccountTaskerInterface.php b/app/Repositories/Account/AccountTaskerInterface.phpnew file mode 100644index 0000000000..7ca7bd62c8--- /dev/null+++ b/app/Repositories/Account/AccountTaskerInterface.php@@ -0,0 +1,24 @@+<?php+/**+ * AccountTaskerInterface.php+ * Copyright (C) 2016 [email protected]+ *+ * This software may be modified and distributed under the terms of the+ * Creative Commons Attribution-ShareAlike 4.0 International License.+ *+ * See the LICENSE file for details.+ */++declare(strict_types = 1);++namespace FireflyIII\Repositories\Account;++/**+ * Interface AccountTaskerInterface+ *+ * @package FireflyIII\Repositories\Account+ */+interface AccountTaskerInterface+{++}\ No newline at end of file