File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,8 +97,7 @@ function getInfos($dimensions) {
9797}
9898function getElementCount ($ dimensions ) {
9999 $ count = 0 ;
100- foreach ( getActions ($ dimensions ) as $ a ) {
101- list ($ dimension , $ subdimension , $ element ) = $ a ;
100+ foreach ( getActions ($ dimensions ) as list ($ dimension , $ subdimension , $ element ) ) {
102101 $ count = $ count + count ( $ element );
103102 echo "$ subdimension: " . count ( $ element ) . "<br> " ;
104103 }
@@ -107,11 +106,8 @@ function getElementCount($dimensions) {
107106function getTable ($ dimensions ) {
108107 $ tableContent = "" ;
109108 $ tableContent .= getTableHeader ();
110- $ actions = getActions ($ dimensions );
111-
112- foreach ( $ actions as $ a ) {
113- list ($ dimension , $ subdimension , $ element ) = $ a ;
114109
110+ foreach ( getActions ($ dimensions ) as list ($ dimension , $ subdimension , $ element ) ) {
115111 $ dimension_icon = isset ($ dimensions [$ dimension ]["_meta " ]["icon " ]) ? $ dimensions [$ dimension ]["_meta " ]["icon " ] : "$ dimension.png " ;
116112 $ dimension_label = isset ($ dimensions [$ dimension ]["_meta " ]["label " ]) ? $ dimensions [$ dimension ]["_meta " ]["label " ] : "$ dimension " ;
117113
You can’t perform that action at this time.
0 commit comments