Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Code cleanup.
James Cole8db96025a346
diff --git a/app/Http/Controllers/Admin/UserController.php b/app/Http/Controllers/Admin/UserController.phpindex bd83eb13b4..1a82b02e86 100644--- a/app/Http/Controllers/Admin/UserController.php+++ b/app/Http/Controllers/Admin/UserController.php@@ -125,8 +125,10 @@ class UserController extends Controller}/**- * @param UserFormRequest $request- * @param User $user+ * @param UserFormRequest $request+ * @param User $user+ *+ * @param UserRepositoryInterface $repository** @return $this|\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector*/diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.phpindex 5f5f36f159..d1cfdd7832 100644--- a/app/Http/Controllers/Auth/ForgotPasswordController.php+++ b/app/Http/Controllers/Auth/ForgotPasswordController.php@@ -41,7 +41,9 @@ class ForgotPasswordController extends Controller/*** Send a reset link to the given user.*- * @param Request $request+ * @param Request $request+ *+ * @param UserRepositoryInterface $repository** @return \Illuminate\Http\RedirectResponse*/diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.phpindex d2186aa40f..f74d1a1e7f 100644--- a/app/Http/Controllers/Auth/LoginController.php+++ b/app/Http/Controllers/Auth/LoginController.php@@ -110,7 +110,9 @@ class LoginController extends Controller/*** Show the application login form.*- * @param Request $request+ * @param Request $request+ *+ * @param CookieJar $cookieJar** @return \Illuminate\Http\Response*/diff --git a/app/Http/Controllers/BudgetController.php b/app/Http/Controllers/BudgetController.phpindex 9fd5d23a6a..42008215ea 100644--- a/app/Http/Controllers/BudgetController.php+++ b/app/Http/Controllers/BudgetController.php@@ -191,8 +191,9 @@ class BudgetController extends Controller}/**- * @param Request $request- * @param string $moment+ * @param Request $request+ * @param JournalRepositoryInterface $repository+ * @param string $moment** @return View*/diff --git a/app/Http/Controllers/CategoryController.php b/app/Http/Controllers/CategoryController.phpindex a9b76e97b7..7975bc26a5 100644--- a/app/Http/Controllers/CategoryController.php+++ b/app/Http/Controllers/CategoryController.php@@ -154,6 +154,10 @@ class CategoryController extends Controller}/**+ * @param Request $request+ * @param JournalRepositoryInterface $repository+ * @param string $moment+ ** @return View*/public function noCategory(Request $request, JournalRepositoryInterface $repository, string $moment = '')diff --git a/app/Http/Controllers/ImportController.php b/app/Http/Controllers/ImportController.phpindex a1d04f01a1..325698f720 100644--- a/app/Http/Controllers/ImportController.php+++ b/app/Http/Controllers/ImportController.php@@ -274,10 +274,10 @@ class ImportController extends Controller* Step 5. Depending on the importer, this will show the user settings to* fill in.*- * @param ImportJob $job+ * @param ImportJobRepositoryInterface $repository+ * @param ImportJob $job** @return View- * @throws FireflyException*/public function settings(ImportJobRepositoryInterface $repository, ImportJob $job){diff --git a/app/Http/Controllers/JavascriptController.php b/app/Http/Controllers/JavascriptController.phpindex b1d67fdaf9..63a6a354d2 100644--- a/app/Http/Controllers/JavascriptController.php+++ b/app/Http/Controllers/JavascriptController.php@@ -31,7 +31,10 @@ class JavascriptController extends Controller{/**+ * @param AccountRepositoryInterface $repository+ * @param CurrencyRepositoryInterface $currencyRepository*+ * @return $this*/public function accounts(AccountRepositoryInterface $repository, CurrencyRepositoryInterface $currencyRepository){diff --git a/app/Http/Controllers/PreferencesController.php b/app/Http/Controllers/PreferencesController.phpindex 3960264476..0a200b4a47 100644--- a/app/Http/Controllers/PreferencesController.php+++ b/app/Http/Controllers/PreferencesController.php@@ -132,7 +132,9 @@ class PreferencesController extends Controller}/**- * @param Request $request+ * @param Request $request+ *+ * @param UserRepositoryInterface $repository** @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector*/diff --git a/app/Http/Controllers/TagController.php b/app/Http/Controllers/TagController.phpindex 325eac42f2..6a6cffa7bc 100644--- a/app/Http/Controllers/TagController.php+++ b/app/Http/Controllers/TagController.php@@ -140,7 +140,9 @@ class TagController extends Controller}/**- * @param Tag $tag+ * @param Tag $tag+ *+ * @param TagRepositoryInterface $repository** @return View*/diff --git a/app/Http/Controllers/TransactionController.php b/app/Http/Controllers/TransactionController.phpindex c8369d0a2f..5fdfa5fa40 100644--- a/app/Http/Controllers/TransactionController.php+++ b/app/Http/Controllers/TransactionController.php@@ -60,6 +60,8 @@ class TransactionController extends Controller* @param JournalRepositoryInterface $repository* @param string $what*+ * @param string $moment+ ** @return View*/public function index(Request $request, JournalRepositoryInterface $repository, string $what, string $moment = '')diff --git a/config/auth.php b/config/auth.phpindex 55a6840414..9145ce8641 100644--- a/config/auth.php+++ b/config/auth.php@@ -10,32 +10,32 @@*/return [- 'defaults' => [- 'guard' => 'web',+ 'defaults' => [+ 'guard' => 'web','passwords' => 'users',],- 'guards' => [+ 'guards' => ['web' => [- 'driver' => 'session',+ 'driver' => 'session','provider' => 'users',],'api' => [- 'driver' => 'token',+ 'driver' => 'token','provider' => 'users',],],'providers' => ['users' => ['driver' => 'eloquent',- 'model' => FireflyIII\User::class,+ 'model' => FireflyIII\User::class,],],'passwords' => ['users' => ['provider' => 'users',- 'table' => 'password_resets',- 'expire' => 120,+ 'table' => 'password_resets',+ 'expire' => 120,],],diff --git a/config/broadcasting.php b/config/broadcasting.phpindex 8100899690..b165564840 100644--- a/config/broadcasting.php+++ b/config/broadcasting.php@@ -40,17 +40,17 @@ return ['connections' => ['pusher' => [- 'driver' => 'pusher',- 'key' => env('PUSHER_KEY'),- 'secret' => env('PUSHER_SECRET'),- 'app_id' => env('PUSHER_APP_ID'),+ 'driver' => 'pusher',+ 'key' => env('PUSHER_KEY'),+ 'secret' => env('PUSHER_SECRET'),+ 'app_id' => env('PUSHER_APP_ID'),'options' => [//],],'redis' => [- 'driver' => 'redis',+ 'driver' => 'redis','connection' => 'default',],diff --git a/config/csv.php b/config/csv.phpindex 0cd7e1183f..5da40e41e0 100644--- a/config/csv.php+++ b/config/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/config/firefly.php b/config/firefly.phpindex 81a482e8b6..83aa8d19e2 100644--- a/config/firefly.php+++ b/config/firefly.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);/** DO NOT EDIT THIS FILE. IT IS AUTO GENERATED.@@ -18,15 +18,15 @@ declare(strict_types = 1);*/return [- 'configuration' => [+ 'configuration' => ['single_user_mode' => true,'is_demo_site' => false,],- 'encryption' => (is_null(env('USE_ENCRYPTION')) || env('USE_ENCRYPTION') === true),- 'version' => '4.3.8',- 'maxUploadSize' => 5242880,- 'allowedMimes' => ['image/png', 'image/jpeg', 'application/pdf'],- 'list_length' => 10,+ 'encryption' => (is_null(env('USE_ENCRYPTION')) || env('USE_ENCRYPTION') === true),+ 'version' => '4.3.8',+ 'maxUploadSize' => 5242880,+ 'allowedMimes' => ['image/png', 'image/jpeg', 'application/pdf'],+ 'list_length' => 10,'export_formats' => ['csv' => 'FireflyIII\Export\Exporter\CsvExporter',],@@ -205,6 +205,6 @@ return ['default_currency' => 'EUR','default_language' => 'en_US','search_modifiers' => ['amount_is', 'amount', 'amount_max', 'amount_min', 'amount_less', 'amount_more', 'source', 'destination', 'category',- 'budget', 'bill', 'type', 'date', 'date_before', 'date_after','on','before','after'],+ 'budget', 'bill', 'type', 'date', 'date_before', 'date_after', 'on', 'before', 'after'],// tag notes has_attachments];diff --git a/config/queue.php b/config/queue.phpindex 664188021f..c50e7c2a44 100644--- a/config/queue.php+++ b/config/queue.php@@ -44,32 +44,32 @@ return [],'database' => [- 'driver' => 'database',- 'table' => 'jobs',- 'queue' => 'default',+ 'driver' => 'database',+ 'table' => 'jobs',+ 'queue' => 'default','retry_after' => 90,],'beanstalkd' => [- 'driver' => 'beanstalkd',- 'host' => 'localhost',- 'queue' => 'default',+ 'driver' => 'beanstalkd',+ 'host' => 'localhost',+ 'queue' => 'default','retry_after' => 90,],'sqs' => ['driver' => 'sqs',- 'key' => 'your-public-key',+ 'key' => 'your-public-key','secret' => 'your-secret-key','prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',- 'queue' => 'your-queue-name',+ 'queue' => 'your-queue-name','region' => 'us-east-1',],'redis' => [- 'driver' => 'redis',- 'connection' => 'default',- 'queue' => 'default',+ 'driver' => 'redis',+ 'connection' => 'default',+ 'queue' => 'default','retry_after' => 90,],@@ -88,7 +88,7 @@ return ['failed' => ['database' => env('DB_CONNECTION', 'mysql'),- 'table' => 'failed_jobs',+ 'table' => 'failed_jobs',],];diff --git a/config/services.php b/config/services.phpindex 5990b52c66..1176da0214 100644--- a/config/services.php+++ b/config/services.php@@ -29,7 +29,7 @@ return [],'ses' => [- 'key' => env('SES_KEY'),+ 'key' => env('SES_KEY'),'secret' => env('SES_SECRET'),'region' => 'us-east-1',],@@ -39,8 +39,8 @@ return [],'stripe' => [- 'model' => FireflyIII\User::class,- 'key' => env('STRIPE_KEY'),+ 'model' => FireflyIII\User::class,+ 'key' => env('STRIPE_KEY'),'secret' => env('STRIPE_SECRET'),],diff --git a/config/session.php b/config/session.phpindex f5af7f0fdc..4a635d2321 100644--- a/config/session.php+++ b/config/session.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/config/upgrade.php b/config/upgrade.phpindex 199596e690..58c0ad66bd 100644--- a/config/upgrade.php+++ b/config/upgrade.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return ['text' => [diff --git a/config/view.php b/config/view.phpindex 9d4930f213..bb60cc6e7e 100644--- a/config/view.php+++ b/config/view.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/public/css/firefly.css b/public/css/firefly.cssindex cc051e6442..80eea37df7 100644--- a/public/css/firefly.css+++ b/public/css/firefly.css@@ -25,11 +25,6 @@ body.waiting * {cursor: progress;}-.ui-sortable-placeholder {- display: inline-block;- height: 1px;-}-.preferences-box {border: 1px #ddd solid;border-radius: 4px 4px 0 0;@@ -48,12 +43,6 @@ body.waiting * {margin: 20px auto 0 auto;}-.ff-error-page > .headline {- float: left;- font-size: 100px;- font-weight: 300;-}-.ff-error-page > .error-content {margin-left: 190px;display: block;diff --git a/public/js/ff/budgets/show.js b/public/js/ff/budgets/show.jsindex 5831c82031..d8f1cbb551 100644--- a/public/js/ff/budgets/show.js+++ b/public/js/ff/budgets/show.js@@ -15,7 +15,7 @@ $(function () {if (budgetLimitID > 0) {lineChart(budgetChartUri, 'budgetOverview');}- if (budgetLimitID == 0) {+ if (budgetLimitID === 0) {columnChart(budgetChartUri, 'budgetOverview');}diff --git a/public/js/ff/categories/show-by-date.js b/public/js/ff/categories/show-by-date.jsindex e97dab4db8..f3bdde08a3 100644--- a/public/js/ff/categories/show-by-date.js+++ b/public/js/ff/categories/show-by-date.js@@ -12,5 +12,5 @@$(function () {"use strict";- columnChart(specific, 'period-specific-period');+ columnChart(specific, 'period-specific-period');});\ No newline at end of filediff --git a/public/js/ff/import/status.js b/public/js/ff/import/status.jsindex cf97ab9935..cc1ec69a9e 100644--- a/public/js/ff/import/status.js+++ b/public/js/ff/import/status.js@@ -62,7 +62,7 @@ function updateBar(data) {function reportErrors(data) {"use strict";- if (data.errors.length == 1) {+ if (data.errors.length === 1) {$('#import-status-error-intro').text(langImportSingleError);//'An error has occured during the import. The import can continue, however.'}@@ -93,7 +93,7 @@ function kickStartJob() {function updateTimeout(data) {"use strict";- if (data.stepsDone != stepCount) {+ if (data.stepsDone !== stepCount) {stepCount = data.stepsDone;currentLimit = 0;return;diff --git a/public/js/ff/index.js b/public/js/ff/index.jsindex 1cd119c383..242768712d 100644--- a/public/js/ff/index.js+++ b/public/js/ff/index.js@@ -14,7 +14,7 @@ $(function () {"use strict";// do chart JS stuff.drawChart();- if (showTour == true) {+ if (showTour === true) {$.getJSON('json/tour').done(function (data) {var tour = new Tour({diff --git a/public/js/ff/reports/default/all.js b/public/js/ff/reports/default/all.jsindex 1f838a0ebc..6fc394d7dd 100644--- a/public/js/ff/reports/default/all.js+++ b/public/js/ff/reports/default/all.js@@ -99,9 +99,9 @@ function displayAjaxPartial(data, holder) {function failAjaxPartial(uri, holder) {"use strict";- var holder = $('#' + holder);- holder.parent().find('.overlay').remove();- holder.addClass('general-chart-error');+ var holderObject = $('#' + holder);+ holderObject.parent().find('.overlay').remove();+ holderObject.addClass('general-chart-error');}diff --git a/public/js/ff/reports/default/month.js b/public/js/ff/reports/default/month.jsindex 1c2f08be63..fb35e4f8ba 100644--- a/public/js/ff/reports/default/month.js+++ b/public/js/ff/reports/default/month.js@@ -16,7 +16,7 @@ $(function () {loadAjaxPartial('categoryReport', categoryReportUri);loadAjaxPartial('budgetReport', budgetReportUri);- loadAjaxPartial('balanceReport',balanceReportUri);+ loadAjaxPartial('balanceReport', balanceReportUri);});function drawChart() {diff --git a/public/js/ff/reports/index.js b/public/js/ff/reports/index.jsindex 2891c12fd1..02994f209f 100644--- a/public/js/ff/reports/index.js+++ b/public/js/ff/reports/index.js@@ -56,7 +56,7 @@ $(function () {// set date from cookievar startStr = readCookie('report-start');var endStr = readCookie('report-end');- if (startStr !== null && endStr !== null && startStr.length == 8 && endStr.length == 8) {+ if (startStr !== null && endStr !== null && startStr.length === 8 && endStr.length === 8) {var startDate = moment(startStr, "YYYY-MM-DD");var endDate = moment(endStr, "YYYY-MM-DD");var datePicker = $('#inputDateRange').data('daterangepicker');diff --git a/public/js/ff/rules/create-edit.js b/public/js/ff/rules/create-edit.jsindex 1652ae804b..3b8e871e04 100644--- a/public/js/ff/rules/create-edit.js+++ b/public/js/ff/rules/create-edit.js@@ -104,14 +104,14 @@ function addNewAction() {function removeTrigger(e) {"use strict";var target = $(e.target);- if (target.prop("tagName") == "I") {+ if (target.prop("tagName") === "I") {target = target.parent();}// remove grand parent:target.parent().parent().remove();// if now at zero, immediatly add one again:- if ($('.rule-trigger-tbody tr').length == 0) {+ if ($('.rule-trigger-tbody tr').length === 0) {addNewTrigger();}return false;@@ -125,14 +125,14 @@ function removeTrigger(e) {function removeAction(e) {"use strict";var target = $(e.target);- if (target.prop("tagName") == "I") {+ if (target.prop("tagName") === "I") {target = target.parent();}// remove grand parent:target.parent().parent().remove();// if now at zero, immediatly add one again:- if ($('.rule-action-tbody tr').length == 0) {+ if ($('.rule-action-tbody tr').length === 0) {addNewAction();}return false;diff --git a/public/js/ff/tags/create-edit.js b/public/js/ff/tags/create-edit.jsindex 7184b17ae2..369d1134ef 100644--- a/public/js/ff/tags/create-edit.js+++ b/public/js/ff/tags/create-edit.js@@ -51,28 +51,28 @@ function clearLocation() {function initialize() {"use strict";/*- Create new map:+ Create new map:*/map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);/*- Respond to click event.+ Respond to click event.*/google.maps.event.addListener(map, 'rightclick', function (event) {placeMarker(event);});/*- Respond to zoom event.+ Respond to zoom event.*/google.maps.event.addListener(map, 'zoom_changed', function () {saveZoomLevel();});/*- Maybe place marker?+ Maybe place marker?*/- if(doPlaceMarker == true) {- var myLatlng = new google.maps.LatLng(latitude,longitude);+ if (doPlaceMarker === true) {+ var myLatlng = new google.maps.LatLng(latitude, longitude);var fakeEvent = {};fakeEvent.latLng = myLatlng;placeMarker(fakeEvent);diff --git a/public/js/ff/transactions/list.js b/public/js/ff/transactions/list.jsindex 74dc53f24d..39cc72fc9a 100644--- a/public/js/ff/transactions/list.js+++ b/public/js/ff/transactions/list.js@@ -72,8 +72,8 @@ function countChecked() {"use strict";var checked = $('.select_all_single:checked').length;if (checked > 0) {- $('.mass_edit span').text(edit_selected_txt + ' (' + checked + ')')- $('.mass_delete span').text(delete_selected_txt + ' (' + checked + ')')+ $('.mass_edit span').text(edit_selected_txt + ' (' + checked + ')');+ $('.mass_delete span').text(delete_selected_txt + ' (' + checked + ')');$('.mass_button_options').show();} else {diff --git a/public/js/ff/transactions/single/create.js b/public/js/ff/transactions/single/create.jsindex 203962b24c..5c10be71d3 100644--- a/public/js/ff/transactions/single/create.js+++ b/public/js/ff/transactions/single/create.js@@ -26,7 +26,7 @@ $(document).ready(function () {}// update currency- $('select[name="source_account_id"]').on('change', updateCurrency)+ $('select[name="source_account_id"]').on('change', updateCurrency);// get JSON things:getJSONautocomplete();@@ -178,7 +178,7 @@ function updateButtons() {// new click event:button.bind('click', clickButton);- if (button.data('what') == what) {+ if (button.data('what') === what) {button.removeClass('btn-default').addClass('btn-info').html('<i class="fa fa-fw fa-check"></i> ' + txt[button.data('what')]);} else {button.removeClass('btn-info').addClass('btn-default').text(txt[button.data('what')]);@@ -190,7 +190,7 @@ function clickButton(e) {"use strict";var button = $(e.target);var newWhat = button.data('what');- if (newWhat != what) {+ if (newWhat !== what) {what = newWhat;updateButtons();updateForm();diff --git a/public/js/ff/transactions/split/edit.js b/public/js/ff/transactions/split/edit.jsindex 19fffbdf4b..a91c0a3422 100644--- a/public/js/ff/transactions/split/edit.js+++ b/public/js/ff/transactions/split/edit.js@@ -184,12 +184,12 @@ function calculateSum() {var set = $('input[name$="][amount]"]');for (var i = 0; i < set.length; i++) {var current = $(set[i]);- sum += (current.val() == "" ? 0 : parseFloat(current.val()));+ sum += (current.val() === "" ? 0 : parseFloat(current.val()));}sum = Math.round(sum * 100) / 100;$('.amount-warning').remove();- if (sum != originalSum) {+ if (sum !== originalSum) {var holder = $('#journal_amount_holder');var par = holder.find('p.form-control-static');$('<span>').text(' (' + accounting.formatMoney(sum) + ')').addClass('text-danger amount-warning').appendTo(par);diff --git a/resources/lang/de_DE/csv.php b/resources/lang/de_DE/csv.phpindex fca9ee7d0f..71a33e1fc8 100644--- a/resources/lang/de_DE/csv.php+++ b/resources/lang/de_DE/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/lang/en_US/csv.php b/resources/lang/en_US/csv.phpindex 6b5abd3431..d5306e2a88 100644--- a/resources/lang/en_US/csv.php+++ b/resources/lang/en_US/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/lang/es_ES/csv.php b/resources/lang/es_ES/csv.phpindex 4acb52efdc..4424610191 100644--- a/resources/lang/es_ES/csv.php+++ b/resources/lang/es_ES/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/lang/fr_FR/csv.php b/resources/lang/fr_FR/csv.phpindex b5bbae3400..4c2cd1a072 100644--- a/resources/lang/fr_FR/csv.php+++ b/resources/lang/fr_FR/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/lang/hr_HR/csv.php b/resources/lang/hr_HR/csv.phpindex 4acb52efdc..4424610191 100644--- a/resources/lang/hr_HR/csv.php+++ b/resources/lang/hr_HR/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/lang/nl_NL/csv.php b/resources/lang/nl_NL/csv.phpindex 876ca796a4..5de8d082fd 100644--- a/resources/lang/nl_NL/csv.php+++ b/resources/lang/nl_NL/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/lang/pl_PL/csv.php b/resources/lang/pl_PL/csv.phpindex d9b1b88c79..72961b5ab5 100644--- a/resources/lang/pl_PL/csv.php+++ b/resources/lang/pl_PL/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/lang/pt_BR/csv.php b/resources/lang/pt_BR/csv.phpindex a1b92485f2..06ed873ac8 100644--- a/resources/lang/pt_BR/csv.php+++ b/resources/lang/pt_BR/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/lang/ru_RU/csv.php b/resources/lang/ru_RU/csv.phpindex 37e4e88998..0bfa2c13e0 100644--- a/resources/lang/ru_RU/csv.php+++ b/resources/lang/ru_RU/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/lang/zh_HK/csv.php b/resources/lang/zh_HK/csv.phpindex 4acb52efdc..4424610191 100644--- a/resources/lang/zh_HK/csv.php+++ b/resources/lang/zh_HK/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/lang/zh_TW/csv.php b/resources/lang/zh_TW/csv.phpindex e94574c27b..c55b9cea43 100644--- a/resources/lang/zh_TW/csv.php+++ b/resources/lang/zh_TW/csv.php@@ -9,7 +9,7 @@* See the LICENSE file for details.*/-declare(strict_types = 1);+declare(strict_types=1);return [diff --git a/resources/views/accounts/show.twig b/resources/views/accounts/show.twigindex 39a1729876..a29f420fa8 100644--- a/resources/views/accounts/show.twig+++ b/resources/views/accounts/show.twig@@ -144,13 +144,13 @@// uri's for charts:var chartUri = '{{ chartUri }}';{% if start and end %}- var incomeCategoryUri = '{{ route('chart.account.income-category', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';- var expenseCategoryUri = '{{ route('chart.account.expense-category', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';- var expenseBudgetUri = '{{ route('chart.account.expense-budget', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';+ var incomeCategoryUri = '{{ route('chart.account.income-category', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';+ var expenseCategoryUri = '{{ route('chart.account.expense-category', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';+ var expenseBudgetUri = '{{ route('chart.account.expense-budget', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';{% else %}- var incomeCategoryUri = '{{ route('chart.account.income-category', [account.id, 'all', 'all']) }}';- var expenseCategoryUri = '{{ route('chart.account.expense-category', [account.id, 'all', 'all']) }}';- var expenseBudgetUri = '{{ route('chart.account.expense-budget', [account.id, 'all', 'all']) }}';+ var incomeCategoryUri = '{{ route('chart.account.income-category', [account.id, 'all', 'all']) }}';+ var expenseCategoryUri = '{{ route('chart.account.expense-category', [account.id, 'all', 'all']) }}';+ var expenseBudgetUri = '{{ route('chart.account.expense-budget', [account.id, 'all', 'all']) }}';{% endif %}</script>diff --git a/resources/views/budgets/index.twig b/resources/views/budgets/index.twigindex 3928cd2714..9ecec09211 100644--- a/resources/views/budgets/index.twig+++ b/resources/views/budgets/index.twig@@ -72,14 +72,14 @@</div></div>{% if budgets.count > 0 and inactive.count > 0 %}- <div class="box">- <div class="box-header with-border">- <h3 class="box-title">{{ 'createBudget'|_ }}</h3>- </div>- <div class="box-body">- <a href="{{ route('budgets.create') }}" class="btn btn-success pull-right">{{ 'createBudget'|_ }}</a>+ <div class="box">+ <div class="box-header with-border">+ <h3 class="box-title">{{ 'createBudget'|_ }}</h3>+ </div>+ <div class="box-body">+ <a href="{{ route('budgets.create') }}" class="btn btn-success pull-right">{{ 'createBudget'|_ }}</a>+ </div></div>- </div>{% endif %}</div>diff --git a/resources/views/categories/show.twig b/resources/views/categories/show.twigindex 9fa172096b..13a43903b2 100644--- a/resources/views/categories/show.twig+++ b/resources/views/categories/show.twig@@ -110,10 +110,10 @@<td style="text-align: right;">{{ period.earned|formatAmount }}</td></tr>{% if period.earned != 0 and period.spent != 0 %}- <tr>- <td style="width:33%;">{{ 'sum'|_ }}</td>- <td style="text-align: right;">{{ period.sum|formatAmount }}</td>- </tr>+ <tr>+ <td style="width:33%;">{{ 'sum'|_ }}</td>+ <td style="text-align: right;">{{ period.sum|formatAmount }}</td>+ </tr>{% endif %}<tr><td style="width:33%;">{{ 'transferred'|_ }}</td>diff --git a/resources/views/demo/import/configure.twig b/resources/views/demo/import/configure.twigindex a94b4914bb..eee25e4315 100644--- a/resources/views/demo/import/configure.twig+++ b/resources/views/demo/import/configure.twig@@ -1,3 +1,3 @@{{ trans('demo.import-configure-security') }}-<br /><br />+<br/><br/>{{ trans('demo.import-configure-configuration') }}diff --git a/resources/views/demo/reports/index.twig b/resources/views/demo/reports/index.twigindex 535fb63c44..adf49baea5 100644--- a/resources/views/demo/reports/index.twig+++ b/resources/views/demo/reports/index.twig@@ -1,6 +1,6 @@{{ trans('demo.reports-index-start')|raw }}-<br />-<br />+<br/>+<br/>{{ trans('demo.reports-index-examples', {one: route('reports.report.default', ['1,2,3','currentMonthStart','currentMonthEnd']),two: route('reports.report.default', ['1,2,3','20160101','20161231']),diff --git a/resources/views/emails/password-html.twig b/resources/views/emails/password-html.twigindex 07e4e0a80a..2b15f16191 100644--- a/resources/views/emails/password-html.twig+++ b/resources/views/emails/password-html.twig@@ -8,6 +8,6 @@</p><p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">- <a href="{{ url }}">{{ url }}</a>+ <a href="{{ url }}">{{ url }}</a></p>{% include 'emails.footer-html' %}diff --git a/resources/views/errors/500.twig b/resources/views/errors/500.twigindex 456f0b73dd..5c90946598 100644--- a/resources/views/errors/500.twig+++ b/resources/views/errors/500.twig@@ -1,6 +1,6 @@<html><head>- <base href="{{ route('index') }}/" />+ <base href="{{ route('index') }}/"/><style>/* latin */diff --git a/resources/views/errors/503.twig b/resources/views/errors/503.twigindex 41970faee3..951c35b816 100644--- a/resources/views/errors/503.twig+++ b/resources/views/errors/503.twig@@ -1,6 +1,6 @@<html><head>- <base href="{{ route('index') }}/" />+ <base href="{{ route('index') }}/"/><title>Firefly III is in maintenance mode.</title><style>diff --git a/resources/views/import/finished.twig b/resources/views/import/finished.twigindex aa4066385e..9f981e3517 100644--- a/resources/views/import/finished.twig+++ b/resources/views/import/finished.twig@@ -15,13 +15,13 @@{{ 'import_finished_intro'|_ }}</p>{% if tagId > 0 %}- <p>- {{ trans('firefly.import_finished_text_with_link', {tag: tagId})|raw }}- </p>+ <p>+ {{ trans('firefly.import_finished_text_with_link', {tag: tagId})|raw }}+ </p>{% else %}- <p>- {{ 'import_finished_text_without_link'|_ }}- </p>+ <p>+ {{ 'import_finished_text_without_link'|_ }}+ </p>{% endif %}<p>diff --git a/resources/views/javascript/accounts.twig b/resources/views/javascript/accounts.twigindex 61fb09f610..442be9fedb 100644--- a/resources/views/javascript/accounts.twig+++ b/resources/views/javascript/accounts.twig@@ -1,4 +1,4 @@var accountInfo = [];{% for id, account in accounts %}- accountInfo[{{ id }}] = {preferredCurrency: {{ account.preferredCurrency}}};+ accountInfo[{{ id }}] = {preferredCurrency: {{ account.preferredCurrency }}};{% endfor %}diff --git a/resources/views/javascript/variables.twig b/resources/views/javascript/variables.twigindex 6e02953236..115ebcfcca 100644--- a/resources/views/javascript/variables.twig+++ b/resources/views/javascript/variables.twig@@ -1,20 +1,20 @@// date range picker configuration:var dateRangeConfig = {- startDate: moment("{{ picker.start }}"),- endDate: moment("{{ picker.end }}"),- linkTitle: "{{ linkTitle }}",- URL: "{{ route('daterange') }}",- firstDate: moment("{{ firstDate }}"),- currentPeriod: "{{ picker.current }}",- previousPeriod: "{{ picker.previous }}",- nextPeriod: "{{ picker.next }}",- everything: '{{ 'everything'|_|escape }}',- customRangeLabel: '{{ 'customRange'|_|escape }}',- applyLabel: '{{ 'apply'|_|escape }}',- cancelLabel: '{{ 'cancel'|_|escape }}',- fromLabel: '{{ 'from'|_|escape }}',- toLabel: '{{ 'to'|_|escape }}',- ranges: {{ picker.ranges|json_encode|raw }}+startDate: moment("{{ picker.start }}"),+endDate: moment("{{ picker.end }}"),+linkTitle: "{{ linkTitle }}",+URL: "{{ route('daterange') }}",+firstDate: moment("{{ firstDate }}"),+currentPeriod: "{{ picker.current }}",+previousPeriod: "{{ picker.previous }}",+nextPeriod: "{{ picker.next }}",+everything: '{{ 'everything'|_|escape }}',+customRangeLabel: '{{ 'customRange'|_|escape }}',+applyLabel: '{{ 'apply'|_|escape }}',+cancelLabel: '{{ 'cancel'|_|escape }}',+fromLabel: '{{ 'from'|_|escape }}',+toLabel: '{{ 'to'|_|escape }}',+ranges: {{ picker.ranges|json_encode|raw }}};var language = "{{ language|escape }}";diff --git a/resources/views/layout/default.twig b/resources/views/layout/default.twigindex 08f211925c..431b75a49b 100644--- a/resources/views/layout/default.twig+++ b/resources/views/layout/default.twig@@ -73,11 +73,11 @@</li>{% if not SANDSTORM %}- <li class="dropdown user user-menu">+ <li class="dropdown user user-menu"><span style="cursor:default;color:#fff;padding: 15px;display: block;line-height: 20px;"><span class="hidden-xs">{{ Auth.user.email }}</span></span>- </li>+ </li>{% endif %}<li id="sidebar-toggle"><a href="#" data-toggle="control-sidebar"><i class="fa fa-plus-circle"></i></a>diff --git a/resources/views/partials/menu-sidebar.twig b/resources/views/partials/menu-sidebar.twigindex c9fc3db022..83985bf6ad 100644--- a/resources/views/partials/menu-sidebar.twig+++ b/resources/views/partials/menu-sidebar.twig@@ -149,12 +149,14 @@<ul class="treeview-menu">{% if not SANDSTORM %}- <li class="{{ activeRoutePartial('profile') }}">- <a class="{{ activeRouteStrict('profile.index') }}" href="{{ route('profile.index') }}"><i class="fa fa-user fa-fw"></i> {{ 'profile'|_ }}</a>- </li>+ <li class="{{ activeRoutePartial('profile') }}">+ <a class="{{ activeRouteStrict('profile.index') }}" href="{{ route('profile.index') }}"><i class="fa fa-user fa-fw"></i> {{ 'profile'|_ }}+ </a>+ </li>{% endif %}<li class="{{ activeRoutePartial('preferences') }}">- <a class="{{ activeRouteStrict('preferences.index') }}" href="{{ route('preferences.index') }}"><i class="fa fa-gear fa-fw"></i> {{ 'preferences'|_ }}</a>+ <a class="{{ activeRouteStrict('preferences.index') }}" href="{{ route('preferences.index') }}"><i+ class="fa fa-gear fa-fw"></i> {{ 'preferences'|_ }}</a></li><li class="{{ activeRoutePartial('currency') }}"><a class="{{ activeRoutePartial('currency') }}" href="{{ route('currencies.index') }}"><i class="fa fa-usd fa-fw"></i> {{ 'currencies'|_ }}</a>@@ -174,11 +176,11 @@<!-- other options -->{% if not SANDSTORM %}- <li>- <a href="{{ route('logout') }}">- <i class="fa fa-sign-out fa-fw"></i>- <span>{{ 'logout'|_ }}</span>- </a>- </li>+ <li>+ <a href="{{ route('logout') }}">+ <i class="fa fa-sign-out fa-fw"></i>+ <span>{{ 'logout'|_ }}</span>+ </a>+ </li>{% endif %}</ul>diff --git a/resources/views/piggy-banks/show.twig b/resources/views/piggy-banks/show.twigindex 748462ac64..eace5c8d03 100644--- a/resources/views/piggy-banks/show.twig+++ b/resources/views/piggy-banks/show.twig@@ -71,12 +71,12 @@</td></tr>{% if piggyBank.targetdate %}- <tr>- <td>{{ 'suggested_amount'|_ }}</td>- <td>- {{ suggestedMonthlyAmount(piggyBank)|formatAmount }}- </td>- </tr>+ <tr>+ <td>{{ 'suggested_amount'|_ }}</td>+ <td>+ {{ suggestedMonthlyAmount(piggyBank)|formatAmount }}+ </td>+ </tr>{% endif %}</table></div>@@ -100,7 +100,7 @@<h3 class="box-title">{{ trans('form.notes') }}</h3></div><div class="box-body">- {{ note.markdown|raw }}+ {{ note.markdown|raw }}</div></div>diff --git a/resources/views/preferences/index.twig b/resources/views/preferences/index.twigindex 0b00562525..fa0f0cc67e 100644--- a/resources/views/preferences/index.twig+++ b/resources/views/preferences/index.twig@@ -47,7 +47,7 @@{% endfor %}<p class="text-info">- <br />+ <br/>{{ 'pref_languages_locale'|_ }}</p></div>@@ -128,11 +128,11 @@<div class="col-sm-10"><div class="checkbox"><label>- <input type="checkbox" name="showDepositsFrontpage[]" value="{{ showDepositsFrontpage }}"- {% if showDepositsFrontpage %}+ <input type="checkbox" name="showDepositsFrontpage[]" value="{{ showDepositsFrontpage }}"+ {% if showDepositsFrontpage %}checked- {% endif %}- > {{ 'pref_home_do_show_deposits'|_ }}+ {% endif %}+ > {{ 'pref_home_do_show_deposits'|_ }}</label></div></div>diff --git a/resources/views/reports/budget/month.twig b/resources/views/reports/budget/month.twigindex d5efaae2f7..4c74d0b0a5 100644--- a/resources/views/reports/budget/month.twig+++ b/resources/views/reports/budget/month.twig@@ -27,7 +27,8 @@<a href="{{ route('accounts.show', account.id) }}" title="{{ account.name }}">{{ account.name }}</a></td>{% if accountSummary[account.id] %}- <td data-value="{{ accountSummary[account.id] }}" style="text-align: right;">{{ accountSummary[account.id]|formatAmount }}</td>+ <td data-value="{{ accountSummary[account.id] }}"+ style="text-align: right;">{{ accountSummary[account.id]|formatAmount }}</td>{% else %}<td data-value="0" style="text-align: right;">{{ 0|formatAmount }}</td>{% endif %}@@ -93,7 +94,7 @@</div><div class="box-body"><div style="width:75%;margin:0 auto;">- <canvas id="accounts-out-pie-chart" style="margin:0 auto;"></canvas>+ <canvas id="accounts-out-pie-chart" style="margin:0 auto;"></canvas></div><label style="font-weight:normal;"><input type="checkbox" id="accounts-out-pie-chart-checked">diff --git a/resources/views/reports/category/month.twig b/resources/views/reports/category/month.twigindex 4bf6652694..697be04d70 100644--- a/resources/views/reports/category/month.twig+++ b/resources/views/reports/category/month.twig@@ -28,12 +28,14 @@<a href="{{ route('accounts.show', account.id) }}" title="{{ account.name }}">{{ account.name }}</a></td>{% if accountSummary[account.id] %}- <td data-value="{{ accountSummary[account.id].earned }}" style="text-align: right;">{{ accountSummary[account.id].earned|formatAmount }}</td>+ <td data-value="{{ accountSummary[account.id].earned }}"+ style="text-align: right;">{{ accountSummary[account.id].earned|formatAmount }}</td>{% else %}<td data-value="0" style="text-align: right;">{{ 0|formatAmount }}</td>{% endif %}{% if accountSummary[account.id] %}- <td data-value="{{ accountSummary[account.id].spent }}" style="text-align: right;">{{ accountSummary[account.id].spent|formatAmount }}</td>+ <td data-value="{{ accountSummary[account.id].spent }}"+ style="text-align: right;">{{ accountSummary[account.id].spent|formatAmount }}</td>{% else %}<td data-value="0" style="text-align: right;">{{ 0|formatAmount }}</td>{% endif %}@@ -64,12 +66,14 @@<a href="{{ route('categories.show', category.id) }}" title="{{ category.name }}">{{ category.name }}</a></td>{% if categorySummary[category.id] %}- <td data-value="{{ categorySummary[category.id].earned }}" style="text-align: right;">{{ categorySummary[category.id].earned|formatAmount }}</td>+ <td data-value="{{ categorySummary[category.id].earned }}"+ style="text-align: right;">{{ categorySummary[category.id].earned|formatAmount }}</td>{% else %}<td data-value="0" style="text-align: right;">{{ 0|formatAmount }}</td>{% endif %}{% if categorySummary[category.id] %}- <td data-value="{{ categorySummary[category.id].spent }}" style="text-align: right;">{{ categorySummary[category.id].spent|formatAmount }}</td>+ <td data-value="{{ categorySummary[category.id].spent }}"+ style="text-align: right;">{{ categorySummary[category.id].spent|formatAmount }}</td>{% else %}<td data-value="0" style="text-align: right;">{{ 0|formatAmount }}</td>{% endif %}diff --git a/resources/views/reports/default/month.twig b/resources/views/reports/default/month.twigindex c06a6e75e3..6ff31d8217 100644--- a/resources/views/reports/default/month.twig+++ b/resources/views/reports/default/month.twig@@ -94,7 +94,6 @@</div>-</div><div class="col-lg-4 col-md-4 col-sm-12"><div class="box">diff --git a/resources/views/reports/default/multi-year.twig b/resources/views/reports/default/multi-year.twigindex a24e2b5f27..90a03fee2b 100644--- a/resources/views/reports/default/multi-year.twig+++ b/resources/views/reports/default/multi-year.twig@@ -201,9 +201,9 @@var accountIds = '{{ accountIds }}';// report uri's- var opChartUri ='{{ route('chart.report.operations', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';- var sumChartUri='{{ route('chart.report.sum', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';- var netWorthUri ='{{ route('chart.report.net-worth', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';+ var opChartUri = '{{ route('chart.report.operations', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';+ var sumChartUri = '{{ route('chart.report.sum', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';+ var netWorthUri = '{{ route('chart.report.net-worth', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';// data uri'svar accountReportUri = '{{ route('report-data.account.general', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';diff --git a/resources/views/reports/default/year.twig b/resources/views/reports/default/year.twigindex 79d9ea29b3..b271662b3c 100644--- a/resources/views/reports/default/year.twig+++ b/resources/views/reports/default/year.twig@@ -190,9 +190,9 @@var accountIds = '{{ accountIds }}';// report uri's- var opChartUri ='{{ route('chart.report.operations', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';- var sumChartUri='{{ route('chart.report.sum', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';- var netWorthUri ='{{ route('chart.report.net-worth', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';+ var opChartUri = '{{ route('chart.report.operations', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';+ var sumChartUri = '{{ route('chart.report.sum', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';+ var netWorthUri = '{{ route('chart.report.net-worth', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';// data uri'svar accountReportUri = '{{ route('report-data.account.general', [accountIds, start.format('Ymd'), end.format('Ymd')]) }}';diff --git a/resources/views/reports/partials/accounts.twig b/resources/views/reports/partials/accounts.twigindex 285e2a5d06..f45376f26e 100644--- a/resources/views/reports/partials/accounts.twig+++ b/resources/views/reports/partials/accounts.twig@@ -15,7 +15,8 @@</td><td class="hidden-xs" data-value="{{ account.start_balance }}" style="text-align: right;">{{ account.start_balance|formatAmount }}</td><td class="hidden-xs" data-value="{{ account.end_balance }}" style="text-align: right;">{{ account.end_balance|formatAmount }}</td>- <td style="text-align: right;" data-value="{{ (account.end_balance - account.start_balance) }}">{{ (account.end_balance - account.start_balance)|formatAmount }}</td>+ <td style="text-align: right;"+ data-value="{{ (account.end_balance - account.start_balance) }}">{{ (account.end_balance - account.start_balance)|formatAmount }}</td></tr>{% endfor %}</tbody>diff --git a/resources/views/reports/partials/category-period.twig b/resources/views/reports/partials/category-period.twigindex 2a9a6555ab..db35d7ea4d 100644--- a/resources/views/reports/partials/category-period.twig+++ b/resources/views/reports/partials/category-period.twig@@ -13,9 +13,9 @@<tr><td>{% if id != 0 %}- <a class="btn btn-default btn-xs" href="{{ route('categories.show', [id]) }}"><i class="fa fa-external-link" aria-hidden="true"></i></a>+ <a class="btn btn-default btn-xs" href="{{ route('categories.show', [id]) }}"><i class="fa fa-external-link" aria-hidden="true"></i></a>{% else %}- <a class="btn btn-default btn-xs" href="{{ route('categories.no-category') }}"><i class="fa fa-external-link" aria-hidden="true"></i></a>+ <a class="btn btn-default btn-xs" href="{{ route('categories.no-category') }}"><i class="fa fa-external-link" aria-hidden="true"></i></a>{% endif %}</td><td data-value="{{ info.name }}">diff --git a/resources/views/reports/tag/month.twig b/resources/views/reports/tag/month.twigindex 9f27985c04..f160a4686a 100644--- a/resources/views/reports/tag/month.twig+++ b/resources/views/reports/tag/month.twig@@ -107,7 +107,8 @@<a href="{{ route('tags.show', tag.id) }}" title="{{ tag.tag }}">{{ tag.tag }}</a></td>{% if tagSummary[tag.id] %}- <td data-value="{{ tagSummary[tag.id].earned }}" style="text-align: right;">{{ tagSummary[tag.id].earned|formatAmount }}</td>+ <td data-value="{{ tagSummary[tag.id].earned }}"+ style="text-align: right;">{{ tagSummary[tag.id].earned|formatAmount }}</td>{% else %}<td data-value="0" style="text-align: right;">{{ 0|formatAmount }}</td>{% endif %}diff --git a/resources/views/rules/index.twig b/resources/views/rules/index.twigindex 08b84c0bff..c552d1f56c 100644--- a/resources/views/rules/index.twig+++ b/resources/views/rules/index.twig@@ -123,7 +123,7 @@{% endif %}{% if rule.description != "" %}- <small class="hidden-xs"+ <small class="hidden-xs"{% if not rule.active %}class="text-muted"{% endif %}diff --git a/resources/views/search/partials/accounts.twig b/resources/views/search/partials/accounts.twigindex c86b89c345..ea071125ff 100644--- a/resources/views/search/partials/accounts.twig+++ b/resources/views/search/partials/accounts.twig@@ -33,4 +33,4 @@{% endfor %}</tbody>- </table>+</table>diff --git a/resources/views/transactions/convert.twig b/resources/views/transactions/convert.twigindex b56227497a..ca5203c47f 100644--- a/resources/views/transactions/convert.twig+++ b/resources/views/transactions/convert.twig@@ -5,7 +5,8 @@{% endblock %}{% block content %}- <form method="POST" action="{{ route('transactions.convert.index.post', [destinationType.type|lower, journal.id]) }}" accept-charset="UTF-8" class="form-horizontal" id="store"+ <form method="POST" action="{{ route('transactions.convert.index.post', [destinationType.type|lower, journal.id]) }}" accept-charset="UTF-8"+ class="form-horizontal" id="store"enctype="multipart/form-data"><input name="_token" type="hidden" value="{{ csrf_token() }}"><div class="row">@@ -47,8 +48,7 @@sourceName: sourceAccount.name,destinationRoute: route('accounts.show', [destinationAccount.id]),destinationName: destinationAccount.name,- })|raw- }}+ })|raw }}</em></p><p><em>@@ -69,8 +69,7 @@sourceName: sourceAccount.name,destinationRoute: route('accounts.show', [destinationAccount.id]),destinationName: destinationAccount.name,- })|raw- }}+ })|raw }}</em></p><p>@@ -95,8 +94,7 @@sourceName: sourceAccount.name,destinationRoute: route('accounts.show', [destinationAccount.id]),destinationName: destinationAccount.name,- })|raw- }}+ })|raw }}</em></p><p>@@ -121,8 +119,7 @@sourceName: sourceAccount.name,destinationRoute: route('accounts.show', [destinationAccount.id]),destinationName: destinationAccount.name,- })|raw- }}+ })|raw }}</em></p><p>@@ -147,8 +144,7 @@sourceName: sourceAccount.name,destinationRoute: route('accounts.show', [destinationAccount.id]),destinationName: destinationAccount.name,- })|raw- }}+ })|raw }}</em></p>@@ -175,8 +171,7 @@sourceName: sourceAccount.name,destinationRoute: route('accounts.show', [destinationAccount.id]),destinationName: destinationAccount.name,- })|raw- }}+ })|raw }}</em></p>diff --git a/resources/views/transactions/mass/edit.twig b/resources/views/transactions/mass/edit.twigindex 4f47734b4d..c0c2ccc123 100644--- a/resources/views/transactions/mass/edit.twig+++ b/resources/views/transactions/mass/edit.twig@@ -69,7 +69,8 @@</select>{% else %}{# SOURCE ACCOUNT NAME FOR DEPOSIT #}- <input class="form-control input-sm" placeholder="{{ journal.source_account_name }}" name="source_account_name[{{ journal.id }}]" type="text" value="{{ journal.source_account_name }}">+ <input class="form-control input-sm" placeholder="{{ journal.source_account_name }}"+ name="source_account_name[{{ journal.id }}]" type="text" value="{{ journal.source_account_name }}">{% endif %}</td><td>@@ -83,20 +84,24 @@</select>{% else %}{# DESTINATION ACCOUNT NAME FOR EXPENSE #}- <input class="form-control input-sm" placeholder="{{ journal.destination_account_name }}" name="destination_account_name[{{ journal.id }}]" type="text" value="{{ journal.destination_account_name }}">+ <input class="form-control input-sm" placeholder="{{ journal.destination_account_name }}"+ name="destination_account_name[{{ journal.id }}]" type="text"+ value="{{ journal.destination_account_name }}">{% endif %}</td>{# category #}<td>- <input class="form-control input-sm" placeholder="{{ journal.categories[0].name }}" name="category[{{ journal.id }}]" type="text" value="{{ journal.categories[0].name }}">+ <input class="form-control input-sm" placeholder="{{ journal.categories[0].name }}"+ name="category[{{ journal.id }}]" type="text" value="{{ journal.categories[0].name }}"></td>{# budget #}<td>{% if journal.transaction_type_type == 'Withdrawal' %}<select class="form-control input-sm" name="budget_id[{{ journal.id }}]"><option value="0" label="(none)"- {% if journal.budgets.count == 0 %}selected="selected"{% endif %}- >(none)</option>+ {% if journal.budgets.count == 0 %}selected="selected"{% endif %}+ >(none)+ </option>{% for budget in budgets %}<option value="{{ budget.id }}"{% if budget.id==journal.budgets[0].id %} selected="selected"{% endif %}label="{{ budget.name }}">{{ budget.name }}</option>diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twigindex c3a0ab7079..8af9ec6b6b 100644--- a/resources/views/transactions/show.twig+++ b/resources/views/transactions/show.twig@@ -243,12 +243,12 @@</p>{% endif %}{% if transactions|length == 1 %}- <p>- <i class="fa fa-copy" aria-hidden="true"></i>- <a href="{{ route('transactions.clone', [journal.id]) }}">- {{ ('clone_'~journal.transactionType.type|lower)|_ }}- </a>- </p>+ <p>+ <i class="fa fa-copy" aria-hidden="true"></i>+ <a href="{{ route('transactions.clone', [journal.id]) }}">+ {{ ('clone_'~journal.transactionType.type|lower)|_ }}+ </a>+ </p>{% endif %}</div>diff --git a/tests/Feature/Controllers/BillControllerTest.php b/tests/Feature/Controllers/BillControllerTest.phpindex 123ae4301e..22296e6820 100644--- a/tests/Feature/Controllers/BillControllerTest.php+++ b/tests/Feature/Controllers/BillControllerTest.php@@ -139,7 +139,6 @@ class BillControllerTest extends TestCase{// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(BillRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());diff --git a/tests/Feature/Controllers/Chart/BudgetControllerTest.php b/tests/Feature/Controllers/Chart/BudgetControllerTest.phpindex 82b707c59b..457dc0c982 100644--- a/tests/Feature/Controllers/Chart/BudgetControllerTest.php+++ b/tests/Feature/Controllers/Chart/BudgetControllerTest.php@@ -81,9 +81,6 @@ class BudgetControllerTest extends TestCase*/public function testBudgetLimitWrongLimit(){- $repository = $this->mock(BudgetRepositoryInterface::class);- $generator = $this->mock(GeneratorInterface::class);-$this->be($this->user());$response = $this->get(route('chart.budget.budget-limit', [1, 8]));$response->assertStatus(500);diff --git a/tests/Feature/Controllers/Chart/BudgetReportControllerTest.php b/tests/Feature/Controllers/Chart/BudgetReportControllerTest.phpindex a6536a761b..96990fd633 100644--- a/tests/Feature/Controllers/Chart/BudgetReportControllerTest.php+++ b/tests/Feature/Controllers/Chart/BudgetReportControllerTest.php@@ -34,8 +34,6 @@ class BudgetReportControllerTest extends TestCase{$generator = $this->mock(GeneratorInterface::class);$pieChart = $this->mock(MetaPieChartInterface::class);- $collector = $this->mock(JournalCollectorInterface::class);- $budgetRepos = $this->mock(BudgetRepositoryInterface::class);$pieChart->shouldReceive('setAccounts')->once()->andReturnSelf();$pieChart->shouldReceive('setBudgets')->once()->andReturnSelf();@@ -57,8 +55,6 @@ class BudgetReportControllerTest extends TestCase{$generator = $this->mock(GeneratorInterface::class);$pieChart = $this->mock(MetaPieChartInterface::class);- $collector = $this->mock(JournalCollectorInterface::class);- $budgetRepos = $this->mock(BudgetRepositoryInterface::class);$pieChart->shouldReceive('setAccounts')->once()->andReturnSelf();$pieChart->shouldReceive('setBudgets')->once()->andReturnSelf();@@ -82,7 +78,6 @@ class BudgetReportControllerTest extends TestCasepublic function testMainChart(){$generator = $this->mock(GeneratorInterface::class);- $pieChart = $this->mock(MetaPieChartInterface::class);$collector = $this->mock(JournalCollectorInterface::class);$budgetRepos = $this->mock(BudgetRepositoryInterface::class);diff --git a/tests/Feature/Controllers/CurrencyControllerTest.php b/tests/Feature/Controllers/CurrencyControllerTest.phpindex 82473fe93e..d57331d406 100644--- a/tests/Feature/Controllers/CurrencyControllerTest.php+++ b/tests/Feature/Controllers/CurrencyControllerTest.php@@ -76,7 +76,6 @@ class CurrencyControllerTest extends TestCasepublic function testCannotCreate(){// mock stuff- $repository = $this->mock(CurrencyRepositoryInterface::class);$userRepos = $this->mock(UserRepositoryInterface::class);$journalRepos = $this->mock(JournalRepositoryInterface::class);@@ -95,7 +94,6 @@ class CurrencyControllerTest extends TestCasepublic function testCreate(){// mock stuff- $repository = $this->mock(CurrencyRepositoryInterface::class);$userRepos = $this->mock(UserRepositoryInterface::class);$journalRepos = $this->mock(JournalRepositoryInterface::class);@@ -115,8 +113,6 @@ class CurrencyControllerTest extends TestCasepublic function testDefaultCurrency(){// mock stuff- $repository = $this->mock(CurrencyRepositoryInterface::class);- $userRepos = $this->mock(UserRepositoryInterface::class);$journalRepos = $this->mock(JournalRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);@@ -177,7 +173,6 @@ class CurrencyControllerTest extends TestCasepublic function testEdit(){// mock stuff- $repository = $this->mock(CurrencyRepositoryInterface::class);$userRepos = $this->mock(UserRepositoryInterface::class);$journalRepos = $this->mock(JournalRepositoryInterface::class);diff --git a/tests/Feature/Controllers/ImportControllerTest.php b/tests/Feature/Controllers/ImportControllerTest.phpindex 1264b18a3f..53f6764260 100644--- a/tests/Feature/Controllers/ImportControllerTest.php+++ b/tests/Feature/Controllers/ImportControllerTest.php@@ -40,7 +40,6 @@ class ImportControllerTest extends TestCasepublic function testComplete(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -57,7 +56,6 @@ class ImportControllerTest extends TestCasepublic function testCompleteWrongJob(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -75,7 +73,6 @@ class ImportControllerTest extends TestCase{$setup = $this->mock(CsvSetup::class);$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$setup->shouldReceive('setJob')->once();@@ -97,7 +94,6 @@ class ImportControllerTest extends TestCasepublic function testConfigureWrongJob(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -112,7 +108,6 @@ class ImportControllerTest extends TestCasepublic function testDownload(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -135,7 +130,6 @@ class ImportControllerTest extends TestCasepublic function testFinished(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -152,7 +146,6 @@ class ImportControllerTest extends TestCasepublic function testFinishedWrongJob(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -168,7 +161,6 @@ class ImportControllerTest extends TestCasepublic function testIndex(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -182,7 +174,6 @@ class ImportControllerTest extends TestCasepublic function testJson(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -197,7 +188,6 @@ class ImportControllerTest extends TestCase{$journalRepos = $this->mock(JournalRepositoryInterface::class);$tagRepos = $this->mock(TagRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$tag = factory(Tag::class)->make();$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);@@ -214,7 +204,6 @@ class ImportControllerTest extends TestCasepublic function testJsonRunning(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -253,7 +242,6 @@ class ImportControllerTest extends TestCasepublic function testPostConfigureWrongJob(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$data = [];@@ -271,7 +259,6 @@ class ImportControllerTest extends TestCasepublic function testPostSettings(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$importer = $this->mock(CsvSetup::class);@@ -293,7 +280,6 @@ class ImportControllerTest extends TestCasepublic function testPostSettingsWrongJob(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$data = [];@@ -333,7 +319,6 @@ class ImportControllerTest extends TestCasepublic function testSettingsUserSettings(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$importer = $this->mock(CsvSetup::class);@@ -356,7 +341,6 @@ class ImportControllerTest extends TestCasepublic function testSettingsWrongJob(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -373,7 +357,6 @@ class ImportControllerTest extends TestCasepublic function testSettingsWrongJobAgain(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -388,7 +371,6 @@ class ImportControllerTest extends TestCasepublic function testStart(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);/** @var ImportProcedureInterface $procedure */@@ -409,7 +391,6 @@ class ImportControllerTest extends TestCasepublic function testStatus(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);// complete@@ -426,7 +407,6 @@ class ImportControllerTest extends TestCasepublic function testStatusWrongJob(){$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(ImportJobRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);// completediff --git a/tests/Feature/Controllers/Popup/ReportControllerTest.php b/tests/Feature/Controllers/Popup/ReportControllerTest.phpindex e6af6b8758..788349b371 100644--- a/tests/Feature/Controllers/Popup/ReportControllerTest.php+++ b/tests/Feature/Controllers/Popup/ReportControllerTest.php@@ -91,7 +91,6 @@ class ReportControllerTest extends TestCase*/public function testBalanceAmountDefaultNoBudget(){- $collector = $this->mock(JournalCollectorInterface::class);$accountRepos = $this->mock(AccountRepositoryInterface::class);$budgetRepos = $this->mock(BudgetRepositoryInterface::class);$popupHelper = $this->mock(PopupReportInterface::class);@@ -126,7 +125,6 @@ class ReportControllerTest extends TestCase*/public function testBalanceAmountDefaultRole(){- $collector = $this->mock(JournalCollectorInterface::class);$accountRepos = $this->mock(AccountRepositoryInterface::class);$budgetRepos = $this->mock(BudgetRepositoryInterface::class);$popupHelper = $this->mock(PopupReportInterface::class);@@ -162,7 +160,6 @@ class ReportControllerTest extends TestCase*/public function testBalanceAmountDiffRole(){- $collector = $this->mock(JournalCollectorInterface::class);$accountRepos = $this->mock(AccountRepositoryInterface::class);$budgetRepos = $this->mock(BudgetRepositoryInterface::class);$popupHelper = $this->mock(PopupReportInterface::class);@@ -170,11 +167,6 @@ class ReportControllerTest extends TestCase$budget = factory(Budget::class)->make();$account = factory(Account::class)->make();- $one = factory(Transaction::class)->make();- $two = factory(Transaction::class)->make();- $tag = factory(Tag::class)->make();- $tag->tagMode = 'balancingAct';- $two->transactionJournal->tags()->save($tag);$budgetRepos->shouldReceive('find')->andReturn($budget)->once()->withArgs([1]);$accountRepos->shouldReceive('find')->andReturn($account)->once()->withArgs([1]);@@ -206,10 +198,8 @@ class ReportControllerTest extends TestCase*/public function testBalanceAmountTagRole(){- $collector = $this->mock(JournalCollectorInterface::class);$accountRepos = $this->mock(AccountRepositoryInterface::class);$budgetRepos = $this->mock(BudgetRepositoryInterface::class);- $popupHelper = $this->mock(PopupReportInterface::class);$budget = factory(Budget::class)->make();$account = factory(Account::class)->make();@@ -243,7 +233,6 @@ class ReportControllerTest extends TestCase*/public function testBudgetSpentAmount(){- $collector = $this->mock(JournalCollectorInterface::class);$budgetRepos = $this->mock(BudgetRepositoryInterface::class);$popupHelper = $this->mock(PopupReportInterface::class);$budget = factory(Budget::class)->make();@@ -275,7 +264,6 @@ class ReportControllerTest extends TestCase*/public function testCategoryEntry(){- $collector = $this->mock(JournalCollectorInterface::class);$categoryRepos = $this->mock(CategoryRepositoryInterface::class);$popupHelper = $this->mock(PopupReportInterface::class);$category = factory(Category::class)->make();@@ -307,7 +295,6 @@ class ReportControllerTest extends TestCase*/public function testExpenseEntry(){- $collector = $this->mock(JournalCollectorInterface::class);$popupHelper = $this->mock(PopupReportInterface::class);$accountRepos = $this->mock(AccountRepositoryInterface::class);$account = factory(Account::class)->make();@@ -339,7 +326,6 @@ class ReportControllerTest extends TestCase*/public function testIncomeEntry(){- $collector = $this->mock(JournalCollectorInterface::class);$popupHelper = $this->mock(PopupReportInterface::class);$accountRepos = $this->mock(AccountRepositoryInterface::class);$account = factory(Account::class)->make();@@ -371,7 +357,6 @@ class ReportControllerTest extends TestCase*/public function testWrongLocation(){- $popupHelper = $this->mock(PopupReportInterface::class);$this->be($this->user());$arguments = ['attributes' => [diff --git a/tests/Feature/Controllers/ProfileControllerTest.php b/tests/Feature/Controllers/ProfileControllerTest.phpindex 6285462a39..b8b692e334 100644--- a/tests/Feature/Controllers/ProfileControllerTest.php+++ b/tests/Feature/Controllers/ProfileControllerTest.php@@ -166,7 +166,6 @@ class ProfileControllerTest extends TestCase// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);- $repository = $this->mock(UserRepositoryInterface::class);$data = ['password' => 'james2',];diff --git a/tests/Feature/Controllers/ReportControllerTest.php b/tests/Feature/Controllers/ReportControllerTest.phpindex fda8ce4aaf..fa4b887528 100644--- a/tests/Feature/Controllers/ReportControllerTest.php+++ b/tests/Feature/Controllers/ReportControllerTest.php@@ -120,7 +120,6 @@ class ReportControllerTest extends TestCase*/public function testDefaultReportBadDate(){- $generator = $this->mock(SYRG::class);$journalRepos = $this->mock(JournalRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);diff --git a/tests/Feature/Controllers/RuleGroupControllerTest.php b/tests/Feature/Controllers/RuleGroupControllerTest.phpindex 83fa722395..93146babee 100644--- a/tests/Feature/Controllers/RuleGroupControllerTest.php+++ b/tests/Feature/Controllers/RuleGroupControllerTest.php@@ -37,8 +37,6 @@ class RuleGroupControllerTest extends TestCase{// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(RuleGroupRepositoryInterface::class);- $accountRepos = $this->mock(AccountRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->be($this->user());@@ -55,7 +53,6 @@ class RuleGroupControllerTest extends TestCase// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);$repository = $this->mock(RuleGroupRepositoryInterface::class);- $accountRepos = $this->mock(AccountRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$repository->shouldReceive('get')->andReturn(new Collection);@@ -73,7 +70,6 @@ class RuleGroupControllerTest extends TestCase// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);$repository = $this->mock(RuleGroupRepositoryInterface::class);- $accountRepos = $this->mock(AccountRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$repository->shouldReceive('destroy');@@ -93,7 +89,6 @@ class RuleGroupControllerTest extends TestCase// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);$repository = $this->mock(RuleGroupRepositoryInterface::class);- $accountRepos = $this->mock(AccountRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$repository->shouldReceive('moveDown');@@ -110,8 +105,6 @@ class RuleGroupControllerTest extends TestCase{// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(RuleGroupRepositoryInterface::class);- $accountRepos = $this->mock(AccountRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);@@ -128,7 +121,6 @@ class RuleGroupControllerTest extends TestCase{// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(RuleGroupRepositoryInterface::class);$accountRepos = $this->mock(AccountRepositoryInterface::class);$journalRepos->shouldReceive('first')->andReturn(new TransactionJournal);$accountRepos->shouldReceive('getAccountsById')->andReturn(new Collection);@@ -156,7 +148,6 @@ class RuleGroupControllerTest extends TestCase{// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);- $repository = $this->mock(RuleGroupRepositoryInterface::class);$accountRepos = $this->mock(AccountRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$accountRepos->shouldReceive('getAccountsByType')->andReturn(new Collection);@@ -175,7 +166,6 @@ class RuleGroupControllerTest extends TestCase// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);$repository = $this->mock(RuleGroupRepositoryInterface::class);- $accountRepos = $this->mock(AccountRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$this->session(['rule-groups.create.uri' => 'http://localhost']);@@ -202,7 +192,6 @@ class RuleGroupControllerTest extends TestCase// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);$repository = $this->mock(RuleGroupRepositoryInterface::class);- $accountRepos = $this->mock(AccountRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$repository->shouldReceive('moveUp');@@ -220,7 +209,6 @@ class RuleGroupControllerTest extends TestCase// mock stuff$journalRepos = $this->mock(JournalRepositoryInterface::class);$repository = $this->mock(RuleGroupRepositoryInterface::class);- $accountRepos = $this->mock(AccountRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);$data = [diff --git a/tests/Feature/Controllers/TagControllerTest.php b/tests/Feature/Controllers/TagControllerTest.phpindex e06e81800c..a64f043b34 100644--- a/tests/Feature/Controllers/TagControllerTest.php+++ b/tests/Feature/Controllers/TagControllerTest.php@@ -36,7 +36,6 @@ class TagControllerTest extends TestCasepublic function testCreate(){// mock stuff- $repository = $this->mock(TagRepositoryInterface::class);$journalRepos = $this->mock(JournalRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);@@ -52,7 +51,6 @@ class TagControllerTest extends TestCasepublic function testDelete(){// mock stuff- $repository = $this->mock(TagRepositoryInterface::class);$journalRepos = $this->mock(JournalRepositoryInterface::class);$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);