AB
1
FunctionChange
2
ParserPower::arrangeParamsThe 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::unescapeDouble quotes have been replaced with single quotes for consistency
5
ParserPower::escapeDouble quotes have been replaced with single quotes for consistency
6
ParserPowerLists::arrayTrimUnescapeHas been added as an alternative to ParserPower::arrayTrimFilterUnescape() (that also removes empty values)
7
ParserPowerLists::arrayTrimSliceUnescapeThe $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::arrayTrimFilterUnescapeHas been renamed from ParserPowerLists::arrayTrimUnescape() to better represent what it does
9
ParserPowerLists::lstcntRenderThe "$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::lstsepRenderThe "$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::lstelemRenderThe "$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::lstsubRenderThe "$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::lstfndRenderThe "$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::lstindRenderThe "$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::lstappRenderThe "$list !== ''" if statement has been replaced with a guard for code flattening
28
ParserPowerLists::lstprepRenderThe "$list !== ''" if statement has been replaced with a guard for code flattening
29
ParserPowerLists::lstjoinRenderThe "$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::applyIntroAndOutroThe $count variable is now converted to a string only once
33
ParserPowerLists::lstelemRenderThe "$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::filterFromListByPatternThe $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::filterFromListByTemplateThe $result variable is now set only if the $value is not missing
40
ParserPowerLists::applyIntroAndOutroThe $count variable is now converted to a string only once
41
ParserPowerLists::listfilterRenderThe "$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::lstfltrRenderNo 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::lstrmRenderNo 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::lstcntuniqRenderThe "$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::reduceToUniqueValuesByKeyPatternThe $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::listuniqueRenderThe "$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::lstuniqRenderThe "$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::generateSortKeysByPatternHas been removed, its behavior has been merged with ParserPowerLists::sortListByPattern()
74
ParserPowerLists::generateSortKeysByTemplateHas been removed, its behavior has been merged with ParserPowerLists::sortListByTemplate()
75
ParserPowerLists::sortListByKeysHas been removed, its behavior has been splited to ParserPowerLists::sortListByPattern() and ParserPowerLists::sortListByTemplate()
76
ParserPowerLists::sortListByPatternHas 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::sortListByTemplateHas 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::listsortRenderThe "$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::lstsrtRenderThe "$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::applyPatternToListThe 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::applyTemplateToListThe 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::listmapRenderThe "$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