From 899983545c082a4f213107aff3317ffcc01f304e Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Wed, 11 Mar 2026 15:03:44 -0700 Subject: [PATCH] container: php: fetch: blockchains: run linter, update comments --- .../src/finance/lib/internal/fetch/blockchains/fetch.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/container/src/finance/lib/internal/fetch/blockchains/fetch.php b/container/src/finance/lib/internal/fetch/blockchains/fetch.php index 8287b52..0392869 100644 --- a/container/src/finance/lib/internal/fetch/blockchains/fetch.php +++ b/container/src/finance/lib/internal/fetch/blockchains/fetch.php @@ -2,7 +2,7 @@ // docker-finance | modern accounting for the power-user // -// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC) +// Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC) // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -77,9 +77,11 @@ namespace dfi\blockchains $metadata->set_year($this->get_env()->get_env('API_FETCH_YEAR')); // Reconstruct subaccount directory for out directory - // API_OUT_DIR format: hledger-flow/profiles/parent_profile/child_profile/import/child_profile/account/subaccount/1-in/year + // API_OUT_DIR format: flow/profiles/parent_profile/child_profile/import/child_profile/account/subaccount/1-in/year $path = explode('/', $this->get_env()->get_env('API_OUT_DIR')); - $path = array_filter($path, function ($element) { return $element !== '';}); // Clear out extra / that get turned into nulls + $path = array_filter($path, function ($element) { + return $element !== ''; + }); // Clear out extra '/' that get turned into nulls $head_end = $path; $tail_end = $path;