Merge pull request #316 into master
Some checks failed
docker-finance / all (push) Has been cancelled

89998354 container: php: fetch: blockchains: run linter, update comments (Aaron Fiore)
This commit was merged in pull request #316.
This commit is contained in:
2026-03-13 11:11:24 -07:00

View File

@@ -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;