[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
wp-optimize
/
vendor
/
rosell-dk
/
webp-convert
/
src
/
Options
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
π Exceptions
SET
[ DEL ]
π ArrayOption.php
832 B
SET
[ EDIT ]
|
[ DEL ]
π BooleanOption.php
597 B
SET
[ EDIT ]
|
[ DEL ]
π GhostOption.php
459 B
SET
[ EDIT ]
|
[ DEL ]
π IntegerOption.php
2,079 B
SET
[ EDIT ]
|
[ DEL ]
π IntegerOrNullOption.php
1,291 B
SET
[ EDIT ]
|
[ DEL ]
π MetadataOption.php
1,211 B
SET
[ EDIT ]
|
[ DEL ]
π Option.php
5,890 B
SET
[ EDIT ]
|
[ DEL ]
π OptionFactory.php
3,358 B
SET
[ EDIT ]
|
[ DEL ]
π Options.php
5,465 B
SET
[ EDIT ]
|
[ DEL ]
π QualityOption.php
1,806 B
SET
[ EDIT ]
|
[ DEL ]
π SensitiveArrayOption.php
819 B
SET
[ EDIT ]
|
[ DEL ]
π SensitiveStringOption.php
855 B
SET
[ EDIT ]
|
[ DEL ]
π StringOption.php
1,360 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: QualityOption.php
<?php namespace WebPConvert\Options; use WebPConvert\Options\Option; use WebPConvert\Options\Exceptions\InvalidOptionValueException; /** * Quality option. * * Quality can be a number between 0-100 or "auto" * * @package WebPConvert * @author BjΓΈrn Rosell <it@rosell.dk> * @since Class available since Release 2.0.0 */ class QualityOption extends Option { protected $typeId = 'int'; protected $schemaType = ['integer', 'string']; public function __construct($id, $defaultValue) { parent::__construct($id, $defaultValue); } public function check() { $value = $this->getValue(); if (gettype($value) == 'string') { if ($value != 'auto') { throw new InvalidOptionValueException( 'The "quality" option must be either "auto" or a number between 0-100. ' . 'A string, different from "auto" was given' ); } } elseif (gettype($value) == 'integer') { if (($value < 0) || ($value > 100)) { throw new InvalidOptionValueException( 'The "quality" option must be either "auto" or a number between 0-100. ' . 'The number you provided (' . strval($value) . ') is out of range.' ); } } else { throw new InvalidOptionValueException( 'The "quality" option must be either "auto" or an integer. ' . 'You however provided a value of type: ' . gettype($value) ); } } public function getValueForPrint() { if (gettype($this->getValue()) == 'string') { return '"' . $this->getValue() . '"'; } return $this->getValue(); } }