diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index 56d54d3..1e8e466 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -25,4 +25,4 @@ jobs: - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: Fix styling + commit_message: "chore: code style issues" diff --git a/src/Facades/EstateRepository.php b/src/Facades/EstateRepository.php index d473d49..49288ab 100644 --- a/src/Facades/EstateRepository.php +++ b/src/Facades/EstateRepository.php @@ -6,6 +6,7 @@ /** * @see \Katalam\OnOfficeAdapter\Repositories\EstateRepository + * * @method static all() */ class EstateRepository extends Facade diff --git a/src/OnOfficeAdapterServiceProvider.php b/src/OnOfficeAdapterServiceProvider.php index ca7112c..0577cdb 100644 --- a/src/OnOfficeAdapterServiceProvider.php +++ b/src/OnOfficeAdapterServiceProvider.php @@ -3,10 +3,10 @@ namespace Katalam\OnOfficeAdapter; use Illuminate\Support\Facades\Http; +use Katalam\OnOfficeAdapter\Commands\OnOfficeAdapterCommand; use Katalam\OnOfficeAdapter\Services\OnOfficeService; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; -use Katalam\OnOfficeAdapter\Commands\OnOfficeAdapterCommand; class OnOfficeAdapterServiceProvider extends PackageServiceProvider { @@ -24,7 +24,6 @@ public function configurePackage(Package $package): void ->hasCommand(OnOfficeAdapterCommand::class); } - public function bootingPackage(): void { Http::macro('onOffice', function () { diff --git a/src/Repositories/EstateRepository.php b/src/Repositories/EstateRepository.php index 37df2d0..29c43cb 100644 --- a/src/Repositories/EstateRepository.php +++ b/src/Repositories/EstateRepository.php @@ -12,8 +12,7 @@ { public function __construct( private OnOfficeService $onOfficeService, - ) - { + ) { } /** diff --git a/src/Services/OnOfficeService.php b/src/Services/OnOfficeService.php index 6784e58..1ab6e40 100644 --- a/src/Services/OnOfficeService.php +++ b/src/Services/OnOfficeService.php @@ -18,7 +18,9 @@ class OnOfficeService * Parameter constants for the onOffice API request. */ public const DATA = 'data'; + public const LISTLIMIT = 'listlimit'; + public const LISTOFFSET = 'listoffset'; private string $token; @@ -112,7 +114,6 @@ public function requestApi( return $response; } - /** * Makes a paginated request to the onOffice API. * With a max page calculation based on @@ -125,8 +126,7 @@ public function requestAll( string $countPath = 'response.results.0.data.meta.cntabsolute', int $pageSize = 200, int $offset = 0 - ): Collection - { + ): Collection { $maxPage = 0; $data = collect(); do { diff --git a/tests/TestCase.php b/tests/TestCase.php index ae2491b..ce52e82 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -3,8 +3,8 @@ namespace Katalam\OnOfficeAdapter\Tests; use Illuminate\Database\Eloquent\Factories\Factory; -use Orchestra\Testbench\TestCase as Orchestra; use Katalam\OnOfficeAdapter\OnOfficeAdapterServiceProvider; +use Orchestra\Testbench\TestCase as Orchestra; class TestCase extends Orchestra {