Merge pull request #137 into master

cff19f8 container: fetch: run linter (Aaron Fiore)
This commit is contained in:
2024-09-07 19:00:39 -07:00
8 changed files with 9 additions and 11 deletions

View File

@@ -59,7 +59,7 @@ namespace docker_finance\blockchains
utils\CLI::print_normal(" ─ Blockchains");
foreach($subaccount as $account) {
foreach ($subaccount as $account) {
$metadata = new internal\Metadata();
$parsed_metadata = explode('/', $account);

View File

@@ -116,7 +116,7 @@ namespace docker_finance\blockchains\internal\blockchains\algorand
$subaccount_name = $metadata->get_subaccount();
$subaccount_address = $metadata->get_address();
foreach($response as $tx) {
foreach ($response as $tx) {
// Write the tx without reward
$id = $tx['id'];
$fee = $tx['fee'];

View File

@@ -122,7 +122,7 @@ namespace docker_finance\blockchains\internal\blockchains\ethereum
$subaccount_address = strtolower($metadata->get_address());
$contract_type = $metadata->get_contract_type();
foreach($response as $tx) {
foreach ($response as $tx) {
$date = date('Y-m-d H:i:s', $tx['timeStamp']);
$tx_hash = $tx['hash'];
$from_address = strtolower($tx['from']);

View File

@@ -125,7 +125,7 @@ namespace docker_finance\blockchains\internal\blockchains\tezos
$subaccount_address = $metadata->get_address();
// Write tx
foreach($response as $tx) {
foreach ($response as $tx) {
$hash = $tx['hash'];
$type = $tx['type'];
$status = $tx['status'];

View File

@@ -33,7 +33,6 @@ namespace docker_finance\exchanges\internal\exchanges\coinbase_pro
use MockingMagician\CoinbaseProSdk\CoinbaseFacade;
use MockingMagician\CoinbaseProSdk\Contracts\Api\ApiInterface;
use docker_finance\utils as utils;
/**

View File

@@ -131,8 +131,7 @@ namespace docker_finance
}
} // namespace docker_finance
namespace
{
namespace {
try {
docker_finance\main($argc, $argv);
} catch (Throwable $e) {

View File

@@ -417,8 +417,8 @@ namespace docker_finance\prices\internal
$stack = [];
// Each element is an array of ticker prices
foreach($data as $ticker) {
foreach($ticker as $price) {
foreach ($data as $ticker) {
foreach ($ticker as $price) {
array_push($stack, $price);
}
}

View File

@@ -86,7 +86,7 @@ namespace docker_finance\prices\internal\prices\crypto
$stack = [];
for($i = 0; $i < count($prices); $i++) {
for ($i = 0; $i < count($prices); $i++) {
$timestamp = $prices[$i][0] / 1000;
$date = date('Y/m/d', $timestamp);
@@ -196,7 +196,7 @@ namespace docker_finance\prices\internal\prices\crypto
{
$stack = [];
for($i = 0; $i < count($prices); $i++) {
for ($i = 0; $i < count($prices); $i++) {
$timestamp = $prices[$i][0] / 1000;
$date = date('Y/m/d', $timestamp);