Vendor/phpspreadsheet/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/PageSetup.php
public function setFitToWidth($pValue, $pUpdate = true)
    {
        $this->fitToWidth = $pValue;
        if ($pUpdate) {
            $this->fitToPage = true;
        }

        return $this;
    }
public function setFitToWidth($pValue, $pUpdate = true)
    {
        $this->fitToWidth = $pValue;
        if ($pUpdate) {
            $this->fitToPage = true;
        }

        return $this;
    }
Set Fit To Width.

@param null|int $pValue
@param bool $pUpdate Update fitToPage so it applies rather than scaling

@return PageSetup