lib/IgraalOSL/StatsTable/StatsColumnBuilder.php
public function insureIsFilled($indexes, $defaultValue)
    {
        $newValues = [];
        foreach ($indexes as $index) {
            $newValues[$index] = array_key_exists($index, $this->values) ? $this->values[$index] : $defaultValue;
        }
        $this->values = $newValues;
    }
public function insureIsFilled($indexes, $defaultValue)
    {
        $newValues = [];
        foreach ($indexes as $index) {
            $newValues[$index] = array_key_exists($index, $this->values) ? $this->values[$index] : $defaultValue;
        }
        $this->values = $newValues;
    }
public function insureIsFilled ( $ indexes , $ defaultValue ) { $ newValues = [ ] ; foreach ( $ indexes as $ index ) { $ newValues [ $ index ] = array_key_exists ( $ index , $ this -> values ) ? $ this -> values [ $ index ] : $ defaultValue ; } $ this -> values = $ newValues ; }
Ensure column is filled with given indexes. If not, it will be filled with default values
@param $indexes
@param $defaultValue
Ensure column is filled with given indexes . If not it will be filled with default values