Skip to content

Commit 0dd70d0

Browse files
committed
chore: lint fix
1 parent dec678c commit 0dd70d0

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

backend/pro/src/HTTP/Controllers/LicenseController.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ public function activateLicense()
4343

4444
$data['slug'] = PluginCommonConfig::getProPluginSlug();
4545

46-
$this->httpClient->setHeaders([
47-
'content-type' => 'application/json',
48-
]);
46+
$this->httpClient->setHeaders(
47+
[
48+
'content-type' => 'application/json',
49+
]
50+
);
4951

5052
$this->httpClient->setBody($data);
5153

@@ -78,9 +80,11 @@ public function deactivateLicense()
7880

7981
$data['domain'] = is_multisite() ? network_site_url() : site_url();
8082

81-
$this->httpClient->setHeaders([
82-
'content-type' => 'application/json',
83-
]);
83+
$this->httpClient->setHeaders(
84+
[
85+
'content-type' => 'application/json',
86+
]
87+
);
8488

8589
$this->httpClient->setBody($data);
8690

backend/pro/src/HTTP/Controllers/PluginUpdateController.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ public function isPluginUpdateAvailable()
5959
$latestVersion = $updatePlugins->response[$freePluginSlug . '/' . $freePluginSlug . '.php']->new_version;
6060
}
6161

62-
return wp_send_json_success([
63-
'latest_version' => $latestVersion,
64-
]);
62+
return wp_send_json_success(
63+
[
64+
'latest_version' => $latestVersion,
65+
]
66+
);
6567
}
6668

6769
private function getPluginSlug()

backend/pro/src/ProPluginUpdater.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,13 @@ public function licenseExpirationNotice()
7979
? \sprintf('%s License will expire in %s days', (int) $expireInDays, PluginCommonConfig::getFreePluginTitle())
8080
: \sprintf('%s License is expired', PluginCommonConfig::getFreePluginTitle());
8181

82-
echo wp_kses("<div class='notice notice-error is-dismissible'>
82+
// phpcs:ignore Generic.PHP.ForbiddenFunctions.FoundWithAlternative
83+
echo wp_kses(
84+
"<div class='notice notice-error is-dismissible'>
8385
<p>{$notice}</p>
84-
</div>", $allowedTags);
86+
</div>",
87+
$allowedTags
88+
);
8589
}
8690
}
8791
}

0 commit comments

Comments
 (0)