Skip to content

Commit

Permalink
Merge branch 'list-all-method' of github.com:vormkracht10/wefact-php …
Browse files Browse the repository at this point in the history
…into list-all-method
  • Loading branch information
Baspa committed Aug 30, 2023
2 parents 065d747 + 9feb7ee commit 22051df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Resources/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public function list(array $params = []): array
}

/**
* @param int $offset
* @param int $perPage
* @return array<string, mixed>|MethodNotAvailableException|ClientException|ServerException|BadResponseException|JsonException
*
* @throws ClientException|ServerException|BadResponseException|JsonException
Expand All @@ -66,7 +64,7 @@ public function listAll(int $offset = 0, int $perPage = 1000)
]
);

foreach($result[$pluralResourceName] as $index => $item) {
foreach ($result[$pluralResourceName] as $index => $item) {
$calls++;

if ($calls % $limitPerSecond == 0) {
Expand Down

0 comments on commit 22051df

Please sign in to comment.