Skip to content

Commit

Permalink
fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
jshah4517 committed May 28, 2024
1 parent b9e5bf7 commit 070a514
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Api/UserApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
namespace SupportPal\ApiClient\Api;

use SupportPal\ApiClient\Api\User\CustomFields;
use SupportPal\ApiClient\Api\User\Users;
use SupportPal\ApiClient\Api\User\UserGroups;
use SupportPal\ApiClient\Api\User\Users;
use SupportPal\ApiClient\Http\UserClient;

class UserApi extends Api
{
use CustomFields;
use Users;
use UserGroups;
use Users;

public function __construct(protected readonly UserClient $apiClient)
{
Expand Down
6 changes: 4 additions & 2 deletions test/Unit/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ protected function makeCommonExpectations(array $responseData, string $model): a
if (is_array(current($responseData['data']))) {
$models = [];
foreach ($responseData['data'] as $value) {
/** @var Model[] $models */
$models[] = new $model($value);
/** @var Model $model */
$model = new $model($value);

$models[] = $model;
}

$collection = $this->api->createCollection($responseData['count'], $models);
Expand Down

0 comments on commit 070a514

Please sign in to comment.