forked from EvergreenCrypto/docker-finance
container: php: fetch: blockchains: run linter, update comments
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// docker-finance | modern accounting for the power-user
|
// 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
|
// 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
|
// 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'));
|
$metadata->set_year($this->get_env()->get_env('API_FETCH_YEAR'));
|
||||||
|
|
||||||
// Reconstruct subaccount directory for out directory
|
// 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 = 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;
|
$head_end = $path;
|
||||||
$tail_end = $path;
|
$tail_end = $path;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user