Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit c239a82

Browse files
committed
Minor adjustments to formatting source.
1 parent 320ea52 commit c239a82

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/ShopifyApp/Console/WebhookJobMakeCommand.php

-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ protected function getArguments(): array
5454
public function handle()
5555
{
5656
$result = parent::handle();
57-
5857
$topic = Util::getGraphQLWebhookTopic($this->argument('topic'));
59-
6058
$type = $this->getUrlFromName($this->argument('name'));
6159
$address = route(Util::getShopifyConfig('route_names.webhook'), $type);
6260

src/ShopifyApp/Services/ApiHelper.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,9 @@ public function createWebhook(array $payload): ResponseAccess
384384
}
385385
';
386386

387-
// change REST-format topics ("resource/event")
388-
// to GraphQL-format topics ("RESOURCE_EVENT") for pre-v17 compatibility
387+
// Change REST-format topics ("resource/event")
388+
// to GraphQL-format topics ("RESOURCE_EVENT"), for pre-v17 compatibility
389389
$topic = Util::getGraphQLWebhookTopic($payload['topic']);
390-
391390
$variables = [
392391
'topic' => $topic,
393392
'webhookSubscription' => [

tests/UtilTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ public function testGraphQLWebhookTopic(): void
8787
{
8888
// REST-format topics are changed to the GraphQL format
8989
$topics = [
90-
'app/uninstalled' => 'APP_UNINSTALLED',
90+
'app/uninstalled' => 'APP_UNINSTALLED',
9191
'orders/partially_fulfilled' => 'ORDERS_PARTIALLY_FULFILLED',
92-
'order_transactions/create' => 'ORDER_TRANSACTIONS_CREATE',
92+
'order_transactions/create' => 'ORDER_TRANSACTIONS_CREATE',
9393
];
9494

9595
foreach ($topics as $restTopic => $graphQLTopic) {

0 commit comments

Comments
 (0)