Add PHP-ALIAS-01 rule: prohibit field aliasing in serialization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
8 lines
230 B
JavaScript
8 lines
230 B
JavaScript
/**
|
|
* @param {boolean} isHTTPS true when need https module, otherwise false
|
|
* @returns {Promise<import("http") | import("https")>}
|
|
*/
|
|
module.exports = function (isHTTPS) {
|
|
return isHTTPS ? import("https") : import("http");
|
|
};
|