dzarezenko/coinmarketcap-api

View on GitHub

Showing 6 of 6 total issues

Avoid variables with short names like $ch. Configured minimum length is 3.
Open

private static $ch = null;
Severity: Minor
Found in src/tools/Request.php by phpmd

Missing class import via use statement (line '54', column '23').
Open

throw new \Exception("Curl error: " . curl_error(self::$ch));
Severity: Minor
Found in src/tools/Request.php by phpmd

Missing class import via use statement (line '61', column '23').
Open

throw new \Exception("CoinMarketCap API error: {$json['error']}");
Severity: Minor
Found in src/tools/Request.php by phpmd

Avoid using static access to class '\coinmarketcap\api\tools\Request' in method 'getTicker'.
Open

return Request::exec(self::API_URL . "ticker/", [
'limit' => $limit,
'convert' => $convert
]);
Severity: Minor
Found in src/CoinMarketCap.php by phpmd

Avoid using static access to class '\coinmarketcap\api\tools\Request' in method 'getGlobalData'.
Open

return Request::exec(self::API_URL . "global/", [
'convert' => $convert
]);
Severity: Minor
Found in src/CoinMarketCap.php by phpmd

Avoid using static access to class '\coinmarketcap\api\tools\Request' in method 'getCurrencyTicker'.
Open

return Request::exec(self::API_URL . "ticker/{$currency}/", [
'convert' => $convert
]);
Severity: Minor
Found in src/CoinMarketCap.php by phpmd
Severity
Category
Status
Source
Language