Skip to content

Commit ab0efc8

Browse files
suraj-webkulgithub-actions[bot]
authored andcommitted
chore: applied pint changes
1 parent 91bb708 commit ab0efc8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/Webkul/Automation/src/Services/WebhookService.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function triggerWebhook(mixed $data): array
3737
|| ! isset($data['end_point'])
3838
) {
3939
return [
40-
'status' => 'error',
40+
'status' => 'error',
4141
'response' => 'Missing required fields: method or end_point',
4242
];
4343
}
@@ -397,8 +397,7 @@ protected function isKeyValuePairArray(array $array): bool
397397
}
398398

399399
if (array_is_list($array)) {
400-
return collect($array)->every(fn ($item) =>
401-
is_array($item) && isset($item['key']) && array_key_exists('value', $item)
400+
return collect($array)->every(fn ($item) => is_array($item) && isset($item['key']) && array_key_exists('value', $item)
402401
);
403402
}
404403

@@ -434,6 +433,6 @@ protected function appendQueryParams(string $endPoint, string $queryParamsJson):
434433

435434
$glue = str_contains($endPoint, '?') ? '&' : '?';
436435

437-
return $endPoint . ($queryString ? $glue . $queryString : '');
436+
return $endPoint.($queryString ? $glue.$queryString : '');
438437
}
439438
}

0 commit comments

Comments
 (0)