src/Classes/DatasetClass.php
public function matchValues(int $values, bool $strict = false)
    {
        while (count($this->values) < $values) {
            array_push($this->values, 0);
        }

        if ($strict) {
            $this->values = array_slice($this->values, 0, $values);
        }
    }
public function matchValues(int $values, bool $strict = false)
    {
        while (count($this->values) < $values) {
            array_push($this->values, 0);
        }

        if ($strict) {
            $this->values = array_slice($this->values, 0, $values);
        }
    }
public function matchValues ( int $ values , bool $ strict = false ) { while ( count ( $ this -> values ) < $ values ) { array_push ( $ this -> values , 0 ) ; } if ( $ strict ) { $ this -> values = array_slice ( $ this -> values , 0 , $ values ) ; } }
Matches the values of the dataset with the given number.

@param int  $values
@param bool $strict

@return void
Matches the values of the dataset with the given number .