forked from EvergreenCrypto/docker-finance
container: fetch: run linter
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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'];
|
||||
|
||||
@@ -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']);
|
||||
|
||||
@@ -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'];
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -131,8 +131,7 @@ namespace docker_finance
|
||||
}
|
||||
} // namespace docker_finance
|
||||
|
||||
namespace
|
||||
{
|
||||
namespace {
|
||||
try {
|
||||
docker_finance\main($argc, $argv);
|
||||
} catch (Throwable $e) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user