private function _validateReportWidth($width) { if ($width === 'auto' && preg_match('|\\d+ (\\d+)|', shell_exec('stty size 2>&1'), $matches) === 1) { return (int) $matches[1]; } return (int) $width; }