diff --git a/src/_util/util.js b/src/_util/util.js index 433401ecf1..94372fdfc4 100644 --- a/src/_util/util.js +++ b/src/_util/util.js @@ -625,13 +625,13 @@ class Util { const headKeys = this._headKeys(headComments) const params = { - headKeys: headKeys, - name: name, - filepath: filepath, - codepath: codepath, - code: code, - language: language, - category: category, + headKeys, + name, + filepath, + codepath, + code, + language, + category, func_name: funcName, func_arguments: funcParams } diff --git a/src/php/array/array_splice.js b/src/php/array/array_splice.js index 2292fc48f0..4c790bb9ef 100644 --- a/src/php/array/array_splice.js +++ b/src/php/array/array_splice.js @@ -22,7 +22,7 @@ module.exports = function array_splice (arr, offst, lgth, replacement) { // esli const isInt = require('../var/is_int') - var _checkToUpIndices = function (arr, ct, key) { + const _checkToUpIndices = function (arr, ct, key) { // Deal with situation, e.g., if encounter index 4 and try // to set it to 0, but 0 exists later in loop (need to // increment all subsequent (skipping current key, diff --git a/src/php/json/json_encode.js b/src/php/json/json_encode.js index 2863a9f61a..34710d8e5e 100644 --- a/src/php/json/json_encode.js +++ b/src/php/json/json_encode.js @@ -71,7 +71,7 @@ module.exports = function json_encode (mixedVal) { // eslint-disable-line camelc : '"' + string + '"' } - var _str = function (key, holder) { + const _str = function (key, holder) { let gap = '' const indent = ' ' // The loop counter. diff --git a/src/php/math/max.js b/src/php/math/max.js index 4064713934..846991bdd5 100644 --- a/src/php/math/max.js +++ b/src/php/math/max.js @@ -36,7 +36,7 @@ module.exports = function max () { return ar } } - var _compare = function (current, next) { + const _compare = function (current, next) { let i = 0 let n = 0 let tmp = 0 diff --git a/src/php/math/min.js b/src/php/math/min.js index ec7e4867cb..7bc33c5981 100644 --- a/src/php/math/min.js +++ b/src/php/math/min.js @@ -36,7 +36,7 @@ module.exports = function min () { return ar } - var _compare = function (current, next) { + const _compare = function (current, next) { let i = 0 let n = 0 let tmp = 0 diff --git a/src/php/misc/pack.js b/src/php/misc/pack.js index e49383e21b..9b5ecc10a3 100644 --- a/src/php/misc/pack.js +++ b/src/php/misc/pack.js @@ -267,7 +267,9 @@ module.exports = function pack (format) { const key = (lastBit = precisionBits - 1 + (k = (exp = bias + 1 - k) >= minExp && - exp <= maxExp ? k + 1 : bias + 1 - (exp = minExp - 1))) + 1 + exp <= maxExp + ? k + 1 + : bias + 1 - (exp = minExp - 1))) + 1 if (bin[key]) { if (!(rounded = bin[lastBit])) { diff --git a/src/php/net-gopher/gopher_parsedir.js b/src/php/net-gopher/gopher_parsedir.js index 48cf9a5437..603fd02a23 100644 --- a/src/php/net-gopher/gopher_parsedir.js +++ b/src/php/net-gopher/gopher_parsedir.js @@ -71,7 +71,7 @@ module.exports = function gopher_parsedir (dirent) { // eslint-disable-line came } // GOPHER_UNKNOWN } return { - type: type, + type, title: entry[2], path: entry[3], host: entry[4], diff --git a/src/php/network/setrawcookie.js b/src/php/network/setrawcookie.js index ae643cd664..ccfee952a8 100644 --- a/src/php/network/setrawcookie.js +++ b/src/php/network/setrawcookie.js @@ -26,9 +26,9 @@ module.exports = function setrawcookie (name, value, expires, path, domain, secu const r = [name + '=' + value] let i = '' const s = { - expires: expires, - path: path, - domain: domain + expires, + path, + domain } for (i in s) { if (s.hasOwnProperty(i)) { diff --git a/src/php/url/http_build_query.js b/src/php/url/http_build_query.js index 4990b6b4df..fdb45a8da3 100644 --- a/src/php/url/http_build_query.js +++ b/src/php/url/http_build_query.js @@ -36,7 +36,7 @@ module.exports = function http_build_query (formdata, numericPrefix, argSeparato let key const tmp = [] - var _httpBuildQueryHelper = function (key, val, argSeparator) { + const _httpBuildQueryHelper = function (key, val, argSeparator) { let k const tmp = [] if (val === true) { diff --git a/src/php/var/print_r.js b/src/php/var/print_r.js index 665c0a0a94..bb1b4d841a 100644 --- a/src/php/var/print_r.js +++ b/src/php/var/print_r.js @@ -21,7 +21,7 @@ module.exports = function print_r (array, returnVal) { // eslint-disable-line ca } return str } - var _formatArray = function (obj, curDepth, padVal, padChar) { + const _formatArray = function (obj, curDepth, padVal, padChar) { if (curDepth > 0) { curDepth++ } diff --git a/src/php/var/var_dump.js b/src/php/var/var_dump.js index eec83d11e3..60a70dd044 100644 --- a/src/php/var/var_dump.js +++ b/src/php/var/var_dump.js @@ -110,7 +110,7 @@ module.exports = function var_dump () { // eslint-disable-line camelcase return ret } - var _formatArray = function (obj, curDepth, padVal, padChar) { + const _formatArray = function (obj, curDepth, padVal, padChar) { if (curDepth > 0) { curDepth++ } diff --git a/src/php/xdiff/xdiff_string_diff.js b/src/php/xdiff/xdiff_string_diff.js index 40b9560301..693e60b6de 100644 --- a/src/php/xdiff/xdiff_string_diff.js +++ b/src/php/xdiff/xdiff_string_diff.js @@ -218,7 +218,7 @@ module.exports = function xdiff_string_diff (oldData, newData, contextLines, min } // Function to find lcs and fill in the array to indicate the optimal longest common sequence - var _findLcs = function (xs, xidx, xIsIn, ys) { + const _findLcs = function (xs, xidx, xIsIn, ys) { let i let xb let xe