Skip to content

Commit

Permalink
chore: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Katalam committed May 12, 2024
1 parent 7a869b5 commit 4f1ecd6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions src/Facades/EstateRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/**
* @see \Katalam\OnOfficeAdapter\Repositories\EstateRepository
*
* @method static all()
*/
class EstateRepository extends Facade
Expand Down
3 changes: 1 addition & 2 deletions src/OnOfficeAdapterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -24,7 +24,6 @@ public function configurePackage(Package $package): void
->hasCommand(OnOfficeAdapterCommand::class);
}


public function bootingPackage(): void
{
Http::macro('onOffice', function () {
Expand Down
3 changes: 1 addition & 2 deletions src/Repositories/EstateRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
{
public function __construct(
private OnOfficeService $onOfficeService,
)
{
) {
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Services/OnOfficeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -112,7 +114,6 @@ public function requestApi(
return $response;
}


/**
* Makes a paginated request to the onOffice API.
* With a max page calculation based on
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 4f1ecd6

Please sign in to comment.