| A | B | |
|---|---|---|
1 | Function | Change |
2 | ParserPower::arrangeParams | The parameter name and value are splited using PPNode::splitArgs() instead of explode() when the parameter has not already been expanded |
3 | The parameter value is no longer expanded and trimmed, the name is still | |
4 | ParserPower::unescape | Double quotes have been replaced with single quotes for consistency |
5 | ParserPower::escape | Double quotes have been replaced with single quotes for consistency |
6 | ParserPowerLists::arrayTrimUnescape | Has been added as an alternative to ParserPower::arrayTrimFilterUnescape() (that also removes empty values) |
7 | ParserPowerLists::arrayTrimSliceUnescape | The $inOffset and $inLength parameters have been merged with the $offset and $length variables, since they were used in summary as "$offset = $inOffset ?? defaultValue" |
8 | ParserPowerLists::arrayTrimFilterUnescape | Has been renamed from ParserPowerLists::arrayTrimUnescape() to better represent what it does |
9 | ParserPowerLists::lstcntRender | The "$list !== ''" if statement has been replaced with a guard for code flattening |
10 | The $count variable has been removed since its only use was "return $count" | |
11 | Empty string and numeric return values no longer ask for being parsed | |
12 | ParserPowerLists::lstsepRender | The "$inList !== ''" if statement has been replaced with a guard for code flattening |
13 | A guard has been added to check if the out list is not empty, the outsep parameter is expanded after it | |
14 | Empty string return values no longer ask for being parsed | |
15 | ParserPowerLists::lstelemRender | The "$inList !== ''" if statement has been replaced with a guard for code flattening |
16 | The "is_numeric($inIndex)" if statement has been replaced with an assignation with default value | |
17 | The $value variable has been removed since its only use was "return $value" | |
18 | The empty string return value no longer ask for being parsed | |
19 | ParserPowerLists::lstsubRender | The "$inList !== ''" and "count($values) > 0" if statements have been replaced with guards for code flattening |
20 | The "is_numeric($inOffset/inLength)" if statements have been replaced with assignations with default values | |
21 | The outsep parameter is now expanded after the "count($values) > 0" guard | |
22 | Empty string return values no longer ask for being parsed | |
23 | ParserPowerLists::lstfndRender | The "$list !== ''" if statement has been replaced with a guard for code flattening |
24 | The empty string return value no longer ask for being parsed | |
25 | ParserPowerLists::lstindRender | The "$list !== ''" if statement has been replaced with a guard for code flattening |
26 | Empty string and numeric return values no longer ask for being parsed | |
27 | ParserPowerLists::lstappRender | The "$list !== ''" if statement has been replaced with a guard for code flattening |
28 | ParserPowerLists::lstprepRender | The "$list !== ''" if statement has been replaced with a guard for code flattening |
29 | ParserPowerLists::lstjoinRender | The "$inList1 !== '' || $inList2 !== ''" if statement has been replaced with a guard for code flattening |
30 | A guard has been added to check if the output list is not empty with an additional $outValues variable, the outsep parameter is expanded after it | |
31 | Empty string return values no longer ask for being parsed | |
32 | ParserPowerLists::applyIntroAndOutro | The $count variable is now converted to a string only once |
33 | ParserPowerLists::lstelemRender | The "$inValue != ''" if statement has been replaced with a guard for code flattening |
34 | The for loop has been replaced with a foreach loop and an $index variable for performance and readability | |
35 | The empty string return value no longer ask for being parsed | |
36 | ParserPowerLists::filterFromListByPattern | The $index variable is now set only once |
37 | The $result variable is no longer trimmed and unescaped as it is already done by ParserPower::applyPatternWithIndex() and ParserPower::applyFieldPatternWithIndex() | |
38 | The $tokens variable is now set using ParserPowerLists::arrayTrimUnsecape() instead of array_map('trim') | |
39 | ParserPowerLists::filterFromListByTemplate | The $result variable is now set only if the $value is not missing |
40 | ParserPowerLists::applyIntroAndOutro | The $count variable is now converted to a string only once |
41 | ParserPowerLists::listfilterRender | The "$inList !== ''" if statement has been replaced with a guard for code flattening |
42 | A guard has been added to check if the input list is not empty, only the insep parameter is expanded before it | |
43 | All specific parameters are expanded only if the corresponding conditions are met | |
44 | The indextoken, token, and counttoken parameters no longer prevent arguments and templates expansion | |
45 | The "count($outValues) > 0" if statement has been replaced with a guard for code flattening, the outsep, counttoken, intro, and outro parameters are expanded after it | |
46 | The $count variable is no longer converted into a string as it is already done by ParserPowerLists::applyIntroAndOutro() | |
47 | The default parameter is now only parsed when a guard is false | |
48 | ParserPowerLists::lstfltrRender | No longer uses ParserPower::arrangeParams() since there is no named parameter |
49 | The "$inList !== ''" if statement has been replaced with a guard for code flattening | |
50 | A guard has been added to check if the input list is not empty, only the insep parameter is expanded before it | |
51 | The "count($outValues) > 0" if statement has been replaced with a guard for code flattening, the outsep parameter is expanded after it | |
52 | Empty string return values no longer ask for being parsed | |
53 | ParserPowerLists::lstrmRender | No longer uses ParserPower::arrangeParams() since there is no named parameter |
54 | The "$inList !== ''" if statement has been replaced with a guard for code flattening | |
55 | A guard has been added to check if the input list is not empty, only the insep parameter is expanded before it | |
56 | The "count($outValues) > 0" if statement has been replaced with a guard for code flattening, the outsep parameter is expanded after it | |
57 | Empty string return values no longer ask for being parsed | |
58 | ParserPowerLists::lstcntuniqRender | The "$inList !== ''" if statement has been replaced with a guard for code flattening |
59 | A guard has been added to check if the list is not empty, only the insep parameter is expanded before it | |
60 | The '0' and numeric return values no longer ask for being parsed | |
61 | ParserPowerLists::reduceToUniqueValuesByKeyPattern | The $index variable is now set only once |
62 | The $key variable is no longer trimmed and unescaped as it is already done by ParserPower::applyPatternWithIndex() and ParserPower::applyFieldPatternWithIndex() | |
63 | ParserPowerLists::listuniqueRender | The "$inList !== ''" if statement has been replaced with a guard for code flattening |
64 | A guard has been added to check if the input list is not empty, only the insep parameter is expanded before it | |
65 | All specific parameters are expanded only if the corresponding conditions are met | |
66 | The indextoken, token, and counttoken parameters no longer prevent arguments and templates expansion | |
67 | The $tokens variable is now set using ParserPowerLists::arrayTrimUnsecape() instead of array_map('trim') | |
68 | The $count variable is no longer converted into a string as it is already done by ParserPowerLists::applyIntroAndOutro() | |
69 | The default parameter is now only parsed when a guard is false | |
70 | ParserPowerLists::lstuniqRender | The "$inList !== ''" if statement has been replaced with a guard for code flattening |
71 | A guard has been added to check if the list is not empty, only the insep parameter is expanded before it | |
72 | Empty string return values no longer ask for being parsed | |
73 | ParserPowerLists::generateSortKeysByPattern | Has been removed, its behavior has been merged with ParserPowerLists::sortListByPattern() |
74 | ParserPowerLists::generateSortKeysByTemplate | Has been removed, its behavior has been merged with ParserPowerLists::sortListByTemplate() |
75 | ParserPowerLists::sortListByKeys | Has been removed, its behavior has been splited to ParserPowerLists::sortListByPattern() and ParserPowerLists::sortListByTemplate() |
76 | ParserPowerLists::sortListByPattern | Has been added, copied from the "pattern" part of ParserPowerLists::sortListByKeys() and from ParserPowerLists::generateSortKeysByPattern() |
77 | The $index variable is now set only once | |
78 | The $key variable is no longer trimmed and unescaped as it is already done by ParserPower::applyPatternWithIndex() and ParserPower::applyFieldPatternWithIndex() | |
79 | ParserPowerLists::sortListByTemplate | Has been added, copied from the "template" part of ParserPowerLists::sortListByKeys() and from ParserPowerLists::generateSortKeysByTemplate() |
80 | The $index variable is now set only once | |
81 | ParserPowerLists::listsortRender | The "$inList !== ''" if statement has been replaced with a guard for code flattening |
82 | A guard has been added to check if the input list is not empty, only the insep parameter is expanded before it | |
83 | The use of ParserPowerLists::sortListByKeys() has been replaced with ParserPowerLists::sortListByPattern() and ParserPowerLists::sortListByTemplate() when the corresponding conditions are met | |
84 | All specific parameters are expanded only if the corresponding conditions are met | |
85 | The indextoken, token, and counttoken parameters no longer prevent arguments and templates expansion | |
86 | The $tokens variable is now set using ParserPowerLists::arrayTrimUnsecape() instead of array_map('trim') | |
87 | The "count($outValues) > 0" if statement has been removed since the sort operation do not remove any value from the list: it is always true | |
88 | The $count variable is no longer converted into a string as it is already done by ParserPowerLists::applyIntroAndOutro() | |
89 | The default parameter is now only parsed when a guard is false | |
90 | ParserPowerLists::lstsrtRender | The "$inList !== ''" if statement has been replaced with a guard for code flattening |
91 | A guard has been added to check if the list is not empty, only the insep parameter is expanded before it | |
92 | Empty string return values no longer ask for being parsed | |
93 | ParserPowerLists::applyPatternToList | The list splitting, sorting, and duplicates removal behaviors have been merged with ParserPowerLists::listmapRender() and ParserPowerLists::lstmapRender() |
94 | The $tokens variable is now set using ParserPowerLists::arrayTrimUnsecape() instead of array_map('trim') | |
95 | ParserPowerLists::applyTemplateToList | The list splitting, sorting, and duplicates removal behaviors have been merged with ParserPowerLists::listmapRender() and ParserPowerLists::lstmaptempRender() |
96 | The value is now only parsed with the given template and added to the list if it does not contain whitespaces only | |
97 | The $tokens variable is now set using ParserPowerLists::arrayTrimUnsecape() instead of array_map('trim') | |
98 | ParserPowerLists::listmapRender | The "$inList !== ''" if statement has been replaced with a guard for code flattening |
99 | A guard has been added to check if the input list is not empty, only the insep parameter is expanded before it | |
100 | The list splitting, sorting, and duplicates removal behaviors from ParserPowerLists::applyPatternToList() and ParserPowerLists::applyTemplateToList() have been merged here |