container: fetch: run linter
This commit is contained in:
@@ -59,7 +59,7 @@ namespace docker_finance\blockchains
|
|||||||
|
|
||||||
utils\CLI::print_normal(" ─ Blockchains");
|
utils\CLI::print_normal(" ─ Blockchains");
|
||||||
|
|
||||||
foreach($subaccount as $account) {
|
foreach ($subaccount as $account) {
|
||||||
$metadata = new internal\Metadata();
|
$metadata = new internal\Metadata();
|
||||||
|
|
||||||
$parsed_metadata = explode('/', $account);
|
$parsed_metadata = explode('/', $account);
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ namespace docker_finance\blockchains\internal\blockchains\algorand
|
|||||||
$subaccount_name = $metadata->get_subaccount();
|
$subaccount_name = $metadata->get_subaccount();
|
||||||
$subaccount_address = $metadata->get_address();
|
$subaccount_address = $metadata->get_address();
|
||||||
|
|
||||||
foreach($response as $tx) {
|
foreach ($response as $tx) {
|
||||||
// Write the tx without reward
|
// Write the tx without reward
|
||||||
$id = $tx['id'];
|
$id = $tx['id'];
|
||||||
$fee = $tx['fee'];
|
$fee = $tx['fee'];
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ namespace docker_finance\blockchains\internal\blockchains\ethereum
|
|||||||
$subaccount_address = strtolower($metadata->get_address());
|
$subaccount_address = strtolower($metadata->get_address());
|
||||||
$contract_type = $metadata->get_contract_type();
|
$contract_type = $metadata->get_contract_type();
|
||||||
|
|
||||||
foreach($response as $tx) {
|
foreach ($response as $tx) {
|
||||||
$date = date('Y-m-d H:i:s', $tx['timeStamp']);
|
$date = date('Y-m-d H:i:s', $tx['timeStamp']);
|
||||||
$tx_hash = $tx['hash'];
|
$tx_hash = $tx['hash'];
|
||||||
$from_address = strtolower($tx['from']);
|
$from_address = strtolower($tx['from']);
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ namespace docker_finance\blockchains\internal\blockchains\tezos
|
|||||||
$subaccount_address = $metadata->get_address();
|
$subaccount_address = $metadata->get_address();
|
||||||
|
|
||||||
// Write tx
|
// Write tx
|
||||||
foreach($response as $tx) {
|
foreach ($response as $tx) {
|
||||||
$hash = $tx['hash'];
|
$hash = $tx['hash'];
|
||||||
$type = $tx['type'];
|
$type = $tx['type'];
|
||||||
$status = $tx['status'];
|
$status = $tx['status'];
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ namespace docker_finance\exchanges\internal\exchanges\coinbase_pro
|
|||||||
|
|
||||||
use MockingMagician\CoinbaseProSdk\CoinbaseFacade;
|
use MockingMagician\CoinbaseProSdk\CoinbaseFacade;
|
||||||
use MockingMagician\CoinbaseProSdk\Contracts\Api\ApiInterface;
|
use MockingMagician\CoinbaseProSdk\Contracts\Api\ApiInterface;
|
||||||
|
|
||||||
use docker_finance\utils as utils;
|
use docker_finance\utils as utils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -131,8 +131,7 @@ namespace docker_finance
|
|||||||
}
|
}
|
||||||
} // namespace docker_finance
|
} // namespace docker_finance
|
||||||
|
|
||||||
namespace
|
namespace {
|
||||||
{
|
|
||||||
try {
|
try {
|
||||||
docker_finance\main($argc, $argv);
|
docker_finance\main($argc, $argv);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
|
|||||||
@@ -417,8 +417,8 @@ namespace docker_finance\prices\internal
|
|||||||
$stack = [];
|
$stack = [];
|
||||||
|
|
||||||
// Each element is an array of ticker prices
|
// Each element is an array of ticker prices
|
||||||
foreach($data as $ticker) {
|
foreach ($data as $ticker) {
|
||||||
foreach($ticker as $price) {
|
foreach ($ticker as $price) {
|
||||||
array_push($stack, $price);
|
array_push($stack, $price);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ namespace docker_finance\prices\internal\prices\crypto
|
|||||||
|
|
||||||
$stack = [];
|
$stack = [];
|
||||||
|
|
||||||
for($i = 0; $i < count($prices); $i++) {
|
for ($i = 0; $i < count($prices); $i++) {
|
||||||
|
|
||||||
$timestamp = $prices[$i][0] / 1000;
|
$timestamp = $prices[$i][0] / 1000;
|
||||||
$date = date('Y/m/d', $timestamp);
|
$date = date('Y/m/d', $timestamp);
|
||||||
@@ -196,7 +196,7 @@ namespace docker_finance\prices\internal\prices\crypto
|
|||||||
{
|
{
|
||||||
$stack = [];
|
$stack = [];
|
||||||
|
|
||||||
for($i = 0; $i < count($prices); $i++) {
|
for ($i = 0; $i < count($prices); $i++) {
|
||||||
|
|
||||||
$timestamp = $prices[$i][0] / 1000;
|
$timestamp = $prices[$i][0] / 1000;
|
||||||
$date = date('Y/m/d', $timestamp);
|
$date = date('Y/m/d', $timestamp);
|
||||||
|
|||||||
Reference in New Issue
Block a user