From 464f8fec4145fea6714c4234f0bcbc75b84100e0 Mon Sep 17 00:00:00 2001 From: mahdimsr <32928013+mahdimsr@users.noreply.github.com> Date: Fri, 26 Sep 2025 12:53:15 +0000 Subject: [PATCH] Fix styling --- src/LaravelBitunixApi.php | 4 ++-- src/LaravelBitunixApiServiceProvider.php | 2 +- src/Requests/FutureKLineRequestContract.php | 16 +++++----------- tests/TestCase.php | 2 +- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/LaravelBitunixApi.php b/src/LaravelBitunixApi.php index 90e4075..5b73040 100644 --- a/src/LaravelBitunixApi.php +++ b/src/LaravelBitunixApi.php @@ -13,7 +13,7 @@ class LaravelBitunixApi implements FutureKLineRequestContract public function __construct() { $this->publicFutureClient = new Client([ - 'base_uri' => config('bitunix-api.future_base_uri') . '/api/v1/futures/market/', + 'base_uri' => config('bitunix-api.future_base_uri').'/api/v1/futures/market/', ]); } @@ -27,7 +27,7 @@ class LaravelBitunixApi implements FutureKLineRequestContract 'startTime' => $startTime, 'endTime' => $endTime, 'type' => $type, - ] + ], ]); return $response; diff --git a/src/LaravelBitunixApiServiceProvider.php b/src/LaravelBitunixApiServiceProvider.php index b8aa134..a984a54 100644 --- a/src/LaravelBitunixApiServiceProvider.php +++ b/src/LaravelBitunixApiServiceProvider.php @@ -2,10 +2,10 @@ namespace Msr\LaravelBitunixApi; +use Msr\LaravelBitunixApi\Commands\LaravelBitunixApiCommand; use Msr\LaravelBitunixApi\Requests\FutureKLineRequestContract; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; -use Msr\LaravelBitunixApi\Commands\LaravelBitunixApiCommand; class LaravelBitunixApiServiceProvider extends PackageServiceProvider { diff --git a/src/Requests/FutureKLineRequestContract.php b/src/Requests/FutureKLineRequestContract.php index 2e36784..d0654cc 100644 --- a/src/Requests/FutureKLineRequestContract.php +++ b/src/Requests/FutureKLineRequestContract.php @@ -7,12 +7,6 @@ use Psr\Http\Message\ResponseInterface; interface FutureKLineRequestContract { /** - * @param string $symbol - * @param string $interval - * @param int $limit - * @param int|null $startTime - * @param int|null $endTime - * @param string $type * @return ResponseInterface * * interval could be: 1m 5m 15m 30m 1h 2h 4h 6h 8h 12h 1d 3d 1w 1M @@ -22,9 +16,9 @@ interface FutureKLineRequestContract * type could be: LAST_PRICE, MARK_PRICE */ public function getFutureKline(string $symbol, - string $interval, - int $limit = 100, - ?int $startTime = null, - ?int $endTime = null, - string $type = 'LAST_PRICE'): ResponseInterface; + string $interval, + int $limit = 100, + ?int $startTime = null, + ?int $endTime = null, + string $type = 'LAST_PRICE'): ResponseInterface; } diff --git a/tests/TestCase.php b/tests/TestCase.php index 6e766a1..11a3486 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -3,8 +3,8 @@ namespace Msr\LaravelBitunixApi\Tests; use Illuminate\Database\Eloquent\Factories\Factory; -use Orchestra\Testbench\TestCase as Orchestra; use Msr\LaravelBitunixApi\LaravelBitunixApiServiceProvider; +use Orchestra\Testbench\TestCase as Orchestra; class TestCase extends Orchestra {