File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,15 +85,15 @@ public function rawSearchOptions()
8585 ];
8686
8787 $ id = 5 ;
88- foreach (Type::getImpactTypes () as $ type => $ unit ) {
88+ foreach (Type::getImpactTypes () as $ type ) {
8989 $ tab [] = [
9090 'id ' => $ id ,
9191 'table ' => $ this ->getTable (),
9292 'field ' => $ type ,
9393 'name ' => Type::getEmbodiedImpactLabel ($ type ),
9494 'massiveaction ' => false ,
9595 'datatype ' => 'number ' ,
96- 'unit ' => implode (' ' , $ unit ),
96+ 'unit ' => implode (' ' , Type:: getImpactUnit ( $ type ) ),
9797 ];
9898 $ id ++;
9999 }
Original file line number Diff line number Diff line change 3535
3636class Type
3737{
38- const IMPACT_GWP = 0 ; // Global warming potential
39- const IMPACT_ADP = 1 ; // Abiotic Depletion Potential
38+ const IMPACT_GWP = 1 ; // Global warming potential
39+ const IMPACT_ADP = 2 ; // Abiotic Depletion Potential
4040 const IMPACT_PE = 3 ; // Primary Energy
4141 const IMPACT_GWPPB = 4 ;
4242 const IMPACT_GWPPF = 5 ;
@@ -114,7 +114,7 @@ class Type
114114 ];
115115
116116 /**
117- * Undocumented function
117+ * get an array of impact types
118118 *
119119 * @return array<string, array>
120120 */
You can’t perform that action at this time.
0 commit comments