From 744e193faaa38c1d4de2e5cee3879b4fccc65969 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Wed, 10 Jan 2024 01:12:48 +0000 Subject: [PATCH] Fix various typos Found via `codespell -q 3 -S "./resources/lang,./resources/assets/js/locales" -L hastable` --- .../Models/TransactionCurrency/UpdateRequest.php | 2 +- app/Jobs/CreateRecurringTransactions.php | 2 +- app/Support/Http/Controllers/ModelInformation.php | 4 ++-- public/v1/js/ff/rules/create-edit.js | 4 ++-- public/v1/js/lib/vue.js | 12 ++++++------ .../js/components/transactions/AccountSelect.vue | 2 +- .../assets/js/components/transactions/Budget.vue | 2 +- .../js/components/transactions/CreateTransaction.vue | 2 +- resources/views/budgets/index.twig | 2 +- resources/views/layout/default.twig | 2 +- resources/views/layout/empty.twig | 2 +- resources/views/layout/guest.twig | 2 +- resources/views/layout/install.twig | 2 +- 13 files changed, 20 insertions(+), 20 deletions(-) diff --git a/app/Api/V1/Requests/Models/TransactionCurrency/UpdateRequest.php b/app/Api/V1/Requests/Models/TransactionCurrency/UpdateRequest.php index cf5f3bdfba..1344f8d546 100644 --- a/app/Api/V1/Requests/Models/TransactionCurrency/UpdateRequest.php +++ b/app/Api/V1/Requests/Models/TransactionCurrency/UpdateRequest.php @@ -42,7 +42,7 @@ class UpdateRequest extends FormRequest */ public function getAll(): array { - // return nothing that isn't explicitely in the array: + // return nothing that isn't explicitly in the array: $fields = [ 'name' => ['name', 'convertString'], 'code' => ['code', 'convertString'], diff --git a/app/Jobs/CreateRecurringTransactions.php b/app/Jobs/CreateRecurringTransactions.php index 3b0a6371a9..025116a855 100644 --- a/app/Jobs/CreateRecurringTransactions.php +++ b/app/Jobs/CreateRecurringTransactions.php @@ -325,7 +325,7 @@ class CreateRecurringTransactions implements ShouldQueue } /** - * Check if the occurences should be executed. + * Check if the occurrences should be executed. * * @throws DuplicateTransactionException * @throws FireflyException diff --git a/app/Support/Http/Controllers/ModelInformation.php b/app/Support/Http/Controllers/ModelInformation.php index accf008e3b..5e9217bad3 100644 --- a/app/Support/Http/Controllers/ModelInformation.php +++ b/app/Support/Http/Controllers/ModelInformation.php @@ -41,7 +41,7 @@ trait ModelInformation * * @throws FireflyException */ - protected function getActionsForBill(Bill $bill): array // get info and augument + protected function getActionsForBill(Bill $bill): array // get info and argument { try { $result = view( @@ -108,7 +108,7 @@ trait ModelInformation * * @throws FireflyException */ - protected function getTriggersForBill(Bill $bill): array // get info and augument + protected function getTriggersForBill(Bill $bill): array // get info and argument { // TODO duplicate code $operators = config('search.operators'); diff --git a/public/v1/js/ff/rules/create-edit.js b/public/v1/js/ff/rules/create-edit.js index dc9d6c558d..626c2f8d1c 100644 --- a/public/v1/js/ff/rules/create-edit.js +++ b/public/v1/js/ff/rules/create-edit.js @@ -138,7 +138,7 @@ function removeTrigger(e) { // remove grand parent: target.parent().parent().remove(); - // if now at zero, immediatly add one again: + // if now at zero, immediately add one again: if ($('.rule-trigger-tbody tr').length === 0) { addNewTrigger(); } @@ -159,7 +159,7 @@ function removeAction(e) { // remove grand parent: target.parent().parent().remove(); - // if now at zero, immediatly add one again: + // if now at zero, immediately add one again: if ($('.rule-action-tbody tr').length === 0) { addNewAction(); } diff --git a/public/v1/js/lib/vue.js b/public/v1/js/lib/vue.js index dfd4d6ae2c..46aeb4fc51 100644 --- a/public/v1/js/lib/vue.js +++ b/public/v1/js/lib/vue.js @@ -1989,7 +1989,7 @@ isUsingMicroTask = true; } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) { // Fallback to setImmediate. - // Techinically it leverages the (macro) task queue, + // Technically it leverages the (macro) task queue, // but it is still a better choice than setTimeout. timerFunc = function () { setImmediate(flushCallbacks); @@ -2938,7 +2938,7 @@ if (typeof key === 'string' && key) { baseObj[values[i]] = values[i + 1]; } else if (key !== '' && key !== null) { - // null is a speical value for explicitly removing a binding + // null is a special value for explicitly removing a binding warn( ("Invalid value for dynamic directive argument (expected string or null): " + key), this @@ -3558,7 +3558,7 @@ // render self var vnode; try { - // There's no need to maintain a stack becaues all render fns are called + // There's no need to maintain a stack because all render fns are called // separately from one another. Nested component's render fns are called // when parent component is patched. currentRenderingInstance = vm; @@ -7663,7 +7663,7 @@ // skip the update if old and new VDOM state is the same. // `value` is handled separately because the DOM value may be temporarily // out of sync with VDOM state due to focus, composition and modifiers. - // This #4521 by skipping the unnecesarry `checked` update. + // This #4521 by skipping the unnecessary `checked` update. cur !== oldProps[key] ) { // some property updates can throw @@ -9268,7 +9268,7 @@ var startTagClose = /^\s*(\/?)>/; var endTag = new RegExp(("^<\\/" + qnameCapture + "[^>]*>")); var doctype = /^]+>/i; - // #7298: escape - to avoid being pased as HTML comment when inlined in page + // #7298: escape - to avoid being passed as HTML comment when inlined in page var comment = /^ { - // console.log('Did a succesfull POST'); + // console.log('Did a successful POST'); // this method will ultimately send the user on (or not). if (0 === this.collectAttachmentData(response)) { // console.log('Will now go to redirectUser()'); diff --git a/resources/views/budgets/index.twig b/resources/views/budgets/index.twig index 09bafef23a..932252a761 100644 --- a/resources/views/budgets/index.twig +++ b/resources/views/budgets/index.twig @@ -129,7 +129,7 @@ - {# progresss bar to visualise available vs budgeted. #} + {# progress bar to visualise available vs budgeted. #}
- +