diff --git a/Core/Core.php b/Core/Core.php index 366fea068..ea2f8375e 100755 --- a/Core/Core.php +++ b/Core/Core.php @@ -11,7 +11,7 @@ * @return string the Zend Engine version number, as a string. */ #[Pure] -function zend_version (): string {} +function zend_version(): string {} /** * Returns the number of arguments passed to the function @@ -20,7 +20,7 @@ function zend_version (): string {} * function. */ #[Pure] -function func_num_args (): int {} +function func_num_args(): int {} /** * Return an item from the argument list @@ -32,7 +32,7 @@ function func_num_args (): int {} * @return mixed|false the specified argument, or false on error. */ #[Pure] -function func_get_arg (int $position): mixed {} +function func_get_arg(int $position): mixed {} /** * Returns an array comprising a function's argument list @@ -41,7 +41,7 @@ function func_get_arg (int $position): mixed {} * member of the current user-defined function's argument list. */ #[Pure] -function func_get_args (): array {} +function func_get_args(): array {} /** * Get string length @@ -53,7 +53,7 @@ function func_get_args (): array {} * and 0 if the string is empty. */ #[Pure] -function strlen (string $string): int {} +function strlen(string $string): int {} /** * Binary safe string comparison @@ -70,8 +70,7 @@ function strlen (string $string): int {} * equal. */ #[Pure] -function strcmp (string $string1, string $string2): int -{} +function strcmp(string $string1, string $string2): int {} /** * Binary safe string comparison of the first n characters @@ -91,8 +90,7 @@ function strcmp (string $string1, string $string2): int * equal. */ #[Pure] -function strncmp (string $string1, string $string2, int $length): int -{} +function strncmp(string $string1, string $string2, int $length): int {} /** * Binary safe case-insensitive string comparison @@ -109,8 +107,7 @@ function strncmp (string $string1, string $string2, int $length): int * equal. */ #[Pure] -function strcasecmp (string $string1, string $string2): int -{} +function strcasecmp(string $string1, string $string2): int {} /** * Binary safe case-insensitive string comparison of the first n characters @@ -129,8 +126,7 @@ function strcasecmp (string $string1, string $string2): int * greater than str2, and 0 if they are equal. */ #[Pure] -function strncasecmp (string $string1, string $string2, int $length): int -{} +function strncasecmp(string $string1, string $string2, int $length): int {} /** * The function returns {@see true} if the passed $haystack starts from the @@ -142,7 +138,7 @@ function strncasecmp (string $string1, string $string2, int $length): int * @since 8.0 */ #[Pure] -function str_starts_with(string $haystack, string $needle) : bool {} +function str_starts_with(string $haystack, string $needle): bool {} /** * The function returns {@see true} if the passed $haystack ends with the @@ -154,7 +150,7 @@ function str_starts_with(string $haystack, string $needle) : bool {} * @since 8.0 */ #[Pure] -function str_ends_with(string $haystack, string $needle) : bool {} +function str_ends_with(string $haystack, string $needle): bool {} /** * Checks if $needle is found in $haystack and returns a boolean value @@ -166,7 +162,7 @@ function str_ends_with(string $haystack, string $needle) : bool {} * @since 8.0 */ #[Pure] -function str_contains(string $haystack, string $needle) : bool {} +function str_contains(string $haystack, string $needle): bool {} /** * Return the current key and value pair from an array and advance the array cursor @@ -189,8 +185,7 @@ function str_contains(string $haystack, string $needle) : bool {} * @removed 8.0 */ #[Deprecated(reason: "Use a foreach loop instead", since: "7.2")] -function each (&$array): array -{} +function each(&$array): array {} /** * Sets which PHP errors are reported @@ -314,8 +309,7 @@ function each (&$array): array * level or the current level if no level parameter is * given. */ -function error_reporting (?int $error_level): int -{} +function error_reporting(?int $error_level): int {} /** * Defines a named constant @@ -342,8 +336,7 @@ function error_reporting (?int $error_level): int *

* @return bool true on success or false on failure. */ -function define (string $constant_name, $value, #[Deprecated] bool $case_insensitive = false): bool -{} +function define(string $constant_name, $value, #[Deprecated] bool $case_insensitive = false): bool {} /** * Checks whether a given named constant exists @@ -355,8 +348,7 @@ function define (string $constant_name, $value, #[Deprecated] bool $case_insensi * has been defined, false otherwise. */ #[Pure] -function defined (string $constant_name): bool -{} +function defined(string $constant_name): bool {} /** * Returns the name of the class of an object @@ -370,8 +362,7 @@ function defined (string $constant_name): bool * name of that class is returned.

*/ #[Pure] -function get_class (object $object): string -{} +function get_class(object $object): string {} /** * the "Late Static Binding" class name @@ -379,8 +370,7 @@ function get_class (object $object): string * @return string */ #[Pure] -function get_called_class (): string -{} +function get_called_class(): string {} /** * Retrieves the parent class name for object or class @@ -398,8 +388,7 @@ function get_called_class (): string * If called without parameter outside object, this function returns false.

*/ #[Pure] -function get_parent_class (object|string $object_or_class): string|false -{} +function get_parent_class(object|string $object_or_class): string|false {} /** * Checks if the class method exists @@ -415,8 +404,7 @@ function get_parent_class (object|string $object_or_class): string|false * otherwise. */ #[Pure] -function method_exists ($object_or_class, string $method): bool -{} +function method_exists($object_or_class, string $method): bool {} /** * Checks if the object or class has a property @@ -431,8 +419,7 @@ function method_exists ($object_or_class, string $method): bool * null in case of an error. */ #[Pure] -function property_exists ($object_or_class, string $property): bool -{} +function property_exists($object_or_class, string $property): bool {} /** * Checks if the trait exists @@ -442,8 +429,7 @@ function property_exists ($object_or_class, string $property): bool * @link https://secure.php.net/manual/en/function.trait-exists.php * @since 5.4 */ -function trait_exists(string $trait, bool $autoload = true): bool -{} +function trait_exists(string $trait, bool $autoload = true): bool {} /** * Checks if the class has been defined @@ -457,8 +443,7 @@ function trait_exists(string $trait, bool $autoload = true): bool * @return bool true if class_name is a defined class, * false otherwise. */ -function class_exists (string $class, bool $autoload = true): bool -{} +function class_exists(string $class, bool $autoload = true): bool {} /** * Checks if the interface has been defined @@ -473,8 +458,7 @@ function class_exists (string $class, bool $autoload = true): bool * interface_name has been defined, false otherwise. * @since 5.0.2 */ -function interface_exists (string $interface, bool $autoload = true): bool -{} +function interface_exists(string $interface, bool $autoload = true): bool {} /** * Return true if the given function has been defined @@ -490,8 +474,7 @@ function interface_exists (string $interface, bool $autoload = true): bool * include_once and echo. */ #[Pure] -function function_exists (string $function): bool -{} +function function_exists(string $function): bool {} /** * Creates an alias for a class @@ -501,8 +484,7 @@ function function_exists (string $function): bool * @param bool $autoload [optional] Whether to autoload if the original class is not found. * @return bool true on success or false on failure. */ -function class_alias (string $class, string $alias, bool $autoload = true): bool -{} +function class_alias(string $class, string $alias, bool $autoload = true): bool {} /** * Returns an array with the names of included or required files @@ -519,8 +501,7 @@ function class_alias (string $class, string $alias, bool $autoload = true): bool *

*/ #[Pure] -function get_included_files (): array -{} +function get_included_files(): array {} /** * Alias of get_included_files @@ -528,8 +509,7 @@ function get_included_files (): array * @return string[] */ #[Pure] -function get_required_files (): array -{} +function get_required_files(): array {} /** * checks if the object has this class as one of its parents or implements it @@ -549,8 +529,7 @@ function get_required_files (): array * class_name, false otherwise. */ #[Pure] -function is_subclass_of (mixed $object_or_class, string $class, bool $allow_string = true): bool -{} +function is_subclass_of(mixed $object_or_class, string $class, bool $allow_string = true): bool {} /** * Checks if the object is of this class or has this class as one of its parents @@ -569,8 +548,7 @@ function is_subclass_of (mixed $object_or_class, string $class, bool $allow_stri * its parents, FALSE otherwise. */ #[Pure] -function is_a (mixed $object_or_class, string $class, bool $allow_string = false): bool -{} +function is_a(mixed $object_or_class, string $class, bool $allow_string = false): bool {} /** * Get the default properties of the class @@ -584,8 +562,7 @@ function is_a (mixed $object_or_class, string $class, bool $allow_string = false * varname => value. */ #[Pure] -function get_class_vars (string $class): array -{} +function get_class_vars(string $class): array {} /** * Gets the properties of the given object @@ -598,8 +575,7 @@ function get_class_vars (string $class): array * not been assigned a value, it will be returned with a null value. */ #[Pure] -function get_object_vars (object $object): array -{} +function get_object_vars(object $object): array {} /** * Gets the class methods' names @@ -611,8 +587,7 @@ function get_object_vars (object $object): array * class_name. In case of an error, it returns null. */ #[Pure] -function get_class_methods (object|string $object_or_class): array -{} +function get_class_methods(object|string $object_or_class): array {} /** * Generates a user-level error/warning/notice message @@ -629,8 +604,7 @@ function get_class_methods (object|string $object_or_class): array * @return bool This function returns false if wrong error_type is * specified, true otherwise. */ -function trigger_error (string $message, int $error_level = E_USER_NOTICE): bool -{} +function trigger_error(string $message, int $error_level = E_USER_NOTICE): bool {} /** * Alias of trigger_error @@ -640,8 +614,7 @@ function trigger_error (string $message, int $error_level = E_USER_NOTICE): bool * @return bool This function returns false if wrong error_type is * specified, true otherwise. */ -function user_error (string $message, int $error_level = E_USER_NOTICE): bool -{} +function user_error(string $message, int $error_level = E_USER_NOTICE): bool {} /** * Sets a user-defined error handler function @@ -677,16 +650,14 @@ function user_error (string $message, int $error_level = E_USER_NOTICE): bool * was a class method, this function will return an indexed array with the class * and the method name. */ -function set_error_handler (?callable $callback, int $error_levels = E_ALL | E_STRICT) -{} +function set_error_handler(?callable $callback, int $error_levels = E_ALL|E_STRICT) {} /** * Restores the previous error handler function * @link https://php.net/manual/en/function.restore-error-handler.php * @return bool This function always returns true. */ -function restore_error_handler (): bool -{} +function restore_error_handler(): bool {} /** * Sets a user-defined exception handler function @@ -702,16 +673,14 @@ function restore_error_handler (): bool * @return callable|null the name of the previously defined exception handler, or null on error. If * no previous handler was defined, null is also returned. */ -function set_exception_handler (?callable $callback) -{} +function set_exception_handler(?callable $callback) {} /** * Restores the previously defined exception handler function * @link https://php.net/manual/en/function.restore-exception-handler.php * @return bool This function always returns true. */ -function restore_exception_handler (): bool -{} +function restore_exception_handler(): bool {} /** * Returns an array with the name of the defined classes @@ -726,8 +695,7 @@ function restore_exception_handler (): bool *

*/ #[Pure] -function get_declared_classes (): array -{} +function get_declared_classes(): array {} /** * Returns an array of all declared interfaces @@ -736,8 +704,7 @@ function get_declared_classes (): array * script. */ #[Pure] -function get_declared_interfaces (): array -{} +function get_declared_interfaces(): array {} /** * Returns an array of all declared traits @@ -747,8 +714,7 @@ function get_declared_interfaces (): array * @since 5.4 */ #[Pure] -function get_declared_traits(): array -{} +function get_declared_traits(): array {} /** * Returns an array of all defined functions @@ -761,8 +727,7 @@ function get_declared_traits(): array * below). */ #[Pure] -function get_defined_functions (bool $exclude_disabled = true): array -{} +function get_defined_functions(bool $exclude_disabled = true): array {} /** * Returns an array of all defined variables @@ -770,8 +735,7 @@ function get_defined_functions (bool $exclude_disabled = true): array * @return array A multidimensional array with all the variables. */ #[Pure] -function get_defined_vars (): array -{} +function get_defined_vars(): array {} /** * Create an anonymous (lambda-style) function @@ -786,8 +750,7 @@ function get_defined_vars (): array * @removed 8.0 */ #[Deprecated(reason: "Use anonymous functions instead", since: "7.2")] -function create_function (string $args, string $code): false|string -{} +function create_function(string $args, string $code): false|string {} /** * Returns the resource type @@ -800,8 +763,7 @@ function create_function (string $args, string $code): false|string * by this function, the return value will be the string * Unknown. */ -function get_resource_type ($resource): string -{} +function get_resource_type($resource): string {} /** * Returns an array with the names of all modules compiled and loaded @@ -813,8 +775,7 @@ function get_resource_type ($resource): string * @return string[] an indexed array of all the modules names. */ #[Pure] -function get_loaded_extensions (bool $zend_extensions = false): array -{} +function get_loaded_extensions(bool $zend_extensions = false): array {} /** * Find out whether an extension is loaded @@ -849,8 +810,7 @@ function get_loaded_extensions (bool $zend_extensions = false): array * is loaded, false otherwise. */ #[Pure] -function extension_loaded (string $extension): bool -{} +function extension_loaded(string $extension): bool {} /** * Returns an array with the names of the functions of a module @@ -865,8 +825,7 @@ function extension_loaded (string $extension): bool * module_name is not a valid extension. */ #[Pure] -function get_extension_funcs (string $extension): array|false -{} +function get_extension_funcs(string $extension): array|false {} /** * Returns an associative array with the names of all the constants and their values @@ -923,8 +882,7 @@ function get_extension_funcs (string $extension): array|false * @return array */ #[Pure] -function get_defined_constants (bool $categorize = false): array -{} +function get_defined_constants(bool $categorize = false): array {} /** * Generates a backtrace @@ -1024,8 +982,7 @@ function get_defined_constants (bool $categorize = false): array * * */ -function debug_backtrace (int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $limit = 0): array -{} +function debug_backtrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $limit = 0): array {} /** * Prints a backtrace @@ -1049,15 +1006,14 @@ function debug_backtrace (int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $li *

* @return void */ -function debug_print_backtrace (int $options = 0, int $limit = 0): void {} +function debug_print_backtrace(int $options = 0, int $limit = 0): void {} /** * Forces collection of any existing garbage cycles * @link https://php.net/manual/en/function.gc-collect-cycles.php * @return int number of collected cycles. */ -function gc_collect_cycles (): int -{} +function gc_collect_cycles(): int {} /** * Returns status of the circular reference collector @@ -1065,22 +1021,21 @@ function gc_collect_cycles (): int * @return bool true if the garbage collector is enabled, false otherwise. */ #[Pure] -function gc_enabled (): bool -{} +function gc_enabled(): bool {} /** * Activates the circular reference collector * @link https://php.net/manual/en/function.gc-enable.php * @return void */ -function gc_enable (): void {} +function gc_enable(): void {} /** * Deactivates the circular reference collector * @link https://php.net/manual/en/function.gc-disable.php * @return void */ -function gc_disable (): void {} +function gc_disable(): void {} /** * Gets information about the garbage collector @@ -1101,8 +1056,7 @@ function gc_disable (): void {} "roots" => "int" ])] #[Pure] -function gc_status (): array -{} +function gc_status(): array {} /** * Reclaims memory used by the Zend Engine memory manager @@ -1110,8 +1064,7 @@ function gc_status (): array * @return int Returns the number of bytes freed. * @since 7.0 */ -function gc_mem_caches (): int -{} +function gc_mem_caches(): int {} /** * Returns active resources @@ -1128,5 +1081,4 @@ function gc_mem_caches (): int * @since 7.0 */ #[Pure] -function get_resources (?string $type): array -{} +function get_resources(?string $type): array {} diff --git a/Core/Core_c.php b/Core/Core_c.php index 45b0290fe..114650f6d 100644 --- a/Core/Core_c.php +++ b/Core/Core_c.php @@ -8,8 +8,7 @@ * Created by typecasting to object. * @link https://php.net/manual/en/reserved.classes.php */ -class stdClass { -} +class stdClass {} /** * @link https://wiki.php.net/rfc/iterable @@ -23,15 +22,14 @@ interface iterable {} * * @link https://php.net/manual/en/class.traversable.php */ -interface Traversable extends iterable { -} +interface Traversable extends iterable {} /** * Interface to create an external Iterator. * @link https://php.net/manual/en/class.iteratoraggregate.php */ -interface IteratorAggregate extends Traversable { - +interface IteratorAggregate extends Traversable +{ /** * Retrieve an external iterator * @link https://php.net/manual/en/iteratoraggregate.getiterator.php @@ -47,8 +45,8 @@ public function getIterator(); * themselves internally. * @link https://php.net/manual/en/class.iterator.php */ -interface Iterator extends Traversable { - +interface Iterator extends Traversable +{ /** * Return the current element * @link https://php.net/manual/en/iterator.current.php @@ -90,8 +88,8 @@ public function rewind(); * Interface to provide accessing objects as arrays. * @link https://php.net/manual/en/class.arrayaccess.php */ -interface ArrayAccess { - +interface ArrayAccess +{ /** * Whether a offset exists * @link https://php.net/manual/en/arrayaccess.offsetexists.php @@ -143,8 +141,8 @@ public function offsetUnset($offset); * Interface for customized serializing. * @link https://php.net/manual/en/class.serializable.php */ -interface Serializable { - +interface Serializable +{ /** * String representation of object. * @link https://php.net/manual/en/serializable.serialize.php @@ -162,7 +160,6 @@ public function serialize(); public function unserialize($data); } - /** * Throwable is the base interface for any object that can be thrown via a throw statement in PHP 7, * including Error and Exception. @@ -171,7 +168,6 @@ public function unserialize($data); */ interface Throwable extends Stringable { - /** * Gets the message * @link https://php.net/manual/en/throwable.getmessage.php @@ -249,7 +245,8 @@ public function __toString(); * all Exceptions. * @link https://php.net/manual/en/class.exception.php */ -class Exception implements Throwable { +class Exception implements Throwable +{ /** The error message */ protected $message; /** The error code */ @@ -259,14 +256,13 @@ class Exception implements Throwable { /** The line where the error happened */ protected $line; - /** * Clone the exception * Tries to clone the Exception, which results in Fatal error. * @link https://php.net/manual/en/exception.clone.php * @return void */ - final private function __clone() { } + final private function __clone() {} /** * Construct the exception. Note: The message is NOT binary safe. @@ -276,7 +272,7 @@ final private function __clone() { } * @param null|Throwable $previous [optional] The previous throwable used for the exception chaining. */ #[Pure] - public function __construct($message = "", $code = 0, Throwable $previous = null) { } + public function __construct($message = "", $code = 0, Throwable $previous = null) {} /** * Gets the Exception message @@ -284,7 +280,7 @@ public function __construct($message = "", $code = 0, Throwable $previous = null * @return string the Exception message as a string. */ #[Pure] - final public function getMessage() { } + final public function getMessage() {} /** * Gets the Exception code @@ -295,7 +291,7 @@ final public function getMessage() { } * string in PDOException). */ #[Pure] - final public function getCode() { } + final public function getCode() {} /** * Gets the file in which the exception occurred @@ -303,7 +299,7 @@ final public function getCode() { } * @return string the filename in which the exception was created. */ #[Pure] - final public function getFile() { } + final public function getFile() {} /** * Gets the line in which the exception occurred @@ -311,7 +307,7 @@ final public function getFile() { } * @return int the line number where the exception was created. */ #[Pure] - final public function getLine() { } + final public function getLine() {} /** * Gets the stack trace @@ -319,7 +315,7 @@ final public function getLine() { } * @return array the Exception stack trace as an array. */ #[Pure] - final public function getTrace() { } + final public function getTrace() {} /** * Returns previous Exception @@ -328,7 +324,7 @@ final public function getTrace() { } * or null otherwise. */ #[Pure] - final public function getPrevious() { } + final public function getPrevious() {} /** * Gets the stack trace as a string @@ -336,16 +332,16 @@ final public function getPrevious() { } * @return string the Exception stack trace as a string. */ #[Pure] - final public function getTraceAsString() { } + final public function getTraceAsString() {} /** * String representation of the exception * @link https://php.net/manual/en/exception.tostring.php * @return string the string representation of the exception. */ - public function __toString() { } + public function __toString() {} - public function __wakeup() { } + public function __wakeup() {} } /** @@ -353,8 +349,8 @@ public function __wakeup() { } * @link https://php.net/manual/en/class.error.php * @since 7.0 */ -class Error implements Throwable { - +class Error implements Throwable +{ /** The error message */ protected $message; /** The error code */ @@ -372,9 +368,7 @@ class Error implements Throwable { * @param null|Throwable $previous [optional] The previous throwable used for the exception chaining. */ #[Pure] - public function __construct($message = "", $code = 0, Throwable $previous = null) - { - } + public function __construct($message = "", $code = 0, Throwable $previous = null) {} /*** * Gets the message @@ -382,9 +376,7 @@ public function __construct($message = "", $code = 0, Throwable $previous = null * @return string * @since 7.0 */ - public final function getMessage() - { - } + final public function getMessage() {} /** * Gets the exception code @@ -397,8 +389,7 @@ public final function getMessage() *

* @since 7.0 */ - public final function getCode(){} - + final public function getCode() {} /** * Gets the file in which the exception occurred @@ -406,8 +397,7 @@ public final function getCode(){} * @return string Returns the name of the file from which the object was thrown. * @since 7.0 */ - public final function getFile(){} - + final public function getFile() {} /** * Gets the line on which the object was instantiated @@ -415,8 +405,7 @@ public final function getFile(){} * @return int Returns the line number where the thrown object was instantiated. * @since 7.0 */ - public final function getLine(){} - + final public function getLine() {} /** * Gets the stack trace @@ -427,7 +416,7 @@ public final function getLine(){} *

* @since 7.0 */ - public final function getTrace(){} + final public function getTrace() {} /** * Gets the stack trace as a string @@ -435,7 +424,7 @@ public final function getTrace(){} * @return string Returns the stack trace as a string. * @since 7.0 */ - public final function getTraceAsString(){} + final public function getTraceAsString() {} /** * Returns the previous Throwable @@ -443,14 +432,14 @@ public final function getTraceAsString(){} * @return Throwable Returns the previous {@see Throwable} if available, or NULL otherwise. * @since 7.0 */ - public final function getPrevious(){} + final public function getPrevious() {} /** * Gets a string representation of the thrown object * @link https://php.net/manual/en/throwable.tostring.php * @return string

Returns the string representation of the thrown object.

* @since 7.0 */ - public function __toString(){} + public function __toString() {} /** * Clone the error @@ -458,9 +447,9 @@ public function __toString(){} * @return void * @link https://php.net/manual/en/error.clone.php */ - private final function __clone(){} + final private function __clone() {} - public function __wakeup(){} + public function __wakeup() {} } class ValueError extends Error {} @@ -473,18 +462,14 @@ class ValueError extends Error {} * @link https://php.net/manual/en/class.typeerror.php * @since 7.0 */ -class TypeError extends Error { - -} +class TypeError extends Error {} /** * ParseError is thrown when an error occurs while parsing PHP code, such as when {@see eval()} is called. * @link https://php.net/manual/en/class.parseerror.php * @since 7.0 */ -class ParseError extends CompileError { - -} +class ParseError extends CompileError {} /** * ArgumentCountError is thrown when too few arguments are passed to a user @@ -502,27 +487,21 @@ class ArgumentCountError extends TypeError {} * @link https://php.net/manual/en/class.arithmeticerror.php * @since 7.0 */ -class ArithmeticError extends Error { - -} +class ArithmeticError extends Error {} /** * Class CompileError * @link https://secure.php.net/manual/en/class.compileerror.php * @since 7.3 */ -class CompileError extends Error { - -} +class CompileError extends Error {} /** * DivisionByZeroError is thrown when an attempt is made to divide a number by zero. * @link https://php.net/manual/en/class.divisionbyzeroerror.php * @since 7.0 */ -class DivisionByZeroError extends ArithmeticError { - -} +class DivisionByZeroError extends ArithmeticError {} /** * @since 8.0 @@ -533,11 +512,10 @@ class UnhandledMatchError extends Error {} * An Error Exception. * @link https://php.net/manual/en/class.errorexception.php */ -class ErrorException extends Exception { - +class ErrorException extends Exception +{ protected $severity; - /** * Constructs the exception * @link https://php.net/manual/en/errorexception.construct.php @@ -549,14 +527,14 @@ class ErrorException extends Exception { * @param Exception $previous [optional] The previous exception used for the exception chaining. */ #[\JetBrains\PhpStorm\Pure] - public function __construct($message = "", $code = 0, $severity = 1, $filename = __FILE__, $line = __LINE__, $previous = null) { } + public function __construct($message = "", $code = 0, $severity = 1, $filename = __FILE__, $line = __LINE__, $previous = null) {} /** * Gets the exception severity * @link https://php.net/manual/en/errorexception.getseverity.php * @return int the severity level of the exception. */ - final public function getSeverity() { } + final public function getSeverity() {} } /** @@ -568,14 +546,14 @@ final public function getSeverity() { } * This is for consistency with other classes that implement calling magic, as this method is not used for calling the function. * @link https://secure.php.net/manual/en/class.closure.php */ -final class Closure { - +final class Closure +{ /** * This method exists only to disallow instantiation of the Closure class. * Objects of this class are created in the fashion described on the anonymous functions page. * @link https://secure.php.net/manual/en/closure.construct.php */ - private function __construct() { } + private function __construct() {} /** * This is for consistency with other classes that implement calling magic, @@ -584,7 +562,7 @@ private function __construct() { } * @return mixed * @link https://secure.php.net/manual/en/class.closure.php */ - public function __invoke(...$_) { } + public function __invoke(...$_) {} /** * Duplicates the closure with a new bound object and class scope @@ -595,7 +573,7 @@ public function __invoke(...$_) { } * This determines the visibility of protected and private methods of the bound object. * @return Closure|false Returns the newly created Closure object or FALSE on failure */ - function bindTo(?object $newThis, object|string|null $newScope = 'static') { } + public function bindTo(?object $newThis, object|string|null $newScope = 'static') {} /** * This method is a static version of Closure::bindTo(). @@ -608,7 +586,7 @@ function bindTo(?object $newThis, object|string|null $newScope = 'static') { } * This determines the visibility of protected and private methods of the bound object. * @return Closure|false Returns the newly created Closure object or FALSE on failure */ - static function bind(Closure $closure, ?object $newThis, object|string|null $newScope = 'static') { } + public static function bind(Closure $closure, ?object $newThis, object|string|null $newScope = 'static') {} /** * Temporarily binds the closure to newthis, and calls it with any given parameters. @@ -618,14 +596,14 @@ static function bind(Closure $closure, ?object $newThis, object|string|null $new * @return mixed * @since 7.0 */ - function call (object $newThis, mixed ...$args) {} + public function call(object $newThis, mixed ...$args) {} /** * @param callable $callback * @return Closure * @since 7.1 */ - public static function fromCallable (callable $callback) {} + public static function fromCallable(callable $callback) {} } /** @@ -633,8 +611,8 @@ public static function fromCallable (callable $callback) {} * count function. * @link https://php.net/manual/en/class.countable.php */ -interface Countable { - +interface Countable +{ /** * Count elements of an object * @link https://php.net/manual/en/countable.count.php @@ -652,7 +630,8 @@ public function count(); * They are useful for implementing cache like structures. * @link https://www.php.net/manual/en/class.weakreference.php */ -class WeakReference { +class WeakReference +{ /** * This method exists only to disallow instantiation of the WeakReference * class. Weak references are to be instantiated with the factory method @@ -687,7 +666,8 @@ public function get() {} * * @since 8.0 */ -final class WeakMap implements \ArrayAccess, \Countable, \IteratorAggregate { +final class WeakMap implements \ArrayAccess, \Countable, \IteratorAggregate +{ /** * Returns {@see true} if the value for the object is contained in * the {@see WeakMap} and {@see false} instead. @@ -703,9 +683,7 @@ public function offsetExists($object) {} * @param object $object Any object * @return mixed Value associated with the key object */ - public function offsetGet($object) - { - } + public function offsetGet($object) {} /** * Sets a new value for an object. @@ -714,9 +692,7 @@ public function offsetGet($object) * @param mixed $value Any value * @return void */ - public function offsetSet($object, mixed $value) - { - } + public function offsetSet($object, mixed $value) {} /** * Force removes an object value from the {@see WeakMap} instance. @@ -724,27 +700,21 @@ public function offsetSet($object, mixed $value) * @param object $object Any object * @return void */ - public function offsetUnset($object) - { - } + public function offsetUnset($object) {} /** * Returns an iterator in the "[object => mixed]" format. * * @return Traversable */ - public function getIterator() - { - } + public function getIterator() {} /** * Returns the number of items in the {@see WeakMap} instance. * * @return int */ - public function count() - { - } + public function count() {} } /** @@ -753,7 +723,8 @@ public function count() * * @since 8.0 */ -interface Stringable { +interface Stringable +{ /** * Magic method {@see https://www.php.net/manual/en/language.oop5.magic.php} * called during serialization to string. @@ -768,56 +739,55 @@ public function __toString(); * @since 8.0 */ #[Attribute(Attribute::TARGET_CLASS)] -final class Attribute { +final class Attribute +{ public int $flags; /** * Marks that attribute declaration is allowed only in classes. */ - const TARGET_CLASS = 1; + public const TARGET_CLASS = 1; /** * Marks that attribute declaration is allowed only in functions. */ - const TARGET_FUNCTION = 2; + public const TARGET_FUNCTION = 2; /** * Marks that attribute declaration is allowed only in class methods. */ - const TARGET_METHOD = 4; + public const TARGET_METHOD = 4; /** * Marks that attribute declaration is allowed only in class properties. */ - const TARGET_PROPERTY = 8; + public const TARGET_PROPERTY = 8; /** * Marks that attribute declaration is allowed only in class constants. */ - const TARGET_CLASS_CONSTANT = 16; + public const TARGET_CLASS_CONSTANT = 16; /** * Marks that attribute declaration is allowed only in function or method parameters. */ - const TARGET_PARAMETER = 32; + public const TARGET_PARAMETER = 32; /** * Marks that attribute declaration is allowed anywhere. */ - const TARGET_ALL = 63; + public const TARGET_ALL = 63; /** * Notes that an attribute declaration in the same place is * allowed multiple times. */ - const IS_REPEATABLE = 64; + public const IS_REPEATABLE = 64; /** * @param int $flags A value in the form of a bitmask indicating the places * where attributes can be defined. */ - public function __construct(#[ExpectedValues(flagsFromClass: Attribute::class)] int $flags = self::TARGET_ALL) - { - } + public function __construct(#[ExpectedValues(flagsFromClass: Attribute::class)] int $flags = self::TARGET_ALL) {} } /** @@ -826,7 +796,8 @@ public function __construct(#[ExpectedValues(flagsFromClass: Attribute::class)] * * @since 8.0 */ -class PhpToken implements Stringable { +class PhpToken implements Stringable +{ /** * One of the T_* constants, or an integer < 256 representing a * single-char token. @@ -854,18 +825,14 @@ class PhpToken implements Stringable { * @param int $line Strating line * @param int $pos Straring position (line offset) */ - final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) - { - } + final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) {} /** * Get the name of the token. * * @return string|null */ - public function getTokenName() - { - } + public function getTokenName() {} /** * Same as {@see token_get_all()}, but returning array of {@see PhpToken} @@ -884,39 +851,34 @@ public static function tokenize(string $code, int $flags = 0) {} * @param int|string|array $kind * @return bool */ - public function is($kind) - { - } + public function is($kind) {} /** * Whether this token would be ignored by the PHP parser. * * @return bool */ - public function isIgnorable() - { - } + public function isIgnorable() {} /** * {@inheritDoc} */ - public function __toString() - { - } + public function __toString() {} } /** * @since 8.0 */ -final class InternalIterator implements Iterator{ - private function __construct(){} - public function current(){} +final class InternalIterator implements Iterator +{ + private function __construct() {} + public function current() {} - public function next(){} + public function next() {} - public function key(){} + public function key() {} - public function valid(){} + public function valid() {} - public function rewind(){} + public function rewind() {} } diff --git a/Core/Core_d.php b/Core/Core_d.php index 06891194d..21c7b2132 100755 --- a/Core/Core_d.php +++ b/Core/Core_d.php @@ -2,14 +2,13 @@ // Start of Core v.5.3.6-13ubuntu3.2 - /** * Fatal run-time errors. These indicate errors that can not be * recovered from, such as a memory allocation problem. * Execution of the script is halted. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_ERROR', 1); +define('E_ERROR', 1); /** * Catchable fatal error. It indicates that a probably dangerous error @@ -19,21 +18,21 @@ * was an E_ERROR. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_RECOVERABLE_ERROR', 4096); +define('E_RECOVERABLE_ERROR', 4096); /** * Run-time warnings (non-fatal errors). Execution of the script is not * halted. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_WARNING', 2); +define('E_WARNING', 2); /** * Compile-time parse errors. Parse errors should only be generated by * the parser. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_PARSE', 4); +define('E_PARSE', 4); /** * Run-time notices. Indicate that the script encountered something that @@ -41,7 +40,7 @@ * running a script. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_NOTICE', 8); +define('E_NOTICE', 8); /** * Enable to have PHP suggest changes @@ -49,21 +48,21 @@ * and forward compatibility of your code. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_STRICT', 2048); +define('E_STRICT', 2048); /** * Run-time notices. Enable this to receive warnings about code * that will not work in future versions. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_DEPRECATED', 8192); +define('E_DEPRECATED', 8192); /** * Fatal errors that occur during PHP's initial startup. This is like an * E_ERROR, except it is generated by the core of PHP. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_CORE_ERROR', 16); +define('E_CORE_ERROR', 16); /** * Warnings (non-fatal errors) that occur during PHP's initial startup. @@ -71,14 +70,14 @@ * by the core of PHP. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_CORE_WARNING', 32); +define('E_CORE_WARNING', 32); /** * Fatal compile-time errors. This is like an E_ERROR, * except it is generated by the Zend Scripting Engine. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_COMPILE_ERROR', 64); +define('E_COMPILE_ERROR', 64); /** * Compile-time warnings (non-fatal errors). This is like an @@ -86,7 +85,7 @@ * Scripting Engine. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_COMPILE_WARNING', 128); +define('E_COMPILE_WARNING', 128); /** * User-generated error message. This is like an @@ -94,7 +93,7 @@ * using the PHP function trigger_error. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_USER_ERROR', 256); +define('E_USER_ERROR', 256); /** * User-generated warning message. This is like an @@ -102,7 +101,7 @@ * using the PHP function trigger_error. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_USER_WARNING', 512); +define('E_USER_WARNING', 512); /** * User-generated notice message. This is like an @@ -110,7 +109,7 @@ * using the PHP function trigger_error. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_USER_NOTICE', 1024); +define('E_USER_NOTICE', 1024); /** * User-generated warning message. This is like an @@ -118,7 +117,7 @@ * using the PHP function trigger_error. * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_USER_DEPRECATED', 16384); +define('E_USER_DEPRECATED', 16384); /** * All errors and warnings, as supported, except of level @@ -127,89 +126,89 @@ * 30719 in PHP 5.3.x, 6143 in PHP 5.2.x, 2047 previously * @link https://php.net/manual/en/errorfunc.constants.php */ -define ('E_ALL', 32767); -define ('DEBUG_BACKTRACE_PROVIDE_OBJECT', 1); -define ('DEBUG_BACKTRACE_IGNORE_ARGS', 2); -define ('S_MEMORY', 1); -define ('S_VARS', 4); -define ('S_FILES', 8); -define ('S_INCLUDE', 16); -define ('S_SQL', 32); -define ('S_EXECUTOR', 64); -define ('S_MAIL', 128); -define ('S_SESSION', 256); -define ('S_MISC', 2); -define ('S_INTERNAL', 536870912); -define ('S_ALL', 511); +define('E_ALL', 32767); +define('DEBUG_BACKTRACE_PROVIDE_OBJECT', 1); +define('DEBUG_BACKTRACE_IGNORE_ARGS', 2); +define('S_MEMORY', 1); +define('S_VARS', 4); +define('S_FILES', 8); +define('S_INCLUDE', 16); +define('S_SQL', 32); +define('S_EXECUTOR', 64); +define('S_MAIL', 128); +define('S_SESSION', 256); +define('S_MISC', 2); +define('S_INTERNAL', 536870912); +define('S_ALL', 511); -define ('true', (bool)1, true); -define ('false', (bool)0, true); -define ('null', null, true); -define ('ZEND_THREAD_SAFE', false); -define ('ZEND_DEBUG_BUILD', false); -define ('PHP_WINDOWS_VERSION_BUILD', 0); -define ('PHP_WINDOWS_VERSION_MAJOR', 0); -define ('PHP_WINDOWS_VERSION_MINOR', 0); -define ('PHP_WINDOWS_VERSION_PLATFORM', 0); -define ('PHP_WINDOWS_VERSION_PRODUCTTYPE', 0); -define ('PHP_WINDOWS_VERSION_SP_MAJOR', 0); -define ('PHP_WINDOWS_VERSION_SP_MINOR', 0); -define ('PHP_WINDOWS_VERSION_SUITEMASK', 0); -define ('PHP_WINDOWS_NT_DOMAIN_CONTROLLER', 2); -define ('PHP_WINDOWS_NT_SERVER', 3); -define ('PHP_WINDOWS_NT_WORKSTATION', 1); +define('true', (bool)1, true); +define('false', (bool)0, true); +define('null', null, true); +define('ZEND_THREAD_SAFE', false); +define('ZEND_DEBUG_BUILD', false); +define('PHP_WINDOWS_VERSION_BUILD', 0); +define('PHP_WINDOWS_VERSION_MAJOR', 0); +define('PHP_WINDOWS_VERSION_MINOR', 0); +define('PHP_WINDOWS_VERSION_PLATFORM', 0); +define('PHP_WINDOWS_VERSION_PRODUCTTYPE', 0); +define('PHP_WINDOWS_VERSION_SP_MAJOR', 0); +define('PHP_WINDOWS_VERSION_SP_MINOR', 0); +define('PHP_WINDOWS_VERSION_SUITEMASK', 0); +define('PHP_WINDOWS_NT_DOMAIN_CONTROLLER', 2); +define('PHP_WINDOWS_NT_SERVER', 3); +define('PHP_WINDOWS_NT_WORKSTATION', 1); /** * @since 7.4 */ -define ('PHP_WINDOWS_EVENT_CTRL_C', 0); +define('PHP_WINDOWS_EVENT_CTRL_C', 0); /** * @since 7.4 */ -define ('PHP_WINDOWS_EVENT_CTRL_BREAK', 1); -define ('PHP_VERSION', "5.3.6-13ubuntu3.2"); -define ('PHP_MAJOR_VERSION', 5); -define ('PHP_MINOR_VERSION', 3); -define ('PHP_RELEASE_VERSION', 6); -define ('PHP_EXTRA_VERSION', "-13ubuntu3.2"); -define ('PHP_VERSION_ID', 50306); -define ('PHP_ZTS', 0); -define ('PHP_DEBUG', 0); -define ('PHP_OS', "Linux"); +define('PHP_WINDOWS_EVENT_CTRL_BREAK', 1); +define('PHP_VERSION', "5.3.6-13ubuntu3.2"); +define('PHP_MAJOR_VERSION', 5); +define('PHP_MINOR_VERSION', 3); +define('PHP_RELEASE_VERSION', 6); +define('PHP_EXTRA_VERSION', "-13ubuntu3.2"); +define('PHP_VERSION_ID', 50306); +define('PHP_ZTS', 0); +define('PHP_DEBUG', 0); +define('PHP_OS', "Linux"); /** * The operating system family PHP was built for. Either of 'Windows', 'BSD', 'Darwin', 'Solaris', 'Linux' or 'Unknown'. Available as of PHP 7.2.0. * @since 7.2 */ -define ('PHP_OS_FAMILY', "Linux"); -define ('PHP_SAPI', "cli"); +define('PHP_OS_FAMILY', "Linux"); +define('PHP_SAPI', "cli"); /** * @since 7.4 */ -define ('PHP_CLI_PROCESS_TITLE', 1); -define ('DEFAULT_INCLUDE_PATH', ".:/usr/share/php:/usr/share/pear"); -define ('PEAR_INSTALL_DIR', "/usr/share/php"); -define ('PEAR_EXTENSION_DIR', "/usr/lib/php5/20090626"); -define ('PHP_EXTENSION_DIR', "/usr/lib/php5/20090626"); +define('PHP_CLI_PROCESS_TITLE', 1); +define('DEFAULT_INCLUDE_PATH', ".:/usr/share/php:/usr/share/pear"); +define('PEAR_INSTALL_DIR', "/usr/share/php"); +define('PEAR_EXTENSION_DIR', "/usr/lib/php5/20090626"); +define('PHP_EXTENSION_DIR', "/usr/lib/php5/20090626"); /** * Specifies where the binaries were installed into. * @link https://php.net/manual/en/reserved.constants.php */ -define ('PHP_BINARY', '/usr/local/php/bin/php'); -define ('PHP_PREFIX', "/usr"); -define ('PHP_BINDIR', "/usr/bin"); -define ('PHP_LIBDIR', "/usr/lib/php5"); -define ('PHP_DATADIR', "/usr/share"); -define ('PHP_SYSCONFDIR', "/etc"); -define ('PHP_LOCALSTATEDIR', "/var"); -define ('PHP_CONFIG_FILE_PATH', "/etc/php5/cli"); -define ('PHP_CONFIG_FILE_SCAN_DIR', "/etc/php5/cli/conf.d"); -define ('PHP_SHLIB_SUFFIX', "so"); -define ('PHP_EOL', "\n"); -define ('SUHOSIN_PATCH', 1); -define ('SUHOSIN_PATCH_VERSION', "0.9.10"); -define ('PHP_MAXPATHLEN', 4096); -define ('PHP_INT_MAX', 9223372036854775807); -define ('PHP_INT_MIN', -9223372036854775808); -define ('PHP_INT_SIZE', 8); +define('PHP_BINARY', '/usr/local/php/bin/php'); +define('PHP_PREFIX', "/usr"); +define('PHP_BINDIR', "/usr/bin"); +define('PHP_LIBDIR', "/usr/lib/php5"); +define('PHP_DATADIR', "/usr/share"); +define('PHP_SYSCONFDIR', "/etc"); +define('PHP_LOCALSTATEDIR', "/var"); +define('PHP_CONFIG_FILE_PATH', "/etc/php5/cli"); +define('PHP_CONFIG_FILE_SCAN_DIR', "/etc/php5/cli/conf.d"); +define('PHP_SHLIB_SUFFIX', "so"); +define('PHP_EOL', "\n"); +define('SUHOSIN_PATCH', 1); +define('SUHOSIN_PATCH_VERSION', "0.9.10"); +define('PHP_MAXPATHLEN', 4096); +define('PHP_INT_MAX', 9223372036854775807); +define('PHP_INT_MIN', -9223372036854775808); +define('PHP_INT_SIZE', 8); /** * Number of decimal digits that can be rounded into a float and back without precision loss. Available as of PHP 7.2.0. * @since 7.2 @@ -231,18 +230,18 @@ * @since 7.2 */ define('PHP_FLOAT_MIN', 2.2250738585072e-308); -define ('ZEND_MULTIBYTE', 0); -define ('PHP_OUTPUT_HANDLER_START', 1); -define ('PHP_OUTPUT_HANDLER_CONT', 2); -define ('PHP_OUTPUT_HANDLER_END', 4); -define ('UPLOAD_ERR_OK', 0); -define ('UPLOAD_ERR_INI_SIZE', 1); -define ('UPLOAD_ERR_FORM_SIZE', 2); -define ('UPLOAD_ERR_PARTIAL', 3); -define ('UPLOAD_ERR_NO_FILE', 4); -define ('UPLOAD_ERR_NO_TMP_DIR', 6); -define ('UPLOAD_ERR_CANT_WRITE', 7); -define ('UPLOAD_ERR_EXTENSION', 8); +define('ZEND_MULTIBYTE', 0); +define('PHP_OUTPUT_HANDLER_START', 1); +define('PHP_OUTPUT_HANDLER_CONT', 2); +define('PHP_OUTPUT_HANDLER_END', 4); +define('UPLOAD_ERR_OK', 0); +define('UPLOAD_ERR_INI_SIZE', 1); +define('UPLOAD_ERR_FORM_SIZE', 2); +define('UPLOAD_ERR_PARTIAL', 3); +define('UPLOAD_ERR_NO_FILE', 4); +define('UPLOAD_ERR_NO_TMP_DIR', 6); +define('UPLOAD_ERR_CANT_WRITE', 7); +define('UPLOAD_ERR_EXTENSION', 8); define('STDIN', fopen('php://stdin', 'r')); define('STDOUT', fopen('php://stdout', 'w')); define('STDERR', fopen('php://stderr', 'w')); diff --git a/Ev/Ev.php b/Ev/Ev.php index 75b14b311..e2a740bb6 100644 --- a/Ev/Ev.php +++ b/Ev/Ev.php @@ -11,14 +11,14 @@ final class Ev /** * Flag passed to create a loop: The default flags value */ - const FLAG_AUTO = 0; + public const FLAG_AUTO = 0; /** * Flag passed to create a loop: If this flag used(or the program runs setuid or setgid), libev won't look at the * environment variable LIBEV_FLAGS. Otherwise(by default), LIBEV_FLAGS will override the flags completely if it is * found. Useful for performance tests and searching for bugs. */ - const FLAG_NOENV = 16777216; + public const FLAG_NOENV = 16777216; /** * Flag passed to create a loop: Makes libev check for a fork in each iteration, instead of calling EvLoop::fork() @@ -26,14 +26,14 @@ final class Ev * loop with lots of loop iterations, but usually is not noticeable. This flag setting cannot be overridden or * specified in the LIBEV_FLAGS environment variable. */ - const FLAG_FORKCHECK = 33554432; + public const FLAG_FORKCHECK = 33554432; /** * Flag passed to create a loop: When this flag is specified, libev won't attempt to use the inotify API for its * ev_stat watchers. The flag can be useful to conserve inotify file descriptors, as otherwise each loop using * ev_stat watchers consumes one inotify handle. */ - const FLAG_NOINOTIFY = 1048576; + public const FLAG_NOINOTIFY = 1048576; /** * Flag passed to create a loop: When this flag is specified, libev will attempt to use the signalfd API for its @@ -41,7 +41,7 @@ final class Ev * make it possible to get the queued signal data. It can also simplify signal handling with threads, as long as * signals are properly blocked in threads. Signalfd will not be used by default. */ - const FLAG_SIGNALFD = 2097152; + public const FLAG_SIGNALFD = 2097152; /** * Flag passed to create a loop: When this flag is specified, libev will avoid to modify the signal mask. @@ -49,8 +49,7 @@ final class Ev * * This behaviour is useful for custom signal handling, or handling signals only in specific threads. */ - const FLAG_NOSIGMASK = 4194304; - + public const FLAG_NOSIGMASK = 4194304; /** * Flag passed to Ev::run() or EvLoop::run(): Means that event loop will look for new events, will handle those @@ -58,7 +57,7 @@ final class Ev * will return after one iteration of the loop. This is sometimes useful to poll and handle new events while doing * lengthy calculations, to keep the program responsive. */ - const RUN_NOWAIT = 1; + public const RUN_NOWAIT = 1; /** * Flag passed to Ev::run() or EvLoop::run(): Means that event loop will look for new events (waiting if necessary) @@ -66,151 +65,147 @@ final class Ev * arrives (which could be an event internal to libev itself, so there is no guarantee that a user-registered * callback will be called), and will return after one iteration of the loop. */ - const RUN_ONCE = 2; + public const RUN_ONCE = 2; /** * Flag passed to Ev::stop() or EvLoop::stop(): Cancel the break operation. */ - const BREAK_CANCEL = 0; + public const BREAK_CANCEL = 0; /** * Flag passed to Ev::stop() or EvLoop::stop(): Makes the innermost Ev::run() or EvLoop::run() call return. */ - const BREAK_ONE = 1; + public const BREAK_ONE = 1; /** * Flag passed to Ev::stop() or EvLoop::stop(): Makes all nested Ev::run() or EvLoop::run() calls return. */ - const BREAK_ALL = 2; - + public const BREAK_ALL = 2; /** * Lowest allowed watcher priority. */ - const MINPRI = -2; + public const MINPRI = -2; /** * Highest allowed watcher priority. */ - const MAXPRI = 2; - + public const MAXPRI = 2; /** * Event bitmask: The file descriptor in the EvIo watcher has become readable. */ - const READ = 1; + public const READ = 1; /** * Event bitmask: The file descriptor in the EvIo watcher has become writable. */ - const WRITE = 2; + public const WRITE = 2; /** * Event bitmask: EvTimer watcher has been timed out. */ - const TIMER = 256; + public const TIMER = 256; /** * Event bitmask: EvPeriodic watcher has been timed out. */ - const PERIODIC = 512; + public const PERIODIC = 512; /** * Event bitmask: A signal specified in EvSignal::__construct() has been received. */ - const SIGNAL = 1024; + public const SIGNAL = 1024; /** * Event bitmask: The pid specified in EvChild::__construct() has received a status change. */ - const CHILD = 2048; + public const CHILD = 2048; /** * Event bitmask: The path specified in EvStat watcher changed its attributes. */ - const STAT = 4096; + public const STAT = 4096; /** * Event bitmask: EvIdle watcher works when there is nothing to do with other watchers. */ - const IDLE = 8192; + public const IDLE = 8192; /** * Event bitmask: All EvPrepare watchers are invoked just before Ev::run() starts. Thus, EvPrepare watchers are the * last watchers invoked before the event loop sleeps or polls for new events. */ - const PREPARE = 16384; + public const PREPARE = 16384; /** * Event bitmask: All EvCheck watchers are queued just after Ev::run() has gathered the new events, but before it * queues any callbacks for any received events. Thus, EvCheck watchers will be invoked before any other watchers * of the same or lower priority within an event loop iteration. */ - const CHECK = 32768; + public const CHECK = 32768; /** * Event bitmask: The embedded event loop specified in the EvEmbed watcher needs attention. */ - const EMBED = 65536; + public const EMBED = 65536; /** * Event bitmask: Not ever sent(or otherwise used) by libev itself, but can be freely used by libev users to signal * watchers (e.g. via EvWatcher::feed() ). */ - const CUSTOM = 16777216; + public const CUSTOM = 16777216; /** * Event bitmask: An unspecified error has occurred, the watcher has been stopped. This might happen because the * watcher could not be properly started because libev ran out of memory, a file descriptor was found to be closed * or any other problem. Libev considers these application bugs. */ - const ERROR = 2147483648; - + public const ERROR = 2147483648; /** * select(2) backend */ - const BACKEND_SELECT = 1; + public const BACKEND_SELECT = 1; /** * poll(2) backend */ - const BACKEND_POLL = 2; + public const BACKEND_POLL = 2; /** * Linux-specific epoll(7) backend for both pre- and post-2.6.9 kernels */ - const BACKEND_EPOLL = 4; + public const BACKEND_EPOLL = 4; /** * kqueue backend used on most BSD systems. EvEmbed watcher could be used to embed one loop(with kqueue backend) * into another. For instance, one can try to create an event loop with kqueue backend and use it for sockets only. */ - const BACKEND_KQUEUE = 8; + public const BACKEND_KQUEUE = 8; /** * Solaris 8 backend. This is not implemented yet. */ - const BACKEND_DEVPOLL = 16; + public const BACKEND_DEVPOLL = 16; /** * Solaris 10 event port mechanism with a good scaling. */ - const BACKEND_PORT = 32; + public const BACKEND_PORT = 32; /** * Try all backends(even currupted ones). It's not recommended to use it explicitly. Bitwise operators should be * applied here(e.g. Ev::BACKEND_ALL & ~ Ev::BACKEND_KQUEUE ) Use Ev::recommendedBackends() , or don't specify any * backends at all. */ - const BACKEND_ALL = 63; + public const BACKEND_ALL = 63; /** * Not a backend, but a mask to select all backend bits from flags value to mask out any backends(e.g. when * modifying the LIBEV_FLAGS environment variable). */ - const BACKEND_MASK = 65535; - + public const BACKEND_MASK = 65535; /* Methods */ @@ -410,7 +405,7 @@ abstract class EvWatcher /** * Abstract constructor of a watcher object */ - abstract function __construct(); + abstract public function __construct(); /** * @var mixed Custom user data associated with the watcher @@ -490,18 +485,14 @@ public function setCallback(callable $callback) {} * * Marks the watcher as active. Note that only active watchers will receive events. */ - public function start() - { - } + public function start() {} /** * Stops the watcher. * * Marks the watcher as inactive. Note that only active watchers will receive events. */ - public function stop() - { - } + public function stop() {} } /** @@ -794,7 +785,6 @@ final class EvPeriodic extends EvWatcher */ public $interval; - /** * Constructs EvPeriodic watcher object. * @@ -864,7 +854,7 @@ final public static function createStopped( * @param float $interval The same meaning as for {@see EvPeriodic::__construct} * @return void */ - public function set($offset , $interval ){} + public function set($offset, $interval) {} } /** @@ -1209,8 +1199,6 @@ final public static function createStopped(callable $callback, $data = null, $pr * EvLoop::fork()). The invocation is done before the event loop blocks next and before EvCheck watchers are being * called, and only in the child after the fork. Note that if someone calls EvLoop::fork() in the wrong process, the * fork handlers will be invoked, too. - * - * */ final class EvFork extends EvWatcher { @@ -1322,7 +1310,7 @@ public function backend() {} * @param int $priority * @return EvCheck */ - public final function check(callable $callback, $data = null, $priority = 0) {} + final public function check(callable $callback, $data = null, $priority = 0) {} /** * Creates EvChild object associated with the current event loop instance; @@ -1334,7 +1322,7 @@ public final function check(callable $callback, $data = null, $priority = 0) {} * @param int $priority * @return EvChild */ - public final function child($pid, $trace, callable $callback, $data = null, $priority = 0) {} + final public function child($pid, $trace, callable $callback, $data = null, $priority = 0) {} /** * Creates EvEmbed object associated with the current event loop instance. @@ -1345,7 +1333,7 @@ public final function child($pid, $trace, callable $callback, $data = null, $pri * @param int $priority * @return EvEmbed */ - public final function embed(EvLoop $other, callable $callback, $data = null, $priority = 0) {} + final public function embed(EvLoop $other, callable $callback, $data = null, $priority = 0) {} /** * Creates EvFork object associated with the current event loop instance. @@ -1355,7 +1343,7 @@ public final function embed(EvLoop $other, callable $callback, $data = null, $pr * @param int $priority * @return EvFork */ - public final function fork(callable $callback, $data = null, $priority = 0) {} + final public function fork(callable $callback, $data = null, $priority = 0) {} /** * Creates EvIdle object associated with the current event loop instance. @@ -1365,7 +1353,7 @@ public final function fork(callable $callback, $data = null, $priority = 0) {} * @param int $priority * @return EvIdle */ - public final function idle(callable $callback, $data = null, $priority = 0) {} + final public function idle(callable $callback, $data = null, $priority = 0) {} /** * Invoke all pending watchers while resetting their pending state. @@ -1425,7 +1413,7 @@ public function nowUpdate() {} * @param mixed $data * @param int $priority */ - public final function periodic($offset, $interval, callable $callback, $data = null, $priority = 0) {} + final public function periodic($offset, $interval, callable $callback, $data = null, $priority = 0) {} /** * Creates EvPrepare object associated with the current event loop instance. @@ -1434,7 +1422,7 @@ public final function periodic($offset, $interval, callable $callback, $data = n * @param mixed $data * @param int $priority */ - public final function prepare(callable $callback, $data = null, $priority = 0) {} + final public function prepare(callable $callback, $data = null, $priority = 0) {} /** * Resume previously suspended default event loop. @@ -1464,9 +1452,7 @@ public function run($flags = Ev::FLAG_AUTO) {} * @param int $priority * @return EvSignal */ - public final function signal($signal, callable $callback, $data = null, $priority = 0) - { - } + final public function signal($signal, callable $callback, $data = null, $priority = 0) {} /** * Creates EvStats object associated with the current event loop instance. @@ -1478,7 +1464,7 @@ public final function signal($signal, callable $callback, $data = null, $priorit * @param int $priority * @return EvStat */ - public final function stat($path, $interval, callable $callback, $data = null, $priority = 0) {} + final public function stat($path, $interval, callable $callback, $data = null, $priority = 0) {} /** * Stops the event loop. @@ -1504,7 +1490,7 @@ public function suspend() {} * @param int $priority * @return EvTimer */ - public final function timer($after, $repeat, callable $callback, $data = null, $priority = 0) {} + final public function timer($after, $repeat, callable $callback, $data = null, $priority = 0) {} /** * Performs internal consistency checks (for debugging). diff --git a/FFI/FFI.php b/FFI/FFI.php index aff33df04..c95c142aa 100644 --- a/FFI/FFI.php +++ b/FFI/FFI.php @@ -3,6 +3,7 @@ // Start of FFI v.0.1.0 namespace { + use FFI\CData; use FFI\CType; use FFI\ParserException; @@ -249,18 +250,14 @@ public static function isNull(CData $ptr): bool {} * * @since 7.4 */ - class Exception extends \Error - { - } + class Exception extends \Error {} /** * Class ParserException * * @since 7.4 */ - class ParserException extends Exception - { - } + class ParserException extends Exception {} /** * Class CData @@ -269,9 +266,7 @@ class ParserException extends Exception * * @since 7.4 */ - class CData - { - } + class CData {} /** * Class CType @@ -280,7 +275,5 @@ class CData * * @since 7.4 */ - class CType - { - } + class CType {} } diff --git a/LuaSandbox/LuaSandbox.php b/LuaSandbox/LuaSandbox.php index a4869b5fd..8e211b6a7 100644 --- a/LuaSandbox/LuaSandbox.php +++ b/LuaSandbox/LuaSandbox.php @@ -17,24 +17,25 @@ * @link https://www.php.net/manual/en/class.luasandbox.php * @since luasandbox >= 1.0.0 */ -class LuaSandbox { +class LuaSandbox +{ /** * Used with LuaSandbox::getProfilerFunctionReport() * to return timings in samples. */ - const SAMPLES = 0; + public const SAMPLES = 0; /** * Used with LuaSandbox::getProfilerFunctionReport() * to return timings in seconds. */ - const SECONDS = 1; + public const SECONDS = 1; /** * Used with LuaSandbox::getProfilerFunctionReport() * to return timings in percentages of the total. */ - const PERCENT = 2; + public const PERCENT = 2; /** * Call a function in a Lua global variable. @@ -56,7 +57,7 @@ class LuaSandbox { * @see LuaSandboxFunction::call() * @since luasandbox >= 1.0.0 */ - public function callFunction ($name, array $arguments) {} + public function callFunction($name, array $arguments) {} /** * Disable the profiler. @@ -66,7 +67,7 @@ public function callFunction ($name, array $arguments) {} * @see LuaSandbox::enableProfiler() * @see LuaSandbox::getProfilerFunctionReport() */ - public function disableProfiler () {} + public function disableProfiler() {} /** * Enable the profiler. @@ -83,7 +84,7 @@ public function disableProfiler () {} * @see LuaSandbox::disableProfiler() * @see LuaSandbox::getProfilerFunctionReport() */ - public function enableProfiler ($period = 0.02) {} + public function enableProfiler($period = 0.02) {} /** * Fetch the current CPU time usage of the Lua environment. @@ -102,7 +103,7 @@ public function enableProfiler ($period = 0.02) {} * @see LuaSandbox::getPeakMemoryUsage() * @see LuaSandbox::setCPULimit() */ - public function getCPUUsage () {} + public function getCPUUsage() {} /** * Fetch the current memory usage of the Lua environment. @@ -114,7 +115,7 @@ public function getCPUUsage () {} * @see LuaSandbox::getCPUUsage() * @see LuaSandbox::setMemoryLimit() */ - public function getMemoryUsage () {} + public function getMemoryUsage() {} /** * Fetch the peak memory usage of the Lua environment. @@ -126,7 +127,7 @@ public function getMemoryUsage () {} * @see LuaSandbox::getCPUUsage() * @see LuaSandbox::setMemoryLimit() */ - public function getPeakMemoryUsage () {} + public function getPeakMemoryUsage() {} /** * Fetch profiler data. @@ -154,7 +155,7 @@ public function getPeakMemoryUsage () {} * @see LuaSandbox::SECONDS * @see LuaSandbox::PERCENT */ - public function getProfilerFunctionReport ($units = LuaSandbox::SECONDS) {} + public function getProfilerFunctionReport($units = LuaSandbox::SECONDS) {} /** * Return the versions of LuaSandbox and Lua. @@ -165,7 +166,7 @@ public function getProfilerFunctionReport ($units = LuaSandbox::SECONDS) {} *
  • Lua (string), the library name and version as defined by the LUA_RELEASE macro, for example, "Lua 5.1.5".
  • * @since luasandbox >= 1.6.0 */ - public static function getVersionInfo () {} + public static function getVersionInfo() {} /** * Load a precompiled binary chunk into the Lua environment. @@ -179,7 +180,7 @@ public static function getVersionInfo () {} * @since luasandbox >= 1.0.0 * @see LuaSandbox::loadString() */ - public function loadBinary ($code, $chunkName = '') {} + public function loadBinary($code, $chunkName = '') {} /** * Load Lua code into the Lua environment. @@ -195,7 +196,7 @@ public function loadBinary ($code, $chunkName = '') {} * @see LuaSandbox::registerLibrary() * @see LuaSandbox::wrapPhpFunction() */ - public function loadString ($code, $chunkName = '') {} + public function loadString($code, $chunkName = '') {} /** * Pause the CPU usage timer. @@ -218,7 +219,7 @@ public function loadString ($code, $chunkName = '') {} * @see LuaSandbox::setCPULimit() * @see LuaSandbox::unpauseUsageTimer() */ - public function pauseUsageTimer () {} + public function pauseUsageTimer() {} /** * Register a set of PHP functions as a Lua library. @@ -239,7 +240,7 @@ public function pauseUsageTimer () {} * @see LuaSandbox::loadString() * @see LuaSandbox::wrapPhpFunction() */ - public function registerLibrary ($libname, $functions) {} + public function registerLibrary($libname, $functions) {} /** * Set the CPU time limit for the Lua environment. @@ -262,7 +263,7 @@ public function registerLibrary ($libname, $functions) {} * @see LuaSandbox::getCPUUsage() * @see LuaSandbox::setMemoryLimit() */ - public function setCPULimit ($limit) {} + public function setCPULimit($limit) {} /** * Set the memory limit for the Lua environment. @@ -275,7 +276,7 @@ public function setCPULimit ($limit) {} * @see LuaSandbox::getPeakMemoryUsage() * @see LuaSandbox::setCPULimit() */ - public function setMemoryLimit ($limit) {} + public function setMemoryLimit($limit) {} /** * Unpause the timer paused by LuaSandbox::pauseUsageTimer(). @@ -285,7 +286,7 @@ public function setMemoryLimit ($limit) {} * @see LuaSandbox::setCPULimit() * @see LuaSandbox::unpauseUsageTimer() */ - public function unpauseUsageTimer () {} + public function unpauseUsageTimer() {} /** * Wrap a PHP callable in a LuaSandboxFunction. @@ -309,7 +310,7 @@ public function unpauseUsageTimer () {} * @see LuaSandbox::loadString() * @see LuaSandbox::registerLibrary() */ - public function wrapPhpFunction ($function) {} + public function wrapPhpFunction($function) {} } /** @@ -322,7 +323,8 @@ public function wrapPhpFunction ($function) {} * * @since luasandbox >= 1.0.0 */ -class LuaSandboxFunction { +class LuaSandboxFunction +{ /** * Call a Lua function. * @@ -369,7 +371,7 @@ class LuaSandboxFunction { * which may be empty, or false on error.

    * @since luasandbox >= 1.0.0 */ - public function call ($arguments) {} + public function call($arguments) {} /** * Dump the function as a binary blob. @@ -378,7 +380,7 @@ public function call ($arguments) {} * @return string

    Returns a string that may be passed to LuaSandbox::loadBinary().

    * @since luasandbox >= 1.0.0 */ - public function dump () {} + public function dump() {} } /** @@ -386,26 +388,15 @@ public function dump () {} * * @since luasandbox >= 1.0.0 */ -class LuaSandboxError extends Exception { - /** - * - */ - const RUN = 2; +class LuaSandboxError extends Exception +{ + public const RUN = 2; - /** - * - */ - const SYNTAX = 3; + public const SYNTAX = 3; - /** - * - */ - const MEM = 4; + public const MEM = 4; - /** - * - */ - const ERR = 5; + public const ERR = 5; } /** diff --git a/PDO/PDO.php b/PDO/PDO.php index 84621a673..8a0183aef 100644 --- a/PDO/PDO.php +++ b/PDO/PDO.php @@ -12,1209 +12,1210 @@ * @see https://php.net/manual/en/language.exceptions.php Exceptions in PHP * @link https://php.net/manual/en/class.pdoexception.php */ -class PDOException extends RuntimeException { - public $errorInfo; +class PDOException extends RuntimeException +{ + public $errorInfo; } -/** - * Represents a connection between PHP and a database server. - * @link https://php.net/manual/en/class.pdo.php - */ -class PDO { - - /** - * Represents a boolean data type. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-bool - */ - const PARAM_BOOL = 5; - - /** - * Represents the SQL NULL data type. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-null - */ - const PARAM_NULL = 0; - - /** - * Represents the SQL INTEGER data type. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-int - */ - const PARAM_INT = 1; - - /** - * Represents the SQL CHAR, VARCHAR, or other string data type. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-str - */ - const PARAM_STR = 2; - - /** - * Flag to denote a string uses the national character set. - * @since 7.2 - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-str-natl - */ - const PARAM_STR_NATL = 1073741824; - - /** - * Flag to denote a string uses the regular character set. - * @since 7.2 - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-str-char - */ - const PARAM_STR_CHAR = 536870912; - - /** - * Sets the default string parameter type, this can be one of PDO::PARAM_STR_NATL and PDO::PARAM_STR_CHAR. - * @since 7.2 - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-default-str-param - */ - const ATTR_DEFAULT_STR_PARAM = 21; - - /** - * Specifies that a function created with PDO::sqliteCreateFunction() is deterministic, i.e. it always returns the same result given the same inputs within a single SQL statement. - * @since 7.1.4 - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.sqlite-deterministic - */ - const SQLITE_DETERMINISTIC = 2048; - - /** - * @since 7.3 - */ - const SQLITE_OPEN_READONLY = 1; - - /** - * @since 7.3 - */ - const SQLITE_OPEN_READWRITE = 2; - - /** - * @since 7.3 - */ - const SQLITE_OPEN_CREATE = 4; - - /** - * @since 7.3 - */ - const SQLITE_ATTR_OPEN_FLAGS = 1000; - - /** - * Represents the SQL large object data type. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-lob - */ - const PARAM_LOB = 3; - - /** - * Represents a recordset type. Not currently supported by any drivers. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-stmt - */ - const PARAM_STMT = 4; - - /** - * Specifies that the parameter is an INOUT parameter for a stored - * procedure. You must bitwise-OR this value with an explicit - * PDO::PARAM_* data type. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-input-output - */ - const PARAM_INPUT_OUTPUT = 2147483648; - - /** - * Allocation event - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-alloc - */ - const PARAM_EVT_ALLOC = 0; - - /** - * Deallocation event - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-free - */ - const PARAM_EVT_FREE = 1; - - /** - * Event triggered prior to execution of a prepared statement. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-exec-pre - */ - const PARAM_EVT_EXEC_PRE = 2; - - /** - * Event triggered subsequent to execution of a prepared statement. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-exec-post - */ - const PARAM_EVT_EXEC_POST = 3; - - /** - * Event triggered prior to fetching a result from a resultset. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-fetch-pre - */ - const PARAM_EVT_FETCH_PRE = 4; - - /** - * Event triggered subsequent to fetching a result from a resultset. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-fetch-post - */ - const PARAM_EVT_FETCH_POST = 5; - - /** - * Event triggered during bound parameter registration - * allowing the driver to normalize the parameter name. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-normalize - */ - const PARAM_EVT_NORMALIZE = 6; - - /** - * Specifies that the fetch method shall return each row as an object with - * variable names that correspond to the column names returned in the result - * set. PDO::FETCH_LAZY creates the object variable names as they are accessed. - * Not valid inside PDOStatement::fetchAll. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-lazy - */ - const FETCH_LAZY = 1; - - /** - * Specifies that the fetch method shall return each row as an array indexed - * by column name as returned in the corresponding result set. If the result - * set contains multiple columns with the same name, - * PDO::FETCH_ASSOC returns - * only a single value per column name. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-assoc - */ - const FETCH_ASSOC = 2; - - /** - * Specifies that the fetch method shall return each row as an array indexed - * by column number as returned in the corresponding result set, starting at - * column 0. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-num - */ - const FETCH_NUM = 3; - - /** - * Specifies that the fetch method shall return each row as an array indexed - * by both column name and number as returned in the corresponding result set, - * starting at column 0. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-both - */ - const FETCH_BOTH = 4; - - /** - * Specifies that the fetch method shall return each row as an object with - * property names that correspond to the column names returned in the result - * set. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-obj - */ - const FETCH_OBJ = 5; - - /** - * Specifies that the fetch method shall return TRUE and assign the values of - * the columns in the result set to the PHP variables to which they were - * bound with the PDOStatement::bindParam or - * PDOStatement::bindColumn methods. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-bound - */ - const FETCH_BOUND = 6; - - /** - * Specifies that the fetch method shall return only a single requested - * column from the next row in the result set. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-column - */ - const FETCH_COLUMN = 7; - - /** - * Specifies that the fetch method shall return a new instance of the - * requested class, mapping the columns to named properties in the class. - * The magic - * __set - * method is called if the property doesn't exist in the requested class - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-class - */ - const FETCH_CLASS = 8; - - /** - * Specifies that the fetch method shall update an existing instance of the - * requested class, mapping the columns to named properties in the class. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-into - */ - const FETCH_INTO = 9; - - /** - * Allows completely customize the way data is treated on the fly (only - * valid inside PDOStatement::fetchAll). - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-func - */ - const FETCH_FUNC = 10; - - /** - * Group return by values. Usually combined with - * PDO::FETCH_COLUMN or - * PDO::FETCH_KEY_PAIR. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-group - */ - const FETCH_GROUP = 65536; - - /** - * Fetch only the unique values. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-unique - */ - const FETCH_UNIQUE = 196608; - - /** - * Fetch a two-column result into an array where the first column is a key and the second column - * is the value. - * @since 5.2.3 - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-key-pair - */ - const FETCH_KEY_PAIR = 12; - - /** - * Determine the class name from the value of first column. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-classtype - */ - const FETCH_CLASSTYPE = 262144; - - /** - * As PDO::FETCH_INTO but object is provided as a serialized string. - * Available since PHP 5.1.0. Since PHP 5.3.0 the class constructor is never called if this - * flag is set. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-serialize - */ - const FETCH_SERIALIZE = 524288; - - /** - * Call the constructor before setting properties. - * @since 5.2.0 - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-props-late - */ - const FETCH_PROPS_LATE = 1048576; - - /** - * Specifies that the fetch method shall return each row as an array indexed - * by column name as returned in the corresponding result set. If the result - * set contains multiple columns with the same name, - * PDO::FETCH_NAMED returns - * an array of values per column name. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-named - */ - const FETCH_NAMED = 11; - - /** - * If this value is FALSE, PDO attempts to disable autocommit so that the - * connection begins a transaction. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-autocommit - */ - const ATTR_AUTOCOMMIT = 0; - - /** - * Setting the prefetch size allows you to balance speed against memory - * usage for your application. Not all database/driver combinations support - * setting of the prefetch size. A larger prefetch size results in - * increased performance at the cost of higher memory usage. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-prefetch - */ - const ATTR_PREFETCH = 1; - - /** - * Sets the timeout value in seconds for communications with the database. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-timeout - */ - const ATTR_TIMEOUT = 2; - - /** - * @see https://php.net/manual/en/pdo.error-handling.php Errors and error handling - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-errmode - */ - const ATTR_ERRMODE = 3; - - /** - * This is a read only attribute; it will return information about the - * version of the database server to which PDO is connected. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr- - */ - const ATTR_SERVER_VERSION = 4; - - /** - * This is a read only attribute; it will return information about the - * version of the client libraries that the PDO driver is using. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-client-version - */ - const ATTR_CLIENT_VERSION = 5; - - /** - * This is a read only attribute; it will return some meta information about the - * database server to which PDO is connected. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-server-info - */ - const ATTR_SERVER_INFO = 6; - const ATTR_CONNECTION_STATUS = 7; - - /** - * Force column names to a specific case specified by the PDO::CASE_* - * constants. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-case - */ - const ATTR_CASE = 8; - - /** - * Get or set the name to use for a cursor. Most useful when using - * scrollable cursors and positioned updates. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-cursor-name - */ - const ATTR_CURSOR_NAME = 9; - - /** - * Selects the cursor type. PDO currently supports either - * PDO::CURSOR_FWDONLY and - * PDO::CURSOR_SCROLL. Stick with - * PDO::CURSOR_FWDONLY unless you know that you need a - * scrollable cursor. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-cursor - */ - const ATTR_CURSOR = 10; - - /** - * Convert empty strings to SQL NULL values on data fetches. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-oracle-nulls - */ - const ATTR_ORACLE_NULLS = 11; - - /** - * Request a persistent connection, rather than creating a new connection. - * @see https://php.net/manual/en/pdo.connections.php Connections and Connection Management - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-persistent - */ - const ATTR_PERSISTENT = 12; - - /** - * Sets the class name of which statements are returned as. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-statement-class - */ - const ATTR_STATEMENT_CLASS = 13; - - /** - * Prepend the containing table name to each column name returned in the - * result set. The table name and column name are separated by a decimal (.) - * character. Support of this attribute is at the driver level; it may not - * be supported by your driver. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-fetch-table-names - */ - const ATTR_FETCH_TABLE_NAMES = 14; - - /** - * Prepend the containing catalog name to each column name returned in the - * result set. The catalog name and column name are separated by a decimal - * (.) character. Support of this attribute is at the driver level; it may - * not be supported by your driver. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-fetch-catalog-names - */ - const ATTR_FETCH_CATALOG_NAMES = 15; - - /** - * Returns the name of the driver. - *

    - * using PDO::ATTR_DRIVER_NAME - * - * if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') { - * echo "Running on mysql; doing something mysql specific here\n"; - * } - * - *

    - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-driver-name - */ - const ATTR_DRIVER_NAME = 16; - - /** - * Forces all values fetched to be treated as strings. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-stringify-fetches - */ - const ATTR_STRINGIFY_FETCHES = 17; - - /** - * Sets the maximum column name length. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-max-column-len - */ - const ATTR_MAX_COLUMN_LEN = 18; - - /** - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-emulate-prepares - * @since 5.1.3 - */ - const ATTR_EMULATE_PREPARES = 20; - - /** - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-default-fetch-mode - * @since 5.2.0 - */ - const ATTR_DEFAULT_FETCH_MODE = 19; - - /** - * Do not raise an error or exception if an error occurs. The developer is - * expected to explicitly check for errors. This is the default mode. - * @see https://php.net/manual/en/pdo.error-handling.php Errors and Error Handling - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.errmode-silent - */ - const ERRMODE_SILENT = 0; - - /** - * Issue a PHP E_WARNING message if an error occurs. - * @see https://php.net/manual/en/pdo.error-handling.php Errors and Error Handling - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.errmode-warning - */ - const ERRMODE_WARNING = 1; - - /** - * Throw a PDOException if an error occurs. - * @see https://php.net/manual/en/pdo.error-handling.php Errors and Error Handling - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.errmode-exception - */ - const ERRMODE_EXCEPTION = 2; - - /** - * Leave column names as returned by the database driver. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.case-natural - */ - const CASE_NATURAL = 0; - - /** - * Force column names to lower case. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.case-lower - */ - const CASE_LOWER = 2; - - /** - * Force column names to upper case. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.case-upper - */ - const CASE_UPPER = 1; - - /** - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.null-natural - */ - const NULL_NATURAL = 0; - - /** - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.null-empty-string - */ - const NULL_EMPTY_STRING = 1; - - /** - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.null-to-string - */ - const NULL_TO_STRING = 2; - - /** - * Corresponds to SQLSTATE '00000', meaning that the SQL statement was - * successfully issued with no errors or warnings. This constant is for - * your convenience when checking PDO::errorCode or - * PDOStatement::errorCode to determine if an error - * occurred. You will usually know if this is the case by examining the - * return code from the method that raised the error condition anyway. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.err-none - */ - const ERR_NONE = 00000; - - /** - * Fetch the next row in the result set. Valid only for scrollable cursors. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-next - */ - const FETCH_ORI_NEXT = 0; - - /** - * Fetch the previous row in the result set. Valid only for scrollable - * cursors. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-prior - */ - const FETCH_ORI_PRIOR = 1; - - /** - * Fetch the first row in the result set. Valid only for scrollable cursors. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-first - */ - const FETCH_ORI_FIRST = 2; - - /** - * Fetch the last row in the result set. Valid only for scrollable cursors. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-last - */ - const FETCH_ORI_LAST = 3; - - /** - * Fetch the requested row by row number from the result set. Valid only - * for scrollable cursors. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-abs - */ - const FETCH_ORI_ABS = 4; - - /** - * Fetch the requested row by relative position from the current position - * of the cursor in the result set. Valid only for scrollable cursors. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-rel - */ - const FETCH_ORI_REL = 5; - - /** - * Create a PDOStatement object with a forward-only cursor. This is the - * default cursor choice, as it is the fastest and most common data access - * pattern in PHP. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.cursor-fwdonly - */ - const CURSOR_FWDONLY = 0; - - /** - * Create a PDOStatement object with a scrollable cursor. Pass the - * PDO::FETCH_ORI_* constants to control the rows fetched from the result set. - * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.cursor-scroll - */ - const CURSOR_SCROLL = 1; - - /** - * If this attribute is set to TRUE on a - * PDOStatement, the MySQL driver will use the - * buffered versions of the MySQL API. If you're writing portable code, you - * should use PDOStatement::fetchAll instead. - *

    - * Forcing queries to be buffered in mysql - * - * if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') { - * $stmt = $db->prepare('select * from foo', - * array(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true)); - * } else { - * die("my application only works with mysql; I should use \$stmt->fetchAll() instead"); - * } - * - *

    - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-use-buffered-query - */ - const MYSQL_ATTR_USE_BUFFERED_QUERY = 1000; - - /** - *

    - * Enable LOAD LOCAL INFILE. - *

    - *

    - * Note, this constant can only be used in the driver_options - * array when constructing a new database handle. - *

    - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-local-infile - */ - const MYSQL_ATTR_LOCAL_INFILE = 1001; - - /** - *

    - * Command to execute when connecting to the MySQL server. Will - * automatically be re-executed when reconnecting. - *

    - *

    - * Note, this constant can only be used in the driver_options - * array when constructing a new database handle. - *

    - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-init-command - */ - const MYSQL_ATTR_INIT_COMMAND = 1002; - - /** - *

    - * Maximum buffer size. Defaults to 1 MiB. This constant is not supported when - * compiled against mysqlnd. - *

    - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-max-buffer-size - */ - const MYSQL_ATTR_MAX_BUFFER_SIZE = 1005; - - /** - *

    - * Read options from the named option file instead of from - * my.cnf. This option is not available if - * mysqlnd is used, because mysqlnd does not read the mysql - * configuration files. - *

    - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-read-default-file - */ - const MYSQL_ATTR_READ_DEFAULT_FILE = 1003; - - /** - *

    - * Read options from the named group from my.cnf or the - * file specified with MYSQL_READ_DEFAULT_FILE. This option - * is not available if mysqlnd is used, because mysqlnd does not read the mysql - * configuration files. - *

    - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-read-default-group - */ - const MYSQL_ATTR_READ_DEFAULT_GROUP = 1004; - - /** - *

    - * Enable network communication compression. This is not supported when - * compiled against mysqlnd. - *

    - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-compress - */ - const MYSQL_ATTR_COMPRESS = 1003; - - /** - *

    - * Perform direct queries, don't use prepared statements. - *

    - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-direct-query - */ - const MYSQL_ATTR_DIRECT_QUERY = 1004; - - /** - *

    - * Return the number of found (matched) rows, not the - * number of changed rows. - *

    - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-found-rows - */ - const MYSQL_ATTR_FOUND_ROWS = 1005; - - /** - *

    - * Permit spaces after function names. Makes all functions - * names reserved words. - *

    - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-ignore-space - */ - const MYSQL_ATTR_IGNORE_SPACE = 1006; - - const MYSQL_ATTR_SERVER_PUBLIC_KEY = 1012; - - /** - *

    - * The file path to the SSL key. - *

    - * @since 5.3.7 - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-key - */ - const MYSQL_ATTR_SSL_KEY = 1007; - - /** - *

    - * The file path to the SSL certificate. - *

    - * @since 5.3.7 - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-cert - */ - const MYSQL_ATTR_SSL_CERT = 1008; - - /** - *

    - * The file path to the SSL certificate authority. - *

    - * @since 5.3.7 - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-ca - */ - const MYSQL_ATTR_SSL_CA = 1009; - - /** - *

    - * The file path to the directory that contains the trusted SSL - * CA certificates, which are stored in PEM format. - *

    - * @since 5.3.7 - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-capath - */ - const MYSQL_ATTR_SSL_CAPATH = 1010; - - /** - *

    - * A list of one or more permissible ciphers to use for SSL encryption, - * in a format understood by OpenSSL. - * For example: DHE-RSA-AES256-SHA:AES128-SHA - *

    - * @since 5.3.7 - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-cipher - */ - const MYSQL_ATTR_SSL_CIPHER = 1011; - - /** - *

    - * Disables multi query execution in both {@see PDO::prepare()} and {@see PDO::query()} when set to FALSE. - *

    - *

    - * Note, this constant can only be used in the driver_options array when constructing a new database handle. - *

    - * @since 5.5.21 - * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-multi-statements - */ - const MYSQL_ATTR_MULTI_STATEMENTS = 1013; - - /** - *

    - * Disables SSL peer verification when set to FALSE. - *

    - * @since 7.0.18 - * @since 7.1.4 - * @link https://bugs.php.net/bug.php?id=71003 - */ - const MYSQL_ATTR_SSL_VERIFY_SERVER_CERT = 1014; - - #[Deprecated("Use PDO::ATTR_EMULATE_PREPARES instead")] - const PGSQL_ASSOC = 1; - const PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT = 1000; - - /** - * @since 5.6 - */ - const PGSQL_ATTR_DISABLE_PREPARES = 1000; - const PGSQL_BAD_RESPONSE = 5; - const PGSQL_BOTH = 3; - const PGSQL_TRANSACTION_IDLE = 0; - const PGSQL_TRANSACTION_ACTIVE = 1; - const PGSQL_TRANSACTION_INTRANS = 2; - const PGSQL_TRANSACTION_INERROR = 3; - const PGSQL_TRANSACTION_UNKNOWN = 4; - - const PGSQL_CONNECT_ASYNC = 4; - const PGSQL_CONNECT_FORCE_NEW = 2; - const PGSQL_CONNECTION_AUTH_OK = 5; - const PGSQL_CONNECTION_AWAITING_RESPONSE = 4; - const PGSQL_CONNECTION_BAD = 1; - const PGSQL_CONNECTION_OK = 0; - const PGSQL_CONNECTION_MADE = 3; - const PGSQL_CONNECTION_SETENV = 6; - const PGSQL_CONNECTION_SSL_STARTUP = 7; - const PGSQL_CONNECTION_STARTED = 2; - const PGSQL_COMMAND_OK = 1; - const PGSQL_CONV_FORCE_NULL = 4; - const PGSQL_CONV_IGNORE_DEFAULT = 2; - const PGSQL_CONV_IGNORE_NOT_NULL = 8; - const PGSQL_COPY_IN = 4; - const PGSQL_COPY_OUT = 3; - const PGSQL_DIAG_CONTEXT = 87; - const PGSQL_DIAG_INTERNAL_POSITION = 112; - const PGSQL_DIAG_INTERNAL_QUERY = 113; - const PGSQL_DIAG_MESSAGE_DETAIL = 68; - const PGSQL_DIAG_MESSAGE_HINT = 72; - const PGSQL_DIAG_MESSAGE_PRIMARY = 77; - const PGSQL_DIAG_SEVERITY = 83; - const PGSQL_DIAG_SOURCE_FILE = 70; - const PGSQL_DIAG_SOURCE_FUNCTION = 82; - const PGSQL_DIAG_SOURCE_LINE = 76; - const PGSQL_DIAG_SQLSTATE = 67; - const PGSQL_DIAG_STATEMENT_POSITION = 80; - const PGSQL_DML_ASYNC = 1024; - const PGSQL_DML_EXEC = 512; - const PGSQL_DML_NO_CONV = 256; - const PGSQL_DML_STRING = 2048; - const PGSQL_DML_ESCAPE = 4096; - const PGSQL_EMPTY_QUERY = 0; - const PGSQL_ERRORS_DEFAULT = 1; - const PGSQL_ERRORS_TERSE = 0; - const PGSQL_ERRORS_VERBOSE = 2; - const PGSQL_FATAL_ERROR = 7; - const PGSQL_NONFATAL_ERROR = 6; - const PGSQL_NOTICE_ALL = 2; - const PGSQL_NOTICE_CLEAR = 3; - const PGSQL_NOTICE_LAST = 1; - const PGSQL_NUM = 2; - const PGSQL_POLLING_ACTIVE = 4; - const PGSQL_POLLING_FAILED = 0; - const PGSQL_POLLING_OK = 3; - const PGSQL_POLLING_READING = 1; - const PGSQL_POLLING_WRITING = 2; - const PGSQL_SEEK_CUR = 1; - const PGSQL_SEEK_END = 2; - const PGSQL_SEEK_SET = 0; - const PGSQL_STATUS_LONG = 1; - const PGSQL_STATUS_STRING = 2; - const PGSQL_TUPLES_OK = 2; - const SQLSRV_TXN_READ_UNCOMMITTED = "READ_UNCOMMITTED"; - const SQLSRV_TXN_READ_COMMITTED = "READ_COMMITTED"; - const SQLSRV_TXN_REPEATABLE_READ = "REPEATABLE_READ"; - const SQLSRV_TXN_SNAPSHOT = "SNAPSHOT"; - const SQLSRV_TXN_SERIALIZABLE = "SERIALIZABLE"; - const SQLSRV_ENCODING_BINARY = 2; - const SQLSRV_ENCODING_SYSTEM = 3; - const SQLSRV_ENCODING_UTF8 = 65001; - const SQLSRV_ENCODING_DEFAULT = 1; - const SQLSRV_ATTR_ENCODING = 1000; - const SQLSRV_ATTR_QUERY_TIMEOUT = 1001; - const SQLSRV_ATTR_DIRECT_QUERY = 1002; - const SQLSRV_ATTR_CURSOR_SCROLL_TYPE = 1003; - const SQLSRV_ATTR_CLIENT_BUFFER_MAX_KB_SIZE = 1004; - const SQLSRV_ATTR_FETCHES_NUMERIC_TYPE = 1005; - const SQLSRV_PARAM_OUT_DEFAULT_SIZE = -1; - const SQLSRV_CURSOR_KEYSET = 1; - const SQLSRV_CURSOR_DYNAMIC = 2; - const SQLSRV_CURSOR_STATIC = 3; - const SQLSRV_CURSOR_BUFFERED = 42; - - /** - * @since 7.4 - */ - const SQLITE_ATTR_READONLY_STATEMENT = 1001; - /** - * @since 7.4 - */ - const SQLITE_ATTR_EXTENDED_RESULT_CODES = 1002; - - /** - * Provides a way to specify the action on the database session. - * @since 7.2.16 - * @since 7.3.3 - */ - const OCI_ATTR_ACTION = 1000; - - /** - * Provides a way to specify the client info on the database session. - * @since 7.2.16 - * @since 7.3.3 - */ - const OCI_ATTR_CLIENT_INFO = 1001; - - /** - * Provides a way to specify the client identifier on the database session. - * @since 7.2.16 - * @since 7.3.3 - */ - const OCI_ATTR_CLIENT_IDENTIFIER = 1002; - - /** - * Provides a way to specify the module on the database session. - * @since 7.2.16 - * @since 7.3.3 - */ - const OCI_ATTR_MODULE = 1003; - - /** - * The number of milliseconds to wait for individual round trips to the database to complete before timing out. - * @since 8.0 - */ - const OCI_ATTR_CALL_TIMEOUT = 1004; - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Creates a PDO instance representing a connection to a database - * @link https://php.net/manual/en/pdo.construct.php - * @param string $dsn - * @param string $username [optional] - * @param string $password [optional] - * @param array $options [optional] - * @throws PDOException if the attempt to connect to the requested database fails. - */ - public function __construct ($dsn, $username = null, $password = null, $options = null) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Prepares a statement for execution and returns a statement object - * @link https://php.net/manual/en/pdo.prepare.php - * @param string $query

    - * This must be a valid SQL statement for the target database server. - *

    - * @param array $options [optional]

    - * This array holds one or more key=>value pairs to set - * attribute values for the PDOStatement object that this method - * returns. You would most commonly use this to set the - * PDO::ATTR_CURSOR value to - * PDO::CURSOR_SCROLL to request a scrollable cursor. - * Some drivers have driver specific options that may be set at - * prepare-time. - *

    - * @return PDOStatement|false If the database server successfully prepares the statement, - * PDO::prepare returns a - * PDOStatement object. - * If the database server cannot successfully prepare the statement, - * PDO::prepare returns FALSE or emits - * PDOException (depending on error handling). - *

    - *

    - * Emulated prepared statements does not communicate with the database server - * so PDO::prepare does not check the statement. - */ - public function prepare ($query, array $options = array()) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Initiates a transaction - *

    - * Turns off autocommit mode. While autocommit mode is turned off, - * changes made to the database via the PDO object instance are not committed - * until you end the transaction by calling {@link PDO::commit()}. - * Calling {@link PDO::rollBack()} will roll back all changes to the database and - * return the connection to autocommit mode. - *

    - *

    - * Some databases, including MySQL, automatically issue an implicit COMMIT - * when a database definition language (DDL) statement - * such as DROP TABLE or CREATE TABLE is issued within a transaction. - * The implicit COMMIT will prevent you from rolling back any other changes - * within the transaction boundary. - *

    - * @link https://php.net/manual/en/pdo.begintransaction.php - * @return bool TRUE on success or FALSE on failure. - * @throws PDOException If there is already a transaction started or - * the driver does not support transactions
    - * Note: An exception is raised even when the PDO::ATTR_ERRMODE - * attribute is not PDO::ERRMODE_EXCEPTION. - */ - public function beginTransaction () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Commits a transaction - * @link https://php.net/manual/en/pdo.commit.php - * @return bool TRUE on success or FALSE on failure. - * @throws PDOException if there is no active transaction. - */ - public function commit () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Rolls back a transaction - * @link https://php.net/manual/en/pdo.rollback.php - * @return bool TRUE on success or FALSE on failure. - * @throws PDOException if there is no active transaction. - */ - public function rollBack () {} - - /** - * (PHP 5 >= 5.3.3, Bundled pdo_pgsql, PHP 7)
    - * Checks if inside a transaction - * @link https://php.net/manual/en/pdo.intransaction.php - * @return bool TRUE if a transaction is currently active, and FALSE if not. - */ - public function inTransaction () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Set an attribute - * @link https://php.net/manual/en/pdo.setattribute.php - * @param int $attribute - * @param mixed $value - * @return bool TRUE on success or FALSE on failure. - */ - public function setAttribute ($attribute, $value) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Execute an SQL statement and return the number of affected rows - * @link https://php.net/manual/en/pdo.exec.php - * @param string $statement

    - * The SQL statement to prepare and execute. - *

    - *

    - * Data inside the query should be properly escaped. - *

    - * @return int|false PDO::exec returns the number of rows that were modified - * or deleted by the SQL statement you issued. If no rows were affected, - * PDO::exec returns 0. - *

    - * This function may - * return Boolean FALSE, but may also return a non-Boolean value which - * evaluates to FALSE. Please read the section on Booleans for more - * information. Use the === - * operator for testing the return value of this - * function. - *

    - * The following example incorrectly relies on the return value of - * PDO::exec, wherein a statement that affected 0 rows - * results in a call to die: - * - * $db->exec() or die(print_r($db->errorInfo(), true)); - * - */ - public function exec ($statement) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    - * Executes an SQL statement, returning a result set as a PDOStatement object - * @link https://php.net/manual/en/pdo.query.php - * @param string $statement

    - * The SQL statement to prepare and execute. - *

    - *

    - * Data inside the query should be properly escaped. - *

    - * @param int $mode

    - * The fetch mode must be one of the PDO::FETCH_* constants. - *

    - * @param mixed $arg3

    - * The second and following parameters are the same as the parameters for PDOStatement::setFetchMode. - *

    - * @param array $ctorargs [optional]

    - * Arguments of custom class constructor when the mode - * parameter is set to PDO::FETCH_CLASS. - *

    - * @return PDOStatement|false PDO::query returns a PDOStatement object, or FALSE - * on failure. - * @see PDOStatement::setFetchMode For a full description of the second and following parameters. - */ - #[PhpStormStubsElementAvailable(to: '7.4')] - public function query ($statement, $mode = PDO::ATTR_DEFAULT_FETCH_MODE, $arg3 = null, array $ctorargs = array()) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    - * Executes an SQL statement, returning a result set as a PDOStatement object - * @link https://php.net/manual/en/pdo.query.php - * @param string $statement

    - * The SQL statement to prepare and execute. - *

    - *

    - * Data inside the query should be properly escaped. - *

    - * @param int $mode

    - * The fetch mode must be one of the PDO::FETCH_* constants. - *

    - * @param mixed $fetch_mode_args

    - * Arguments of custom class constructor when the mode - * parameter is set to PDO::FETCH_CLASS. - *

    - * @return PDOStatement|false PDO::query returns a PDOStatement object, or FALSE - * on failure. - * @see PDOStatement::setFetchMode For a full description of the second and following parameters. - */ - #[PhpStormStubsElementAvailable('8.0')] - public function query ($statement, $mode = PDO::ATTR_DEFAULT_FETCH_MODE, ...$fetch_mode_args) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Returns the ID of the last inserted row or sequence value - * @link https://php.net/manual/en/pdo.lastinsertid.php - * @param string $name [optional]

    - * Name of the sequence object from which the ID should be returned. - *

    - * @return string If a sequence name was not specified for the name - * parameter, PDO::lastInsertId returns a - * string representing the row ID of the last row that was inserted into - * the database. - *

    - *

    - * If a sequence name was specified for the name - * parameter, PDO::lastInsertId returns a - * string representing the last value retrieved from the specified sequence - * object. - *

    - *

    - * If the PDO driver does not support this capability, - * PDO::lastInsertId triggers an - * IM001 SQLSTATE. - */ - public function lastInsertId ($name = null) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Fetch the SQLSTATE associated with the last operation on the database handle - * @link https://php.net/manual/en/pdo.errorcode.php - * @return mixed an SQLSTATE, a five characters alphanumeric identifier defined in - * the ANSI SQL-92 standard. Briefly, an SQLSTATE consists of a - * two characters class value followed by a three characters subclass value. A - * class value of 01 indicates a warning and is accompanied by a return code - * of SQL_SUCCESS_WITH_INFO. Class values other than '01', except for the - * class 'IM', indicate an error. The class 'IM' is specific to warnings - * and errors that derive from the implementation of PDO (or perhaps ODBC, - * if you're using the ODBC driver) itself. The subclass value '000' in any - * class indicates that there is no subclass for that SQLSTATE. - *

    - *

    - * PDO::errorCode only retrieves error codes for operations - * performed directly on the database handle. If you create a PDOStatement - * object through PDO::prepare or - * PDO::query and invoke an error on the statement - * handle, PDO::errorCode will not reflect that error. - * You must call PDOStatement::errorCode to return the error - * code for an operation performed on a particular statement handle. - *

    - *

    - * Returns NULL if no operation has been run on the database handle. - */ - public function errorCode () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Fetch extended error information associated with the last operation on the database handle - * @link https://php.net/manual/en/pdo.errorinfo.php - * @return array PDO::errorInfo returns an array of error information - * about the last operation performed by this database handle. The array - * consists of the following fields: - * - * Element - * Information - * - * - * 0 - * SQLSTATE error code (a five characters alphanumeric identifier defined - * in the ANSI SQL standard). - * - * - * 1 - * Driver-specific error code. - * - * - * 2 - * Driver-specific error message. - * - *

    - *

    - * If the SQLSTATE error code is not set or there is no driver-specific - * error, the elements following element 0 will be set to NULL. - *

    - *

    - * PDO::errorInfo only retrieves error information for - * operations performed directly on the database handle. If you create a - * PDOStatement object through PDO::prepare or - * PDO::query and invoke an error on the statement - * handle, PDO::errorInfo will not reflect the error - * from the statement handle. You must call - * PDOStatement::errorInfo to return the error - * information for an operation performed on a particular statement handle. - */ - #[ArrayShape([ - 0 => "string", - 1 => "int", - 2 => "string", - ])] - public function errorInfo () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    - * Retrieve a database connection attribute - * @link https://php.net/manual/en/pdo.getattribute.php - * @param int $attribute

    - * One of the PDO::ATTR_* constants. The constants that - * apply to database connections are as follows: - * PDO::ATTR_AUTOCOMMIT - * PDO::ATTR_CASE - * PDO::ATTR_CLIENT_VERSION - * PDO::ATTR_CONNECTION_STATUS - * PDO::ATTR_DRIVER_NAME - * PDO::ATTR_ERRMODE - * PDO::ATTR_ORACLE_NULLS - * PDO::ATTR_PERSISTENT - * PDO::ATTR_PREFETCH - * PDO::ATTR_SERVER_INFO - * PDO::ATTR_SERVER_VERSION - * PDO::ATTR_TIMEOUT - *

    - * @return mixed A successful call returns the value of the requested PDO attribute. - * An unsuccessful call returns null. - */ - public function getAttribute ($attribute) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.1)
    - * Quotes a string for use in a query. - * @link https://php.net/manual/en/pdo.quote.php - * @param string $string

    - * The string to be quoted. - *

    - * @param int $type [optional]

    - * Provides a data type hint for drivers that have alternate quoting styles. - *

    - * @return string|false a quoted string that is theoretically safe to pass into an - * SQL statement. Returns FALSE if the driver does not support quoting in - * this way. - */ - public function quote ($string, $type = PDO::PARAM_STR) {} - - final public function __wakeup () {} - - final public function __sleep () {} - - /** - * (PHP 5 >= 5.1.3, PHP 7, PECL pdo >= 1.0.3)
    - * Return an array of available PDO drivers - * @link https://php.net/manual/en/pdo.getavailabledrivers.php - * @return array PDO::getAvailableDrivers returns an array of PDO driver names. If - * no drivers are available, it returns an empty array. - */ - public static function getAvailableDrivers () {} +/** + * Represents a connection between PHP and a database server. + * @link https://php.net/manual/en/class.pdo.php + */ +class PDO +{ + /** + * Represents a boolean data type. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-bool + */ + public const PARAM_BOOL = 5; + + /** + * Represents the SQL NULL data type. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-null + */ + public const PARAM_NULL = 0; + + /** + * Represents the SQL INTEGER data type. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-int + */ + public const PARAM_INT = 1; + + /** + * Represents the SQL CHAR, VARCHAR, or other string data type. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-str + */ + public const PARAM_STR = 2; + + /** + * Flag to denote a string uses the national character set. + * @since 7.2 + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-str-natl + */ + public const PARAM_STR_NATL = 1073741824; + + /** + * Flag to denote a string uses the regular character set. + * @since 7.2 + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-str-char + */ + public const PARAM_STR_CHAR = 536870912; + + /** + * Sets the default string parameter type, this can be one of PDO::PARAM_STR_NATL and PDO::PARAM_STR_CHAR. + * @since 7.2 + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-default-str-param + */ + public const ATTR_DEFAULT_STR_PARAM = 21; + + /** + * Specifies that a function created with PDO::sqliteCreateFunction() is deterministic, i.e. it always returns the same result given the same inputs within a single SQL statement. + * @since 7.1.4 + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.sqlite-deterministic + */ + public const SQLITE_DETERMINISTIC = 2048; + + /** + * @since 7.3 + */ + public const SQLITE_OPEN_READONLY = 1; + + /** + * @since 7.3 + */ + public const SQLITE_OPEN_READWRITE = 2; + + /** + * @since 7.3 + */ + public const SQLITE_OPEN_CREATE = 4; + + /** + * @since 7.3 + */ + public const SQLITE_ATTR_OPEN_FLAGS = 1000; + + /** + * Represents the SQL large object data type. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-lob + */ + public const PARAM_LOB = 3; + + /** + * Represents a recordset type. Not currently supported by any drivers. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-stmt + */ + public const PARAM_STMT = 4; + + /** + * Specifies that the parameter is an INOUT parameter for a stored + * procedure. You must bitwise-OR this value with an explicit + * PDO::PARAM_* data type. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-input-output + */ + public const PARAM_INPUT_OUTPUT = 2147483648; + + /** + * Allocation event + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-alloc + */ + public const PARAM_EVT_ALLOC = 0; + + /** + * Deallocation event + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-free + */ + public const PARAM_EVT_FREE = 1; + + /** + * Event triggered prior to execution of a prepared statement. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-exec-pre + */ + public const PARAM_EVT_EXEC_PRE = 2; + + /** + * Event triggered subsequent to execution of a prepared statement. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-exec-post + */ + public const PARAM_EVT_EXEC_POST = 3; + + /** + * Event triggered prior to fetching a result from a resultset. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-fetch-pre + */ + public const PARAM_EVT_FETCH_PRE = 4; + + /** + * Event triggered subsequent to fetching a result from a resultset. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-fetch-post + */ + public const PARAM_EVT_FETCH_POST = 5; + + /** + * Event triggered during bound parameter registration + * allowing the driver to normalize the parameter name. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-evt-normalize + */ + public const PARAM_EVT_NORMALIZE = 6; + + /** + * Specifies that the fetch method shall return each row as an object with + * variable names that correspond to the column names returned in the result + * set. PDO::FETCH_LAZY creates the object variable names as they are accessed. + * Not valid inside PDOStatement::fetchAll. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-lazy + */ + public const FETCH_LAZY = 1; + + /** + * Specifies that the fetch method shall return each row as an array indexed + * by column name as returned in the corresponding result set. If the result + * set contains multiple columns with the same name, + * PDO::FETCH_ASSOC returns + * only a single value per column name. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-assoc + */ + public const FETCH_ASSOC = 2; + + /** + * Specifies that the fetch method shall return each row as an array indexed + * by column number as returned in the corresponding result set, starting at + * column 0. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-num + */ + public const FETCH_NUM = 3; + + /** + * Specifies that the fetch method shall return each row as an array indexed + * by both column name and number as returned in the corresponding result set, + * starting at column 0. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-both + */ + public const FETCH_BOTH = 4; + + /** + * Specifies that the fetch method shall return each row as an object with + * property names that correspond to the column names returned in the result + * set. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-obj + */ + public const FETCH_OBJ = 5; + + /** + * Specifies that the fetch method shall return TRUE and assign the values of + * the columns in the result set to the PHP variables to which they were + * bound with the PDOStatement::bindParam or + * PDOStatement::bindColumn methods. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-bound + */ + public const FETCH_BOUND = 6; + + /** + * Specifies that the fetch method shall return only a single requested + * column from the next row in the result set. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-column + */ + public const FETCH_COLUMN = 7; + + /** + * Specifies that the fetch method shall return a new instance of the + * requested class, mapping the columns to named properties in the class. + * The magic + * __set + * method is called if the property doesn't exist in the requested class + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-class + */ + public const FETCH_CLASS = 8; + + /** + * Specifies that the fetch method shall update an existing instance of the + * requested class, mapping the columns to named properties in the class. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-into + */ + public const FETCH_INTO = 9; + + /** + * Allows completely customize the way data is treated on the fly (only + * valid inside PDOStatement::fetchAll). + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-func + */ + public const FETCH_FUNC = 10; + + /** + * Group return by values. Usually combined with + * PDO::FETCH_COLUMN or + * PDO::FETCH_KEY_PAIR. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-group + */ + public const FETCH_GROUP = 65536; + + /** + * Fetch only the unique values. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-unique + */ + public const FETCH_UNIQUE = 196608; + + /** + * Fetch a two-column result into an array where the first column is a key and the second column + * is the value. + * @since 5.2.3 + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-key-pair + */ + public const FETCH_KEY_PAIR = 12; + + /** + * Determine the class name from the value of first column. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-classtype + */ + public const FETCH_CLASSTYPE = 262144; + + /** + * As PDO::FETCH_INTO but object is provided as a serialized string. + * Available since PHP 5.1.0. Since PHP 5.3.0 the class constructor is never called if this + * flag is set. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-serialize + */ + public const FETCH_SERIALIZE = 524288; + + /** + * Call the constructor before setting properties. + * @since 5.2.0 + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-props-late + */ + public const FETCH_PROPS_LATE = 1048576; + + /** + * Specifies that the fetch method shall return each row as an array indexed + * by column name as returned in the corresponding result set. If the result + * set contains multiple columns with the same name, + * PDO::FETCH_NAMED returns + * an array of values per column name. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-named + */ + public const FETCH_NAMED = 11; + + /** + * If this value is FALSE, PDO attempts to disable autocommit so that the + * connection begins a transaction. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-autocommit + */ + public const ATTR_AUTOCOMMIT = 0; + + /** + * Setting the prefetch size allows you to balance speed against memory + * usage for your application. Not all database/driver combinations support + * setting of the prefetch size. A larger prefetch size results in + * increased performance at the cost of higher memory usage. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-prefetch + */ + public const ATTR_PREFETCH = 1; + + /** + * Sets the timeout value in seconds for communications with the database. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-timeout + */ + public const ATTR_TIMEOUT = 2; + + /** + * @see https://php.net/manual/en/pdo.error-handling.php Errors and error handling + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-errmode + */ + public const ATTR_ERRMODE = 3; + + /** + * This is a read only attribute; it will return information about the + * version of the database server to which PDO is connected. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr- + */ + public const ATTR_SERVER_VERSION = 4; + + /** + * This is a read only attribute; it will return information about the + * version of the client libraries that the PDO driver is using. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-client-version + */ + public const ATTR_CLIENT_VERSION = 5; + + /** + * This is a read only attribute; it will return some meta information about the + * database server to which PDO is connected. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-server-info + */ + public const ATTR_SERVER_INFO = 6; + public const ATTR_CONNECTION_STATUS = 7; + + /** + * Force column names to a specific case specified by the PDO::CASE_* + * constants. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-case + */ + public const ATTR_CASE = 8; + + /** + * Get or set the name to use for a cursor. Most useful when using + * scrollable cursors and positioned updates. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-cursor-name + */ + public const ATTR_CURSOR_NAME = 9; + + /** + * Selects the cursor type. PDO currently supports either + * PDO::CURSOR_FWDONLY and + * PDO::CURSOR_SCROLL. Stick with + * PDO::CURSOR_FWDONLY unless you know that you need a + * scrollable cursor. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-cursor + */ + public const ATTR_CURSOR = 10; + + /** + * Convert empty strings to SQL NULL values on data fetches. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-oracle-nulls + */ + public const ATTR_ORACLE_NULLS = 11; + + /** + * Request a persistent connection, rather than creating a new connection. + * @see https://php.net/manual/en/pdo.connections.php Connections and Connection Management + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-persistent + */ + public const ATTR_PERSISTENT = 12; + + /** + * Sets the class name of which statements are returned as. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-statement-class + */ + public const ATTR_STATEMENT_CLASS = 13; + + /** + * Prepend the containing table name to each column name returned in the + * result set. The table name and column name are separated by a decimal (.) + * character. Support of this attribute is at the driver level; it may not + * be supported by your driver. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-fetch-table-names + */ + public const ATTR_FETCH_TABLE_NAMES = 14; + + /** + * Prepend the containing catalog name to each column name returned in the + * result set. The catalog name and column name are separated by a decimal + * (.) character. Support of this attribute is at the driver level; it may + * not be supported by your driver. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-fetch-catalog-names + */ + public const ATTR_FETCH_CATALOG_NAMES = 15; + + /** + * Returns the name of the driver. + *

    + * using PDO::ATTR_DRIVER_NAME + * + * if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') { + * echo "Running on mysql; doing something mysql specific here\n"; + * } + * + *

    + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-driver-name + */ + public const ATTR_DRIVER_NAME = 16; + + /** + * Forces all values fetched to be treated as strings. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-stringify-fetches + */ + public const ATTR_STRINGIFY_FETCHES = 17; + + /** + * Sets the maximum column name length. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-max-column-len + */ + public const ATTR_MAX_COLUMN_LEN = 18; + + /** + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-emulate-prepares + * @since 5.1.3 + */ + public const ATTR_EMULATE_PREPARES = 20; + + /** + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-default-fetch-mode + * @since 5.2.0 + */ + public const ATTR_DEFAULT_FETCH_MODE = 19; + + /** + * Do not raise an error or exception if an error occurs. The developer is + * expected to explicitly check for errors. This is the default mode. + * @see https://php.net/manual/en/pdo.error-handling.php Errors and Error Handling + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.errmode-silent + */ + public const ERRMODE_SILENT = 0; + + /** + * Issue a PHP E_WARNING message if an error occurs. + * @see https://php.net/manual/en/pdo.error-handling.php Errors and Error Handling + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.errmode-warning + */ + public const ERRMODE_WARNING = 1; + + /** + * Throw a PDOException if an error occurs. + * @see https://php.net/manual/en/pdo.error-handling.php Errors and Error Handling + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.errmode-exception + */ + public const ERRMODE_EXCEPTION = 2; + + /** + * Leave column names as returned by the database driver. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.case-natural + */ + public const CASE_NATURAL = 0; + + /** + * Force column names to lower case. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.case-lower + */ + public const CASE_LOWER = 2; + + /** + * Force column names to upper case. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.case-upper + */ + public const CASE_UPPER = 1; + + /** + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.null-natural + */ + public const NULL_NATURAL = 0; + + /** + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.null-empty-string + */ + public const NULL_EMPTY_STRING = 1; + + /** + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.null-to-string + */ + public const NULL_TO_STRING = 2; + + /** + * Corresponds to SQLSTATE '00000', meaning that the SQL statement was + * successfully issued with no errors or warnings. This constant is for + * your convenience when checking PDO::errorCode or + * PDOStatement::errorCode to determine if an error + * occurred. You will usually know if this is the case by examining the + * return code from the method that raised the error condition anyway. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.err-none + */ + public const ERR_NONE = 00000; + + /** + * Fetch the next row in the result set. Valid only for scrollable cursors. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-next + */ + public const FETCH_ORI_NEXT = 0; + + /** + * Fetch the previous row in the result set. Valid only for scrollable + * cursors. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-prior + */ + public const FETCH_ORI_PRIOR = 1; + + /** + * Fetch the first row in the result set. Valid only for scrollable cursors. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-first + */ + public const FETCH_ORI_FIRST = 2; + + /** + * Fetch the last row in the result set. Valid only for scrollable cursors. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-last + */ + public const FETCH_ORI_LAST = 3; + + /** + * Fetch the requested row by row number from the result set. Valid only + * for scrollable cursors. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-abs + */ + public const FETCH_ORI_ABS = 4; + + /** + * Fetch the requested row by relative position from the current position + * of the cursor in the result set. Valid only for scrollable cursors. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-ori-rel + */ + public const FETCH_ORI_REL = 5; + + /** + * Create a PDOStatement object with a forward-only cursor. This is the + * default cursor choice, as it is the fastest and most common data access + * pattern in PHP. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.cursor-fwdonly + */ + public const CURSOR_FWDONLY = 0; + + /** + * Create a PDOStatement object with a scrollable cursor. Pass the + * PDO::FETCH_ORI_* constants to control the rows fetched from the result set. + * @link https://php.net/manual/en/pdo.constants.php#pdo.constants.cursor-scroll + */ + public const CURSOR_SCROLL = 1; + + /** + * If this attribute is set to TRUE on a + * PDOStatement, the MySQL driver will use the + * buffered versions of the MySQL API. If you're writing portable code, you + * should use PDOStatement::fetchAll instead. + *

    + * Forcing queries to be buffered in mysql + * + * if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') { + * $stmt = $db->prepare('select * from foo', + * array(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true)); + * } else { + * die("my application only works with mysql; I should use \$stmt->fetchAll() instead"); + * } + * + *

    + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-use-buffered-query + */ + public const MYSQL_ATTR_USE_BUFFERED_QUERY = 1000; + + /** + *

    + * Enable LOAD LOCAL INFILE. + *

    + *

    + * Note, this constant can only be used in the driver_options + * array when constructing a new database handle. + *

    + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-local-infile + */ + public const MYSQL_ATTR_LOCAL_INFILE = 1001; + + /** + *

    + * Command to execute when connecting to the MySQL server. Will + * automatically be re-executed when reconnecting. + *

    + *

    + * Note, this constant can only be used in the driver_options + * array when constructing a new database handle. + *

    + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-init-command + */ + public const MYSQL_ATTR_INIT_COMMAND = 1002; + + /** + *

    + * Maximum buffer size. Defaults to 1 MiB. This constant is not supported when + * compiled against mysqlnd. + *

    + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-max-buffer-size + */ + public const MYSQL_ATTR_MAX_BUFFER_SIZE = 1005; + + /** + *

    + * Read options from the named option file instead of from + * my.cnf. This option is not available if + * mysqlnd is used, because mysqlnd does not read the mysql + * configuration files. + *

    + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-read-default-file + */ + public const MYSQL_ATTR_READ_DEFAULT_FILE = 1003; + + /** + *

    + * Read options from the named group from my.cnf or the + * file specified with MYSQL_READ_DEFAULT_FILE. This option + * is not available if mysqlnd is used, because mysqlnd does not read the mysql + * configuration files. + *

    + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-read-default-group + */ + public const MYSQL_ATTR_READ_DEFAULT_GROUP = 1004; + + /** + *

    + * Enable network communication compression. This is not supported when + * compiled against mysqlnd. + *

    + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-compress + */ + public const MYSQL_ATTR_COMPRESS = 1003; + + /** + *

    + * Perform direct queries, don't use prepared statements. + *

    + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-direct-query + */ + public const MYSQL_ATTR_DIRECT_QUERY = 1004; + + /** + *

    + * Return the number of found (matched) rows, not the + * number of changed rows. + *

    + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-found-rows + */ + public const MYSQL_ATTR_FOUND_ROWS = 1005; + + /** + *

    + * Permit spaces after function names. Makes all functions + * names reserved words. + *

    + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-ignore-space + */ + public const MYSQL_ATTR_IGNORE_SPACE = 1006; + + public const MYSQL_ATTR_SERVER_PUBLIC_KEY = 1012; + + /** + *

    + * The file path to the SSL key. + *

    + * @since 5.3.7 + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-key + */ + public const MYSQL_ATTR_SSL_KEY = 1007; + + /** + *

    + * The file path to the SSL certificate. + *

    + * @since 5.3.7 + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-cert + */ + public const MYSQL_ATTR_SSL_CERT = 1008; + + /** + *

    + * The file path to the SSL certificate authority. + *

    + * @since 5.3.7 + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-ca + */ + public const MYSQL_ATTR_SSL_CA = 1009; + + /** + *

    + * The file path to the directory that contains the trusted SSL + * CA certificates, which are stored in PEM format. + *

    + * @since 5.3.7 + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-capath + */ + public const MYSQL_ATTR_SSL_CAPATH = 1010; + + /** + *

    + * A list of one or more permissible ciphers to use for SSL encryption, + * in a format understood by OpenSSL. + * For example: DHE-RSA-AES256-SHA:AES128-SHA + *

    + * @since 5.3.7 + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-cipher + */ + public const MYSQL_ATTR_SSL_CIPHER = 1011; + + /** + *

    + * Disables multi query execution in both {@see PDO::prepare()} and {@see PDO::query()} when set to FALSE. + *

    + *

    + * Note, this constant can only be used in the driver_options array when constructing a new database handle. + *

    + * @since 5.5.21 + * @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-multi-statements + */ + public const MYSQL_ATTR_MULTI_STATEMENTS = 1013; + + /** + *

    + * Disables SSL peer verification when set to FALSE. + *

    + * @since 7.0.18 + * @since 7.1.4 + * @link https://bugs.php.net/bug.php?id=71003 + */ + public const MYSQL_ATTR_SSL_VERIFY_SERVER_CERT = 1014; + + #[Deprecated("Use PDO::ATTR_EMULATE_PREPARES instead")] + public const PGSQL_ASSOC = 1; + public const PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT = 1000; + + /** + * @since 5.6 + */ + public const PGSQL_ATTR_DISABLE_PREPARES = 1000; + public const PGSQL_BAD_RESPONSE = 5; + public const PGSQL_BOTH = 3; + public const PGSQL_TRANSACTION_IDLE = 0; + public const PGSQL_TRANSACTION_ACTIVE = 1; + public const PGSQL_TRANSACTION_INTRANS = 2; + public const PGSQL_TRANSACTION_INERROR = 3; + public const PGSQL_TRANSACTION_UNKNOWN = 4; + + public const PGSQL_CONNECT_ASYNC = 4; + public const PGSQL_CONNECT_FORCE_NEW = 2; + public const PGSQL_CONNECTION_AUTH_OK = 5; + public const PGSQL_CONNECTION_AWAITING_RESPONSE = 4; + public const PGSQL_CONNECTION_BAD = 1; + public const PGSQL_CONNECTION_OK = 0; + public const PGSQL_CONNECTION_MADE = 3; + public const PGSQL_CONNECTION_SETENV = 6; + public const PGSQL_CONNECTION_SSL_STARTUP = 7; + public const PGSQL_CONNECTION_STARTED = 2; + public const PGSQL_COMMAND_OK = 1; + public const PGSQL_CONV_FORCE_NULL = 4; + public const PGSQL_CONV_IGNORE_DEFAULT = 2; + public const PGSQL_CONV_IGNORE_NOT_NULL = 8; + public const PGSQL_COPY_IN = 4; + public const PGSQL_COPY_OUT = 3; + public const PGSQL_DIAG_CONTEXT = 87; + public const PGSQL_DIAG_INTERNAL_POSITION = 112; + public const PGSQL_DIAG_INTERNAL_QUERY = 113; + public const PGSQL_DIAG_MESSAGE_DETAIL = 68; + public const PGSQL_DIAG_MESSAGE_HINT = 72; + public const PGSQL_DIAG_MESSAGE_PRIMARY = 77; + public const PGSQL_DIAG_SEVERITY = 83; + public const PGSQL_DIAG_SOURCE_FILE = 70; + public const PGSQL_DIAG_SOURCE_FUNCTION = 82; + public const PGSQL_DIAG_SOURCE_LINE = 76; + public const PGSQL_DIAG_SQLSTATE = 67; + public const PGSQL_DIAG_STATEMENT_POSITION = 80; + public const PGSQL_DML_ASYNC = 1024; + public const PGSQL_DML_EXEC = 512; + public const PGSQL_DML_NO_CONV = 256; + public const PGSQL_DML_STRING = 2048; + public const PGSQL_DML_ESCAPE = 4096; + public const PGSQL_EMPTY_QUERY = 0; + public const PGSQL_ERRORS_DEFAULT = 1; + public const PGSQL_ERRORS_TERSE = 0; + public const PGSQL_ERRORS_VERBOSE = 2; + public const PGSQL_FATAL_ERROR = 7; + public const PGSQL_NONFATAL_ERROR = 6; + public const PGSQL_NOTICE_ALL = 2; + public const PGSQL_NOTICE_CLEAR = 3; + public const PGSQL_NOTICE_LAST = 1; + public const PGSQL_NUM = 2; + public const PGSQL_POLLING_ACTIVE = 4; + public const PGSQL_POLLING_FAILED = 0; + public const PGSQL_POLLING_OK = 3; + public const PGSQL_POLLING_READING = 1; + public const PGSQL_POLLING_WRITING = 2; + public const PGSQL_SEEK_CUR = 1; + public const PGSQL_SEEK_END = 2; + public const PGSQL_SEEK_SET = 0; + public const PGSQL_STATUS_LONG = 1; + public const PGSQL_STATUS_STRING = 2; + public const PGSQL_TUPLES_OK = 2; + public const SQLSRV_TXN_READ_UNCOMMITTED = "READ_UNCOMMITTED"; + public const SQLSRV_TXN_READ_COMMITTED = "READ_COMMITTED"; + public const SQLSRV_TXN_REPEATABLE_READ = "REPEATABLE_READ"; + public const SQLSRV_TXN_SNAPSHOT = "SNAPSHOT"; + public const SQLSRV_TXN_SERIALIZABLE = "SERIALIZABLE"; + public const SQLSRV_ENCODING_BINARY = 2; + public const SQLSRV_ENCODING_SYSTEM = 3; + public const SQLSRV_ENCODING_UTF8 = 65001; + public const SQLSRV_ENCODING_DEFAULT = 1; + public const SQLSRV_ATTR_ENCODING = 1000; + public const SQLSRV_ATTR_QUERY_TIMEOUT = 1001; + public const SQLSRV_ATTR_DIRECT_QUERY = 1002; + public const SQLSRV_ATTR_CURSOR_SCROLL_TYPE = 1003; + public const SQLSRV_ATTR_CLIENT_BUFFER_MAX_KB_SIZE = 1004; + public const SQLSRV_ATTR_FETCHES_NUMERIC_TYPE = 1005; + public const SQLSRV_PARAM_OUT_DEFAULT_SIZE = -1; + public const SQLSRV_CURSOR_KEYSET = 1; + public const SQLSRV_CURSOR_DYNAMIC = 2; + public const SQLSRV_CURSOR_STATIC = 3; + public const SQLSRV_CURSOR_BUFFERED = 42; + + /** + * @since 7.4 + */ + public const SQLITE_ATTR_READONLY_STATEMENT = 1001; + /** + * @since 7.4 + */ + public const SQLITE_ATTR_EXTENDED_RESULT_CODES = 1002; + + /** + * Provides a way to specify the action on the database session. + * @since 7.2.16 + * @since 7.3.3 + */ + public const OCI_ATTR_ACTION = 1000; + + /** + * Provides a way to specify the client info on the database session. + * @since 7.2.16 + * @since 7.3.3 + */ + public const OCI_ATTR_CLIENT_INFO = 1001; + + /** + * Provides a way to specify the client identifier on the database session. + * @since 7.2.16 + * @since 7.3.3 + */ + public const OCI_ATTR_CLIENT_IDENTIFIER = 1002; + + /** + * Provides a way to specify the module on the database session. + * @since 7.2.16 + * @since 7.3.3 + */ + public const OCI_ATTR_MODULE = 1003; + + /** + * The number of milliseconds to wait for individual round trips to the database to complete before timing out. + * @since 8.0 + */ + public const OCI_ATTR_CALL_TIMEOUT = 1004; + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Creates a PDO instance representing a connection to a database + * @link https://php.net/manual/en/pdo.construct.php + * @param string $dsn + * @param string $username [optional] + * @param string $password [optional] + * @param array $options [optional] + * @throws PDOException if the attempt to connect to the requested database fails. + */ + public function __construct($dsn, $username = null, $password = null, $options = null) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Prepares a statement for execution and returns a statement object + * @link https://php.net/manual/en/pdo.prepare.php + * @param string $query

    + * This must be a valid SQL statement for the target database server. + *

    + * @param array $options [optional]

    + * This array holds one or more key=>value pairs to set + * attribute values for the PDOStatement object that this method + * returns. You would most commonly use this to set the + * PDO::ATTR_CURSOR value to + * PDO::CURSOR_SCROLL to request a scrollable cursor. + * Some drivers have driver specific options that may be set at + * prepare-time. + *

    + * @return PDOStatement|false If the database server successfully prepares the statement, + * PDO::prepare returns a + * PDOStatement object. + * If the database server cannot successfully prepare the statement, + * PDO::prepare returns FALSE or emits + * PDOException (depending on error handling). + *

    + *

    + * Emulated prepared statements does not communicate with the database server + * so PDO::prepare does not check the statement. + */ + public function prepare($query, array $options = []) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Initiates a transaction + *

    + * Turns off autocommit mode. While autocommit mode is turned off, + * changes made to the database via the PDO object instance are not committed + * until you end the transaction by calling {@link PDO::commit()}. + * Calling {@link PDO::rollBack()} will roll back all changes to the database and + * return the connection to autocommit mode. + *

    + *

    + * Some databases, including MySQL, automatically issue an implicit COMMIT + * when a database definition language (DDL) statement + * such as DROP TABLE or CREATE TABLE is issued within a transaction. + * The implicit COMMIT will prevent you from rolling back any other changes + * within the transaction boundary. + *

    + * @link https://php.net/manual/en/pdo.begintransaction.php + * @return bool TRUE on success or FALSE on failure. + * @throws PDOException If there is already a transaction started or + * the driver does not support transactions
    + * Note: An exception is raised even when the PDO::ATTR_ERRMODE + * attribute is not PDO::ERRMODE_EXCEPTION. + */ + public function beginTransaction() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Commits a transaction + * @link https://php.net/manual/en/pdo.commit.php + * @return bool TRUE on success or FALSE on failure. + * @throws PDOException if there is no active transaction. + */ + public function commit() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Rolls back a transaction + * @link https://php.net/manual/en/pdo.rollback.php + * @return bool TRUE on success or FALSE on failure. + * @throws PDOException if there is no active transaction. + */ + public function rollBack() {} + + /** + * (PHP 5 >= 5.3.3, Bundled pdo_pgsql, PHP 7)
    + * Checks if inside a transaction + * @link https://php.net/manual/en/pdo.intransaction.php + * @return bool TRUE if a transaction is currently active, and FALSE if not. + */ + public function inTransaction() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Set an attribute + * @link https://php.net/manual/en/pdo.setattribute.php + * @param int $attribute + * @param mixed $value + * @return bool TRUE on success or FALSE on failure. + */ + public function setAttribute($attribute, $value) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Execute an SQL statement and return the number of affected rows + * @link https://php.net/manual/en/pdo.exec.php + * @param string $statement

    + * The SQL statement to prepare and execute. + *

    + *

    + * Data inside the query should be properly escaped. + *

    + * @return int|false PDO::exec returns the number of rows that were modified + * or deleted by the SQL statement you issued. If no rows were affected, + * PDO::exec returns 0. + *

    + * This function may + * return Boolean FALSE, but may also return a non-Boolean value which + * evaluates to FALSE. Please read the section on Booleans for more + * information. Use the === + * operator for testing the return value of this + * function. + *

    + * The following example incorrectly relies on the return value of + * PDO::exec, wherein a statement that affected 0 rows + * results in a call to die: + * + * $db->exec() or die(print_r($db->errorInfo(), true)); + * + */ + public function exec($statement) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    + * Executes an SQL statement, returning a result set as a PDOStatement object + * @link https://php.net/manual/en/pdo.query.php + * @param string $statement

    + * The SQL statement to prepare and execute. + *

    + *

    + * Data inside the query should be properly escaped. + *

    + * @param int $mode

    + * The fetch mode must be one of the PDO::FETCH_* constants. + *

    + * @param mixed $arg3

    + * The second and following parameters are the same as the parameters for PDOStatement::setFetchMode. + *

    + * @param array $ctorargs [optional]

    + * Arguments of custom class constructor when the mode + * parameter is set to PDO::FETCH_CLASS. + *

    + * @return PDOStatement|false PDO::query returns a PDOStatement object, or FALSE + * on failure. + * @see PDOStatement::setFetchMode For a full description of the second and following parameters. + */ + #[PhpStormStubsElementAvailable(to: '7.4')] + public function query($statement, $mode = PDO::ATTR_DEFAULT_FETCH_MODE, $arg3 = null, array $ctorargs = []) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    + * Executes an SQL statement, returning a result set as a PDOStatement object + * @link https://php.net/manual/en/pdo.query.php + * @param string $statement

    + * The SQL statement to prepare and execute. + *

    + *

    + * Data inside the query should be properly escaped. + *

    + * @param int $mode

    + * The fetch mode must be one of the PDO::FETCH_* constants. + *

    + * @param mixed $fetch_mode_args

    + * Arguments of custom class constructor when the mode + * parameter is set to PDO::FETCH_CLASS. + *

    + * @return PDOStatement|false PDO::query returns a PDOStatement object, or FALSE + * on failure. + * @see PDOStatement::setFetchMode For a full description of the second and following parameters. + */ + #[PhpStormStubsElementAvailable('8.0')] + public function query($statement, $mode = PDO::ATTR_DEFAULT_FETCH_MODE, ...$fetch_mode_args) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Returns the ID of the last inserted row or sequence value + * @link https://php.net/manual/en/pdo.lastinsertid.php + * @param string $name [optional]

    + * Name of the sequence object from which the ID should be returned. + *

    + * @return string If a sequence name was not specified for the name + * parameter, PDO::lastInsertId returns a + * string representing the row ID of the last row that was inserted into + * the database. + *

    + *

    + * If a sequence name was specified for the name + * parameter, PDO::lastInsertId returns a + * string representing the last value retrieved from the specified sequence + * object. + *

    + *

    + * If the PDO driver does not support this capability, + * PDO::lastInsertId triggers an + * IM001 SQLSTATE. + */ + public function lastInsertId($name = null) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Fetch the SQLSTATE associated with the last operation on the database handle + * @link https://php.net/manual/en/pdo.errorcode.php + * @return mixed an SQLSTATE, a five characters alphanumeric identifier defined in + * the ANSI SQL-92 standard. Briefly, an SQLSTATE consists of a + * two characters class value followed by a three characters subclass value. A + * class value of 01 indicates a warning and is accompanied by a return code + * of SQL_SUCCESS_WITH_INFO. Class values other than '01', except for the + * class 'IM', indicate an error. The class 'IM' is specific to warnings + * and errors that derive from the implementation of PDO (or perhaps ODBC, + * if you're using the ODBC driver) itself. The subclass value '000' in any + * class indicates that there is no subclass for that SQLSTATE. + *

    + *

    + * PDO::errorCode only retrieves error codes for operations + * performed directly on the database handle. If you create a PDOStatement + * object through PDO::prepare or + * PDO::query and invoke an error on the statement + * handle, PDO::errorCode will not reflect that error. + * You must call PDOStatement::errorCode to return the error + * code for an operation performed on a particular statement handle. + *

    + *

    + * Returns NULL if no operation has been run on the database handle. + */ + public function errorCode() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Fetch extended error information associated with the last operation on the database handle + * @link https://php.net/manual/en/pdo.errorinfo.php + * @return array PDO::errorInfo returns an array of error information + * about the last operation performed by this database handle. The array + * consists of the following fields: + * + * Element + * Information + * + * + * 0 + * SQLSTATE error code (a five characters alphanumeric identifier defined + * in the ANSI SQL standard). + * + * + * 1 + * Driver-specific error code. + * + * + * 2 + * Driver-specific error message. + * + *

    + *

    + * If the SQLSTATE error code is not set or there is no driver-specific + * error, the elements following element 0 will be set to NULL. + *

    + *

    + * PDO::errorInfo only retrieves error information for + * operations performed directly on the database handle. If you create a + * PDOStatement object through PDO::prepare or + * PDO::query and invoke an error on the statement + * handle, PDO::errorInfo will not reflect the error + * from the statement handle. You must call + * PDOStatement::errorInfo to return the error + * information for an operation performed on a particular statement handle. + */ + #[ArrayShape([ + 0 => "string", + 1 => "int", + 2 => "string", + ])] + public function errorInfo() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    + * Retrieve a database connection attribute + * @link https://php.net/manual/en/pdo.getattribute.php + * @param int $attribute

    + * One of the PDO::ATTR_* constants. The constants that + * apply to database connections are as follows: + * PDO::ATTR_AUTOCOMMIT + * PDO::ATTR_CASE + * PDO::ATTR_CLIENT_VERSION + * PDO::ATTR_CONNECTION_STATUS + * PDO::ATTR_DRIVER_NAME + * PDO::ATTR_ERRMODE + * PDO::ATTR_ORACLE_NULLS + * PDO::ATTR_PERSISTENT + * PDO::ATTR_PREFETCH + * PDO::ATTR_SERVER_INFO + * PDO::ATTR_SERVER_VERSION + * PDO::ATTR_TIMEOUT + *

    + * @return mixed A successful call returns the value of the requested PDO attribute. + * An unsuccessful call returns null. + */ + public function getAttribute($attribute) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.1)
    + * Quotes a string for use in a query. + * @link https://php.net/manual/en/pdo.quote.php + * @param string $string

    + * The string to be quoted. + *

    + * @param int $type [optional]

    + * Provides a data type hint for drivers that have alternate quoting styles. + *

    + * @return string|false a quoted string that is theoretically safe to pass into an + * SQL statement. Returns FALSE if the driver does not support quoting in + * this way. + */ + public function quote($string, $type = PDO::PARAM_STR) {} + + final public function __wakeup() {} + + final public function __sleep() {} + + /** + * (PHP 5 >= 5.1.3, PHP 7, PECL pdo >= 1.0.3)
    + * Return an array of available PDO drivers + * @link https://php.net/manual/en/pdo.getavailabledrivers.php + * @return array PDO::getAvailableDrivers returns an array of PDO driver names. If + * no drivers are available, it returns an empty array. + */ + public static function getAvailableDrivers() {} /** * (PHP 5 >= 5.1.0, PHP 7, PECL pdo_sqlite >= 1.0.0)
    @@ -1248,436 +1249,434 @@ public function sqliteCreateFunction($function_name, $callback, $num_args = -1, */ class PDOStatement implements IteratorAggregate { - /** - * @var string - */ - public $queryString; - - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Executes a prepared statement - * @link https://php.net/manual/en/pdostatement.execute.php - * @param array $params [optional]

    - * An array of values with as many elements as there are bound - * parameters in the SQL statement being executed. - * All values are treated as PDO::PARAM_STR. - *

    - *

    - * You cannot bind multiple values to a single parameter; for example, - * you cannot bind two values to a single named parameter in an IN() - * clause. - *

    - *

    - * You cannot bind more values than specified; if more keys exist in - * input_parameters than in the SQL specified - * in the PDO::prepare, then the statement will - * fail and an error is emitted. - *

    - * @return bool TRUE on success or FALSE on failure. - * @throws \PDOException On error if PDO::ERRMODE_EXCEPTION option is true. - */ - public function execute ($params = null) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Fetches the next row from a result set - * @link https://php.net/manual/en/pdostatement.fetch.php - * @param int $mode [optional]

    - * Controls how the next row will be returned to the caller. This value - * must be one of the PDO::FETCH_* constants, - * defaulting to value of PDO::ATTR_DEFAULT_FETCH_MODE - * (which defaults to PDO::FETCH_BOTH). - *

    - *

    - * PDO::FETCH_ASSOC: returns an array indexed by column - * name as returned in your result set - *

    - * @param int $cursorOrientation [optional]

    - * For a PDOStatement object representing a scrollable cursor, this - * value determines which row will be returned to the caller. This value - * must be one of the PDO::FETCH_ORI_* constants, - * defaulting to PDO::FETCH_ORI_NEXT. To request a - * scrollable cursor for your PDOStatement object, you must set the - * PDO::ATTR_CURSOR attribute to - * PDO::CURSOR_SCROLL when you prepare the SQL - * statement with PDO::prepare. - *

    - * @param int $cursorOffset [optional] - * @return mixed The return value of this function on success depends on the fetch type. In - * all cases, FALSE is returned on failure. - */ - public function fetch ($mode = PDO::FETCH_BOTH, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Binds a parameter to the specified variable name - * @link https://php.net/manual/en/pdostatement.bindparam.php - * @param mixed $param

    - * Parameter identifier. For a prepared statement using named - * placeholders, this will be a parameter name of the form - * :name. For a prepared statement using - * question mark placeholders, this will be the 1-indexed position of - * the parameter. - *

    - * @param mixed &$var

    - * Name of the PHP variable to bind to the SQL statement parameter. - *

    - * @param int $type [optional]

    - * Explicit data type for the parameter using the PDO::PARAM_* - * constants. - * To return an INOUT parameter from a stored procedure, - * use the bitwise OR operator to set the PDO::PARAM_INPUT_OUTPUT bits - * for the data_type parameter. - *

    - * @param int $maxLength [optional]

    - * Length of the data type. To indicate that a parameter is an OUT - * parameter from a stored procedure, you must explicitly set the - * length. - *

    - * @param mixed $driverOptions [optional]

    - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function bindParam ($param, &$var, $type = PDO::PARAM_STR, $maxLength = null, $driverOptions = null) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Bind a column to a PHP variable - * @link https://php.net/manual/en/pdostatement.bindcolumn.php - * @param mixed $column

    - * Number of the column (1-indexed) or name of the column in the result set. - * If using the column name, be aware that the name should match the - * case of the column, as returned by the driver. - *

    - * @param mixed &$var

    - * Name of the PHP variable to which the column will be bound. - *

    - * @param int $type [optional]

    - * Data type of the parameter, specified by the PDO::PARAM_* constants. - *

    - * @param int $maxLength [optional]

    - * A hint for pre-allocation. - *

    - * @param mixed $driverOptions [optional]

    - * Optional parameter(s) for the driver. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function bindColumn ($column, &$var, $type = null, $maxLength = null, $driverOptions = null) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 1.0.0)
    - * Binds a value to a parameter - * @link https://php.net/manual/en/pdostatement.bindvalue.php - * @param mixed $param

    - * Parameter identifier. For a prepared statement using named - * placeholders, this will be a parameter name of the form - * :name. For a prepared statement using - * question mark placeholders, this will be the 1-indexed position of - * the parameter. - *

    - * @param mixed $value

    - * The value to bind to the parameter. - *

    - * @param int $type [optional]

    - * Explicit data type for the parameter using the PDO::PARAM_* - * constants. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function bindValue ($param, $value, $type = PDO::PARAM_STR) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Returns the number of rows affected by the last SQL statement - * @link https://php.net/manual/en/pdostatement.rowcount.php - * @return int the number of rows. - */ - public function rowCount () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.9.0)
    - * Returns a single column from the next row of a result set - * @link https://php.net/manual/en/pdostatement.fetchcolumn.php - * @param int $column [optional]

    - * 0-indexed number of the column you wish to retrieve from the row. If - * no value is supplied, PDOStatement::fetchColumn - * fetches the first column. - *

    - * @return mixed Returns a single column from the next row of a result - * set or FALSE if there are no more rows. - *

    - *

    - * There is no way to return another column from the same row if you - * use PDOStatement::fetchColumn to retrieve data. - */ - public function fetchColumn ($column = 0) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Returns an array containing all of the result set rows - * @link https://php.net/manual/en/pdostatement.fetchall.php - * @param int $mode [optional]

    - * Controls the contents of the returned array as documented in - * PDOStatement::fetch. - * Defaults to value of PDO::ATTR_DEFAULT_FETCH_MODE - * (which defaults to PDO::FETCH_BOTH) - *

    - *

    - * To return an array consisting of all values of a single column from - * the result set, specify PDO::FETCH_COLUMN. You - * can specify which column you want with the - * column-index parameter. - *

    - *

    - * To fetch only the unique values of a single column from the result set, - * bitwise-OR PDO::FETCH_COLUMN with - * PDO::FETCH_UNIQUE. - *

    - *

    - * To return an associative array grouped by the values of a specified - * column, bitwise-OR PDO::FETCH_COLUMN with - * PDO::FETCH_GROUP. - *

    - * @param mixed ...$args

    - * Arguments of custom class constructor when the fetch_style - * parameter is PDO::FETCH_CLASS. - *

    - * @return array|false PDOStatement::fetchAll returns an array containing - * all of the remaining rows in the result set. The array represents each - * row as either an array of column values or an object with properties - * corresponding to each column name. - * An empty array is returned if there are zero results to fetch, or false on failure. - *

    - *

    - * Using this method to fetch large result sets will result in a heavy - * demand on system and possibly network resources. Rather than retrieving - * all of the data and manipulating it in PHP, consider using the database - * server to manipulate the result sets. For example, use the WHERE and - * ORDER BY clauses in SQL to restrict results before retrieving and - * processing them with PHP. - */ - public function fetchAll ($mode = PDO::FETCH_BOTH, ...$args) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.4)
    - * Fetches the next row and returns it as an object. - * @link https://php.net/manual/en/pdostatement.fetchobject.php - * @param string $class [optional]

    - * Name of the created class. - *

    - * @param array $ctorArgs [optional]

    - * Elements of this array are passed to the constructor. - *

    - * @return mixed an instance of the required class with property names that - * correspond to the column names or FALSE on failure. - */ - public function fetchObject ($class = "stdClass", array $ctorArgs = array()) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Fetch the SQLSTATE associated with the last operation on the statement handle - * @link https://php.net/manual/en/pdostatement.errorcode.php - * @return string Identical to PDO::errorCode, except that - * PDOStatement::errorCode only retrieves error codes - * for operations performed with PDOStatement objects. - */ - public function errorCode () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    - * Fetch extended error information associated with the last operation on the statement handle - * @link https://php.net/manual/en/pdostatement.errorinfo.php - * @return array PDOStatement::errorInfo returns an array of - * error information about the last operation performed by this - * statement handle. The array consists of the following fields: - * - * Element - * Information - * - * - * 0 - * SQLSTATE error code (a five characters alphanumeric identifier defined - * in the ANSI SQL standard). - * - * - * 1 - * Driver specific error code. - * - * - * 2 - * Driver specific error message. - * - */ - #[ArrayShape([ - 0 => "string", - 1 => "int", - 2 => "string", - ])] - public function errorInfo () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    - * Set a statement attribute - * @link https://php.net/manual/en/pdostatement.setattribute.php - * @param int $attribute - * @param mixed $value - * @return bool TRUE on success or FALSE on failure. - */ - public function setAttribute ($attribute, $value) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    - * Retrieve a statement attribute - * @link https://php.net/manual/en/pdostatement.getattribute.php - * @param int $name - * @return mixed the attribute value. - */ - public function getAttribute ($name) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    - * Returns the number of columns in the result set - * @link https://php.net/manual/en/pdostatement.columncount.php - * @return int the number of columns in the result set represented by the - * PDOStatement object. If there is no result set, - * PDOStatement::columnCount returns 0. - */ - public function columnCount () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    - * Returns metadata for a column in a result set - * @link https://php.net/manual/en/pdostatement.getcolumnmeta.php - * @param int $column

    - * The 0-indexed column in the result set. - *

    - * @return array|false an associative array containing the following values representing - * the metadata for a single column: - *

    - * - * Column metadata - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    NameValue
    native_typeThe PHP native type used to represent the column value.
    driver:decl_typeThe SQL type used to represent the column value in the database. - * If the column in the result set is the result of a function, this value - * is not returned by PDOStatement::getColumnMeta. - *
    flagsAny flags set for this column.
    nameThe name of this column as returned by the database.
    tableThe name of this column's table as returned by the database.
    lenThe length of this column. Normally -1 for - * types other than floating point decimals.
    precisionThe numeric precision of this column. Normally - * 0 for types other than floating point - * decimals.
    pdo_typeThe type of this column as represented by the - * PDO::PARAM_* constants.
    - *

    - * Returns FALSE if the requested column does not exist in the result set, - * or if no result set exists. - */ - public function getColumnMeta ($column) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    - * Set the default fetch mode for this statement - * @link https://php.net/manual/en/pdostatement.setfetchmode.php - * @param int $mode

    - * The fetch mode must be one of the PDO::FETCH_* constants. - *

    - * @param null|string|object $className [optional]

    - * Class name or object - *

    - * @param array $params [optional]

    Constructor arguments.

    - * @return bool TRUE on success or FALSE on failure. - */ - #[PhpStormStubsElementAvailable(to: '7.4')] - public function setFetchMode ($mode, $className = null, array $params = array()) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    - * Set the default fetch mode for this statement - * @link https://php.net/manual/en/pdostatement.setfetchmode.php - * @param int $mode

    - * The fetch mode must be one of the PDO::FETCH_* constants. - *

    - * @param string|object|null $className [optional]

    - * Class name or object - *

    - * @param mixed ...$params

    Constructor arguments.

    - * @return bool TRUE on success or FALSE on failure. - */ - #[PhpStormStubsElementAvailable('8.0')] - public function setFetchMode ($mode, $className = null, ...$params) {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    - * Advances to the next rowset in a multi-rowset statement handle - * @link https://php.net/manual/en/pdostatement.nextrowset.php - * @return bool TRUE on success or FALSE on failure. - */ - public function nextRowset () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.9.0)
    - * Closes the cursor, enabling the statement to be executed again. - * @link https://php.net/manual/en/pdostatement.closecursor.php - * @return bool TRUE on success or FALSE on failure. - */ - public function closeCursor () {} - - /** - * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.9.0)
    - * Dump an SQL prepared command - * @link https://php.net/manual/en/pdostatement.debugdumpparams.php - * @return bool No value is returned. - */ - public function debugDumpParams () {} - - final public function __wakeup () {} - - final public function __sleep () {} - - /** - * @since 8.0 - * @return Traversable - */ - public function getIterator(){} -} + /** + * @var string + */ + public $queryString; + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Executes a prepared statement + * @link https://php.net/manual/en/pdostatement.execute.php + * @param array $params [optional]

    + * An array of values with as many elements as there are bound + * parameters in the SQL statement being executed. + * All values are treated as PDO::PARAM_STR. + *

    + *

    + * You cannot bind multiple values to a single parameter; for example, + * you cannot bind two values to a single named parameter in an IN() + * clause. + *

    + *

    + * You cannot bind more values than specified; if more keys exist in + * input_parameters than in the SQL specified + * in the PDO::prepare, then the statement will + * fail and an error is emitted. + *

    + * @return bool TRUE on success or FALSE on failure. + * @throws \PDOException On error if PDO::ERRMODE_EXCEPTION option is true. + */ + public function execute($params = null) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Fetches the next row from a result set + * @link https://php.net/manual/en/pdostatement.fetch.php + * @param int $mode [optional]

    + * Controls how the next row will be returned to the caller. This value + * must be one of the PDO::FETCH_* constants, + * defaulting to value of PDO::ATTR_DEFAULT_FETCH_MODE + * (which defaults to PDO::FETCH_BOTH). + *

    + *

    + * PDO::FETCH_ASSOC: returns an array indexed by column + * name as returned in your result set + *

    + * @param int $cursorOrientation [optional]

    + * For a PDOStatement object representing a scrollable cursor, this + * value determines which row will be returned to the caller. This value + * must be one of the PDO::FETCH_ORI_* constants, + * defaulting to PDO::FETCH_ORI_NEXT. To request a + * scrollable cursor for your PDOStatement object, you must set the + * PDO::ATTR_CURSOR attribute to + * PDO::CURSOR_SCROLL when you prepare the SQL + * statement with PDO::prepare. + *

    + * @param int $cursorOffset [optional] + * @return mixed The return value of this function on success depends on the fetch type. In + * all cases, FALSE is returned on failure. + */ + public function fetch($mode = PDO::FETCH_BOTH, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Binds a parameter to the specified variable name + * @link https://php.net/manual/en/pdostatement.bindparam.php + * @param mixed $param

    + * Parameter identifier. For a prepared statement using named + * placeholders, this will be a parameter name of the form + * :name. For a prepared statement using + * question mark placeholders, this will be the 1-indexed position of + * the parameter. + *

    + * @param mixed &$var

    + * Name of the PHP variable to bind to the SQL statement parameter. + *

    + * @param int $type [optional]

    + * Explicit data type for the parameter using the PDO::PARAM_* + * constants. + * To return an INOUT parameter from a stored procedure, + * use the bitwise OR operator to set the PDO::PARAM_INPUT_OUTPUT bits + * for the data_type parameter. + *

    + * @param int $maxLength [optional]

    + * Length of the data type. To indicate that a parameter is an OUT + * parameter from a stored procedure, you must explicitly set the + * length. + *

    + * @param mixed $driverOptions [optional]

    + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function bindParam($param, &$var, $type = PDO::PARAM_STR, $maxLength = null, $driverOptions = null) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Bind a column to a PHP variable + * @link https://php.net/manual/en/pdostatement.bindcolumn.php + * @param mixed $column

    + * Number of the column (1-indexed) or name of the column in the result set. + * If using the column name, be aware that the name should match the + * case of the column, as returned by the driver. + *

    + * @param mixed &$var

    + * Name of the PHP variable to which the column will be bound. + *

    + * @param int $type [optional]

    + * Data type of the parameter, specified by the PDO::PARAM_* constants. + *

    + * @param int $maxLength [optional]

    + * A hint for pre-allocation. + *

    + * @param mixed $driverOptions [optional]

    + * Optional parameter(s) for the driver. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function bindColumn($column, &$var, $type = null, $maxLength = null, $driverOptions = null) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 1.0.0)
    + * Binds a value to a parameter + * @link https://php.net/manual/en/pdostatement.bindvalue.php + * @param mixed $param

    + * Parameter identifier. For a prepared statement using named + * placeholders, this will be a parameter name of the form + * :name. For a prepared statement using + * question mark placeholders, this will be the 1-indexed position of + * the parameter. + *

    + * @param mixed $value

    + * The value to bind to the parameter. + *

    + * @param int $type [optional]

    + * Explicit data type for the parameter using the PDO::PARAM_* + * constants. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function bindValue($param, $value, $type = PDO::PARAM_STR) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Returns the number of rows affected by the last SQL statement + * @link https://php.net/manual/en/pdostatement.rowcount.php + * @return int the number of rows. + */ + public function rowCount() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.9.0)
    + * Returns a single column from the next row of a result set + * @link https://php.net/manual/en/pdostatement.fetchcolumn.php + * @param int $column [optional]

    + * 0-indexed number of the column you wish to retrieve from the row. If + * no value is supplied, PDOStatement::fetchColumn + * fetches the first column. + *

    + * @return mixed Returns a single column from the next row of a result + * set or FALSE if there are no more rows. + *

    + *

    + * There is no way to return another column from the same row if you + * use PDOStatement::fetchColumn to retrieve data. + */ + public function fetchColumn($column = 0) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Returns an array containing all of the result set rows + * @link https://php.net/manual/en/pdostatement.fetchall.php + * @param int $mode [optional]

    + * Controls the contents of the returned array as documented in + * PDOStatement::fetch. + * Defaults to value of PDO::ATTR_DEFAULT_FETCH_MODE + * (which defaults to PDO::FETCH_BOTH) + *

    + *

    + * To return an array consisting of all values of a single column from + * the result set, specify PDO::FETCH_COLUMN. You + * can specify which column you want with the + * column-index parameter. + *

    + *

    + * To fetch only the unique values of a single column from the result set, + * bitwise-OR PDO::FETCH_COLUMN with + * PDO::FETCH_UNIQUE. + *

    + *

    + * To return an associative array grouped by the values of a specified + * column, bitwise-OR PDO::FETCH_COLUMN with + * PDO::FETCH_GROUP. + *

    + * @param mixed ...$args

    + * Arguments of custom class constructor when the fetch_style + * parameter is PDO::FETCH_CLASS. + *

    + * @return array|false PDOStatement::fetchAll returns an array containing + * all of the remaining rows in the result set. The array represents each + * row as either an array of column values or an object with properties + * corresponding to each column name. + * An empty array is returned if there are zero results to fetch, or false on failure. + *

    + *

    + * Using this method to fetch large result sets will result in a heavy + * demand on system and possibly network resources. Rather than retrieving + * all of the data and manipulating it in PHP, consider using the database + * server to manipulate the result sets. For example, use the WHERE and + * ORDER BY clauses in SQL to restrict results before retrieving and + * processing them with PHP. + */ + public function fetchAll($mode = PDO::FETCH_BOTH, ...$args) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.4)
    + * Fetches the next row and returns it as an object. + * @link https://php.net/manual/en/pdostatement.fetchobject.php + * @param string $class [optional]

    + * Name of the created class. + *

    + * @param array $ctorArgs [optional]

    + * Elements of this array are passed to the constructor. + *

    + * @return mixed an instance of the required class with property names that + * correspond to the column names or FALSE on failure. + */ + public function fetchObject($class = "stdClass", array $ctorArgs = []) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Fetch the SQLSTATE associated with the last operation on the statement handle + * @link https://php.net/manual/en/pdostatement.errorcode.php + * @return string Identical to PDO::errorCode, except that + * PDOStatement::errorCode only retrieves error codes + * for operations performed with PDOStatement objects. + */ + public function errorCode() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)
    + * Fetch extended error information associated with the last operation on the statement handle + * @link https://php.net/manual/en/pdostatement.errorinfo.php + * @return array PDOStatement::errorInfo returns an array of + * error information about the last operation performed by this + * statement handle. The array consists of the following fields: + * + * Element + * Information + * + * + * 0 + * SQLSTATE error code (a five characters alphanumeric identifier defined + * in the ANSI SQL standard). + * + * + * 1 + * Driver specific error code. + * + * + * 2 + * Driver specific error message. + * + */ + #[ArrayShape([ + 0 => "string", + 1 => "int", + 2 => "string", + ])] + public function errorInfo() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    + * Set a statement attribute + * @link https://php.net/manual/en/pdostatement.setattribute.php + * @param int $attribute + * @param mixed $value + * @return bool TRUE on success or FALSE on failure. + */ + public function setAttribute($attribute, $value) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    + * Retrieve a statement attribute + * @link https://php.net/manual/en/pdostatement.getattribute.php + * @param int $name + * @return mixed the attribute value. + */ + public function getAttribute($name) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    + * Returns the number of columns in the result set + * @link https://php.net/manual/en/pdostatement.columncount.php + * @return int the number of columns in the result set represented by the + * PDOStatement object. If there is no result set, + * PDOStatement::columnCount returns 0. + */ + public function columnCount() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    + * Returns metadata for a column in a result set + * @link https://php.net/manual/en/pdostatement.getcolumnmeta.php + * @param int $column

    + * The 0-indexed column in the result set. + *

    + * @return array|false an associative array containing the following values representing + * the metadata for a single column: + *

    + * + * Column metadata + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    NameValue
    native_typeThe PHP native type used to represent the column value.
    driver:decl_typeThe SQL type used to represent the column value in the database. + * If the column in the result set is the result of a function, this value + * is not returned by PDOStatement::getColumnMeta. + *
    flagsAny flags set for this column.
    nameThe name of this column as returned by the database.
    tableThe name of this column's table as returned by the database.
    lenThe length of this column. Normally -1 for + * types other than floating point decimals.
    precisionThe numeric precision of this column. Normally + * 0 for types other than floating point + * decimals.
    pdo_typeThe type of this column as represented by the + * PDO::PARAM_* constants.
    + *

    + * Returns FALSE if the requested column does not exist in the result set, + * or if no result set exists. + */ + public function getColumnMeta($column) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    + * Set the default fetch mode for this statement + * @link https://php.net/manual/en/pdostatement.setfetchmode.php + * @param int $mode

    + * The fetch mode must be one of the PDO::FETCH_* constants. + *

    + * @param null|string|object $className [optional]

    + * Class name or object + *

    + * @param array $params [optional]

    Constructor arguments.

    + * @return bool TRUE on success or FALSE on failure. + */ + #[PhpStormStubsElementAvailable(to: '7.4')] + public function setFetchMode($mode, $className = null, array $params = []) {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    + * Set the default fetch mode for this statement + * @link https://php.net/manual/en/pdostatement.setfetchmode.php + * @param int $mode

    + * The fetch mode must be one of the PDO::FETCH_* constants. + *

    + * @param string|object|null $className [optional]

    + * Class name or object + *

    + * @param mixed ...$params

    Constructor arguments.

    + * @return bool TRUE on success or FALSE on failure. + */ + #[PhpStormStubsElementAvailable('8.0')] + public function setFetchMode($mode, $className = null, ...$params) {} -final class PDORow { + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
    + * Advances to the next rowset in a multi-rowset statement handle + * @link https://php.net/manual/en/pdostatement.nextrowset.php + * @return bool TRUE on success or FALSE on failure. + */ + public function nextRowset() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.9.0)
    + * Closes the cursor, enabling the statement to be executed again. + * @link https://php.net/manual/en/pdostatement.closecursor.php + * @return bool TRUE on success or FALSE on failure. + */ + public function closeCursor() {} + + /** + * (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.9.0)
    + * Dump an SQL prepared command + * @link https://php.net/manual/en/pdostatement.debugdumpparams.php + * @return bool No value is returned. + */ + public function debugDumpParams() {} + + final public function __wakeup() {} + + final public function __sleep() {} + + /** + * @since 8.0 + * @return Traversable + */ + public function getIterator() {} } +final class PDORow {} + /** * (PHP 5 >= 5.1.3, PHP 7, PECL pdo >= 1.0.3)
    * Return an array of available PDO drivers @@ -1686,8 +1685,6 @@ final class PDORow { * no drivers are available, it returns an empty array. */ #[Pure] -function pdo_drivers (): array -{} +function pdo_drivers(): array {} // End of PDO v.1.0.4dev -?> diff --git a/Parle/ErrorInfo.php b/Parle/ErrorInfo.php index 5298dc96a..1389b974c 100644 --- a/Parle/ErrorInfo.php +++ b/Parle/ErrorInfo.php @@ -1,9 +1,7 @@ - * Construct a Phar archive object - * @link https://php.net/manual/en/phar.construct.php - * @param string $filename

    - * Path to an existing Phar archive or to-be-created archive. The file name's - * extension must contain .phar. - *

    - * @param int $flags [optional]

    - * Flags to pass to parent class RecursiveDirectoryIterator. - *

    - * @param string $alias [optional]

    - * Alias with which this Phar archive should be referred to in calls to stream - * functionality. - *

    +class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, SeekableIterator, Countable, ArrayAccess +{ + public const BZ2 = 8192; + public const GZ = 4096; + public const NONE = 0; + public const PHAR = 1; + public const TAR = 2; + public const ZIP = 3; + public const COMPRESSED = 61440; + public const PHP = 0; + public const PHPS = 1; + public const MD5 = 1; + public const OPENSSL = 16; + public const SHA1 = 2; + public const SHA256 = 3; + public const SHA512 = 4; + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Construct a Phar archive object + * @link https://php.net/manual/en/phar.construct.php + * @param string $filename

    + * Path to an existing Phar archive or to-be-created archive. The file name's + * extension must contain .phar. + *

    + * @param int $flags [optional]

    + * Flags to pass to parent class RecursiveDirectoryIterator. + *

    + * @param string $alias [optional]

    + * Alias with which this Phar archive should be referred to in calls to stream + * functionality. + *

    * @throws BadMethodCallException If called twice. * @throws UnexpectedValueException If the phar archive can't be opened. - */ - public function __construct ($filename, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO, $alias = null) {} - - public function __destruct () {} - - /** - * (Unknown)
    - * Add an empty directory to the phar archive - * @link https://php.net/manual/en/phar.addemptydir.php - * @param string $directory

    - * The name of the empty directory to create in the phar archive - *

    - * @return void no return value, exception is thrown on failure. - */ - public function addEmptyDir ($directory) {} - - /** - * (Unknown)
    - * Add a file from the filesystem to the phar archive - * @link https://php.net/manual/en/phar.addfile.php - * @param string $filename

    - * Full or relative path to a file on disk to be added - * to the phar archive. - *

    - * @param string $localName [optional]

    - * Path that the file will be stored in the archive. - *

    - * @return void no return value, exception is thrown on failure. - */ - public function addFile ($filename, $localName = null) {} - - /** - * (Unknown)
    - * Add a file from the filesystem to the phar archive - * @link https://php.net/manual/en/phar.addfromstring.php - * @param string $localName

    - * Path that the file will be stored in the archive. - *

    - * @param string $contents

    - * The file contents to store - *

    - * @return void no return value, exception is thrown on failure. - */ - public function addFromString ($localName, $contents) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Construct a phar archive from the files within a directory. - * @link https://php.net/manual/en/phar.buildfromdirectory.php - * @param string $directory

    - * The full or relative path to the directory that contains all files - * to add to the archive. - *

    - * @param $pattern $regex [optional]

    - * An optional pcre regular expression that is used to filter the - * list of files. Only file paths matching the regular expression - * will be included in the archive. - *

    - * @return array Phar::buildFromDirectory returns an associative array - * mapping internal path of file to the full path of the file on the - * filesystem. - */ - public function buildFromDirectory ($directory, $pattern = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Construct a phar archive from an iterator. - * @link https://php.net/manual/en/phar.buildfromiterator.php - * @param Iterator $iterator

    - * Any iterator that either associatively maps phar file to location or - * returns SplFileInfo objects - *

    - * @param string $baseDirectory [optional]

    - * For iterators that return SplFileInfo objects, the portion of each - * file's full path to remove when adding to the phar archive - *

    - * @return array Phar::buildFromIterator returns an associative array - * mapping internal path of file to the full path of the file on the - * filesystem. - */ - public function buildFromIterator (Iterator $iterator, $baseDirectory = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Compresses all files in the current Phar archive - * @link https://php.net/manual/en/phar.compressfiles.php - * @param int $compression

    - * Compression must be one of Phar::GZ, - * Phar::BZ2 to add compression, or Phar::NONE - * to remove compression. - *

    - * @return void No value is returned. - */ - public function compressFiles ($compression) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Decompresses all files in the current Phar archive - * @link https://php.net/manual/en/phar.decompressfiles.php - * @return bool TRUE on success or FALSE on failure. - */ - public function decompressFiles () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Compresses the entire Phar archive using Gzip or Bzip2 compression - * @link https://php.net/manual/en/phar.compress.php - * @param int $compression

    - * Compression must be one of Phar::GZ, - * Phar::BZ2 to add compression, or Phar::NONE - * to remove compression. - *

    - * @param string $extension [optional]

    - * By default, the extension is .phar.gz - * or .phar.bz2 for compressing phar archives, and - * .phar.tar.gz or .phar.tar.bz2 for - * compressing tar archives. For decompressing, the default file extensions - * are .phar and .phar.tar. - *

    - * @return static a Phar object. - */ - public function compress ($compression, $extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Decompresses the entire Phar archive - * @link https://php.net/manual/en/phar.decompress.php - * @param string $extension [optional]

    - * For decompressing, the default file extensions - * are .phar and .phar.tar. - * Use this parameter to specify another file extension. Be aware - * that all executable phar archives must contain .phar - * in their filename. - *

    - * @return static A Phar object is returned. - */ - public function decompress ($extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Convert a phar archive to another executable phar archive file format - * @link https://php.net/manual/en/phar.converttoexecutable.php - * @param int $format [optional]

    - * This should be one of Phar::PHAR, Phar::TAR, - * or Phar::ZIP. If set to NULL, the existing file format - * will be preserved. - *

    - * @param int $compression [optional]

    - * This should be one of Phar::NONE for no whole-archive - * compression, Phar::GZ for zlib-based compression, and - * Phar::BZ2 for bzip-based compression. - *

    - * @param string $extension [optional]

    - * This parameter is used to override the default file extension for a - * converted archive. Note that all zip- and tar-based phar archives must contain - * .phar in their file extension in order to be processed as a - * phar archive. - *

    - *

    - * If converting to a phar-based archive, the default extensions are - * .phar, .phar.gz, or .phar.bz2 - * depending on the specified compression. For tar-based phar archives, the - * default extensions are .phar.tar, .phar.tar.gz, - * and .phar.tar.bz2. For zip-based phar archives, the - * default extension is .phar.zip. - *

    - * @return Phar The method returns a Phar object on success and throws an - * exception on failure. - */ - public function convertToExecutable ($format = 9021976, $compression = 9021976, $extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Convert a phar archive to a non-executable tar or zip file - * @link https://php.net/manual/en/phar.converttodata.php - * @param int $format [optional]

    - * This should be one of Phar::TAR - * or Phar::ZIP. If set to NULL, the existing file format - * will be preserved. - *

    - * @param int $compression [optional]

    - * This should be one of Phar::NONE for no whole-archive - * compression, Phar::GZ for zlib-based compression, and - * Phar::BZ2 for bzip-based compression. - *

    - * @param string $extension [optional]

    - * This parameter is used to override the default file extension for a - * converted archive. Note that .phar cannot be used - * anywhere in the filename for a non-executable tar or zip archive. - *

    - *

    - * If converting to a tar-based phar archive, the - * default extensions are .tar, .tar.gz, - * and .tar.bz2 depending on specified compression. - * For zip-based archives, the - * default extension is .zip. - *

    - * @return PharData The method returns a PharData object on success and throws an - * exception on failure. - */ - public function convertToData ($format = 9021976, $compression = 9021976, $extension = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Copy a file internal to the phar archive to another new file within the phar - * @link https://php.net/manual/en/phar.copy.php - * @param string $to - * @param string $from - * @return bool returns TRUE on success, but it is safer to encase method call in a - * try/catch block and assume success if no exception is thrown. - */ - public function copy ($to, $from) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns the number of entries (files) in the Phar archive - * @link https://php.net/manual/en/phar.count.php - * @param int $mode [optional] - * @return int The number of files contained within this phar, or 0 (the number zero) - * if none. - */ - public function count ($mode = COUNT_NORMAL) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Delete a file within a phar archive - * @link https://php.net/manual/en/phar.delete.php - * @param string $localName

    - * Path within an archive to the file to delete. - *

    - * @return bool returns TRUE on success, but it is better to check for thrown exception, - * and assume success if none is thrown. - */ - public function delete ($localName) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    - * Deletes the global metadata of the phar - * @link https://php.net/manual/en/phar.delmetadata.php - * @return bool returns TRUE on success, but it is better to check for thrown exception, - * and assume success if none is thrown. - */ - public function delMetadata () {} - - /** - * (Unknown)
    - * Extract the contents of a phar archive to a directory - * @link https://php.net/manual/en/phar.extractto.php - * @param string $directory

    - * Path within an archive to the file to delete. - *

    - * @param string|array|null $files [optional]

    - * The name of a file or directory to extract, or an array of files/directories to extract - *

    - * @param bool $overwrite [optional]

    - * Set to TRUE to enable overwriting existing files - *

    - * @return bool returns TRUE on success, but it is better to check for thrown exception, - * and assume success if none is thrown. - */ - public function extractTo ($directory, $files = null, $overwrite = false) {} + */ + public function __construct($filename, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO, $alias = null) {} + + public function __destruct() {} + + /** + * (Unknown)
    + * Add an empty directory to the phar archive + * @link https://php.net/manual/en/phar.addemptydir.php + * @param string $directory

    + * The name of the empty directory to create in the phar archive + *

    + * @return void no return value, exception is thrown on failure. + */ + public function addEmptyDir($directory) {} + + /** + * (Unknown)
    + * Add a file from the filesystem to the phar archive + * @link https://php.net/manual/en/phar.addfile.php + * @param string $filename

    + * Full or relative path to a file on disk to be added + * to the phar archive. + *

    + * @param string $localName [optional]

    + * Path that the file will be stored in the archive. + *

    + * @return void no return value, exception is thrown on failure. + */ + public function addFile($filename, $localName = null) {} + + /** + * (Unknown)
    + * Add a file from the filesystem to the phar archive + * @link https://php.net/manual/en/phar.addfromstring.php + * @param string $localName

    + * Path that the file will be stored in the archive. + *

    + * @param string $contents

    + * The file contents to store + *

    + * @return void no return value, exception is thrown on failure. + */ + public function addFromString($localName, $contents) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Construct a phar archive from the files within a directory. + * @link https://php.net/manual/en/phar.buildfromdirectory.php + * @param string $directory

    + * The full or relative path to the directory that contains all files + * to add to the archive. + *

    + * @param $pattern $regex [optional]

    + * An optional pcre regular expression that is used to filter the + * list of files. Only file paths matching the regular expression + * will be included in the archive. + *

    + * @return array Phar::buildFromDirectory returns an associative array + * mapping internal path of file to the full path of the file on the + * filesystem. + */ + public function buildFromDirectory($directory, $pattern = null) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Construct a phar archive from an iterator. + * @link https://php.net/manual/en/phar.buildfromiterator.php + * @param Iterator $iterator

    + * Any iterator that either associatively maps phar file to location or + * returns SplFileInfo objects + *

    + * @param string $baseDirectory [optional]

    + * For iterators that return SplFileInfo objects, the portion of each + * file's full path to remove when adding to the phar archive + *

    + * @return array Phar::buildFromIterator returns an associative array + * mapping internal path of file to the full path of the file on the + * filesystem. + */ + public function buildFromIterator(Iterator $iterator, $baseDirectory = null) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Compresses all files in the current Phar archive + * @link https://php.net/manual/en/phar.compressfiles.php + * @param int $compression

    + * Compression must be one of Phar::GZ, + * Phar::BZ2 to add compression, or Phar::NONE + * to remove compression. + *

    + * @return void No value is returned. + */ + public function compressFiles($compression) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Decompresses all files in the current Phar archive + * @link https://php.net/manual/en/phar.decompressfiles.php + * @return bool TRUE on success or FALSE on failure. + */ + public function decompressFiles() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Compresses the entire Phar archive using Gzip or Bzip2 compression + * @link https://php.net/manual/en/phar.compress.php + * @param int $compression

    + * Compression must be one of Phar::GZ, + * Phar::BZ2 to add compression, or Phar::NONE + * to remove compression. + *

    + * @param string $extension [optional]

    + * By default, the extension is .phar.gz + * or .phar.bz2 for compressing phar archives, and + * .phar.tar.gz or .phar.tar.bz2 for + * compressing tar archives. For decompressing, the default file extensions + * are .phar and .phar.tar. + *

    + * @return static a Phar object. + */ + public function compress($compression, $extension = null) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Decompresses the entire Phar archive + * @link https://php.net/manual/en/phar.decompress.php + * @param string $extension [optional]

    + * For decompressing, the default file extensions + * are .phar and .phar.tar. + * Use this parameter to specify another file extension. Be aware + * that all executable phar archives must contain .phar + * in their filename. + *

    + * @return static A Phar object is returned. + */ + public function decompress($extension = null) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Convert a phar archive to another executable phar archive file format + * @link https://php.net/manual/en/phar.converttoexecutable.php + * @param int $format [optional]

    + * This should be one of Phar::PHAR, Phar::TAR, + * or Phar::ZIP. If set to NULL, the existing file format + * will be preserved. + *

    + * @param int $compression [optional]

    + * This should be one of Phar::NONE for no whole-archive + * compression, Phar::GZ for zlib-based compression, and + * Phar::BZ2 for bzip-based compression. + *

    + * @param string $extension [optional]

    + * This parameter is used to override the default file extension for a + * converted archive. Note that all zip- and tar-based phar archives must contain + * .phar in their file extension in order to be processed as a + * phar archive. + *

    + *

    + * If converting to a phar-based archive, the default extensions are + * .phar, .phar.gz, or .phar.bz2 + * depending on the specified compression. For tar-based phar archives, the + * default extensions are .phar.tar, .phar.tar.gz, + * and .phar.tar.bz2. For zip-based phar archives, the + * default extension is .phar.zip. + *

    + * @return Phar The method returns a Phar object on success and throws an + * exception on failure. + */ + public function convertToExecutable($format = 9021976, $compression = 9021976, $extension = null) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Convert a phar archive to a non-executable tar or zip file + * @link https://php.net/manual/en/phar.converttodata.php + * @param int $format [optional]

    + * This should be one of Phar::TAR + * or Phar::ZIP. If set to NULL, the existing file format + * will be preserved. + *

    + * @param int $compression [optional]

    + * This should be one of Phar::NONE for no whole-archive + * compression, Phar::GZ for zlib-based compression, and + * Phar::BZ2 for bzip-based compression. + *

    + * @param string $extension [optional]

    + * This parameter is used to override the default file extension for a + * converted archive. Note that .phar cannot be used + * anywhere in the filename for a non-executable tar or zip archive. + *

    + *

    + * If converting to a tar-based phar archive, the + * default extensions are .tar, .tar.gz, + * and .tar.bz2 depending on specified compression. + * For zip-based archives, the + * default extension is .zip. + *

    + * @return PharData The method returns a PharData object on success and throws an + * exception on failure. + */ + public function convertToData($format = 9021976, $compression = 9021976, $extension = null) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Copy a file internal to the phar archive to another new file within the phar + * @link https://php.net/manual/en/phar.copy.php + * @param string $to + * @param string $from + * @return bool returns TRUE on success, but it is safer to encase method call in a + * try/catch block and assume success if no exception is thrown. + */ + public function copy($to, $from) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns the number of entries (files) in the Phar archive + * @link https://php.net/manual/en/phar.count.php + * @param int $mode [optional] + * @return int The number of files contained within this phar, or 0 (the number zero) + * if none. + */ + public function count($mode = COUNT_NORMAL) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Delete a file within a phar archive + * @link https://php.net/manual/en/phar.delete.php + * @param string $localName

    + * Path within an archive to the file to delete. + *

    + * @return bool returns TRUE on success, but it is better to check for thrown exception, + * and assume success if none is thrown. + */ + public function delete($localName) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    + * Deletes the global metadata of the phar + * @link https://php.net/manual/en/phar.delmetadata.php + * @return bool returns TRUE on success, but it is better to check for thrown exception, + * and assume success if none is thrown. + */ + public function delMetadata() {} + + /** + * (Unknown)
    + * Extract the contents of a phar archive to a directory + * @link https://php.net/manual/en/phar.extractto.php + * @param string $directory

    + * Path within an archive to the file to delete. + *

    + * @param string|array|null $files [optional]

    + * The name of a file or directory to extract, or an array of files/directories to extract + *

    + * @param bool $overwrite [optional]

    + * Set to TRUE to enable overwriting existing files + *

    + * @return bool returns TRUE on success, but it is better to check for thrown exception, + * and assume success if none is thrown. + */ + public function extractTo($directory, $files = null, $overwrite = false) {} /** * @see setAlias * @return string */ - public function getAlias () {} - - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns phar archive meta-data - * @link https://php.net/manual/en/phar.getmetadata.php - * @param array $unserializeOptions [optional] if is set to anything other than the default, - * the resulting metadata won't be cached and this won't return the value from the cache - * @return mixed any PHP variable that can be serialized and is stored as meta-data for the Phar archive, - * or NULL if no meta-data is stored. - */ - public function getMetadata (array $unserializeOptions = []) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Return whether phar was modified - * @link https://php.net/manual/en/phar.getmodified.php - * @return bool TRUE if the phar has been modified since opened, FALSE if not. - */ - public function getModified () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive - * @link https://php.net/manual/en/phar.getsignature.php - * @return array Array with the opened archive's signature in hash key and MD5, - * SHA-1, - * SHA-256, SHA-512, or OpenSSL - * in hash_type. This signature is a hash calculated on the - * entire phar's contents, and may be used to verify the integrity of the archive. - * A valid signature is absolutely required of all executable phar archives if the - * phar.require_hash INI variable - * is set to true. - */ - #[ArrayShape([ - "hash" => "string", - "hash_type" => "string", - ])] - public function getSignature () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Return the PHP loader or bootstrap stub of a Phar archive - * @link https://php.net/manual/en/phar.getstub.php - * @return string a string containing the contents of the bootstrap loader (stub) of - * the current Phar archive. - */ - public function getStub () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Return version info of Phar archive - * @link https://php.net/manual/en/phar.getversion.php - * @return string The opened archive's API version. This is not to be confused with - * the API version that the loaded phar extension will use to create - * new phars. Each Phar archive has the API version hard-coded into - * its manifest. See Phar file format - * documentation for more information. - */ - public function getVersion () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    - * Returns whether phar has global meta-data - * @link https://php.net/manual/en/phar.hasmetadata.php - * @return bool TRUE if meta-data has been set, and FALSE if not. - */ - public function hasMetadata () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Used to determine whether Phar write operations are being buffered, or are flushing directly to disk - * @link https://php.net/manual/en/phar.isbuffering.php - * @return bool TRUE if the write operations are being buffer, FALSE otherwise. - */ - public function isBuffering () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and so on) - * @link https://php.net/manual/en/phar.iscompressed.php - * @return mixed Phar::GZ, Phar::BZ2 or FALSE - */ - public function isCompressed () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Returns true if the phar archive is based on the tar/phar/zip file format depending on the parameter - * @link https://php.net/manual/en/phar.isfileformat.php - * @param int $format

    - * Either Phar::PHAR, Phar::TAR, or - * Phar::ZIP to test for the format of the archive. - *

    - * @return bool TRUE if the phar archive matches the file format requested by the parameter - */ - public function isFileFormat ($format) {} - - /** - * (Unknown)
    - * Returns true if the phar archive can be modified - * @link https://php.net/manual/en/phar.iswritable.php - * @return bool TRUE if the phar archive can be modified - */ - public function isWritable () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * determines whether a file exists in the phar - * @link https://php.net/manual/en/phar.offsetexists.php - * @param string $localName

    - * The filename (relative path) to look for in a Phar. - *

    - * @return bool TRUE if the file exists within the phar, or FALSE if not. - */ - public function offsetExists ($localName) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Gets a PharFileInfo object for a specific file - * @link https://php.net/manual/en/phar.offsetget.php - * @param string $localName

    - * The filename (relative path) to look for in a Phar. - *

    - * @return PharFileInfo A PharFileInfo object is returned that can be used to - * iterate over a file's contents or to retrieve information about the current file. - */ - public function offsetGet ($localName) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * set the contents of an internal file to those of an external file - * @link https://php.net/manual/en/phar.offsetset.php - * @param string $localName

    - * The filename (relative path) to modify in a Phar. - *

    - * @param string $value

    - * Content of the file. - *

    - * @return void No return values. - */ - public function offsetSet ($localName, $value) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * remove a file from a phar - * @link https://php.net/manual/en/phar.offsetunset.php - * @param string $localName

    - * The filename (relative path) to modify in a Phar. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function offsetUnset ($localName) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.2.1)
    - * Set the alias for the Phar archive - * @link https://php.net/manual/en/phar.setalias.php - * @param string $alias

    - * A shorthand string that this archive can be referred to in phar - * stream wrapper access. - *

    - * @return bool - */ - public function setAlias ($alias) {} - - /** - * (Unknown)
    - * Used to set the PHP loader or bootstrap stub of a Phar archive to the default loader - * @link https://php.net/manual/en/phar.setdefaultstub.php - * @param string $index [optional]

    - * Relative path within the phar archive to run if accessed on the command-line - *

    - * @param string $webIndex [optional]

    - * Relative path within the phar archive to run if accessed through a web browser - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setDefaultStub ($index = null, $webIndex = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Sets phar archive meta-data - * @link https://php.net/manual/en/phar.setmetadata.php - * @param mixed $metadata

    - * Any PHP variable containing information to store that describes the phar archive - *

    - * @return void No value is returned. - */ - public function setMetadata ($metadata) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.1.0)
    - * set the signature algorithm for a phar and apply it. - * @link https://php.net/manual/en/phar.setsignaturealgorithm.php - * @param int $algo

    - * One of Phar::MD5, - * Phar::SHA1, Phar::SHA256, - * Phar::SHA512, or Phar::OPENSSL - *

    - * @param string $privateKey [optional]

    - * The contents of an OpenSSL private key, as extracted from a certificate or - * OpenSSL key file: - * - * $private = openssl_get_privatekey(file_get_contents('private.pem')); - * $pkey = ''; - * openssl_pkey_export($private, $pkey); - * $p->setSignatureAlgorithm(Phar::OPENSSL, $pkey); - * - * See phar introduction for instructions on - * naming and placement of the public key file. - *

    - * @return void No value is returned. - */ - public function setSignatureAlgorithm ($algo, $privateKey = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Used to set the PHP loader or bootstrap stub of a Phar archive - * @link https://php.net/manual/en/phar.setstub.php - * @param string $stub

    - * A string or an open stream handle to use as the executable stub for this - * phar archive. - *

    - * @param int $length [optional]

    - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setStub ($stub, $length = -1) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Start buffering Phar write operations, do not modify the Phar object on disk - * @link https://php.net/manual/en/phar.startbuffering.php - * @return void No value is returned. - */ - public function startBuffering () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Stop buffering write requests to the Phar archive, and save changes to disk - * @link https://php.net/manual/en/phar.stopbuffering.php - * @return void No value is returned. - */ - public function stopBuffering () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns the api version - * @link https://php.net/manual/en/phar.apiversion.php - * @return string The API version string as in "1.0.0". - */ - final public static function apiVersion () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns whether phar extension supports compression using either zlib or bzip2 - * @link https://php.net/manual/en/phar.cancompress.php - * @param int $compression [optional]

    - * Either Phar::GZ or Phar::BZ2 can be - * used to test whether compression is possible with a specific compression - * algorithm (zlib or bzip2). - *

    - * @return bool TRUE if compression/decompression is available, FALSE if not. - */ - final public static function canCompress (int $compression = 0) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns whether phar extension supports writing and creating phars - * @link https://php.net/manual/en/phar.canwrite.php - * @return bool TRUE if write access is enabled, FALSE if it is disabled. - */ - final public static function canWrite () {} - - /** - * (Unknown)
    - * Create a phar-file format specific stub - * @link https://php.net/manual/en/phar.createdefaultstub.php - * @param string|null $index [optional] - * @param string|null $webIndex [optional] - * @return string a string containing the contents of a customized bootstrap loader (stub) - * that allows the created Phar archive to work with or without the Phar extension - * enabled. - */ - final public static function createDefaultStub (?string $index = null, ?string $webIndex = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    - * Return array of supported compression algorithms - * @link https://php.net/manual/en/phar.getsupportedcompression.php - * @return string[] an array containing any of "GZ" or - * "BZ2", depending on the availability of - * the zlib extension or the - * bz2 extension. - */ - final public static function getSupportedCompression () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.1.0)
    - * Return array of supported signature types - * @link https://php.net/manual/en/phar.getsupportedsignatures.php - * @return string[] an array containing any of "MD5", "SHA-1", - * "SHA-256", "SHA-512", or "OpenSSL". - */ - final public static function getSupportedSignatures () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * instructs phar to intercept fopen, file_get_contents, opendir, and all of the stat-related functions - * @link https://php.net/manual/en/phar.interceptfilefuncs.php - * @return void - */ - final public static function interceptFileFuncs () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    - * Returns whether the given filename is a valid phar filename - * @link https://php.net/manual/en/phar.isvalidpharfilename.php - * @param string $filename

    - * The name or full path to a phar archive not yet created - *

    - * @param bool $executable [optional]

    - * This parameter determines whether the filename should be treated as - * a phar executable archive, or a data non-executable archive - *

    - * @return bool TRUE if the filename is valid, FALSE if not. - */ - final public static function isValidPharFilename (string $filename, bool $executable = true) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Loads any phar archive with an alias - * @link https://php.net/manual/en/phar.loadphar.php - * @param string $filename

    - * the full or relative path to the phar archive to open - *

    - * @param string|null $alias [optional]

    - * The alias that may be used to refer to the phar archive. Note - * that many phar archives specify an explicit alias inside the - * phar archive, and a PharException will be thrown if - * a new alias is specified in this case. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - final public static function loadPhar (string $filename, ?string $alias = null) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Reads the currently executed file (a phar) and registers its manifest - * @link https://php.net/manual/en/phar.mapphar.php - * @param string|null $alias [optional]

    - * The alias that can be used in phar:// URLs to - * refer to this archive, rather than its full path. - *

    - * @param int $offset [optional]

    - * Unused variable, here for compatibility with PEAR's PHP_Archive. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - final public static function mapPhar (?string $alias = null, int $offset = 0) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Returns the full path on disk or full phar URL to the currently executing Phar archive - * @link https://php.net/manual/en/phar.running.php - * @param bool $returnPhar [optional]

    - * If FALSE, the full path on disk to the phar - * archive is returned. If TRUE, a full phar URL is returned. - *

    - * @return string the filename if valid, empty string otherwise. - */ - final public static function running (bool $returnPhar = true) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Mount an external path or file to a virtual location within the phar archive - * @link https://php.net/manual/en/phar.mount.php - * @param string $pharPath

    - * The internal path within the phar archive to use as the mounted path location. - * This must be a relative path within the phar archive, and must not already exist. - *

    - * @param string $externalPath

    - * A path or URL to an external file or directory to mount within the phar archive - *

    - * @return void No return. PharException is thrown on failure. - */ - final public static function mount (string $pharPath, string $externalPath) {} - - /** - * (Unknown)
    - * Defines a list of up to 4 $_SERVER variables that should be modified for execution - * @link https://php.net/manual/en/phar.mungserver.php - * @param array $variables

    - * an array containing as string indices any of - * REQUEST_URI, PHP_SELF, - * SCRIPT_NAME and SCRIPT_FILENAME. - * Other values trigger an exception, and Phar::mungServer - * is case-sensitive. - *

    - * @return void No return. - */ - final public static function mungServer (array $variables) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Completely remove a phar archive from disk and from memory - * @link https://php.net/manual/en/phar.unlinkarchive.php - * @param string $filename

    - * The path on disk to the phar archive. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - final public static function unlinkArchive (string $filename) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * mapPhar for web-based phars. front controller for web applications - * @link https://php.net/manual/en/phar.webphar.php - * @param null|string $alias [optional]

    - * The alias that can be used in phar:// URLs to - * refer to this archive, rather than its full path. - *

    - * @param string|null $index [optional]

    - * The location within the phar of the directory index. - *

    - * @param null|string $fileNotFoundScript [optional]

    - * The location of the script to run when a file is not found. This - * script should output the proper HTTP 404 headers. - *

    - * @param null|array $mimeTypes [optional]

    - * An array mapping additional file extensions to MIME type. - * If the default mapping is sufficient, pass an empty array. - * By default, these extensions are mapped to these MIME types: - * - * $mimes = array( - * 'phps' => Phar::PHPS, // pass to highlight_file() - * 'c' => 'text/plain', - * 'cc' => 'text/plain', - * 'cpp' => 'text/plain', - * 'c++' => 'text/plain', - * 'dtd' => 'text/plain', - * 'h' => 'text/plain', - * 'log' => 'text/plain', - * 'rng' => 'text/plain', - * 'txt' => 'text/plain', - * 'xsd' => 'text/plain', - * 'php' => Phar::PHP, // parse as PHP - * 'inc' => Phar::PHP, // parse as PHP - * 'avi' => 'video/avi', - * 'bmp' => 'image/bmp', - * 'css' => 'text/css', - * 'gif' => 'image/gif', - * 'htm' => 'text/html', - * 'html' => 'text/html', - * 'htmls' => 'text/html', - * 'ico' => 'image/x-ico', - * 'jpe' => 'image/jpeg', - * 'jpg' => 'image/jpeg', - * 'jpeg' => 'image/jpeg', - * 'js' => 'application/x-javascript', - * 'midi' => 'audio/midi', - * 'mid' => 'audio/midi', - * 'mod' => 'audio/mod', - * 'mov' => 'movie/quicktime', - * 'mp3' => 'audio/mp3', - * 'mpg' => 'video/mpeg', - * 'mpeg' => 'video/mpeg', - * 'pdf' => 'application/pdf', - * 'png' => 'image/png', - * 'swf' => 'application/shockwave-flash', - * 'tif' => 'image/tiff', - * 'tiff' => 'image/tiff', - * 'wav' => 'audio/wav', - * 'xbm' => 'image/xbm', - * 'xml' => 'text/xml', - * ); - * - *

    - * @param null|callable $rewrite [optional]

    - * The rewrites function is passed a string as its only parameter and must return a string or FALSE. - *

    - *

    - * If you are using fast-cgi or cgi then the parameter passed to the function is the value of the - * $_SERVER['PATH_INFO'] variable. Otherwise, the parameter passed to the function is the value - * of the $_SERVER['REQUEST_URI'] variable. - *

    - *

    - * If a string is returned it is used as the internal file path. If FALSE is returned then webPhar() will - * send a HTTP 403 Denied Code. - *

    - * @return void No value is returned. - */ - final public static function webPhar (?string $alias = null, - ?string $index = "index.php", - #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $fileNotFoundScript = null, - array $mimeTypes = null, - ?callable $rewrite = null) {} - - /** - * Returns whether current entry is a directory and not '.' or '..' - * @link https://php.net/manual/en/recursivedirectoryiterator.haschildren.php - * @param bool $allow_links [optional]

    - *

    - * @return bool whether the current entry is a directory, but not '.' or '..' - */ - public function hasChildren ($allow_links = false) {} - - /** - * Returns an iterator for the current entry if it is a directory - * @link https://php.net/manual/en/recursivedirectoryiterator.getchildren.php - * @return mixed The filename, file information, or $this depending on the set flags. - * See the FilesystemIterator - * constants. - */ - public function getChildren () {} - - /** - * Rewinds back to the beginning - * @link https://php.net/manual/en/filesystemiterator.rewind.php - * @return void No value is returned. - */ - public function rewind () {} - - /** - * Move to the next file - * @link https://php.net/manual/en/filesystemiterator.next.php - * @return void No value is returned. - */ - public function next () {} - - /** - * Retrieve the key for the current file - * @link https://php.net/manual/en/filesystemiterator.key.php - * @return string the pathname or filename depending on the set flags. - * See the FilesystemIterator constants. - */ - public function key () {} - - /** - * The current file - * @link https://php.net/manual/en/filesystemiterator.current.php - * @return mixed The filename, file information, or $this depending on the set flags. - * See the FilesystemIterator constants. - */ - public function current () {} - - /** - * Check whether current DirectoryIterator position is a valid file - * @link https://php.net/manual/en/directoryiterator.valid.php - * @return bool TRUE if the position is valid, otherwise FALSE - */ - public function valid () {} - - /** - * Seek to a DirectoryIterator item - * @link https://php.net/manual/en/directoryiterator.seek.php - * @param int $position

    - * The zero-based numeric position to seek to. - *

    - * @return void No value is returned. - */ - public function seek ($position) {} - - public function _bad_state_ex (){} - + public function getAlias() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns phar archive meta-data + * @link https://php.net/manual/en/phar.getmetadata.php + * @param array $unserializeOptions [optional] if is set to anything other than the default, + * the resulting metadata won't be cached and this won't return the value from the cache + * @return mixed any PHP variable that can be serialized and is stored as meta-data for the Phar archive, + * or NULL if no meta-data is stored. + */ + public function getMetadata(array $unserializeOptions = []) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Return whether phar was modified + * @link https://php.net/manual/en/phar.getmodified.php + * @return bool TRUE if the phar has been modified since opened, FALSE if not. + */ + public function getModified() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive + * @link https://php.net/manual/en/phar.getsignature.php + * @return array Array with the opened archive's signature in hash key and MD5, + * SHA-1, + * SHA-256, SHA-512, or OpenSSL + * in hash_type. This signature is a hash calculated on the + * entire phar's contents, and may be used to verify the integrity of the archive. + * A valid signature is absolutely required of all executable phar archives if the + * phar.require_hash INI variable + * is set to true. + */ + #[ArrayShape([ + "hash" => "string", + "hash_type" => "string", + ])] + public function getSignature() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Return the PHP loader or bootstrap stub of a Phar archive + * @link https://php.net/manual/en/phar.getstub.php + * @return string a string containing the contents of the bootstrap loader (stub) of + * the current Phar archive. + */ + public function getStub() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Return version info of Phar archive + * @link https://php.net/manual/en/phar.getversion.php + * @return string The opened archive's API version. This is not to be confused with + * the API version that the loaded phar extension will use to create + * new phars. Each Phar archive has the API version hard-coded into + * its manifest. See Phar file format + * documentation for more information. + */ + public function getVersion() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    + * Returns whether phar has global meta-data + * @link https://php.net/manual/en/phar.hasmetadata.php + * @return bool TRUE if meta-data has been set, and FALSE if not. + */ + public function hasMetadata() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Used to determine whether Phar write operations are being buffered, or are flushing directly to disk + * @link https://php.net/manual/en/phar.isbuffering.php + * @return bool TRUE if the write operations are being buffer, FALSE otherwise. + */ + public function isBuffering() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and so on) + * @link https://php.net/manual/en/phar.iscompressed.php + * @return mixed Phar::GZ, Phar::BZ2 or FALSE + */ + public function isCompressed() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Returns true if the phar archive is based on the tar/phar/zip file format depending on the parameter + * @link https://php.net/manual/en/phar.isfileformat.php + * @param int $format

    + * Either Phar::PHAR, Phar::TAR, or + * Phar::ZIP to test for the format of the archive. + *

    + * @return bool TRUE if the phar archive matches the file format requested by the parameter + */ + public function isFileFormat($format) {} + + /** + * (Unknown)
    + * Returns true if the phar archive can be modified + * @link https://php.net/manual/en/phar.iswritable.php + * @return bool TRUE if the phar archive can be modified + */ + public function isWritable() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * determines whether a file exists in the phar + * @link https://php.net/manual/en/phar.offsetexists.php + * @param string $localName

    + * The filename (relative path) to look for in a Phar. + *

    + * @return bool TRUE if the file exists within the phar, or FALSE if not. + */ + public function offsetExists($localName) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Gets a PharFileInfo object for a specific file + * @link https://php.net/manual/en/phar.offsetget.php + * @param string $localName

    + * The filename (relative path) to look for in a Phar. + *

    + * @return PharFileInfo A PharFileInfo object is returned that can be used to + * iterate over a file's contents or to retrieve information about the current file. + */ + public function offsetGet($localName) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * set the contents of an internal file to those of an external file + * @link https://php.net/manual/en/phar.offsetset.php + * @param string $localName

    + * The filename (relative path) to modify in a Phar. + *

    + * @param string $value

    + * Content of the file. + *

    + * @return void No return values. + */ + public function offsetSet($localName, $value) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * remove a file from a phar + * @link https://php.net/manual/en/phar.offsetunset.php + * @param string $localName

    + * The filename (relative path) to modify in a Phar. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function offsetUnset($localName) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.2.1)
    + * Set the alias for the Phar archive + * @link https://php.net/manual/en/phar.setalias.php + * @param string $alias

    + * A shorthand string that this archive can be referred to in phar + * stream wrapper access. + *

    + * @return bool + */ + public function setAlias($alias) {} + + /** + * (Unknown)
    + * Used to set the PHP loader or bootstrap stub of a Phar archive to the default loader + * @link https://php.net/manual/en/phar.setdefaultstub.php + * @param string $index [optional]

    + * Relative path within the phar archive to run if accessed on the command-line + *

    + * @param string $webIndex [optional]

    + * Relative path within the phar archive to run if accessed through a web browser + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setDefaultStub($index = null, $webIndex = null) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Sets phar archive meta-data + * @link https://php.net/manual/en/phar.setmetadata.php + * @param mixed $metadata

    + * Any PHP variable containing information to store that describes the phar archive + *

    + * @return void No value is returned. + */ + public function setMetadata($metadata) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.1.0)
    + * set the signature algorithm for a phar and apply it. + * @link https://php.net/manual/en/phar.setsignaturealgorithm.php + * @param int $algo

    + * One of Phar::MD5, + * Phar::SHA1, Phar::SHA256, + * Phar::SHA512, or Phar::OPENSSL + *

    + * @param string $privateKey [optional]

    + * The contents of an OpenSSL private key, as extracted from a certificate or + * OpenSSL key file: + * + * $private = openssl_get_privatekey(file_get_contents('private.pem')); + * $pkey = ''; + * openssl_pkey_export($private, $pkey); + * $p->setSignatureAlgorithm(Phar::OPENSSL, $pkey); + * + * See phar introduction for instructions on + * naming and placement of the public key file. + *

    + * @return void No value is returned. + */ + public function setSignatureAlgorithm($algo, $privateKey = null) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Used to set the PHP loader or bootstrap stub of a Phar archive + * @link https://php.net/manual/en/phar.setstub.php + * @param string $stub

    + * A string or an open stream handle to use as the executable stub for this + * phar archive. + *

    + * @param int $length [optional]

    + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setStub($stub, $length = -1) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Start buffering Phar write operations, do not modify the Phar object on disk + * @link https://php.net/manual/en/phar.startbuffering.php + * @return void No value is returned. + */ + public function startBuffering() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Stop buffering write requests to the Phar archive, and save changes to disk + * @link https://php.net/manual/en/phar.stopbuffering.php + * @return void No value is returned. + */ + public function stopBuffering() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns the api version + * @link https://php.net/manual/en/phar.apiversion.php + * @return string The API version string as in "1.0.0". + */ + final public static function apiVersion() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns whether phar extension supports compression using either zlib or bzip2 + * @link https://php.net/manual/en/phar.cancompress.php + * @param int $compression [optional]

    + * Either Phar::GZ or Phar::BZ2 can be + * used to test whether compression is possible with a specific compression + * algorithm (zlib or bzip2). + *

    + * @return bool TRUE if compression/decompression is available, FALSE if not. + */ + final public static function canCompress(int $compression = 0) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns whether phar extension supports writing and creating phars + * @link https://php.net/manual/en/phar.canwrite.php + * @return bool TRUE if write access is enabled, FALSE if it is disabled. + */ + final public static function canWrite() {} + + /** + * (Unknown)
    + * Create a phar-file format specific stub + * @link https://php.net/manual/en/phar.createdefaultstub.php + * @param string|null $index [optional] + * @param string|null $webIndex [optional] + * @return string a string containing the contents of a customized bootstrap loader (stub) + * that allows the created Phar archive to work with or without the Phar extension + * enabled. + */ + final public static function createDefaultStub(?string $index = null, ?string $webIndex = null) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    + * Return array of supported compression algorithms + * @link https://php.net/manual/en/phar.getsupportedcompression.php + * @return string[] an array containing any of "GZ" or + * "BZ2", depending on the availability of + * the zlib extension or the + * bz2 extension. + */ + final public static function getSupportedCompression() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.1.0)
    + * Return array of supported signature types + * @link https://php.net/manual/en/phar.getsupportedsignatures.php + * @return string[] an array containing any of "MD5", "SHA-1", + * "SHA-256", "SHA-512", or "OpenSSL". + */ + final public static function getSupportedSignatures() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * instructs phar to intercept fopen, file_get_contents, opendir, and all of the stat-related functions + * @link https://php.net/manual/en/phar.interceptfilefuncs.php + * @return void + */ + final public static function interceptFileFuncs() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    + * Returns whether the given filename is a valid phar filename + * @link https://php.net/manual/en/phar.isvalidpharfilename.php + * @param string $filename

    + * The name or full path to a phar archive not yet created + *

    + * @param bool $executable [optional]

    + * This parameter determines whether the filename should be treated as + * a phar executable archive, or a data non-executable archive + *

    + * @return bool TRUE if the filename is valid, FALSE if not. + */ + final public static function isValidPharFilename(string $filename, bool $executable = true) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Loads any phar archive with an alias + * @link https://php.net/manual/en/phar.loadphar.php + * @param string $filename

    + * the full or relative path to the phar archive to open + *

    + * @param string|null $alias [optional]

    + * The alias that may be used to refer to the phar archive. Note + * that many phar archives specify an explicit alias inside the + * phar archive, and a PharException will be thrown if + * a new alias is specified in this case. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + final public static function loadPhar(string $filename, ?string $alias = null) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Reads the currently executed file (a phar) and registers its manifest + * @link https://php.net/manual/en/phar.mapphar.php + * @param string|null $alias [optional]

    + * The alias that can be used in phar:// URLs to + * refer to this archive, rather than its full path. + *

    + * @param int $offset [optional]

    + * Unused variable, here for compatibility with PEAR's PHP_Archive. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + final public static function mapPhar(?string $alias = null, int $offset = 0) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Returns the full path on disk or full phar URL to the currently executing Phar archive + * @link https://php.net/manual/en/phar.running.php + * @param bool $returnPhar [optional]

    + * If FALSE, the full path on disk to the phar + * archive is returned. If TRUE, a full phar URL is returned. + *

    + * @return string the filename if valid, empty string otherwise. + */ + final public static function running(bool $returnPhar = true) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Mount an external path or file to a virtual location within the phar archive + * @link https://php.net/manual/en/phar.mount.php + * @param string $pharPath

    + * The internal path within the phar archive to use as the mounted path location. + * This must be a relative path within the phar archive, and must not already exist. + *

    + * @param string $externalPath

    + * A path or URL to an external file or directory to mount within the phar archive + *

    + * @return void No return. PharException is thrown on failure. + */ + final public static function mount(string $pharPath, string $externalPath) {} + + /** + * (Unknown)
    + * Defines a list of up to 4 $_SERVER variables that should be modified for execution + * @link https://php.net/manual/en/phar.mungserver.php + * @param array $variables

    + * an array containing as string indices any of + * REQUEST_URI, PHP_SELF, + * SCRIPT_NAME and SCRIPT_FILENAME. + * Other values trigger an exception, and Phar::mungServer + * is case-sensitive. + *

    + * @return void No return. + */ + final public static function mungServer(array $variables) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Completely remove a phar archive from disk and from memory + * @link https://php.net/manual/en/phar.unlinkarchive.php + * @param string $filename

    + * The path on disk to the phar archive. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + final public static function unlinkArchive(string $filename) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * mapPhar for web-based phars. front controller for web applications + * @link https://php.net/manual/en/phar.webphar.php + * @param null|string $alias [optional]

    + * The alias that can be used in phar:// URLs to + * refer to this archive, rather than its full path. + *

    + * @param string|null $index [optional]

    + * The location within the phar of the directory index. + *

    + * @param null|string $fileNotFoundScript [optional]

    + * The location of the script to run when a file is not found. This + * script should output the proper HTTP 404 headers. + *

    + * @param null|array $mimeTypes [optional]

    + * An array mapping additional file extensions to MIME type. + * If the default mapping is sufficient, pass an empty array. + * By default, these extensions are mapped to these MIME types: + * + * $mimes = array( + * 'phps' => Phar::PHPS, // pass to highlight_file() + * 'c' => 'text/plain', + * 'cc' => 'text/plain', + * 'cpp' => 'text/plain', + * 'c++' => 'text/plain', + * 'dtd' => 'text/plain', + * 'h' => 'text/plain', + * 'log' => 'text/plain', + * 'rng' => 'text/plain', + * 'txt' => 'text/plain', + * 'xsd' => 'text/plain', + * 'php' => Phar::PHP, // parse as PHP + * 'inc' => Phar::PHP, // parse as PHP + * 'avi' => 'video/avi', + * 'bmp' => 'image/bmp', + * 'css' => 'text/css', + * 'gif' => 'image/gif', + * 'htm' => 'text/html', + * 'html' => 'text/html', + * 'htmls' => 'text/html', + * 'ico' => 'image/x-ico', + * 'jpe' => 'image/jpeg', + * 'jpg' => 'image/jpeg', + * 'jpeg' => 'image/jpeg', + * 'js' => 'application/x-javascript', + * 'midi' => 'audio/midi', + * 'mid' => 'audio/midi', + * 'mod' => 'audio/mod', + * 'mov' => 'movie/quicktime', + * 'mp3' => 'audio/mp3', + * 'mpg' => 'video/mpeg', + * 'mpeg' => 'video/mpeg', + * 'pdf' => 'application/pdf', + * 'png' => 'image/png', + * 'swf' => 'application/shockwave-flash', + * 'tif' => 'image/tiff', + * 'tiff' => 'image/tiff', + * 'wav' => 'audio/wav', + * 'xbm' => 'image/xbm', + * 'xml' => 'text/xml', + * ); + * + *

    + * @param null|callable $rewrite [optional]

    + * The rewrites function is passed a string as its only parameter and must return a string or FALSE. + *

    + *

    + * If you are using fast-cgi or cgi then the parameter passed to the function is the value of the + * $_SERVER['PATH_INFO'] variable. Otherwise, the parameter passed to the function is the value + * of the $_SERVER['REQUEST_URI'] variable. + *

    + *

    + * If a string is returned it is used as the internal file path. If FALSE is returned then webPhar() will + * send a HTTP 403 Denied Code. + *

    + * @return void No value is returned. + */ + final public static function webPhar(?string $alias = null, + ?string $index = "index.php", + #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $fileNotFoundScript = null, + array $mimeTypes = null, + ?callable $rewrite = null) {} + + /** + * Returns whether current entry is a directory and not '.' or '..' + * @link https://php.net/manual/en/recursivedirectoryiterator.haschildren.php + * @param bool $allow_links [optional]

    + *

    + * @return bool whether the current entry is a directory, but not '.' or '..' + */ + public function hasChildren($allow_links = false) {} + + /** + * Returns an iterator for the current entry if it is a directory + * @link https://php.net/manual/en/recursivedirectoryiterator.getchildren.php + * @return mixed The filename, file information, or $this depending on the set flags. + * See the FilesystemIterator + * constants. + */ + public function getChildren() {} + + /** + * Rewinds back to the beginning + * @link https://php.net/manual/en/filesystemiterator.rewind.php + * @return void No value is returned. + */ + public function rewind() {} + + /** + * Move to the next file + * @link https://php.net/manual/en/filesystemiterator.next.php + * @return void No value is returned. + */ + public function next() {} + + /** + * Retrieve the key for the current file + * @link https://php.net/manual/en/filesystemiterator.key.php + * @return string the pathname or filename depending on the set flags. + * See the FilesystemIterator constants. + */ + public function key() {} + + /** + * The current file + * @link https://php.net/manual/en/filesystemiterator.current.php + * @return mixed The filename, file information, or $this depending on the set flags. + * See the FilesystemIterator constants. + */ + public function current() {} + + /** + * Check whether current DirectoryIterator position is a valid file + * @link https://php.net/manual/en/directoryiterator.valid.php + * @return bool TRUE if the position is valid, otherwise FALSE + */ + public function valid() {} + + /** + * Seek to a DirectoryIterator item + * @link https://php.net/manual/en/directoryiterator.seek.php + * @param int $position

    + * The zero-based numeric position to seek to. + *

    + * @return void No value is returned. + */ + public function seek($position) {} + + public function _bad_state_ex() {} } /** @@ -893,138 +890,132 @@ public function _bad_state_ex (){} * phar.readonly php.ini setting is 1. * @link https://php.net/manual/en/class.phardata.php */ -class PharData extends Phar { - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Construct a non-executable tar or zip archive object - * @link https://php.net/manual/en/phardata.construct.php - * @param string $filename

    - * Path to an existing tar/zip archive or to-be-created archive - *

    - * @param int $flags [optional]

    - * Flags to pass to Phar parent class - * RecursiveDirectoryIterator. - *

    - * @param string $alias [optional]

    - * Alias with which this Phar archive should be referred to in calls to stream - * functionality. - *

    - * @param int $format [optional]

    - * One of the - * file format constants - * available within the Phar class. - *

    - */ - public function __construct ($filename, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO, $alias = null, $format = Phar::TAR) {} - - /** - * @param string $localName - * @return bool - */ - public function offsetExists ($localName) {} - - /** - * @param string $localName - * @return string - */ - public function offsetGet ($localName) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * set the contents of a file within the tar/zip to those of an external file or string - * @link https://php.net/manual/en/phardata.offsetset.php - * @param string $localName

    - * The filename (relative path) to modify in a tar or zip archive. - *

    - * @param string $value

    - * Content of the file. - *

    - * @return void No return values. - */ - public function offsetSet ($localName, $value) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * remove a file from a tar/zip archive - * @link https://php.net/manual/en/phardata.offsetunset.php - * @param string $localName

    - * The filename (relative path) to modify in the tar/zip archive. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function offsetUnset ($localName) {} - - - /** - * Returns whether current entry is a directory and not '.' or '..' - * @link https://php.net/manual/en/recursivedirectoryiterator.haschildren.php - * @param bool $allow_links [optional]

    - *

    - * @return bool whether the current entry is a directory, but not '.' or '..' - */ - public function hasChildren ($allow_links = false) {} - - /** - * Returns an iterator for the current entry if it is a directory - * @link https://php.net/manual/en/recursivedirectoryiterator.getchildren.php - * @return mixed The filename, file information, or $this depending on the set flags. - * See the FilesystemIterator - * constants. - */ - public function getChildren () {} - - - /** - * Rewinds back to the beginning - * @link https://php.net/manual/en/filesystemiterator.rewind.php - * @return void No value is returned. - */ - public function rewind () {} - - /** - * Move to the next file - * @link https://php.net/manual/en/filesystemiterator.next.php - * @return void No value is returned. - */ - public function next () {} - - /** - * Retrieve the key for the current file - * @link https://php.net/manual/en/filesystemiterator.key.php - * @return string the pathname or filename depending on the set flags. - * See the FilesystemIterator constants. - */ - public function key () {} - - /** - * The current file - * @link https://php.net/manual/en/filesystemiterator.current.php - * @return mixed The filename, file information, or $this depending on the set flags. - * See the FilesystemIterator constants. - */ - public function current () {} - - - - /** - * Check whether current DirectoryIterator position is a valid file - * @link https://php.net/manual/en/directoryiterator.valid.php - * @return bool TRUE if the position is valid, otherwise FALSE - */ - public function valid () {} - - /** - * Seek to a DirectoryIterator item - * @link https://php.net/manual/en/directoryiterator.seek.php - * @param int $position

    - * The zero-based numeric position to seek to. - *

    - * @return void No value is returned. - */ - public function seek ($position) {} - - +class PharData extends Phar +{ + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Construct a non-executable tar or zip archive object + * @link https://php.net/manual/en/phardata.construct.php + * @param string $filename

    + * Path to an existing tar/zip archive or to-be-created archive + *

    + * @param int $flags [optional]

    + * Flags to pass to Phar parent class + * RecursiveDirectoryIterator. + *

    + * @param string $alias [optional]

    + * Alias with which this Phar archive should be referred to in calls to stream + * functionality. + *

    + * @param int $format [optional]

    + * One of the + * file format constants + * available within the Phar class. + *

    + */ + public function __construct($filename, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO, $alias = null, $format = Phar::TAR) {} + + /** + * @param string $localName + * @return bool + */ + public function offsetExists($localName) {} + + /** + * @param string $localName + * @return string + */ + public function offsetGet($localName) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * set the contents of a file within the tar/zip to those of an external file or string + * @link https://php.net/manual/en/phardata.offsetset.php + * @param string $localName

    + * The filename (relative path) to modify in a tar or zip archive. + *

    + * @param string $value

    + * Content of the file. + *

    + * @return void No return values. + */ + public function offsetSet($localName, $value) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * remove a file from a tar/zip archive + * @link https://php.net/manual/en/phardata.offsetunset.php + * @param string $localName

    + * The filename (relative path) to modify in the tar/zip archive. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function offsetUnset($localName) {} + + /** + * Returns whether current entry is a directory and not '.' or '..' + * @link https://php.net/manual/en/recursivedirectoryiterator.haschildren.php + * @param bool $allow_links [optional]

    + *

    + * @return bool whether the current entry is a directory, but not '.' or '..' + */ + public function hasChildren($allow_links = false) {} + + /** + * Returns an iterator for the current entry if it is a directory + * @link https://php.net/manual/en/recursivedirectoryiterator.getchildren.php + * @return mixed The filename, file information, or $this depending on the set flags. + * See the FilesystemIterator + * constants. + */ + public function getChildren() {} + + /** + * Rewinds back to the beginning + * @link https://php.net/manual/en/filesystemiterator.rewind.php + * @return void No value is returned. + */ + public function rewind() {} + + /** + * Move to the next file + * @link https://php.net/manual/en/filesystemiterator.next.php + * @return void No value is returned. + */ + public function next() {} + + /** + * Retrieve the key for the current file + * @link https://php.net/manual/en/filesystemiterator.key.php + * @return string the pathname or filename depending on the set flags. + * See the FilesystemIterator constants. + */ + public function key() {} + + /** + * The current file + * @link https://php.net/manual/en/filesystemiterator.current.php + * @return mixed The filename, file information, or $this depending on the set flags. + * See the FilesystemIterator constants. + */ + public function current() {} + + /** + * Check whether current DirectoryIterator position is a valid file + * @link https://php.net/manual/en/directoryiterator.valid.php + * @return bool TRUE if the position is valid, otherwise FALSE + */ + public function valid() {} + + /** + * Seek to a DirectoryIterator item + * @link https://php.net/manual/en/directoryiterator.seek.php + * @param int $position

    + * The zero-based numeric position to seek to. + *

    + * @return void No value is returned. + */ + public function seek($position) {} } /** @@ -1032,139 +1023,137 @@ public function seek ($position) {} * and attributes of a single file within a phar archive. * @link https://php.net/manual/en/class.pharfileinfo.php */ -class PharFileInfo extends SplFileInfo { - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Construct a Phar entry object - * @link https://php.net/manual/en/pharfileinfo.construct.php - * @param string $filename

    - * The full url to retrieve a file. If you wish to retrieve the information - * for the file my/file.php from the phar boo.phar, - * the entry should be phar://boo.phar/my/file.php. - *

    - */ - public function __construct ($filename) {} - - public function __destruct () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Sets file-specific permission bits - * @link https://php.net/manual/en/pharfileinfo.chmod.php - * @param int $perms

    - * permissions (see chmod) - *

    - * @return void No value is returned. - */ - public function chmod ($perms) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Compresses the current Phar entry with either zlib or bzip2 compression - * @link https://php.net/manual/en/pharfileinfo.compress.php - * @param int $compression - * @return bool TRUE on success or FALSE on failure. - */ - public function compress ($compression) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    - * Decompresses the current Phar entry within the phar - * @link https://php.net/manual/en/pharfileinfo.decompress.php - * @return bool TRUE on success or FALSE on failure. - */ - public function decompress () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    - * Deletes the metadata of the entry - * @link https://php.net/manual/en/pharfileinfo.delmetadata.php - * @return bool TRUE if successful, FALSE if the entry had no metadata. - * As with all functionality that modifies the contents of - * a phar, the phar.readonly INI variable - * must be off in order to succeed if the file is within a Phar - * archive. Files within PharData archives do not have - * this restriction. - */ - public function delMetadata () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns the actual size of the file (with compression) inside the Phar archive - * @link https://php.net/manual/en/pharfileinfo.getcompressedsize.php - * @return int The size in bytes of the file within the Phar archive on disk. - */ - public function getCompressedSize () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns CRC32 code or throws an exception if CRC has not been verified - * @link https://php.net/manual/en/pharfileinfo.getcrc32.php - * @return int The crc32 checksum of the file within the Phar archive. - */ - public function getCRC32 () {} - - public function getContent () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns file-specific meta-data saved with a file - * @link https://php.net/manual/en/pharfileinfo.getmetadata.php - * @param array $unserializeOptions [optional] if is set to anything other than the default, - * the resulting metadata won't be cached and this won't return the value from the cache - * @return mixed any PHP variable that can be serialized and is stored as meta-data for the file, - * or NULL if no meta-data is stored. - */ - public function getMetadata (array $unserializeOptions = []) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns the Phar file entry flags - * @link https://php.net/manual/en/pharfileinfo.getpharflags.php - * @return int The Phar flags (always 0 in the current implementation) - */ - public function getPharFlags () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    - * Returns the metadata of the entry - * @link https://php.net/manual/en/pharfileinfo.hasmetadata.php - * @return bool FALSE if no metadata is set or is NULL, TRUE if metadata is not NULL - */ - public function hasMetadata () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns whether the entry is compressed - * @link https://php.net/manual/en/pharfileinfo.iscompressed.php - * @param int $compression [optional]

    - * One of Phar::GZ or Phar::BZ2, - * defaults to any compression. - *

    - * @return bool TRUE if the file is compressed within the Phar archive, FALSE if not. - */ - public function isCompressed ($compression = 9021976) {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Returns whether file entry has had its CRC verified - * @link https://php.net/manual/en/pharfileinfo.iscrcchecked.php - * @return bool TRUE if the file has had its CRC verified, FALSE if not. - */ - public function isCRCChecked () {} - - /** - * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    - * Sets file-specific meta-data saved with a file - * @link https://php.net/manual/en/pharfileinfo.setmetadata.php - * @param mixed $metadata

    - * Any PHP variable containing information to store alongside a file - *

    - * @return void No value is returned. - */ - public function setMetadata ($metadata) {} - +class PharFileInfo extends SplFileInfo +{ + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Construct a Phar entry object + * @link https://php.net/manual/en/pharfileinfo.construct.php + * @param string $filename

    + * The full url to retrieve a file. If you wish to retrieve the information + * for the file my/file.php from the phar boo.phar, + * the entry should be phar://boo.phar/my/file.php. + *

    + */ + public function __construct($filename) {} + + public function __destruct() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Sets file-specific permission bits + * @link https://php.net/manual/en/pharfileinfo.chmod.php + * @param int $perms

    + * permissions (see chmod) + *

    + * @return void No value is returned. + */ + public function chmod($perms) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Compresses the current Phar entry with either zlib or bzip2 compression + * @link https://php.net/manual/en/pharfileinfo.compress.php + * @param int $compression + * @return bool TRUE on success or FALSE on failure. + */ + public function compress($compression) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 2.0.0)
    + * Decompresses the current Phar entry within the phar + * @link https://php.net/manual/en/pharfileinfo.decompress.php + * @return bool TRUE on success or FALSE on failure. + */ + public function decompress() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    + * Deletes the metadata of the entry + * @link https://php.net/manual/en/pharfileinfo.delmetadata.php + * @return bool TRUE if successful, FALSE if the entry had no metadata. + * As with all functionality that modifies the contents of + * a phar, the phar.readonly INI variable + * must be off in order to succeed if the file is within a Phar + * archive. Files within PharData archives do not have + * this restriction. + */ + public function delMetadata() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns the actual size of the file (with compression) inside the Phar archive + * @link https://php.net/manual/en/pharfileinfo.getcompressedsize.php + * @return int The size in bytes of the file within the Phar archive on disk. + */ + public function getCompressedSize() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns CRC32 code or throws an exception if CRC has not been verified + * @link https://php.net/manual/en/pharfileinfo.getcrc32.php + * @return int The crc32 checksum of the file within the Phar archive. + */ + public function getCRC32() {} + + public function getContent() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns file-specific meta-data saved with a file + * @link https://php.net/manual/en/pharfileinfo.getmetadata.php + * @param array $unserializeOptions [optional] if is set to anything other than the default, + * the resulting metadata won't be cached and this won't return the value from the cache + * @return mixed any PHP variable that can be serialized and is stored as meta-data for the file, + * or NULL if no meta-data is stored. + */ + public function getMetadata(array $unserializeOptions = []) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns the Phar file entry flags + * @link https://php.net/manual/en/pharfileinfo.getpharflags.php + * @return int The Phar flags (always 0 in the current implementation) + */ + public function getPharFlags() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.2.0)
    + * Returns the metadata of the entry + * @link https://php.net/manual/en/pharfileinfo.hasmetadata.php + * @return bool FALSE if no metadata is set or is NULL, TRUE if metadata is not NULL + */ + public function hasMetadata() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns whether the entry is compressed + * @link https://php.net/manual/en/pharfileinfo.iscompressed.php + * @param int $compression [optional]

    + * One of Phar::GZ or Phar::BZ2, + * defaults to any compression. + *

    + * @return bool TRUE if the file is compressed within the Phar archive, FALSE if not. + */ + public function isCompressed($compression = 9021976) {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Returns whether file entry has had its CRC verified + * @link https://php.net/manual/en/pharfileinfo.iscrcchecked.php + * @return bool TRUE if the file has had its CRC verified, FALSE if not. + */ + public function isCRCChecked() {} + + /** + * (PHP >= 5.3.0, PECL phar >= 1.0.0)
    + * Sets file-specific meta-data saved with a file + * @link https://php.net/manual/en/pharfileinfo.setmetadata.php + * @param mixed $metadata

    + * Any PHP variable containing information to store alongside a file + *

    + * @return void No value is returned. + */ + public function setMetadata($metadata) {} } // End of Phar v.2.0.1 -?> diff --git a/Reflection/Reflection.php b/Reflection/Reflection.php index 26e1f1f62..b125de56e 100644 --- a/Reflection/Reflection.php +++ b/Reflection/Reflection.php @@ -16,9 +16,7 @@ class Reflection * @param int $modifiers Bitfield of the modifiers to get. * @return array An array of modifier names. */ - public static function getModifierNames($modifiers) - { - } + public static function getModifierNames($modifiers) {} /** * Exports @@ -32,7 +30,5 @@ public static function getModifierNames($modifiers) * @removed 8.0 */ #[Deprecated(since: '7.4')] - public static function export(Reflector $reflector, $return = false) - { - } + public static function export(Reflector $reflector, $return = false) {} } diff --git a/Reflection/ReflectionAttribute.php b/Reflection/ReflectionAttribute.php index 83d24e952..d06c93371 100644 --- a/Reflection/ReflectionAttribute.php +++ b/Reflection/ReflectionAttribute.php @@ -15,15 +15,13 @@ class ReflectionAttribute * * @since 8.0 */ - const IS_INSTANCEOF = 2; + public const IS_INSTANCEOF = 2; /** * ReflectionAttribute cannot be created explicitly. * @since 8.0 */ - private function __construct() - { - } + private function __construct() {} /** * Gets attribute name @@ -32,9 +30,7 @@ private function __construct() * @since 8.0 */ #[Pure] - public function getName() - { - } + public function getName() {} /** * Returns the target of the attribute as a bit mask format. @@ -43,9 +39,7 @@ public function getName() * @since 8.0 */ #[Pure] - public function getTarget() - { - } + public function getTarget() {} /** * Returns {@see true} if the attribute is repeated. @@ -54,9 +48,7 @@ public function getTarget() * @since 8.0 */ #[Pure] - public function isRepeated() - { - } + public function isRepeated() {} /** * Gets list of passed attribute's arguments. @@ -65,9 +57,7 @@ public function isRepeated() * @since 8.0 */ #[Pure] - public function getArguments() - { - } + public function getArguments() {} /** * Creates a new instance of the attribute with passed arguments @@ -75,9 +65,7 @@ public function getArguments() * @return object * @since 8.0 */ - public function newInstance() - { - } + public function newInstance() {} /** * ReflectionAttribute cannot be cloned @@ -85,7 +73,5 @@ public function newInstance() * @return void * @since 8.0 */ - private function __clone() - { - } + private function __clone() {} } diff --git a/Reflection/ReflectionClass.php b/Reflection/ReflectionClass.php index 37073f19c..50e8783fb 100644 --- a/Reflection/ReflectionClass.php +++ b/Reflection/ReflectionClass.php @@ -22,21 +22,21 @@ class ReflectionClass implements Reflector * * @link https://www.php.net/manual/en/class.reflectionclass.php#reflectionclass.constants.is-implicit-abstract */ - const IS_IMPLICIT_ABSTRACT = 16; + public const IS_IMPLICIT_ABSTRACT = 16; /** * Indicates class that is abstract because of its definition. * * @link https://www.php.net/manual/en/class.reflectionclass.php#reflectionclass.constants.is-explicit-abstract */ - const IS_EXPLICIT_ABSTRACT = 64; + public const IS_EXPLICIT_ABSTRACT = 64; /** * Indicates final class. * * @link https://www.php.net/manual/en/class.reflectionclass.php#reflectionclass.constants.is-final */ - const IS_FINAL = 32; + public const IS_FINAL = 32; /** * Constructs a ReflectionClass @@ -46,9 +46,7 @@ class ReflectionClass implements Reflector * the class to reflect, or an object. * @throws \ReflectionException if the class does not exist. */ - public function __construct($objectOrClass) - { - } + public function __construct($objectOrClass) {} /** * Exports a reflected class @@ -62,9 +60,7 @@ public function __construct($objectOrClass) * @removed 8.0 */ #[Deprecated(since: '7.4')] - public static function export($argument, $return = false) - { - } + public static function export($argument, $return = false) {} /** * Returns the string representation of the ReflectionClass object. @@ -72,9 +68,7 @@ public static function export($argument, $return = false) * @link https://php.net/manual/en/reflectionclass.tostring.php * @return string A string representation of this {@see ReflectionClass} instance. */ - public function __toString() - { - } + public function __toString() {} /** * Gets class name @@ -83,9 +77,7 @@ public function __toString() * @return string The class name. */ #[Pure] - public function getName() - { - } + public function getName() {} /** * Checks if class is defined internally by an extension, or the core @@ -94,9 +86,7 @@ public function getName() * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] - public function isInternal() - { - } + public function isInternal() {} /** * Checks if user defined @@ -105,9 +95,7 @@ public function isInternal() * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] - public function isUserDefined() - { - } + public function isUserDefined() {} /** * Checks if the class is instantiable @@ -116,9 +104,7 @@ public function isUserDefined() * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] - public function isInstantiable() - { - } + public function isInstantiable() {} /** * Returns whether this class is cloneable @@ -128,9 +114,7 @@ public function isInstantiable() * @since 5.4 */ #[Pure] - public function isCloneable() - { - } + public function isCloneable() {} /** * Gets the filename of the file in which the class has been defined @@ -141,9 +125,7 @@ public function isCloneable() * is returned. */ #[Pure] - public function getFileName() - { - } + public function getFileName() {} /** * Gets starting line number @@ -152,9 +134,7 @@ public function getFileName() * @return int The starting line number, as an integer. */ #[Pure] - public function getStartLine() - { - } + public function getStartLine() {} /** * Gets end line @@ -164,9 +144,7 @@ public function getStartLine() * {@see false} if unknown. */ #[Pure] - public function getEndLine() - { - } + public function getEndLine() {} /** * Gets doc comments @@ -175,9 +153,7 @@ public function getEndLine() * @return string|false The doc comment if it exists, otherwise {@see false} */ #[Pure] - public function getDocComment() - { - } + public function getDocComment() {} /** * Gets the constructor of the class @@ -187,9 +163,7 @@ public function getDocComment() * the class' constructor, or {@see null} if the class has no constructor. */ #[Pure] - public function getConstructor() - { - } + public function getConstructor() {} /** * Checks if method is defined @@ -198,9 +172,7 @@ public function getConstructor() * @param string $name Name of the method being checked for. * @return bool Returns {@see true} if it has the method, otherwise {@see false} */ - public function hasMethod($name) - { - } + public function hasMethod($name) {} /** * Gets a ReflectionMethod for a class method. @@ -211,9 +183,7 @@ public function hasMethod($name) * @throws \ReflectionException if the method does not exist. */ #[Pure] - public function getMethod($name) - { - } + public function getMethod($name) {} /** * Gets an array of methods for the class. @@ -225,9 +195,7 @@ public function getMethod($name) * reflecting each method. */ #[Pure] - public function getMethods($filter = null) - { - } + public function getMethods($filter = null) {} /** * Checks if property is defined @@ -236,9 +204,7 @@ public function getMethods($filter = null) * @param string $name Name of the property being checked for. * @return bool Returns {@see true} if it has the property, otherwise {@see false} */ - public function hasProperty($name) - { - } + public function hasProperty($name) {} /** * Gets a ReflectionProperty for a class's property @@ -249,9 +215,7 @@ public function hasProperty($name) * @throws ReflectionException If no property exists by that name. */ #[Pure] - public function getProperty($name) - { - } + public function getProperty($name) {} /** * Gets properties @@ -263,9 +227,7 @@ public function getProperty($name) * @return ReflectionProperty[] */ #[Pure] - public function getProperties($filter = null) - { - } + public function getProperties($filter = null) {} /** * Gets a ReflectionClassConstant for a class's property @@ -276,9 +238,7 @@ public function getProperties($filter = null) * @since 7.1 */ #[Pure] - public function getReflectionConstant(string $name) - { - } + public function getReflectionConstant(string $name) {} /** * Gets class constants @@ -289,9 +249,7 @@ public function getReflectionConstant(string $name) * @since 7.1 */ #[Pure] - public function getReflectionConstants(?int $filter = ReflectionClassConstant::IS_PUBLIC | ReflectionClassConstant::IS_PROTECTED | ReflectionClassConstant::IS_PRIVATE) - { - } + public function getReflectionConstants(?int $filter = ReflectionClassConstant::IS_PUBLIC|ReflectionClassConstant::IS_PROTECTED|ReflectionClassConstant::IS_PRIVATE) {} /** * Checks if constant is defined @@ -300,9 +258,7 @@ public function getReflectionConstants(?int $filter = ReflectionClassConstant::I * @param string $name The name of the constant being checked for. * @return bool Returns {@see true} if the constant is defined, otherwise {@see false} */ - public function hasConstant($name) - { - } + public function hasConstant($name) {} /** * Gets constants @@ -313,9 +269,7 @@ public function hasConstant($name) * the values the value of the constants. */ #[Pure] - public function getConstants($filter = ReflectionClassConstant::IS_PUBLIC | ReflectionClassConstant::IS_PROTECTED | ReflectionClassConstant::IS_PRIVATE) - { - } + public function getConstants($filter = ReflectionClassConstant::IS_PUBLIC|ReflectionClassConstant::IS_PROTECTED|ReflectionClassConstant::IS_PRIVATE) {} /** * Gets defined constant @@ -326,9 +280,7 @@ public function getConstants($filter = ReflectionClassConstant::IS_PUBLIC | Refl * Returns {@see false} if the constant was not found in the class. */ #[Pure] - public function getConstant($name) - { - } + public function getConstant($name) {} /** * Gets the interfaces @@ -338,9 +290,7 @@ public function getConstant($name) * names and the array values as {@see ReflectionClass} objects. */ #[Pure] - public function getInterfaces() - { - } + public function getInterfaces() {} /** * Gets the interface names @@ -349,9 +299,7 @@ public function getInterfaces() * @return string[] A numerical array with interface names as the values. */ #[Pure] - public function getInterfaceNames() - { - } + public function getInterfaceNames() {} /** * Checks if the class is anonymous @@ -361,9 +309,7 @@ public function getInterfaceNames() * @since 7.0 */ #[Pure] - public function isAnonymous() - { - } + public function isAnonymous() {} /** * Checks if the class is an interface @@ -372,9 +318,7 @@ public function isAnonymous() * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] - public function isInterface() - { - } + public function isInterface() {} /** * Returns an array of traits used by this class @@ -386,9 +330,7 @@ public function isInterface() * @since 5.4 */ #[Pure] - public function getTraits() - { - } + public function getTraits() {} /** * Returns an array of names of traits used by this class @@ -399,9 +341,7 @@ public function getTraits() * @since 5.4 */ #[Pure] - public function getTraitNames() - { - } + public function getTraitNames() {} /** * Returns an array of trait aliases @@ -413,9 +353,7 @@ public function getTraitNames() * @since 5.4 */ #[Pure] - public function getTraitAliases() - { - } + public function getTraitAliases() {} /** * Returns whether this is a trait @@ -426,9 +364,7 @@ public function getTraitAliases() * @since 5.4 */ #[Pure] - public function isTrait() - { - } + public function isTrait() {} /** * Checks if class is abstract @@ -437,9 +373,7 @@ public function isTrait() * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] - public function isAbstract() - { - } + public function isAbstract() {} /** * Checks if class is final @@ -448,9 +382,7 @@ public function isAbstract() * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] - public function isFinal() - { - } + public function isFinal() {} /** * Gets modifiers @@ -459,9 +391,7 @@ public function isFinal() * @return int bitmask of modifier constants. */ #[Pure] - public function getModifiers() - { - } + public function getModifiers() {} /** * Checks class for instance @@ -471,9 +401,7 @@ public function getModifiers() * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] - public function isInstance($object) - { - } + public function isInstance($object) {} /** * Creates a new class instance from given arguments. @@ -486,9 +414,7 @@ public function isInstance($object) * the class does not have a constructor and the $args parameter contains * one or more parameters. */ - public function newInstance(...$args) - { - } + public function newInstance(...$args) {} /** * Creates a new class instance without invoking the constructor. @@ -500,9 +426,7 @@ public function newInstance(...$args) * onwards, this exception is limited only to internal classes that are final. * @since 5.4 */ - public function newInstanceWithoutConstructor() - { - } + public function newInstanceWithoutConstructor() {} /** * Creates a new class instance from given arguments. @@ -515,9 +439,7 @@ public function newInstanceWithoutConstructor() * one or more parameters. * @since 5.1.3 */ - public function newInstanceArgs(array $args = []) - { - } + public function newInstanceArgs(array $args = []) {} /** * Gets parent class @@ -527,9 +449,7 @@ public function newInstanceArgs(array $args = []) * if there's no parent. */ #[Pure] - public function getParentClass() - { - } + public function getParentClass() {} /** * Checks if a subclass @@ -540,9 +460,7 @@ public function getParentClass() * @return bool {@see true} on success or {@see false} on failure. */ #[Pure] - public function isSubclassOf($class) - { - } + public function isSubclassOf($class) {} /** * Gets static properties @@ -552,9 +470,7 @@ public function isSubclassOf($class) * the name and the values the value of the properties. */ #[Pure] - public function getStaticProperties() - { - } + public function getStaticProperties() {} /** * Gets static property value @@ -567,9 +483,7 @@ public function getStaticProperties() * @return mixed The value of the static property. */ #[Pure] - public function getStaticPropertyValue($name, $default = null) - { - } + public function getStaticPropertyValue($name, $default = null) {} /** * Sets static property value @@ -579,9 +493,7 @@ public function getStaticPropertyValue($name, $default = null) * @param mixed $value New property value. * @return void No value is returned. */ - public function setStaticPropertyValue($name, $value) - { - } + public function setStaticPropertyValue($name, $value) {} /** * Gets default properties @@ -594,9 +506,7 @@ public function setStaticPropertyValue($name, $value) * not take visibility modifiers into account. */ #[Pure] - public function getDefaultProperties() - { - } + public function getDefaultProperties() {} /** * An alias of {@see ReflectionClass::isIterable} method. @@ -605,9 +515,7 @@ public function getDefaultProperties() * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] - public function isIterateable() - { - } + public function isIterateable() {} /** * Check whether this class is iterable @@ -617,9 +525,7 @@ public function isIterateable() * @since 7.2 */ #[Pure] - public function isIterable() - { - } + public function isIterable() {} /** * Checks whether it implements an interface. @@ -628,9 +534,7 @@ public function isIterable() * @param string $interface The interface name. * @return bool Returns {@see true} on success or {@see false} on failure. */ - public function implementsInterface($interface) - { - } + public function implementsInterface($interface) {} /** * Gets a ReflectionExtension object for the extension which defined the class @@ -640,9 +544,7 @@ public function implementsInterface($interface) * the extension which defined the class, or {@see null} for user-defined classes. */ #[Pure] - public function getExtension() - { - } + public function getExtension() {} /** * Gets the name of the extension which defined the class @@ -652,9 +554,7 @@ public function getExtension() * or {@see false} for user-defined classes. */ #[Pure] - public function getExtensionName() - { - } + public function getExtensionName() {} /** * Checks if in namespace @@ -662,9 +562,7 @@ public function getExtensionName() * @link https://php.net/manual/en/reflectionclass.innamespace.php * @return bool {@see true} on success or {@see false} on failure. */ - public function inNamespace() - { - } + public function inNamespace() {} /** * Gets namespace name @@ -673,9 +571,7 @@ public function inNamespace() * @return string The namespace name. */ #[Pure] - public function getNamespaceName() - { - } + public function getNamespaceName() {} /** * Gets short name @@ -684,9 +580,7 @@ public function getNamespaceName() * @return string The class short name. */ #[Pure] - public function getShortName() - { - } + public function getShortName() {} /** * Returns an array of function attributes. @@ -697,9 +591,7 @@ public function getShortName() * @since 8.0 */ #[Pure] - public function getAttributes(?string $name = null, int $flags = 0) - { - } + public function getAttributes(?string $name = null, int $flags = 0) {} /** * Clones object @@ -707,8 +599,5 @@ public function getAttributes(?string $name = null, int $flags = 0) * @link https://php.net/manual/en/reflectionclass.clone.php * @return void */ - final private function __clone() - { - } - + final private function __clone() {} } diff --git a/Reflection/ReflectionClassConstant.php b/Reflection/ReflectionClassConstant.php index bee136f9b..006a44fb4 100644 --- a/Reflection/ReflectionClassConstant.php +++ b/Reflection/ReflectionClassConstant.php @@ -29,21 +29,21 @@ class ReflectionClassConstant implements Reflector * * @since 8.0 */ - const IS_PUBLIC = 1; + public const IS_PUBLIC = 1; /** * Indicates that the constant is protected. * * @since 8.0 */ - const IS_PROTECTED = 2; + public const IS_PROTECTED = 2; /** * Indicates that the constant is private. * * @since 8.0 */ - const IS_PRIVATE = 4; + public const IS_PRIVATE = 4; /** * ReflectionClassConstant constructor. @@ -53,9 +53,7 @@ class ReflectionClassConstant implements Reflector * @since 7.1 * @link https://php.net/manual/en/reflectionclassconstant.construct.php */ - public function __construct($class, string $constant) - { - } + public function __construct($class, string $constant) {} /** * @link https://php.net/manual/en/reflectionclassconstant.export.php @@ -68,9 +66,7 @@ public function __construct($class, string $constant) * @removed 8.0 */ #[Deprecated(since: '7.4')] - public static function export($class, $name, $return = false) - { - } + public static function export($class, $name, $return = false) {} /** * Gets declaring class @@ -80,9 +76,7 @@ public static function export($class, $name, $return = false) * @since 7.1 */ #[Pure] - public function getDeclaringClass() - { - } + public function getDeclaringClass() {} /** * Gets doc comments @@ -92,9 +86,7 @@ public function getDeclaringClass() * @since 7.1 */ #[Pure] - public function getDocComment() - { - } + public function getDocComment() {} /** * Gets the class constant modifiers @@ -105,9 +97,7 @@ public function getDocComment() * @since 7.1 */ #[Pure] - public function getModifiers() - { - } + public function getModifiers() {} /** * Get name of the constant @@ -117,9 +107,7 @@ public function getModifiers() * @since 7.1 */ #[Pure] - public function getName() - { - } + public function getName() {} /** * Gets value @@ -129,9 +117,7 @@ public function getName() * @since 7.1 */ #[Pure] - public function getValue() - { - } + public function getValue() {} /** * Checks if class constant is private @@ -141,9 +127,7 @@ public function getValue() * @since 7.1 */ #[Pure] - public function isPrivate() - { - } + public function isPrivate() {} /** * Checks if class constant is protected @@ -153,9 +137,7 @@ public function isPrivate() * @since 7.1 */ #[Pure] - public function isProtected() - { - } + public function isProtected() {} /** * Checks if class constant is public @@ -165,9 +147,7 @@ public function isProtected() * @since 7.1 */ #[Pure] - public function isPublic() - { - } + public function isPublic() {} /** * Returns the string representation of the ReflectionClassConstant object. @@ -176,9 +156,7 @@ public function isPublic() * @return string * @since 7.1 */ - public function __toString() - { - } + public function __toString() {} /** * Returns an array of constant attributes. @@ -189,16 +167,12 @@ public function __toString() * @since 8.0 */ #[Pure] - public function getAttributes(?string $name = null, int $flags = 0) - { - } + public function getAttributes(?string $name = null, int $flags = 0) {} /** * ReflectionClassConstant cannot be cloned * * @return void */ - final private function __clone() - { - } + final private function __clone() {} } diff --git a/Reflection/ReflectionException.php b/Reflection/ReflectionException.php index fb64139ed..1e4bac921 100644 --- a/Reflection/ReflectionException.php +++ b/Reflection/ReflectionException.php @@ -5,6 +5,4 @@ * * @link https://php.net/manual/en/class.reflectionexception.php */ -class ReflectionException extends Exception -{ -} +class ReflectionException extends Exception {} diff --git a/Reflection/ReflectionExtension.php b/Reflection/ReflectionExtension.php index a37be4af7..e2255e5cb 100644 --- a/Reflection/ReflectionExtension.php +++ b/Reflection/ReflectionExtension.php @@ -11,7 +11,6 @@ */ class ReflectionExtension implements Reflector { - /** * @var string Name of the extension, same as calling the {@see ReflectionExtension::getName()} method */ @@ -25,9 +24,7 @@ class ReflectionExtension implements Reflector * @param string $name Name of the extension. * @throws \ReflectionException if the extension does not exist. */ - public function __construct($name) - { - } + public function __construct($name) {} /** * Exports a reflected extension. @@ -43,9 +40,7 @@ public function __construct($name) * @removed 8.0 */ #[Deprecated(since: '7.4')] - public static function export($name, $return = false) - { - } + public static function export($name, $return = false) {} /** * To string @@ -54,9 +49,7 @@ public static function export($name, $return = false) * @return string the exported extension as a string, in the same way as * the {@see ReflectionExtension::export()}. */ - public function __toString() - { - } + public function __toString() {} /** * Gets extension name @@ -65,9 +58,7 @@ public function __toString() * @return string The extensions name. */ #[Pure] - public function getName() - { - } + public function getName() {} /** * Gets extension version @@ -76,9 +67,7 @@ public function getName() * @return string The version of the extension. */ #[Pure] - public function getVersion() - { - } + public function getVersion() {} /** * Gets extension functions @@ -89,9 +78,7 @@ public function getVersion() * names. If no function are defined, an empty array is returned. */ #[Pure] - public function getFunctions() - { - } + public function getFunctions() {} /** * Gets constants @@ -100,9 +87,7 @@ public function getFunctions() * @return array An associative array with constant names as keys. */ #[Pure] - public function getConstants() - { - } + public function getConstants() {} /** * Gets extension ini entries @@ -112,9 +97,7 @@ public function getConstants() * with their defined values as values. */ #[Pure] - public function getINIEntries() - { - } + public function getINIEntries() {} /** * Gets classes @@ -125,9 +108,7 @@ public function getINIEntries() * an empty array is returned. */ #[Pure] - public function getClasses() - { - } + public function getClasses() {} /** * Gets class names @@ -137,9 +118,7 @@ public function getClasses() * If no classes are defined, an empty array is returned. */ #[Pure] - public function getClassNames() - { - } + public function getClassNames() {} /** * Gets dependencies @@ -149,9 +128,7 @@ public function getClassNames() * either Required, Optional or Conflicts as the values. */ #[Pure] - public function getDependencies() - { - } + public function getDependencies() {} /** * Print extension info @@ -159,9 +136,7 @@ public function getDependencies() * @link https://php.net/manual/en/reflectionextension.info.php * @return void Print extension info */ - public function info() - { - } + public function info() {} /** * Returns whether this extension is persistent @@ -171,9 +146,7 @@ public function info() * @since 5.4 */ #[Pure] - public function isPersistent() - { - } + public function isPersistent() {} /** * Returns whether this extension is temporary @@ -183,9 +156,7 @@ public function isPersistent() * @since 5.4 */ #[Pure] - public function isTemporary() - { - } + public function isTemporary() {} /** * Clones @@ -193,7 +164,5 @@ public function isTemporary() * @link https://php.net/manual/en/reflectionextension.clone.php * @return void No value is returned, if called a fatal error will occur. */ - final private function __clone() - { - } + final private function __clone() {} } diff --git a/Reflection/ReflectionFunction.php b/Reflection/ReflectionFunction.php index 57021a2b3..b845f76e0 100644 --- a/Reflection/ReflectionFunction.php +++ b/Reflection/ReflectionFunction.php @@ -23,7 +23,7 @@ class ReflectionFunction extends ReflectionFunctionAbstract * * @link https://www.php.net/manual/en/class.reflectionfunction.php#reflectionfunction.constants.is-deprecated */ - const IS_DEPRECATED = 2048; + public const IS_DEPRECATED = 2048; /** * Constructs a ReflectionFunction object @@ -32,18 +32,14 @@ class ReflectionFunction extends ReflectionFunctionAbstract * @param string|Closure $function The name of the function to reflect or a closure. * @throws ReflectionException if the function does not exist. */ - public function __construct($function) - { - } + public function __construct($function) {} /** * Returns the string representation of the ReflectionFunction object. * * @link https://php.net/manual/en/reflectionfunction.tostring.php */ - public function __toString() - { - } + public function __toString() {} /** * Exports function @@ -58,9 +54,7 @@ public function __toString() * @removed 8.0 */ #[Deprecated(since: '7.4')] - public static function export($name, $return = false) - { - } + public static function export($name, $return = false) {} /** * Checks if function is disabled @@ -70,9 +64,7 @@ public static function export($name, $return = false) */ #[Deprecated(since: '8.0')] #[Pure] - public function isDisabled() - { - } + public function isDisabled() {} /** * Invokes function @@ -83,9 +75,7 @@ public function isDisabled() * like {@see call_user_func} is. * @return mixed Returns the result of the invoked function call. */ - public function invoke(...$args) - { - } + public function invoke(...$args) {} /** * Invokes function args @@ -95,9 +85,7 @@ public function invoke(...$args) * like {@see call_user_func_array} works. * @return mixed the result of the invoked function */ - public function invokeArgs(array $args) - { - } + public function invokeArgs(array $args) {} /** * Returns a dynamically created closure for the function @@ -106,7 +94,5 @@ public function invokeArgs(array $args) * @return Closure Returns {@see Closure} or {@see null} in case of an error. */ #[Pure] - public function getClosure() - { - } + public function getClosure() {} } diff --git a/Reflection/ReflectionFunctionAbstract.php b/Reflection/ReflectionFunctionAbstract.php index 07d1a3057..2299b73e8 100644 --- a/Reflection/ReflectionFunctionAbstract.php +++ b/Reflection/ReflectionFunctionAbstract.php @@ -23,9 +23,7 @@ abstract class ReflectionFunctionAbstract implements Reflector * @link https://php.net/manual/en/reflectionfunctionabstract.clone.php * @return void */ - final private function __clone() - { - } + final private function __clone() {} /** * Checks if function in namespace @@ -33,9 +31,7 @@ final private function __clone() * @link https://php.net/manual/en/reflectionfunctionabstract.innamespace.php * @return bool {@see true} if it's in a namespace, otherwise {@see false} */ - public function inNamespace() - { - } + public function inNamespace() {} /** * Checks if closure @@ -44,9 +40,7 @@ public function inNamespace() * @return bool {@see true} if it's a closure, otherwise {@see false} */ #[Pure] - public function isClosure() - { - } + public function isClosure() {} /** * Checks if deprecated @@ -55,9 +49,7 @@ public function isClosure() * @return bool {@see true} if it's deprecated, otherwise {@see false} */ #[Pure] - public function isDeprecated() - { - } + public function isDeprecated() {} /** * Checks if is internal @@ -66,9 +58,7 @@ public function isDeprecated() * @return bool {@see true} if it's internal, otherwise {@see false} */ #[Pure] - public function isInternal() - { - } + public function isInternal() {} /** * Checks if user defined @@ -77,9 +67,7 @@ public function isInternal() * @return bool {@see true} if it's user-defined, otherwise {@see false} */ #[Pure] - public function isUserDefined() - { - } + public function isUserDefined() {} /** * Returns whether this function is a generator @@ -89,9 +77,7 @@ public function isUserDefined() * @since 5.5 */ #[Pure] - public function isGenerator() - { - } + public function isGenerator() {} /** * Returns whether this function is variadic @@ -101,9 +87,7 @@ public function isGenerator() * @since 5.6 */ #[Pure] - public function isVariadic() - { - } + public function isVariadic() {} /** * Returns this pointer bound to closure @@ -112,9 +96,7 @@ public function isVariadic() * @return object|null Returns $this pointer or {@see null} in case of an error. */ #[Pure] - public function getClosureThis() - { - } + public function getClosureThis() {} /** * Returns the scope associated to the closure @@ -125,9 +107,7 @@ public function getClosureThis() * @since 5.4 */ #[Pure] - public function getClosureScopeClass() - { - } + public function getClosureScopeClass() {} /** * Gets doc comment @@ -136,9 +116,7 @@ public function getClosureScopeClass() * @return string|false The doc comment if it exists, otherwise {@see false} */ #[Pure] - public function getDocComment() - { - } + public function getDocComment() {} /** * Gets end line number @@ -148,9 +126,7 @@ public function getDocComment() * or {@see false} if unknown. */ #[Pure] - public function getEndLine() - { - } + public function getEndLine() {} /** * Gets extension info @@ -160,9 +136,7 @@ public function getEndLine() * {@see ReflectionExtension} object or {@see null} instead. */ #[Pure] - public function getExtension() - { - } + public function getExtension() {} /** * Gets extension name @@ -171,9 +145,7 @@ public function getExtension() * @return string|null The extension's name or {@see null} instead. */ #[Pure] - public function getExtensionName() - { - } + public function getExtensionName() {} /** * Gets file name @@ -182,9 +154,7 @@ public function getExtensionName() * @return string|false The file name or {@see false} in case of error. */ #[Pure] - public function getFileName() - { - } + public function getFileName() {} /** * Gets function name @@ -193,9 +163,7 @@ public function getFileName() * @return string The name of the function. */ #[Pure] - public function getName() - { - } + public function getName() {} /** * Gets namespace name @@ -204,9 +172,7 @@ public function getName() * @return string The namespace name. */ #[Pure] - public function getNamespaceName() - { - } + public function getNamespaceName() {} /** * Gets number of parameters @@ -216,9 +182,7 @@ public function getNamespaceName() * @since 5.0.3 */ #[Pure] - public function getNumberOfParameters() - { - } + public function getNumberOfParameters() {} /** * Gets number of required parameters @@ -228,9 +192,7 @@ public function getNumberOfParameters() * @since 5.0.3 */ #[Pure] - public function getNumberOfRequiredParameters() - { - } + public function getNumberOfRequiredParameters() {} /** * Gets parameters @@ -239,9 +201,7 @@ public function getNumberOfRequiredParameters() * @return ReflectionParameter[] The parameters, as a ReflectionParameter objects. */ #[Pure] - public function getParameters() - { - } + public function getParameters() {} /** * Gets the specified return type of a function @@ -252,9 +212,7 @@ public function getParameters() * @since 7.0 */ #[Pure] - public function getReturnType() - { - } + public function getReturnType() {} /** * Gets function short name @@ -263,9 +221,7 @@ public function getReturnType() * @return string The short name of the function. */ #[Pure] - public function getShortName() - { - } + public function getShortName() {} /** * Gets starting line number @@ -274,9 +230,7 @@ public function getShortName() * @return int The starting line number. */ #[Pure] - public function getStartLine() - { - } + public function getStartLine() {} /** * Gets static variables @@ -285,9 +239,7 @@ public function getStartLine() * @return array An array of static variables. */ #[Pure] - public function getStaticVariables() - { - } + public function getStaticVariables() {} /** * Checks if returns reference @@ -295,9 +247,7 @@ public function getStaticVariables() * @link https://php.net/manual/en/reflectionfunctionabstract.returnsreference.php * @return bool {@see true} if it returns a reference, otherwise {@see false} */ - public function returnsReference() - { - } + public function returnsReference() {} /** * Checks if the function has a specified return type @@ -307,9 +257,7 @@ public function returnsReference() * type, otherwise {@see false}. * @since 7.0 */ - public function hasReturnType() - { - } + public function hasReturnType() {} /** * Returns an array of function attributes. @@ -320,7 +268,5 @@ public function hasReturnType() * @since 8.0 */ #[Pure] - public function getAttributes(?string $name = null, int $flags = 0) - { - } + public function getAttributes(?string $name = null, int $flags = 0) {} } diff --git a/Reflection/ReflectionGenerator.php b/Reflection/ReflectionGenerator.php index b94a2c829..4d28acd1a 100644 --- a/Reflection/ReflectionGenerator.php +++ b/Reflection/ReflectionGenerator.php @@ -16,9 +16,7 @@ class ReflectionGenerator * @param Generator $generator A generator object. * @since 7.0 */ - public function __construct(Generator $generator) - { - } + public function __construct(Generator $generator) {} /** * Gets the currently executing line of the generator @@ -29,9 +27,7 @@ public function __construct(Generator $generator) * @since 7.0 */ #[Pure] - public function getExecutingLine() - { - } + public function getExecutingLine() {} /** * Gets the file name of the currently executing generator @@ -42,9 +38,7 @@ public function getExecutingLine() * @since 7.0 */ #[Pure] - public function getExecutingFile() - { - } + public function getExecutingFile() {} /** * Gets the trace of the executing generator @@ -63,10 +57,7 @@ public function getExecutingFile() * @since 7.0 */ #[Pure] - public function getTrace($options = DEBUG_BACKTRACE_PROVIDE_OBJECT) - { - } - + public function getTrace($options = DEBUG_BACKTRACE_PROVIDE_OBJECT) {} /** * Gets the function name of the generator @@ -78,9 +69,7 @@ public function getTrace($options = DEBUG_BACKTRACE_PROVIDE_OBJECT) * @since 7.0 */ #[Pure] - public function getFunction() - { - } + public function getFunction() {} /** * Gets the function name of the generator @@ -91,9 +80,7 @@ public function getFunction() * @since 7.0 */ #[Pure] - public function getThis() - { - } + public function getThis() {} /** * Gets the executing Generator object @@ -101,10 +88,7 @@ public function getThis() * @link https://php.net/manual/en/reflectiongenerator.construct.php * @return Generator Returns the currently executing Generator object. * @since 7.0 - * */ #[Pure] - public function getExecutingGenerator() - { - } + public function getExecutingGenerator() {} } diff --git a/Reflection/ReflectionMethod.php b/Reflection/ReflectionMethod.php index aaf94eef6..1c4b0845d 100644 --- a/Reflection/ReflectionMethod.php +++ b/Reflection/ReflectionMethod.php @@ -27,32 +27,32 @@ class ReflectionMethod extends ReflectionFunctionAbstract /** * Indicates that the method is static. */ - const IS_STATIC = 16; + public const IS_STATIC = 16; /** * Indicates that the method is public. */ - const IS_PUBLIC = 1; + public const IS_PUBLIC = 1; /** * Indicates that the method is protected. */ - const IS_PROTECTED = 2; + public const IS_PROTECTED = 2; /** * Indicates that the method is private. */ - const IS_PRIVATE = 4; + public const IS_PRIVATE = 4; /** * Indicates that the method is abstract. */ - const IS_ABSTRACT = 64; + public const IS_ABSTRACT = 64; /** * Indicates that the method is final. */ - const IS_FINAL = 32; + public const IS_FINAL = 32; /** * Constructs a ReflectionMethod @@ -71,9 +71,7 @@ class ReflectionMethod extends ReflectionFunctionAbstract * classname or an object. * @throws \ReflectionException if the class or method does not exist. */ - public function __construct($objectOrMethod, $method = null) - { - } + public function __construct($objectOrMethod, $method = null) {} /** * Export a reflection method. @@ -89,9 +87,7 @@ public function __construct($objectOrMethod, $method = null) * @removed 8.0 */ #[Deprecated(since: '7.4')] - public static function export($class, $name, $return = false) - { - } + public static function export($class, $name, $return = false) {} /** * Returns the string representation of the ReflectionMethod object. @@ -99,9 +95,7 @@ public static function export($class, $name, $return = false) * @link https://php.net/manual/en/reflectionmethod.tostring.php * @return string A string representation of this {@see ReflectionMethod} instance. */ - public function __toString() - { - } + public function __toString() {} /** * Checks if method is public @@ -110,9 +104,7 @@ public function __toString() * @return bool Returns {@see true} if the method is public, otherwise {@see false} */ #[Pure] - public function isPublic() - { - } + public function isPublic() {} /** * Checks if method is private @@ -121,9 +113,7 @@ public function isPublic() * @return bool Returns {@see true} if the method is private, otherwise {@see false} */ #[Pure] - public function isPrivate() - { - } + public function isPrivate() {} /** * Checks if method is protected @@ -132,9 +122,7 @@ public function isPrivate() * @return bool Returns {@see true} if the method is protected, otherwise {@see false} */ #[Pure] - public function isProtected() - { - } + public function isProtected() {} /** * Checks if method is abstract @@ -143,9 +131,7 @@ public function isProtected() * @return bool Returns {@see true} if the method is abstract, otherwise {@see false} */ #[Pure] - public function isAbstract() - { - } + public function isAbstract() {} /** * Checks if method is final @@ -154,9 +140,7 @@ public function isAbstract() * @return bool Returns {@see true} if the method is final, otherwise {@see false} */ #[Pure] - public function isFinal() - { - } + public function isFinal() {} /** * Checks if method is static @@ -165,9 +149,7 @@ public function isFinal() * @return bool Returns {@see true} if the method is static, otherwise {@see false} */ #[Pure] - public function isStatic() - { - } + public function isStatic() {} /** * Checks if method is a constructor @@ -176,9 +158,7 @@ public function isStatic() * @return bool Returns {@see true} if the method is a constructor, otherwise {@see false} */ #[Pure] - public function isConstructor() - { - } + public function isConstructor() {} /** * Checks if method is a destructor @@ -187,9 +167,7 @@ public function isConstructor() * @return bool Returns {@see true} if the method is a destructor, otherwise {@see false} */ #[Pure] - public function isDestructor() - { - } + public function isDestructor() {} /** * Returns a dynamically created closure for the method @@ -200,9 +178,7 @@ public function isDestructor() * @since 5.4 */ #[Pure] - public function getClosure($object = null) - { - } + public function getClosure($object = null) {} /** * Gets the method modifiers @@ -222,9 +198,7 @@ public function getClosure($object = null) * - {@see ReflectionMethod::IS_FINAL} - Indicates that the method is final. */ #[Pure] - public function getModifiers() - { - } + public function getModifiers() {} /** * Invokes a reflected method. @@ -240,9 +214,7 @@ public function getModifiers() * instance of the class that this method was declared in or the method * invocation failed. */ - public function invoke($object, ...$args) - { - } + public function invoke($object, ...$args) {} /** * Invokes the reflected method and pass its arguments as array. @@ -256,9 +228,7 @@ public function invoke($object, ...$args) * instance of the class that this method was declared in or the method * invocation failed. */ - public function invokeArgs($object, array $args) - { - } + public function invokeArgs($object, array $args) {} /** * Gets declaring class for the reflected method. @@ -268,9 +238,7 @@ public function invokeArgs($object, array $args) * reflected method is part of. */ #[Pure] - public function getDeclaringClass() - { - } + public function getDeclaringClass() {} /** * Gets the method prototype (if there is one). @@ -280,9 +248,7 @@ public function getDeclaringClass() * @throws ReflectionException if the method does not have a prototype */ #[Pure] - public function getPrototype() - { - } + public function getPrototype() {} /** * Set method accessibility @@ -292,8 +258,5 @@ public function getPrototype() * @return void No value is returned. * @since 5.3.2 */ - public function setAccessible($accessible) - { - } - + public function setAccessible($accessible) {} } diff --git a/Reflection/ReflectionNamedType.php b/Reflection/ReflectionNamedType.php index 01c3536e5..e6003b30a 100644 --- a/Reflection/ReflectionNamedType.php +++ b/Reflection/ReflectionNamedType.php @@ -15,9 +15,7 @@ class ReflectionNamedType extends ReflectionType * @since 7.1 */ #[Pure] - public function getName() - { - } + public function getName() {} /** * Checks if it is a built-in type @@ -29,7 +27,5 @@ public function getName() * @since 8.0 method was removed from the parent {@see ReflectionType} class. */ #[Pure] - public function isBuiltin() - { - } + public function isBuiltin() {} } diff --git a/Reflection/ReflectionObject.php b/Reflection/ReflectionObject.php index f872ee813..4defba5f4 100644 --- a/Reflection/ReflectionObject.php +++ b/Reflection/ReflectionObject.php @@ -16,9 +16,7 @@ class ReflectionObject extends ReflectionClass * @link https://php.net/manual/en/reflectionobject.construct.php * @param object $object An object instance. */ - public function __construct($object) - { - } + public function __construct($object) {} /** * Export @@ -33,7 +31,5 @@ public function __construct($object) * @removed 8.0 */ #[Deprecated(since: '7.4')] - public static function export($argument, $return = false) - { - } + public static function export($argument, $return = false) {} } diff --git a/Reflection/ReflectionParameter.php b/Reflection/ReflectionParameter.php index ff25bd113..ce5832c0c 100644 --- a/Reflection/ReflectionParameter.php +++ b/Reflection/ReflectionParameter.php @@ -27,9 +27,7 @@ class ReflectionParameter implements Reflector * of the parameter (starting with zero), or a the parameter name as string. * @throws \ReflectionException if the function or parameter does not exist. */ - public function __construct(callable $function, $param) - { - } + public function __construct(callable $function, $param) {} /** * Exports @@ -44,9 +42,7 @@ public function __construct(callable $function, $param) * @removed 8.0 */ #[Deprecated(since: '7.4')] - public static function export($function, $parameter, $return = false) - { - } + public static function export($function, $parameter, $return = false) {} /** * Returns the string representation of the ReflectionParameter object. @@ -54,9 +50,7 @@ public static function export($function, $parameter, $return = false) * @link https://php.net/manual/en/reflectionparameter.tostring.php * @return string */ - public function __toString() - { - } + public function __toString() {} /** * Gets parameter name @@ -65,9 +59,7 @@ public function __toString() * @return string The name of the reflected parameter. */ #[Pure] - public function getName() - { - } + public function getName() {} /** * Checks if passed by reference @@ -76,9 +68,7 @@ public function getName() * @return bool {@see true} if the parameter is passed in by reference, otherwise {@see false} */ #[Pure] - public function isPassedByReference() - { - } + public function isPassedByReference() {} /** * Returns whether this parameter can be passed by value @@ -88,9 +78,7 @@ public function isPassedByReference() * Returns {@see null} in case of an error. * @since 5.4 */ - public function canBePassedByValue() - { - } + public function canBePassedByValue() {} /** * Gets declaring function @@ -100,9 +88,7 @@ public function canBePassedByValue() * @since 5.2.3 */ #[Pure] - public function getDeclaringFunction() - { - } + public function getDeclaringFunction() {} /** * Gets declaring class @@ -112,9 +98,7 @@ public function getDeclaringFunction() * called on function. */ #[Pure] - public function getDeclaringClass() - { - } + public function getDeclaringClass() {} /** * Gets the class type hinted for the parameter as a ReflectionClass object. @@ -125,9 +109,7 @@ public function getDeclaringClass() */ #[Deprecated(reason: "Use ReflectionParameter::getType() and the ReflectionType APIs should be used instead.", since: "8.0")] #[Pure] - public function getClass() - { - } + public function getClass() {} /** * Checks if the parameter has a type associated with it. @@ -136,9 +118,7 @@ public function getClass() * @return bool {@see true} if a type is specified, {@see false} otherwise. * @since 7.0 */ - public function hasType() - { - } + public function hasType() {} /** * Gets a parameter's type @@ -149,9 +129,7 @@ public function hasType() * @since 7.0 */ #[Pure] - public function getType() - { - } + public function getType() {} /** * Checks if parameter expects an array @@ -162,9 +140,7 @@ public function getType() */ #[Deprecated(reason: "Use ReflectionParameter::getType() and the ReflectionType APIs should be used instead.", since: "8.0")] #[Pure] - public function isArray() - { - } + public function isArray() {} /** * Returns whether parameter MUST be callable @@ -177,9 +153,7 @@ public function isArray() */ #[Deprecated(reason: "Use ReflectionParameter::getType() and the ReflectionType APIs should be used instead.", since: "8.0")] #[Pure] - public function isCallable() - { - } + public function isCallable() {} /** * Checks if null is allowed @@ -188,9 +162,7 @@ public function isCallable() * @return bool Returns {@see true} if {@see null} is allowed, * otherwise {@see false} */ - public function allowsNull() - { - } + public function allowsNull() {} /** * Gets parameter position @@ -200,9 +172,7 @@ public function allowsNull() * @since 5.2.3 */ #[Pure] - public function getPosition() - { - } + public function getPosition() {} /** * Checks if optional @@ -212,9 +182,7 @@ public function getPosition() * @since 5.0.3 */ #[Pure] - public function isOptional() - { - } + public function isOptional() {} /** * Checks if a default value is available @@ -224,9 +192,7 @@ public function isOptional() * @since 5.0.3 */ #[Pure] - public function isDefaultValueAvailable() - { - } + public function isDefaultValueAvailable() {} /** * Gets default parameter value @@ -237,9 +203,7 @@ public function isDefaultValueAvailable() * @since 5.0.3 */ #[Pure] - public function getDefaultValue() - { - } + public function getDefaultValue() {} /** * Returns whether the default value of this parameter is constant @@ -249,9 +213,7 @@ public function getDefaultValue() * @since 5.4.6 */ #[Pure] - public function isDefaultValueConstant() - { - } + public function isDefaultValueConstant() {} /** * Returns the default value's constant name if default value is constant or null @@ -262,9 +224,7 @@ public function isDefaultValueConstant() * @since 5.4.6 */ #[Pure] - public function getDefaultValueConstantName() - { - } + public function getDefaultValueConstantName() {} /** * Returns whether this function is variadic @@ -274,9 +234,7 @@ public function getDefaultValueConstantName() * @since 5.6 */ #[Pure] - public function isVariadic() - { - } + public function isVariadic() {} /** * Returns information about whether the parameter is a promoted. @@ -285,9 +243,7 @@ public function isVariadic() * @since 8.0 */ #[Pure] - public function isPromoted() - { - } + public function isPromoted() {} /** * Returns an array of parameter attributes. @@ -298,9 +254,7 @@ public function isPromoted() * @since 8.0 */ #[Pure] - public function getAttributes(?string $name = null, int $flags = 0) - { - } + public function getAttributes(?string $name = null, int $flags = 0) {} /** * Clone @@ -308,7 +262,5 @@ public function getAttributes(?string $name = null, int $flags = 0) * @link https://php.net/manual/en/reflectionparameter.clone.php * @return void */ - final private function __clone() - { - } + final private function __clone() {} } diff --git a/Reflection/ReflectionProperty.php b/Reflection/ReflectionProperty.php index 9d81017f5..862c360d3 100644 --- a/Reflection/ReflectionProperty.php +++ b/Reflection/ReflectionProperty.php @@ -12,7 +12,6 @@ */ class ReflectionProperty implements Reflector { - /** * @var string Name of the property, same as calling the {@see ReflectionProperty::getName()} method */ @@ -30,28 +29,28 @@ class ReflectionProperty implements Reflector * * @link https://www.php.net/manual/en/class.reflectionproperty.php#reflectionproperty.constants.is-static */ - const IS_STATIC = 16; + public const IS_STATIC = 16; /** * Indicates that the property is public. * * @link https://www.php.net/manual/en/class.reflectionproperty.php#reflectionproperty.constants.is-public */ - const IS_PUBLIC = 1; + public const IS_PUBLIC = 1; /** * Indicates that the property is protected. * * @link https://www.php.net/manual/en/class.reflectionproperty.php#reflectionproperty.constants.is-protected */ - const IS_PROTECTED = 2; + public const IS_PROTECTED = 2; /** * Indicates that the property is private. * * @link https://www.php.net/manual/en/class.reflectionproperty.php#reflectionproperty.constants.is-private */ - const IS_PRIVATE = 4; + public const IS_PRIVATE = 4; /** * Construct a ReflectionProperty object @@ -61,9 +60,7 @@ class ReflectionProperty implements Reflector * @param string $property The name of the property being reflected. * @throws \ReflectionException if the class or property does not exist. */ - public function __construct($class, $property) - { - } + public function __construct($class, $property) {} /** * Export @@ -78,9 +75,7 @@ public function __construct($class, $property) * @removed 8.0 */ #[Deprecated(since: '7.4')] - public static function export($class, $name, $return = false) - { - } + public static function export($class, $name, $return = false) {} /** * To string @@ -88,9 +83,7 @@ public static function export($class, $name, $return = false) * @link https://php.net/manual/en/reflectionproperty.tostring.php * @return string */ - public function __toString() - { - } + public function __toString() {} /** * Gets property name @@ -99,9 +92,7 @@ public function __toString() * @return string The name of the reflected property. */ #[Pure] - public function getName() - { - } + public function getName() {} /** * Gets value @@ -114,9 +105,7 @@ public function getName() * @return mixed The current value of the property. */ #[Pure] - public function getValue($object = null) - { - } + public function getValue($object = null) {} /** * Set property value @@ -128,9 +117,7 @@ public function getValue($object = null) * @param mixed $value The new value. * @return void No value is returned. */ - public function setValue($objectOrValue, $value = null) - { - } + public function setValue($objectOrValue, $value = null) {} /** * Checks if property is public @@ -139,9 +126,7 @@ public function setValue($objectOrValue, $value = null) * @return bool Return {@see true} if the property is public, {@see false} otherwise. */ #[Pure] - public function isPublic() - { - } + public function isPublic() {} /** * Checks if property is private @@ -150,9 +135,7 @@ public function isPublic() * @return bool Return {@see true} if the property is private, {@see false} otherwise. */ #[Pure] - public function isPrivate() - { - } + public function isPrivate() {} /** * Checks if property is protected @@ -161,9 +144,7 @@ public function isPrivate() * @return bool Returns {@see true} if the property is protected, {@see false} otherwise. */ #[Pure] - public function isProtected() - { - } + public function isProtected() {} /** * Checks if property is static @@ -172,9 +153,7 @@ public function isProtected() * @return bool Retruns {@see true} if the property is static, {@see false} otherwise. */ #[Pure] - public function isStatic() - { - } + public function isStatic() {} /** * Checks if default value @@ -184,9 +163,7 @@ public function isStatic() * compile-time, or {@see false} if it was created at run-time. */ #[Pure] - public function isDefault() - { - } + public function isDefault() {} /** * Gets modifiers @@ -195,9 +172,7 @@ public function isDefault() * @return int A numeric representation of the modifiers. */ #[Pure] - public function getModifiers() - { - } + public function getModifiers() {} /** * Gets declaring class @@ -206,9 +181,7 @@ public function getModifiers() * @return ReflectionClass A {@see ReflectionClass} object. */ #[Pure] - public function getDeclaringClass() - { - } + public function getDeclaringClass() {} /** * Gets doc comment @@ -217,9 +190,7 @@ public function getDeclaringClass() * @return string|false The doc comment if it exists, otherwise {@see false} */ #[Pure] - public function getDocComment() - { - } + public function getDocComment() {} /** * Set property accessibility @@ -228,9 +199,7 @@ public function getDocComment() * @param bool $accessible A boolean {@see true} to allow accessibility, or {@see false} * @return void No value is returned. */ - public function setAccessible($accessible) - { - } + public function setAccessible($accessible) {} /** * Gets property type @@ -241,9 +210,7 @@ public function setAccessible($accessible) * @since 7.4 */ #[Pure] - public function getType() - { - } + public function getType() {} /** * Checks if property has type @@ -252,9 +219,7 @@ public function getType() * @return bool Returns {@see true} if a type is specified, {@see false} otherwise. * @since 7.4 */ - public function hasType() - { - } + public function hasType() {} /** * Checks if property is initialized @@ -266,9 +231,7 @@ public function hasType() * @since 7.4 */ #[Pure] - public function isInitialized(?object $object = null) - { - } + public function isInitialized(?object $object = null) {} /** * Returns information about whether the property was promoted. @@ -277,9 +240,7 @@ public function isInitialized(?object $object = null) * @since 8.0 */ #[Pure] - public function isPromoted() - { - } + public function isPromoted() {} /** * Clone @@ -287,22 +248,20 @@ public function isPromoted() * @link https://php.net/manual/en/reflectionproperty.clone.php * @return void */ - final private function __clone() - { - } + final private function __clone() {} /** * @return bool * @since 8.0 */ - public function hasDefaultValue(){} + public function hasDefaultValue() {} /** * @return mixed * @since 8.0 */ #[Pure] - public function getDefaultValue(){} + public function getDefaultValue() {} /** * @param null|string $name @@ -311,5 +270,5 @@ public function getDefaultValue(){} * @since 8.0 */ #[Pure] - public function getAttributes(?string $name = null, int $flags = 0) {} + public function getAttributes(?string $name = null, int $flags = 0) {} } diff --git a/Reflection/ReflectionReference.php b/Reflection/ReflectionReference.php index 53d243232..51888d5e0 100644 --- a/Reflection/ReflectionReference.php +++ b/Reflection/ReflectionReference.php @@ -15,9 +15,7 @@ class ReflectionReference /** * ReflectionReference cannot be created explicitly. */ - private function __construct() - { - } + private function __construct() {} /** * Returns ReflectionReference if array element is a reference, {@see null} otherwise @@ -27,9 +25,7 @@ private function __construct() * @param int|string $key The key; either an integer or a string. * @return self|null */ - public static function fromArrayElement(array $array, $key) - { - } + public static function fromArrayElement(array $array, $key) {} /** * Returns unique identifier for the reference. The return value format is unspecified @@ -38,16 +34,12 @@ public static function fromArrayElement(array $array, $key) * @return int|string Returns an integer or string of unspecified format. */ #[Pure] - public function getId() - { - } + public function getId() {} /** * ReflectionReference cannot be cloned * * @return void */ - private function __clone() - { - } + private function __clone() {} } diff --git a/Reflection/ReflectionType.php b/Reflection/ReflectionType.php index 611ebbb80..13b2ee6ff 100644 --- a/Reflection/ReflectionType.php +++ b/Reflection/ReflectionType.php @@ -18,9 +18,7 @@ abstract class ReflectionType implements Stringable * @return bool Returns {@see true} if {@see null} is allowed, otherwise {@see false} * @since 7.0 */ - public function allowsNull() - { - } + public function allowsNull() {} /** * Checks if it is a built-in type @@ -32,9 +30,7 @@ public function allowsNull() * class and moved to the {@see ReflectionNamedType} child. */ #[Pure] - public function isBuiltin() - { - } + public function isBuiltin() {} /** * To string @@ -45,16 +41,12 @@ public function isBuiltin() * @see ReflectionNamedType::getName() */ #[Deprecated(since: "7.1")] - public function __toString() - { - } + public function __toString() {} /** * Cloning of this class is prohibited * * @return void */ - final private function __clone() - { - } + final private function __clone() {} } diff --git a/Reflection/ReflectionUnionType.php b/Reflection/ReflectionUnionType.php index bd0d21515..5ad6eb268 100644 --- a/Reflection/ReflectionUnionType.php +++ b/Reflection/ReflectionUnionType.php @@ -13,7 +13,5 @@ class ReflectionUnionType extends ReflectionType * @return ReflectionNamedType[] */ #[Pure] - public function getTypes() - { - } + public function getTypes() {} } diff --git a/Reflection/ReflectionZendExtension.php b/Reflection/ReflectionZendExtension.php index 91be914b9..6d6daaa7e 100644 --- a/Reflection/ReflectionZendExtension.php +++ b/Reflection/ReflectionZendExtension.php @@ -23,9 +23,7 @@ class ReflectionZendExtension implements Reflector * @throws \ReflectionException if the extension does not exist. * @since 5.4 */ - public function __construct($name) - { - } + public function __construct($name) {} /** * Exports a reflected zend extension. @@ -38,9 +36,7 @@ public function __construct($name) * @return string|null If the $return parameter is set to {@see true}, then * the export is returned as a string, otherwise {@see null} is returned. */ - public static function export($name, $return = false) - { - } + public static function export($name, $return = false) {} /** * To string handler @@ -49,9 +45,7 @@ public static function export($name, $return = false) * @return string * @since 5.4 */ - public function __toString() - { - } + public function __toString() {} /** * Gets name @@ -61,9 +55,7 @@ public function __toString() * @since 5.4 */ #[Pure] - public function getName() - { - } + public function getName() {} /** * Gets version @@ -73,9 +65,7 @@ public function getName() * @since 5.4 */ #[Pure] - public function getVersion() - { - } + public function getVersion() {} /** * Gets author @@ -85,9 +75,7 @@ public function getVersion() * @since 5.4 */ #[Pure] - public function getAuthor() - { - } + public function getAuthor() {} /** * Gets URL @@ -97,9 +85,7 @@ public function getAuthor() * @since 5.4 */ #[Pure] - public function getURL() - { - } + public function getURL() {} /** * Gets copyright @@ -109,9 +95,7 @@ public function getURL() * @since 5.4 */ #[Pure] - public function getCopyright() - { - } + public function getCopyright() {} /** * Clone handler @@ -120,8 +104,5 @@ public function getCopyright() * @return void * @since 5.4 */ - final private function __clone() - { - } - + final private function __clone() {} } diff --git a/SPL/SPL.php b/SPL/SPL.php index 65c917044..dd76dca45 100644 --- a/SPL/SPL.php +++ b/SPL/SPL.php @@ -7,75 +7,65 @@ * exceptions should directly lead to a fix in your code. * @link https://php.net/manual/en/class.logicexception.php */ -class LogicException extends Exception { -} +class LogicException extends Exception {} /** * Exception thrown if a callback refers to an undefined function or if some * arguments are missing. * @link https://php.net/manual/en/class.badfunctioncallexception.php */ -class BadFunctionCallException extends LogicException { -} +class BadFunctionCallException extends LogicException {} /** * Exception thrown if a callback refers to an undefined method or if some * arguments are missing. * @link https://php.net/manual/en/class.badmethodcallexception.php */ -class BadMethodCallException extends BadFunctionCallException { -} +class BadMethodCallException extends BadFunctionCallException {} /** * Exception thrown if a value does not adhere to a defined valid data domain. * @link https://php.net/manual/en/class.domainexception.php */ -class DomainException extends LogicException { -} +class DomainException extends LogicException {} /** * Exception thrown if an argument does not match with the expected value. * @link https://php.net/manual/en/class.invalidargumentexception.php */ -class InvalidArgumentException extends LogicException { -} +class InvalidArgumentException extends LogicException {} /** * Exception thrown if a length is invalid. * @link https://php.net/manual/en/class.lengthexception.php */ -class LengthException extends LogicException { -} +class LengthException extends LogicException {} /** * Exception thrown when an illegal index was requested. This represents * errors that should be detected at compile time. * @link https://php.net/manual/en/class.outofrangeexception.php */ -class OutOfRangeException extends LogicException { -} +class OutOfRangeException extends LogicException {} /** * Exception thrown if an error which can only be found on runtime occurs. * @link https://php.net/manual/en/class.runtimeexception.php */ -class RuntimeException extends Exception { -} +class RuntimeException extends Exception {} /** * Exception thrown if a value is not a valid key. This represents errors * that cannot be detected at compile time. * @link https://php.net/manual/en/class.outofboundsexception.php */ -class OutOfBoundsException extends RuntimeException { -} +class OutOfBoundsException extends RuntimeException {} /** * Exception thrown when you add an element into a full container. * @link https://php.net/manual/en/class.overflowexception.php */ -class OverflowException extends RuntimeException { -} +class OverflowException extends RuntimeException {} /** * Exception thrown to indicate range errors during program execution. @@ -84,15 +74,13 @@ class OverflowException extends RuntimeException { * DomainException. * @link https://php.net/manual/en/class.rangeexception.php */ -class RangeException extends RuntimeException { -} +class RangeException extends RuntimeException {} /** * Exception thrown when you try to remove an element of an empty container. * @link https://php.net/manual/en/class.underflowexception.php */ -class UnderflowException extends RuntimeException { -} +class UnderflowException extends RuntimeException {} /** * Exception thrown if a value does not match with a set of values. Typically @@ -101,35 +89,34 @@ class UnderflowException extends RuntimeException { * related errors. * @link https://php.net/manual/en/class.unexpectedvalueexception.php */ -class UnexpectedValueException extends RuntimeException { -} +class UnexpectedValueException extends RuntimeException {} /** * The EmptyIterator class for an empty iterator. * @link https://secure.php.net/manual/en/class.emptyiterator.php */ -class EmptyIterator implements Iterator { - +class EmptyIterator implements Iterator +{ /** * Return the current element * @link https://php.net/manual/en/iterator.current.php * @return mixed Can return any type. */ - public function current() { } + public function current() {} /** * Move forward to next element * @link https://php.net/manual/en/iterator.next.php * @return void Any returned value is ignored. */ - public function next() { } + public function next() {} /** * Return the key of the current element * @link https://php.net/manual/en/iterator.key.php * @return string|float|int|bool|null scalar on success, or null on failure. */ - public function key() { } + public function key() {} /** * Checks if current position is valid @@ -137,14 +124,14 @@ public function key() { } * @return bool The return value will be casted to boolean and then evaluated. * Returns true on success or false on failure. */ - public function valid() { } + public function valid() {} /** * Rewind the Iterator to the first element * @link https://php.net/manual/en/iterator.rewind.php * @return void Any returned value is ignored. */ - public function rewind() { } + public function rewind() {} } /** @@ -152,8 +139,8 @@ public function rewind() { } * @link https://secure.php.net/manual/en/class.callbackfilteriterator.php * @since 5.4 */ -class CallbackFilterIterator extends FilterIterator { - +class CallbackFilterIterator extends FilterIterator +{ /** * Creates a filtered iterator using the callback to determine which items are accepted or rejected. * @param Iterator $iterator The iterator to be filtered. @@ -163,7 +150,7 @@ class CallbackFilterIterator extends FilterIterator { * function my_callback($current, $key, $iterator) * @link https://secure.php.net/manual/en/callbackfilteriterator.construct.php */ - function __construct(Iterator $iterator , callable $callback) { } + public function __construct(Iterator $iterator, callable $callback) {} /** * This method calls the callback with the current value, current key and the inner iterator. @@ -171,7 +158,7 @@ function __construct(Iterator $iterator , callable $callback) { } * @link https://secure.php.net/manual/en/callbackfilteriterator.accept.php * @return bool true if the current element is acceptable, otherwise false. */ - public function accept() { } + public function accept() {} } /** @@ -180,8 +167,8 @@ public function accept() { } * @link https://secure.php.net/manual/en/class.recursivecallbackfilteriterator.php * @since 5.4 */ -class RecursiveCallbackFilterIterator extends CallbackFilterIterator implements RecursiveIterator { - +class RecursiveCallbackFilterIterator extends CallbackFilterIterator implements RecursiveIterator +{ /** * Create a RecursiveCallbackFilterIterator from a RecursiveIterator * @param RecursiveIterator $iterator The recursive iterator to be filtered. @@ -189,22 +176,21 @@ class RecursiveCallbackFilterIterator extends CallbackFilterIterator implements * May be any valid callable value. * @link https://secure.php.net/manual/en/recursivecallbackfilteriterator.getchildren.php */ - function __construct( RecursiveIterator $iterator, $callback ) { } + public function __construct(RecursiveIterator $iterator, $callback) {} /** * Check whether the inner iterator's current element has children * @link https://php.net/manual/en/recursiveiterator.haschildren.php * @return bool Returns TRUE if the current element has children, FALSE otherwise. */ - public function hasChildren() { } + public function hasChildren() {} /** * Returns an iterator for the current entry. * @link https://secure.php.net/manual/en/recursivecallbackfilteriterator.haschildren.php * @return RecursiveCallbackFilterIterator containing the children. */ - public function getChildren() { } - + public function getChildren() {} } /** @@ -212,8 +198,8 @@ public function getChildren() { } * over iterators recursively. * @link https://php.net/manual/en/class.recursiveiterator.php */ -interface RecursiveIterator extends Iterator { - +interface RecursiveIterator extends Iterator +{ /** * Returns if an iterator can be created for the current entry. * @link https://php.net/manual/en/recursiveiterator.haschildren.php @@ -233,27 +219,27 @@ public function getChildren(); * Can be used to iterate through recursive iterators. * @link https://php.net/manual/en/class.recursiveiteratoriterator.php */ -class RecursiveIteratorIterator implements OuterIterator { - +class RecursiveIteratorIterator implements OuterIterator +{ /** * The default. Lists only leaves in iteration. */ - const LEAVES_ONLY = 0; + public const LEAVES_ONLY = 0; /** * Lists leaves and parents in iteration with parents coming first. */ - const SELF_FIRST = 1; + public const SELF_FIRST = 1; /** * Lists leaves and parents in iteration with leaves coming first. */ - const CHILD_FIRST = 2; + public const CHILD_FIRST = 2; /** * Special flag: Ignore exceptions thrown in accessing children. */ - const CATCH_GET_CHILD = 16; + public const CATCH_GET_CHILD = 16; /** * Construct a RecursiveIteratorIterator @@ -263,49 +249,49 @@ class RecursiveIteratorIterator implements OuterIterator { * @param int $flags [optional] A bitmask of special flags. See class constants for details. * @since 5.1.3 */ - public function __construct(Traversable $iterator, $mode = self::LEAVES_ONLY, $flags = 0) { } + public function __construct(Traversable $iterator, $mode = self::LEAVES_ONLY, $flags = 0) {} /** * Rewind the iterator to the first element of the top level inner iterator * @link https://php.net/manual/en/recursiveiteratoriterator.rewind.php * @return void */ - public function rewind() { } + public function rewind() {} /** * Check whether the current position is valid * @link https://php.net/manual/en/recursiveiteratoriterator.valid.php * @return bool true if the current position is valid, otherwise false */ - public function valid() { } + public function valid() {} /** * Access the current key * @link https://php.net/manual/en/recursiveiteratoriterator.key.php * @return string|float|int|bool|null The current key. */ - public function key() { } + public function key() {} /** * Access the current element value * @link https://php.net/manual/en/recursiveiteratoriterator.current.php * @return mixed The current elements value. */ - public function current() { } + public function current() {} /** * Move forward to the next element * @link https://php.net/manual/en/recursiveiteratoriterator.next.php * @return void */ - public function next() { } + public function next() {} /** * Get the current depth of the recursive iteration * @link https://php.net/manual/en/recursiveiteratoriterator.getdepth.php * @return int The current depth of the recursive iteration. */ - public function getDepth() { } + public function getDepth() {} /** * The current active sub iterator @@ -313,63 +299,63 @@ public function getDepth() { } * @param int $level [optional] * @return RecursiveIterator The current active sub iterator. */ - public function getSubIterator($level) { } + public function getSubIterator($level) {} /** * Get inner iterator * @link https://php.net/manual/en/recursiveiteratoriterator.getinneriterator.php * @return Iterator The current active sub iterator. */ - public function getInnerIterator() { } + public function getInnerIterator() {} /** * Begin Iteration * @link https://php.net/manual/en/recursiveiteratoriterator.beginiteration.php * @return void */ - public function beginIteration() { } + public function beginIteration() {} /** * End Iteration * @link https://php.net/manual/en/recursiveiteratoriterator.enditeration.php * @return void */ - public function endIteration() { } + public function endIteration() {} /** * Has children * @link https://php.net/manual/en/recursiveiteratoriterator.callhaschildren.php * @return bool true if the element has children, otherwise false */ - public function callHasChildren() { } + public function callHasChildren() {} /** * Get children * @link https://php.net/manual/en/recursiveiteratoriterator.callgetchildren.php * @return RecursiveIterator A RecursiveIterator. */ - public function callGetChildren() { } + public function callGetChildren() {} /** * Begin children * @link https://php.net/manual/en/recursiveiteratoriterator.beginchildren.php * @return void */ - public function beginChildren() { } + public function beginChildren() {} /** * End children * @link https://php.net/manual/en/recursiveiteratoriterator.endchildren.php * @return void */ - public function endChildren() { } + public function endChildren() {} /** * Next element * @link https://php.net/manual/en/recursiveiteratoriterator.nextelement.php * @return void */ - public function nextElement() { } + public function nextElement() {} /** * Set max depth @@ -380,14 +366,14 @@ public function nextElement() { } *

    * @return void */ - public function setMaxDepth($maxDepth = -1) { } + public function setMaxDepth($maxDepth = -1) {} /** * Get max depth * @link https://php.net/manual/en/recursiveiteratoriterator.getmaxdepth.php * @return int|false The maximum accepted depth, or false if any depth is allowed. */ - public function getMaxDepth() { } + public function getMaxDepth() {} } /** @@ -395,8 +381,8 @@ public function getMaxDepth() { } * over iterators. * @link https://php.net/manual/en/class.outeriterator.php */ -interface OuterIterator extends Iterator { - +interface OuterIterator extends Iterator +{ /** * Returns the inner iterator for the current entry. * @link https://php.net/manual/en/outeriterator.getinneriterator.php @@ -405,7 +391,6 @@ interface OuterIterator extends Iterator { public function getInnerIterator(); } - /** * This iterator wrapper allows the conversion of anything that is * Traversable into an Iterator. @@ -415,57 +400,57 @@ public function getInnerIterator(); * misuse, otherwise expect exceptions or fatal errors. * @link https://php.net/manual/en/class.iteratoriterator.php */ -class IteratorIterator implements OuterIterator { - +class IteratorIterator implements OuterIterator +{ /** * Create an iterator from anything that is traversable * @link https://php.net/manual/en/iteratoriterator.construct.php * @param Traversable $iterator * @param string $class [optional] */ - public function __construct(Traversable $iterator, $class = '') { } + public function __construct(Traversable $iterator, $class = '') {} /** * Get the inner iterator * @link https://php.net/manual/en/iteratoriterator.getinneriterator.php * @return Iterator The inner iterator as passed to IteratorIterator::__construct. */ - public function getInnerIterator() { } + public function getInnerIterator() {} /** * Rewind to the first element * @link https://php.net/manual/en/iteratoriterator.rewind.php * @return void */ - public function rewind() { } + public function rewind() {} /** * Checks if the iterator is valid * @link https://php.net/manual/en/iteratoriterator.valid.php * @return bool true if the iterator is valid, otherwise false */ - public function valid() { } + public function valid() {} /** * Get the key of the current element * @link https://php.net/manual/en/iteratoriterator.key.php * @return string|float|int|bool|null The key of the current element. */ - public function key() { } + public function key() {} /** * Get the current value * @link https://php.net/manual/en/iteratoriterator.current.php * @return mixed The value of the current element. */ - public function current() { } + public function current() {} /** * Forward to the next element * @link https://php.net/manual/en/iteratoriterator.next.php * @return void */ - public function next() { } + public function next() {} } /** @@ -474,8 +459,8 @@ public function next() { } * must be implemented in the subclass. * @link https://php.net/manual/en/class.filteriterator.php */ -abstract class FilterIterator extends IteratorIterator { - +abstract class FilterIterator extends IteratorIterator +{ /** * Check whether the current element of the iterator is acceptable * @link https://php.net/manual/en/filteriterator.accept.php @@ -488,49 +473,49 @@ abstract public function accept(); * @link https://php.net/manual/en/filteriterator.construct.php * @param Iterator $iterator */ - public function __construct(Iterator $iterator) { } + public function __construct(Iterator $iterator) {} /** * Rewind the iterator * @link https://php.net/manual/en/filteriterator.rewind.php * @return void */ - public function rewind() { } + public function rewind() {} /** * Check whether the current element is valid * @link https://php.net/manual/en/filteriterator.valid.php * @return bool true if the current element is valid, otherwise false */ - public function valid() { } + public function valid() {} /** * Get the current key * @link https://php.net/manual/en/filteriterator.key.php * @return string|float|int|bool|null The current key. */ - public function key() { } + public function key() {} /** * Get the current element value * @link https://php.net/manual/en/filteriterator.current.php * @return mixed The current element value. */ - public function current() { } + public function current() {} /** * Move the iterator forward * @link https://php.net/manual/en/filteriterator.next.php * @return void */ - public function next() { } + public function next() {} /** * Get the inner iterator * @link https://php.net/manual/en/filteriterator.getinneriterator.php * @return Iterator The inner iterator. */ - public function getInnerIterator() { } + public function getInnerIterator() {} } /** @@ -539,71 +524,71 @@ public function getInnerIterator() { } * The RecursiveFilterIterator::accept must be implemented in the subclass. * @link https://php.net/manual/en/class.recursivefilteriterator.php */ -abstract class RecursiveFilterIterator extends FilterIterator implements RecursiveIterator { - +abstract class RecursiveFilterIterator extends FilterIterator implements RecursiveIterator +{ /** * Create a RecursiveFilterIterator from a RecursiveIterator * @link https://php.net/manual/en/recursivefilteriterator.construct.php * @param RecursiveIterator $iterator */ - public function __construct(RecursiveIterator $iterator) { } + public function __construct(RecursiveIterator $iterator) {} /** * Check whether the inner iterator's current element has children * @link https://php.net/manual/en/recursivefilteriterator.haschildren.php * @return bool true if the inner iterator has children, otherwise false */ - public function hasChildren() { } + public function hasChildren() {} /** * Return the inner iterator's children contained in a RecursiveFilterIterator * @link https://php.net/manual/en/recursivefilteriterator.getchildren.php * @return RecursiveFilterIterator containing the inner iterator's children. */ - public function getChildren() { } + public function getChildren() {} } /** * This extended FilterIterator allows a recursive iteration using RecursiveIteratorIterator that only shows those elements which have children. * @link https://php.net/manual/en/class.parentiterator.php */ -class ParentIterator extends RecursiveFilterIterator { - +class ParentIterator extends RecursiveFilterIterator +{ /** * Determines acceptability * @link https://php.net/manual/en/parentiterator.accept.php * @return bool true if the current element is acceptable, otherwise false. */ - public function accept() { } + public function accept() {} /** * Constructs a ParentIterator * @link https://php.net/manual/en/parentiterator.construct.php * @param RecursiveIterator $iterator */ - public function __construct(RecursiveIterator $iterator) { } + public function __construct(RecursiveIterator $iterator) {} /** * Check whether the inner iterator's current element has children * @link https://php.net/manual/en/recursivefilteriterator.haschildren.php * @return bool true if the inner iterator has children, otherwise false */ - public function hasChildren() { } + public function hasChildren() {} /** * Return the inner iterator's children contained in a RecursiveFilterIterator * @link https://php.net/manual/en/recursivefilteriterator.getchildren.php * @return ParentIterator containing the inner iterator's children. */ - public function getChildren() { } + public function getChildren() {} } /** * The Seekable iterator. * @link https://php.net/manual/en/class.seekableiterator.php */ -interface SeekableIterator extends Iterator { - +interface SeekableIterator extends Iterator +{ /** * Seeks to a position * @link https://php.net/manual/en/seekableiterator.seek.php @@ -620,8 +605,8 @@ public function seek($offset); * a limited subset of items in an Iterator. * @link https://php.net/manual/en/class.limititerator.php */ -class LimitIterator extends IteratorIterator { - +class LimitIterator extends IteratorIterator +{ /** * Construct a LimitIterator * @link https://php.net/manual/en/limititerator.construct.php @@ -629,42 +614,42 @@ class LimitIterator extends IteratorIterator { * @param int $offset [optional] The offset to start at. Must be zero or greater. * @param int $limit [optional] The number of items to iterate. Must be -1 or greater. -1, the default, means no limit. */ - public function __construct(Iterator $iterator, $offset = 0, $limit = -1) { } + public function __construct(Iterator $iterator, $offset = 0, $limit = -1) {} /** * Rewind the iterator to the specified starting offset * @link https://php.net/manual/en/limititerator.rewind.php * @return void */ - public function rewind() { } + public function rewind() {} /** * Check whether the current element is valid * @link https://php.net/manual/en/limititerator.valid.php * @return bool true on success or false on failure. */ - public function valid() { } + public function valid() {} /** * Get current key * @link https://php.net/manual/en/limititerator.key.php * @return string|float|int|bool|null the key for the current item. */ - public function key() { } + public function key() {} /** * Get current element * @link https://php.net/manual/en/limititerator.current.php * @return mixed the current element or null if there is none. */ - public function current() { } + public function current() {} /** * Move the iterator forward * @link https://php.net/manual/en/limititerator.next.php * @return void */ - public function next() { } + public function next() {} /** * Seek to the given position @@ -674,61 +659,61 @@ public function next() { } *

    * @return int the offset position after seeking. */ - public function seek($offset) { } + public function seek($offset) {} /** * Return the current position * @link https://php.net/manual/en/limititerator.getposition.php * @return int The current position. */ - public function getPosition() { } + public function getPosition() {} /** * Get inner iterator * @link https://php.net/manual/en/limititerator.getinneriterator.php * @return Iterator The inner iterator passed to LimitIterator::__construct. */ - public function getInnerIterator() { } + public function getInnerIterator() {} } /** * This object supports cached iteration over another iterator. * @link https://php.net/manual/en/class.cachingiterator.php */ -class CachingIterator extends IteratorIterator implements ArrayAccess, Countable, Stringable { - +class CachingIterator extends IteratorIterator implements ArrayAccess, Countable, Stringable +{ /** * String conversion flag (mutually exclusive): Uses the current element for the iterator's string conversion. * This converts the current element to a string only once, regardless of whether it is needed or not. */ - const CALL_TOSTRING = 1; + public const CALL_TOSTRING = 1; /** * String conversion flag (mutually exclusive). Uses the current key for the iterator's string conversion. */ - const TOSTRING_USE_KEY = 2; + public const TOSTRING_USE_KEY = 2; /** * String conversion flag (mutually exclusive). Uses the current element for the iterator's string conversion. * This converts the current element to a string only when (and every time) it is needed. */ - const TOSTRING_USE_CURRENT = 4; + public const TOSTRING_USE_CURRENT = 4; /** * String conversion flag (mutually exclusive). Forwards the string conversion to the inner iterator. * This converts the inner iterator to a string only once, regardless of whether it is needed or not. */ - const TOSTRING_USE_INNER = 8; + public const TOSTRING_USE_INNER = 8; /** * Ignore exceptions thrown in accessing children. Only used with {@see RecursiveCachingIterator}. */ - const CATCH_GET_CHILD = 16; + public const CATCH_GET_CHILD = 16; /** * Cache all read data. This is needed to use {@see CachingIterator::getCache}, and ArrayAccess and Countable methods. */ - const FULL_CACHE = 256; + public const FULL_CACHE = 256; /** * Constructs a new CachingIterator. @@ -736,70 +721,70 @@ class CachingIterator extends IteratorIterator implements ArrayAccess, Countable * @param Iterator $iterator The iterator to cache. * @param int $flags [optional] A bitmask of flags. See CachingIterator class constants for details. */ - public function __construct(Iterator $iterator, $flags = self::CALL_TOSTRING) { } + public function __construct(Iterator $iterator, $flags = self::CALL_TOSTRING) {} /** * Rewind the iterator * @link https://php.net/manual/en/cachingiterator.rewind.php * @return void */ - public function rewind() { } + public function rewind() {} /** * Check whether the current element is valid * @link https://php.net/manual/en/cachingiterator.valid.php * @return bool true on success or false on failure. */ - public function valid() { } + public function valid() {} /** * Return the key for the current element * @link https://php.net/manual/en/cachingiterator.key.php * @return string|float|int|bool|null */ - public function key() { } + public function key() {} /** * Return the current element * @link https://php.net/manual/en/cachingiterator.current.php * @return mixed */ - public function current() { } + public function current() {} /** * Move the iterator forward * @link https://php.net/manual/en/cachingiterator.next.php * @return void */ - public function next() { } + public function next() {} /** * Check whether the inner iterator has a valid next element * @link https://php.net/manual/en/cachingiterator.hasnext.php * @return bool true on success or false on failure. */ - public function hasNext() { } + public function hasNext() {} /** * Return the string representation of the current iteration based on the flag being used. * @link https://php.net/manual/en/cachingiterator.tostring.php * @return string The string representation of the current iteration based on the flag being used. */ - public function __toString() { } + public function __toString() {} /** * Returns the inner iterator * @link https://php.net/manual/en/cachingiterator.getinneriterator.php * @return Iterator an object implementing the Iterator interface. */ - public function getInnerIterator() { } + public function getInnerIterator() {} /** * Get flags used * @link https://php.net/manual/en/cachingiterator.getflags.php * @return int Bitmask of the flags */ - public function getFlags() { } + public function getFlags() {} /** * The setFlags purpose @@ -807,7 +792,7 @@ public function getFlags() { } * @param int $flags Bitmask of the flags to set. * @return void */ - public function setFlags($flags) { } + public function setFlags($flags) {} /** * Internal cache array index to retrieve. @@ -816,7 +801,7 @@ public function setFlags($flags) { } * @return mixed * @throws BadMethodCallException when the {@see CachingIterator::FULL_CACHE} flag is not being used. */ - public function offsetGet($key) { } + public function offsetGet($key) {} /** * Set an element on the internal cache array. @@ -826,7 +811,7 @@ public function offsetGet($key) { } * @return void * @throws BadMethodCallException when the {@see CachingIterator::FULL_CACHE} flag is not being used. */ - public function offsetSet($key, $value) { } + public function offsetSet($key, $value) {} /** * Remove an element from the internal cache array. @@ -835,7 +820,7 @@ public function offsetSet($key, $value) { } * @return void * @throws BadMethodCallException when the {@see CachingIterator::FULL_CACHE} flag is not being used. */ - public function offsetUnset($key) { } + public function offsetUnset($key) {} /** * Return whether an element at the index exists on the internal cache array. @@ -844,7 +829,7 @@ public function offsetUnset($key) { } * @return bool true if an entry referenced by the offset exists, false otherwise. * @throws BadMethodCallException when the {@see CachingIterator::FULL_CACHE} flag is not being used. */ - public function offsetExists($key) { } + public function offsetExists($key) {} /** * Retrieve the contents of the cache @@ -852,7 +837,7 @@ public function offsetExists($key) { } * @return array An array containing the cache items. * @throws BadMethodCallException when the {@see CachingIterator::FULL_CACHE} flag is not being used. */ - public function getCache() { } + public function getCache() {} /** * The number of elements in the iterator @@ -861,106 +846,105 @@ public function getCache() { } * @throws BadMethodCallException when the {@see CachingIterator::FULL_CACHE} flag is not being used. * @since 5.2.2 */ - public function count() { } + public function count() {} } /** * ... * @link https://php.net/manual/en/class.recursivecachingiterator.php */ -class RecursiveCachingIterator extends CachingIterator implements RecursiveIterator { - +class RecursiveCachingIterator extends CachingIterator implements RecursiveIterator +{ /** * Constructs a new RecursiveCachingIterator. * @link https://php.net/manual/en/recursivecachingiterator.construct.php * @param Iterator $iterator The iterator to cache. * @param int $flags [optional] A bitmask of flags. See CachingIterator class constants for details. */ - public function __construct(Iterator $iterator, $flags = self::CALL_TOSTRING) { } + public function __construct(Iterator $iterator, $flags = self::CALL_TOSTRING) {} /** * Check whether the current element of the inner iterator has children * @link https://php.net/manual/en/recursivecachingiterator.haschildren.php * @return bool true if the inner iterator has children, otherwise false */ - public function hasChildren() { } + public function hasChildren() {} /** * Return the inner iterator's children as a RecursiveCachingIterator * @link https://php.net/manual/en/recursivecachingiterator.getchildren.php * @return RecursiveCachingIterator The inner iterator's children, as a RecursiveCachingIterator. */ - public function getChildren() { } + public function getChildren() {} } - /** * This iterator cannot be rewinded. * @link https://php.net/manual/en/class.norewinditerator.php */ -class NoRewindIterator extends IteratorIterator { - +class NoRewindIterator extends IteratorIterator +{ /** * Construct a NoRewindIterator * @link https://php.net/manual/en/norewinditerator.construct.php * @param Iterator $iterator */ - public function __construct(Iterator $iterator) { } + public function __construct(Iterator $iterator) {} /** * Prevents the rewind operation on the inner iterator. * @link https://php.net/manual/en/norewinditerator.rewind.php * @return void */ - public function rewind() { } + public function rewind() {} /** * Validates the iterator * @link https://php.net/manual/en/norewinditerator.valid.php * @return bool true on success or false on failure. */ - public function valid() { } + public function valid() {} /** * Get the current key * @link https://php.net/manual/en/norewinditerator.key.php * @return string|float|int|bool|null The current key. */ - public function key() { } + public function key() {} /** * Get the current value * @link https://php.net/manual/en/norewinditerator.current.php * @return mixed The current value. */ - public function current() { } + public function current() {} /** * Forward to the next element * @link https://php.net/manual/en/norewinditerator.next.php * @return void */ - public function next() { } + public function next() {} /** * Get the inner iterator * @link https://php.net/manual/en/norewinditerator.getinneriterator.php * @return Iterator The inner iterator, as passed to NoRewindIterator::__construct. */ - public function getInnerIterator() { } + public function getInnerIterator() {} } /** * An Iterator that iterates over several iterators one after the other. * @link https://php.net/manual/en/class.appenditerator.php */ -class AppendIterator extends IteratorIterator { - +class AppendIterator extends IteratorIterator +{ /** * Constructs an AppendIterator * @link https://php.net/manual/en/appenditerator.construct.php */ - public function __construct() { } + public function __construct() {} /** * Appends an iterator @@ -970,63 +954,63 @@ public function __construct() { } *

    * @return void */ - public function append(Iterator $iterator) { } + public function append(Iterator $iterator) {} /** * Rewinds the Iterator * @link https://php.net/manual/en/appenditerator.rewind.php * @return void */ - public function rewind() { } + public function rewind() {} /** * Checks validity of the current element * @link https://php.net/manual/en/appenditerator.valid.php * @return bool true on success or false on failure. */ - public function valid() { } + public function valid() {} /** * Gets the current key * @link https://php.net/manual/en/appenditerator.key.php * @return string|float|int|bool|null The current key if it is valid or null otherwise. */ - public function key() { } + public function key() {} /** * Gets the current value * @link https://php.net/manual/en/appenditerator.current.php * @return mixed The current value if it is valid or null otherwise. */ - public function current() { } + public function current() {} /** * Moves to the next element * @link https://php.net/manual/en/appenditerator.next.php * @return void */ - public function next() { } + public function next() {} /** * Gets an inner iterator * @link https://php.net/manual/en/appenditerator.getinneriterator.php * @return Iterator the current inner Iterator. */ - public function getInnerIterator() { } + public function getInnerIterator() {} /** * Gets an index of iterators * @link https://php.net/manual/en/appenditerator.getiteratorindex.php * @return int The index of iterators. */ - public function getIteratorIndex() { } + public function getIteratorIndex() {} /** * The getArrayIterator method * @link https://php.net/manual/en/appenditerator.getarrayiterator.php * @return ArrayIterator containing the appended iterators. */ - public function getArrayIterator() { } + public function getArrayIterator() {} } /** @@ -1035,64 +1019,63 @@ public function getArrayIterator() { } * rewind the iterator upon reaching its end. * @link https://php.net/manual/en/class.infiniteiterator.php */ -class InfiniteIterator extends IteratorIterator { - +class InfiniteIterator extends IteratorIterator +{ /** * Constructs an InfiniteIterator * @link https://php.net/manual/en/infiniteiterator.construct.php * @param Iterator $iterator */ - public function __construct(Iterator $iterator) { } + public function __construct(Iterator $iterator) {} /** * Moves the inner Iterator forward or rewinds it * @link https://php.net/manual/en/infiniteiterator.next.php * @return void */ - public function next() { } + public function next() {} } /** * This iterator can be used to filter another iterator based on a regular expression. * @link https://php.net/manual/en/class.regexiterator.php */ -class RegexIterator extends FilterIterator { - +class RegexIterator extends FilterIterator +{ /** * Return all matches for the current entry @see preg_match_all */ - const ALL_MATCHES = 2; + public const ALL_MATCHES = 2; /** * Return the first match for the current entry @see preg_match */ - const GET_MATCH = 1; + public const GET_MATCH = 1; /** * Only execute match (filter) for the current entry @see preg_match */ - const MATCH = 0; + public const MATCH = 0; /** * Replace the current entry (Not fully implemented yet) @see preg_replace */ - const REPLACE = 4; + public const REPLACE = 4; /** * Returns the split values for the current entry @see preg_split */ - const SPLIT = 3; + public const SPLIT = 3; /** * Special flag: Match the entry key instead of the entry value. */ - const USE_KEY = 1; + public const USE_KEY = 1; - const INVERT_MATCH = 2; + public const INVERT_MATCH = 2; public $replacement; - /** * Create a new RegexIterator * @link https://php.net/manual/en/regexiterator.construct.php @@ -1102,21 +1085,21 @@ class RegexIterator extends FilterIterator { * @param int $flags [optional] Special flags, see RegexIterator::setFlags() for a list of available flags. * @param int $pregFlags [optional] The regular expression flags. These flags depend on the operation mode parameter */ - public function __construct(Iterator $iterator, $pattern, $mode = self::MATCH, $flags = 0, $pregFlags = 0) { } + public function __construct(Iterator $iterator, $pattern, $mode = self::MATCH, $flags = 0, $pregFlags = 0) {} /** * Get accept status * @link https://php.net/manual/en/regexiterator.accept.php * @return bool true if a match, false otherwise. */ - public function accept() { } + public function accept() {} /** * Returns operation mode. * @link https://php.net/manual/en/regexiterator.getmode.php * @return int the operation mode. */ - public function getMode() { } + public function getMode() {} /** * Sets the operation mode. @@ -1168,14 +1151,14 @@ public function getMode() { } *

    * @return void */ - public function setMode($mode) { } + public function setMode($mode) {} /** * Get flags * @link https://php.net/manual/en/regexiterator.getflags.php * @return int the set flags. */ - public function getFlags() { } + public function getFlags() {} /** * Sets the flags. @@ -1203,14 +1186,14 @@ public function getFlags() { } *

    * @return void */ - public function setFlags($flags) { } + public function setFlags($flags) {} /** - * Returns current regular expression - * @link https://secure.php.net/manual/en/regexiterator.getregex.php - * @return string - * @since 5.4 - */ + * Returns current regular expression + * @link https://secure.php.net/manual/en/regexiterator.getregex.php + * @return string + * @since 5.4 + */ public function getRegex() {} /** @@ -1218,7 +1201,7 @@ public function getRegex() {} * @link https://php.net/manual/en/regexiterator.getpregflags.php * @return int a bitmask of the regular expression flags. */ - public function getPregFlags() { } + public function getPregFlags() {} /** * Sets the regular expression flags. @@ -1229,14 +1212,15 @@ public function getPregFlags() { } *

    * @return void */ - public function setPregFlags($pregFlags) { } + public function setPregFlags($pregFlags) {} } /** * This recursive iterator can filter another recursive iterator via a regular expression. * @link https://php.net/manual/en/class.recursiveregexiterator.php */ -class RecursiveRegexIterator extends RegexIterator implements RecursiveIterator { +class RecursiveRegexIterator extends RegexIterator implements RecursiveIterator +{ /** * Creates a new RecursiveRegexIterator. * @link https://php.net/manual/en/recursiveregexiterator.construct.php @@ -1246,39 +1230,38 @@ class RecursiveRegexIterator extends RegexIterator implements RecursiveIterator * @param int $flags [optional] Special flags, see RegexIterator::setFlags() for a list of available flags. * @param int $pregFlags [optional] The regular expression flags. These flags depend on the operation mode parameter */ - public function __construct(RecursiveIterator $iterator, $pattern, $mode = self::MATCH, $flags = 0, $pregFlags = 0) { } + public function __construct(RecursiveIterator $iterator, $pattern, $mode = self::MATCH, $flags = 0, $pregFlags = 0) {} /** * Returns whether an iterator can be obtained for the current entry. * @link https://php.net/manual/en/recursiveregexiterator.haschildren.php * @return bool true if an iterator can be obtained for the current entry, otherwise returns false. */ - public function hasChildren() { } + public function hasChildren() {} /** * Returns an iterator for the current entry. * @link https://php.net/manual/en/recursiveregexiterator.getchildren.php * @return RecursiveRegexIterator An iterator for the current entry, if it can be iterated over by the inner iterator. */ - public function getChildren() { } + public function getChildren() {} } /** * Allows iterating over a RecursiveIterator to generate an ASCII graphic tree. * @link https://php.net/manual/en/class.recursivetreeiterator.php */ -class RecursiveTreeIterator extends RecursiveIteratorIterator { - - const BYPASS_CURRENT = 4; - const BYPASS_KEY = 8; - - const PREFIX_LEFT = 0; - const PREFIX_MID_HAS_NEXT = 1; - const PREFIX_MID_LAST = 2; - const PREFIX_END_HAS_NEXT = 3; - const PREFIX_END_LAST = 4; - const PREFIX_RIGHT = 5; +class RecursiveTreeIterator extends RecursiveIteratorIterator +{ + public const BYPASS_CURRENT = 4; + public const BYPASS_KEY = 8; + public const PREFIX_LEFT = 0; + public const PREFIX_MID_HAS_NEXT = 1; + public const PREFIX_MID_LAST = 2; + public const PREFIX_END_HAS_NEXT = 3; + public const PREFIX_END_LAST = 4; + public const PREFIX_RIGHT = 5; /** * Construct a RecursiveTreeIterator @@ -1289,98 +1272,98 @@ class RecursiveTreeIterator extends RecursiveIteratorIterator { * @param int $mode [optional] Flags to affect the behavior of the {@see RecursiveIteratorIterator} used internally. */ public function __construct($iterator, $flags = self::BYPASS_KEY, $cachingIteratorFlags = CachingIterator::CATCH_GET_CHILD, - $mode = self::SELF_FIRST) { } + $mode = self::SELF_FIRST) {} /** * Rewind iterator * @link https://php.net/manual/en/recursivetreeiterator.rewind.php * @return void */ - public function rewind() { } + public function rewind() {} /** * Check validity * @link https://php.net/manual/en/recursivetreeiterator.valid.php * @return bool true if the current position is valid, otherwise false */ - public function valid() { } + public function valid() {} /** * Get the key of the current element * @link https://php.net/manual/en/recursivetreeiterator.key.php * @return string the current key prefixed and postfixed. */ - public function key() { } + public function key() {} /** * Get current element * @link https://php.net/manual/en/recursivetreeiterator.current.php * @return string the current element prefixed and postfixed. */ - public function current() { } + public function current() {} /** * Move to next element * @link https://php.net/manual/en/recursivetreeiterator.next.php * @return void */ - public function next() { } + public function next() {} /** * Begin iteration * @link https://php.net/manual/en/recursivetreeiterator.beginiteration.php * @return RecursiveIterator A RecursiveIterator. */ - public function beginIteration() { } + public function beginIteration() {} /** * End iteration * @link https://php.net/manual/en/recursivetreeiterator.enditeration.php * @return void */ - public function endIteration() { } + public function endIteration() {} /** * Has children * @link https://php.net/manual/en/recursivetreeiterator.callhaschildren.php * @return bool true if there are children, otherwise false */ - public function callHasChildren() { } + public function callHasChildren() {} /** * Get children * @link https://php.net/manual/en/recursivetreeiterator.callgetchildren.php * @return RecursiveIterator A RecursiveIterator. */ - public function callGetChildren() { } + public function callGetChildren() {} /** * Begin children * @link https://php.net/manual/en/recursivetreeiterator.beginchildren.php * @return void */ - public function beginChildren() { } + public function beginChildren() {} /** * End children * @link https://php.net/manual/en/recursivetreeiterator.endchildren.php * @return void */ - public function endChildren() { } + public function endChildren() {} /** * Next element * @link https://php.net/manual/en/recursivetreeiterator.nextelement.php * @return void */ - public function nextElement() { } + public function nextElement() {} /** * Get the prefix * @link https://php.net/manual/en/recursivetreeiterator.getprefix.php * @return string the string to place in front of current element */ - public function getPrefix() { } + public function getPrefix() {} /** * @param string $postfix @@ -1398,38 +1381,38 @@ public function setPostfix($postfix) {} *

    * @return void */ - public function setPrefixPart($part, $value) { } + public function setPrefixPart($part, $value) {} /** * Get current entry * @link https://php.net/manual/en/recursivetreeiterator.getentry.php * @return string the part of the tree built for the current element. */ - public function getEntry() { } + public function getEntry() {} /** * Get the postfix * @link https://php.net/manual/en/recursivetreeiterator.getpostfix.php * @return string to place after the current element. */ - public function getPostfix() { } + public function getPostfix() {} } /** * This class allows objects to work as arrays. * @link https://php.net/manual/en/class.arrayobject.php */ -class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Countable { +class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Countable +{ /** * Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.). */ - const STD_PROP_LIST = 1; + public const STD_PROP_LIST = 1; /** * Entries can be accessed as properties (read and write). */ - const ARRAY_AS_PROPS = 2; - + public const ARRAY_AS_PROPS = 2; /** * Construct a new array object @@ -1437,9 +1420,8 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count * @param array|object $array The input parameter accepts an array or an Object. * @param int $flags Flags to control the behaviour of the ArrayObject object. * @param string $iteratorClass Specify the class that will be used for iteration of the ArrayObject object. ArrayIterator is the default class used. - * */ - public function __construct($array = array(), $flags = 0, $iteratorClass = "ArrayIterator") { } + public function __construct($array = [], $flags = 0, $iteratorClass = "ArrayIterator") {} /** * Returns whether the requested index exists @@ -1449,7 +1431,7 @@ public function __construct($array = array(), $flags = 0, $iteratorClass = "Arra *

    * @return bool true if the requested index exists, otherwise false */ - public function offsetExists($key) { } + public function offsetExists($key) {} /** * Returns the value at the specified index @@ -1459,7 +1441,7 @@ public function offsetExists($key) { } *

    * @return mixed|false The value at the specified index or false. */ - public function offsetGet($key) { } + public function offsetGet($key) {} /** * Sets the value at the specified index to newval @@ -1472,7 +1454,7 @@ public function offsetGet($key) { } *

    * @return void */ - public function offsetSet($key, $value) { } + public function offsetSet($key, $value) {} /** * Unsets the value at the specified index @@ -1482,7 +1464,7 @@ public function offsetSet($key, $value) { } *

    * @return void */ - public function offsetUnset($key) { } + public function offsetUnset($key) {} /** * Appends the value @@ -1492,7 +1474,7 @@ public function offsetUnset($key) { } *

    * @return void */ - public function append($value) { } + public function append($value) {} /** * Creates a copy of the ArrayObject. @@ -1500,7 +1482,7 @@ public function append($value) { } * @return array a copy of the array. When the ArrayObject refers to an object * an array of the public properties of that object will be returned. */ - public function getArrayCopy() { } + public function getArrayCopy() {} /** * Get the number of public properties in the ArrayObject @@ -1508,14 +1490,14 @@ public function getArrayCopy() { } * @link https://php.net/manual/en/arrayobject.count.php * @return int The number of public properties in the ArrayObject. */ - public function count() { } + public function count() {} /** * Gets the behavior flags. * @link https://php.net/manual/en/arrayobject.getflags.php * @return int the behavior flags of the ArrayObject. */ - public function getFlags() { } + public function getFlags() {} /** * Sets the behavior flags. @@ -1552,7 +1534,7 @@ public function getFlags() { } *

    * @return void */ - public function setFlags($flags) { } + public function setFlags($flags) {} /** * Sort the entries by value @@ -1560,7 +1542,7 @@ public function setFlags($flags) { } * @param int $flags [optional] * @return void */ - public function asort($flags = SORT_REGULAR) { } + public function asort($flags = SORT_REGULAR) {} /** * Sort the entries by key @@ -1568,7 +1550,7 @@ public function asort($flags = SORT_REGULAR) { } * @param int $flags [optional] * @return void */ - public function ksort($flags = SORT_REGULAR) { } + public function ksort($flags = SORT_REGULAR) {} /** * Sort the entries with a user-defined comparison function and maintain key association @@ -1583,7 +1565,7 @@ public function ksort($flags = SORT_REGULAR) { } *

    * @return void */ - public function uasort($callback) { } + public function uasort($callback) {} /** * Sort the entries by keys using a user-defined comparison function @@ -1601,21 +1583,21 @@ public function uasort($callback) { } *

    * @return void */ - public function uksort($callback) { } + public function uksort($callback) {} /** * Sort entries using a "natural order" algorithm * @link https://php.net/manual/en/arrayobject.natsort.php * @return void */ - public function natsort() { } + public function natsort() {} /** * Sort an array using a case insensitive "natural order" algorithm * @link https://php.net/manual/en/arrayobject.natcasesort.php * @return void */ - public function natcasesort() { } + public function natcasesort() {} /** * Unserialize an ArrayObject @@ -1625,21 +1607,20 @@ public function natcasesort() { } *

    * @return void The unserialized ArrayObject. */ - public function unserialize($data) { } + public function unserialize($data) {} /** * Serialize an ArrayObject * @link https://php.net/manual/en/arrayobject.serialize.php * @return string The serialized representation of the ArrayObject. */ - public function serialize() { } + public function serialize() {} /** * @return array * @since 7.4 */ - public function __debugInfo(){} - + public function __debugInfo() {} /** * @return array @@ -1658,7 +1639,7 @@ public function __unserialize(array $data) {} * @link https://php.net/manual/en/arrayobject.getiterator.php * @return ArrayIterator An iterator from an ArrayObject. */ - public function getIterator() { } + public function getIterator() {} /** * Exchange the array for another one. @@ -1668,7 +1649,7 @@ public function getIterator() { } *

    * @return array the old array. */ - public function exchangeArray($array) { } + public function exchangeArray($array) {} /** * Sets the iterator classname for the ArrayObject. @@ -1678,14 +1659,14 @@ public function exchangeArray($array) { } *

    * @return void */ - public function setIteratorClass($iteratorClass) { } + public function setIteratorClass($iteratorClass) {} /** * Gets the iterator classname for the ArrayObject. * @link https://php.net/manual/en/arrayobject.getiteratorclass.php * @return string the iterator class name that is used to iterate over this object. */ - public function getIteratorClass() { } + public function getIteratorClass() {} } /** @@ -1693,10 +1674,10 @@ public function getIteratorClass() { } * over Arrays and Objects. * @link https://php.net/manual/en/class.arrayiterator.php */ -class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Countable { - const STD_PROP_LIST = 1; - const ARRAY_AS_PROPS = 2; - +class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Countable +{ + public const STD_PROP_LIST = 1; + public const ARRAY_AS_PROPS = 2; /** * Construct an ArrayIterator @@ -1705,7 +1686,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun * @param int $flags Flags to control the behaviour of the ArrayObject object. * @see ArrayObject::setFlags() */ - public function __construct($array = array(), $flags = 0) { } + public function __construct($array = [], $flags = 0) {} /** * Check if offset exists @@ -1715,7 +1696,7 @@ public function __construct($array = array(), $flags = 0) { } *

    * @return bool true if the offset exists, otherwise false */ - public function offsetExists($key) { } + public function offsetExists($key) {} /** * Get value for an offset @@ -1725,7 +1706,7 @@ public function offsetExists($key) { } *

    * @return mixed The value at offset index. */ - public function offsetGet($key) { } + public function offsetGet($key) {} /** * Set value for an offset @@ -1738,7 +1719,7 @@ public function offsetGet($key) { } *

    * @return void */ - public function offsetSet($key, $value) { } + public function offsetSet($key, $value) {} /** * Unset value for an offset @@ -1748,7 +1729,7 @@ public function offsetSet($key, $value) { } *

    * @return void */ - public function offsetUnset($key) { } + public function offsetUnset($key) {} /** * Append an element @@ -1758,7 +1739,7 @@ public function offsetUnset($key) { } *

    * @return void */ - public function append($value) { } + public function append($value) {} /** * Get array copy @@ -1766,7 +1747,7 @@ public function append($value) { } * @return array A copy of the array, or array of public properties * if ArrayIterator refers to an object. */ - public function getArrayCopy() { } + public function getArrayCopy() {} /** * Count elements @@ -1774,14 +1755,14 @@ public function getArrayCopy() { } * @return int The number of elements or public properties in the associated * array or object, respectively. */ - public function count() { } + public function count() {} /** * Get flags * @link https://php.net/manual/en/arrayiterator.getflags.php * @return string The current flags. */ - public function getFlags() { } + public function getFlags() {} /** * Set behaviour flags @@ -1794,7 +1775,7 @@ public function getFlags() { } *

    * @return void */ - public function setFlags($flags) { } + public function setFlags($flags) {} /** * Sort array by values @@ -1802,7 +1783,7 @@ public function setFlags($flags) { } * @param int $flags [optional] * @return void */ - public function asort($flags = SORT_REGULAR) { } + public function asort($flags = SORT_REGULAR) {} /** * Sort array by keys @@ -1810,7 +1791,7 @@ public function asort($flags = SORT_REGULAR) { } * @param int $flags [optional] * @return void */ - public function ksort($flags = SORT_REGULAR) { } + public function ksort($flags = SORT_REGULAR) {} /** * User defined sort @@ -1820,7 +1801,7 @@ public function ksort($flags = SORT_REGULAR) { } *

    * @return void */ - public function uasort($callback) { } + public function uasort($callback) {} /** * User defined sort @@ -1830,21 +1811,21 @@ public function uasort($callback) { } *

    * @return void */ - public function uksort($callback) { } + public function uksort($callback) {} /** * Sort an array naturally * @link https://php.net/manual/en/arrayiterator.natsort.php * @return void */ - public function natsort() { } + public function natsort() {} /** * Sort an array naturally, case insensitive * @link https://php.net/manual/en/arrayiterator.natcasesort.php * @return void */ - public function natcasesort() { } + public function natcasesort() {} /** * Unserialize @@ -1854,49 +1835,49 @@ public function natcasesort() { } *

    * @return string The ArrayIterator. */ - public function unserialize($data) { } + public function unserialize($data) {} /** * Serialize * @link https://php.net/manual/en/arrayiterator.serialize.php * @return string The serialized ArrayIterator. */ - public function serialize() { } + public function serialize() {} /** * Rewind array back to the start * @link https://php.net/manual/en/arrayiterator.rewind.php * @return void */ - public function rewind() { } + public function rewind() {} /** * Return current array entry * @link https://php.net/manual/en/arrayiterator.current.php * @return mixed The current array entry. */ - public function current() { } + public function current() {} /** * Return current array key * @link https://php.net/manual/en/arrayiterator.key.php * @return string|float|int|bool|null The current array key. */ - public function key() { } + public function key() {} /** * Move to next entry * @link https://php.net/manual/en/arrayiterator.next.php * @return void */ - public function next() { } + public function next() {} /** * Check whether array contains more entries * @link https://php.net/manual/en/arrayiterator.valid.php * @return bool */ - public function valid() { } + public function valid() {} /** * Seek to position @@ -1906,14 +1887,13 @@ public function valid() { } *

    * @return void */ - public function seek($offset) { } + public function seek($offset) {} /** * @return array * @since 7.4 */ - public function __debugInfo(){} - + public function __debugInfo() {} /** * @return array @@ -1926,7 +1906,6 @@ public function __serialize() {} * @since 7.4 */ public function __unserialize(array $data) {} - } /** @@ -1935,9 +1914,9 @@ public function __unserialize(array $data) {} * over the current iterator entry. * @link https://php.net/manual/en/class.recursivearrayiterator.php */ -class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator { - const CHILD_ARRAYS_ONLY = 4; - +class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator +{ + public const CHILD_ARRAYS_ONLY = 4; /** * Returns whether current entry is an array or an object. @@ -1945,12 +1924,12 @@ class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator * @return bool true if the current entry is an array or an object, * otherwise false is returned. */ - public function hasChildren() { } + public function hasChildren() {} /** * Returns an iterator for the current entry if it is an array or an object. * @link https://php.net/manual/en/recursivearrayiterator.getchildren.php * @return RecursiveArrayIterator An iterator for the current entry, if it is an array or object. */ - public function getChildren() { } + public function getChildren() {} } diff --git a/SPL/SPL_c1.php b/SPL/SPL_c1.php index 5d390ddb4..1a210b75a 100644 --- a/SPL/SPL_c1.php +++ b/SPL/SPL_c1.php @@ -8,15 +8,15 @@ * information for an individual file. * @link https://php.net/manual/en/class.splfileinfo.php */ -class SplFileInfo implements Stringable { - +class SplFileInfo implements Stringable +{ /** * Construct a new SplFileInfo object * @link https://php.net/manual/en/splfileinfo.construct.php * @param string $filename * @since 5.1.2 */ - public function __construct ($filename) {} + public function __construct($filename) {} /** * Gets the path without filename @@ -24,7 +24,7 @@ public function __construct ($filename) {} * @return string the path to the file. * @since 5.1.2 */ - public function getPath () {} + public function getPath() {} /** * Gets the filename @@ -32,7 +32,7 @@ public function getPath () {} * @return string The filename. * @since 5.1.2 */ - public function getFilename () {} + public function getFilename() {} /** * Gets the file extension @@ -41,7 +41,7 @@ public function getFilename () {} * empty string if the file has no extension. * @since 5.3.6 */ - public function getExtension () {} + public function getExtension() {} /** * Gets the base name of the file @@ -52,7 +52,7 @@ public function getExtension () {} * @return string the base name without path information. * @since 5.2.2 */ - public function getBasename ($suffix = null) {} + public function getBasename($suffix = null) {} /** * Gets the path to the file @@ -60,7 +60,7 @@ public function getBasename ($suffix = null) {} * @return string The path to the file. * @since 5.1.2 */ - public function getPathname () {} + public function getPathname() {} /** * Gets file permissions @@ -68,7 +68,7 @@ public function getPathname () {} * @return int the file permissions. * @since 5.1.2 */ - public function getPerms () {} + public function getPerms() {} /** * Gets the inode for the file @@ -76,7 +76,7 @@ public function getPerms () {} * @return int the inode number for the filesystem object. * @since 5.1.2 */ - public function getInode () {} + public function getInode() {} /** * Gets file size @@ -84,7 +84,7 @@ public function getInode () {} * @return int The filesize in bytes. * @since 5.1.2 */ - public function getSize () {} + public function getSize() {} /** * Gets the owner of the file @@ -92,7 +92,7 @@ public function getSize () {} * @return int The owner id in numerical format. * @since 5.1.2 */ - public function getOwner () {} + public function getOwner() {} /** * Gets the file group @@ -100,7 +100,7 @@ public function getOwner () {} * @return int The group id in numerical format. * @since 5.1.2 */ - public function getGroup () {} + public function getGroup() {} /** * Gets last access time of the file @@ -108,7 +108,7 @@ public function getGroup () {} * @return int the time the file was last accessed. * @since 5.1.2 */ - public function getATime () {} + public function getATime() {} /** * Gets the last modified time @@ -116,7 +116,7 @@ public function getATime () {} * @return int the last modified time for the file, in a Unix timestamp. * @since 5.1.2 */ - public function getMTime () {} + public function getMTime() {} /** * Gets the inode change time @@ -124,7 +124,7 @@ public function getMTime () {} * @return int The last change time, in a Unix timestamp. * @since 5.1.2 */ - public function getCTime () {} + public function getCTime() {} /** * Gets file type @@ -134,7 +134,7 @@ public function getCTime () {} * or dir * @since 5.1.2 */ - public function getType () {} + public function getType() {} /** * Tells if the entry is writable @@ -142,7 +142,7 @@ public function getType () {} * @return bool true if writable, false otherwise; * @since 5.1.2 */ - public function isWritable () {} + public function isWritable() {} /** * Tells if file is readable @@ -150,7 +150,7 @@ public function isWritable () {} * @return bool true if readable, false otherwise. * @since 5.1.2 */ - public function isReadable () {} + public function isReadable() {} /** * Tells if the file is executable @@ -158,7 +158,7 @@ public function isReadable () {} * @return bool true if executable, false otherwise. * @since 5.1.2 */ - public function isExecutable () {} + public function isExecutable() {} /** * Tells if the object references a regular file @@ -166,7 +166,7 @@ public function isExecutable () {} * @return bool true if the file exists and is a regular file (not a link), false otherwise. * @since 5.1.2 */ - public function isFile () {} + public function isFile() {} /** * Tells if the file is a directory @@ -174,7 +174,7 @@ public function isFile () {} * @return bool true if a directory, false otherwise. * @since 5.1.2 */ - public function isDir () {} + public function isDir() {} /** * Tells if the file is a link @@ -182,7 +182,7 @@ public function isDir () {} * @return bool true if the file is a link, false otherwise. * @since 5.1.2 */ - public function isLink () {} + public function isLink() {} /** * Gets the target of a link @@ -190,7 +190,7 @@ public function isLink () {} * @return string the target of the filesystem link. * @since 5.2.2 */ - public function getLinkTarget () {} + public function getLinkTarget() {} /** * Gets absolute path to file @@ -198,49 +198,49 @@ public function getLinkTarget () {} * @return string|false the path to the file, or FALSE if the file does not exist. * @since 5.2.2 */ - public function getRealPath () {} + public function getRealPath() {} /** * Gets an SplFileInfo object for the file * @link https://php.net/manual/en/splfileinfo.getfileinfo.php * @param string $class [optional]

    - * Name of an SplFileInfo derived class to use. + * Name of an SplFileInfo derived class to use. *

    - * @return SplFileInfo An SplFileInfo object created for the file. + * @return SplFileInfo An SplFileInfo object created for the file. * @since 5.1.2 */ - public function getFileInfo ($class = null) {} + public function getFileInfo($class = null) {} /** * Gets an SplFileInfo object for the path * @link https://php.net/manual/en/splfileinfo.getpathinfo.php * @param string $class [optional]

    - * Name of an SplFileInfo derived class to use. + * Name of an SplFileInfo derived class to use. *

    - * @return SplFileInfo an SplFileInfo object for the parent path of the file. + * @return SplFileInfo an SplFileInfo object for the parent path of the file. * @since 5.1.2 */ - public function getPathInfo ($class = null) {} + public function getPathInfo($class = null) {} - /** - * Gets an SplFileObject object for the file - * @link https://php.net/manual/en/splfileinfo.openfile.php - * @param string $mode [optional]

    - * The mode for opening the file. See the fopen - * documentation for descriptions of possible modes. The default - * is read only. - *

    - * @param bool $useIncludePath [optional]

    - *

    - * @param resource $context [optional]

    - *

    - * @return SplFileObject The opened file as an SplFileObject object. - * @since 5.1.2 - */ - public function openFile ($mode = 'r', $useIncludePath = false, $context = null) {} + /** + * Gets an SplFileObject object for the file + * @link https://php.net/manual/en/splfileinfo.openfile.php + * @param string $mode [optional]

    + * The mode for opening the file. See the fopen + * documentation for descriptions of possible modes. The default + * is read only. + *

    + * @param bool $useIncludePath [optional]

    + *

    + * @param resource $context [optional]

    + *

    + * @return SplFileObject The opened file as an SplFileObject object. + * @since 5.1.2 + */ + public function openFile($mode = 'r', $useIncludePath = false, $context = null) {} /** - * Sets the class name used with SplFileInfo::openFile + * Sets the class name used with SplFileInfo::openFile * @link https://php.net/manual/en/splfileinfo.setfileclass.php * @param string $class [optional]

    * The class name to use when openFile() is called. @@ -248,7 +248,7 @@ public function openFile ($mode = 'r', $useIncludePath = false, $context = null) * @return void * @since 5.1.2 */ - public function setFileClass ($class = SplFileObject::class) {} + public function setFileClass($class = SplFileObject::class) {} /** * Sets the class used with getFileInfo and getPathInfo @@ -259,7 +259,7 @@ public function setFileClass ($class = SplFileObject::class) {} * @return void * @since 5.1.2 */ - public function setInfoClass ($class = SplFileInfo::class) {} + public function setInfoClass($class = SplFileInfo::class) {} /** * Returns the path to the file as a string @@ -267,19 +267,17 @@ public function setInfoClass ($class = SplFileInfo::class) {} * @return string the path to the file. * @since 5.1.2 */ - public function __toString () {} + public function __toString() {} - public final function _bad_state_ex (){} + final public function _bad_state_ex() {} - public function __wakeup() - { - } + public function __wakeup() {} /** * @return array * @since 7.4 */ - public function __debugInfo(){} + public function __debugInfo() {} } /** @@ -287,8 +285,8 @@ public function __debugInfo(){} * the contents of filesystem directories. * @link https://php.net/manual/en/class.directoryiterator.php */ -class DirectoryIterator extends SplFileInfo implements SeekableIterator { - +class DirectoryIterator extends SplFileInfo implements SeekableIterator +{ /** * Constructs a new directory iterator from a path * @link https://php.net/manual/en/directoryiterator.construct.php @@ -296,51 +294,50 @@ class DirectoryIterator extends SplFileInfo implements SeekableIterator { * @throws UnexpectedValueException if the path cannot be opened. * @throws RuntimeException if the path is an empty string. */ - public function __construct ($directory) {} - + public function __construct($directory) {} /** * Determine if current DirectoryIterator item is '.' or '..' * @link https://php.net/manual/en/directoryiterator.isdot.php * @return bool true if the entry is . or .., * otherwise false - */ - public function isDot () {} + */ + public function isDot() {} /** * Rewind the DirectoryIterator back to the start * @link https://php.net/manual/en/directoryiterator.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Check whether current DirectoryIterator position is a valid file * @link https://php.net/manual/en/directoryiterator.valid.php * @return bool true if the position is valid, otherwise false */ - public function valid () {} + public function valid() {} /** * Return the key for the current DirectoryIterator item * @link https://php.net/manual/en/directoryiterator.key.php - * @return string The key for the current DirectoryIterator item. + * @return string The key for the current DirectoryIterator item. */ - public function key () {} + public function key() {} /** * Return the current DirectoryIterator item. * @link https://php.net/manual/en/directoryiterator.current.php - * @return DirectoryIterator The current DirectoryIterator item. + * @return DirectoryIterator The current DirectoryIterator item. */ - public function current () {} + public function current() {} /** * Move forward to next DirectoryIterator item * @link https://php.net/manual/en/directoryiterator.next.php * @return void */ - public function next () {} + public function next() {} /** * Seek to a DirectoryIterator item @@ -349,27 +346,28 @@ public function next () {} * The zero-based numeric position to seek to. *

    * @return void - */ - public function seek ($offset) {} + */ + public function seek($offset) {} } /** * The Filesystem iterator * @link https://php.net/manual/en/class.filesystemiterator.php */ -class FilesystemIterator extends DirectoryIterator { - const CURRENT_MODE_MASK = 240; - const CURRENT_AS_PATHNAME = 32; - const CURRENT_AS_FILEINFO = 0; - const CURRENT_AS_SELF = 16; - const KEY_MODE_MASK = 3840; - const KEY_AS_PATHNAME = 0; - const FOLLOW_SYMLINKS = 512; - const KEY_AS_FILENAME = 256; - const NEW_CURRENT_AND_KEY = 256; - const SKIP_DOTS = 4096; - const UNIX_PATHS = 8192; - const OTHER_MODE_MASK = 12288; +class FilesystemIterator extends DirectoryIterator +{ + public const CURRENT_MODE_MASK = 240; + public const CURRENT_AS_PATHNAME = 32; + public const CURRENT_AS_FILEINFO = 0; + public const CURRENT_AS_SELF = 16; + public const KEY_MODE_MASK = 3840; + public const KEY_AS_PATHNAME = 0; + public const FOLLOW_SYMLINKS = 512; + public const KEY_AS_FILENAME = 256; + public const NEW_CURRENT_AND_KEY = 256; + public const SKIP_DOTS = 4096; + public const UNIX_PATHS = 8192; + public const OTHER_MODE_MASK = 12288; /** * Constructs a new filesystem iterator @@ -378,21 +376,21 @@ class FilesystemIterator extends DirectoryIterator { * @param int $flags [optional] * @throws UnexpectedValueException if the path cannot be found. */ - public function __construct ($directory, $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS) {} + public function __construct($directory, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO|FilesystemIterator::SKIP_DOTS) {} /** * Rewinds back to the beginning * @link https://php.net/manual/en/filesystemiterator.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Move to the next file * @link https://php.net/manual/en/filesystemiterator.next.php * @return void */ - public function next () {} + public function next() {} /** * Retrieve the key for the current file @@ -400,7 +398,7 @@ public function next () {} * @return string the pathname or filename depending on the set flags. * See the FilesystemIterator constants. */ - public function key () {} + public function key() {} /** * The current file @@ -408,14 +406,14 @@ public function key () {} * @return string|SplFileInfo|self The filename, file information, or $this depending on the set flags. * See the FilesystemIterator constants. */ - public function current () {} + public function current() {} /** * Get the handling flags * @link https://php.net/manual/en/filesystemiterator.getflags.php * @return int The integer value of the set flags. */ - public function getFlags () {} + public function getFlags() {} /** * Sets handling flags @@ -426,7 +424,7 @@ public function getFlags () {} *

    * @return void */ - public function setFlags ($flags = null) {} + public function setFlags($flags = null) {} } /** @@ -434,9 +432,8 @@ public function setFlags ($flags = null) {} * an interface for iterating recursively over filesystem directories. * @link https://php.net/manual/en/class.recursivedirectoryiterator.php */ -class RecursiveDirectoryIterator extends FilesystemIterator implements RecursiveIterator { - - +class RecursiveDirectoryIterator extends FilesystemIterator implements RecursiveIterator +{ /** * Constructs a RecursiveDirectoryIterator * @link https://php.net/manual/en/recursivedirectoryiterator.construct.php @@ -445,7 +442,7 @@ class RecursiveDirectoryIterator extends FilesystemIterator implements Recursive * @throws UnexpectedValueException if the path cannot be found or is not a directory. * @since 5.1.2 */ - public function __construct ($directory, $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO) {} + public function __construct($directory, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO) {} /** * Returns whether current entry is a directory and not '.' or '..' @@ -454,42 +451,42 @@ public function __construct ($directory, $flags = FilesystemIterator::KEY_AS_PAT *

    * @return bool whether the current entry is a directory, but not '.' or '..' */ - public function hasChildren ($allowLinks = false) {} + public function hasChildren($allowLinks = false) {} /** * Returns an iterator for the current entry if it is a directory * @link https://php.net/manual/en/recursivedirectoryiterator.getchildren.php * @return object An iterator for the current entry, if it is a directory. */ - public function getChildren () {} + public function getChildren() {} /** * Get sub path * @link https://php.net/manual/en/recursivedirectoryiterator.getsubpath.php * @return string The sub path (sub directory). */ - public function getSubPath () {} + public function getSubPath() {} /** * Get sub path and name * @link https://php.net/manual/en/recursivedirectoryiterator.getsubpathname.php * @return string The sub path (sub directory) and filename. */ - public function getSubPathname () {} + public function getSubPathname() {} /** * Rewinds back to the beginning * @link https://php.net/manual/en/filesystemiterator.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Move to the next file * @link https://php.net/manual/en/filesystemiterator.next.php * @return void */ - public function next () {} + public function next() {} /** * Retrieve the key for the current file @@ -497,7 +494,7 @@ public function next () {} * @return string the pathname or filename depending on the set flags. * See the FilesystemIterator constants. */ - public function key () {} + public function key() {} /** * The current file @@ -505,8 +502,7 @@ public function key () {} * @return string|SplFileInfo|self The filename, file information, or $this depending on the set flags. * See the FilesystemIterator constants. */ - public function current () {} - + public function current() {} } /** @@ -514,47 +510,47 @@ public function current () {} * glob. * @link https://php.net/manual/en/class.globiterator.php */ -class GlobIterator extends FilesystemIterator implements Countable { - +class GlobIterator extends FilesystemIterator implements Countable +{ /** * Construct a directory using glob * @link https://php.net/manual/en/globiterator.construct.php * @param $pattern * @param int $flags [optional] */ - public function __construct ($pattern, $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO) {} + public function __construct($pattern, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO) {} /** * Get the number of directories and files * @link https://php.net/manual/en/globiterator.count.php - * @return int The number of returned directories and files, as an + * @return int The number of returned directories and files, as an * integer. */ - public function count () {} + public function count() {} } /** * The SplFileObject class offers an object oriented interface for a file. * @link https://php.net/manual/en/class.splfileobject.php */ -class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIterator { +class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIterator +{ /** * Drop newlines at the end of a line. */ - const DROP_NEW_LINE = 1; + public const DROP_NEW_LINE = 1; /** * Read on rewind/next. */ - const READ_AHEAD = 2; + public const READ_AHEAD = 2; /** * Skip empty lines in the file. This requires the {@see READ_AHEAD} flag to work as expected. */ - const SKIP_EMPTY = 4; + public const SKIP_EMPTY = 4; /** * Read lines as CSV rows. */ - const READ_CSV = 8; - + public const READ_CSV = 8; /** * Construct a new file object. @@ -568,37 +564,36 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt * * @throws RuntimeException When the filename cannot be opened * @throws LogicException When the filename is a directory - * */ - public function __construct ($filename, $mode = 'r', $useIncludePath = false, $context = null) {} + public function __construct($filename, $mode = 'r', $useIncludePath = false, $context = null) {} /** * Rewind the file to the first line * @link https://php.net/manual/en/splfileobject.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Reached end of file * @link https://php.net/manual/en/splfileobject.eof.php - * @return bool true if file is at EOF, false otherwise. + * @return bool true if file is at EOF, false otherwise. */ - public function eof () {} + public function eof() {} /** * Not at EOF * @link https://php.net/manual/en/splfileobject.valid.php * @return bool true if not reached EOF, false otherwise. */ - public function valid () {} + public function valid() {} /** * Gets line from file * @link https://php.net/manual/en/splfileobject.fgets.php * @return string|false a string containing the next line from the file, or false on error. */ - public function fgets () {} + public function fgets() {} /** * Read from file @@ -609,28 +604,28 @@ public function fgets () {} * @return string|false returns the string read from the file or FALSE on failure. * @since 5.5.11 */ - public function fread ($length) {} + public function fread($length) {} - /** - * Gets line from file and parse as CSV fields - * @link https://php.net/manual/en/splfileobject.fgetcsv.php - * @param string $separator [optional]

    - * The field delimiter (one character only). Defaults as a comma or the value set using SplFileObject::setCsvControl. - *

    - * @param string $enclosure [optional]

    - * The field enclosure character (one character only). Defaults as a double quotation mark or the value set using SplFileObject::setCsvControl. - *

    - * @param string $escape [optional]

    - * The escape character (one character only). Defaults as a backslash (\) or the value set using SplFileObject::setCsvControl. - *

    - * @return array|false an indexed array containing the fields read, or false on error. - *

    - *

    - * A blank line in a CSV file will be returned as an array - * comprising a single null field unless using SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE, - * in which case empty lines are skipped. - */ - public function fgetcsv ($separator = ",", $enclosure = "\"", $escape = "\\") {} + /** + * Gets line from file and parse as CSV fields + * @link https://php.net/manual/en/splfileobject.fgetcsv.php + * @param string $separator [optional]

    + * The field delimiter (one character only). Defaults as a comma or the value set using SplFileObject::setCsvControl. + *

    + * @param string $enclosure [optional]

    + * The field enclosure character (one character only). Defaults as a double quotation mark or the value set using SplFileObject::setCsvControl. + *

    + * @param string $escape [optional]

    + * The escape character (one character only). Defaults as a backslash (\) or the value set using SplFileObject::setCsvControl. + *

    + * @return array|false an indexed array containing the fields read, or false on error. + *

    + *

    + * A blank line in a CSV file will be returned as an array + * comprising a single null field unless using SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE, + * in which case empty lines are skipped. + */ + public function fgetcsv($separator = ",", $enclosure = "\"", $escape = "\\") {} /** * Write a field array as a CSV line @@ -646,86 +641,86 @@ public function fgetcsv ($separator = ",", $enclosure = "\"", $escape = "\\") {} * @return int|false Returns the length of the written string or FALSE on failure. * @since 5.4 */ - public function fputcsv (array $fields, $separator = ',' , $enclosure = '"', $escape = "\\") {} + public function fputcsv(array $fields, $separator = ',', $enclosure = '"', $escape = "\\") {} - /** - * Set the delimiter and enclosure character for CSV - * @link https://php.net/manual/en/splfileobject.setcsvcontrol.php - * @param string $separator [optional]

    - * The field delimiter (one character only). - *

    - * @param string $enclosure [optional]

    - * The field enclosure character (one character only). - *

    - * @param string $escape [optional]

    - * The field escape character (one character only). - *

    - * @return void - */ - public function setCsvControl ($separator = ",", $enclosure = "\"", $escape = "\\") {} + /** + * Set the delimiter and enclosure character for CSV + * @link https://php.net/manual/en/splfileobject.setcsvcontrol.php + * @param string $separator [optional]

    + * The field delimiter (one character only). + *

    + * @param string $enclosure [optional]

    + * The field enclosure character (one character only). + *

    + * @param string $escape [optional]

    + * The field escape character (one character only). + *

    + * @return void + */ + public function setCsvControl($separator = ",", $enclosure = "\"", $escape = "\\") {} /** * Get the delimiter and enclosure character for CSV * @link https://php.net/manual/en/splfileobject.getcsvcontrol.php * @return array an indexed array containing the delimiter and enclosure character. */ - public function getCsvControl () {} + public function getCsvControl() {} /** * Portable file locking * @link https://php.net/manual/en/splfileobject.flock.php * @param int $operation

    - * operation is one of the following: - * LOCK_SH to acquire a shared lock (reader). + * operation is one of the following: + * LOCK_SH to acquire a shared lock (reader). *

    * @param int &$wouldBlock [optional]

    * Set to 1 if the lock would block (EWOULDBLOCK errno condition). *

    - * @return bool true on success or false on failure. + * @return bool true on success or false on failure. */ - public function flock ($operation, &$wouldBlock = null) {} + public function flock($operation, &$wouldBlock = null) {} /** * Flushes the output to the file * @link https://php.net/manual/en/splfileobject.fflush.php - * @return bool true on success or false on failure. + * @return bool true on success or false on failure. */ - public function fflush () {} + public function fflush() {} /** * Return current file position * @link https://php.net/manual/en/splfileobject.ftell.php * @return int|false the position of the file pointer as an integer, or false on error. */ - public function ftell () {} + public function ftell() {} - /** - * Seek to a position - * @link https://php.net/manual/en/splfileobject.fseek.php - * @param int $offset

    - * The offset. A negative value can be used to move backwards through the file which - * is useful when SEEK_END is used as the whence value. - *

    - * @param int $whence [optional]

    - * whence values are: - * SEEK_SET - Set position equal to offset bytes. - * SEEK_CUR - Set position to current location plus offset. - * SEEK_END - Set position to end-of-file plus offset. - *

    - *

    - * If whence is not specified, it is assumed to be SEEK_SET. - *

    - * @return int 0 if the seek was successful, -1 otherwise. Note that seeking - * past EOF is not considered an error. - */ - public function fseek ($offset, $whence = SEEK_SET) {} + /** + * Seek to a position + * @link https://php.net/manual/en/splfileobject.fseek.php + * @param int $offset

    + * The offset. A negative value can be used to move backwards through the file which + * is useful when SEEK_END is used as the whence value. + *

    + * @param int $whence [optional]

    + * whence values are: + * SEEK_SET - Set position equal to offset bytes. + * SEEK_CUR - Set position to current location plus offset. + * SEEK_END - Set position to end-of-file plus offset. + *

    + *

    + * If whence is not specified, it is assumed to be SEEK_SET. + *

    + * @return int 0 if the seek was successful, -1 otherwise. Note that seeking + * past EOF is not considered an error. + */ + public function fseek($offset, $whence = SEEK_SET) {} /** * Gets character from file * @link https://php.net/manual/en/splfileobject.fgetc.php * @return string|false a string containing a single character read from the file or false on EOF. */ - public function fgetc () {} + public function fgetc() {} /** * Output all remaining data on a file pointer @@ -733,7 +728,7 @@ public function fgetc () {} * @return int|false the number of characters read from handle * and passed through to the output. */ - public function fpassthru () {} + public function fpassthru() {} /** * Gets line from file and strip HTML tags @@ -747,23 +742,23 @@ public function fpassthru () {} * @removed 8.0 */ #[Deprecated(since: '7.3')] - public function fgetss ($allowable_tags = null) {} + public function fgetss($allowable_tags = null) {} /** * Parses input from file according to a format * @link https://php.net/manual/en/splfileobject.fscanf.php * @param string $format

    - * The specified format as described in the sprintf documentation. + * The specified format as described in the sprintf documentation. *

    - * @param mixed &...$vars [optional]

    - * The optional assigned values. - *

    - * @return array|int If only one parameter is passed to this method, the values parsed will be + * @param mixed &...$vars [optional]

    + * The optional assigned values. + *

    + * @return array|int If only one parameter is passed to this method, the values parsed will be * returned as an array. Otherwise, if optional parameters are passed, the * function will return the number of assigned values. The optional * parameters must be passed by reference. */ - public function fscanf ($format, &...$vars) {} + public function fscanf($format, &...$vars) {} /** * Write to file @@ -772,22 +767,22 @@ public function fscanf ($format, &...$vars) {} * The string to be written to the file. *

    * @param int $length [optional]

    - * If the length argument is given, writing will - * stop after length bytes have been written or - * the end of string is reached, whichever comes + * If the length argument is given, writing will + * stop after length bytes have been written or + * the end of string is reached, whichever comes * first. *

    * @return int the number of bytes written, or 0 on error. */ - public function fwrite ($data, $length = null) {} + public function fwrite($data, $length = null) {} /** * Gets information about the file * @link https://php.net/manual/en/splfileobject.fstat.php * @return array an array with the statistics of the file; the format of the array - * is described in detail on the stat manual page. + * is described in detail on the stat manual page. */ - public function fstat () {} + public function fstat() {} /** * Truncates the file to a given length @@ -796,35 +791,35 @@ public function fstat () {} * The size to truncate to. *

    *

    - * If size is larger than the file it is extended with null bytes. + * If size is larger than the file it is extended with null bytes. *

    *

    - * If size is smaller than the file, the extra data will be lost. + * If size is smaller than the file, the extra data will be lost. *

    - * @return bool true on success or false on failure. + * @return bool true on success or false on failure. */ - public function ftruncate ($size) {} + public function ftruncate($size) {} /** * Retrieve current line of file * @link https://php.net/manual/en/splfileobject.current.php - * @return string|array|false Retrieves the current line of the file. If the SplFileObject::READ_CSV flag is set, this method returns an array containing the current line parsed as CSV data. + * @return string|array|false Retrieves the current line of the file. If the SplFileObject::READ_CSV flag is set, this method returns an array containing the current line parsed as CSV data. */ - public function current () {} + public function current() {} /** * Get line number * @link https://php.net/manual/en/splfileobject.key.php * @return int the current line number. */ - public function key () {} + public function key() {} /** * Read next line * @link https://php.net/manual/en/splfileobject.next.php * @return void */ - public function next () {} + public function next() {} /** * Sets flags for the SplFileObject @@ -836,14 +831,14 @@ public function next () {} *

    * @return void */ - public function setFlags ($flags) {} + public function setFlags($flags) {} /** * Gets flags for the SplFileObject * @link https://php.net/manual/en/splfileobject.getflags.php * @return int an integer representing the flags. */ - public function getFlags () {} + public function getFlags() {} /** * Set maximum line length @@ -853,15 +848,15 @@ public function getFlags () {} *

    * @return void */ - public function setMaxLineLen ($maxLength) {} + public function setMaxLineLen($maxLength) {} /** * Get maximum line length * @link https://php.net/manual/en/splfileobject.getmaxlinelen.php * @return int the maximum line length if one has been set with - * SplFileObject::setMaxLineLen, default is 0. + * SplFileObject::setMaxLineLen, default is 0. */ - public function getMaxLineLen () {} + public function getMaxLineLen() {} /** * SplFileObject does not have children @@ -869,14 +864,14 @@ public function getMaxLineLen () {} * @return bool false * @since 5.1.2 */ - public function hasChildren () {} + public function hasChildren() {} /** * No purpose * @link https://php.net/manual/en/splfileobject.getchildren.php * @return null An SplFileObject does not have children so this method returns NULL. */ - public function getChildren () {} + public function getChildren() {} /** * Seek to specified line @@ -886,31 +881,29 @@ public function getChildren () {} *

    * @return void */ - public function seek ($line) {} + public function seek($line) {} /** - * Alias of SplFileObject::fgets + * Alias of SplFileObject::fgets * @link https://php.net/manual/en/splfileobject.getcurrentline.php * @return string|false Returns a string containing the next line from the file, or FALSE on error. * @since 5.1.2 */ - public function getCurrentLine () {} + public function getCurrentLine() {} /** - * Alias of SplFileObject::current + * Alias of SplFileObject::current * @link https://php.net/manual/en/splfileobject.tostring.php */ - public function __toString () {} - + public function __toString() {} } /** * The SplTempFileObject class offers an object oriented interface for a temporary file. * @link https://php.net/manual/en/class.spltempfileobject.php */ -class SplTempFileObject extends SplFileObject { - - +class SplTempFileObject extends SplFileObject +{ /** * Construct a new temporary file object * @link https://php.net/manual/en/spltempfileobject.construct.php @@ -918,7 +911,7 @@ class SplTempFileObject extends SplFileObject { * @throws RuntimeException if an error occurs. * @since 5.1.2 */ - public function __construct ($maxMemory = 2097152) {} + public function __construct($maxMemory = 2097152) {} } /** @@ -927,11 +920,10 @@ public function __construct ($maxMemory = 2097152) {} */ class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializable { - const IT_MODE_LIFO = 2; - const IT_MODE_FIFO = 0; - const IT_MODE_DELETE = 1; - const IT_MODE_KEEP = 0; - + public const IT_MODE_LIFO = 2; + public const IT_MODE_FIFO = 0; + public const IT_MODE_DELETE = 1; + public const IT_MODE_KEEP = 0; /** * Add/insert a new value at the specified index @@ -948,14 +940,14 @@ public function add($index, $value) {} * @link https://php.net/manual/en/spldoublylinkedlist.pop.php * @return mixed The value of the popped node. */ - public function pop () {} + public function pop() {} /** * Shifts a node from the beginning of the doubly linked list * @link https://php.net/manual/en/spldoublylinkedlist.shift.php * @return mixed The value of the shifted node. */ - public function shift () {} + public function shift() {} /** * Pushes an element at the end of the doubly linked list @@ -965,7 +957,7 @@ public function shift () {} *

    * @return void */ - public function push ($value) {} + public function push($value) {} /** * Prepends the doubly linked list with an element @@ -975,35 +967,35 @@ public function push ($value) {} *

    * @return void */ - public function unshift ($value) {} + public function unshift($value) {} /** * Peeks at the node from the end of the doubly linked list * @link https://php.net/manual/en/spldoublylinkedlist.top.php * @return mixed The value of the last node. */ - public function top () {} + public function top() {} /** * Peeks at the node from the beginning of the doubly linked list * @link https://php.net/manual/en/spldoublylinkedlist.bottom.php * @return mixed The value of the first node. */ - public function bottom () {} + public function bottom() {} /** * Counts the number of elements in the doubly linked list. * @link https://php.net/manual/en/spldoublylinkedlist.count.php * @return int the number of elements in the doubly linked list. */ - public function count () {} + public function count() {} /** * Checks whether the doubly linked list is empty. * @link https://php.net/manual/en/spldoublylinkedlist.isempty.php * @return bool whether the doubly linked list is empty. */ - public function isEmpty () {} + public function isEmpty() {} /** * Sets the mode of iteration @@ -1012,17 +1004,17 @@ public function isEmpty () {} * There are two orthogonal sets of modes that can be set: *

    * The direction of the iteration (either one or the other): - * SplDoublyLinkedList::IT_MODE_LIFO (Stack style) + * SplDoublyLinkedList::IT_MODE_LIFO (Stack style) * @return void */ - public function setIteratorMode ($mode) {} + public function setIteratorMode($mode) {} /** * Returns the mode of iteration * @link https://php.net/manual/en/spldoublylinkedlist.getiteratormode.php * @return int the different modes and flags that affect the iteration. */ - public function getIteratorMode () {} + public function getIteratorMode() {} /** * Returns whether the requested $index exists @@ -1030,9 +1022,9 @@ public function getIteratorMode () {} * @param mixed $index

    * The index being checked. *

    - * @return bool true if the requested index exists, otherwise false + * @return bool true if the requested index exists, otherwise false */ - public function offsetExists ($index) {} + public function offsetExists($index) {} /** * Returns the value at the specified $index @@ -1040,9 +1032,9 @@ public function offsetExists ($index) {} * @param mixed $index

    * The index with the value. *

    - * @return mixed The value at the specified index. + * @return mixed The value at the specified index. */ - public function offsetGet ($index) {} + public function offsetGet($index) {} /** * Sets the value at the specified $index to $newval @@ -1051,11 +1043,11 @@ public function offsetGet ($index) {} * The index being set. *

    * @param mixed $value

    - * The new value for the index. + * The new value for the index. *

    * @return void */ - public function offsetSet ($index, $value) {} + public function offsetSet($index, $value) {} /** * Unsets the value at the specified $index @@ -1065,73 +1057,72 @@ public function offsetSet ($index, $value) {} *

    * @return void */ - public function offsetUnset ($index) {} + public function offsetUnset($index) {} /** * Rewind iterator back to the start * @link https://php.net/manual/en/spldoublylinkedlist.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Return current array entry * @link https://php.net/manual/en/spldoublylinkedlist.current.php * @return mixed The current node value. */ - public function current () {} + public function current() {} /** * Return current node index * @link https://php.net/manual/en/spldoublylinkedlist.key.php * @return string|float|int|bool|null The current node index. */ - public function key () {} + public function key() {} /** * Move to next entry * @link https://php.net/manual/en/spldoublylinkedlist.next.php * @return void */ - public function next () {} + public function next() {} /** * Move to previous entry * @link https://php.net/manual/en/spldoublylinkedlist.prev.php * @return void */ - public function prev () {} + public function prev() {} /** * Check whether the doubly linked list contains more nodes * @link https://php.net/manual/en/spldoublylinkedlist.valid.php * @return bool true if the doubly linked list contains any more nodes, false otherwise. */ - public function valid () {} + public function valid() {} - /** - * Unserializes the storage - * @link https://php.net/manual/en/spldoublylinkedlist.serialize.php - * @param string $data The serialized string. - * @return void - * @since 5.4 - */ + /** + * Unserializes the storage + * @link https://php.net/manual/en/spldoublylinkedlist.serialize.php + * @param string $data The serialized string. + * @return void + * @since 5.4 + */ public function unserialize($data) {} /** - * Serializes the storage - * @link https://php.net/manual/en/spldoublylinkedlist.unserialize.php - * @return string The serialized string. - * @since 5.4 - */ - public function serialize () {} - + * Serializes the storage + * @link https://php.net/manual/en/spldoublylinkedlist.unserialize.php + * @return string The serialized string. + * @since 5.4 + */ + public function serialize() {} /** * @return array * @since 7.4 */ - public function __debugInfo(){} + public function __debugInfo() {} /** * @return array @@ -1144,16 +1135,14 @@ public function __serialize() {} * @since 7.4 */ public function __unserialize(array $data) {} - } /** * The SplQueue class provides the main functionalities of a queue implemented using a doubly linked list. * @link https://php.net/manual/en/class.splqueue.php */ -class SplQueue extends SplDoublyLinkedList { - - +class SplQueue extends SplDoublyLinkedList +{ /** * Adds an element to the queue. * @link https://php.net/manual/en/splqueue.enqueue.php @@ -1162,14 +1151,14 @@ class SplQueue extends SplDoublyLinkedList { *

    * @return void */ - public function enqueue ($value) {} + public function enqueue($value) {} /** * Dequeues a node from the queue * @link https://php.net/manual/en/splqueue.dequeue.php * @return mixed The value of the dequeued node. */ - public function dequeue () {} + public function dequeue() {} /** * Sets the mode of iteration @@ -1181,15 +1170,14 @@ public function dequeue () {} * SplDoublyLinkedList::IT_MODE_LIFO (Stack style) * @return void */ - public function setIteratorMode ($mode) {} - + public function setIteratorMode($mode) {} } /** * The SplStack class provides the main functionalities of a stack implemented using a doubly linked list. * @link https://php.net/manual/en/class.splstack.php */ -class SplStack extends SplDoublyLinkedList { - +class SplStack extends SplDoublyLinkedList +{ /** * Sets the mode of iteration * @link https://php.net/manual/en/spldoublylinkedlist.setiteratormode.php @@ -1200,21 +1188,21 @@ class SplStack extends SplDoublyLinkedList { * SplDoublyLinkedList::IT_MODE_LIFO (Stack style) * @return void */ - public function setIteratorMode ($mode) {} + public function setIteratorMode($mode) {} } /** * The SplHeap class provides the main functionalities of an Heap. * @link https://php.net/manual/en/class.splheap.php */ -abstract class SplHeap implements Iterator, Countable { - +abstract class SplHeap implements Iterator, Countable +{ /** * Extracts a node from top of the heap and sift up. * @link https://php.net/manual/en/splheap.extract.php * @return mixed The value of the extracted node. */ - public function extract () {} + public function extract() {} /** * Inserts an element in the heap by sifting it up. @@ -1224,70 +1212,70 @@ public function extract () {} *

    * @return void */ - public function insert ($value) {} + public function insert($value) {} /** - * Peeks at the node from the top of the heap + * Peeks at the node from the top of the heap * @link https://php.net/manual/en/splheap.top.php * @return mixed The value of the node on the top. */ - public function top () {} + public function top() {} /** * Counts the number of elements in the heap. * @link https://php.net/manual/en/splheap.count.php * @return int the number of elements in the heap. */ - public function count () {} + public function count() {} /** * Checks whether the heap is empty. * @link https://php.net/manual/en/splheap.isempty.php * @return bool whether the heap is empty. */ - public function isEmpty () {} + public function isEmpty() {} /** * Rewind iterator back to the start (no-op) * @link https://php.net/manual/en/splheap.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Return current node pointed by the iterator * @link https://php.net/manual/en/splheap.current.php * @return mixed The current node value. */ - public function current () {} + public function current() {} /** * Return current node index * @link https://php.net/manual/en/splheap.key.php * @return int The current node index. */ - public function key () {} + public function key() {} /** * Move to the next node * @link https://php.net/manual/en/splheap.next.php * @return void */ - public function next () {} + public function next() {} /** * Check whether the heap contains more nodes * @link https://php.net/manual/en/splheap.valid.php * @return bool true if the heap contains any more nodes, false otherwise. */ - public function valid () {} + public function valid() {} /** * Recover from the corrupted state and allow further actions on the heap. * @link https://php.net/manual/en/splheap.recoverfromcorruption.php * @return void */ - public function recoverFromCorruption () {} + public function recoverFromCorruption() {} /** * Compare elements in order to place them correctly in the heap while sifting up. @@ -1298,33 +1286,31 @@ public function recoverFromCorruption () {} * @param mixed $value2

    * The value of the second node being compared. *

    - * @return int Result of the comparison, positive integer if value1 is greater than value2, 0 if they are equal, negative integer otherwise. + * @return int Result of the comparison, positive integer if value1 is greater than value2, 0 if they are equal, negative integer otherwise. *

    *

    * Having multiple elements with the same value in a Heap is not recommended. They will end up in an arbitrary relative position. */ - abstract protected function compare ($value1, $value2); - - /** - * @return bool - */ - public function isCorrupted(){} + abstract protected function compare($value1, $value2); + /** + * @return bool + */ + public function isCorrupted() {} /** * @return array * @since 7.4 */ - public function __debugInfo(){} - + public function __debugInfo() {} } /** * The SplMinHeap class provides the main functionalities of a heap, keeping the minimum on the top. * @link https://php.net/manual/en/class.splminheap.php */ -class SplMinHeap extends SplHeap { - +class SplMinHeap extends SplHeap +{ /** * Compare elements in order to place them correctly in the heap while sifting up. * @link https://php.net/manual/en/splminheap.compare.php @@ -1334,19 +1320,19 @@ class SplMinHeap extends SplHeap { * @param mixed $value2

    * The value of the second node being compared. *

    - * @return void Result of the comparison, positive integer if value1 is lower than value2, 0 if they are equal, negative integer otherwise. + * @return void Result of the comparison, positive integer if value1 is lower than value2, 0 if they are equal, negative integer otherwise. *

    *

    * Having multiple elements with the same value in a Heap is not recommended. They will end up in an arbitrary relative position. */ - protected function compare ($value1, $value2) {} + protected function compare($value1, $value2) {} /** * Extracts a node from top of the heap and sift up. * @link https://php.net/manual/en/splheap.extract.php * @return mixed The value of the extracted node. */ - public function extract () {} + public function extract() {} /** * Inserts an element in the heap by sifting it up. @@ -1356,79 +1342,78 @@ public function extract () {} *

    * @return void */ - public function insert ($value) {} + public function insert($value) {} /** - * Peeks at the node from the top of the heap + * Peeks at the node from the top of the heap * @link https://php.net/manual/en/splheap.top.php * @return mixed The value of the node on the top. */ - public function top () {} + public function top() {} /** * Counts the number of elements in the heap. * @link https://php.net/manual/en/splheap.count.php * @return int the number of elements in the heap. */ - public function count () {} + public function count() {} /** * Checks whether the heap is empty. * @link https://php.net/manual/en/splheap.isempty.php * @return bool whether the heap is empty. */ - public function isEmpty () {} + public function isEmpty() {} /** * Rewind iterator back to the start (no-op) * @link https://php.net/manual/en/splheap.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Return current node pointed by the iterator * @link https://php.net/manual/en/splheap.current.php * @return mixed The current node value. */ - public function current () {} + public function current() {} /** * Return current node index * @link https://php.net/manual/en/splheap.key.php * @return int The current node index. */ - public function key () {} + public function key() {} /** * Move to the next node * @link https://php.net/manual/en/splheap.next.php * @return void */ - public function next () {} + public function next() {} /** * Check whether the heap contains more nodes * @link https://php.net/manual/en/splheap.valid.php * @return bool true if the heap contains any more nodes, false otherwise. */ - public function valid () {} + public function valid() {} /** * Recover from the corrupted state and allow further actions on the heap. * @link https://php.net/manual/en/splheap.recoverfromcorruption.php * @return void */ - public function recoverFromCorruption () {} - + public function recoverFromCorruption() {} } /** * The SplMaxHeap class provides the main functionalities of a heap, keeping the maximum on the top. * @link https://php.net/manual/en/class.splmaxheap.php */ -class SplMaxHeap extends SplHeap { - +class SplMaxHeap extends SplHeap +{ /** * Compare elements in order to place them correctly in the heap while sifting up. * @link https://php.net/manual/en/splmaxheap.compare.php @@ -1443,24 +1428,24 @@ class SplMaxHeap extends SplHeap { *

    * Having multiple elements with the same value in a Heap is not recommended. They will end up in an arbitrary relative position. */ - protected function compare ($value1, $value2) {} - + protected function compare($value1, $value2) {} } /** * The SplPriorityQueue class provides the main functionalities of an * prioritized queue, implemented using a heap. * @link https://php.net/manual/en/class.splpriorityqueue.php */ -class SplPriorityQueue implements Iterator, Countable { - const EXTR_BOTH = 3; - const EXTR_PRIORITY = 2; - const EXTR_DATA = 1; +class SplPriorityQueue implements Iterator, Countable +{ + public const EXTR_BOTH = 3; + public const EXTR_PRIORITY = 2; + public const EXTR_DATA = 1; /** * Construct a new SplPriorityQueue object * @link https://www.php.net/manual/en/splpriorityqueue.construct.php */ - public function __construct () {} + public function __construct() {} /** * Compare priorities in order to place elements correctly in the heap while sifting up. @@ -1476,7 +1461,7 @@ public function __construct () {} *

    * Multiple elements with the same priority will get dequeued in no particular order. */ - public function compare ($priority1, $priority2) {} + public function compare($priority1, $priority2) {} /** * Inserts an element in the queue by sifting it up. @@ -1489,90 +1474,90 @@ public function compare ($priority1, $priority2) {} *

    * @return true */ - public function insert ($value, $priority) {} + public function insert($value, $priority) {} /** * Sets the mode of extraction * @link https://php.net/manual/en/splpriorityqueue.setextractflags.php * @param int $flags

    - * Defines what is extracted by SplPriorityQueue::current, - * SplPriorityQueue::top and - * SplPriorityQueue::extract. - *

    - * SplPriorityQueue::EXTR_DATA (0x00000001): Extract the data + * Defines what is extracted by SplPriorityQueue::current, + * SplPriorityQueue::top and + * SplPriorityQueue::extract. + *

    + * SplPriorityQueue::EXTR_DATA (0x00000001): Extract the data * @return void */ - public function setExtractFlags ($flags) {} + public function setExtractFlags($flags) {} /** - * Peeks at the node from the top of the queue + * Peeks at the node from the top of the queue * @link https://php.net/manual/en/splpriorityqueue.top.php * @return mixed The value or priority (or both) of the top node, depending on the extract flag. */ - public function top () {} + public function top() {} /** * Extracts a node from top of the heap and sift up. * @link https://php.net/manual/en/splpriorityqueue.extract.php * @return mixed The value or priority (or both) of the extracted node, depending on the extract flag. */ - public function extract () {} + public function extract() {} /** * Counts the number of elements in the queue. * @link https://php.net/manual/en/splpriorityqueue.count.php * @return int the number of elements in the queue. */ - public function count () {} + public function count() {} /** * Checks whether the queue is empty. * @link https://php.net/manual/en/splpriorityqueue.isempty.php * @return bool whether the queue is empty. */ - public function isEmpty () {} + public function isEmpty() {} /** * Rewind iterator back to the start (no-op) * @link https://php.net/manual/en/splpriorityqueue.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Return current node pointed by the iterator * @link https://php.net/manual/en/splpriorityqueue.current.php * @return mixed The value or priority (or both) of the current node, depending on the extract flag. */ - public function current () {} + public function current() {} /** * Return current node index * @link https://php.net/manual/en/splpriorityqueue.key.php * @return int The current node index. */ - public function key () {} + public function key() {} /** * Move to the next node * @link https://php.net/manual/en/splpriorityqueue.next.php * @return void */ - public function next () {} + public function next() {} /** * Check whether the queue contains more nodes * @link https://php.net/manual/en/splpriorityqueue.valid.php * @return bool true if the queue contains any more nodes, false otherwise. */ - public function valid () {} + public function valid() {} /** * Recover from the corrupted state and allow further actions on the queue. * @link https://php.net/manual/en/splpriorityqueue.recoverfromcorruption.php * @return void */ - public function recoverFromCorruption () {} + public function recoverFromCorruption() {} /** * @return bool @@ -1584,13 +1569,11 @@ public function isCorrupted() {} */ public function getExtractFlags() {} - /** * @return array * @since 7.4 */ - public function __debugInfo(){} - + public function __debugInfo() {} } /** @@ -1601,28 +1584,28 @@ public function __debugInfo(){} * implementation. * @link https://php.net/manual/en/class.splfixedarray.php */ -class SplFixedArray implements Iterator, ArrayAccess, Countable, IteratorAggregate { - +class SplFixedArray implements Iterator, ArrayAccess, Countable, IteratorAggregate +{ /** * Constructs a new fixed array * @link https://php.net/manual/en/splfixedarray.construct.php * @param int $size [optional] */ - public function __construct ($size = 0) {} + public function __construct($size = 0) {} /** * Returns the size of the array * @link https://php.net/manual/en/splfixedarray.count.php * @return int the size of the array. */ - public function count () {} + public function count() {} /** * Returns a PHP array from the fixed array * @link https://php.net/manual/en/splfixedarray.toarray.php * @return array a PHP array, similar to the fixed array. */ - public function toArray () {} + public function toArray() {} /** * Import a PHP array in a SplFixedArray instance @@ -1636,14 +1619,14 @@ public function toArray () {} * @return SplFixedArray an instance of SplFixedArray * containing the array content. */ - public static function fromArray ($array, $preserveKeys = true) {} + public static function fromArray($array, $preserveKeys = true) {} /** * Gets the size of the array * @link https://php.net/manual/en/splfixedarray.getsize.php * @return int the size of the array, as an integer. */ - public function getSize () {} + public function getSize() {} /** * Change the size of an array @@ -1653,7 +1636,7 @@ public function getSize () {} *

    * @return bool */ - public function setSize ($size) {} + public function setSize($size) {} /** * Returns whether the requested index exists @@ -1661,9 +1644,9 @@ public function setSize ($size) {} * @param int $index

    * The index being checked. *

    - * @return bool true if the requested index exists, otherwise false + * @return bool true if the requested index exists, otherwise false */ - public function offsetExists ($index) {} + public function offsetExists($index) {} /** * Returns the value at the specified index @@ -1671,9 +1654,9 @@ public function offsetExists ($index) {} * @param int $index

    * The index with the value. *

    - * @return mixed The value at the specified index. + * @return mixed The value at the specified index. */ - public function offsetGet ($index) {} + public function offsetGet($index) {} /** * Sets a new value at a specified index @@ -1682,11 +1665,11 @@ public function offsetGet ($index) {} * The index being set. *

    * @param mixed $value

    - * The new value for the index. + * The new value for the index. *

    * @return void */ - public function offsetSet ($index, $value) {} + public function offsetSet($index, $value) {} /** * Unsets the value at the specified $index @@ -1696,46 +1679,44 @@ public function offsetSet ($index, $value) {} *

    * @return void */ - public function offsetUnset ($index) {} + public function offsetUnset($index) {} /** * Rewind iterator back to the start * @link https://php.net/manual/en/splfixedarray.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Return current array entry * @link https://php.net/manual/en/splfixedarray.current.php * @return mixed The current element value. */ - public function current () {} + public function current() {} /** * Return current array index * @link https://php.net/manual/en/splfixedarray.key.php * @return int The current array index. */ - public function key () {} + public function key() {} /** * Move to next entry * @link https://php.net/manual/en/splfixedarray.next.php * @return void */ - public function next () {} + public function next() {} /** * Check whether the array contains more elements * @link https://php.net/manual/en/splfixedarray.valid.php * @return bool true if the array contains any more elements, false otherwise. */ - public function valid () {} + public function valid() {} - public function __wakeup() - { - } + public function __wakeup() {} /** * @return Traversable @@ -1748,18 +1729,17 @@ public function getIterator() {} * SplSubject to implement the Observer Design Pattern. * @link https://php.net/manual/en/class.splobserver.php */ -interface SplObserver { - +interface SplObserver +{ /** * Receive update from subject * @link https://php.net/manual/en/splobserver.update.php * @param SplSubject $subject

    - * The SplSubject notifying the observer of an update. + * The SplSubject notifying the observer of an update. *

    * @return void */ - public function update (SplSubject $subject); - + public function update(SplSubject $subject); } /** @@ -1767,35 +1747,34 @@ public function update (SplSubject $subject); * SplObserver to implement the Observer Design Pattern. * @link https://php.net/manual/en/class.splsubject.php */ -interface SplSubject { - +interface SplSubject +{ /** * Attach an SplObserver * @link https://php.net/manual/en/splsubject.attach.php * @param SplObserver $observer

    - * The SplObserver to attach. + * The SplObserver to attach. *

    * @return void */ - public function attach (SplObserver $observer); + public function attach(SplObserver $observer); /** * Detach an observer * @link https://php.net/manual/en/splsubject.detach.php * @param SplObserver $observer

    - * The SplObserver to detach. + * The SplObserver to detach. *

    * @return void */ - public function detach (SplObserver $observer); + public function detach(SplObserver $observer); /** * Notify an observer * @link https://php.net/manual/en/splsubject.notify.php * @return void */ - public function notify (); - + public function notify(); } /** @@ -1804,8 +1783,8 @@ public function notify (); * cases involving the need to uniquely identify objects. * @link https://php.net/manual/en/class.splobjectstorage.php */ -class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess { - +class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess +{ /** * Adds an object in the storage * @link https://php.net/manual/en/splobjectstorage.attach.php @@ -1817,17 +1796,17 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess *

    * @return void */ - public function attach ($object, $info = null) {} + public function attach($object, $info = null) {} /** - * Removes an object from the storage + * Removes an object from the storage * @link https://php.net/manual/en/splobjectstorage.detach.php * @param object $object

    * The object to remove. *

    * @return void */ - public function detach ($object) {} + public function detach($object) {} /** * Checks if the storage contains a specific object @@ -1835,47 +1814,47 @@ public function detach ($object) {} * @param object $object

    * The object to look for. *

    - * @return bool true if the object is in the storage, false otherwise. + * @return bool true if the object is in the storage, false otherwise. */ - public function contains ($object) {} + public function contains($object) {} - /** - * Adds all objects from another storage - * @link https://php.net/manual/en/splobjectstorage.addall.php - * @param SplObjectStorage $storage

    - * The storage you want to import. - *

    - * @return void - */ - public function addAll ($storage) {} + /** + * Adds all objects from another storage + * @link https://php.net/manual/en/splobjectstorage.addall.php + * @param SplObjectStorage $storage

    + * The storage you want to import. + *

    + * @return void + */ + public function addAll($storage) {} - /** - * Removes objects contained in another storage from the current storage - * @link https://php.net/manual/en/splobjectstorage.removeall.php - * @param SplObjectStorage $storage

    - * The storage containing the elements to remove. - *

    - * @return void - */ - public function removeAll ($storage) {} + /** + * Removes objects contained in another storage from the current storage + * @link https://php.net/manual/en/splobjectstorage.removeall.php + * @param SplObjectStorage $storage

    + * The storage containing the elements to remove. + *

    + * @return void + */ + public function removeAll($storage) {} - /** - * Removes all objects except for those contained in another storage from the current storage - * @link https://php.net/manual/en/splobjectstorage.removeallexcept.php - * @param SplObjectStorage $storage

    - * The storage containing the elements to retain in the current storage. - *

    - * @return void - * @since 5.3.6 - */ - public function removeAllExcept ($storage) {} + /** + * Removes all objects except for those contained in another storage from the current storage + * @link https://php.net/manual/en/splobjectstorage.removeallexcept.php + * @param SplObjectStorage $storage

    + * The storage containing the elements to retain in the current storage. + *

    + * @return void + * @since 5.3.6 + */ + public function removeAllExcept($storage) {} - /** + /** * Returns the data associated with the current iterator entry * @link https://php.net/manual/en/splobjectstorage.getinfo.php * @return mixed The data associated with the current iterator position. */ - public function getInfo () {} + public function getInfo() {} /** * Sets the data associated with the current iterator entry @@ -1885,7 +1864,7 @@ public function getInfo () {} *

    * @return void */ - public function setInfo ($info) {} + public function setInfo($info) {} /** * Returns the number of objects in the storage @@ -1893,42 +1872,42 @@ public function setInfo ($info) {} * @param int $mode [optional] * @return int The number of objects in the storage. */ - public function count ($mode = COUNT_NORMAL) {} + public function count($mode = COUNT_NORMAL) {} /** * Rewind the iterator to the first storage element * @link https://php.net/manual/en/splobjectstorage.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Returns if the current iterator entry is valid * @link https://php.net/manual/en/splobjectstorage.valid.php - * @return bool true if the iterator entry is valid, false otherwise. + * @return bool true if the iterator entry is valid, false otherwise. */ - public function valid () {} + public function valid() {} /** * Returns the index at which the iterator currently is * @link https://php.net/manual/en/splobjectstorage.key.php * @return int The index corresponding to the position of the iterator. */ - public function key () {} + public function key() {} /** * Returns the current storage entry * @link https://php.net/manual/en/splobjectstorage.current.php * @return object The object at the current iterator position. */ - public function current () {} + public function current() {} /** * Move to the next entry * @link https://php.net/manual/en/splobjectstorage.next.php * @return void */ - public function next () {} + public function next() {} /** * Unserializes a storage from its string representation @@ -1939,7 +1918,7 @@ public function next () {} * @return void * @since 5.2.2 */ - public function unserialize ($data) {} + public function unserialize($data) {} /** * Serializes the storage @@ -1947,7 +1926,7 @@ public function unserialize ($data) {} * @return string A string representing the storage. * @since 5.2.2 */ - public function serialize () {} + public function serialize() {} /** * Checks whether an object exists in the storage @@ -1955,23 +1934,23 @@ public function serialize () {} * @param object $object

    * The object to look for. *

    - * @return bool true if the object exists in the storage, + * @return bool true if the object exists in the storage, * and false otherwise. */ - public function offsetExists ($object) {} + public function offsetExists($object) {} - /** - * Associates data to an object in the storage - * @link https://php.net/manual/en/splobjectstorage.offsetset.php - * @param object $object

    - * The object to associate data with. - *

    - * @param mixed $info [optional]

    - * The data to associate with the object. - *

    - * @return void - */ - public function offsetSet ($object, $info = null) {} + /** + * Associates data to an object in the storage + * @link https://php.net/manual/en/splobjectstorage.offsetset.php + * @param object $object

    + * The object to associate data with. + *

    + * @param mixed $info [optional]

    + * The data to associate with the object. + *

    + * @return void + */ + public function offsetSet($object, $info = null) {} /** * Removes an object from the storage @@ -1981,7 +1960,7 @@ public function offsetSet ($object, $info = null) {} *

    * @return void */ - public function offsetUnset ($object) {} + public function offsetUnset($object) {} /** * Returns the data associated with an object @@ -1991,7 +1970,7 @@ public function offsetUnset ($object) {} *

    * @return mixed The data previously associated with the object in the storage. */ - public function offsetGet ($object) {} + public function offsetGet($object) {} /** * Calculate a unique identifier for the contained objects @@ -2001,7 +1980,7 @@ public function offsetGet ($object) {} *

    * @return string A string with the calculated identifier. * @since 5.4 - */ + */ public function getHash($object) {} /** @@ -2020,93 +1999,92 @@ public function __unserialize(array $data) {} * @return array * @since 7.4 */ - public function __debugInfo(){} - + public function __debugInfo() {} } /** * An Iterator that sequentially iterates over all attached iterators * @link https://php.net/manual/en/class.multipleiterator.php */ -class MultipleIterator implements Iterator { - const MIT_NEED_ANY = 0; - const MIT_NEED_ALL = 1; - const MIT_KEYS_NUMERIC = 0; - const MIT_KEYS_ASSOC = 2; - +class MultipleIterator implements Iterator +{ + public const MIT_NEED_ANY = 0; + public const MIT_NEED_ALL = 1; + public const MIT_KEYS_NUMERIC = 0; + public const MIT_KEYS_ASSOC = 2; /** * Constructs a new MultipleIterator * @link https://php.net/manual/en/multipleiterator.construct.php * @param int $flags [optional] Defaults to MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC */ - public function __construct ($flags = MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC) {} + public function __construct($flags = MultipleIterator::MIT_NEED_ALL|MultipleIterator::MIT_KEYS_NUMERIC) {} /** * Gets the flag information * @link https://php.net/manual/en/multipleiterator.getflags.php * @return int Information about the flags, as an integer. */ - public function getFlags () {} + public function getFlags() {} /** * Sets flags * @link https://php.net/manual/en/multipleiterator.setflags.php - * @param int $flags

    + * @param int $flags

    * The flags to set, according to the * Flag Constants *

    * @return void */ - public function setFlags ($flags) {} + public function setFlags($flags) {} - /** - * Attaches iterator information - * @link https://php.net/manual/en/multipleiterator.attachiterator.php - * @param Iterator $iterator

    - * The new iterator to attach. - *

    - * @param int|string|null $info [optional]

    - * The associative information for the Iterator, which must be an - * integer, a string, or null. - *

    - * @return void Description... - */ - public function attachIterator (Iterator $iterator, $info = null) {} + /** + * Attaches iterator information + * @link https://php.net/manual/en/multipleiterator.attachiterator.php + * @param Iterator $iterator

    + * The new iterator to attach. + *

    + * @param int|string|null $info [optional]

    + * The associative information for the Iterator, which must be an + * integer, a string, or null. + *

    + * @return void Description... + */ + public function attachIterator(Iterator $iterator, $info = null) {} - /** - * Detaches an iterator - * @link https://php.net/manual/en/multipleiterator.detachiterator.php - * @param Iterator $iterator

    - * The iterator to detach. - *

    - * @return void - */ - public function detachIterator (Iterator $iterator) {} + /** + * Detaches an iterator + * @link https://php.net/manual/en/multipleiterator.detachiterator.php + * @param Iterator $iterator

    + * The iterator to detach. + *

    + * @return void + */ + public function detachIterator(Iterator $iterator) {} - /** - * Checks if an iterator is attached - * @link https://php.net/manual/en/multipleiterator.containsiterator.php - * @param Iterator $iterator

    - * The iterator to check. - *

    - * @return bool true on success or false on failure. - */ - public function containsIterator (Iterator $iterator) {} + /** + * Checks if an iterator is attached + * @link https://php.net/manual/en/multipleiterator.containsiterator.php + * @param Iterator $iterator

    + * The iterator to check. + *

    + * @return bool true on success or false on failure. + */ + public function containsIterator(Iterator $iterator) {} /** * Gets the number of attached iterator instances * @link https://php.net/manual/en/multipleiterator.countiterators.php * @return int The number of attached iterator instances (as an integer). */ - public function countIterators () {} + public function countIterators() {} /** * Rewinds all attached iterator instances * @link https://php.net/manual/en/multipleiterator.rewind.php * @return void */ - public function rewind () {} + public function rewind() {} /** * Checks the validity of sub iterators @@ -2114,7 +2092,7 @@ public function rewind () {} * @return bool true if one or all sub iterators are valid depending on flags, * otherwise false */ - public function valid () {} + public function valid() {} /** * Gets the registered iterator instances @@ -2122,7 +2100,7 @@ public function valid () {} * @return array An array of all registered iterator instances, * or false if no sub iterator is attached. */ - public function key () {} + public function key() {} /** * Gets the registered iterator instances @@ -2132,18 +2110,18 @@ public function key () {} * @throws \RuntimeException if mode MIT_NEED_ALL is set and at least one attached iterator is not valid. * @throws \InvalidArgumentException if a key is NULL and MIT_KEYS_ASSOC is set. */ - public function current () {} + public function current() {} /** * Moves all attached iterator instances forward * @link https://php.net/manual/en/multipleiterator.next.php * @return void */ - public function next () {} + public function next() {} /** * @return array * @since 7.4 */ - public function __debugInfo(){} + public function __debugInfo() {} } diff --git a/SPL/SPL_f.php b/SPL/SPL_f.php index b8cad42fa..edf1192b7 100644 --- a/SPL/SPL_f.php +++ b/SPL/SPL_f.php @@ -4,15 +4,13 @@ use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware; use JetBrains\PhpStorm\Pure; - /** * Return available SPL classes * @link https://php.net/manual/en/function.spl-classes.php * @return array */ #[Pure] -function spl_classes (): array -{} +function spl_classes(): array {} /** * Default implementation for __autoload() @@ -27,8 +25,7 @@ function spl_classes (): array * @return void * @since 5.1.2 */ -function spl_autoload (string $class, ?string $file_extensions): void -{} +function spl_autoload(string $class, ?string $file_extensions): void {} /** * Register and return default file extensions for spl_autoload @@ -44,8 +41,7 @@ function spl_autoload (string $class, ?string $file_extensions): void * spl_autoload. * @since 5.1.2 */ -function spl_autoload_extensions (?string $file_extensions): string -{} +function spl_autoload_extensions(?string $file_extensions): string {} /** * Register given function as __autoload() implementation @@ -63,8 +59,7 @@ function spl_autoload_extensions (?string $file_extensions): string * @throws TypeError Since 8.0. * @since 5.1.2 */ -function spl_autoload_register (?callable $callback, bool $throw = true, bool $prepend = false): bool -{} +function spl_autoload_register(?callable $callback, bool $throw = true, bool $prepend = false): bool {} /** * Unregister given function as __autoload() implementation @@ -75,8 +70,7 @@ function spl_autoload_register (?callable $callback, bool $throw = true, bool $p * @return bool true on success or false on failure. * @since 5.1.2 */ -function spl_autoload_unregister (callable $callback): bool -{} +function spl_autoload_unregister(callable $callback): bool {} /** * Return all registered __autoload() functions @@ -87,8 +81,7 @@ function spl_autoload_unregister (callable $callback): bool * @since 5.1.2 */ #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function spl_autoload_functions () -{} +function spl_autoload_functions() {} /** * Try all registered __autoload() functions to load the requested class @@ -99,7 +92,7 @@ function spl_autoload_functions () * @return void * @since 5.1.2 */ -function spl_autoload_call (string $class): void {} +function spl_autoload_call(string $class): void {} /** * Return the parent classes of the given class @@ -115,8 +108,7 @@ function spl_autoload_call (string $class): void {} * @return string[]|false An array on success, or false on error. */ #[Pure] -function class_parents ($object_or_class, bool $autoload = true): array|false -{} +function class_parents($object_or_class, bool $autoload = true): array|false {} /** * Return the interfaces which are implemented by the given class @@ -132,8 +124,7 @@ function class_parents ($object_or_class, bool $autoload = true): array|false * @return string[]|false An array on success, or false on error. */ #[Pure] -function class_implements ($object_or_class, bool $autoload = true): array|false -{} +function class_implements($object_or_class, bool $autoload = true): array|false {} /** * Return hash id for given object @@ -143,8 +134,7 @@ function class_implements ($object_or_class, bool $autoload = true): array|false * the same object. */ #[Pure] -function spl_object_hash (object $object): string -{} +function spl_object_hash(object $object): string {} /** * Copy the iterator into an array @@ -157,8 +147,7 @@ function spl_object_hash (object $object): string *

    * @return array An array containing the elements of the iterator. */ -function iterator_to_array (Traversable $iterator, bool $preserve_keys = true): array -{} +function iterator_to_array(Traversable $iterator, bool $preserve_keys = true): array {} /** * Count the elements in an iterator @@ -169,8 +158,7 @@ function iterator_to_array (Traversable $iterator, bool $preserve_keys = true): * @return int The number of elements in iterator. */ #[Pure] -function iterator_count (Traversable $iterator): int -{} +function iterator_count(Traversable $iterator): int {} /** * Call a function for every element in an iterator @@ -188,8 +176,7 @@ function iterator_count (Traversable $iterator): int *

    * @return int the iteration count. */ -function iterator_apply (Traversable $iterator, callable $callback, ?array $args): int -{} +function iterator_apply(Traversable $iterator, callable $callback, ?array $args): int {} // End of SPL v.0.2 @@ -203,8 +190,7 @@ function iterator_apply (Traversable $iterator, callable $callback, ?array $args * @see get_declared_traits() * @since 5.4 */ -function class_uses($object_or_class, bool $autoload = true): array|false -{} +function class_uses($object_or_class, bool $autoload = true): array|false {} /** * return the integer object handle for given object @@ -212,7 +198,4 @@ function class_uses($object_or_class, bool $autoload = true): array|false * @return int * @since 7.2 */ -function spl_object_id(object $object): int -{} - -?> +function spl_object_id(object $object): int {} diff --git a/SQLite/SQLite.php b/SQLite/SQLite.php index ee2274e3c..8278e13c5 100644 --- a/SQLite/SQLite.php +++ b/SQLite/SQLite.php @@ -6,551 +6,546 @@ /** * @link https://php.net/manual/en/ref.sqlite.php */ -class SQLiteDatabase { - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * @link https://php.net/manual/en/function.sqlite-open.php - * @param string $filename

    The filename of the SQLite database. If the file does not exist, SQLite will attempt to create it. PHP must have write permissions to the file if data is inserted, the database schema is modified or to create the database if it does not exist.

    - * @param int $mode [optional]

    The mode of the file. Intended to be used to open the database in read-only mode. Presently, this parameter is ignored by the sqlite library. The default value for mode is the octal value 0666 and this is the recommended value.

    - * @param string &$error_message [optional]

    Passed by reference and is set to hold a descriptive error message explaining why the database could not be opened if there was an error.

    - */ - final public function __construct ($filename, $mode = 0666, &$error_message) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * @link https://php.net/manual/en/function.sqlite-query.php - * @param string $query

    - * The query to be executed. - *

    - *

    - * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}. - *

    - * @param int $result_type [optional] - *

    The optional result_type parameter accepts a constant and determines how the returned array will be indexed. Using SQLITE_ASSOC will return only associative indices (named fields) while SQLITE_NUM will return only numerical indices (ordinal field numbers). SQLITE_BOTH will return both associative and numerical indices. SQLITE_BOTH is the default for this function.

    - * @param string &$error_message [optional]

    The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the {@see sqlite_last_error()} function.

    - * @return resource|false

    - * This function will return a result handle or FALSE on failure. - * For queries that return rows, the result handle can then be used with - * functions such as {@see sqlite_fetch_array()} and - * {@see sqlite_seek()}. - *

    - *

    - * Regardless of the query type, this function will return FALSE if the - * query failed. - *

    - *

    - * {@see sqlite_query()} returns a buffered, seekable result - * handle. This is useful for reasonably small queries where you need to - * be able to randomly access the rows. Buffered result handles will - * allocate memory to hold the entire result and will not return until it - * has been fetched. If you only need sequential access to the data, it is - * recommended that you use the much higher performance - * {@see sqlite_unbuffered_query()} instead. - *

    - */ - public function query ($query, $result_type, &$error_message) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * @link https://php.net/manual/en/function.sqlite-exec.php - * @param string $query

    - * The query to be executed. - *

    - *

    - * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}. - *

    - * @param string &$error_message [optional]

    The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the - * {@see sqlite_last_error()} function.

    - * @return bool

    - * This function will return a boolean result; TRUE for success or FALSE for failure. - * If you need to run a query that returns rows, see {@see sqlite_query()}. - *

    - *

    The column names returned by - * SQLITE_ASSOC and SQLITE_BOTH will be - * case-folded according to the value of the - * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration - * option.

    - */ - public function queryExec ($query, &$error_message) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Execute a query against a given database and returns an array - * @link https://php.net/manual/en/function.sqlite-array-query.php - * @param string $query

    - * The query to be executed. - *

    - *

    - * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}. - *

    - * @param int $result_type [optional]

    The optional result_type - * parameter accepts a constant and determines how the returned array will be - * indexed. Using SQLITE_ASSOC will return only associative - * indices (named fields) while SQLITE_NUM will return - * only numerical indices (ordinal field numbers). SQLITE_BOTH - * will return both associative and numerical indices. - * SQLITE_BOTH is the default for this function.

    - * @param bool $decode_binary [optional]

    When the decode_binary - * parameter is set to TRUE (the default), PHP will decode the binary encoding - * it applied to the data if it was encoded using the - * {@see sqlite_escape_string()}. You should normally leave this - * value at its default, unless you are interoperating with databases created by - * other sqlite capable applications.

    - *

    +class SQLiteDatabase +{ + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * @link https://php.net/manual/en/function.sqlite-open.php + * @param string $filename

    The filename of the SQLite database. If the file does not exist, SQLite will attempt to create it. PHP must have write permissions to the file if data is inserted, the database schema is modified or to create the database if it does not exist.

    + * @param int $mode [optional]

    The mode of the file. Intended to be used to open the database in read-only mode. Presently, this parameter is ignored by the sqlite library. The default value for mode is the octal value 0666 and this is the recommended value.

    + * @param string &$error_message [optional]

    Passed by reference and is set to hold a descriptive error message explaining why the database could not be opened if there was an error.

    + */ + final public function __construct($filename, $mode = 0666, &$error_message) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * @link https://php.net/manual/en/function.sqlite-query.php + * @param string $query

    + * The query to be executed. + *

    + *

    + * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}. + *

    + * @param int $result_type [optional] + *

    The optional result_type parameter accepts a constant and determines how the returned array will be indexed. Using SQLITE_ASSOC will return only associative indices (named fields) while SQLITE_NUM will return only numerical indices (ordinal field numbers). SQLITE_BOTH will return both associative and numerical indices. SQLITE_BOTH is the default for this function.

    + * @param string &$error_message [optional]

    The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the {@see sqlite_last_error()} function.

    + * @return resource|false

    + * This function will return a result handle or FALSE on failure. + * For queries that return rows, the result handle can then be used with + * functions such as {@see sqlite_fetch_array()} and + * {@see sqlite_seek()}. + *

    + *

    + * Regardless of the query type, this function will return FALSE if the + * query failed. + *

    + *

    + * {@see sqlite_query()} returns a buffered, seekable result + * handle. This is useful for reasonably small queries where you need to + * be able to randomly access the rows. Buffered result handles will + * allocate memory to hold the entire result and will not return until it + * has been fetched. If you only need sequential access to the data, it is + * recommended that you use the much higher performance + * {@see sqlite_unbuffered_query()} instead. + *

    + */ + public function query($query, $result_type, &$error_message) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * @link https://php.net/manual/en/function.sqlite-exec.php + * @param string $query

    + * The query to be executed. + *

    + *

    + * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}. + *

    + * @param string &$error_message [optional]

    The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the + * {@see sqlite_last_error()} function.

    + * @return bool

    + * This function will return a boolean result; TRUE for success or FALSE for failure. + * If you need to run a query that returns rows, see {@see sqlite_query()}. + *

    + *

    The column names returned by + * SQLITE_ASSOC and SQLITE_BOTH will be + * case-folded according to the value of the + * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration + * option.

    + */ + public function queryExec($query, &$error_message) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Execute a query against a given database and returns an array + * @link https://php.net/manual/en/function.sqlite-array-query.php + * @param string $query

    + * The query to be executed. + *

    + *

    + * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}. + *

    + * @param int $result_type [optional]

    The optional result_type + * parameter accepts a constant and determines how the returned array will be + * indexed. Using SQLITE_ASSOC will return only associative + * indices (named fields) while SQLITE_NUM will return + * only numerical indices (ordinal field numbers). SQLITE_BOTH + * will return both associative and numerical indices. + * SQLITE_BOTH is the default for this function.

    + * @param bool $decode_binary [optional]

    When the decode_binary + * parameter is set to TRUE (the default), PHP will decode the binary encoding + * it applied to the data if it was encoded using the + * {@see sqlite_escape_string()}. You should normally leave this + * value at its default, unless you are interoperating with databases created by + * other sqlite capable applications.

    + *

    * @return array|false - * Returns an array of the entire result set; FALSE otherwise. - *

    - *

    The column names returned by - * SQLITE_ASSOC and SQLITE_BOTH will be - * case-folded according to the value of the - * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration - * option.

    - */ - public function arrayQuery ($query, $result_type, $decode_binary) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.1) - * Executes a query and returns either an array for one single column or the value of the first row - * @link https://php.net/manual/en/function.sqlite-single-query.php - * @param string $query - * @param bool $first_row_only [optional] - * @param bool $decode_binary [optional] - * @return array - */ - public function singleQuery ($query, $first_row_only, $decode_binary) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Execute a query that does not prefetch and buffer all data - * @link https://php.net/manual/en/function.sqlite-unbuffered-query.php - * @param string $query

    - * The query to be executed. - *

    - *

    - * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}. - *

    - * @param int $result_type [optional]

    The optional result_type parameter accepts a constant and determines how the returned array will be indexed. - * Using SQLITE_ASSOC will return only associative indices (named fields) while SQLITE_NUM will return only numerical indices (ordinal field numbers). - * SQLITE_BOTH will return both associative and numerical indices. SQLITE_BOTH is the default for this function. + * Returns an array of the entire result set; FALSE otherwise. *

    - * @param string &$error_message [optional] - * @return resource Returns a result handle or FALSE on failure. - * {@see sqlite_unbuffered_query()} returns a sequential forward-only result set that can only be used to read each row, one after the other. - */ - public function unbufferedQuery ($query, $result_type = SQLITE_BOTH, &$error_message = null) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Returns the rowid of the most recently inserted row - * @link https://php.net/manual/en/function.sqlite-last-insert-rowid.php - * @return int Returns the row id, as an integer. - */ - public function lastInsertRowid () {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Returns the number of rows that were changed by the most recent SQL statement - * @link https://php.net/manual/en/function.sqlite-changes.php - * @return int Returns the number of changed rows. - */ - public function changes () {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Register an aggregating UDF for use in SQL statements - * @link https://php.net/manual/en/function.sqlite-create-aggregate.php - * @param string $function_name

    The name of the function used in SQL statements.

    - * @param callable $step_func

    Callback function called for each row of the result set. Function parameters are &$context, $value, ....

    - * @param callable $finalize_func

    Callback function to aggregate the "stepped" data from each row. Function parameter is &$context and the function should return the final result of aggregation.

    - * @param int $num_args [optional]

    Hint to the SQLite parser if the callback function accepts a predetermined number of arguments.

    - */ - public function createAggregate ($function_name, $step_func, $finalize_func, $num_args = -1) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Registers a "regular" User Defined Function for use in SQL statements - * @link https://php.net/manual/en/function.sqlite-create-function.php - * @param string $function_name

    The name of the function used in SQL statements.

    - * @param callable $callback

    - * Callback function to handle the defined SQL function. - *

    - *

    Note: - * Callback functions should return a type understood by SQLite (i.e. - * {@link https://php.net/manual/en/language.types.intro.php scalar type}). - *

    - * @param int $num_args [optional]

    Note: Two alternative syntaxes are - * supported for compatibility with other database extensions (such as MySQL). - * The preferred form is the first, where the dbhandle - * parameter is the first parameter to the function.

    - */ - public function createFunction ($function_name, $callback, $num_args = -1) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Set busy timeout duration, or disable busy handlers - * @link https://php.net/manual/en/function.sqlite-busy-timeout.php - * @param int $milliseconds

    The number of milliseconds. When set to 0, busy handlers will be disabled and SQLite will return immediately with a SQLITE_BUSY status code if another process/thread has the database locked for an update. - * PHP sets the default busy timeout to be 60 seconds when the database is opened.

    - * @return int

    Returns an error code, or 0 if no error occurred.

    - */ - public function busyTimeout ($milliseconds) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Returns the error code of the last error for a database - * @link https://php.net/manual/en/function.sqlite-last-error.php - * @return int Returns an error code, or 0 if no error occurred. - */ - public function lastError () {} - - /** - * (PHP 5 < 5.4.0) - * Return an array of column types from a particular table - * @link https://php.net/manual/en/function.sqlite-fetch-column-types.php - * @param string $table_name

    The table name to query.

    - * @param int $result_type [optional]

    - * The optional result_type parameter accepts a - * constant and determines how the returned array will be indexed. Using - * SQLITE_ASSOC will return only associative indices - * (named fields) while SQLITE_NUM will return only - * numerical indices (ordinal field numbers). - * SQLITE_ASSOC is the default for - * this function. - *

    - * @return array

    - * Returns an array of column data types; FALSE on error. - *

    - *

    The column names returned by - * SQLITE_ASSOC and SQLITE_BOTH will be - * case-folded according to the value of the - * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration - * option.

    - */ - public function fetchColumnTypes ($table_name, $result_type = SQLITE_ASSOC) {} - + *

    The column names returned by + * SQLITE_ASSOC and SQLITE_BOTH will be + * case-folded according to the value of the + * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration + * option.

    + */ + public function arrayQuery($query, $result_type, $decode_binary) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.1) + * Executes a query and returns either an array for one single column or the value of the first row + * @link https://php.net/manual/en/function.sqlite-single-query.php + * @param string $query + * @param bool $first_row_only [optional] + * @param bool $decode_binary [optional] + * @return array + */ + public function singleQuery($query, $first_row_only, $decode_binary) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Execute a query that does not prefetch and buffer all data + * @link https://php.net/manual/en/function.sqlite-unbuffered-query.php + * @param string $query

    + * The query to be executed. + *

    + *

    + * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}. + *

    + * @param int $result_type [optional]

    The optional result_type parameter accepts a constant and determines how the returned array will be indexed. + * Using SQLITE_ASSOC will return only associative indices (named fields) while SQLITE_NUM will return only numerical indices (ordinal field numbers). + * SQLITE_BOTH will return both associative and numerical indices. SQLITE_BOTH is the default for this function. + *

    + * @param string &$error_message [optional] + * @return resource Returns a result handle or FALSE on failure. + * {@see sqlite_unbuffered_query()} returns a sequential forward-only result set that can only be used to read each row, one after the other. + */ + public function unbufferedQuery($query, $result_type = SQLITE_BOTH, &$error_message = null) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Returns the rowid of the most recently inserted row + * @link https://php.net/manual/en/function.sqlite-last-insert-rowid.php + * @return int Returns the row id, as an integer. + */ + public function lastInsertRowid() {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Returns the number of rows that were changed by the most recent SQL statement + * @link https://php.net/manual/en/function.sqlite-changes.php + * @return int Returns the number of changed rows. + */ + public function changes() {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Register an aggregating UDF for use in SQL statements + * @link https://php.net/manual/en/function.sqlite-create-aggregate.php + * @param string $function_name

    The name of the function used in SQL statements.

    + * @param callable $step_func

    Callback function called for each row of the result set. Function parameters are &$context, $value, ....

    + * @param callable $finalize_func

    Callback function to aggregate the "stepped" data from each row. Function parameter is &$context and the function should return the final result of aggregation.

    + * @param int $num_args [optional]

    Hint to the SQLite parser if the callback function accepts a predetermined number of arguments.

    + */ + public function createAggregate($function_name, $step_func, $finalize_func, $num_args = -1) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Registers a "regular" User Defined Function for use in SQL statements + * @link https://php.net/manual/en/function.sqlite-create-function.php + * @param string $function_name

    The name of the function used in SQL statements.

    + * @param callable $callback

    + * Callback function to handle the defined SQL function. + *

    + *

    Note: + * Callback functions should return a type understood by SQLite (i.e. + * {@link https://php.net/manual/en/language.types.intro.php scalar type}). + *

    + * @param int $num_args [optional]

    Note: Two alternative syntaxes are + * supported for compatibility with other database extensions (such as MySQL). + * The preferred form is the first, where the dbhandle + * parameter is the first parameter to the function.

    + */ + public function createFunction($function_name, $callback, $num_args = -1) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Set busy timeout duration, or disable busy handlers + * @link https://php.net/manual/en/function.sqlite-busy-timeout.php + * @param int $milliseconds

    The number of milliseconds. When set to 0, busy handlers will be disabled and SQLite will return immediately with a SQLITE_BUSY status code if another process/thread has the database locked for an update. + * PHP sets the default busy timeout to be 60 seconds when the database is opened.

    + * @return int

    Returns an error code, or 0 if no error occurred.

    + */ + public function busyTimeout($milliseconds) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Returns the error code of the last error for a database + * @link https://php.net/manual/en/function.sqlite-last-error.php + * @return int Returns an error code, or 0 if no error occurred. + */ + public function lastError() {} + + /** + * (PHP 5 < 5.4.0) + * Return an array of column types from a particular table + * @link https://php.net/manual/en/function.sqlite-fetch-column-types.php + * @param string $table_name

    The table name to query.

    + * @param int $result_type [optional]

    + * The optional result_type parameter accepts a + * constant and determines how the returned array will be indexed. Using + * SQLITE_ASSOC will return only associative indices + * (named fields) while SQLITE_NUM will return only + * numerical indices (ordinal field numbers). + * SQLITE_ASSOC is the default for + * this function. + *

    + * @return array

    + * Returns an array of column data types; FALSE on error. + *

    + *

    The column names returned by + * SQLITE_ASSOC and SQLITE_BOTH will be + * case-folded according to the value of the + * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration + * option.

    + */ + public function fetchColumnTypes($table_name, $result_type = SQLITE_ASSOC) {} } /** * @link https://php.net/manual/en/ref.sqlite.php */ -final class SQLiteResult implements Iterator, Countable { - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Fetches the next row from a result set as an array - * @link https://php.net/manual/en/function.sqlite-fetch-array.php - * @param int $result_type [optional] - *

    - * The optional result_type - * parameter accepts a constant and determines how the returned array will be - * indexed. Using SQLITE_ASSOC will return only associative - * indices (named fields) while SQLITE_NUM will return - * only numerical indices (ordinal field numbers). SQLITE_BOTH - * will return both associative and numerical indices. - * SQLITE_BOTH is the default for this function. +final class SQLiteResult implements Iterator, Countable +{ + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Fetches the next row from a result set as an array + * @link https://php.net/manual/en/function.sqlite-fetch-array.php + * @param int $result_type [optional] + *

    + * The optional result_type + * parameter accepts a constant and determines how the returned array will be + * indexed. Using SQLITE_ASSOC will return only associative + * indices (named fields) while SQLITE_NUM will return + * only numerical indices (ordinal field numbers). SQLITE_BOTH + * will return both associative and numerical indices. + * SQLITE_BOTH is the default for this function. *

    - * @param bool $decode_binary [optional]

    When the decode_binary - * parameter is set to TRUE (the default), PHP will decode the binary encoding - * it applied to the data if it was encoded using the - * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case}. You should normally leave this - * value at its default, unless you are interoperating with databases created by - * other sqlite capable applications.

    + * @param bool $decode_binary [optional]

    When the decode_binary + * parameter is set to TRUE (the default), PHP will decode the binary encoding + * it applied to the data if it was encoded using the + * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case}. You should normally leave this + * value at its default, unless you are interoperating with databases created by + * other sqlite capable applications.

    * @return array *

    - * Returns an array of the next row from a result set; FALSE if the - * next position is beyond the final row. - *

    - *

    The column names returned by - * SQLITE_ASSOC and SQLITE_BOTH will be - * case-folded according to the value of the - * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration - * option.

    - */ - public function fetch ($result_type = SQLITE_BOTH, $decode_binary = true) {} - - /** - * (PHP 5 < 5.4.0) - * Fetches the next row from a result set as an object - * @link https://php.net/manual/en/function.sqlite-fetch-object.php - * @param string $class_name [optional] - * @param array $ctor_params [optional] - * @param bool $decode_binary [optional] - * @return object - */ - public function fetchObject ($class_name, $ctor_params, $decode_binary = true) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.1) - * Fetches the first column of a result set as a string - * @link https://php.net/manual/en/function.sqlite-fetch-single.php - * @param bool $decode_binary [optional] - * @return string

    Returns the first column value, as a string.

    - */ - public function fetchSingle ($decode_binary = true) {} - - /** - * (PHP 5 < 5.4.0) - * Fetches the next row from a result set as an object - * @link https://www.php.net/manual/en/function.sqlite-fetch-all.php + * Returns an array of the next row from a result set; FALSE if the + * next position is beyond the final row. + *

    + *

    The column names returned by + * SQLITE_ASSOC and SQLITE_BOTH will be + * case-folded according to the value of the + * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration + * option.

    + */ + public function fetch($result_type = SQLITE_BOTH, $decode_binary = true) {} + + /** + * (PHP 5 < 5.4.0) + * Fetches the next row from a result set as an object + * @link https://php.net/manual/en/function.sqlite-fetch-object.php + * @param string $class_name [optional] + * @param array $ctor_params [optional] + * @param bool $decode_binary [optional] + * @return object + */ + public function fetchObject($class_name, $ctor_params, $decode_binary = true) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.1) + * Fetches the first column of a result set as a string + * @link https://php.net/manual/en/function.sqlite-fetch-single.php + * @param bool $decode_binary [optional] + * @return string

    Returns the first column value, as a string.

    + */ + public function fetchSingle($decode_binary = true) {} + + /** + * (PHP 5 < 5.4.0) + * Fetches the next row from a result set as an object + * @link https://www.php.net/manual/en/function.sqlite-fetch-all.php * @param int $result_type [optional]

    * The optional result_type parameter accepts a constant and determines how the returned array will be indexed. * Using SQLITE_ASSOC will return only associative indices (named fields) while SQLITE_NUM will return only numerical indices (ordinal field numbers). * {@see SQLITE_BOTH} will return both associative and numerical indices. {@see SQLITE_BOTH} is the default for this function.

    - * @param bool $decode_binary [optional]

    When the decode_binary parameter is set to TRUE (the default), + * @param bool $decode_binary [optional]

    When the decode_binary parameter is set to TRUE (the default), * PHP will decode the binary encoding it applied to the data if it was encoded using the {@see sqlite_escape_string()}. * You should normally leave this value at its default, unless you are interoperating with databases created by other sqlite capable applications.

    * @return object - */ - public function fetchAll ($result_type, $decode_binary = true) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Fetches a column from the current row of a result set - * @link https://php.net/manual/en/function.sqlite-column.php - * @param $index_or_name - * @param $decode_binary [optional]

    When the decode_binary - * parameter is set to TRUE (the default), PHP will decode the binary encoding - * it applied to the data if it was encoded using the - * {@see sqlite_escape_string()}. You should normally leave this - * value at its default, unless you are interoperating with databases created by - * other sqlite capable applications.

    - * @return mixed

    Returns the column value

    - */ - public function column ($index_or_name, $decode_binary = true) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Returns the number of fields in a result set - * @link https://php.net/manual/en/function.sqlite-num-fields.php - * @return int

    Returns the number of fields, as an integer.

    - */ - public function numFields () {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Returns the name of a particular field - * @link https://php.net/manual/en/function.sqlite-field-name.php - * @param int $field_index

    The ordinal column number in the result set.

    - * @return string

    - * Returns the name of a field in an SQLite result set, given the ordinal - * column number; FALSE on error. - *

    - *

    The column names returned by - * SQLITE_ASSOC and SQLITE_BOTH will be - * case-folded according to the value of the - * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case}configuration - * option.

    - * - */ - public function fieldName ($field_index) {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Fetches the current row from a result set as an array - * @link https://php.net/manual/en/function.sqlite-current.php - * @param int $result_type [optional]

    The optional result_type - * parameter accepts a constant and determines how the returned array will be - * indexed. Using {@see SQLITE_ASSOC} will return only associative - * indices (named fields) while {@see SQLITE_NUM} will return - * only numerical indices (ordinal field numbers). SQLITE_BOTH - * will return both associative and numerical indices. - * {@see SQLITE_BOTH} is the default for this function.

    - * @param bool $decode_binary [optional]

    When the decode_binary - * parameter is set to TRUE (the default), PHP will decode the binary encoding - * it applied to the data if it was encoded using the - * {@see sqlite_escape_string()}. You should normally leave this - * value at its default, unless you are interoperating with databases created by - * other sqlite capable applications.

    - * @return array

    - * Returns an array of the current row from a result set; FALSE if the - * current position is beyond the final row. - *

    - *

    The column names returned by - * SQLITE_ASSOC and SQLITE_BOTH will be - * case-folded according to the value of the - * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration - * option.

    - */ - public function current ($result_type = SQLITE_BOTH , $decode_binary = true) {} - /** - * Return the key of the current element - * @link https://php.net/manual/en/iterator.key.php - * @return mixed scalar on success, or null on failure. - * @since 5.0.0 - */ - public function key () {} - /** - * Seek to the next row number - * @link https://php.net/manual/en/function.sqlite-next.php - * @return bool Returns TRUE on success, or FALSE if there are no more rows. - * @since 5.0.0 - */ - public function next () {} - /** - * Checks if current position is valid - * @link https://php.net/manual/en/iterator.valid.php - * @return bool

    - * Returns TRUE if there are more rows available from the - * result handle, or FALSE otherwise. - *

    - * @since 5.0.0 - */ - public function valid () {} - /** - * Rewind the Iterator to the first element - * @link https://php.net/manual/en/iterator.rewind.php - * @return void Any returned value is ignored. - * @since 5.0.0 - */ - public function rewind () {} - - /** - * Count elements of an object - * @link https://php.net/manual/en/countable.count.php - * @return int

    The custom count as an integer. - *

    - *

    - * The return value is cast to an integer. - *

    - * @since 5.1.0 - */ - public function count () {} - - /** - * Seek to the previous row number of a result set - * @link https://php.net/manual/en/function.sqlite-prev.php - * @return bool

    Returns TRUE on success, or FALSE if there are no more previous rows. - *

    - * @since 5.4.0 - */ - public function prev () {} - - /** - *@since 5.4.0 - * Returns whether or not a previous row is available - * @link https://php.net/manual/en/function.sqlite-has-prev.php - * @return bool

    - * Returns TRUE if there are more previous rows available from the - * result handle, or FALSE otherwise. - *

    - */ - public function hasPrev () {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Returns the number of rows in a buffered result set - * @link https://php.net/manual/en/function.sqlite-num-rows.php - * @return int Returns the number of rows, as an integer. - */ - public function numRows () {} - - /** - * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) - * Seek to a particular row number of a buffered result set - * @link https://php.net/manual/en/function.sqlite-seek.php - * @param $row - *

    - * The ordinal row number to seek to. The row number is zero-based (0 is - * the first row). - *

    - *

    Note:

    This function cannot be used with - * unbuffered result handles.

    - */ - public function seek ($row) {} - + */ + public function fetchAll($result_type, $decode_binary = true) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Fetches a column from the current row of a result set + * @link https://php.net/manual/en/function.sqlite-column.php + * @param $index_or_name + * @param $decode_binary [optional]

    When the decode_binary + * parameter is set to TRUE (the default), PHP will decode the binary encoding + * it applied to the data if it was encoded using the + * {@see sqlite_escape_string()}. You should normally leave this + * value at its default, unless you are interoperating with databases created by + * other sqlite capable applications.

    + * @return mixed

    Returns the column value

    + */ + public function column($index_or_name, $decode_binary = true) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Returns the number of fields in a result set + * @link https://php.net/manual/en/function.sqlite-num-fields.php + * @return int

    Returns the number of fields, as an integer.

    + */ + public function numFields() {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Returns the name of a particular field + * @link https://php.net/manual/en/function.sqlite-field-name.php + * @param int $field_index

    The ordinal column number in the result set.

    + * @return string

    + * Returns the name of a field in an SQLite result set, given the ordinal + * column number; FALSE on error. + *

    + *

    The column names returned by + * SQLITE_ASSOC and SQLITE_BOTH will be + * case-folded according to the value of the + * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case}configuration + * option.

    + */ + public function fieldName($field_index) {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Fetches the current row from a result set as an array + * @link https://php.net/manual/en/function.sqlite-current.php + * @param int $result_type [optional]

    The optional result_type + * parameter accepts a constant and determines how the returned array will be + * indexed. Using {@see SQLITE_ASSOC} will return only associative + * indices (named fields) while {@see SQLITE_NUM} will return + * only numerical indices (ordinal field numbers). SQLITE_BOTH + * will return both associative and numerical indices. + * {@see SQLITE_BOTH} is the default for this function.

    + * @param bool $decode_binary [optional]

    When the decode_binary + * parameter is set to TRUE (the default), PHP will decode the binary encoding + * it applied to the data if it was encoded using the + * {@see sqlite_escape_string()}. You should normally leave this + * value at its default, unless you are interoperating with databases created by + * other sqlite capable applications.

    + * @return array

    + * Returns an array of the current row from a result set; FALSE if the + * current position is beyond the final row. + *

    + *

    The column names returned by + * SQLITE_ASSOC and SQLITE_BOTH will be + * case-folded according to the value of the + * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration + * option.

    + */ + public function current($result_type = SQLITE_BOTH, $decode_binary = true) {} + /** + * Return the key of the current element + * @link https://php.net/manual/en/iterator.key.php + * @return mixed scalar on success, or null on failure. + * @since 5.0.0 + */ + public function key() {} + /** + * Seek to the next row number + * @link https://php.net/manual/en/function.sqlite-next.php + * @return bool Returns TRUE on success, or FALSE if there are no more rows. + * @since 5.0.0 + */ + public function next() {} + /** + * Checks if current position is valid + * @link https://php.net/manual/en/iterator.valid.php + * @return bool

    + * Returns TRUE if there are more rows available from the + * result handle, or FALSE otherwise. + *

    + * @since 5.0.0 + */ + public function valid() {} + /** + * Rewind the Iterator to the first element + * @link https://php.net/manual/en/iterator.rewind.php + * @return void Any returned value is ignored. + * @since 5.0.0 + */ + public function rewind() {} + + /** + * Count elements of an object + * @link https://php.net/manual/en/countable.count.php + * @return int

    The custom count as an integer. + *

    + *

    + * The return value is cast to an integer. + *

    + * @since 5.1.0 + */ + public function count() {} + + /** + * Seek to the previous row number of a result set + * @link https://php.net/manual/en/function.sqlite-prev.php + * @return bool

    Returns TRUE on success, or FALSE if there are no more previous rows. + *

    + * @since 5.4.0 + */ + public function prev() {} + + /** + *@since 5.4.0 + * Returns whether or not a previous row is available + * @link https://php.net/manual/en/function.sqlite-has-prev.php + * @return bool

    + * Returns TRUE if there are more previous rows available from the + * result handle, or FALSE otherwise. + *

    + */ + public function hasPrev() {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Returns the number of rows in a buffered result set + * @link https://php.net/manual/en/function.sqlite-num-rows.php + * @return int Returns the number of rows, as an integer. + */ + public function numRows() {} + + /** + * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) + * Seek to a particular row number of a buffered result set + * @link https://php.net/manual/en/function.sqlite-seek.php + * @param $row + *

    + * The ordinal row number to seek to. The row number is zero-based (0 is + * the first row). + *

    + *

    Note:

    This function cannot be used with + * unbuffered result handles.

    + */ + public function seek($row) {} } /** * Represents an unbuffered SQLite result set. Unbuffered results sets are sequential, forward-seeking only. * @link https://php.net/manual/en/ref.sqlite.php */ -final class SQLiteUnbuffered { - - /** - * @param int $result_type [optional] - * @param bool $decode_binary [optional] - */ - public function fetch ($result_type, $decode_binary) {} +final class SQLiteUnbuffered +{ + /** + * @param int $result_type [optional] + * @param bool $decode_binary [optional] + */ + public function fetch($result_type, $decode_binary) {} - /** + /** * @link https://www.php.net/manual/en/function.sqlite-fetch-object.php - * @param string $class_name [optional] - * @param array $ctor_params [optional] - * @param bool $decode_binary [optional] - */ - public function fetchObject ($class_name, $ctor_params, $decode_binary) {} - - /** - * @param bool $decode_binary [optional] - */ - public function fetchSingle ($decode_binary) {} - - /** - * @param int $result_type [optional] - * @param bool $decode_binary [optional] - */ - public function fetchAll ($result_type, $decode_binary) {} - - /** - * @param $index_or_name - * @param $decode_binary [optional] - */ - public function column ($index_or_name, $decode_binary) {} - - public function numFields () {} - - /** - * @param int $field_index - */ - public function fieldName ($field_index) {} - - /** - * @param int $result_type [optional] - * @param bool $decode_binary [optional] - */ - public function current ($result_type, $decode_binary) {} - - public function next () {} - - public function valid () {} - + * @param string $class_name [optional] + * @param array $ctor_params [optional] + * @param bool $decode_binary [optional] + */ + public function fetchObject($class_name, $ctor_params, $decode_binary) {} + + /** + * @param bool $decode_binary [optional] + */ + public function fetchSingle($decode_binary) {} + + /** + * @param int $result_type [optional] + * @param bool $decode_binary [optional] + */ + public function fetchAll($result_type, $decode_binary) {} + + /** + * @param $index_or_name + * @param $decode_binary [optional] + */ + public function column($index_or_name, $decode_binary) {} + + public function numFields() {} + + /** + * @param int $field_index + */ + public function fieldName($field_index) {} + + /** + * @param int $result_type [optional] + * @param bool $decode_binary [optional] + */ + public function current($result_type, $decode_binary) {} + + public function next() {} + + public function valid() {} } -final class SQLiteException extends RuntimeException { - protected $message; - protected $code; - protected $file; - protected $line; - - - /** - * Clone the exception - * @link https://php.net/manual/en/exception.clone.php - * @return void - * @since 5.1.0 - */ - final private function __clone () {} - - /** - * Construct the exception - * @link https://php.net/manual/en/exception.construct.php - * @param $message [optional] - * @param $code [optional] - * @param $previous [optional] - * @since 5.1.0 - */ - #[Pure] - public function __construct ($message, $code, $previous) {} - - /** - * String representation of the exception - * @link https://php.net/manual/en/exception.tostring.php - * @return string the string representation of the exception. - * @since 5.1.0 - */ - public function __toString () {} - +final class SQLiteException extends RuntimeException +{ + protected $message; + protected $code; + protected $file; + protected $line; + + /** + * Clone the exception + * @link https://php.net/manual/en/exception.clone.php + * @return void + * @since 5.1.0 + */ + final private function __clone() {} + + /** + * Construct the exception + * @link https://php.net/manual/en/exception.construct.php + * @param $message [optional] + * @param $code [optional] + * @param $previous [optional] + * @since 5.1.0 + */ + #[Pure] + public function __construct($message, $code, $previous) {} + + /** + * String representation of the exception + * @link https://php.net/manual/en/exception.tostring.php + * @return string the string representation of the exception. + * @since 5.1.0 + */ + public function __toString() {} } /** @@ -575,7 +570,7 @@ public function __toString () {} *

    * @return resource|false a resource (database handle) on success, false on error. */ -function sqlite_open ($filename, $mode = null, &$error_message = null) {} +function sqlite_open($filename, $mode = null, &$error_message = null) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -599,7 +594,7 @@ function sqlite_open ($filename, $mode = null, &$error_message = null) {} *

    * @return resource|false

    a resource (database handle) on success, false on error.

    */ -function sqlite_popen ($filename, $mode = null, &$error_message = null) {} +function sqlite_popen($filename, $mode = null, &$error_message = null) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -611,7 +606,7 @@ function sqlite_popen ($filename, $mode = null, &$error_message = null) {} *

    * @return void */ -function sqlite_close ($dbhandle) {} +function sqlite_close($dbhandle) {} /** * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)
    @@ -657,7 +652,7 @@ function sqlite_close ($dbhandle) {} * recommended that you use the much higher performance * {@see sqlite_unbuffered_query} instead. */ -function sqlite_query ($query, $dbhandle, $result_type = SQLITE_BOTH, &$error_msg = null) {} +function sqlite_query($query, $dbhandle, $result_type = SQLITE_BOTH, &$error_msg = null) {} /** * (PHP 5, PECL sqlite >= 1.0.3)
    @@ -683,7 +678,7 @@ function sqlite_query ($query, $dbhandle, $result_type = SQLITE_BOTH, &$error_ms * @return bool

    This function will return a boolean result; true for success or false for failure. * If you need to run a query that returns rows, see sqlite_query.

    */ -function sqlite_exec ($dbhandle, $query, &$error_msg = null) {} +function sqlite_exec($dbhandle, $query, &$error_msg = null) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -721,7 +716,7 @@ function sqlite_exec ($dbhandle, $query, &$error_msg = null) {} * {@link php.net/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration * option.

    */ -function sqlite_array_query ($dbhandle, $query, $result_type = null, $decode_binary = null) {} +function sqlite_array_query($dbhandle, $query, $result_type = null, $decode_binary = null) {} /** * (PHP 5, PECL sqlite >= 1.0.1)
    @@ -733,7 +728,7 @@ function sqlite_array_query ($dbhandle, $query, $result_type = null, $decode_bin * @param bool $decode_binary [optional] * @return array */ -function sqlite_single_query ($db, $query, $first_row_only = null, $decode_binary = null) {} +function sqlite_single_query($db, $query, $first_row_only = null, $decode_binary = null) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -745,7 +740,7 @@ function sqlite_single_query ($db, $query, $first_row_only = null, $decode_binar * @return array|false

    an array of the next row from a result set; false if the * next position is beyond the final row.

    */ -function sqlite_fetch_array ($result, $result_type = SQLITE_BOTH, $decode_binary = null) {} +function sqlite_fetch_array($result, $result_type = SQLITE_BOTH, $decode_binary = null) {} /** * Fetches the next row from a result set as an object @@ -756,7 +751,7 @@ function sqlite_fetch_array ($result, $result_type = SQLITE_BOTH, $decode_binary * @param bool $decode_binary [optional] * @return object */ -function sqlite_fetch_object ($result, $class_name = null, ?array $ctor_params = null, $decode_binary = null) {} +function sqlite_fetch_object($result, $class_name = null, ?array $ctor_params = null, $decode_binary = null) {} /** * (PHP 5, PECL sqlite >= 1.0.1)
    @@ -771,7 +766,7 @@ function sqlite_fetch_object ($result, $class_name = null, ?array $ctor_params = * other sqlite capable applications.

    * @return string

    the first column value, as a string.

    */ -function sqlite_fetch_single ($result, $decode_binary = null) {} +function sqlite_fetch_single($result, $decode_binary = null) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -787,7 +782,7 @@ function sqlite_fetch_single ($result, $decode_binary = null) {} * other sqlite capable applications.

    * @return string

    the first column value, as a string.

    */ -function sqlite_fetch_string ($result, $decode_binary) {} +function sqlite_fetch_string($result, $decode_binary) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -804,7 +799,7 @@ function sqlite_fetch_string ($result, $decode_binary) {} *

    The column names returned by SQLITE_ASSOC and SQLITE_BOTH will be case-folded according to the value of the * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration option.

    */ -function sqlite_fetch_all ($result_type = null, $decode_binary = null) {} +function sqlite_fetch_all($result_type = null, $decode_binary = null) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -816,7 +811,7 @@ function sqlite_fetch_all ($result_type = null, $decode_binary = null) {} * @return array|false an array of the current row from a result set; false if the * current position is beyond the final row. */ -function sqlite_current ($result, $result_type = null, $decode_binary = null) {} +function sqlite_current($result, $result_type = null, $decode_binary = null) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -834,7 +829,7 @@ function sqlite_current ($result, $result_type = null, $decode_binary = null) {} * other sqlite capable applications.

    * @return mixed the column value. */ -function sqlite_column ($result, $index_or_name, $decode_binary = null) {} +function sqlite_column($result, $index_or_name, $decode_binary = null) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -842,7 +837,7 @@ function sqlite_column ($result, $index_or_name, $decode_binary = null) {} * @link https://php.net/manual/en/function.sqlite-libversion.php * @return string the library version, as a string. */ -function sqlite_libversion () {} +function sqlite_libversion() {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -850,7 +845,7 @@ function sqlite_libversion () {} * @link https://php.net/manual/en/function.sqlite-libencoding.php * @return string the library encoding. */ -function sqlite_libencoding () {} +function sqlite_libencoding() {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -860,7 +855,7 @@ function sqlite_libencoding () {} * @param $db * @return int the number of changed rows. */ -function sqlite_changes ($db) {} +function sqlite_changes($db) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -870,7 +865,7 @@ function sqlite_changes ($db) {} * {@see sqlite_open()} when used procedurally. This parameter is not required when using the object-oriented method.

    * @return int the row id, as an integer. */ -function sqlite_last_insert_rowid ($dbhandle) {} +function sqlite_last_insert_rowid($dbhandle) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -884,7 +879,7 @@ function sqlite_last_insert_rowid ($dbhandle) {} * unbuffered result handles.

    * @return int the number of rows, as an integer. */ -function sqlite_num_rows ($result) {} +function sqlite_num_rows($result) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -893,7 +888,7 @@ function sqlite_num_rows ($result) {} * @param resource $result

    The SQLite result resource. This parameter is not required when using the object-oriented method.

    * @return int the number of fields, as an integer. */ -function sqlite_num_fields ($result) {} +function sqlite_num_fields($result) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -906,7 +901,7 @@ function sqlite_num_fields ($result) {} * @return string the name of a field in an SQLite result set, given the ordinal * column number; false on error. */ -function sqlite_field_name ($result, $field_index) {} +function sqlite_field_name($result, $field_index) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -924,7 +919,7 @@ function sqlite_field_name ($result, $field_index) {} *

    * @return bool false if the row does not exist, true otherwise. */ -function sqlite_seek ($result, $rownum) {} +function sqlite_seek($result, $rownum) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -938,7 +933,7 @@ function sqlite_seek ($result, $rownum) {} * unbuffered result handles.

    * @return bool false if there are no rows in the result set, true otherwise. */ -function sqlite_rewind ($result) {} +function sqlite_rewind($result) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -952,7 +947,7 @@ function sqlite_rewind ($result) {} * unbuffered result handles.

    * @return bool TRUE on success, or FALSE if there are no more rows. */ -function sqlite_next ($result) {} +function sqlite_next($result) {} /** * Seek to the previous row number of a result set @@ -965,7 +960,7 @@ function sqlite_next ($result) {} * unbuffered result handles.

    * @return bool true on success, or false if there are no more previous rows. */ -function sqlite_prev ($result) {} +function sqlite_prev($result) {} /** * Returns whether more rows are available @@ -979,7 +974,7 @@ function sqlite_prev ($result) {} * @return bool TRUE if there are more rows available from the * result handle, or FALSE otherwise. */ -function sqlite_valid ($result) {} +function sqlite_valid($result) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -991,7 +986,7 @@ function sqlite_valid ($result) {} * @return bool TRUE if there are more rows available from the * result handle, or FALSE otherwise. */ -function sqlite_has_more ($result) {} +function sqlite_has_more($result) {} /** * Returns whether or not a previous row is available @@ -1003,7 +998,7 @@ function sqlite_has_more ($result) {} * @return bool TRUE if there are more previous rows available from the * result handle, or FALSE otherwise. */ -function sqlite_has_prev ($result) {} +function sqlite_has_prev($result) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -1020,7 +1015,7 @@ function sqlite_has_prev ($result) {} *

    * @return string an escaped string for use in an SQLite SQL statement. */ -function sqlite_escape_string ($item) {} +function sqlite_escape_string($item) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -1044,7 +1039,7 @@ function sqlite_escape_string ($item) {} *

    * @return void */ -function sqlite_busy_timeout ($dbhandle, $milliseconds) {} +function sqlite_busy_timeout($dbhandle, $milliseconds) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -1055,7 +1050,7 @@ function sqlite_busy_timeout ($dbhandle, $milliseconds) {} * This parameter is not required when using the object-oriented method.

    * @return int an error code, or 0 if no error occurred. */ -function sqlite_last_error ($dbhandle) {} +function sqlite_last_error($dbhandle) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -1068,7 +1063,7 @@ function sqlite_last_error ($dbhandle) {} * @return string a human readable description of the error_code, * as a string. */ -function sqlite_error_string ($error_code) {} +function sqlite_error_string($error_code) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -1096,7 +1091,7 @@ function sqlite_error_string ($error_code) {} * the other. *

    */ -function sqlite_unbuffered_query ($dbhandle, $query, $result_type = SQLITE_BOTH, &$error_msg = null) {} +function sqlite_unbuffered_query($dbhandle, $query, $result_type = SQLITE_BOTH, &$error_msg = null) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -1120,7 +1115,7 @@ function sqlite_unbuffered_query ($dbhandle, $query, $result_type = SQLITE_BOTH, *

    * @return void */ -function sqlite_create_aggregate ($dbhandle, $function_name, $step_func, $finalize_func, $num_args = null) {} +function sqlite_create_aggregate($dbhandle, $function_name, $step_func, $finalize_func, $num_args = null) {} /** * (PHP 5, sqlite >= 1.0.0)
    @@ -1143,7 +1138,7 @@ function sqlite_create_aggregate ($dbhandle, $function_name, $step_func, $finali *

    * @return void */ -function sqlite_create_function ($dbhandle, $function_name, $callback, $num_args = null) {} +function sqlite_create_function($dbhandle, $function_name, $callback, $num_args = null) {} /** * Opens a SQLite database and returns a SQLiteDatabase object @@ -1163,7 +1158,7 @@ function sqlite_create_function ($dbhandle, $function_name, $callback, $num_args *

    * @return SQLiteDatabase|null a SQLiteDatabase object on success, null on error. */ -function sqlite_factory ($filename, $mode = null, &$error_message = null) {} +function sqlite_factory($filename, $mode = null, &$error_message = null) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -1174,7 +1169,7 @@ function sqlite_factory ($filename, $mode = null, &$error_message = null) {} *

    * @return string The encoded string. */ -function sqlite_udf_encode_binary ($data) {} +function sqlite_udf_encode_binary($data) {} /** * (PHP 5, PECL sqlite >= 1.0.0)
    @@ -1187,7 +1182,7 @@ function sqlite_udf_encode_binary ($data) {} *

    * @return string The decoded string. */ -function sqlite_udf_decode_binary ($data) {} +function sqlite_udf_decode_binary($data) {} /** * Return an array of column types from a particular table @@ -1210,197 +1205,196 @@ function sqlite_udf_decode_binary ($data) {} *

    * @return array|false an array of column data types; false on error. */ -function sqlite_fetch_column_types ($dbhandle, $table_name, $result_type = null) {} - +function sqlite_fetch_column_types($dbhandle, $table_name, $result_type = null) {} /** * Columns are returned into the array having both a numerical index * and the field name as the array index. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_BOTH', 3); +define('SQLITE_BOTH', 3); /** * Columns are returned into the array having a numerical index to the * fields. This index starts with 0, the first field in the result. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_NUM', 2); +define('SQLITE_NUM', 2); /** * Columns are returned into the array having the field name as the array * index. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_ASSOC', 1); +define('SQLITE_ASSOC', 1); /** * Successful result. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_OK', 0); +define('SQLITE_OK', 0); /** * SQL error or missing database. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_ERROR', 1); +define('SQLITE_ERROR', 1); /** * An internal logic error in SQLite. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_INTERNAL', 2); +define('SQLITE_INTERNAL', 2); /** * Access permission denied. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_PERM', 3); +define('SQLITE_PERM', 3); /** * Callback routine requested an abort. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_ABORT', 4); +define('SQLITE_ABORT', 4); /** * The database file is locked. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_BUSY', 5); +define('SQLITE_BUSY', 5); /** * A table in the database is locked. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_LOCKED', 6); +define('SQLITE_LOCKED', 6); /** * Memory allocation failed. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_NOMEM', 7); +define('SQLITE_NOMEM', 7); /** * Attempt to write a readonly database. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_READONLY', 8); +define('SQLITE_READONLY', 8); /** * Operation terminated internally. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_INTERRUPT', 9); +define('SQLITE_INTERRUPT', 9); /** * Disk I/O error occurred. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_IOERR', 10); +define('SQLITE_IOERR', 10); /** * The database disk image is malformed. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_CORRUPT', 11); +define('SQLITE_CORRUPT', 11); /** * (Internal) Table or record not found. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_NOTFOUND', 12); +define('SQLITE_NOTFOUND', 12); /** * Insertion failed because database is full. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_FULL', 13); +define('SQLITE_FULL', 13); /** * Unable to open the database file. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_CANTOPEN', 14); +define('SQLITE_CANTOPEN', 14); /** * Database lock protocol error. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_PROTOCOL', 15); +define('SQLITE_PROTOCOL', 15); /** * (Internal) Database table is empty. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_EMPTY', 16); +define('SQLITE_EMPTY', 16); /** * The database schema changed. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_SCHEMA', 17); +define('SQLITE_SCHEMA', 17); /** * Too much data for one row of a table. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_TOOBIG', 18); +define('SQLITE_TOOBIG', 18); /** * Abort due to constraint violation. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_CONSTRAINT', 19); +define('SQLITE_CONSTRAINT', 19); /** * Data type mismatch. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_MISMATCH', 20); +define('SQLITE_MISMATCH', 20); /** * Library used incorrectly. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_MISUSE', 21); +define('SQLITE_MISUSE', 21); /** * Uses of OS features not supported on host. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_NOLFS', 22); +define('SQLITE_NOLFS', 22); /** * Authorized failed. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_AUTH', 23); +define('SQLITE_AUTH', 23); /** * File opened that is not a database file. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_NOTADB', 26); +define('SQLITE_NOTADB', 26); /** * Auxiliary database format error. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_FORMAT', 24); +define('SQLITE_FORMAT', 24); /** * Internal process has another row ready. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_ROW', 100); +define('SQLITE_ROW', 100); /** * Internal process has finished executing. * @link https://php.net/manual/en/sqlite.constants.php */ -define ('SQLITE_DONE', 101); +define('SQLITE_DONE', 101); /** * Specifies that a function created with {@see SQLite3::createFunction()} is deterministic, diff --git a/SaxonC/SaxonC.php b/SaxonC/SaxonC.php index 8afe2274c..e86bab24e 100644 --- a/SaxonC/SaxonC.php +++ b/SaxonC/SaxonC.php @@ -1,11 +1,12 @@ - * If specified, the function writes the data to the file rather than - * returning it. - *

    - * @return string|bool If the filename isn't specified, this function - * returns a string on success and FALSE on error. If the - * parameter is specified, it returns TRUE if the file was written - * successfully and FALSE otherwise. - * @since 5.0.1 - */ - public function asXML ($filename = null) {} - - /** - * Alias of SimpleXMLElement::asXML + /** + * Return a well-formed XML string based on SimpleXML element + * @link https://php.net/manual/en/simplexmlelement.asxml.php + * @param string $filename [optional]

    + * If specified, the function writes the data to the file rather than + * returning it. + *

    + * @return string|bool If the filename isn't specified, this function + * returns a string on success and FALSE on error. If the + * parameter is specified, it returns TRUE if the file was written + * successfully and FALSE otherwise. + * @since 5.0.1 + */ + public function asXML($filename = null) {} + + /** + * Alias of SimpleXMLElement::asXML * Return a well-formed XML string based on SimpleXML element - * @link https://php.net/manual/en/simplexmlelement.savexml.php + * @link https://php.net/manual/en/simplexmlelement.savexml.php * @param string $filename [optional]

    - * If specified, the function writes the data to the file rather than - * returning it. - *

    + * If specified, the function writes the data to the file rather than + * returning it. + *

    * @return string|bool If the filename isn't specified, this function - * returns a string on success and false on error. If the - * parameter is specified, it returns true if the file was written - * successfully and false otherwise. - */ - public function saveXML ($filename = null) {} - - /** - * Runs XPath query on XML data - * @link https://php.net/manual/en/simplexmlelement.xpath.php - * @param string $expression

    - * An XPath path - *

    - * @return static[]|false an array of SimpleXMLElement objects or FALSE in - * case of an error. - */ - public function xpath ($expression) {} - - /** - * Creates a prefix/ns context for the next XPath query - * @link https://php.net/manual/en/simplexmlelement.registerxpathnamespace.php - * @param string $prefix

    - * The namespace prefix to use in the XPath query for the namespace given in - * ns. - *

    - * @param string $namespace

    - * The namespace to use for the XPath query. This must match a namespace in - * use by the XML document or the XPath query using - * prefix will not return any results. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function registerXPathNamespace ($prefix, $namespace) {} - - /** - * Identifies an element's attributes - * @link https://php.net/manual/en/simplexmlelement.attributes.php - * @param string $namespaceOrPrefix [optional]

    - * An optional namespace for the retrieved attributes - *

    - * @param bool $isPrefix [optional]

    - * Default to FALSE - *

    - * @return static|null a SimpleXMLElement object that can be - * iterated over to loop through the attributes on the tag. - *

    - *

    - * Returns NULL if called on a SimpleXMLElement - * object that already represents an attribute and not a tag. - * @since 5.0.1 - */ - public function attributes ($namespaceOrPrefix = null, $isPrefix = false) {} - - /** - * Finds children of given node - * @link https://php.net/manual/en/simplexmlelement.children.php - * @param string $namespaceOrPrefix [optional]

    - * An XML namespace. - *

    - * @param bool $isPrefix [optional]

    - * If is_prefix is TRUE, - * ns will be regarded as a prefix. If FALSE, - * ns will be regarded as a namespace - * URL. - *

    - * @return static a SimpleXMLElement element, whether the node - * has children or not. - * @since 5.0.1 - */ + * returns a string on success and false on error. If the + * parameter is specified, it returns true if the file was written + * successfully and false otherwise. + */ + public function saveXML($filename = null) {} + + /** + * Runs XPath query on XML data + * @link https://php.net/manual/en/simplexmlelement.xpath.php + * @param string $expression

    + * An XPath path + *

    + * @return static[]|false an array of SimpleXMLElement objects or FALSE in + * case of an error. + */ + public function xpath($expression) {} + + /** + * Creates a prefix/ns context for the next XPath query + * @link https://php.net/manual/en/simplexmlelement.registerxpathnamespace.php + * @param string $prefix

    + * The namespace prefix to use in the XPath query for the namespace given in + * ns. + *

    + * @param string $namespace

    + * The namespace to use for the XPath query. This must match a namespace in + * use by the XML document or the XPath query using + * prefix will not return any results. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function registerXPathNamespace($prefix, $namespace) {} + + /** + * Identifies an element's attributes + * @link https://php.net/manual/en/simplexmlelement.attributes.php + * @param string $namespaceOrPrefix [optional]

    + * An optional namespace for the retrieved attributes + *

    + * @param bool $isPrefix [optional]

    + * Default to FALSE + *

    + * @return static|null a SimpleXMLElement object that can be + * iterated over to loop through the attributes on the tag. + *

    + *

    + * Returns NULL if called on a SimpleXMLElement + * object that already represents an attribute and not a tag. + * @since 5.0.1 + */ + public function attributes($namespaceOrPrefix = null, $isPrefix = false) {} + + /** + * Finds children of given node + * @link https://php.net/manual/en/simplexmlelement.children.php + * @param string $namespaceOrPrefix [optional]

    + * An XML namespace. + *

    + * @param bool $isPrefix [optional]

    + * If is_prefix is TRUE, + * ns will be regarded as a prefix. If FALSE, + * ns will be regarded as a namespace + * URL. + *

    + * @return static a SimpleXMLElement element, whether the node + * has children or not. + * @since 5.0.1 + */ #[Pure] - public function children ($namespaceOrPrefix = null, $isPrefix = false) {} - - /** - * Returns namespaces used in document - * @link https://php.net/manual/en/simplexmlelement.getnamespaces.php - * @param bool $recursive [optional]

    - * If specified, returns all namespaces used in parent and child nodes. - * Otherwise, returns only namespaces used in root node. - *

    - * @return array The getNamespaces method returns an array of - * namespace names with their associated URIs. - * @since 5.1.2 - */ + public function children($namespaceOrPrefix = null, $isPrefix = false) {} + + /** + * Returns namespaces used in document + * @link https://php.net/manual/en/simplexmlelement.getnamespaces.php + * @param bool $recursive [optional]

    + * If specified, returns all namespaces used in parent and child nodes. + * Otherwise, returns only namespaces used in root node. + *

    + * @return array The getNamespaces method returns an array of + * namespace names with their associated URIs. + * @since 5.1.2 + */ #[Pure] - public function getNamespaces ($recursive = false) {} - - /** - * Returns namespaces declared in document - * @link https://php.net/manual/en/simplexmlelement.getdocnamespaces.php - * @param bool $recursive [optional]

    - * If specified, returns all namespaces declared in parent and child nodes. - * Otherwise, returns only namespaces declared in root node. - *

    - * @param bool $fromRoot [optional]

    - * Allows you to recursively check namespaces under a child node instead of - * from the root of the XML doc. - *

    - * @return array The getDocNamespaces method returns an array - * of namespace names with their associated URIs. - * @since 5.1.2 - */ + public function getNamespaces($recursive = false) {} + + /** + * Returns namespaces declared in document + * @link https://php.net/manual/en/simplexmlelement.getdocnamespaces.php + * @param bool $recursive [optional]

    + * If specified, returns all namespaces declared in parent and child nodes. + * Otherwise, returns only namespaces declared in root node. + *

    + * @param bool $fromRoot [optional]

    + * Allows you to recursively check namespaces under a child node instead of + * from the root of the XML doc. + *

    + * @return array The getDocNamespaces method returns an array + * of namespace names with their associated URIs. + * @since 5.1.2 + */ #[Pure] - public function getDocNamespaces ($recursive = false, $fromRoot = true) {} - - /** - * Gets the name of the XML element - * @link https://php.net/manual/en/simplexmlelement.getname.php - * @return string The getName method returns as a string the - * name of the XML tag referenced by the SimpleXMLElement object. - * @since 5.1.3 - */ + public function getDocNamespaces($recursive = false, $fromRoot = true) {} + + /** + * Gets the name of the XML element + * @link https://php.net/manual/en/simplexmlelement.getname.php + * @return string The getName method returns as a string the + * name of the XML tag referenced by the SimpleXMLElement object. + * @since 5.1.3 + */ #[Pure] - public function getName () {} - - /** - * Adds a child element to the XML node - * @link https://php.net/manual/en/simplexmlelement.addchild.php - * @param string $qualifiedName

    - * The name of the child element to add. - *

    - * @param string $value [optional]

    - * If specified, the value of the child element. - *

    - * @param string $namespace [optional]

    - * If specified, the namespace to which the child element belongs. - *

    - * @return static The addChild method returns a SimpleXMLElement - * object representing the child added to the XML node. - * @since 5.1.3 - */ - public function addChild ($qualifiedName, $value = null, $namespace = null) {} - - /** - * Adds an attribute to the SimpleXML element - * @link https://php.net/manual/en/simplexmlelement.addattribute.php - * @param string $qualifiedName

    - * The name of the attribute to add. - *

    - * @param string $value [optional]

    - * The value of the attribute. - *

    - * @param string $namespace [optional]

    - * If specified, the namespace to which the attribute belongs. - *

    - * @return void No value is returned. - * @since 5.1.3 - */ - public function addAttribute ($qualifiedName, $value = null, $namespace = null) {} - - /** - * (No version information available, might only be in SVN)
    - * Returns the string content - * @link https://php.net/manual/en/simplexmlelement.tostring.php - * @return string the string content on success or an empty string on failure. - */ - public function __toString () {} - - /** - * Counts the children of an element - * @link https://php.net/manual/en/simplexmlelement.count.php - * @return int the number of elements of an element. - */ + public function getName() {} + + /** + * Adds a child element to the XML node + * @link https://php.net/manual/en/simplexmlelement.addchild.php + * @param string $qualifiedName

    + * The name of the child element to add. + *

    + * @param string $value [optional]

    + * If specified, the value of the child element. + *

    + * @param string $namespace [optional]

    + * If specified, the namespace to which the child element belongs. + *

    + * @return static The addChild method returns a SimpleXMLElement + * object representing the child added to the XML node. + * @since 5.1.3 + */ + public function addChild($qualifiedName, $value = null, $namespace = null) {} + + /** + * Adds an attribute to the SimpleXML element + * @link https://php.net/manual/en/simplexmlelement.addattribute.php + * @param string $qualifiedName

    + * The name of the attribute to add. + *

    + * @param string $value [optional]

    + * The value of the attribute. + *

    + * @param string $namespace [optional]

    + * If specified, the namespace to which the attribute belongs. + *

    + * @return void No value is returned. + * @since 5.1.3 + */ + public function addAttribute($qualifiedName, $value = null, $namespace = null) {} + + /** + * (No version information available, might only be in SVN)
    + * Returns the string content + * @link https://php.net/manual/en/simplexmlelement.tostring.php + * @return string the string content on success or an empty string on failure. + */ + public function __toString() {} + + /** + * Counts the children of an element + * @link https://php.net/manual/en/simplexmlelement.count.php + * @return int the number of elements of an element. + */ #[Pure] - public function count () {} + public function count() {} /** * Class provides access to children by position, and attributes by name @@ -227,7 +227,7 @@ public function count () {} * @return bool true on success or false on failure. */ #[Pure] - public function offsetExists ($offset) {} + public function offsetExists($offset) {} /** * Class provides access to children by position, and attributes by name @@ -236,7 +236,7 @@ public function offsetExists ($offset) {} * @return static Either a named attribute or an element from a list of children */ #[Pure] - public function offsetGet ($offset) {} + public function offsetGet($offset) {} /** * Class provides access to children by position, and attributes by name @@ -245,7 +245,7 @@ public function offsetGet ($offset) {} * @param mixed $value * @return void */ - public function offsetSet ($offset, $value) {} + public function offsetSet($offset, $value) {} /** * Class provides access to children by position, and attributes by name @@ -253,14 +253,14 @@ public function offsetSet ($offset, $value) {} * @param string|int $offset * @return void */ - public function offsetUnset ($offset) {} + public function offsetUnset($offset) {} /** * Rewind to the first element * @link https://php.net/manual/en/simplexmliterator.rewind.php * @return void No value is returned. */ - public function rewind () {} + public function rewind() {} /** * Check whether the current element is valid @@ -268,7 +268,7 @@ public function rewind () {} * @return bool TRUE if the current element is valid, otherwise FALSE */ #[Pure] - public function valid () {} + public function valid() {} /** * Returns the current element @@ -276,112 +276,111 @@ public function valid () {} * @return static|null the current element as a SimpleXMLElement object or NULL on failure. */ #[Pure] - public function current () {} + public function current() {} /** * Return current key * @link https://php.net/manual/en/simplexmliterator.key.php * @return string|false the XML tag name of the element referenced by the current SimpleXMLIterator object or FALSE */ - public function key () {} + public function key() {} /** * Move to next element * @link https://php.net/manual/en/simplexmliterator.next.php * @return void No value is returned. */ - public function next () {} + public function next() {} /** * @return bool * @since 8.0 */ #[Pure] - public function hasChildren(){} + public function hasChildren() {} /** * @since 8.0 */ #[Pure] - public function getChildren(){} + public function getChildren() {} } /** * The SimpleXMLIterator provides recursive iteration over all nodes of a SimpleXMLElement object. * @link https://php.net/manual/en/class.simplexmliterator.php */ -class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator, Countable, Stringable { - - /** - * Rewind to the first element - * @link https://php.net/manual/en/simplexmliterator.rewind.php - * @return void No value is returned. - */ - public function rewind () {} - - /** - * Check whether the current element is valid - * @link https://php.net/manual/en/simplexmliterator.valid.php - * @return bool TRUE if the current element is valid, otherwise FALSE - */ - #[Pure] - public function valid () {} +class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator, Countable, Stringable +{ + /** + * Rewind to the first element + * @link https://php.net/manual/en/simplexmliterator.rewind.php + * @return void No value is returned. + */ + public function rewind() {} - /** - * Returns the current element - * @link https://php.net/manual/en/simplexmliterator.current.php - * @return static|null the current element as a SimpleXMLIterator object or NULL on failure. - */ + /** + * Check whether the current element is valid + * @link https://php.net/manual/en/simplexmliterator.valid.php + * @return bool TRUE if the current element is valid, otherwise FALSE + */ #[Pure] - public function current () {} - - /** - * Return current key - * @link https://php.net/manual/en/simplexmliterator.key.php - * @return string|false the XML tag name of the element referenced by the current SimpleXMLIterator object or FALSE - */ - public function key () {} - - /** - * Move to next element - * @link https://php.net/manual/en/simplexmliterator.next.php - * @return void No value is returned. - */ - public function next () {} - - /** - * Checks whether the current element has sub elements. - * @link https://php.net/manual/en/simplexmliterator.haschildren.php - * @return bool TRUE if the current element has sub-elements, otherwise FALSE - */ + public function valid() {} + + /** + * Returns the current element + * @link https://php.net/manual/en/simplexmliterator.current.php + * @return static|null the current element as a SimpleXMLIterator object or NULL on failure. + */ #[Pure] - public function hasChildren () {} - - /** - * Returns the sub-elements of the current element - * @link https://php.net/manual/en/simplexmliterator.getchildren.php - * @return SimpleXMLIterator a SimpleXMLIterator object containing - * the sub-elements of the current element. - */ + public function current() {} + + /** + * Return current key + * @link https://php.net/manual/en/simplexmliterator.key.php + * @return string|false the XML tag name of the element referenced by the current SimpleXMLIterator object or FALSE + */ + public function key() {} + + /** + * Move to next element + * @link https://php.net/manual/en/simplexmliterator.next.php + * @return void No value is returned. + */ + public function next() {} + + /** + * Checks whether the current element has sub elements. + * @link https://php.net/manual/en/simplexmliterator.haschildren.php + * @return bool TRUE if the current element has sub-elements, otherwise FALSE + */ #[Pure] - public function getChildren () {} - - /** - * (No version information available, might only be in SVN)
    - * Returns the string content - * @link https://php.net/manual/en/simplexmlelement.tostring.php - * @return string the string content on success or an empty string on failure. - */ - public function __toString () {} - - /** - * Counts the children of an element - * @link https://php.net/manual/en/simplexmlelement.count.php - * @return int the number of elements of an element. - */ + public function hasChildren() {} + + /** + * Returns the sub-elements of the current element + * @link https://php.net/manual/en/simplexmliterator.getchildren.php + * @return SimpleXMLIterator a SimpleXMLIterator object containing + * the sub-elements of the current element. + */ #[Pure] - public function count () {} + public function getChildren() {} + + /** + * (No version information available, might only be in SVN)
    + * Returns the string content + * @link https://php.net/manual/en/simplexmlelement.tostring.php + * @return string the string content on success or an empty string on failure. + */ + public function __toString() {} + /** + * Counts the children of an element + * @link https://php.net/manual/en/simplexmlelement.count.php + * @return int the number of elements of an element. + */ + #[Pure] + public function count() {} } /** @@ -418,7 +417,7 @@ public function count () {} * @return SimpleXMLElement|false an object of class SimpleXMLElement with * properties containing the data held within the XML document, or FALSE on failure. */ -function simplexml_load_file (string $filename, ?string $class_name = "SimpleXMLElement", int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): SimpleXMLElement|false {} +function simplexml_load_file(string $filename, ?string $class_name = "SimpleXMLElement", int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): SimpleXMLElement|false {} /** * Interprets a string of XML into an object @@ -446,7 +445,7 @@ function simplexml_load_file (string $filename, ?string $class_name = "SimpleXML * @return SimpleXMLElement|false an object of class SimpleXMLElement with * properties containing the data held within the xml document, or FALSE on failure. */ -function simplexml_load_string (string $data, ?string $class_name = "SimpleXMLElement", int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): SimpleXMLElement|false {} +function simplexml_load_string(string $data, ?string $class_name = "SimpleXMLElement", int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): SimpleXMLElement|false {} /** * Get a SimpleXMLElement object from a DOM node. @@ -462,6 +461,6 @@ function simplexml_load_string (string $data, ?string $class_name = "SimpleXMLEl *

    * @return SimpleXMLElement|null a SimpleXMLElement or FALSE on failure. */ -function simplexml_import_dom (DOMNode $node, ?string $class_name = "SimpleXMLElement"): ?SimpleXMLElement {} +function simplexml_import_dom(DOMNode $node, ?string $class_name = "SimpleXMLElement"): ?SimpleXMLElement {} // End of SimpleXML v.0.1 diff --git a/SplType/SplType.php b/SplType/SplType.php index e80474974..d4b840d94 100644 --- a/SplType/SplType.php +++ b/SplType/SplType.php @@ -5,12 +5,13 @@ * * @link https://php.net/manual/en/class.spltype.php */ -abstract class SplType { +abstract class SplType +{ /** * @var null Default value * @link https://php.net/manual/en/class.spltype.php#spltype.constants.default */ - const __default = null; + public const __default = null; /** * Creates a new value of some type @@ -19,7 +20,7 @@ abstract class SplType { * @param bool $strict If set to true then will throw UnexpectedValueException if value of other type will be assigned. True by default * @link https://php.net/manual/en/spltype.construct.php */ - public function __construct ($initial_value = self::__default, $strict = true ){ } + public function __construct($initial_value = self::__default, $strict = true) {} } /** @@ -27,11 +28,12 @@ public function __construct ($initial_value = self::__default, $strict = true ){ * * @link https://php.net/manual/en/class.splint.php */ -class SplInt extends SplType { +class SplInt extends SplType +{ /** * @link https://php.net/manual/en/class.splint.php#splint.constants.default */ - const __default = 0 ; + public const __default = 0; } /** @@ -39,8 +41,9 @@ class SplInt extends SplType { * * @link https://php.net/manual/en/class.splfloat.php */ -class SplFloat extends SplType { - const __default = 0 ; +class SplFloat extends SplType +{ + public const __default = 0; } /** @@ -48,11 +51,12 @@ class SplFloat extends SplType { * * @link https://php.net/manual/en/class.splenum.php */ -class SplEnum extends SplType { +class SplEnum extends SplType +{ /** * @link https://php.net/manual/en/class.splenum.php#splenum.constants.default */ - const __default = null ; + public const __default = null; /** * Returns all consts (possible values) as an array. @@ -61,7 +65,7 @@ class SplEnum extends SplType { * @return array * @link https://php.net/manual/en/splenum.getconstlist.php */ - public function getConstList ($include_default = false) {} + public function getConstList($include_default = false) {} } /** @@ -69,21 +73,22 @@ public function getConstList ($include_default = false) {} * * @link https://php.net/manual/en/class.splbool.php */ -class SplBool extends SplEnum { +class SplBool extends SplEnum +{ /** * @link https://php.net/manual/en/class.splbool.php#splbool.constants.default */ - const __default = false ; + public const __default = false; /** * @link https://php.net/manual/en/class.splbool.php#splbool.constants.false */ - const false = false ; + public const false = false; /** * @link https://php.net/manual/en/class.splbool.php#splbool.constants.true */ - const true = true ; + public const true = true; } /** @@ -91,9 +96,10 @@ class SplBool extends SplEnum { * * @link https://php.net/manual/en/class.splstring.php */ -class SplString extends SplType { +class SplString extends SplType +{ /** * @link https://php.net/manual/en/class.splstring.php#splstring.constants.default */ - const __default = 0 ; + public const __default = 0; } diff --git a/Zend OPcache/OPcache.php b/Zend OPcache/OPcache.php index cb647b6b5..2fb7efff3 100644 --- a/Zend OPcache/OPcache.php +++ b/Zend OPcache/OPcache.php @@ -11,8 +11,7 @@ * cache is disabled. * @since 5.5 */ -function opcache_compile_file(string $filename): bool -{ } +function opcache_compile_file(string $filename): bool {} /** * (PHP 5 >= 5.5.0, PECL ZendOpcache >= 7.0.0 )
    @@ -26,8 +25,7 @@ function opcache_compile_file(string $filename): bool * cache is disabled. * @since 5.5 */ -function opcache_invalidate(string $filename, bool $force = false): bool -{ } +function opcache_invalidate(string $filename, bool $force = false): bool {} /** * (PHP 5 >= 5.5.0, PECL ZendOpcache >= 7.0.0 )
    @@ -36,8 +34,7 @@ function opcache_invalidate(string $filename, bool $force = false): bool * @return bool Returns TRUE if the opcode cache was reset, or FALSE if the opcode cache is disabled. * @since 5.5 */ -function opcache_reset(): bool -{ } +function opcache_reset(): bool {} /** * (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )
    @@ -47,8 +44,7 @@ function opcache_reset(): bool * @return array|false

    Returns an array of information, optionally containing script specific state information

    * @since 5.5 */ -function opcache_get_status (bool $include_scripts = true): array|false -{} +function opcache_get_status(bool $include_scripts = true): array|false {} /** * (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )
    @@ -57,8 +53,7 @@ function opcache_get_status (bool $include_scripts = true): array|false * @return array|false

    Returns an array of information, including ini, blacklist and version

    * @since 5.5 */ -function opcache_get_configuration(): array|false -{} +function opcache_get_configuration(): array|false {} /** * (PHP 5 >= 5.6, PECL ZendOpcache >= 7.0.4 )
    @@ -69,5 +64,4 @@ function opcache_get_configuration(): array|false * @return bool Returns TRUE if file is cached in OPCache, FALSE otherwise. * @since 5.6 */ -function opcache_is_script_cached(string $filename): bool -{} +function opcache_is_script_cached(string $filename): bool {} diff --git a/ZendDebugger/ZendDebugger.php b/ZendDebugger/ZendDebugger.php index 38d4472a3..3bb894df1 100644 --- a/ZendDebugger/ZendDebugger.php +++ b/ZendDebugger/ZendDebugger.php @@ -2,17 +2,16 @@ // Start of Zend Debugger v. -function debugger_print () {} +function debugger_print() {} -function get_call_stack () {} +function get_call_stack() {} -function debugger_start_debug () {} +function debugger_start_debug() {} -function debugger_connector_pid () {} +function debugger_connector_pid() {} -function debugger_connect () {} +function debugger_connect() {} -function debugger_get_server_start_time () {} +function debugger_get_server_start_time() {} // End of Zend Debugger v. -?> diff --git a/ZendUtils/ZendUtils.php b/ZendUtils/ZendUtils.php index c857b5469..ad6cf9813 100644 --- a/ZendUtils/ZendUtils.php +++ b/ZendUtils/ZendUtils.php @@ -2,17 +2,16 @@ // Start of ZendUtils v. -function zem_get_extension_info_by_id () {} +function zem_get_extension_info_by_id() {} -function zem_get_extension_info_by_name () {} +function zem_get_extension_info_by_name() {} -function zem_get_extensions_info () {} +function zem_get_extensions_info() {} -function zem_get_license_info () {} +function zem_get_license_info() {} -function zend_is_configuration_changed () {} +function zend_is_configuration_changed() {} -function zend_set_configuration_changed () {} +function zend_set_configuration_changed() {} // End of ZendUtils v. -?> diff --git a/aerospike/Bytes.php b/aerospike/Bytes.php index e6bd6e51a..00c2c0531 100644 --- a/aerospike/Bytes.php +++ b/aerospike/Bytes.php @@ -89,8 +89,7 @@ public function __toString() { * @param \Aerospike\Bytes $bytes_wrap * @return string */ - public static function unwrap(\Aerospike\Bytes $bytes_wrap) { + public static function unwrap(Bytes $bytes_wrap) { return $bytes_wrap->s; } - } diff --git a/aerospike/aerospike.php b/aerospike/aerospike.php index 998ae9608..98cf69f0b 100644 --- a/aerospike/aerospike.php +++ b/aerospike/aerospike.php @@ -80,8 +80,8 @@ * ``` * @author Robert Marks */ -class Aerospike { - +class Aerospike +{ // Lifecycle and Connection Methods /** @@ -354,7 +354,7 @@ public function errorno() {} * @return array * @see Aerospike::getKeyDigest() getKeyDigest() */ - public function initKey (string $ns, string $set, $pk, bool $is_digest = false) {} + public function initKey(string $ns, string $set, $pk, bool $is_digest = false) {} /** * Return the digest of hashing the (namespace, set, primary-key) tuple @@ -390,7 +390,7 @@ public function initKey (string $ns, string $set, $pk, bool $is_digest = false) * @return string * @see Aerospike::initKey() initKey() */ - public function getKeyDigest (string $ns, string $set, $pk ) {} + public function getKeyDigest(string $ns, string $set, $pk) {} /** * Write a record identified by the $key with $bins, an array of bin-name => bin-value pairs. @@ -776,7 +776,7 @@ public function exists(array $key, &$metadata, array $options = []) {} * @see Aerospike::OK Aerospike::OK and error status codes * @return int The status code of the operation. Compare to the Aerospike class status constants. */ - public function touch(array $key, int $ttl = 0, array $options =[]) {} + public function touch(array $key, int $ttl = 0, array $options = []) {} /** * Remove the record identified by the $key. @@ -857,7 +857,7 @@ public function remove(array $key, array $options = []) {} * @see Aerospike::OK Aerospike::OK and error status codes * @return int The status code of the operation. Compare to the Aerospike class status constants. */ - public function removeBin(array $key, array $bins , array $options = []) {} + public function removeBin(array $key, array $bins, array $options = []) {} /** * Remove all the records from a namespace or set @@ -2507,8 +2507,7 @@ public function listGetRange(array $key, $bin, $index, $count, &$elements, array * @see Aerospike::get() get() * @return int The status code of the operation. Compare to the Aerospike class status constants. */ - public function getMany ( array $keys, &$records, array $select = [], array $options = []) {} - + public function getMany(array $keys, &$records, array $select = [], array $options = []) {} /** * Check if a batch of records exists in the database and fill $metdata with the results @@ -2631,7 +2630,7 @@ public function getMany ( array $keys, &$records, array $select = [], array $opt * @see Aerospike::exists() exists() * @return int The status code of the operation. Compare to the Aerospike class status constants. */ - public function existsMany ( array $keys, array &$metadata, array $options = []) {} + public function existsMany(array $keys, array &$metadata, array $options = []) {} // Scan and Query @@ -3082,7 +3081,7 @@ public function listRegistered(&$modules, $language = Aerospike::UDF_TYPE_LUA, $ * @see Aerospike::ERR_LUA_FILE_NOT_FOUND UDF error status codes * @return int The status code of the operation. Compare to the Aerospike class status constants. */ - public function getRegistered($module, &$code , $language = Aerospike::UDF_TYPE_LUA, $options = []) {} + public function getRegistered($module, &$code, $language = Aerospike::UDF_TYPE_LUA, $options = []) {} /** * Apply a UDF to a record @@ -3568,7 +3567,7 @@ public function getNodes() {} * * Aerospike::LOG_LEVEL_TRACE * @see Aerospike::LOG_LEVEL_OFF Aerospike::LOG_LEVEL_* constants */ - public function setLogLevel ( int $log_level ) {} + public function setLogLevel(int $log_level) {} /** * Set a handler for log events @@ -3613,7 +3612,7 @@ public function setLogLevel ( int $log_level ) {} * function log_handler ( int $level, string $file, string $function, int $line ) : void * ``` */ - public function setLogHandler ( callable $log_handler ) {} + public function setLogHandler(callable $log_handler) {} // Unsupported Type Handler Methods @@ -3636,7 +3635,7 @@ public function setLogHandler ( callable $log_handler ) {} * ``` * @see Aerospike::OPT_SERIALIZER Aerospike::OPT_SERIALIZER options */ - public function setSerializer (callable $serialize_cb ) {} + public function setSerializer(callable $serialize_cb) {} /** * Set a deserialization handler for unsupported types @@ -3658,8 +3657,7 @@ public function setSerializer (callable $serialize_cb ) {} * ``` * @see Aerospike::OPT_SERIALIZER Aerospike::OPT_SERIALIZER options */ - public function setDeserializer ( callable $unserialize_cb ) {} - + public function setDeserializer(callable $unserialize_cb) {} /* * Options can be assigned values that modify default behavior @@ -3670,108 +3668,108 @@ public function setDeserializer ( callable $unserialize_cb ) {} /* Key used to specify an array of read policy defaults used in the constructor. See https://github.com/aerospike/aerospike-client-php/blob/master/doc/policies.md */ - const OPT_READ_DEFAULT_POL = "OPT_READ_DEFAULT_POL"; + public const OPT_READ_DEFAULT_POL = "OPT_READ_DEFAULT_POL"; /* Key used to specify an array of write policy defaults used in the constructor. See https://github.com/aerospike/aerospike-client-php/blob/master/doc/policies.md */ - const OPT_WRITE_DEFAULT_POL = "OPT_WRITE_DEFAULT_POL"; + public const OPT_WRITE_DEFAULT_POL = "OPT_WRITE_DEFAULT_POL"; /* Key used to specify an array of remove policy defaults used in the constructor. See https://github.com/aerospike/aerospike-client-php/blob/master/doc/policies.md */ - const OPT_REMOVE_DEFAULT_POL = "OPT_REMOVE_DEFAULT_POL"; + public const OPT_REMOVE_DEFAULT_POL = "OPT_REMOVE_DEFAULT_POL"; /* Key used to specify an array of batch policy defaults used in the constructor. See https://github.com/aerospike/aerospike-client-php/blob/master/doc/policies.md */ - const OPT_BATCH_DEFAULT_POL = "OPT_BATCH_DEFAULT_POL"; + public const OPT_BATCH_DEFAULT_POL = "OPT_BATCH_DEFAULT_POL"; /* Key used to specify an array of operate policy defaults used in the constructor. See https://github.com/aerospike/aerospike-client-php/blob/master/doc/policies.md */ - const OPT_OPERATE_DEFAULT_POL = "OPT_OPERATE_DEFAULT_POL"; + public const OPT_OPERATE_DEFAULT_POL = "OPT_OPERATE_DEFAULT_POL"; /* Key used to specify an array of query policy defaults used in the constructor. See https://github.com/aerospike/aerospike-client-php/blob/master/doc/policies.md */ - const OPT_QUERY_DEFAULT_POL = "OPT_QUERY_DEFAULT_POL"; + public const OPT_QUERY_DEFAULT_POL = "OPT_QUERY_DEFAULT_POL"; /* Key used to specify an array of scan policy defaults used in the constructor. See https://github.com/aerospike/aerospike-client-php/blob/master/doc/policies.md */ - const OPT_SCAN_DEFAULT_POL = "OPT_SCAN_DEFAULT_POL"; + public const OPT_SCAN_DEFAULT_POL = "OPT_SCAN_DEFAULT_POL"; /* Key used to specify an array of apply policy defaults used in the constructor. See https://github.com/aerospike/aerospike-client-php/blob/master/doc/policies.md */ - const OPT_APPLY_DEFAULT_POL = "OPT_APPLY_DEFAULT_POL"; + public const OPT_APPLY_DEFAULT_POL = "OPT_APPLY_DEFAULT_POL"; /* Key used in the options argument of the constructor used to point to an array of TLS configuration parameters. Use of TLS requires an enterprise version of the Aerospike Server. */ - const OPT_TLS_CONFIG = "OPT_TLS_CONFIG"; + public const OPT_TLS_CONFIG = "OPT_TLS_CONFIG"; /* Key used in the OPT_TLS boolean Whether or not to enable TLS. */ - const OPT_TLS_ENABLE = "OPT_TLS_ENABLE"; + public const OPT_TLS_ENABLE = "OPT_TLS_ENABLE"; /* Key used to specify a string path to a trusted CA certificate file. By default TLS will use system standard trusted CA certificates */ - const OPT_OPT_TLS_CAFILE = "OPT_OPT_TLS_CAFILE"; + public const OPT_OPT_TLS_CAFILE = "OPT_OPT_TLS_CAFILE"; /* Key used to specify a Path to a directory of trusted certificates. See the OpenSSL SSL_CTX_load_verify_locations manual page for more information about the format of the directory. */ - const OPT_TLS_CAPATH = "OPT_TLS_CAPATH"; + public const OPT_TLS_CAPATH = "OPT_TLS_CAPATH"; /*Key used to specify a string representation of allowed protocols. Specifies enabled protocols. This format is the same as Apache's SSLProtocol documented at https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslprotocol . If not specified the client will use "-all +TLSv1.2". */ - const OPT_TLS_PROTOCOLS ="OPT_TLS_PROTOCOLS"; + public const OPT_TLS_PROTOCOLS = "OPT_TLS_PROTOCOLS"; /* Key used to specify a string. Specifies enabled cipher suites. The format is the same as OpenSSL's Cipher List Format documented at https://www.openssl.org/docs/manmaster/apps/ciphers.html .If not specified the OpenSSL default cipher suite described in the ciphers documentation will be used. If you are not sure what cipher suite to select this option is best left unspecified */ - const OPT_TLS_CIPHER_SUITE = "OPT_TLS_CIPHER_SUITE"; + public const OPT_TLS_CIPHER_SUITE = "OPT_TLS_CIPHER_SUITE"; /* Key used to specify a boolean. Enable CRL checking for the certificate chain leaf certificate. An error occurs if a suitable CRL cannot be found. By default CRL checking is disabled. */ - const OPT_TLS_CRL_CHECK = "OPT_TLS_CRL_CHECK"; + public const OPT_TLS_CRL_CHECK = "OPT_TLS_CRL_CHECK"; /* Key used to specify a bolean. Enable CRL checking for the entire certificate chain. An error occurs if a suitable CRL cannot be found. By default CRL checking is disabled. */ - const OPT_TLS_CRL_CHECK_ALL = "OPT_TLS_CRL_CHECK_ALL"; + public const OPT_TLS_CRL_CHECK_ALL = "OPT_TLS_CRL_CHECK_ALL"; /* Key used to specify a path to a certificate blacklist file. The file should contain one line for each blacklisted certificate. Each line starts with the certificate serial number expressed in hex. Each entry may optionally specify the issuer name of the certificate (serial numbers are only required to be unique per issuer). Example records: 867EC87482B2 /C=US/ST=CA/O=Acme/OU=Engineering/CN=Test Chain CA E2D4B0E570F9EF8E885C065899886461 */ - const OPT_TLS_CERT_BLACKLIST = "OPT_TLS_CERT_BLACKLIST"; + public const OPT_TLS_CERT_BLACKLIST = "OPT_TLS_CERT_BLACKLIST"; /* Boolean: Log session information for each connection. */ - const OPT_TLS_LOG_SESSION_INFO = "OPT_TLS_LOG_SESSION_INFO"; + public const OPT_TLS_LOG_SESSION_INFO = "OPT_TLS_LOG_SESSION_INFO"; /* Path to the client's key for mutual authentication. By default mutual authentication is disabled. */ - const OPT_TLS_KEYFILE = "OPT_TLS_KEYFILE"; + public const OPT_TLS_KEYFILE = "OPT_TLS_KEYFILE"; /* Path to the client's certificate chain file for mutual authentication. By default mutual authentication is disabled. */ - const OPT_TLS_CERTFILE = "OPT_TLS_CERTFILE"; + public const OPT_TLS_CERTFILE = "OPT_TLS_CERTFILE"; /** * Defines the length of time (in milliseconds) the client waits on establishing a connection. * @const OPT_CONNECT_TIMEOUT value in milliseconds (default: 1000) */ - const OPT_CONNECT_TIMEOUT = "OPT_CONNECT_TIMEOUT"; + public const OPT_CONNECT_TIMEOUT = "OPT_CONNECT_TIMEOUT"; /** * Defines the length of time (in milliseconds) the client waits on a read * operation. * @const OPT_READ_TIMEOUT value in milliseconds (default: 1000) */ - const OPT_READ_TIMEOUT = "OPT_READ_TIMEOUT"; + public const OPT_READ_TIMEOUT = "OPT_READ_TIMEOUT"; /** * Defines the length of time (in milliseconds) the client waits on a write * operation. * @const OPT_WRITE_TIMEOUT value in milliseconds (default: 1000) */ - const OPT_WRITE_TIMEOUT = "OPT_WRITE_TIMEOUT"; + public const OPT_WRITE_TIMEOUT = "OPT_WRITE_TIMEOUT"; /** * Sets the TTL of the record along with a write operation. @@ -3782,7 +3780,7 @@ public function setDeserializer ( callable $unserialize_cb ) {} * * TTL = -2 means the record's TTL should not be modified. * @const OPT_TTL value in seconds, or the special values 0, -1 or -2 (default: 0) */ - const OPT_TTL = "OPT_TTL"; + public const OPT_TTL = "OPT_TTL"; /** * Accepts one of the POLICY_KEY_* values. @@ -3792,17 +3790,17 @@ public function setDeserializer ( callable $unserialize_cb ) {} * (their unique ID in the application). * @const OPT_POLICY_KEY Key storage policy option (digest-only or send key) */ - const OPT_POLICY_KEY = "OPT_POLICY_KEY"; + public const OPT_POLICY_KEY = "OPT_POLICY_KEY"; /** * Do not store the primary key with the record (default) * @const POLICY_KEY_DIGEST digest only */ - const POLICY_KEY_DIGEST = 0; + public const POLICY_KEY_DIGEST = 0; /** * Store the primary key with the record * @const POLICY_KEY_SEND store the primary key with the record */ - const POLICY_KEY_SEND = 1; + public const POLICY_KEY_SEND = 1; /** * Accepts one of the POLICY_EXISTS_* values. @@ -3813,33 +3811,33 @@ public function setDeserializer ( callable $unserialize_cb ) {} * similar to an RDBMS. * @const OPT_POLICY_EXISTS existence policy option */ - const OPT_POLICY_EXISTS = "OPT_POLICY_EXISTS"; + public const OPT_POLICY_EXISTS = "OPT_POLICY_EXISTS"; /** * "CREATE_OR_UPDATE" behavior. Create the record if it does not exist, * or update its bins if it does. (default) * @const POLICY_EXISTS_IGNORE create or update behavior */ - const POLICY_EXISTS_IGNORE = 0; + public const POLICY_EXISTS_IGNORE = 0; /** * Create a record ONLY if it DOES NOT exist. * @const POLICY_EXISTS_CREATE create only behavior (fail otherwise) */ - const POLICY_EXISTS_CREATE = 1; + public const POLICY_EXISTS_CREATE = 1; /** * Update a record ONLY if it exists. * @const POLICY_EXISTS_UPDATE update only behavior (fail otherwise) */ - const POLICY_EXISTS_UPDATE = 2; + public const POLICY_EXISTS_UPDATE = 2; /** * Replace a record ONLY if it exists. * @const POLICY_EXISTS_REPLACE replace only behavior (fail otherwise) */ - const POLICY_EXISTS_REPLACE = 3; + public const POLICY_EXISTS_REPLACE = 3; /** * Create the record if it does not exist, or replace its bins if it does. * @const POLICY_EXISTS_CREATE_OR_REPLACE create or replace behavior */ - const POLICY_EXISTS_CREATE_OR_REPLACE = 4; + public const POLICY_EXISTS_CREATE_OR_REPLACE = 4; /** * Set to an array( Aerospike::POLICY_GEN_* [, (int) $gen_value ] ) @@ -3848,22 +3846,21 @@ public function setDeserializer ( callable $unserialize_cb ) {} * generation. Used to implement a check-and-set (CAS) pattern. * @const OPT_POLICY_GEN generation policy option */ - const OPT_POLICY_GEN = "OPT_POLICY_GEN"; + public const OPT_POLICY_GEN = "OPT_POLICY_GEN"; /** * Do not consider generation for the write operation. * @const POLICY_GEN_IGNORE write a record, regardless of generation (default) */ - const POLICY_GEN_IGNORE = 0; + public const POLICY_GEN_IGNORE = 0; /** * Only write if the record was not modified since a given generation value. * @const POLICY_GEN_EQ write a record, ONLY if generations are equal */ - const POLICY_GEN_EQ = 1; + public const POLICY_GEN_EQ = 1; /** - * * @const POLICY_GEN_GT write a record, ONLY if local generation is greater-than remote generation */ - const POLICY_GEN_GT = 2; + public const POLICY_GEN_GT = 2; /** * Set to one of the SERIALIZER_* values. @@ -3873,22 +3870,22 @@ public function setDeserializer ( callable $unserialize_cb ) {} * Unsupported types, such as boolean, need a serializer to handle them. * @const OPT_SERIALIZER determines a handler for unsupported data types */ - const OPT_SERIALIZER = "OPT_SERIALIZER"; + public const OPT_SERIALIZER = "OPT_SERIALIZER"; /** * Throw an exception instead of serializing unsupported types. * @const SERIALIZER_NONE throw an error when serialization is required */ - const SERIALIZER_NONE = 0; + public const SERIALIZER_NONE = 0; /** * Use the built-in PHP serializer for any unsupported types. * @const SERIALIZER_PHP use the PHP serialize/unserialize functions (default) */ - const SERIALIZER_PHP = 1; + public const SERIALIZER_PHP = 1; /** * Use a user-defined serializer for any unsupported types. * @const SERIALIZER_USER use a pair of functions written in PHP for serialization */ - const SERIALIZER_USER = 2; + public const SERIALIZER_USER = 2; /** * Accepts one of the POLICY_COMMIT_LEVEL_* values. @@ -3899,17 +3896,17 @@ public function setDeserializer ( callable $unserialize_cb ) {} * consistency level. * @const OPT_POLICY_COMMIT_LEVEL commit level policy option */ - const OPT_POLICY_COMMIT_LEVEL = "OPT_POLICY_COMMIT_LEVEL"; + public const OPT_POLICY_COMMIT_LEVEL = "OPT_POLICY_COMMIT_LEVEL"; /** * Return succcess only after successfully committing all replicas. * @const POLICY_COMMIT_LEVEL_ALL write to the master and all replicas (default) */ - const POLICY_COMMIT_LEVEL_ALL = 0; + public const POLICY_COMMIT_LEVEL_ALL = 0; /** * Return succcess after successfully committing the master replica. * @const POLICY_COMMIT_LEVEL_MASTER master will asynchronously write to replicas */ - const POLICY_COMMIT_LEVEL_MASTER = 1; + public const POLICY_COMMIT_LEVEL_MASTER = 1; /** * Accepts one of the POLICY_REPLICA_* values. @@ -3918,24 +3915,24 @@ public function setDeserializer ( callable $unserialize_cb ) {} * Specifies which partition replica to read from. * @const OPT_POLICY_REPLICA replica policy option */ - const OPT_POLICY_REPLICA = "OPT_POLICY_REPLICA"; + public const OPT_POLICY_REPLICA = "OPT_POLICY_REPLICA"; /** * Read from the partition master replica node. * @const POLICY_REPLICA_MASTER read from master */ - const POLICY_REPLICA_MASTER = 0; + public const POLICY_REPLICA_MASTER = 0; /** * Read from an unspecified replica node. * @const POLICY_REPLICA_ANY read from any replica node */ - const POLICY_REPLICA_ANY = 1; + public const POLICY_REPLICA_ANY = 1; /** * Always try node containing master partition first. If connection fails and * `retry_on_timeout` is true, try node containing replica partition. * Currently restricted to master and one replica. (default) * @const POLICY_REPLICA_SEQUENCE attempt to read from master first, then try the node containing replica partition if connection failed. (default) */ - const POLICY_REPLICA_SEQUENCE = 2; + public const POLICY_REPLICA_SEQUENCE = 2; /** * Try node on the same rack as the client first. If there are no nodes on the @@ -3945,7 +3942,7 @@ public function setDeserializer ( callable $unserialize_cb ) {} * to enable this functionality. * @const POLICY_REPLICA_PREFER_RACK attemp to read from master first, then try the node containing replica partition if connection failed. (default) */ - const POLICY_REPLICA_PREFER_RACK = 3; + public const POLICY_REPLICA_PREFER_RACK = 3; /** * Accepts one of the POLICY_READ_MODE_AP_* values. @@ -3955,17 +3952,17 @@ public function setDeserializer ( callable $unserialize_cb ) {} * provide the desired consistency level in availability mode. * @const OPT_POLICY_READ_MODE_AP policy read option for availability namespaces */ - const OPT_POLICY_READ_MODE_AP = "OPT_POLICY_READ_MODE_AP"; + public const OPT_POLICY_READ_MODE_AP = "OPT_POLICY_READ_MODE_AP"; /** * Involve a single replica in the operation. * @const POLICY_READ_MODE_AP_ONE (default) */ - const POLICY_READ_MODE_AP_ONE = 0; + public const POLICY_READ_MODE_AP_ONE = 0; /** * Involve all replicas in the operation. * @const AS_POLICY_READ_MODE_AP_ALL */ - const AS_POLICY_READ_MODE_AP_ALL = 1; + public const AS_POLICY_READ_MODE_AP_ALL = 1; /** * Accepts one of the POLICY_READ_MODE_SC_* values. @@ -3975,28 +3972,27 @@ public function setDeserializer ( callable $unserialize_cb ) {} * provide the desired consistency level. * @const OPT_POLICY_READ_MODE_SC policy read option for consistency namespaces */ - const OPT_POLICY_READ_MODE_SC = "OPT_POLICY_READ_MODE_SC"; + public const OPT_POLICY_READ_MODE_SC = "OPT_POLICY_READ_MODE_SC"; /** * Always read from master. Record versions are local to session. * @const POLICY_READ_MODE_SC_SESSION (default) */ - const POLICY_READ_MODE_SC_SESSION = 0; + public const POLICY_READ_MODE_SC_SESSION = 0; /** * Always read from master. Record versions are global and thus serialized. * @const POLICY_READ_MODE_SC_LINEARIZE */ - const POLICY_READ_MODE_SC_LINEARIZE = 1; + public const POLICY_READ_MODE_SC_LINEARIZE = 1; /** * Read from master or fully migrated replica. Record versions may not always increase. * @const POLICY_READ_MODE_SC_ALLOW_REPLICA */ - const POLICY_READ_MODE_SC_ALLOW_REPLICA = 2; + public const POLICY_READ_MODE_SC_ALLOW_REPLICA = 2; /** * Read from master or fully migrated replica. Unavailable partitions are allowed. Record versions may not always increase. * @const POLICY_READ_MODE_SC_ALLOW_UNAVAILABLE */ - const POLICY_READ_MODE_SC_ALLOW_UNAVAILABLE = 3; - + public const POLICY_READ_MODE_SC_ALLOW_UNAVAILABLE = 3; /* * Should raw bytes representing a list or map be deserialized to an array. @@ -4004,13 +4000,13 @@ public function setDeserializer ( callable $unserialize_cb ) {} * Default: true @const OPT_DESERIALIZE */ - const OPT_DESERIALIZE = "deserialize"; + public const OPT_DESERIALIZE = "deserialize"; /** * Milliseconds to sleep between retries. Enter zero to skip sleep. * const OPT_SLEEP_BETWEEN_RETRIES */ - const OPT_SLEEP_BETWEEN_RETRIES = "sleep_between_retries"; + public const OPT_SLEEP_BETWEEN_RETRIES = "sleep_between_retries"; /** * Maximum number of retries before aborting the current transaction. @@ -4022,7 +4018,7 @@ public function setDeserializer ( callable $unserialize_cb ) {} * It's important to use a distinct write policy for non-idempotent * writes which sets OPT_MAX_RETRIES = 0; **/ - const OPT_MAX_RETRIES = "OPT_MAX_RETRIES"; + public const OPT_MAX_RETRIES = "OPT_MAX_RETRIES"; /** * Total transaction timeout in milliseconds. * The OPT_TOTAL_TIMEOUT is tracked on the client and sent to the server along with @@ -4033,7 +4029,7 @@ public function setDeserializer ( callable $unserialize_cb ) {} * completes, the transaction will return error ERR_TIMEOUT. * If OPT_TOTAL_TIMEOUT is zero, there will be no total time limit. */ - const OPT_TOTAL_TIMEOUT = "OPT_TOTAL_TIMEOUT"; + public const OPT_TOTAL_TIMEOUT = "OPT_TOTAL_TIMEOUT"; /** * Socket idle timeout in milliseconds when processing a database command. @@ -4046,13 +4042,12 @@ public function setDeserializer ( callable $unserialize_cb ) {} * then OPT_SOCKET_TIMEOUT will be set to OPT_TOTAL_TIMEOUT. If OPT_SOCKET_TIMEOUT is zero, there will be * no socket idle limit. */ - const OPT_SOCKET_TIMEOUT = "OPT_SOCKET_TIMEOUT"; - + public const OPT_SOCKET_TIMEOUT = "OPT_SOCKET_TIMEOUT"; /** * Determine if batch commands to each server are run in parallel threads. */ - const OPT_BATCH_CONCURRENT = "OPT_BATCH_CONCURRENT"; + public const OPT_BATCH_CONCURRENT = "OPT_BATCH_CONCURRENT"; /** * Allow batch to be processed immediately in the server's receiving thread when the server * deems it to be appropriate. If false, the batch will always be processed in separate @@ -4066,7 +4061,7 @@ public function setDeserializer ( callable $unserialize_cb ) {} * can process the entire batch before moving onto the next command. * Default: true */ - const OPT_ALLOW_INLINE = "OPT_ALLOW_INLINE"; + public const OPT_ALLOW_INLINE = "OPT_ALLOW_INLINE"; /** * Send set name field to server for every key in the batch for batch index protocol. @@ -4074,73 +4069,73 @@ public function setDeserializer ( callable $unserialize_cb ) {} * on a per set basis. * Default: false */ - const OPT_SEND_SET_NAME = "OPT_SEND_SET_NAME"; + public const OPT_SEND_SET_NAME = "OPT_SEND_SET_NAME"; /** * Abort the scan if the cluster is not in a stable state. Default false */ - const OPT_FAIL_ON_CLUSTER_CHANGE = "OPT_FAIL_ON_CLUSTER_CHANGE"; + public const OPT_FAIL_ON_CLUSTER_CHANGE = "OPT_FAIL_ON_CLUSTER_CHANGE"; /** * Accepts one of the SCAN_PRIORITY_* values. * * @const OPT_SCAN_PRIORITY The priority of the scan */ - const OPT_SCAN_PRIORITY = "OPT_SCAN_PRIORITY"; + public const OPT_SCAN_PRIORITY = "OPT_SCAN_PRIORITY"; /** * The cluster will auto-adjust the priority of the scan. * @const SCAN_PRIORITY_AUTO auto-adjust the scan priority (default) */ - const SCAN_PRIORITY_AUTO = "SCAN_PRIORITY_AUTO"; + public const SCAN_PRIORITY_AUTO = "SCAN_PRIORITY_AUTO"; /** * Set the scan as having low priority. * @const SCAN_PRIORITY_LOW low priority scan */ - const SCAN_PRIORITY_LOW = "SCAN_PRIORITY_LOW"; + public const SCAN_PRIORITY_LOW = "SCAN_PRIORITY_LOW"; /** * Set the scan as having medium priority. * @const SCAN_PRIORITY_MEDIUM medium priority scan */ - const SCAN_PRIORITY_MEDIUM = "SCAN_PRIORITY_MEDIUM"; + public const SCAN_PRIORITY_MEDIUM = "SCAN_PRIORITY_MEDIUM"; /** * Set the scan as having high priority. * @const SCAN_PRIORITY_HIGH high priority scan */ - const SCAN_PRIORITY_HIGH = "SCAN_PRIORITY_HIGH"; + public const SCAN_PRIORITY_HIGH = "SCAN_PRIORITY_HIGH"; /** * Do not return the bins of the records matched by the scan. * * @const OPT_SCAN_NOBINS boolean value (default: false) */ - const OPT_SCAN_NOBINS = "OPT_SCAN_NOBINS"; + public const OPT_SCAN_NOBINS = "OPT_SCAN_NOBINS"; /** * Set the scan to run over a given percentage of the possible records. * * @const OPT_SCAN_PERCENTAGE integer value from 1-100 (default: 100) */ - const OPT_SCAN_PERCENTAGE = "OPT_SCAN_PERCENTAGE"; + public const OPT_SCAN_PERCENTAGE = "OPT_SCAN_PERCENTAGE"; /** * Scan all the nodes in the cluster concurrently. * * @const OPT_SCAN_CONCURRENTLY boolean value (default: false) */ - const OPT_SCAN_CONCURRENTLY = "OPT_SCAN_CONCURRENTLY"; + public const OPT_SCAN_CONCURRENTLY = "OPT_SCAN_CONCURRENTLY"; /** * Do not return the bins of the records matched by the query. * * @const OPT_QUERY_NOBINS boolean value (default: false) */ - const OPT_QUERY_NOBINS = "OPT_QUERY_NOBINS"; + public const OPT_QUERY_NOBINS = "OPT_QUERY_NOBINS"; /** * Revert to the older batch-direct protocol, instead of batch-index. * * @const USE_BATCH_DIRECT boolean value (default: false) */ - const USE_BATCH_DIRECT = "USE_BATCH_DIRECT"; + public const USE_BATCH_DIRECT = "USE_BATCH_DIRECT"; /** * Set to true to enable durable delete for the operation. @@ -4148,7 +4143,7 @@ public function setDeserializer ( callable $unserialize_cb ) {} * * @const OPT_POLICY_DURABLE_DELETE boolean value (default: false) */ - const OPT_POLICY_DURABLE_DELETE = "OPT_POLICY_DURABLE_DELETE"; + public const OPT_POLICY_DURABLE_DELETE = "OPT_POLICY_DURABLE_DELETE"; /** * Map policy declaring the ordering of an Aerospike map type @@ -4158,25 +4153,25 @@ public function setDeserializer ( callable $unserialize_cb ) {} * @see Aerospike::AS_MAP_KEY_VALUE_ORDERED * @const OPT_MAP_ORDER */ - const OPT_MAP_ORDER = "OPT_MAP_ORDER"; + public const OPT_MAP_ORDER = "OPT_MAP_ORDER"; /** * The Aerospike map is unordered * @const AS_MAP_UNORDERED (default) */ - const AS_MAP_UNORDERED = "AS_MAP_UNORDERED"; + public const AS_MAP_UNORDERED = "AS_MAP_UNORDERED"; /** * The Aerospike map is ordered by key * @const AS_MAP_KEY_ORDERED */ - const AS_MAP_KEY_ORDERED = "AS_MAP_KEY_ORDERED"; + public const AS_MAP_KEY_ORDERED = "AS_MAP_KEY_ORDERED"; /** * The Aerospike map is ordered by key and value * @const AS_MAP_KEY_VALUE_ORDERED */ - const AS_MAP_KEY_VALUE_ORDERED = "AS_MAP_KEY_VALUE_ORDERED"; + public const AS_MAP_KEY_VALUE_ORDERED = "AS_MAP_KEY_VALUE_ORDERED"; /** * Map policy declaring the behavior of map write operations @@ -4185,22 +4180,22 @@ public function setDeserializer ( callable $unserialize_cb ) {} * @see Aerospike::AS_MAP_CREATE_ONLY * @const OPT_MAP_WRITE_MODE */ - const OPT_MAP_WRITE_MODE = "OPT_MAP_WRITE_MODE"; + public const OPT_MAP_WRITE_MODE = "OPT_MAP_WRITE_MODE"; /** * @const AS_MAP_UPDATE (default) */ - const AS_MAP_UPDATE = "AS_MAP_UPDATE"; + public const AS_MAP_UPDATE = "AS_MAP_UPDATE"; /** * @const AS_MAP_UPDATE_ONLY */ - const AS_MAP_UPDATE_ONLY = "AS_MAP_UPDATE_ONLY"; + public const AS_MAP_UPDATE_ONLY = "AS_MAP_UPDATE_ONLY"; /** * @const AS_MAP_CREATE_ONLY */ - const AS_MAP_CREATE_ONLY = "AS_MAP_CREATE_ONLY"; + public const AS_MAP_CREATE_ONLY = "AS_MAP_CREATE_ONLY"; /** * Map policy flags declaring the behavior of map write operations @@ -4211,93 +4206,93 @@ public function setDeserializer ( callable $unserialize_cb ) {} * @see Aerospike::AS_MAP_WRITE_PARTIAL * @const OPT_MAP_WRITE_FLAGS */ - const OPT_MAP_WRITE_FLAGS = "OPT_MAP_WRITE_FLAGS"; + public const OPT_MAP_WRITE_FLAGS = "OPT_MAP_WRITE_FLAGS"; /** * Default. Allow create or update. * @const AS_MAP_WRITE_DEFAULT (default) */ - const AS_MAP_WRITE_DEFAULT = "AS_MAP_WRITE_DEFAULT"; + public const AS_MAP_WRITE_DEFAULT = "AS_MAP_WRITE_DEFAULT"; /** * If the key already exists, the item will be denied. If the key does not exist, a new item will be created. * @const AS_MAP_WRITE_CREATE_ONLY */ - const AS_MAP_WRITE_CREATE_ONLY = "AS_MAP_WRITE_CREATE_ONLY"; + public const AS_MAP_WRITE_CREATE_ONLY = "AS_MAP_WRITE_CREATE_ONLY"; /** * If the key already exists, the item will be overwritten. If the key does not exist, the item will be denied. * @const AS_MAP_WRITE_UPDATE_ONLY */ - const AS_MAP_WRITE_UPDATE_ONLY = "AS_MAP_WRITE_UPDATE_ONLY"; + public const AS_MAP_WRITE_UPDATE_ONLY = "AS_MAP_WRITE_UPDATE_ONLY"; /** * Do not raise error if a map item is denied due to write flag constraints (always succeed). * @const AS_MAP_WRITE_NO_FAIL */ - const AS_MAP_WRITE_NO_FAIL = "AS_MAP_WRITE_NO_FAIL"; + public const AS_MAP_WRITE_NO_FAIL = "AS_MAP_WRITE_NO_FAIL"; /** * Allow other valid map items to be committed if a map item is denied due to write flag constraints. * @const AS_MAP_WRITE_PARTIAL */ - const AS_MAP_WRITE_PARTIAL = "AS_MAP_WRITE_PARTIAL"; + public const AS_MAP_WRITE_PARTIAL = "AS_MAP_WRITE_PARTIAL"; /** * Do not return a result for the map operation (get and remove operations) * @link https://www.aerospike.com/docs/guide/cdt-map.html#map-apis Map Result Types * @const MAP_RETURN_NONE */ - const MAP_RETURN_NONE = "AS_MAP_RETURN_NONE"; + public const MAP_RETURN_NONE = "AS_MAP_RETURN_NONE"; /** * Return in key index order * @link https://www.aerospike.com/docs/guide/cdt-map.html#map-apis Map Result Types * @const AS_MAP_RETURN_INDEX */ - const MAP_RETURN_INDEX = "AS_MAP_RETURN_INDEX"; + public const MAP_RETURN_INDEX = "AS_MAP_RETURN_INDEX"; /** * Return in reverse key order * @link https://www.aerospike.com/docs/guide/cdt-map.html#map-apis Map Result Types * @const MAP_RETURN_REVERSE_INDEX */ - const MAP_RETURN_REVERSE_INDEX = "AS_MAP_RETURN_REVERSE_INDEX"; + public const MAP_RETURN_REVERSE_INDEX = "AS_MAP_RETURN_REVERSE_INDEX"; /** * Return in value order * @link https://www.aerospike.com/docs/guide/cdt-map.html#map-apis Map Result Types * @const MAP_RETURN_RANK */ - const MAP_RETURN_RANK = "AS_MAP_RETURN_RANK"; + public const MAP_RETURN_RANK = "AS_MAP_RETURN_RANK"; /** * Return in reverse value order * @link https://www.aerospike.com/docs/guide/cdt-map.html#map-apis Map Result Types * @const MAP_RETURN_REVERSE_RANK */ - const MAP_RETURN_REVERSE_RANK = "AS_MAP_RETURN_REVERSE_RANK"; + public const MAP_RETURN_REVERSE_RANK = "AS_MAP_RETURN_REVERSE_RANK"; /** * Return count of items selected * @link https://www.aerospike.com/docs/guide/cdt-map.html#map-apis Map Result Types * @const MAP_RETURN_COUNT */ - const MAP_RETURN_COUNT = "AS_MAP_RETURN_COUNT"; + public const MAP_RETURN_COUNT = "AS_MAP_RETURN_COUNT"; /** * Return key for single key read and key list for range read * @link https://www.aerospike.com/docs/guide/cdt-map.html#map-apis Map Result Types * @const MAP_RETURN_KEY */ - const MAP_RETURN_KEY = "AS_MAP_RETURN_KEY"; + public const MAP_RETURN_KEY = "AS_MAP_RETURN_KEY"; /** * Return value for single key read and value list for range read * @link https://www.aerospike.com/docs/guide/cdt-map.html#map-apis Map Result Types * @const MAP_RETURN_VALUE */ - const MAP_RETURN_VALUE = "AS_MAP_RETURN_VALUE"; + public const MAP_RETURN_VALUE = "AS_MAP_RETURN_VALUE"; /** * Return key/value items @@ -4305,33 +4300,32 @@ public function setDeserializer ( callable $unserialize_cb ) {} * @link https://www.aerospike.com/docs/guide/cdt-map.html#map-apis Map Result Types * @const MAP_RETURN_KEY_VALUE */ - const MAP_RETURN_KEY_VALUE = "AS_MAP_RETURN_KEY_VALUE"; - + public const MAP_RETURN_KEY_VALUE = "AS_MAP_RETURN_KEY_VALUE"; /** * @const LOG_LEVEL_OFF */ - const LOG_LEVEL_OFF = "LOG_LEVEL_OFF"; + public const LOG_LEVEL_OFF = "LOG_LEVEL_OFF"; /** * @const LOG_LEVEL_ERROR */ - const LOG_LEVEL_ERROR = "LOG_LEVEL_ERROR"; + public const LOG_LEVEL_ERROR = "LOG_LEVEL_ERROR"; /** * @const LOG_LEVEL_WARN */ - const LOG_LEVEL_WARN = "LOG_LEVEL_WARN"; + public const LOG_LEVEL_WARN = "LOG_LEVEL_WARN"; /** * @const LOG_LEVEL_INFO */ - const LOG_LEVEL_INFO = "LOG_LEVEL_INFO"; + public const LOG_LEVEL_INFO = "LOG_LEVEL_INFO"; /** * @const LOG_LEVEL_DEBUG */ - const LOG_LEVEL_DEBUG = "LOG_LEVEL_DEBUG"; + public const LOG_LEVEL_DEBUG = "LOG_LEVEL_DEBUG"; /** * @const LOG_LEVEL_TRACE */ - const LOG_LEVEL_TRACE = "LOG_LEVEL_TRACE"; + public const LOG_LEVEL_TRACE = "LOG_LEVEL_TRACE"; /** * Aerospike Status Codes @@ -4345,7 +4339,7 @@ public function setDeserializer ( callable $unserialize_cb ) {} * * @const OK Success */ - const OK = "AEROSPIKE_OK"; + public const OK = "AEROSPIKE_OK"; // -10 - -1 - Client Errors @@ -4353,47 +4347,47 @@ public function setDeserializer ( callable $unserialize_cb ) {} * Synchronous connection error * @const ERR_CONNECTION */ - const ERR_CONNECTION = "AEROSPIKE_ERR_CONNECTION"; + public const ERR_CONNECTION = "AEROSPIKE_ERR_CONNECTION"; /** * Node invalid or could not be found * @const ERR_TLS_ERROR */ - const ERR_TLS_ERROR = "AEROSPIKE_ERR_TLS"; + public const ERR_TLS_ERROR = "AEROSPIKE_ERR_TLS"; /** * Node invalid or could not be found * @const ERR_INVALID_NODE */ - const ERR_INVALID_NODE = "AEROSPIKE_ERR_INVALID_NODE"; + public const ERR_INVALID_NODE = "AEROSPIKE_ERR_INVALID_NODE"; /** * Client hit the max asynchronous connections * @const ERR_NO_MORE_CONNECTIONS */ - const ERR_NO_MORE_CONNECTIONS = "AEROSPIKE_ERR_NO_MORE_CONNECTIONS"; + public const ERR_NO_MORE_CONNECTIONS = "AEROSPIKE_ERR_NO_MORE_CONNECTIONS"; /** * Asynchronous connection error * @const ERR_ASYNC_CONNECTION */ - const ERR_ASYNC_CONNECTION = "AEROSPIKE_ERR_ASYNC_CONNECTION"; + public const ERR_ASYNC_CONNECTION = "AEROSPIKE_ERR_ASYNC_CONNECTION"; /** * Query or scan was aborted in user's callback * @const ERR_CLIENT_ABORT */ - const ERR_CLIENT_ABORT = "AEROSPIKE_ERR_CLIENT_ABORT"; + public const ERR_CLIENT_ABORT = "AEROSPIKE_ERR_CLIENT_ABORT"; /** * Host name could not be found in DNS lookup * @const ERR_INVALID_HOST */ - const ERR_INVALID_HOST = "AEROSPIKE_ERR_INVALID_HOST"; + public const ERR_INVALID_HOST = "AEROSPIKE_ERR_INVALID_HOST"; /** * Invalid client API parameter * @const ERR_PARAM */ - const ERR_PARAM = "AEROSPIKE_ERR_PARAM"; + public const ERR_PARAM = "AEROSPIKE_ERR_PARAM"; /** * Generic client API usage error * @const ERR_CLIENT */ - const ERR_CLIENT = "AEROSPIKE_ERR_CLIENT"; + public const ERR_CLIENT = "AEROSPIKE_ERR_CLIENT"; // 1-49 - Basic Server Errors @@ -4401,48 +4395,48 @@ public function setDeserializer ( callable $unserialize_cb ) {} * Generic error returned by server * @const ERR_SERVER */ - const ERR_SERVER = "AEROSPIKE_ERR_SERVER"; + public const ERR_SERVER = "AEROSPIKE_ERR_SERVER"; /** * No record is found with the specified namespace/set/key combination. * May be returned by a read, or a write with OPT_POLICY_EXISTS * set to POLICY_EXISTS_UPDATE * @const ERR_RECORD_NOT_FOUND */ - const ERR_RECORD_NOT_FOUND = "AEROSPIKE_ERR_RECORD_NOT_FOUND"; + public const ERR_RECORD_NOT_FOUND = "AEROSPIKE_ERR_RECORD_NOT_FOUND"; /** * Generation of record does not satisfy the OPT_POLICY_GEN write policy * @const ERR_RECORD_GENERATION */ - const ERR_RECORD_GENERATION = "AEROSPIKE_ERR_RECORD_GENERATION"; + public const ERR_RECORD_GENERATION = "AEROSPIKE_ERR_RECORD_GENERATION"; /** * Illegal parameter sent from client. Check client parameters and verify * each is supported by current server version * @const ERR_REQUEST_INVALID */ - const ERR_REQUEST_INVALID = "AEROSPIKE_ERR_REQUEST_INVALID"; + public const ERR_REQUEST_INVALID = "AEROSPIKE_ERR_REQUEST_INVALID"; /** * The operation cannot be applied to the current bin on the server * @const ERR_OP_NOT_APPLICABLE */ - const ERR_OP_NOT_APPLICABLE = "AEROSPIKE_ERR_OP_NOT_APPLICABLE"; + public const ERR_OP_NOT_APPLICABLE = "AEROSPIKE_ERR_OP_NOT_APPLICABLE"; /** * Record already exists. May be returned by a write with the * OPT_POLICY_EXISTS write policy set to POLICY_EXISTS_CREATE * @const ERR_RECORD_EXISTS */ - const ERR_RECORD_EXISTS = "AEROSPIKE_ERR_RECORD_EXISTS"; + public const ERR_RECORD_EXISTS = "AEROSPIKE_ERR_RECORD_EXISTS"; /** * (future) For future write requests which specify 'BIN_CREATE_ONLY', * request failed because one of the bins in the write already exists * @const ERR_BIN_EXISTS */ - const ERR_BIN_EXISTS = "AEROSPIKE_ERR_BIN_EXISTS"; + public const ERR_BIN_EXISTS = "AEROSPIKE_ERR_BIN_EXISTS"; /** * On scan requests, the scan terminates because cluster is in migration. * Only occur when client requested 'fail_on_cluster_change' policy on scan * @const ERR_CLUSTER_CHANGE */ - const ERR_CLUSTER_CHANGE = "AEROSPIKE_ERR_CLUSTER_CHANGE"; + public const ERR_CLUSTER_CHANGE = "AEROSPIKE_ERR_CLUSTER_CHANGE"; /** * Occurs when stop_writes is true (either memory - stop-writes-pct - * or disk - min-avail-pct). Can also occur if memory cannot be allocated @@ -4450,81 +4444,81 @@ public function setDeserializer ( callable $unserialize_cb ) {} * longer be able to accept write requests * @const ERR_SERVER_FULL */ - const ERR_SERVER_FULL = "AEROSPIKE_ERR_SERVER_FULL"; + public const ERR_SERVER_FULL = "AEROSPIKE_ERR_SERVER_FULL"; /** * Request was not completed during the allocated time, thus aborted * @const ERR_TIMEOUT */ - const ERR_TIMEOUT = "AEROSPIKE_ERR_TIMEOUT"; + public const ERR_TIMEOUT = "AEROSPIKE_ERR_TIMEOUT"; /** * Write request is rejected because XDR is not running. * Only occur when XDR configuration xdr-stop-writes-noxdr is on * @const ERR_NO_XDR */ #[Deprecated("Will be reused as ERR_ALWAYS_FORBIDDEN")] - const ERR_ALWAYS_FORBIDDEN = "AEROSPIKE_ERR_ALWAYS_FORBIDDEN"; + public const ERR_ALWAYS_FORBIDDEN = "AEROSPIKE_ERR_ALWAYS_FORBIDDEN"; /** * Server is not accepting requests. * Occur during single node on a quick restart to join existing cluster * @const ERR_CLUSTER */ - const ERR_CLUSTER = "AEROSPIKE_ERR_CLUSTER"; + public const ERR_CLUSTER = "AEROSPIKE_ERR_CLUSTER"; /** * Operation is not allowed due to data type or namespace configuration incompatibility. * For example, append to a float data type, or insert a non-integer when * namespace is configured as data-in-index * @const ERR_BIN_INCOMPATIBLE_TYPE */ - const ERR_BIN_INCOMPATIBLE_TYPE = "AEROSPIKE_ERR_BIN_INCOMPATIBLE_TYPE"; + public const ERR_BIN_INCOMPATIBLE_TYPE = "AEROSPIKE_ERR_BIN_INCOMPATIBLE_TYPE"; /** * Attempt to write a record whose size is bigger than the configured write-block-size * @const ERR_RECORD_TOO_BIG */ - const ERR_RECORD_TOO_BIG = "AEROSPIKE_ERR_RECORD_TOO_BIG"; + public const ERR_RECORD_TOO_BIG = "AEROSPIKE_ERR_RECORD_TOO_BIG"; /** * Too many concurrent operations (> transaction-pending-limit) on the same record. * A "hot-key" situation * @const ERR_RECORD_BUSY */ - const ERR_RECORD_BUSY = "AEROSPIKE_ERR_RECORD_BUSY"; + public const ERR_RECORD_BUSY = "AEROSPIKE_ERR_RECORD_BUSY"; /** * Scan aborted by user on server * @const ERR_SCAN_ABORTED */ - const ERR_SCAN_ABORTED = "AEROSPIKE_ERR_SCAN_ABORTED"; + public const ERR_SCAN_ABORTED = "AEROSPIKE_ERR_SCAN_ABORTED"; /** * The client is trying to use a feature that does not yet exist in the * version of the server node it is talking to * @const ERR_UNSUPPORTED_FEATURE */ - const ERR_UNSUPPORTED_FEATURE = "AEROSPIKE_ERR_UNSUPPORTED_FEATURE"; + public const ERR_UNSUPPORTED_FEATURE = "AEROSPIKE_ERR_UNSUPPORTED_FEATURE"; /** * (future) For future write requests which specify 'REPLACE_ONLY', * request fail because specified bin name does not exist in record * @const ERR_BIN_NOT_FOUND */ - const ERR_BIN_NOT_FOUND = "AEROSPIKE_ERR_BIN_NOT_FOUND"; + public const ERR_BIN_NOT_FOUND = "AEROSPIKE_ERR_BIN_NOT_FOUND"; /** * Write request is rejected because one or more storage devices of the node are not keeping up * @const ERR_DEVICE_OVERLOAD */ - const ERR_DEVICE_OVERLOAD = "AEROSPIKE_ERR_DEVICE_OVERLOAD"; + public const ERR_DEVICE_OVERLOAD = "AEROSPIKE_ERR_DEVICE_OVERLOAD"; /** * For update request on records which has key stored, the incoming key does not match * the existing stored key. This indicates a RIPEMD160 key collision has happend (report as a bug) * @const ERR_RECORD_KEY_MISMATCH */ - const ERR_RECORD_KEY_MISMATCH = "AEROSPIKE_ERR_RECORD_KEY_MISMATCH"; + public const ERR_RECORD_KEY_MISMATCH = "AEROSPIKE_ERR_RECORD_KEY_MISMATCH"; /** * Namespace in request not found on server * @const ERR_NAMESPACE_NOT_FOUND */ - const ERR_NAMESPACE_NOT_FOUND = "AEROSPIKE_ERR_NAMESPACE_NOT_FOUND"; + public const ERR_NAMESPACE_NOT_FOUND = "AEROSPIKE_ERR_NAMESPACE_NOT_FOUND"; /** * Bin name length greater than 14 characters, or maximum number of unique bin names are exceeded * @const ERR_BIN_NAME */ - const ERR_BIN_NAME = "AEROSPIKE_ERR_BIN_NAME"; + public const ERR_BIN_NAME = "AEROSPIKE_ERR_BIN_NAME"; /** * Operation not allowed at this time. * For writes, the set is in the middle of being deleted, or the set's stop-write is reached; @@ -4532,17 +4526,17 @@ public function setDeserializer ( callable $unserialize_cb ) {} * For XDR-ed cluster, fail writes which are not replicated from another datacenter * @const ERR_FAIL_FORBIDDEN */ - const ERR_FAIL_FORBIDDEN = "AEROSPIKE_ERR_FORBIDDEN"; + public const ERR_FAIL_FORBIDDEN = "AEROSPIKE_ERR_FORBIDDEN"; /** * Target was not found for operations that requires a target to be found * @const ERR_FAIL_ELEMENT_NOT_FOUND */ - const ERR_FAIL_ELEMENT_NOT_FOUND = "AEROSPIKE_ERR_FAIL_NOT_FOUND"; + public const ERR_FAIL_ELEMENT_NOT_FOUND = "AEROSPIKE_ERR_FAIL_NOT_FOUND"; /** * Target already exist for operations that requires the target to not exist * @const ERR_FAIL_ELEMENT_EXISTS */ - const ERR_FAIL_ELEMENT_EXISTS = "AEROSPIKE_ERR_FAIL_ELEMENT_EXISTS"; + public const ERR_FAIL_ELEMENT_EXISTS = "AEROSPIKE_ERR_FAIL_ELEMENT_EXISTS"; // 50-89 - Security Specific Errors @@ -4550,87 +4544,87 @@ public function setDeserializer ( callable $unserialize_cb ) {} * Security functionality not supported by connected server * @const ERR_SECURITY_NOT_SUPPORTED */ - const ERR_SECURITY_NOT_SUPPORTED = "AEROSPIKE_ERR_SECURITY_NOT_SUPPORTED"; + public const ERR_SECURITY_NOT_SUPPORTED = "AEROSPIKE_ERR_SECURITY_NOT_SUPPORTED"; /** * Security functionality not enabled by connected server * @const ERR_SECURITY_NOT_ENABLED */ - const ERR_SECURITY_NOT_ENABLED = "AEROSPIKE_ERR_SECURITY_NOT_ENABLED"; + public const ERR_SECURITY_NOT_ENABLED = "AEROSPIKE_ERR_SECURITY_NOT_ENABLED"; /** * Security scheme not supported * @const ERR_SECURITY_SCHEME_NOT_SUPPORTED */ - const ERR_SECURITY_SCHEME_NOT_SUPPORTED = "AEROSPIKE_ERR_SECURITY_SCHEME_NOT_SUPPORTED"; + public const ERR_SECURITY_SCHEME_NOT_SUPPORTED = "AEROSPIKE_ERR_SECURITY_SCHEME_NOT_SUPPORTED"; /** * Unrecognized security command * @const ERR_INVALID_COMMAND */ - const ERR_INVALID_COMMAND = "AEROSPIKE_ERR_INVALID_COMMAND"; + public const ERR_INVALID_COMMAND = "AEROSPIKE_ERR_INVALID_COMMAND"; /** * Field is not valid * @const ERR_INVALID_FIELD */ - const ERR_INVALID_FIELD = "AEROSPIKE_ERR_INVALID_FIELD"; + public const ERR_INVALID_FIELD = "AEROSPIKE_ERR_INVALID_FIELD"; /** * Security protocol not followed * @const ERR_ILLEGAL_STATE */ - const ERR_ILLEGAL_STATE = "AEROSPIKE_ERR_ILLEGAL_STATE"; + public const ERR_ILLEGAL_STATE = "AEROSPIKE_ERR_ILLEGAL_STATE"; /** * No user supplied or unknown user * @const ERR_INVALID_USER */ - const ERR_INVALID_USER = "AEROSPIKE_ERR_INVALID_USER"; + public const ERR_INVALID_USER = "AEROSPIKE_ERR_INVALID_USER"; /** * User already exists * @const ERR_USER_ALREADY_EXISTS */ - const ERR_USER_ALREADY_EXISTS = "AEROSPIKE_ERR_USER_ALREADY_EXISTS"; + public const ERR_USER_ALREADY_EXISTS = "AEROSPIKE_ERR_USER_ALREADY_EXISTS"; /** * Password does not exists or not recognized * @const ERR_INVALID_PASSWORD */ - const ERR_INVALID_PASSWORD = "AEROSPIKE_ERR_INVALID_PASSWORD"; + public const ERR_INVALID_PASSWORD = "AEROSPIKE_ERR_INVALID_PASSWORD"; /** * Expired password * @const ERR_EXPIRED_PASSWORD */ - const ERR_EXPIRED_PASSWORD = "AEROSPIKE_ERR_EXPIRED_PASSWORD"; + public const ERR_EXPIRED_PASSWORD = "AEROSPIKE_ERR_EXPIRED_PASSWORD"; /** * Forbidden password (e.g. recently used) * @const ERR_FORBIDDEN_PASSWORD */ - const ERR_FORBIDDEN_PASSWORD = "AEROSPIKE_ERR_FORBIDDEN_PASSWORD"; + public const ERR_FORBIDDEN_PASSWORD = "AEROSPIKE_ERR_FORBIDDEN_PASSWORD"; /** * Invalid credential or credential does not exist * @const ERR_INVALID_CREDENTIAL */ - const ERR_INVALID_CREDENTIAL = "AEROSPIKE_ERR_INVALID_CREDENTIAL"; + public const ERR_INVALID_CREDENTIAL = "AEROSPIKE_ERR_INVALID_CREDENTIAL"; /** * No role(s) or unknown role(s) * @const ERR_INVALID_ROLE */ - const ERR_INVALID_ROLE = "AEROSPIKE_ERR_INVALID_ROLE"; + public const ERR_INVALID_ROLE = "AEROSPIKE_ERR_INVALID_ROLE"; /** * Privilege is invalid * @const ERR_INVALID_PRIVILEGE */ - const ERR_INVALID_PRIVILEGE = "AEROSPIKE_ERR_INVALID_PRIVILEGE"; + public const ERR_INVALID_PRIVILEGE = "AEROSPIKE_ERR_INVALID_PRIVILEGE"; /** * User must be authenticated before performing database operations * @const ERR_NOT_AUTHENTICATED */ - const ERR_NOT_AUTHENTICATED = "AEROSPIKE_ERR_NOT_AUTHENTICATED"; + public const ERR_NOT_AUTHENTICATED = "AEROSPIKE_ERR_NOT_AUTHENTICATED"; /** * User does not possess the required role to perform the database operation * @const ERR_ROLE_VIOLATION */ - const ERR_ROLE_VIOLATION = "AEROSPIKE_ERR_ROLE_VIOLATION"; + public const ERR_ROLE_VIOLATION = "AEROSPIKE_ERR_ROLE_VIOLATION"; /** * Role already exists * @const ERR_ROLE_ALREADY_EXISTS */ - const ERR_ROLE_ALREADY_EXISTS = "AEROSPIKE_ERR_ROLE_ALREADY_EXISTS"; + public const ERR_ROLE_ALREADY_EXISTS = "AEROSPIKE_ERR_ROLE_ALREADY_EXISTS"; // 100-109 - UDF Specific Errors // @@ -4638,17 +4632,17 @@ public function setDeserializer ( callable $unserialize_cb ) {} * A user defined function failed to execute * @const ERR_UDF */ - const ERR_UDF = "AEROSPIKE_ERR_UDF"; + public const ERR_UDF = "AEROSPIKE_ERR_UDF"; /** * The UDF does not exist * @const ERR_UDF_NOT_FOUND */ - const ERR_UDF_NOT_FOUND = "AEROSPIKE_ERR_UDF_NOT_FOUND"; + public const ERR_UDF_NOT_FOUND = "AEROSPIKE_ERR_UDF_NOT_FOUND"; /** * The LUA file does not exist * @const ERR_LUA_FILE_NOT_FOUND */ - const ERR_LUA_FILE_NOT_FOUND = "AEROSPIKE_ERR_LUA_FILE_NOT_FOUND"; + public const ERR_LUA_FILE_NOT_FOUND = "AEROSPIKE_ERR_LUA_FILE_NOT_FOUND"; // 150-159 - Batch Specific Errors @@ -4656,17 +4650,17 @@ public function setDeserializer ( callable $unserialize_cb ) {} * Batch functionality has been disabled by configuring the batch-index-thread=0 * @const ERR_BATCH_DISABLED */ - const ERR_BATCH_DISABLED = "AEROSPIKE_ERR_BATCH_DISABLED"; + public const ERR_BATCH_DISABLED = "AEROSPIKE_ERR_BATCH_DISABLED"; /** * Batch max requests has been exceeded * @const ERR_BATCH_MAX_REQUESTS_EXCEEDED */ - const ERR_BATCH_MAX_REQUESTS_EXCEEDED= "AEROSPIKE_ERR_BATCH_MAX_REQUESTS_EXCEEDED"; + public const ERR_BATCH_MAX_REQUESTS_EXCEEDED = "AEROSPIKE_ERR_BATCH_MAX_REQUESTS_EXCEEDED"; /** * All batch queues are full * @const ERR_BATCH_QUEUES_FULL */ - const ERR_BATCH_QUEUES_FULL = "AEROSPIKE_ERR_BATCH_QUEUES_FULL"; + public const ERR_BATCH_QUEUES_FULL = "AEROSPIKE_ERR_BATCH_QUEUES_FULL"; // 160-169 - Geo Specific Errors @@ -4674,7 +4668,7 @@ public function setDeserializer ( callable $unserialize_cb ) {} * GeoJSON is malformed or not supported * @const ERR_GEO_INVALID_GEOJSON */ - const ERR_GEO_INVALID_GEOJSON = "AEROSPIKE_ERR_GEO_INVALID_GEOJSON"; + public const ERR_GEO_INVALID_GEOJSON = "AEROSPIKE_ERR_GEO_INVALID_GEOJSON"; // 200-219 - Secondary Index Specific Errors @@ -4688,92 +4682,92 @@ public function setDeserializer ( callable $unserialize_cb ) {} * (their unique ID in the application). * @const OPT_POLICY_KEY Key storage policy option (digest-only or send key) */ - const ERR_INDEX_FOUND = "AEROSPIKE_ERR_INDEX_FOUND"; + public const ERR_INDEX_FOUND = "AEROSPIKE_ERR_INDEX_FOUND"; /** * Secondary index does not exist * @const ERR_INDEX_NOT_FOUND */ - const ERR_INDEX_NOT_FOUND = "AEROSPIKE_ERR_INDEX_NOT_FOUND"; + public const ERR_INDEX_NOT_FOUND = "AEROSPIKE_ERR_INDEX_NOT_FOUND"; /** * Secondary index memory space exceeded * @const ERR_INDEX_OOM */ - const ERR_INDEX_OOM = "AEROSPIKE_ERR_INDEX_OOM"; + public const ERR_INDEX_OOM = "AEROSPIKE_ERR_INDEX_OOM"; /** * Secondary index not available for query. Occurs when indexing creation has not finished * @const ERR_INDEX_NOT_READABLE */ - const ERR_INDEX_NOT_READABLE = "AEROSPIKE_ERR_INDEX_NOT_READABLE"; + public const ERR_INDEX_NOT_READABLE = "AEROSPIKE_ERR_INDEX_NOT_READABLE"; /** * Generic secondary index error * @const ERR_INDEX */ - const ERR_INDEX = "AEROSPIKE_ERR_INDEX"; + public const ERR_INDEX = "AEROSPIKE_ERR_INDEX"; /** * Index name maximun length exceeded * @const ERR_INDEX_NAME_MAXLEN */ - const ERR_INDEX_NAME_MAXLEN = "AEROSPIKE_ERR_INDEX_NAME_MAXLEN"; + public const ERR_INDEX_NAME_MAXLEN = "AEROSPIKE_ERR_INDEX_NAME_MAXLEN"; /** * Maximum number of indicies exceeded * @const ERR_INDEX_MAXCOUNT */ - const ERR_INDEX_MAXCOUNT = "AEROSPIKE_ERR_INDEX_MAXCOUNT"; + public const ERR_INDEX_MAXCOUNT = "AEROSPIKE_ERR_INDEX_MAXCOUNT"; /** * Secondary index query aborted * @const ERR_QUERY_ABORTED */ - const ERR_QUERY_ABORTED = "AEROSPIKE_ERR_QUERY_ABORTED"; + public const ERR_QUERY_ABORTED = "AEROSPIKE_ERR_QUERY_ABORTED"; /** * Secondary index queue full * @const ERR_QUERY_QUEUE_FULL */ - const ERR_QUERY_QUEUE_FULL = "AEROSPIKE_ERR_QUERY_QUEUE_FULL"; + public const ERR_QUERY_QUEUE_FULL = "AEROSPIKE_ERR_QUERY_QUEUE_FULL"; /** * Secondary index query timed out on server * @const ERR_QUERY_TIMEOUT */ - const ERR_QUERY_TIMEOUT = "AEROSPIKE_ERR_QUERY_TIMEOUT"; + public const ERR_QUERY_TIMEOUT = "AEROSPIKE_ERR_QUERY_TIMEOUT"; /** * Generic query error * @const ERR_QUERY */ - const ERR_QUERY = "AEROSPIKE_ERR_QUERY"; + public const ERR_QUERY = "AEROSPIKE_ERR_QUERY"; /** * write operator for the operate() method * @const OPERATOR_WRITE */ - const OPERATOR_WRITE = "OPERATOR_WRITE"; + public const OPERATOR_WRITE = "OPERATOR_WRITE"; /** * read operator for the operate() method * @const OPERATOR_READ */ - const OPERATOR_READ = "OPERATOR_READ"; + public const OPERATOR_READ = "OPERATOR_READ"; /** * increment operator for the operate() method * @const OPERATOR_INCR */ - const OPERATOR_INCR = "OPERATOR_INCR"; + public const OPERATOR_INCR = "OPERATOR_INCR"; /** * prepend operator for the operate() method * @const OPERATOR_PREPEND */ - const OPERATOR_PREPEND = "OPERATOR_PREPEND"; + public const OPERATOR_PREPEND = "OPERATOR_PREPEND"; /** * append operator for the operate() method * @const OPERATOR_APPEND */ - const OPERATOR_APPEND = "OPERATOR_APPEND"; + public const OPERATOR_APPEND = "OPERATOR_APPEND"; /** * touch operator for the operate() method * @const OPERATOR_TOUCH */ - const OPERATOR_TOUCH = "OPERATOR_TOUCH"; + public const OPERATOR_TOUCH = "OPERATOR_TOUCH"; /** * delete operator for the operate() method * @const OPERATOR_DELETE */ - const OPERATOR_DELETE = "OPERATOR_DELETE"; + public const OPERATOR_DELETE = "OPERATOR_DELETE"; // List operation constants @@ -4781,72 +4775,72 @@ public function setDeserializer ( callable $unserialize_cb ) {} * list-append operator for the operate() method * @const OP_LIST_APPEND */ - const OP_LIST_APPEND = "OP_LIST_APPEND"; + public const OP_LIST_APPEND = "OP_LIST_APPEND"; /** * list-merge operator for the operate() method * @const OP_LIST_MERGE */ - const OP_LIST_MERGE = "OP_LIST_MERGE"; + public const OP_LIST_MERGE = "OP_LIST_MERGE"; /** * list-insert operator for the operate() method * @const OP_LIST_INSERT */ - const OP_LIST_INSERT = "OP_LIST_INSERT"; + public const OP_LIST_INSERT = "OP_LIST_INSERT"; /** * list-insert-items operator for the operate() method * @const OP_LIST_INSERT_ITEMS */ - const OP_LIST_INSERT_ITEMS = "OP_LIST_INSERT_ITEMS"; + public const OP_LIST_INSERT_ITEMS = "OP_LIST_INSERT_ITEMS"; /** * list-pop operator for the operate() method * @const OP_LIST_POP */ - const OP_LIST_POP = "OP_LIST_POP"; + public const OP_LIST_POP = "OP_LIST_POP"; /** * list-pop-range operator for the operate() method * @const OP_LIST_POP_RANGE */ - const OP_LIST_POP_RANGE = "OP_LIST_POP_RANGE"; + public const OP_LIST_POP_RANGE = "OP_LIST_POP_RANGE"; /** * list-remove operator for the operate() method * @const OP_LIST_REMOVE */ - const OP_LIST_REMOVE = "OP_LIST_REMOVE"; + public const OP_LIST_REMOVE = "OP_LIST_REMOVE"; /** * list-remove-range operator for the operate() method * @const OP_LIST_REMOVE_RANGE */ - const OP_LIST_REMOVE_RANGE = "OP_LIST_REMOVE_RANGE"; + public const OP_LIST_REMOVE_RANGE = "OP_LIST_REMOVE_RANGE"; /** * list-clear operator for the operate() method * @const OP_LIST_CLEAR */ - const OP_LIST_CLEAR = "OP_LIST_CLEAR"; + public const OP_LIST_CLEAR = "OP_LIST_CLEAR"; /** * list-set operator for the operate() method * @const OP_LIST_SET */ - const OP_LIST_SET = "OP_LIST_SET"; + public const OP_LIST_SET = "OP_LIST_SET"; /** * list-get operator for the operate() method * @const OP_LIST_GET */ - const OP_LIST_GET = "OP_LIST_GET"; + public const OP_LIST_GET = "OP_LIST_GET"; /** * list-get-range operator for the operate() method * @const OP_LIST_GET_RANGE */ - const OP_LIST_GET_RANGE = "OP_LIST_GET_RANGE"; + public const OP_LIST_GET_RANGE = "OP_LIST_GET_RANGE"; /** * list-trim operator for the operate() method * @const OP_LIST_TRIM */ - const OP_LIST_TRIM = "OP_LIST_TRIM"; + public const OP_LIST_TRIM = "OP_LIST_TRIM"; /** * list-size operator for the operate() method * @const OP_LIST_SIZE */ - const OP_LIST_SIZE = "OP_LIST_SIZE"; + public const OP_LIST_SIZE = "OP_LIST_SIZE"; // Map operation constants @@ -4854,127 +4848,127 @@ public function setDeserializer ( callable $unserialize_cb ) {} * map-size operator for the operate() method * @const OP_MAP_SIZE */ - const OP_MAP_SIZE = "OP_MAP_SIZE"; + public const OP_MAP_SIZE = "OP_MAP_SIZE"; /** * map-size operator for the operate() method * @const OP_MAP_CLEAR */ - const OP_MAP_CLEAR = "OP_MAP_CLEAR"; + public const OP_MAP_CLEAR = "OP_MAP_CLEAR"; /** * map-set-policy operator for the operate() method * @const OP_MAP_SET_POLICY */ - const OP_MAP_SET_POLICY = "OP_MAP_SET_POLICY"; + public const OP_MAP_SET_POLICY = "OP_MAP_SET_POLICY"; /** * map-get-by-key operator for the operate() method * @const OP_MAP_GET_BY_KEY */ - const OP_MAP_GET_BY_KEY = "OP_MAP_GET_BY_KEY"; + public const OP_MAP_GET_BY_KEY = "OP_MAP_GET_BY_KEY"; /** * map-get-by-key-range operator for the operate() method * @const OP_MAP_GET_BY_KEY_RANGE */ - const OP_MAP_GET_BY_KEY_RANGE = "OP_MAP_GET_BY_KEY_RANGE"; + public const OP_MAP_GET_BY_KEY_RANGE = "OP_MAP_GET_BY_KEY_RANGE"; /** * map-get-by-value operator for the operate() method * @const OP_MAP_GET_BY_VALUE */ - const OP_MAP_GET_BY_VALUE = "OP_MAP_GET_BY_VALUE"; + public const OP_MAP_GET_BY_VALUE = "OP_MAP_GET_BY_VALUE"; /** * map-get-by-value-range operator for the operate() method * @const OP_MAP_GET_BY_VALUE_RANGE */ - const OP_MAP_GET_BY_VALUE_RANGE = "OP_MAP_GET_BY_VALUE_RANGE"; + public const OP_MAP_GET_BY_VALUE_RANGE = "OP_MAP_GET_BY_VALUE_RANGE"; /** * map-get-by-index operator for the operate() method * @const OP_MAP_GET_BY_INDEX */ - const OP_MAP_GET_BY_INDEX = "OP_MAP_GET_BY_INDEX"; + public const OP_MAP_GET_BY_INDEX = "OP_MAP_GET_BY_INDEX"; /** * map-get-by-index-range operator for the operate() method * @const OP_MAP_GET_BY_INDEX_RANGE */ - const OP_MAP_GET_BY_INDEX_RANGE = "OP_MAP_GET_BY_INDEX_RANGE"; + public const OP_MAP_GET_BY_INDEX_RANGE = "OP_MAP_GET_BY_INDEX_RANGE"; /** * map-get-by-rank operator for the operate() method * @const OP_MAP_GET_BY_RANK */ - const OP_MAP_GET_BY_RANK = "OP_MAP_GET_BY_RANK"; + public const OP_MAP_GET_BY_RANK = "OP_MAP_GET_BY_RANK"; /** * map-get-by-rank-range operator for the operate() method * @const OP_MAP_GET_BY_RANK_RANGE */ - const OP_MAP_GET_BY_RANK_RANGE = "OP_MAP_GET_BY_RANK_RANGE"; + public const OP_MAP_GET_BY_RANK_RANGE = "OP_MAP_GET_BY_RANK_RANGE"; /** * map-put operator for the operate() method * @const OP_MAP_PUT */ - const OP_MAP_PUT = "OP_MAP_PUT"; + public const OP_MAP_PUT = "OP_MAP_PUT"; /** * map-put-items operator for the operate() method * @const OP_MAP_PUT_ITEMS */ - const OP_MAP_PUT_ITEMS = "OP_MAP_PUT_ITEMS"; + public const OP_MAP_PUT_ITEMS = "OP_MAP_PUT_ITEMS"; /** * map-increment operator for the operate() method * @const OP_MAP_INCREMENT */ - const OP_MAP_INCREMENT = "OP_MAP_INCREMENT"; + public const OP_MAP_INCREMENT = "OP_MAP_INCREMENT"; /** * map-decrement operator for the operate() method * @const OP_MAP_DECREMENT */ - const OP_MAP_DECREMENT = "OP_MAP_DECREMENT"; + public const OP_MAP_DECREMENT = "OP_MAP_DECREMENT"; /** * map-remove-by-key operator for the operate() method * @const OP_MAP_REMOVE_BY_KEY */ - const OP_MAP_REMOVE_BY_KEY = "OP_MAP_REMOVE_BY_KEY"; + public const OP_MAP_REMOVE_BY_KEY = "OP_MAP_REMOVE_BY_KEY"; /** * map-remove-by-key-list operator for the operate() method * @const OP_MAP_REMOVE_BY_KEY_LIST */ - const OP_MAP_REMOVE_BY_KEY_LIST = "OP_MAP_REMOVE_BY_KEY_LIST"; + public const OP_MAP_REMOVE_BY_KEY_LIST = "OP_MAP_REMOVE_BY_KEY_LIST"; /** * map-remove-by-key-range key operator for the operate() method * @const OP_MAP_REMOVE_BY_KEY_RANGE */ - const OP_MAP_REMOVE_BY_KEY_RANGE = "OP_MAP_REMOVE_BY_KEY_RANGE"; + public const OP_MAP_REMOVE_BY_KEY_RANGE = "OP_MAP_REMOVE_BY_KEY_RANGE"; /** * map-remove-by-value operator for the operate() method * @const OP_MAP_REMOVE_BY_VALUE */ - const OP_MAP_REMOVE_BY_VALUE = "OP_MAP_REMOVE_BY_VALUE"; + public const OP_MAP_REMOVE_BY_VALUE = "OP_MAP_REMOVE_BY_VALUE"; /** * map-remove-by-value operator for the operate() method * @const OP_MAP_REMOVE_BY_VALUE_RANGE */ - const OP_MAP_REMOVE_BY_VALUE_RANGE = "OP_MAP_REMOVE_BY_VALUE_RANGE"; + public const OP_MAP_REMOVE_BY_VALUE_RANGE = "OP_MAP_REMOVE_BY_VALUE_RANGE"; /** * map-remove-by-value-list operator for the operate() method * @const OP_MAP_REMOVE_BY_VALUE_LIST */ - const OP_MAP_REMOVE_BY_VALUE_LIST = "OP_MAP_REMOVE_BY_VALUE_LIST"; + public const OP_MAP_REMOVE_BY_VALUE_LIST = "OP_MAP_REMOVE_BY_VALUE_LIST"; /** * map-remove-by-index operator for the operate() method * @const OP_MAP_REMOVE_BY_INDEX */ - const OP_MAP_REMOVE_BY_INDEX = "OP_MAP_REMOVE_BY_INDEX"; + public const OP_MAP_REMOVE_BY_INDEX = "OP_MAP_REMOVE_BY_INDEX"; /** * map-remove-by-index-range operator for the operate() method * @const OP_MAP_REMOVE_BY_INDEX_RANGE */ - const OP_MAP_REMOVE_BY_INDEX_RANGE = "OP_MAP_REMOVE_BY_INDEX_RANGE"; + public const OP_MAP_REMOVE_BY_INDEX_RANGE = "OP_MAP_REMOVE_BY_INDEX_RANGE"; /** * map-remove-by-rank operator for the operate() method * @const OP_MAP_REMOVE_BY_RANK */ - const OP_MAP_REMOVE_BY_RANK = "OP_MAP_REMOVE_BY_RANK"; + public const OP_MAP_REMOVE_BY_RANK = "OP_MAP_REMOVE_BY_RANK"; /** * map-remove-by-rank-range operator for the operate() method * @const OP_MAP_REMOVE_BY_RANK_RANGE */ - const OP_MAP_REMOVE_BY_RANK_RANGE = "OP_MAP_REMOVE_BY_RANK_RANGE"; + public const OP_MAP_REMOVE_BY_RANK_RANGE = "OP_MAP_REMOVE_BY_RANK_RANGE"; // Query Predicate Operators @@ -4983,115 +4977,115 @@ public function setDeserializer ( callable $unserialize_cb ) {} * @const OP_EQ * @see Aerospike::predicateEquals */ - const OP_EQ = "="; + public const OP_EQ = "="; /** * predicate operator matching whether an integer falls between a range of integer values * @const OP_BETWEEN * @see Aerospike::predicateBetween */ - const OP_BETWEEN = "BETWEEN"; + public const OP_BETWEEN = "BETWEEN"; /** * predicate operator for a whether a specific value is in an indexed list, mapkeys, or mapvalues * @const OP_CONTAINS * @see Aerospike::predicateContains */ - const OP_CONTAINS = "CONTAINS"; + public const OP_CONTAINS = "CONTAINS"; /** * predicate operator for whether an indexed list, mapkeys, or mapvalues has an integer value within a specified range * @const OP_RANGE * @see Aerospike::predicateRange */ - const OP_RANGE = "RANGE"; + public const OP_RANGE = "RANGE"; /** * geospatial predicate operator for points within a specified region * @const OP_GEOWITHINREGION */ - const OP_GEOWITHINREGION = "GEOWITHIN"; + public const OP_GEOWITHINREGION = "GEOWITHIN"; /** * geospatial predicate operator for regons containing a sepcified point * @const OP_GEOWITHINREGION */ - const OP_GEOCONTAINSPOINT = "GEOCONTAINS"; + public const OP_GEOCONTAINSPOINT = "GEOCONTAINS"; /** * Scan status is undefined */ #[Deprecated('use JOB_STATUS_UNDEF along with jobInfo()')] - const SCAN_STATUS_UNDEF = "SCAN_STATUS_UNDEF"; + public const SCAN_STATUS_UNDEF = "SCAN_STATUS_UNDEF"; /** * Scan is currently running */ #[Deprecated('use JOB_STATUS_INPROGRESS along with jobInfo()')] - const SCAN_STATUS_INPROGRESS = "SCAN_STATUS_INPROGRESS"; + public const SCAN_STATUS_INPROGRESS = "SCAN_STATUS_INPROGRESS"; /** * Scan completed successfully */ #[Deprecated] - const SCAN_STATUS_ABORTED = "SCAN_STATUS_ABORTED"; + public const SCAN_STATUS_ABORTED = "SCAN_STATUS_ABORTED"; /** * Scan was aborted due to failure or the user */ #[Deprecated('use JOB_STATUS_COMPLETED along with jobInfo()')] - const SCAN_STATUS_COMPLETED = "SCAN_STATUS_COMPLETED"; + public const SCAN_STATUS_COMPLETED = "SCAN_STATUS_COMPLETED"; // Status values returned by jobInfo() /** * Job status is undefined */ - const JOB_STATUS_UNDEF = "JOB_STATUS_UNDEF"; + public const JOB_STATUS_UNDEF = "JOB_STATUS_UNDEF"; /** * Job is currently running */ - const JOB_STATUS_INPROGRESS = "JOB_STATUS_INPROGRESS"; + public const JOB_STATUS_INPROGRESS = "JOB_STATUS_INPROGRESS"; /** * Job completed successfully */ - const JOB_STATUS_COMPLETED = "JOB_STATUS_COMPLETED"; + public const JOB_STATUS_COMPLETED = "JOB_STATUS_COMPLETED"; // Index (container) types /** * The bin being indexed should contain scalar values such as string or integer * @const INDEX_TYPE_DEFAULT */ - const INDEX_TYPE_DEFAULT = "INDEX_TYPE_DEFAULT"; + public const INDEX_TYPE_DEFAULT = "INDEX_TYPE_DEFAULT"; /** * The bin being indexed should contain a list * @const INDEX_TYPE_LIST */ - const INDEX_TYPE_LIST = "INDEX_TYPE_LIST"; + public const INDEX_TYPE_LIST = "INDEX_TYPE_LIST"; /** * The bin being indexed should contain a map. The map keys will be indexed * @const INDEX_TYPE_MAPKEYS */ - const INDEX_TYPE_MAPKEYS = "INDEX_TYPE_MAPKEYS"; + public const INDEX_TYPE_MAPKEYS = "INDEX_TYPE_MAPKEYS"; /** * The bin being indexed should contain a map. The map values will be indexed * @const INDEX_TYPE_MAPKEYS */ - const INDEX_TYPE_MAPVALUES = "INDEX_TYPE_MAPVALUES"; + public const INDEX_TYPE_MAPVALUES = "INDEX_TYPE_MAPVALUES"; // Data type /** * If and only if the container type matches, the value should be of type string * @const INDEX_STRING */ - const INDEX_STRING = "INDEX_STRING"; + public const INDEX_STRING = "INDEX_STRING"; /** * If and only if the container type matches, the value should be of type integer * @const INDEX_NUMERIC */ - const INDEX_NUMERIC = "INDEX_NUMERIC"; + public const INDEX_NUMERIC = "INDEX_NUMERIC"; /** * If and only if the container type matches, the value should be GeoJSON * @const INDEX_GEO2DSPHERE */ - const INDEX_GEO2DSPHERE = "INDEX_GEO2DSPHERE"; + public const INDEX_GEO2DSPHERE = "INDEX_GEO2DSPHERE"; /** * Declare the UDF module's language to be Lua * @const UDF_TYPE_LUA */ - const UDF_TYPE_LUA = "UDF_TYPE_LUA"; + public const UDF_TYPE_LUA = "UDF_TYPE_LUA"; // Security role privileges @@ -5100,36 +5094,36 @@ public function setDeserializer ( callable $unserialize_cb ) {} * @const PRIV_READ * @link https://www.aerospike.com/docs/guide/security/access-control.html Access Control */ - const PRIV_READ = "PRIV_READ"; + public const PRIV_READ = "PRIV_READ"; /** * Privilege to read and write data * @const PRIV_READ_WRITE * @link https://www.aerospike.com/docs/guide/security/access-control.html Access Control */ - const PRIV_READ_WRITE = "PRIV_READ_WRITE"; + public const PRIV_READ_WRITE = "PRIV_READ_WRITE"; /** * Privilege to read, write and execute user-defined functions * @const PRIV_READ_WRITE_UDF * @link https://www.aerospike.com/docs/guide/security/access-control.html Access Control */ - const PRIV_READ_WRITE_UDF = "PRIV_READ_WRITE_UDF"; + public const PRIV_READ_WRITE_UDF = "PRIV_READ_WRITE_UDF"; /** * Privilege to create and assign roles to users * @const PRIV_USER_ADMIN * @link https://www.aerospike.com/docs/guide/security/access-control.html Access Control */ - const PRIV_USER_ADMIN = "PRIV_USER_ADMIN"; + public const PRIV_USER_ADMIN = "PRIV_USER_ADMIN"; /** * Privilege to manage indexes and UDFs, monitor and abort scan/query jobs, get server config * @const PRIV_DATA_ADMIN * @link https://www.aerospike.com/docs/guide/security/access-control.html Access Control */ - const PRIV_DATA_ADMIN = "PRIV_DATA_ADMIN"; // can perform data admin functions that do not involve user admin + public const PRIV_DATA_ADMIN = "PRIV_DATA_ADMIN"; // can perform data admin functions that do not involve user admin /** Privilege to modify dynamic server configs, get config and stats, and all data admin privileges * @const PRIV_SYS_ADMIN * @link https://www.aerospike.com/docs/guide/security/access-control.html Access Control */ - const PRIV_SYS_ADMIN = "PRIV_SYS_ADMIN"; // can perform sysadmin functions that do not involve user admin + public const PRIV_SYS_ADMIN = "PRIV_SYS_ADMIN"; // can perform sysadmin functions that do not involve user admin /* // TODO: diff --git a/amqp/amqp.php b/amqp/amqp.php index 76dc090e6..2e88ba5c5 100644 --- a/amqp/amqp.php +++ b/amqp/amqp.php @@ -126,7 +126,6 @@ */ define('AMQP_OS_SOCKET_TIMEOUT_ERRNO', 536870923); - /** * The maximum number of channels that can be open on a connection. */ @@ -178,106 +177,105 @@ public function __construct( $user_id = "", $app_id = "", $cluster_id = "" - ) { - } + ) {} /** * Get the message content type. * * @return string The content type of the message. */ - public function getContentType() { } + public function getContentType() {} /** * Get the content encoding of the message. * * @return string The content encoding of the message. */ - public function getContentEncoding() { } + public function getContentEncoding() {} /** * Get the headers of the message. * * @return array An array of key value pairs associated with the message. */ - public function getHeaders() { } + public function getHeaders() {} /** * Get the delivery mode of the message. * - * @return integer The delivery mode of the message. + * @return int The delivery mode of the message. */ - public function getDeliveryMode() { } + public function getDeliveryMode() {} /** * Get the priority of the message. * * @return int The message priority. */ - public function getPriority() { } + public function getPriority() {} /** * Get the message correlation id. * * @return string The correlation id of the message. */ - public function getCorrelationId() { } + public function getCorrelationId() {} /** * Get the reply-to address of the message. * * @return string The contents of the reply to field. */ - public function getReplyTo() { } + public function getReplyTo() {} /** * Get the expiration of the message. * * @return string The message expiration. */ - public function getExpiration() { } + public function getExpiration() {} /** * Get the message id of the message. * * @return string The message id */ - public function getMessageId() { } + public function getMessageId() {} /** * Get the timestamp of the message. * * @return string The message timestamp. */ - public function getTimestamp() { } + public function getTimestamp() {} /** * Get the message type. * * @return string The message type. */ - public function getType() { } + public function getType() {} /** * Get the message user id. * * @return string The message user id. */ - public function getUserId() { } + public function getUserId() {} /** * Get the application id of the message. * * @return string The application id of the message. */ - public function getAppId() { } + public function getAppId() {} /** * Get the cluster id of the message. * * @return string The cluster id of the message. */ - public function getClusterId() { } + public function getClusterId() {} } /** @@ -294,7 +292,7 @@ class AMQPChannel * * @return bool TRUE on success or FALSE on failure. */ - public function commitTransaction() { } + public function commitTransaction() {} /** * Create an instance of an AMQPChannel object. @@ -306,26 +304,26 @@ public function commitTransaction() { } * @throws AMQPConnectionException If the connection to the broker * was lost. */ - public function __construct(AMQPConnection $amqp_connection) { } + public function __construct(AMQPConnection $amqp_connection) {} /** * Check the channel connection. * * @return bool Indicates whether the channel is connected. */ - public function isConnected() { } + public function isConnected() {} /** * Closes the channel. */ - public function close() { } + public function close() {} /** * Return internal channel ID * - * @return integer + * @return int */ - public function getChannelId() { } + public function getChannelId() {} /** * Set the Quality Of Service settings for the given channel. @@ -342,15 +340,15 @@ public function getChannelId() { } * flag set, the client will not do any prefetching of data, regardless of * the QOS settings. * - * @param integer $size The window size, in octets, to prefetch. - * @param integer $count The number of messages to prefetch. + * @param int $size The window size, in octets, to prefetch. + * @param int $count The number of messages to prefetch. * @param bool $global TRUE for global, FALSE for consumer. FALSE by default. * * @throws AMQPConnectionException If the connection to the broker was lost. * * @return bool TRUE on success or FALSE on failure. */ - public function qos($size, $count, $global = false) { } + public function qos($size, $count, $global = false) {} /** * Rollback a transaction. @@ -364,7 +362,7 @@ public function qos($size, $count, $global = false) { } * * @return bool TRUE on success or FALSE on failure. */ - public function rollbackTransaction() { } + public function rollbackTransaction() {} /** * Set the number of messages to prefetch from the broker for each consumer. @@ -372,20 +370,20 @@ public function rollbackTransaction() { } * Set the number of messages to prefetch from the broker during a call to * AMQPQueue::consume() or AMQPQueue::get(). * - * @param integer $count The number of messages to prefetch. + * @param int $count The number of messages to prefetch. * * @throws AMQPConnectionException If the connection to the broker was lost. * - * @return boolean TRUE on success or FALSE on failure. + * @return bool TRUE on success or FALSE on failure. */ - public function setPrefetchCount($count) { } + public function setPrefetchCount($count) {} /** * Get the number of messages to prefetch from the broker for each consumer. * - * @return integer + * @return int */ - public function getPrefetchCount() { } + public function getPrefetchCount() {} /** * Set the window size to prefetch from the broker for each consumer. @@ -397,20 +395,20 @@ public function getPrefetchCount() { } * AMQPQueue::consume() or AMQPQueue::get() is done with the AMQP_AUTOACK * flag set, this setting will be ignored. * - * @param integer $size The window size, in octets, to prefetch. + * @param int $size The window size, in octets, to prefetch. * * @throws AMQPConnectionException If the connection to the broker was lost. * * @return bool TRUE on success or FALSE on failure. */ - public function setPrefetchSize($size){} + public function setPrefetchSize($size) {} /** * Get the window size to prefetch from the broker for each consumer. * - * @return integer + * @return int */ - public function getPrefetchSize() { } + public function getPrefetchSize() {} /** * Set the number of messages to prefetch from the broker across all consumers. @@ -418,20 +416,20 @@ public function getPrefetchSize() { } * Set the number of messages to prefetch from the broker during a call to * AMQPQueue::consume() or AMQPQueue::get(). * - * @param integer $count The number of messages to prefetch. + * @param int $count The number of messages to prefetch. * * @throws AMQPConnectionException If the connection to the broker was lost. * - * @return boolean TRUE on success or FALSE on failure. + * @return bool TRUE on success or FALSE on failure. */ - public function setGlobalPrefetchCount($count) { } + public function setGlobalPrefetchCount($count) {} /** * Get the number of messages to prefetch from the broker across all consumers. * - * @return integer + * @return int */ - public function getGlobalPrefetchCount() { } + public function getGlobalPrefetchCount() {} /** * Set the window size to prefetch from the broker for all consumers. @@ -443,20 +441,20 @@ public function getGlobalPrefetchCount() { } * AMQPQueue::consume() or AMQPQueue::get() is done with the AMQP_AUTOACK * flag set, this setting will be ignored. * - * @param integer $size The window size, in octets, to prefetch. + * @param int $size The window size, in octets, to prefetch. * * @throws AMQPConnectionException If the connection to the broker was lost. * * @return bool TRUE on success or FALSE on failure. */ - public function setGlobalPrefetchSize($size) { } + public function setGlobalPrefetchSize($size) {} /** * Get the window size to prefetch from the broker for all consumers. * - * @return integer + * @return int */ - public function getGlobalPrefetchSize() { } + public function getGlobalPrefetchSize() {} /** * Start a transaction. @@ -468,26 +466,26 @@ public function getGlobalPrefetchSize() { } * * @return bool TRUE on success or FALSE on failure. */ - public function startTransaction() { } + public function startTransaction() {} /** * Get the AMQPConnection object in use * * @return AMQPConnection */ - public function getConnection() { } + public function getConnection() {} /** * Redeliver unacknowledged messages. * * @param bool $requeue */ - public function basicRecover($requeue = true) { } + public function basicRecover($requeue = true) {} /** * Set the channel to use publisher acknowledgements. This can only used on a non-transactional channel. */ - public function confirmSelect() { } + public function confirmSelect() {} /** * Set callback to process basic.ack and basic.nac AMQP server methods (applicable when channel in confirm mode). @@ -504,9 +502,8 @@ public function confirmSelect() { } * * Note, basic.nack server method will only be delivered if an internal error occurs in the Erlang process * responsible for a queue (see https://www.rabbitmq.com/confirms.html for details). - * */ - public function setConfirmCallback(callable $ack_callback=null, callable $nack_callback=null) { } + public function setConfirmCallback(callable $ack_callback = null, callable $nack_callback = null) {} /** * Wait until all messages published since the last call have been either ack'd or nack'd by the broker. @@ -515,7 +512,7 @@ public function setConfirmCallback(callable $ack_callback=null, callable $nack_c * * @param float $timeout Timeout in seconds. May be fractional. */ - public function waitForConfirm($timeout = 0.0) { } + public function waitForConfirm($timeout = 0.0) {} /** * Set callback to process basic.return AMQP server method @@ -532,31 +529,28 @@ public function waitForConfirm($timeout = 0.0) { } * string $body) : bool; * * and should return boolean false when wait loop should be canceled. - * */ - public function setReturnCallback(callable $return_callback=null) { } + public function setReturnCallback(callable $return_callback = null) {} /** * Start wait loop for basic.return AMQP server methods * * @param float $timeout Timeout in seconds. May be fractional. */ - public function waitForBasicReturn($timeout = 0.0) { } + public function waitForBasicReturn($timeout = 0.0) {} /** * Return array of current consumers where key is consumer and value is AMQPQueue consumer is running on * * @return AMQPQueue[] */ - public function getConsumers() { } + public function getConsumers() {} } /** * stub class representing AMQPChannelException from pecl-amqp */ -class AMQPChannelException extends AMQPException -{ -} +class AMQPChannelException extends AMQPException {} /** * stub class representing AMQPConnection from pecl-amqp @@ -569,9 +563,9 @@ class AMQPConnection * This method will initiate a connection with the AMQP broker. * * @throws AMQPConnectionException - * @return boolean TRUE on success or throw an exception on failure. + * @return bool TRUE on success or throw an exception on failure. */ - public function connect() { } + public function connect() {} /** * Create an instance of AMQPConnection. @@ -611,60 +605,60 @@ public function connect() { } * @param array $credentials Optional array of credential information for * connecting to the AMQP broker. */ - public function __construct(array $credentials = array()) { } + public function __construct(array $credentials = []) {} /** * Closes the transient connection with the AMQP broker. * * This method will close an open connection with the AMQP broker. * - * @return boolean true if connection was successfully closed, false otherwise. + * @return bool true if connection was successfully closed, false otherwise. */ - public function disconnect() { } + public function disconnect() {} /** * Get the configured host. * * @return string The configured hostname of the broker */ - public function getHost() { } + public function getHost() {} /** * Get the configured login. * * @return string The configured login as a string. */ - public function getLogin() { } + public function getLogin() {} /** * Get the configured password. * * @return string The configured password as a string. */ - public function getPassword() { } + public function getPassword() {} /** * Get the configured port. * * @return int The configured port as an integer. */ - public function getPort() { } + public function getPort() {} /** * Get the configured vhost. * * @return string The configured virtual host as a string. */ - public function getVhost() { } + public function getVhost() {} /** * Check whether the connection to the AMQP broker is still valid. * * It does so by checking the return status of the last connect-command. * - * @return boolean True if connected, false otherwise. + * @return bool True if connected, false otherwise. */ - public function isConnected() { } + public function isConnected() {} /** * Establish a persistent connection with the AMQP broker. @@ -673,9 +667,9 @@ public function isConnected() { } * or reuse an existing one if present. * * @throws AMQPConnectionException - * @return boolean TRUE on success or throws an exception on failure. + * @return bool TRUE on success or throws an exception on failure. */ - public function pconnect() { } + public function pconnect() {} /** * Closes a persistent connection with the AMQP broker. @@ -683,26 +677,25 @@ public function pconnect() { } * This method will close an open persistent connection with the AMQP * broker. * - * @return boolean true if connection was found and closed, + * @return bool true if connection was found and closed, * false if no persistent connection with this host, * port, vhost and login could be found, */ - public function pdisconnect() { } + public function pdisconnect() {} /** * Close any open transient connections and initiate a new one with the AMQP broker. * - * @return boolean TRUE on success or FALSE on failure. + * @return bool TRUE on success or FALSE on failure. */ - public function reconnect() { } + public function reconnect() {} /** * Close any open persistent connections and initiate a new one with the AMQP broker. * - * @return boolean TRUE on success or FALSE on failure. + * @return bool TRUE on success or FALSE on failure. */ - public function preconnect() { } - + public function preconnect() {} /** * Set the hostname used to connect to the AMQP broker. @@ -711,9 +704,9 @@ public function preconnect() { } * * @throws AMQPConnectionException If host is longer then 1024 characters. * - * @return boolean TRUE on success or FALSE on failure. + * @return bool TRUE on success or FALSE on failure. */ - public function setHost($host) { } + public function setHost($host) {} /** * Set the login string used to connect to the AMQP broker. @@ -723,9 +716,9 @@ public function setHost($host) { } * * @throws AMQPConnectionException If login is longer then 32 characters. * - * @return boolean TRUE on success or FALSE on failure. + * @return bool TRUE on success or FALSE on failure. */ - public function setLogin($login) { } + public function setLogin($login) {} /** * Set the password string used to connect to the AMQP broker. @@ -735,21 +728,21 @@ public function setLogin($login) { } * * @throws AMQPConnectionException If password is longer then 32characters. * - * @return boolean TRUE on success or FALSE on failure. + * @return bool TRUE on success or FALSE on failure. */ - public function setPassword($password) { } + public function setPassword($password) {} /** * Set the port used to connect to the AMQP broker. * - * @param integer $port The port used to connect to the AMQP broker. + * @param int $port The port used to connect to the AMQP broker. * * @throws AMQPConnectionException If port is longer not between * 1 and 65535. * - * @return boolean TRUE on success or FALSE on failure. + * @return bool TRUE on success or FALSE on failure. */ - public function setPort($port) { } + public function setPort($port) {} /** * Sets the virtual host to which to connect on the AMQP broker. @@ -759,9 +752,9 @@ public function setPort($port) { } * * @throws AMQPConnectionException If host is longer then 32 characters. * - * @return boolean true on success or false on failure. + * @return bool true on success or false on failure. */ - public function setVhost($vhost) { } + public function setVhost($vhost) {} /** * Sets the interval of time to wait for income activity from AMQP broker @@ -771,7 +764,7 @@ public function setVhost($vhost) { } * @return bool */ #[Deprecated(replacement: "%class%->setReadTimout(%parameter0%)")] - public function setTimeout($timeout) { } + public function setTimeout($timeout) {} /** * Get the configured interval of time to wait for income activity @@ -780,7 +773,7 @@ public function setTimeout($timeout) { } * @return float */ #[Deprecated(replacement: '%class%->getReadTimout(%parameter0%)')] - public function getTimeout() { } + public function getTimeout() {} /** * Sets the interval of time to wait for income activity from AMQP broker @@ -789,7 +782,7 @@ public function getTimeout() { } * * @return bool */ - public function setReadTimeout($timeout) { } + public function setReadTimeout($timeout) {} /** * Get the configured interval of time to wait for income activity @@ -797,7 +790,7 @@ public function setReadTimeout($timeout) { } * * @return float */ - public function getReadTimeout() { } + public function getReadTimeout() {} /** * Sets the interval of time to wait for outcome activity to AMQP broker @@ -806,7 +799,7 @@ public function getReadTimeout() { } * * @return bool */ - public function setWriteTimeout($timeout) { } + public function setWriteTimeout($timeout) {} /** * Get the configured interval of time to wait for outcome activity @@ -814,7 +807,7 @@ public function setWriteTimeout($timeout) { } * * @return float */ - public function getWriteTimeout() { } + public function getWriteTimeout() {} /** * Sets the interval of time to wait for RPC activity to AMQP broker @@ -823,9 +816,7 @@ public function getWriteTimeout() { } * * @return bool */ - public function setRpcTimeout($timeout) - { - } + public function setRpcTimeout($timeout) {} /** * Get the configured interval of time to wait for RPC activity @@ -833,16 +824,14 @@ public function setRpcTimeout($timeout) * * @return float */ - public function getRpcTimeout() - { - } + public function getRpcTimeout() {} /** * Return last used channel id during current connection session. * * @return int */ - public function getUsedChannels() { } + public function getUsedChannels() {} /** * Get the maximum number of channels the connection can handle. @@ -852,7 +841,7 @@ public function getUsedChannels() { } * * @return int */ - public function getMaxChannels() { } + public function getMaxChannels() {} /** * Get max supported frame size per connection in bytes. @@ -862,7 +851,7 @@ public function getMaxChannels() { } * * @return int */ - public function getMaxFrameSize() { } + public function getMaxFrameSize() {} /** * Get number of seconds between heartbeats of the connection in seconds. @@ -872,7 +861,7 @@ public function getMaxFrameSize() { } * * @return int */ - public function getHeartbeatInterval() { } + public function getHeartbeatInterval() {} /** * Whether connection persistent. @@ -881,108 +870,106 @@ public function getHeartbeatInterval() { } * * @return bool */ - public function isPersistent() { } + public function isPersistent() {} /** * Get path to the CA cert file in PEM format * * @return string */ - public function getCACert() { } + public function getCACert() {} /** * Set path to the CA cert file in PEM format * * @param string $cacert */ - public function setCACert($cacert) { } + public function setCACert($cacert) {} /** * Get path to the client certificate in PEM format * * @return string */ - public function getCert() { } + public function getCert() {} /** * Set path to the client certificate in PEM format * * @param string $cert */ - public function setCert($cert) { } + public function setCert($cert) {} /** * Get path to the client key in PEM format * * @return string */ - public function getKey() { } + public function getKey() {} /** * Set path to the client key in PEM format * * @param string $key */ - public function setKey($key) { } + public function setKey($key) {} /** * Get whether peer verification enabled or disabled * * @return bool */ - public function getVerify() { } + public function getVerify() {} /** * Enable or disable peer verification * * @param bool $verify */ - public function setVerify($verify) { } + public function setVerify($verify) {} /** * set authentication method * * @param int $method AMQP_SASL_METHOD_PLAIN | AMQP_SASL_METHOD_EXTERNAL */ - public function setSaslMethod($method) { } + public function setSaslMethod($method) {} /** * Get authentication mechanism configuration * * @return int AMQP_SASL_METHOD_PLAIN | AMQP_SASL_METHOD_EXTERNAL */ - public function getSaslMethod() { } + public function getSaslMethod() {} /** * Return the connection name * @return string|null */ - public function getConnectionName() { } + public function getConnectionName() {} /** * Set the connection name * @param string $connection_name * @return void */ - public function setConnectionName($connection_name) { } + public function setConnectionName($connection_name) {} } /** * stub class representing AMQPConnectionException from pecl-amqp */ -class AMQPConnectionException extends AMQPException -{ -} +class AMQPConnectionException extends AMQPException {} /** * stub class representing AMQPDecimal from pecl-amqp */ final class AMQPDecimal { - const EXPONENT_MIN = 0; - const EXPONENT_MAX = 255; - const SIGNIFICAND_MIN = 0; - const SIGNIFICAND_MAX = 4294967295; + public const EXPONENT_MIN = 0; + public const EXPONENT_MAX = 255; + public const SIGNIFICAND_MIN = 0; + public const SIGNIFICAND_MAX = 4294967295; /** * @param $exponent @@ -990,13 +977,13 @@ final class AMQPDecimal * * @throws AMQPExchangeValue */ - public function __construct($exponent, $significand) { } + public function __construct($exponent, $significand) {} /** @return int */ - public function getExponent() { } + public function getExponent() {} /** @return int */ - public function getSignificand() { } + public function getSignificand() {} } /** @@ -1004,42 +991,42 @@ public function getSignificand() { } */ class AMQPEnvelope extends AMQPBasicProperties { - public function __construct() { } + public function __construct() {} /** * Get the body of the message. * * @return string The contents of the message body. */ - public function getBody() { } + public function getBody() {} /** * Get the routing key of the message. * * @return string The message routing key. */ - public function getRoutingKey() { } + public function getRoutingKey() {} /** * Get the consumer tag of the message. * * @return string The consumer tag of the message. */ - public function getConsumerTag() { } + public function getConsumerTag() {} /** * Get the delivery tag of the message. * * @return string The delivery tag of the message. */ - public function getDeliveryTag() { } + public function getDeliveryTag() {} /** * Get the exchange name on which the message was published. * * @return string The exchange name on which the message was published. */ - public function getExchangeName() { } + public function getExchangeName() {} /** * Whether this is a redelivery of the message. @@ -1051,7 +1038,7 @@ public function getExchangeName() { } * * @return bool TRUE if this is a redelivery, FALSE otherwise. */ - public function isRedelivery() { } + public function isRedelivery() {} /** * Get a specific message header. @@ -1061,7 +1048,7 @@ public function isRedelivery() { } * @return string|false The contents of the specified header or FALSE * if not set. */ - public function getHeader($header_key) { } + public function getHeader($header_key) {} /** * Check whether specific message header exists. @@ -1070,7 +1057,7 @@ public function getHeader($header_key) { } * * @return bool */ - public function hasHeader($header_key) { } + public function hasHeader($header_key) {} } /** @@ -1087,9 +1074,7 @@ class AMQPEnvelopeException extends AMQPException /** * stub class representing AMQPException from pecl-amqp */ -class AMQPException extends Exception -{ -} +class AMQPException extends Exception {} /** * stub class representing AMQPExchange from pecl-amqp @@ -1110,7 +1095,7 @@ class AMQPExchange * @throws AMQPConnectionException If the connection to the broker was lost. * @return bool TRUE on success or FALSE on failure. */ - public function bind($exchange_name, $routing_key = '', array $arguments = array()) { } + public function bind($exchange_name, $routing_key = '', array $arguments = []) {} /** * Remove binding to another exchange. @@ -1126,7 +1111,7 @@ public function bind($exchange_name, $routing_key = '', array $arguments = array * @throws AMQPConnectionException If the connection to the broker was lost. * @return bool TRUE on success or FALSE on failure. */ - public function unbind($exchange_name, $routing_key = '', array $arguments = array()) { } + public function unbind($exchange_name, $routing_key = '', array $arguments = []) {} /** * Create an instance of AMQPExchange. @@ -1142,7 +1127,7 @@ public function unbind($exchange_name, $routing_key = '', array $arguments = arr * @throws AMQPConnectionException If the connection to the broker was * lost. */ - public function __construct(AMQPChannel $amqp_channel) { } + public function __construct(AMQPChannel $amqp_channel) {} /** * Declare a new exchange on the broker. @@ -1153,13 +1138,13 @@ public function __construct(AMQPChannel $amqp_channel) { } * * @return bool TRUE on success or FALSE on failure. */ - public function declareExchange() { } + public function declareExchange() {} /** * Delete the exchange from the broker. * * @param string $exchangeName Optional name of exchange to delete. - * @param integer $flags Optionally AMQP_IFUNUSED can be specified + * @param int $flags Optionally AMQP_IFUNUSED can be specified * to indicate the exchange should not be * deleted until no clients are connected to * it. @@ -1170,18 +1155,18 @@ public function declareExchange() { } * * @return bool TRUE on success or FALSE on failure. */ - public function delete($exchangeName = null, $flags = AMQP_NOPARAM) { } + public function delete($exchangeName = null, $flags = AMQP_NOPARAM) {} /** * Get the argument associated with the given key. * * @param string $key The key to look up. * - * @return string|integer|false The string or integer value associated + * @return string|int|false The string or integer value associated * with the given key, or FALSE if the key * is not set. */ - public function getArgument($key) { } + public function getArgument($key) {} /** * Check whether argument associated with the given key exists. @@ -1190,14 +1175,14 @@ public function getArgument($key) { } * * @return bool */ - public function hasArgument($key) { } + public function hasArgument($key) {} /** * Get all arguments set on the given exchange. * * @return array An array containing all of the set key/value pairs. */ - public function getArguments() { } + public function getArguments() {} /** * Get all the flags currently set on the given exchange. @@ -1205,21 +1190,21 @@ public function getArguments() { } * @return int An integer bitmask of all the flags currently set on this * exchange object. */ - public function getFlags() { } + public function getFlags() {} /** * Get the configured name. * * @return string The configured name as a string. */ - public function getName() { } + public function getName() {} /** * Get the configured type. * * @return string The configured type as a string. */ - public function getType() { } + public function getType() {} /** * Publish a message to an exchange. @@ -1229,7 +1214,7 @@ public function getType() { } * @param string $message The message to publish. * @param string $routing_key The optional routing key to which to * publish to. - * @param integer $flags One or more of AMQP_MANDATORY and + * @param int $flags One or more of AMQP_MANDATORY and * AMQP_IMMEDIATE. * @param array $attributes One of content_type, content_encoding, * message_id, user_id, app_id, delivery_mode, @@ -1246,19 +1231,18 @@ public function publish( $message, $routing_key = null, $flags = AMQP_NOPARAM, - array $attributes = array() - ) { - } + array $attributes = [] + ) {} /** * Set the value for the given key. * * @param string $key Name of the argument to set. - * @param string|integer $value Value of the argument to set. + * @param string|int $value Value of the argument to set. * * @return bool TRUE on success or FALSE on failure. */ - public function setArgument($key, $value) { } + public function setArgument($key, $value) {} /** * Set all arguments on the exchange. @@ -1267,19 +1251,19 @@ public function setArgument($key, $value) { } * * @return bool TRUE on success or FALSE on failure. */ - public function setArguments(array $arguments) { } + public function setArguments(array $arguments) {} /** * Set the flags on an exchange. * - * @param integer $flags A bitmask of flags. This call currently only + * @param int $flags A bitmask of flags. This call currently only * considers the following flags: * AMQP_DURABLE, AMQP_PASSIVE * (and AMQP_DURABLE, if librabbitmq version >= 0.5.3) * * @return void */ - public function setFlags($flags) { } + public function setFlags($flags) {} /** * Set the name of the exchange. @@ -1288,7 +1272,7 @@ public function setFlags($flags) { } * * @return void */ - public function setName($exchange_name) { } + public function setName($exchange_name) {} /** * Set the type of the exchange. @@ -1300,21 +1284,21 @@ public function setName($exchange_name) { } * * @return void */ - public function setType($exchange_type) { } + public function setType($exchange_type) {} /** * Get the AMQPChannel object in use * * @return AMQPChannel */ - public function getChannel() { } + public function getChannel() {} /** * Get the AMQPConnection object in use * * @return AMQPConnection */ - public function getConnection() { } + public function getConnection() {} /** * Declare a new exchange on the broker. @@ -1325,15 +1309,13 @@ public function getConnection() { } * @see AMQPExchange::declareExchange() */ #[Deprecated] - public function declare() { } + public function declare() {} } /** * stub class representing AMQPExchangeException from pecl-amqp */ -class AMQPExchangeException extends AMQPException -{ -} +class AMQPExchangeException extends AMQPException {} /** * stub class representing AMQPQueue from pecl-amqp @@ -1349,7 +1331,7 @@ class AMQPQueue * * @param string $delivery_tag The message delivery tag of which to * acknowledge receipt. - * @param integer $flags The only valid flag that can be passed is + * @param int $flags The only valid flag that can be passed is * AMQP_MULTIPLE. * * @throws AMQPChannelException If the channel is not open. @@ -1357,7 +1339,7 @@ class AMQPQueue * * @return bool */ - public function ack($delivery_tag, $flags = AMQP_NOPARAM) { } + public function ack($delivery_tag, $flags = AMQP_NOPARAM) {} /** * Bind the given queue to a routing key on an exchange. @@ -1371,7 +1353,7 @@ public function ack($delivery_tag, $flags = AMQP_NOPARAM) { } * * @return bool */ - public function bind($exchange_name, $routing_key = null, array $arguments = array()) { } + public function bind($exchange_name, $routing_key = null, array $arguments = []) {} /** * Cancel a queue that is already bound to an exchange and routing key. @@ -1390,7 +1372,7 @@ public function bind($exchange_name, $routing_key = null, array $arguments = arr * * @return bool */ - public function cancel($consumer_tag = '') { } + public function cancel($consumer_tag = '') {} /** * Create an instance of an AMQPQueue object. @@ -1401,7 +1383,7 @@ public function cancel($consumer_tag = '') { } * broker. * @throws AMQPConnectionException If the connection to the broker was lost. */ - public function __construct(AMQPChannel $amqp_channel) { } + public function __construct(AMQPChannel $amqp_channel) {} /** * Consume messages from a queue. @@ -1424,7 +1406,7 @@ public function __construct(AMQPChannel $amqp_channel) { } * be made available to the first real callback * registered. That allows one to have a single * callback consuming from multiple queues. - * @param integer $flags A bitmask of any of the flags: AMQP_AUTOACK, + * @param int $flags A bitmask of any of the flags: AMQP_AUTOACK, * AMQP_JUST_CONSUME. Note: when AMQP_JUST_CONSUME * flag used all other flags are ignored and * $consumerTag parameter has no sense. @@ -1445,8 +1427,7 @@ public function consume( callable $callback = null, $flags = AMQP_NOPARAM, $consumerTag = null - ) { - } + ) {} /** * Declare a new queue on the broker. @@ -1454,16 +1435,16 @@ public function consume( * @throws AMQPChannelException If the channel is not open. * @throws AMQPConnectionException If the connection to the broker was lost. * - * @return integer the message count. + * @return int the message count. */ - public function declareQueue() { } + public function declareQueue() {} /** * Delete a queue from the broker. * * This includes its entire contents of unread or unacknowledged messages. * - * @param integer $flags Optionally AMQP_IFUNUSED can be specified + * @param int $flags Optionally AMQP_IFUNUSED can be specified * to indicate the queue should not be * deleted until no clients are connected to * it. @@ -1471,9 +1452,9 @@ public function declareQueue() { } * @throws AMQPChannelException If the channel is not open. * @throws AMQPConnectionException If the connection to the broker was lost. * - * @return integer The number of deleted messages. + * @return int The number of deleted messages. */ - public function delete($flags = AMQP_NOPARAM) { } + public function delete($flags = AMQP_NOPARAM) {} /** * Retrieve the next message from the queue. @@ -1486,7 +1467,7 @@ public function delete($flags = AMQP_NOPARAM) { } * automatically be marked as acknowledged by the broker as soon as the * frames are sent to the client. * - * @param integer $flags A bitmask of supported flags for the + * @param int $flags A bitmask of supported flags for the * method call. Currently, the only the * supported flag is AMQP_AUTOACK. If this * value is not provided, it will use the @@ -1497,25 +1478,25 @@ public function delete($flags = AMQP_NOPARAM) { } * * @return AMQPEnvelope|false */ - public function get($flags = AMQP_NOPARAM) { } + public function get($flags = AMQP_NOPARAM) {} /** * Get the argument associated with the given key. * * @param string $key The key to look up. * - * @return string|integer|false The string or integer value associated + * @return string|int|false The string or integer value associated * with the given key, or false if the key * is not set. */ - public function getArgument($key) { } + public function getArgument($key) {} /** * Get all set arguments as an array of key/value pairs. * * @return array An array containing all of the set key/value pairs. */ - public function getArguments() { } + public function getArguments() {} /** * Get all the flags currently set on the given queue. @@ -1523,14 +1504,14 @@ public function getArguments() { } * @return int An integer bitmask of all the flags currently set on this * exchange object. */ - public function getFlags() { } + public function getFlags() {} /** * Get the configured name. * * @return string The configured name as a string. */ - public function getName() { } + public function getName() {} /** * Mark a message as explicitly not acknowledged. @@ -1546,7 +1527,7 @@ public function getName() { } * undefined. * * @param string $delivery_tag Delivery tag of last message to reject. - * @param integer $flags AMQP_REQUEUE to requeue the message(s), + * @param int $flags AMQP_REQUEUE to requeue the message(s), * AMQP_MULTIPLE to nack all previous * unacked messages as well. * @@ -1555,7 +1536,7 @@ public function getName() { } * * @return bool */ - public function nack($delivery_tag, $flags = AMQP_NOPARAM) { } + public function nack($delivery_tag, $flags = AMQP_NOPARAM) {} /** * Mark one message as explicitly not acknowledged. @@ -1567,14 +1548,14 @@ public function nack($delivery_tag, $flags = AMQP_NOPARAM) { } * flag are not eligible. * * @param string $delivery_tag Delivery tag of the message to reject. - * @param integer $flags AMQP_REQUEUE to requeue the message(s). + * @param int $flags AMQP_REQUEUE to requeue the message(s). * * @throws AMQPChannelException If the channel is not open. * @throws AMQPConnectionException If the connection to the broker was lost. * * @return bool */ - public function reject($delivery_tag, $flags = AMQP_NOPARAM) { } + public function reject($delivery_tag, $flags = AMQP_NOPARAM) {} /** * Purge the contents of a queue. @@ -1584,7 +1565,7 @@ public function reject($delivery_tag, $flags = AMQP_NOPARAM) { } * * @return bool */ - public function purge() { } + public function purge() {} /** * Set a queue argument. @@ -1594,7 +1575,7 @@ public function purge() { } * * @return bool */ - public function setArgument($key, $value) { } + public function setArgument($key, $value) {} /** * Set all arguments on the given queue. @@ -1605,7 +1586,7 @@ public function setArgument($key, $value) { } * * @return bool */ - public function setArguments(array $arguments) { } + public function setArguments(array $arguments) {} /** * Check whether a queue has specific argument. @@ -1614,18 +1595,18 @@ public function setArguments(array $arguments) { } * * @return bool */ - public function hasArgument($key) { } + public function hasArgument($key) {} /** * Set the flags on the queue. * - * @param integer $flags A bitmask of flags: + * @param int $flags A bitmask of flags: * AMQP_DURABLE, AMQP_PASSIVE, * AMQP_EXCLUSIVE, AMQP_AUTODELETE. * * @return bool */ - public function setFlags($flags) { } + public function setFlags($flags) {} /** * Set the queue name. @@ -1634,7 +1615,7 @@ public function setFlags($flags) { } * * @return bool */ - public function setName($queue_name) { } + public function setName($queue_name) {} /** * Remove a routing key binding on an exchange from the given queue. @@ -1650,28 +1631,28 @@ public function setName($queue_name) { } * * @return bool */ - public function unbind($exchange_name, $routing_key = null, array $arguments = array()) { } + public function unbind($exchange_name, $routing_key = null, array $arguments = []) {} /** * Get the AMQPChannel object in use * * @return AMQPChannel */ - public function getChannel() { } + public function getChannel() {} /** * Get the AMQPConnection object in use * * @return AMQPConnection */ - public function getConnection() { } + public function getConnection() {} /** * Get latest consumer tag. If no consumer available or the latest on was canceled null will be returned. * * @return string|null */ - public function getConsumerTag() { } + public function getConsumerTag() {} /** * Declare a new queue @@ -1681,49 +1662,42 @@ public function getConsumerTag() { } * @see AMQPQueue::declareQueue() */ #[Deprecated] - public function declare() { } - + public function declare() {} } /** * stub class representing AMQPQueueException from pecl-amqp */ -class AMQPQueueException extends AMQPException -{ -} +class AMQPQueueException extends AMQPException {} /** * stub class representing AMQPTimestamp from pecl-amqp */ final class AMQPTimestamp { - const MIN = "0"; - const MAX = "18446744073709551616"; + public const MIN = "0"; + public const MAX = "18446744073709551616"; /** * @param string $timestamp * * @throws AMQPExchangeValue */ - public function __construct($timestamp) { } + public function __construct($timestamp) {} /** @return string */ - public function getTimestamp() { } + public function getTimestamp() {} /** @return string */ - public function __toString() { } + public function __toString() {} } /** * stub class representing AMQPExchangeValue from pecl-amqp */ -class AMQPExchangeValue extends AMQPException -{ -} +class AMQPExchangeValue extends AMQPException {} /** * stub class representing AMQPExchangeValue from pecl-amqp */ -class AMQPValueException extends AMQPException -{ -} +class AMQPValueException extends AMQPException {} diff --git a/apache/apache.php b/apache/apache.php index 5401f1f00..73dee605b 100644 --- a/apache/apache.php +++ b/apache/apache.php @@ -8,7 +8,7 @@ * @link https://php.net/manual/en/function.apache-child-terminate.php * @return bool TRUE if PHP is running as an Apache 1 module, the Apache version is non-multithreaded, and the child_terminate PHP directive is enabled (disabled by default). If these conditions are not met, FALSE is returned and an error of level E_WARNING is generated. */ -function apache_child_terminate () {} +function apache_child_terminate() {} /** * Get a list of loaded Apache modules @@ -16,7 +16,7 @@ function apache_child_terminate () {} * @return array of loaded Apache modules. */ #[Pure] -function apache_get_modules () {} +function apache_get_modules() {} /** * Fetch the Apache version @@ -24,7 +24,7 @@ function apache_get_modules () {} * @return string|false the Apache version on success or FALSE on failure. */ #[Pure] -function apache_get_version () {} +function apache_get_version() {} /** * Get an Apache subprocess_env variable @@ -40,7 +40,7 @@ function apache_get_version () {} * @return string|false The value of the Apache environment variable on success, or FALSE on failure. */ #[Pure] -function apache_getenv ( $variable, $walk_to_top = false ) {} +function apache_getenv($variable, $walk_to_top = false) {} /** * Perform a partial request for the specified URI and return all info about it @@ -52,7 +52,7 @@ function apache_getenv ( $variable, $walk_to_top = false ) {} *

    * @return object of related URI information. */ -function apache_lookup_uri ( $filename ) {} +function apache_lookup_uri($filename) {} /** * Get and set apache request notes @@ -67,7 +67,7 @@ function apache_lookup_uri ( $filename ) {} *

    * @return string|false If called with one argument, it returns the current value of note note_name. If called with two arguments, it sets the value of note note_name to note_value and returns the previous value of note note_name. If the note cannot be retrieved, FALSE is returned. */ -function apache_note ( $note_name, $note_value = '' ) {} +function apache_note($note_name, $note_value = '') {} /** * Reset the Apache write timer @@ -76,14 +76,14 @@ function apache_note ( $note_name, $note_value = '' ) {} * @link https://php.net/manual/en/function.apache-reset-timeout.php * @return bool TRUE on success or FALSE on failure. */ -function apache_reset_timeout () {} +function apache_reset_timeout() {} /** * Fetch all HTTP response headers * @link https://php.net/manual/en/function.apache-response-headers.php * @return array|false An array of all Apache response headers on success or FALSE on failure. */ -function apache_response_headers () {} +function apache_response_headers() {} /** * Sets the value of the Apache environment variable specified by variable. @@ -100,7 +100,7 @@ function apache_response_headers () {} *

    * @return bool TRUE on success or FALSE on failure. */ -function apache_setenv ( $variable, $value, $walk_to_top = false ) {} +function apache_setenv($variable, $value, $walk_to_top = false) {} /** * Perform an Apache sub-request @@ -113,4 +113,4 @@ function apache_setenv ( $variable, $value, $walk_to_top = false ) {} *

    * @return bool Performs the virtual command on success, or returns FALSE on failure. */ -function virtual ( $filename ) {} +function virtual($filename) {} diff --git a/apcu/apcu.php b/apcu/apcu.php index cb0dc158d..fab1eb44c 100644 --- a/apcu/apcu.php +++ b/apcu/apcu.php @@ -25,7 +25,7 @@ * of cache entries. This is useful when trying to optimize calls for statistics gathering. * @return array|false Array of cached data (and meta-data) or FALSE on failure. */ -function apc_cache_info($type = '', $limited = false){} +function apc_cache_info($type = '', $limited = false) {} /** * Clears the APC cache @@ -34,7 +34,7 @@ function apc_cache_info($type = '', $limited = false){} * otherwise, the system cache (cached files) will be cleared. * @return bool Returns TRUE on success or FALSE on failure. */ -function apc_clear_cache($cache_type = ''){} +function apc_clear_cache($cache_type = '') {} /** * Retrieves APC's Shared Memory Allocation information @@ -43,7 +43,7 @@ function apc_clear_cache($cache_type = ''){} * return a detailed information about each segment. * @return array|false Array of Shared Memory Allocation data; FALSE on failure. */ -function apc_sma_info($limited = false){} +function apc_sma_info($limited = false) {} /** * Cache a variable in the data store @@ -58,7 +58,7 @@ function apc_sma_info($limited = false){} * or otherwise fails to exist in the cache (clear, restart, etc.). * @return bool|array Returns TRUE on success or FALSE on failure | array with error keys. */ -function apc_store($key, $var, $ttl = 0){} +function apc_store($key, $var, $ttl = 0) {} /** * Fetch a stored variable from the cache @@ -68,7 +68,7 @@ function apc_store($key, $var, $ttl = 0){} * @param bool|null &$success Set to TRUE in success and FALSE in failure. * @return mixed|false The stored variable or array of variables on success; FALSE on failure. */ -function apc_fetch($key, &$success = null){} +function apc_fetch($key, &$success = null) {} /** * Removes a stored variable from the cache @@ -76,7 +76,7 @@ function apc_fetch($key, &$success = null){} * @param string|string[]|APCIterator $key The key used to store the value (with apc_store()). * @return bool|string[] Returns TRUE on success or FALSE on failure. For array of keys returns list of failed keys. */ -function apc_delete($key){} +function apc_delete($key) {} /** * Defines a set of constants for retrieval and mass-definition @@ -96,7 +96,7 @@ function apc_delete($key){} * the constants will be declared as case-insensitive symbols. * @return bool Returns TRUE on success or FALSE on failure. */ -function apc_define_constants($key, array $constants, $case_sensitive = true){} +function apc_define_constants($key, array $constants, $case_sensitive = true) {} /** * Caches a variable in the data store, only if it's not already stored @@ -112,7 +112,7 @@ function apc_define_constants($key, array $constants, $case_sensitive = true){} * or otherwise fails to exist in the cache (clear, restart, etc.). * @return bool */ -function apc_add($key, $var, $ttl = 0){} +function apc_add($key, $var, $ttl = 0) {} /** * Stores a file in the bytecode cache, bypassing all filters @@ -122,7 +122,7 @@ function apc_add($key, $var, $ttl = 0){} * @param bool $atomic * @return bool Returns TRUE on success or FALSE on failure. */ -function apc_compile_file($filename, $atomic = true){} +function apc_compile_file($filename, $atomic = true) {} /** * Loads a set of constants from the cache @@ -134,7 +134,7 @@ function apc_compile_file($filename, $atomic = true){} * the constants will be declared as case-insensitive symbols. * @return bool Returns TRUE on success or FALSE on failure. */ -function apc_load_constants($key, $case_sensitive = true){} +function apc_load_constants($key, $case_sensitive = true) {} /** * Checks if APC key exists @@ -144,7 +144,7 @@ function apc_load_constants($key, $case_sensitive = true){} * Or if an array was passed to keys, then an array is returned that * contains all existing keys, or an empty array if none exist. */ -function apc_exists($keys){} +function apc_exists($keys) {} /** * Deletes the given files from the opcode cache @@ -156,7 +156,7 @@ function apc_exists($keys){} * @param string|string[]|APCIterator $keys * @return bool|string[] */ -function apc_delete_file($keys){} +function apc_delete_file($keys) {} /** * Increase a stored number @@ -166,7 +166,7 @@ function apc_delete_file($keys){} * @param bool|null &$success Optionally pass the success or fail boolean value to this referenced variable. * @return int|false Returns the current value of key's value on success, or FALSE on failure. */ -function apc_inc($key, $step = 1, &$success = null){} +function apc_inc($key, $step = 1, &$success = null) {} /** * Decrease a stored number @@ -176,7 +176,7 @@ function apc_inc($key, $step = 1, &$success = null){} * @param bool|null &$success Optionally pass the success or fail boolean value to this referenced variable. * @return int|false Returns the current value of key's value on success, or FALSE on failure. */ -function apc_dec($key, $step = 1, &$success = null){} +function apc_dec($key, $step = 1, &$success = null) {} /** * Updates an old value with a new value @@ -186,7 +186,7 @@ function apc_dec($key, $step = 1, &$success = null){} * @param int $new * @return bool */ -function apc_cas($key, $old, $new){} +function apc_cas($key, $old, $new) {} /** * Returns a binary dump of the given files and user variables from the APC cache @@ -198,7 +198,7 @@ function apc_cas($key, $old, $new){} * @param string[]|null $user_vars The user vars. Passing in NULL signals a dump of every entry, while passing in array() will dump nothing. * @return string|false|null Returns a binary dump of the given files and user variables from the APC cache, FALSE if APC is not enabled, or NULL if an unknown error is encountered. */ -function apc_bin_dump($files = null, $user_vars = null){} +function apc_bin_dump($files = null, $user_vars = null) {} /** * Output a binary dump of the given files and user variables from the APC cache to the named file @@ -213,7 +213,7 @@ function apc_bin_dump($files = null, $user_vars = null){} * the file dump can't be completed (e.g., the hard drive is out of disk space), * or an unknown error was encountered. */ -function apc_bin_dumpfile($files, $user_vars, $filename, $flags = 0, $context = null){} +function apc_bin_dumpfile($files, $user_vars, $filename, $flags = 0, $context = null) {} /** * Load the given binary dump into the APC file/user cache @@ -223,7 +223,7 @@ function apc_bin_dumpfile($files, $user_vars, $filename, $flags = 0, $context = * @return bool Returns TRUE if the binary dump data was loaded with success, otherwise FALSE is returned. * FALSE is returned if APC is not enabled, or if the data is not a valid APC binary dump (e.g., unexpected size). */ -function apc_bin_load($data, $flags = 0){} +function apc_bin_load($data, $flags = 0) {} /** * Load the given binary dump from the named file into the APC file/user cache @@ -235,7 +235,7 @@ function apc_bin_load($data, $flags = 0){} * is not enabled, filename is an invalid file name or empty, filename can't be opened, * the file dump can't be completed, or if the data is not a valid APC binary dump (e.g., unexpected size). */ -function apc_bin_loadfile($filename, $context = null, $flags = 0){} +function apc_bin_loadfile($filename, $context = null, $flags = 0) {} /** * The APCIterator class @@ -261,62 +261,62 @@ class APCIterator implements Iterator * @param int $chunk_size The chunk size. Must be a value greater than 0. The default value is 100. * @param int $list The type to list. Either pass in APC_LIST_ACTIVE or APC_LIST_INACTIVE. */ - public function __construct($cache, $search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE){} + public function __construct($cache, $search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) {} /** * Rewinds back the iterator to the first element * @link https://php.net/manual/en/apciterator.rewind.php */ - public function rewind(){} + public function rewind() {} /** * Checks if the current iterator position is valid * @link https://php.net/manual/en/apciterator.valid.php * @return bool Returns TRUE if the current iterator position is valid, otherwise FALSE. */ - public function valid(){} + public function valid() {} /** * Gets the current item from the APCIterator stack * @link https://php.net/manual/en/apciterator.current.php * @return mixed|false Returns the current item on success, or FALSE if no more items or exist, or on failure. */ - public function current(){} + public function current() {} /** * Gets the current iterator key * @link https://php.net/manual/en/apciterator.key.php * @return string|int|false Returns the key on success, or FALSE upon failure. */ - public function key(){} + public function key() {} /** * Moves the iterator pointer to the next element * @link https://php.net/manual/en/apciterator.next.php * @return bool Returns TRUE on success or FALSE on failure. */ - public function next(){} + public function next() {} /** * Gets the total number of cache hits * @link https://php.net/manual/en/apciterator.gettotalhits.php * @return int|false The number of hits on success, or FALSE on failure. */ - public function getTotalHits(){} + public function getTotalHits() {} /** * Gets the total cache size * @link https://php.net/manual/en/apciterator.gettotalsize.php * @return int|bool The total cache size. */ - public function getTotalSize(){} + public function getTotalSize() {} /** * Get the total count * @link https://php.net/manual/en/apciterator.gettotalcount.php * @return int|bool The total count. */ - public function getTotalCount(){} + public function getTotalCount() {} } /** @@ -400,14 +400,13 @@ public function getTotalCount(){} */ define('APC_ITER_ALL', -1); - /** * Clears the APCu cache * @link https://php.net/manual/en/function.apcu-clear-cache.php * * @return bool Returns TRUE always. */ -function apcu_clear_cache(){} +function apcu_clear_cache() {} /** * Retrieves APCu Shared Memory Allocation information @@ -417,7 +416,7 @@ function apcu_clear_cache(){} * * @return array|false Array of Shared Memory Allocation data; FALSE on failure. */ -function apcu_sma_info($limited = false){} +function apcu_sma_info($limited = false) {} /** * Cache a variable in the data store @@ -432,7 +431,7 @@ function apcu_sma_info($limited = false){} * or otherwise fails to exist in the cache (clear, restart, etc.). * @return bool|array Returns TRUE on success or FALSE on failure | array with error keys. */ -function apcu_store($key, $var, $ttl = 0){} +function apcu_store($key, $var, $ttl = 0) {} /** * Fetch a stored variable from the cache @@ -442,7 +441,7 @@ function apcu_store($key, $var, $ttl = 0){} * @param bool|null &$success Set to TRUE in success and FALSE in failure. * @return mixed|false The stored variable or array of variables on success; FALSE on failure. */ -function apcu_fetch($key, &$success = null){} +function apcu_fetch($key, &$success = null) {} /** * Removes a stored variable from the cache @@ -450,7 +449,7 @@ function apcu_fetch($key, &$success = null){} * @param string|string[]|APCUIterator $key The key used to store the value (with apcu_store()). * @return bool|string[] Returns TRUE on success or FALSE on failure. For array of keys returns list of failed keys. */ -function apcu_delete($key){} +function apcu_delete($key) {} /** * Caches a variable in the data store, only if it's not already stored @@ -468,7 +467,7 @@ function apcu_delete($key){} * @return bool|array Returns TRUE if something has effectively been added into the cache, FALSE otherwise. * Second syntax returns array with error keys. */ -function apcu_add($key, $var, $ttl = 0){} +function apcu_add($key, $var, $ttl = 0) {} /** * Checks if APCu key exists @@ -478,7 +477,7 @@ function apcu_add($key, $var, $ttl = 0){} * Or if an array was passed to keys, then an array is returned that * contains all existing keys, or an empty array if none exist. */ -function apcu_exists($keys){} +function apcu_exists($keys) {} /** * Increase a stored number @@ -492,7 +491,7 @@ function apcu_exists($keys){} * @param bool|null &$success Optionally pass the success or fail boolean value to this referenced variable. * @return int|false Returns the current value of key's value on success, or FALSE on failure. */ -function apcu_inc($key, $step = 1, &$success = null, $ttl = 0){} +function apcu_inc($key, $step = 1, &$success = null, $ttl = 0) {} /** * Decrease a stored number @@ -506,7 +505,7 @@ function apcu_inc($key, $step = 1, &$success = null, $ttl = 0){} * @param bool|null &$success Optionally pass the success or fail boolean value to this referenced variable. * @return int|false Returns the current value of key's value on success, or FALSE on failure. */ -function apcu_dec($key, $step = 1, &$success = null, $ttl = 0){} +function apcu_dec($key, $step = 1, &$success = null, $ttl = 0) {} /** * Updates an old value with a new value @@ -520,7 +519,7 @@ function apcu_dec($key, $step = 1, &$success = null, $ttl = 0){} * @param int $new The new value to update to. * @return bool Returns TRUE on success or FALSE on failure. */ -function apcu_cas($key, $old, $new){} +function apcu_cas($key, $old, $new) {} /** * Atomically fetch or generate a cache entry @@ -550,7 +549,7 @@ function apcu_cas($key, $old, $new){} * @return mixed Returns the cached value * @since APCu 5.1.0 */ -function apcu_entry($key, callable $generator, $ttl = 0){} +function apcu_entry($key, callable $generator, $ttl = 0) {} /** * Retrieves cached information from APCu's data store @@ -561,7 +560,7 @@ function apcu_entry($key, callable $generator, $ttl = 0){} * This is useful when trying to optimize calls for statistics gathering. * @return array|false Array of cached data (and meta-data) or FALSE on failure */ -function apcu_cache_info($limited = false){} +function apcu_cache_info($limited = false) {} /** * Whether APCu is usable in the current environment @@ -570,13 +569,13 @@ function apcu_cache_info($limited = false){} * * @return bool */ -function apcu_enabled(){} +function apcu_enabled() {} /** * @param string $key * @return array|null */ -function apcu_key_info($key){} +function apcu_key_info($key) {} /** * The APCUIterator class @@ -592,70 +591,70 @@ function apcu_key_info($key){} */ class APCUIterator implements Iterator { - /** - * Constructs an APCUIterator iterator object - * @link https://php.net/manual/en/apcuiterator.construct.php - * @param string|string[]|null $search A PCRE regular expression that matches against APCu key names, - * either as a string for a single regular expression, or as an array of regular expressions. - * Or, optionally pass in NULL to skip the search. - * @param int $format The desired format, as configured with one ore more of the APC_ITER_* constants. - * @param int $chunk_size The chunk size. Must be a value greater than 0. The default value is 100. - * @param int $list The type to list. Either pass in APC_LIST_ACTIVE or APC_LIST_DELETED. - */ - public function __construct($search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE){} - - /** - * Rewinds back the iterator to the first element - * @link https://php.net/manual/en/apcuiterator.rewind.php - */ - public function rewind(){} - - /** - * Checks if the current iterator position is valid - * @link https://php.net/manual/en/apcuiterator.valid.php - * @return bool Returns TRUE if the current iterator position is valid, otherwise FALSE. - */ - public function valid(){} - - /** - * Gets the current item from the APCUIterator stack - * @link https://php.net/manual/en/apcuiterator.current.php - * @return mixed|false Returns the current item on success, or FALSE if no more items or exist, or on failure. - */ - public function current(){} - - /** - * Gets the current iterator key - * @link https://php.net/manual/en/apcuiterator.key.php - * @return string|int|false Returns the key on success, or FALSE upon failure. - */ - public function key(){} - - /** - * Moves the iterator pointer to the next element - * @link https://php.net/manual/en/apcuiterator.next.php - * @return bool Returns TRUE on success or FALSE on failure. - */ - public function next(){} - - /** - * Gets the total number of cache hits - * @link https://php.net/manual/en/apcuiterator.gettotalhits.php - * @return int|false The number of hits on success, or FALSE on failure. - */ - public function getTotalHits(){} - - /** - * Gets the total cache size - * @link https://php.net/manual/en/apcuiterator.gettotalsize.php - * @return int|false The total cache size. - */ - public function getTotalSize(){} - - /** - * Get the total count - * @link https://php.net/manual/en/apcuiterator.gettotalcount.php - * @return int|false The total count. - */ - public function getTotalCount(){} + /** + * Constructs an APCUIterator iterator object + * @link https://php.net/manual/en/apcuiterator.construct.php + * @param string|string[]|null $search A PCRE regular expression that matches against APCu key names, + * either as a string for a single regular expression, or as an array of regular expressions. + * Or, optionally pass in NULL to skip the search. + * @param int $format The desired format, as configured with one ore more of the APC_ITER_* constants. + * @param int $chunk_size The chunk size. Must be a value greater than 0. The default value is 100. + * @param int $list The type to list. Either pass in APC_LIST_ACTIVE or APC_LIST_DELETED. + */ + public function __construct($search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) {} + + /** + * Rewinds back the iterator to the first element + * @link https://php.net/manual/en/apcuiterator.rewind.php + */ + public function rewind() {} + + /** + * Checks if the current iterator position is valid + * @link https://php.net/manual/en/apcuiterator.valid.php + * @return bool Returns TRUE if the current iterator position is valid, otherwise FALSE. + */ + public function valid() {} + + /** + * Gets the current item from the APCUIterator stack + * @link https://php.net/manual/en/apcuiterator.current.php + * @return mixed|false Returns the current item on success, or FALSE if no more items or exist, or on failure. + */ + public function current() {} + + /** + * Gets the current iterator key + * @link https://php.net/manual/en/apcuiterator.key.php + * @return string|int|false Returns the key on success, or FALSE upon failure. + */ + public function key() {} + + /** + * Moves the iterator pointer to the next element + * @link https://php.net/manual/en/apcuiterator.next.php + * @return bool Returns TRUE on success or FALSE on failure. + */ + public function next() {} + + /** + * Gets the total number of cache hits + * @link https://php.net/manual/en/apcuiterator.gettotalhits.php + * @return int|false The number of hits on success, or FALSE on failure. + */ + public function getTotalHits() {} + + /** + * Gets the total cache size + * @link https://php.net/manual/en/apcuiterator.gettotalsize.php + * @return int|false The total cache size. + */ + public function getTotalSize() {} + + /** + * Get the total count + * @link https://php.net/manual/en/apcuiterator.gettotalcount.php + * @return int|false The total count. + */ + public function getTotalCount() {} } diff --git a/ast/ast.php b/ast/ast.php index c5d5d77d7..e820fcf48 100644 --- a/ast/ast.php +++ b/ast/ast.php @@ -1,9 +1,9 @@ "string"], default: "?string")] -function bcsqrt (string $num, ?int $scale) -{} +function bcsqrt(string $num, ?int $scale) {} /** * Set default scale parameter for all bc math functions @@ -203,10 +194,9 @@ function bcsqrt (string $num, ?int $scale) * @param int $scale * @return int|bool */ -#[LanguageLevelTypeAware(['7.3'=>'int'], default: 'bool')] +#[LanguageLevelTypeAware(['7.3' => 'int'], default: 'bool')] #[PhpStormStubsElementAvailable(to: '7.4')] -function bcscale (int $scale) -{} +function bcscale(int $scale) {} /** * Set default scale parameter for all bc math functions @@ -215,8 +205,7 @@ function bcscale (int $scale) * @return int Returns the old scale when used as setter. Otherwise the current scale is returned. */ #[PhpStormStubsElementAvailable('8.0')] -function bcscale (?int $scale = null): int -{} +function bcscale(?int $scale = null): int {} /** * Compare two arbitrary precision numbers @@ -237,8 +226,7 @@ function bcscale (?int $scale = null): int * right_operand, -1 otherwise. */ #[Pure] -function bccomp (string $num1, string $num2, ?int $scale = 0): int -{} +function bccomp(string $num1, string $num2, ?int $scale = 0): int {} /** * Raise an arbitrary precision number to another, reduced by a specified modulus @@ -264,5 +252,4 @@ function bccomp (string $num1, string $num2, ?int $scale = 0): int */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string"], default: "?string")] -function bcpowmod (string $num, string $exponent, string $modulus, ?int $scale = 0) -{} +function bcpowmod(string $num, string $exponent, string $modulus, ?int $scale = 0) {} diff --git a/bz2/bz2.php b/bz2/bz2.php index dd6fbced2..557a7a54f 100644 --- a/bz2/bz2.php +++ b/bz2/bz2.php @@ -17,7 +17,7 @@ * it returns a pointer to the newly opened file. */ #[Pure] -function bzopen ($file, string $mode) {} +function bzopen($file, string $mode) {} /** * Binary safe bzip2 file read @@ -33,7 +33,7 @@ function bzopen ($file, string $mode) {} *

    * @return string|false the uncompressed data, or FALSE on error. */ -function bzread ($bz, int $length = 1024): string|false {} +function bzread($bz, int $length = 1024): string|false {} /** * Binary safe bzip2 file write @@ -52,8 +52,7 @@ function bzread ($bz, int $length = 1024): string|false {} *

    * @return int|false the number of bytes written, or FALSE on error. */ -function bzwrite ($bz, string $data, ?int $length): int|false -{} +function bzwrite($bz, string $data, ?int $length): int|false {} /** * Force a write of all buffered data @@ -64,7 +63,7 @@ function bzwrite ($bz, string $data, ?int $length): int|false *

    * @return bool TRUE on success or FALSE on failure. */ -function bzflush ($bz): bool {} +function bzflush($bz): bool {} /** * Close a bzip2 file @@ -75,8 +74,7 @@ function bzflush ($bz): bool {} *

    * @return bool TRUE on success or FALSE on failure. */ -function bzclose ($bz): bool -{} +function bzclose($bz): bool {} /** * Returns a bzip2 error number @@ -88,8 +86,7 @@ function bzclose ($bz): bool * @return int the error number as an integer. */ #[Pure] -function bzerrno ($bz): int -{} +function bzerrno($bz): int {} /** * Returns a bzip2 error string @@ -101,8 +98,7 @@ function bzerrno ($bz): int * @return string a string containing the error message. */ #[Pure] -function bzerrstr ($bz): string -{} +function bzerrstr($bz): string {} /** * Returns the bzip2 error number and error string in an array @@ -116,8 +112,7 @@ function bzerrstr ($bz): string * errstr entry. */ #[Pure] -function bzerror ($bz): array -{} +function bzerror($bz): array {} /** * Compress a string into bzip2 encoded data @@ -142,7 +137,7 @@ function bzerror ($bz): array * @return string|int The compressed string, or an error number if an error occurred. */ #[Pure] -function bzcompress (string $data, int $block_size = 4, int $work_factor = 0): string|int {} +function bzcompress(string $data, int $block_size = 4, int $work_factor = 0): string|int {} /** * Decompresses bzip2 encoded data @@ -162,4 +157,4 @@ function bzcompress (string $data, int $block_size = 4, int $work_factor = 0): s * @return string|int|false The decompressed string, or an error number if an error occurred. */ #[Pure] -function bzdecompress (string $data, bool $use_less_memory = false): string|int|false {} +function bzdecompress(string $data, bool $use_less_memory = false): string|int|false {} diff --git a/calendar/calendar.php b/calendar/calendar.php index 8ab1d117c..75b7ce731 100644 --- a/calendar/calendar.php +++ b/calendar/calendar.php @@ -10,8 +10,7 @@ *

    * @return string The gregorian date as a string in the form "month/day/year" */ -function jdtogregorian (int $julian_day): string -{} +function jdtogregorian(int $julian_day): string {} /** * Converts a Gregorian date to Julian Day Count @@ -27,8 +26,7 @@ function jdtogregorian (int $julian_day): string *

    * @return int The julian day for the given gregorian date as an integer. */ -function gregoriantojd (int $month, int $day, int $year): int -{} +function gregoriantojd(int $month, int $day, int $year): int {} /** * Converts a Julian Day Count to a Julian Calendar Date @@ -38,8 +36,7 @@ function gregoriantojd (int $month, int $day, int $year): int *

    * @return string The julian date as a string in the form "month/day/year" */ -function jdtojulian (int $julian_day): string -{} +function jdtojulian(int $julian_day): string {} /** * Converts a Julian Calendar date to Julian Day Count @@ -55,8 +52,7 @@ function jdtojulian (int $julian_day): string *

    * @return int The julian day for the given julian date as an integer. */ -function juliantojd (int $month, int $day, int $year): int -{} +function juliantojd(int $month, int $day, int $year): int {} /** * Converts a Julian day count to a Jewish calendar date @@ -75,8 +71,7 @@ function juliantojd (int $month, int $day, int $year): int *

    * @return string The jewish date as a string in the form "month/day/year" */ -function jdtojewish (int $julian_day, bool $hebrew = false, int $flags = 0): string -{} +function jdtojewish(int $julian_day, bool $hebrew = false, int $flags = 0): string {} /** * Converts a date in the Jewish Calendar to Julian Day Count @@ -92,8 +87,7 @@ function jdtojewish (int $julian_day, bool $hebrew = false, int $flags = 0): str *

    * @return int The julian day for the given jewish date as an integer. */ -function jewishtojd (int $month, int $day, int $year): int -{} +function jewishtojd(int $month, int $day, int $year): int {} /** * Converts a Julian Day Count to the French Republican Calendar @@ -101,8 +95,7 @@ function jewishtojd (int $month, int $day, int $year): int * @param int $julian_day * @return string The french revolution date as a string in the form "month/day/year" */ -function jdtofrench (int $julian_day): string -{} +function jdtofrench(int $julian_day): string {} /** * Converts a date from the French Republican Calendar to a Julian Day Count @@ -118,8 +111,7 @@ function jdtofrench (int $julian_day): string *

    * @return int The julian day for the given french revolution date as an integer. */ -function frenchtojd (int $month, int $day, int $year): int -{} +function frenchtojd(int $month, int $day, int $year): int {} /** * Returns the day of the week @@ -156,8 +148,7 @@ function frenchtojd (int $month, int $day, int $year): int * * @return string|int The gregorian weekday as either an integer or string. */ -function jddayofweek (int $julian_day, int $mode = CAL_DOW_DAYNO): string|int -{} +function jddayofweek(int $julian_day, int $mode = CAL_DOW_DAYNO): string|int {} /** * Returns a month name @@ -166,8 +157,7 @@ function jddayofweek (int $julian_day, int $mode = CAL_DOW_DAYNO): string|int * @param int $mode * @return string The month name for the given Julian Day and calendar. */ -function jdmonthname (int $julian_day, int $mode): string -{} +function jdmonthname(int $julian_day, int $mode): string {} /** * Get Unix timestamp for midnight on Easter of a given year @@ -178,8 +168,7 @@ function jdmonthname (int $julian_day, int $mode): string * @param int $mode [optional] Allows Easter dates to be calculated based on the Julian calendar when set to CAL_EASTER_ALWAYS_JULIAN * @return int The easter date as a unix timestamp. */ -function easter_date (?int $year, int $mode = CAL_EASTER_DEFAULT): int -{} +function easter_date(?int $year, int $mode = CAL_EASTER_DEFAULT): int {} /** * Get number of days after March 21 on which Easter falls for a given year @@ -196,8 +185,7 @@ function easter_date (?int $year, int $mode = CAL_EASTER_DEFAULT): int * @return int The number of days after March 21st that the Easter Sunday * is in the given year. */ -function easter_days (?int $year, int $mode = CAL_EASTER_DEFAULT): int -{} +function easter_days(?int $year, int $mode = CAL_EASTER_DEFAULT): int {} /** * Convert Unix timestamp to Julian Day @@ -207,8 +195,7 @@ function easter_days (?int $year, int $mode = CAL_EASTER_DEFAULT): int *

    * @return int|false A julian day number as integer. */ -function unixtojd (?int $timestamp = 0): int|false -{} +function unixtojd(?int $timestamp = 0): int|false {} /** * Convert Julian Day to Unix timestamp @@ -218,8 +205,7 @@ function unixtojd (?int $timestamp = 0): int|false *

    * @return int The unix timestamp for the start of the given julian day. */ -function jdtounix (int $julian_day): int -{} +function jdtounix(int $julian_day): int {} /** * Converts from a supported calendar to Julian Day Count @@ -245,8 +231,7 @@ function jdtounix (int $julian_day): int *

    * @return int A Julian Day number. */ -function cal_to_jd (int $calendar, int $month, int $day, int $year): int -{} +function cal_to_jd(int $calendar, int $month, int $day, int $year): int {} /** * Converts from Julian Day Count to a supported calendar @@ -261,8 +246,7 @@ function cal_to_jd (int $calendar, int $month, int $day, int $year): int * day of week, abbreviated and full names of weekday and month and the * date in string form "month/day/year". */ -function cal_from_jd (int $julian_day, int $calendar): array -{} +function cal_from_jd(int $julian_day, int $calendar): array {} /** * Return the number of days in a month for a given year and calendar @@ -278,8 +262,7 @@ function cal_from_jd (int $julian_day, int $calendar): array *

    * @return int The length in days of the selected month in the given calendar */ -function cal_days_in_month (int $calendar, int $month, int $year): int -{} +function cal_days_in_month(int $calendar, int $month, int $year): int {} /** * Returns information about a particular calendar @@ -290,29 +273,28 @@ function cal_days_in_month (int $calendar, int $month, int $year): int *

    * @return array */ -function cal_info (int $calendar = -1): array -{} +function cal_info(int $calendar = -1): array {} -define ('CAL_GREGORIAN', 0); -define ('CAL_JULIAN', 1); -define ('CAL_JEWISH', 2); -define ('CAL_FRENCH', 3); -define ('CAL_NUM_CALS', 4); -define ('CAL_DOW_DAYNO', 0); -define ('CAL_DOW_SHORT', 2); -define ('CAL_DOW_LONG', 1); -define ('CAL_MONTH_GREGORIAN_SHORT', 0); -define ('CAL_MONTH_GREGORIAN_LONG', 1); -define ('CAL_MONTH_JULIAN_SHORT', 2); -define ('CAL_MONTH_JULIAN_LONG', 3); -define ('CAL_MONTH_JEWISH', 4); -define ('CAL_MONTH_FRENCH', 5); -define ('CAL_EASTER_DEFAULT', 0); -define ('CAL_EASTER_ROMAN', 1); -define ('CAL_EASTER_ALWAYS_GREGORIAN', 2); -define ('CAL_EASTER_ALWAYS_JULIAN', 3); -define ('CAL_JEWISH_ADD_ALAFIM_GERESH', 2); -define ('CAL_JEWISH_ADD_ALAFIM', 4); -define ('CAL_JEWISH_ADD_GERESHAYIM', 8); +define('CAL_GREGORIAN', 0); +define('CAL_JULIAN', 1); +define('CAL_JEWISH', 2); +define('CAL_FRENCH', 3); +define('CAL_NUM_CALS', 4); +define('CAL_DOW_DAYNO', 0); +define('CAL_DOW_SHORT', 2); +define('CAL_DOW_LONG', 1); +define('CAL_MONTH_GREGORIAN_SHORT', 0); +define('CAL_MONTH_GREGORIAN_LONG', 1); +define('CAL_MONTH_JULIAN_SHORT', 2); +define('CAL_MONTH_JULIAN_LONG', 3); +define('CAL_MONTH_JEWISH', 4); +define('CAL_MONTH_FRENCH', 5); +define('CAL_EASTER_DEFAULT', 0); +define('CAL_EASTER_ROMAN', 1); +define('CAL_EASTER_ALWAYS_GREGORIAN', 2); +define('CAL_EASTER_ALWAYS_JULIAN', 3); +define('CAL_JEWISH_ADD_ALAFIM_GERESH', 2); +define('CAL_JEWISH_ADD_ALAFIM', 4); +define('CAL_JEWISH_ADD_GERESHAYIM', 8); // End of calendar v. diff --git a/cassandra/cassandra.php b/cassandra/cassandra.php index 1305adf0c..ae0702e8a 100644 --- a/cassandra/cassandra.php +++ b/cassandra/cassandra.php @@ -27,7 +27,6 @@ */ namespace { - /** * The main entry point to the PHP Driver for Apache Cassandra. * @@ -37,7 +36,6 @@ */ final class Cassandra { - /** * Consistency level ANY means the request is fulfilled as soon as the data * has been written on the Coordinator. Requests with this consistency level @@ -46,7 +44,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_ANY */ - const CONSISTENCY_ANY = 0; + public const CONSISTENCY_ANY = 0; /** * Consistency level ONE guarantees that data has been written to at least @@ -55,7 +53,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_ONE */ - const CONSISTENCY_ONE = 1; + public const CONSISTENCY_ONE = 1; /** * Consistency level TWO guarantees that data has been written to at least @@ -64,7 +62,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_TWO */ - const CONSISTENCY_TWO = 2; + public const CONSISTENCY_TWO = 2; /** * Consistency level THREE guarantees that data has been written to at least @@ -73,7 +71,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_THREE */ - const CONSISTENCY_THREE = 3; + public const CONSISTENCY_THREE = 3; /** * Consistency level QUORUM guarantees that data has been written to at least @@ -86,7 +84,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_QUORUM */ - const CONSISTENCY_QUORUM = 4; + public const CONSISTENCY_QUORUM = 4; /** * Consistency level ALL guarantees that data has been written to all @@ -95,7 +93,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_ALL */ - const CONSISTENCY_ALL = 5; + public const CONSISTENCY_ALL = 5; /** * Same as `CONSISTENCY_QUORUM`, but confined to the local data center. This @@ -104,7 +102,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_LOCAL_QUORUM */ - const CONSISTENCY_LOCAL_QUORUM = 6; + public const CONSISTENCY_LOCAL_QUORUM = 6; /** * Consistency level EACH_QUORUM guarantees that data has been written to at @@ -114,7 +112,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_EACH_QUORUM */ - const CONSISTENCY_EACH_QUORUM = 7; + public const CONSISTENCY_EACH_QUORUM = 7; /** * This is a serial consistency level, it is used in conditional updates, @@ -128,7 +126,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_SERIAL */ - const CONSISTENCY_SERIAL = 8; + public const CONSISTENCY_SERIAL = 8; /** * Same as `CONSISTENCY_SERIAL`, but confined to the local data center. This @@ -137,7 +135,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_LOCAL_SERIAL */ - const CONSISTENCY_LOCAL_SERIAL = 9; + public const CONSISTENCY_LOCAL_SERIAL = 9; /** * Same as `CONSISTENCY_ONE`, but confined to the local data center. This @@ -146,7 +144,7 @@ final class Cassandra * @see \Cassandra\Session::execute() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CONSISTENCY_LOCAL_ONE */ - const CONSISTENCY_LOCAL_ONE = 10; + public const CONSISTENCY_LOCAL_ONE = 10; /** * Perform no verification of nodes when using SSL encryption. @@ -154,7 +152,7 @@ final class Cassandra * @see \Cassandra\SSLOptions\Builder::withVerifyFlags() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-VERIFY_NONE */ - const VERIFY_NONE = 0; + public const VERIFY_NONE = 0; /** * Verify presence and validity of SSL certificates. @@ -162,7 +160,7 @@ final class Cassandra * @see \Cassandra\SSLOptions\Builder::withVerifyFlags() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-VERIFY_PEER_CERT */ - const VERIFY_PEER_CERT = 1; + public const VERIFY_PEER_CERT = 1; /** * Verify that the IP address matches the SSL certificate’s common name or @@ -172,67 +170,67 @@ final class Cassandra * @see \Cassandra\SSLOptions\Builder::withVerifyFlags() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-VERIFY_PEER_IDENTITY */ - const VERIFY_PEER_IDENTITY = 2; + public const VERIFY_PEER_IDENTITY = 2; /** * @see \Cassandra\BatchStatement::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-BATCH_LOGGED */ - const BATCH_LOGGED = 0; + public const BATCH_LOGGED = 0; /** * @see \Cassandra\BatchStatement::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-BATCH_UNLOGGED */ - const BATCH_UNLOGGED = 1; + public const BATCH_UNLOGGED = 1; /** * @see \Cassandra\BatchStatement::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-BATCH_COUNTER */ - const BATCH_COUNTER = 2; + public const BATCH_COUNTER = 2; /** * Used to disable logging. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-LOG_DISABLED */ - const LOG_DISABLED = 0; + public const LOG_DISABLED = 0; /** * Allow critical level logging. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-LOG_CRITICAL */ - const LOG_CRITICAL = 1; + public const LOG_CRITICAL = 1; /** * Allow error level logging. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-LOG_ERROR */ - const LOG_ERROR = 2; + public const LOG_ERROR = 2; /** * Allow warning level logging. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-LOG_WARN */ - const LOG_WARN = 3; + public const LOG_WARN = 3; /** * Allow info level logging. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-LOG_INFO */ - const LOG_INFO = 4; + public const LOG_INFO = 4; /** * Allow debug level logging. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-LOG_DEBUG */ - const LOG_DEBUG = 5; + public const LOG_DEBUG = 5; /** * Allow trace level logging. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-LOG_TRACE */ - const LOG_TRACE = 6; + public const LOG_TRACE = 6; /** * When using a map, collection or set of type text, all of its elements @@ -243,7 +241,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_TEXT */ - const TYPE_TEXT = 'text'; + public const TYPE_TEXT = 'text'; /** * When using a map, collection or set of type ascii, all of its elements @@ -254,7 +252,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_ASCII */ - const TYPE_ASCII = 'ascii'; + public const TYPE_ASCII = 'ascii'; /** * When using a map, collection or set of type varchar, all of its elements @@ -265,7 +263,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_VARCHAR */ - const TYPE_VARCHAR = 'varchar'; + public const TYPE_VARCHAR = 'varchar'; /** * When using a map, collection or set of type bigint, all of its elements @@ -276,7 +274,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_BIGINT */ - const TYPE_BIGINT = 'bigint'; + public const TYPE_BIGINT = 'bigint'; /** * When using a map, collection or set of type smallint, all of its elements @@ -287,7 +285,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_SMALLINT */ - const TYPE_SMALLINT = 'smallint'; + public const TYPE_SMALLINT = 'smallint'; /** * When using a map, collection or set of type tinyint, all of its elements @@ -298,7 +296,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_TINYINT */ - const TYPE_TINYINT = 'tinyint'; + public const TYPE_TINYINT = 'tinyint'; /** * When using a map, collection or set of type blob, all of its elements @@ -309,7 +307,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_BLOB */ - const TYPE_BLOB = 'blob'; + public const TYPE_BLOB = 'blob'; /** * When using a map, collection or set of type bool, all of its elements @@ -320,7 +318,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_BOOLEAN */ - const TYPE_BOOLEAN = 'boolean'; + public const TYPE_BOOLEAN = 'boolean'; /** * When using a map, collection or set of type counter, all of its elements @@ -331,7 +329,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_COUNTER */ - const TYPE_COUNTER = 'counter'; + public const TYPE_COUNTER = 'counter'; /** * When using a map, collection or set of type decimal, all of its elements @@ -342,7 +340,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_DECIMAL */ - const TYPE_DECIMAL = 'decimal'; + public const TYPE_DECIMAL = 'decimal'; /** * When using a map, collection or set of type double, all of its elements @@ -353,7 +351,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_DOUBLE */ - const TYPE_DOUBLE = 'double'; + public const TYPE_DOUBLE = 'double'; /** * When using a map, collection or set of type float, all of its elements @@ -364,7 +362,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_FLOAT */ - const TYPE_FLOAT = 'float'; + public const TYPE_FLOAT = 'float'; /** * When using a map, collection or set of type int, all of its elements @@ -375,7 +373,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_INT */ - const TYPE_INT = 'int'; + public const TYPE_INT = 'int'; /** * When using a map, collection or set of type timestamp, all of its elements @@ -386,7 +384,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_TIMESTAMP */ - const TYPE_TIMESTAMP = 'timestamp'; + public const TYPE_TIMESTAMP = 'timestamp'; /** * When using a map, collection or set of type uuid, all of its elements @@ -397,7 +395,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_UUID */ - const TYPE_UUID = 'uuid'; + public const TYPE_UUID = 'uuid'; /** * When using a map, collection or set of type varint, all of its elements @@ -408,7 +406,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_VARINT */ - const TYPE_VARINT = 'varint'; + public const TYPE_VARINT = 'varint'; /** * When using a map, collection or set of type timeuuid, all of its elements @@ -419,7 +417,7 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_TIMEUUID */ - const TYPE_TIMEUUID = 'timeuuid'; + public const TYPE_TIMEUUID = 'timeuuid'; /** * When using a map, collection or set of type inet, all of its elements @@ -430,19 +428,19 @@ final class Cassandra * @see Map::__construct() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-TYPE_INET */ - const TYPE_INET = 'inet'; + public const TYPE_INET = 'inet'; /** * The current version of the extension. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-VERSION */ - const VERSION = '1.3.2'; + public const VERSION = '1.3.2'; /** * The version of the cpp-driver the extension is compiled against. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#constant-CPP_DRIVER_VERSION */ - const CPP_DRIVER_VERSION = '2.13.0'; + public const CPP_DRIVER_VERSION = '2.13.0'; /** * Creates a new cluster builder for constructing a Cluster object. @@ -450,9 +448,7 @@ final class Cassandra * @return \Cassandra\Cluster\Builder A cluster builder object with default settings * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#method-cluster */ - public static function cluster() - { - } + public static function cluster() {} /** * Creates a new ssl builder for constructing a SSLOptions object. @@ -460,15 +456,10 @@ public static function cluster() * @return \Cassandra\SSLOptions\Builder A SSL options builder with default settings * @link https://docs.datastax.com/en/developer/php-driver/latest/api/class.Cassandra/#method-ssl */ - public static function ssl() - { - } - + public static function ssl() {} } - } - /** * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/ */ @@ -483,7 +474,6 @@ public static function ssl() */ interface Column { - /** * Returns the name of the column. * @@ -539,7 +529,6 @@ public function indexName(); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Column/#method-indexOptions */ public function indexOptions(); - } /** @@ -551,7 +540,6 @@ public function indexOptions(); */ interface Session { - /** * Execute a query. * @@ -654,7 +642,6 @@ public function metrics(); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Session/#method-schema */ public function schema(); - } /** @@ -663,7 +650,6 @@ public function schema(); */ interface Table { - /** * Returns the name of this table * @@ -873,26 +859,19 @@ public function clusteringKey(); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Table/#method-clusteringOrder */ public function clusteringOrder(); - } /** * Interface for retry policies. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.RetryPolicy/ */ - interface RetryPolicy - { - - } + interface RetryPolicy {} /** * Interface for timestamp generators. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.TimestampGenerator/ */ - interface TimestampGenerator - { - - } + interface TimestampGenerator {} /** * An interface implemented by all exceptions thrown by the PHP Driver. @@ -900,10 +879,7 @@ interface TimestampGenerator * `catch (Exception $e)`. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Exception/ */ - interface Exception - { - - } + interface Exception {} /** * A PHP representation of a function @@ -911,7 +887,6 @@ interface Exception */ interface Function_ { - /** * Returns the full name of the function * @@ -975,7 +950,6 @@ public function body(); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Function/#method-isCalledOnNullInput */ public function isCalledOnNullInput(); - } /** @@ -984,7 +958,6 @@ public function isCalledOnNullInput(); */ interface UuidInterface { - /** * Returns this uuid as string. * @@ -1000,7 +973,6 @@ public function uuid(); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.UuidInterface/#method-version */ public function version(); - } /** @@ -1009,7 +981,6 @@ public function version(); */ interface Index { - /** * Returns the name of the index * @@ -1067,7 +1038,6 @@ public function className(); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Index/#method-isCustom */ public function isCustom(); - } /** @@ -1076,7 +1046,6 @@ public function isCustom(); */ interface Cluster { - /** * Creates a new Session instance. * @@ -1096,7 +1065,6 @@ public function connect($keyspace); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Cluster/#method-connectAsync */ public function connectAsync($keyspace); - } /** @@ -1111,7 +1079,6 @@ public function connectAsync($keyspace); */ interface Numeric { - /** * @param \Cassandra\Numeric $num a number to add to this one * @@ -1181,7 +1148,6 @@ public function toInt(); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Numeric/#method-toDouble */ public function toDouble(); - } /** @@ -1195,7 +1161,6 @@ public function toDouble(); */ interface Future { - /** * Waits for a given future resource to resolve and throws errors if any. * @@ -1208,7 +1173,6 @@ interface Future * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Future/#method-get */ public function get($timeout); - } /** @@ -1217,7 +1181,6 @@ public function get($timeout); */ interface Keyspace { - /** * Returns keyspace name * @@ -1341,7 +1304,6 @@ public function aggregate($name, ...$params); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Keyspace/#method-aggregates */ public function aggregates(); - } /** @@ -1369,7 +1331,6 @@ public function aggregates(); */ interface Value { - /** * The type of represented by the value. * @@ -1377,7 +1338,6 @@ interface Value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Value/#method-type */ public function type(); - } /** @@ -1386,7 +1346,6 @@ public function type(); */ interface Aggregate { - /** * Returns the full name of the aggregate * @@ -1458,7 +1417,6 @@ public function stateType(); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Aggregate/#method-signature */ public function signature(); - } /** @@ -1469,10 +1427,7 @@ public function signature(); * @see \Cassandra\BatchStatement * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Statement/ */ - interface Statement - { - - } + interface Statement {} /** * A PHP representation of a schema @@ -1480,7 +1435,6 @@ interface Statement */ interface Schema { - /** * Returns a Keyspace instance by name. * @@ -1498,7 +1452,6 @@ public function keyspace($name); * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/interface.Schema/#method-keyspaces */ public function keyspaces(); - } /** @@ -1507,13 +1460,10 @@ public function keyspaces(); */ final class Rows implements \Iterator, \ArrayAccess { - /** * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-__construct */ - public function __construct() - { - } + public function __construct() {} /** * Returns the number of rows. @@ -1523,9 +1473,7 @@ public function __construct() * @see \Countable::count() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-count */ - public function count() - { - } + public function count() {} /** * Resets the rows iterator. @@ -1535,9 +1483,7 @@ public function count() * @see \Iterator::rewind() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-rewind */ - public function rewind() - { - } + public function rewind() {} /** * Returns current row. @@ -1547,9 +1493,7 @@ public function rewind() * @see \Iterator::current() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-current */ - public function current() - { - } + public function current() {} /** * Returns current index. @@ -1559,9 +1503,7 @@ public function current() * @see \Iterator::key() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-key */ - public function key() - { - } + public function key() {} /** * Advances the rows iterator by one. @@ -1571,9 +1513,7 @@ public function key() * @see \Iterator::next() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-next */ - public function next() - { - } + public function next() {} /** * Returns existence of more rows being available. @@ -1583,9 +1523,7 @@ public function next() * @see \Iterator::valid() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-valid */ - public function valid() - { - } + public function valid() {} /** * Returns existence of a given row. @@ -1597,9 +1535,7 @@ public function valid() * @see \ArrayAccess::offsetExists() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-offsetExists */ - public function offsetExists($offset) - { - } + public function offsetExists($offset) {} /** * Returns a row at given index. @@ -1611,9 +1547,7 @@ public function offsetExists($offset) * @see \ArrayAccess::offsetGet() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-offsetGet */ - public function offsetGet($offset) - { - } + public function offsetGet($offset) {} /** * Sets a row at given index. @@ -1628,9 +1562,7 @@ public function offsetGet($offset) * @see \ArrayAccess::offsetSet() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-offsetSet */ - public function offsetSet($offset, $value) - { - } + public function offsetSet($offset, $value) {} /** * Removes a row at given index. @@ -1644,9 +1576,7 @@ public function offsetSet($offset, $value) * @see \ArrayAccess::offsetUnset() * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-offsetUnset */ - public function offsetUnset($offset) - { - } + public function offsetUnset($offset) {} /** * Check for the last page when paging. @@ -1654,9 +1584,7 @@ public function offsetUnset($offset) * @return bool whether this is the last page or not * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-isLastPage */ - public function isLastPage() - { - } + public function isLastPage() {} /** * Get the next page of results. @@ -1666,9 +1594,7 @@ public function isLastPage() * @return \Cassandra\Rows|null loads and returns next result page * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-nextPage */ - public function nextPage($timeout) - { - } + public function nextPage($timeout) {} /** * Get the next page of results asynchronously. @@ -1676,9 +1602,7 @@ public function nextPage($timeout) * @return \Cassandra\Future returns future of the next result page * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-nextPageAsync */ - public function nextPageAsync() - { - } + public function nextPageAsync() {} /** * Returns the raw paging state token. @@ -1686,9 +1610,7 @@ public function nextPageAsync() * @return string * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-pagingStateToken */ - public function pagingStateToken() - { - } + public function pagingStateToken() {} /** * Get the first row. @@ -1696,10 +1618,7 @@ public function pagingStateToken() * @return array|null returns first row if any * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Rows/#method-first */ - public function first() - { - } - + public function first() {} } /** @@ -1710,7 +1629,6 @@ public function first() */ final class DefaultCluster implements Cluster { - /** * Creates a new Session instance. * @@ -1720,9 +1638,7 @@ final class DefaultCluster implements Cluster * @return \Cassandra\Session Session instance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultCluster/#method-connect */ - public function connect($keyspace, $timeout) - { - } + public function connect($keyspace, $timeout) {} /** * Creates a new Session instance. @@ -1732,10 +1648,7 @@ public function connect($keyspace, $timeout) * @return \Cassandra\Future A Future Session instance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultCluster/#method-connectAsync */ - public function connectAsync($keyspace) - { - } - + public function connectAsync($keyspace) {} } /** @@ -1744,16 +1657,13 @@ public function connectAsync($keyspace) */ final class DefaultFunction implements Function_ { - /** * Returns the full name of the function * * @return string Full name of the function including name and types * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultFunction/#method-name */ - public function name() - { - } + public function name() {} /** * Returns the simple name of the function @@ -1761,9 +1671,7 @@ public function name() * @return string Simple name of the function * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultFunction/#method-simpleName */ - public function simpleName() - { - } + public function simpleName() {} /** * Returns the arguments of the function @@ -1771,9 +1679,7 @@ public function simpleName() * @return array Arguments of the function * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultFunction/#method-arguments */ - public function arguments() - { - } + public function arguments() {} /** * Returns the return type of the function @@ -1781,9 +1687,7 @@ public function arguments() * @return \Cassandra\Type Return type of the function * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultFunction/#method-returnType */ - public function returnType() - { - } + public function returnType() {} /** * Returns the signature of the function @@ -1791,9 +1695,7 @@ public function returnType() * @return string Signature of the function (same as name()) * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultFunction/#method-signature */ - public function signature() - { - } + public function signature() {} /** * Returns the lanuage of the function @@ -1801,9 +1703,7 @@ public function signature() * @return string Language used by the function * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultFunction/#method-language */ - public function language() - { - } + public function language() {} /** * Returns the body of the function @@ -1811,9 +1711,7 @@ public function language() * @return string Body of the function * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultFunction/#method-body */ - public function body() - { - } + public function body() {} /** * Determines if a function is called when the value is null. @@ -1821,10 +1719,7 @@ public function body() * @return bool Returns whether the function is called when the input columns are null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultFunction/#method-isCalledOnNullInput */ - public function isCalledOnNullInput() - { - } - + public function isCalledOnNullInput() {} } /** @@ -1839,7 +1734,6 @@ public function isCalledOnNullInput() */ final class SimpleStatement implements Statement { - /** * Creates a new simple statement with the provided CQL. * @@ -1847,10 +1741,7 @@ final class SimpleStatement implements Statement * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.SimpleStatement/#method-__construct */ - public function __construct($cql) - { - } - + public function __construct($cql) {} } /** @@ -1859,7 +1750,6 @@ public function __construct($cql) */ final class Tuple implements Value, \Countable, \Iterator { - /** * Creates a new tuple with the given types. * @@ -1867,9 +1757,7 @@ final class Tuple implements Value, \Countable, \Iterator * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-__construct */ - public function __construct($types) - { - } + public function __construct($types) {} /** * The type of this tuple. @@ -1877,9 +1765,7 @@ public function __construct($types) * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-type */ - public function type() - { - } + public function type() {} /** * Array of values in this tuple. @@ -1887,9 +1773,7 @@ public function type() * @return array values * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-values */ - public function values() - { - } + public function values() {} /** * Sets the value at index in this tuple . @@ -1899,9 +1783,7 @@ public function values() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-set */ - public function set($value) - { - } + public function set($value) {} /** * Retrieves the value at a given index. @@ -1911,9 +1793,7 @@ public function set($value) * @return mixed A value or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-get */ - public function get($index) - { - } + public function get($index) {} /** * Total number of elements in this tuple @@ -1921,9 +1801,7 @@ public function get($index) * @return int count * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-count */ - public function count() - { - } + public function count() {} /** * Current element for iteration @@ -1931,9 +1809,7 @@ public function count() * @return mixed current element * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-current */ - public function current() - { - } + public function current() {} /** * Current key for iteration @@ -1941,9 +1817,7 @@ public function current() * @return int current key * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-key */ - public function key() - { - } + public function key() {} /** * Move internal iterator forward @@ -1951,9 +1825,7 @@ public function key() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-next */ - public function next() - { - } + public function next() {} /** * Check whether a current value exists @@ -1961,9 +1833,7 @@ public function next() * @return bool * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-valid */ - public function valid() - { - } + public function valid() {} /** * Rewind internal iterator @@ -1971,10 +1841,7 @@ public function valid() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tuple/#method-rewind */ - public function rewind() - { - } - + public function rewind() {} } /** @@ -1983,7 +1850,6 @@ public function rewind() */ final class Smallint implements Value, Numeric { - /** * Creates a new 16-bit signed integer. * @@ -1991,9 +1857,7 @@ final class Smallint implements Value, Numeric * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-__construct */ - public function __construct($value) - { - } + public function __construct($value) {} /** * Minimum possible Smallint value @@ -2001,9 +1865,7 @@ public function __construct($value) * @return \Cassandra\Smallint minimum value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-min */ - public static function min() - { - } + public static function min() {} /** * Maximum possible Smallint value @@ -2011,17 +1873,13 @@ public static function min() * @return \Cassandra\Smallint maximum value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-max */ - public static function max() - { - } + public static function max() {} /** * @return string * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * The type of this value (smallint). @@ -2029,9 +1887,7 @@ public function __toString() * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-type */ - public function type() - { - } + public function type() {} /** * Returns the integer value. @@ -2039,9 +1895,7 @@ public function type() * @return int integer value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-value */ - public function value() - { - } + public function value() {} /** * @param \Cassandra\Numeric $num a number to add to this one @@ -2049,9 +1903,7 @@ public function value() * @return \Cassandra\Numeric sum * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-add */ - public function add($num) - { - } + public function add($num) {} /** * @param \Cassandra\Numeric $num a number to subtract from this one @@ -2059,9 +1911,7 @@ public function add($num) * @return \Cassandra\Numeric difference * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-sub */ - public function sub($num) - { - } + public function sub($num) {} /** * @param \Cassandra\Numeric $num a number to multiply this one by @@ -2069,9 +1919,7 @@ public function sub($num) * @return \Cassandra\Numeric product * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-mul */ - public function mul($num) - { - } + public function mul($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -2079,9 +1927,7 @@ public function mul($num) * @return \Cassandra\Numeric quotient * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-div */ - public function div($num) - { - } + public function div($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -2089,50 +1935,37 @@ public function div($num) * @return \Cassandra\Numeric remainder * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-mod */ - public function mod($num) - { - } + public function mod($num) {} /** * @return \Cassandra\Numeric absolute value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-abs */ - public function abs() - { - } + public function abs() {} /** * @return \Cassandra\Numeric negative value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-neg */ - public function neg() - { - } + public function neg() {} /** * @return \Cassandra\Numeric square root * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-sqrt */ - public function sqrt() - { - } + public function sqrt() {} /** * @return int this number as int * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-toInt */ - public function toInt() - { - } + public function toInt() {} /** * @return float this number as float * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Smallint/#method-toDouble */ - public function toDouble() - { - } - + public function toDouble() {} } /** @@ -2144,7 +1977,6 @@ public function toDouble() */ final class FuturePreparedStatement implements Future { - /** * Waits for a given future resource to resolve and throws errors if any. * @@ -2156,10 +1988,7 @@ final class FuturePreparedStatement implements Future * @throws \Cassandra\Exception\InvalidArgumentException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.FuturePreparedStatement/#method-get */ - public function get($timeout) - { - } - + public function get($timeout) {} } /** @@ -2168,7 +1997,6 @@ public function get($timeout) */ final class DefaultSchema implements Schema { - /** * Returns a Keyspace instance by name. * @@ -2177,9 +2005,7 @@ final class DefaultSchema implements Schema * @return \Cassandra\Keyspace Keyspace instance or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSchema/#method-keyspace */ - public function keyspace($name) - { - } + public function keyspace($name) {} /** * Returns all keyspaces defined in the schema. @@ -2187,9 +2013,7 @@ public function keyspace($name) * @return array An array of `Keyspace` instances. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSchema/#method-keyspaces */ - public function keyspaces() - { - } + public function keyspaces() {} /** * Get the version of the schema snapshot @@ -2197,10 +2021,7 @@ public function keyspaces() * @return int Version of the schema. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSchema/#method-version */ - public function version() - { - } - + public function version() {} } /** @@ -2225,7 +2046,6 @@ public function version() */ final class BatchStatement implements Statement { - /** * Creates a new batch statement. * @@ -2233,9 +2053,7 @@ final class BatchStatement implements Statement * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.BatchStatement/#method-__construct */ - public function __construct($type) - { - } + public function __construct($type) {} /** * Adds a statement to this batch. @@ -2248,10 +2066,7 @@ public function __construct($type) * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.BatchStatement/#method-add */ - public function add($statement, $arguments) - { - } - + public function add($statement, $arguments) {} } /** @@ -2260,7 +2075,6 @@ public function add($statement, $arguments) */ final class Collection implements Value, \Countable, \Iterator { - /** * Creates a new collection of a given type. * @@ -2268,9 +2082,7 @@ final class Collection implements Value, \Countable, \Iterator * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-__construct */ - public function __construct($type) - { - } + public function __construct($type) {} /** * The type of this collection. @@ -2278,9 +2090,7 @@ public function __construct($type) * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-type */ - public function type() - { - } + public function type() {} /** * Array of values in this collection. @@ -2288,9 +2098,7 @@ public function type() * @return array values * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-values */ - public function values() - { - } + public function values() {} /** * Adds one or more values to this collection. @@ -2300,9 +2108,7 @@ public function values() * @return int total number of values in this collection * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-add */ - public function add(...$value) - { - } + public function add(...$value) {} /** * Retrieves the value at a given index. @@ -2312,9 +2118,7 @@ public function add(...$value) * @return mixed Value or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-get */ - public function get($index) - { - } + public function get($index) {} /** * Finds index of a value in this collection. @@ -2324,9 +2128,7 @@ public function get($index) * @return int Index or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-find */ - public function find($value) - { - } + public function find($value) {} /** * Total number of elements in this collection @@ -2334,9 +2136,7 @@ public function find($value) * @return int count * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-count */ - public function count() - { - } + public function count() {} /** * Current element for iteration @@ -2344,9 +2144,7 @@ public function count() * @return mixed current element * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-current */ - public function current() - { - } + public function current() {} /** * Current key for iteration @@ -2354,9 +2152,7 @@ public function current() * @return int current key * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-key */ - public function key() - { - } + public function key() {} /** * Move internal iterator forward @@ -2364,9 +2160,7 @@ public function key() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-next */ - public function next() - { - } + public function next() {} /** * Check whether a current value exists @@ -2374,9 +2168,7 @@ public function next() * @return bool * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-valid */ - public function valid() - { - } + public function valid() {} /** * Rewind internal iterator @@ -2384,9 +2176,7 @@ public function valid() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-rewind */ - public function rewind() - { - } + public function rewind() {} /** * Deletes the value at a given index @@ -2396,10 +2186,7 @@ public function rewind() * @return bool Whether the value at a given index is correctly removed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-remove */ - public function remove($index) - { - } - + public function remove($index) {} } /** @@ -2410,7 +2197,6 @@ public function remove($index) */ final class FutureRows implements Future { - /** * Waits for a given future resource to resolve and throws errors if any. * @@ -2422,10 +2208,7 @@ final class FutureRows implements Future * @throws \Cassandra\Exception\InvalidArgumentException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.FutureRows/#method-get */ - public function get($timeout) - { - } - + public function get($timeout) {} } /** @@ -2434,16 +2217,13 @@ public function get($timeout) */ final class DefaultMaterializedView extends MaterializedView { - /** * Returns the name of this view * * @return string Name of the view * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-name */ - public function name() - { - } + public function name() {} /** * Return a view's option by name @@ -2453,9 +2233,7 @@ public function name() * @return \Cassandra\Value Value of an option by name * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-option */ - public function option($name) - { - } + public function option($name) {} /** * Returns all the view's options @@ -2463,9 +2241,7 @@ public function option($name) * @return array A dictionary of string and Value pairs of the * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-options */ - public function options() - { - } + public function options() {} /** * Description of the view, if any @@ -2473,9 +2249,7 @@ public function options() * @return string Table description or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-comment */ - public function comment() - { - } + public function comment() {} /** * Returns read repair chance @@ -2483,9 +2257,7 @@ public function comment() * @return float Read repair chance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-readRepairChance */ - public function readRepairChance() - { - } + public function readRepairChance() {} /** * Returns local read repair chance @@ -2493,9 +2265,7 @@ public function readRepairChance() * @return float Local read repair chance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-localReadRepairChance */ - public function localReadRepairChance() - { - } + public function localReadRepairChance() {} /** * Returns GC grace seconds @@ -2503,9 +2273,7 @@ public function localReadRepairChance() * @return int GC grace seconds * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-gcGraceSeconds */ - public function gcGraceSeconds() - { - } + public function gcGraceSeconds() {} /** * Returns caching options @@ -2513,9 +2281,7 @@ public function gcGraceSeconds() * @return string Caching options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-caching */ - public function caching() - { - } + public function caching() {} /** * Returns bloom filter FP chance @@ -2523,9 +2289,7 @@ public function caching() * @return float Bloom filter FP chance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-bloomFilterFPChance */ - public function bloomFilterFPChance() - { - } + public function bloomFilterFPChance() {} /** * Returns memtable flush period in milliseconds @@ -2533,9 +2297,7 @@ public function bloomFilterFPChance() * @return int Memtable flush period in milliseconds * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-memtableFlushPeriodMs */ - public function memtableFlushPeriodMs() - { - } + public function memtableFlushPeriodMs() {} /** * Returns default TTL. @@ -2543,9 +2305,7 @@ public function memtableFlushPeriodMs() * @return int Default TTL. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-defaultTTL */ - public function defaultTTL() - { - } + public function defaultTTL() {} /** * Returns speculative retry. @@ -2553,9 +2313,7 @@ public function defaultTTL() * @return string Speculative retry. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-speculativeRetry */ - public function speculativeRetry() - { - } + public function speculativeRetry() {} /** * Returns index interval @@ -2563,9 +2321,7 @@ public function speculativeRetry() * @return int Index interval * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-indexInterval */ - public function indexInterval() - { - } + public function indexInterval() {} /** * Returns compaction strategy class name @@ -2573,9 +2329,7 @@ public function indexInterval() * @return string Compaction strategy class name * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-compactionStrategyClassName */ - public function compactionStrategyClassName() - { - } + public function compactionStrategyClassName() {} /** * Returns compaction strategy options @@ -2583,9 +2337,7 @@ public function compactionStrategyClassName() * @return \Cassandra\Map Compaction strategy options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-compactionStrategyOptions */ - public function compactionStrategyOptions() - { - } + public function compactionStrategyOptions() {} /** * Returns compression parameters @@ -2593,9 +2345,7 @@ public function compactionStrategyOptions() * @return \Cassandra\Map Compression parameters * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-compressionParameters */ - public function compressionParameters() - { - } + public function compressionParameters() {} /** * Returns whether or not the `populate_io_cache_on_flush` is true @@ -2603,9 +2353,7 @@ public function compressionParameters() * @return bool Value of `populate_io_cache_on_flush` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-populateIOCacheOnFlush */ - public function populateIOCacheOnFlush() - { - } + public function populateIOCacheOnFlush() {} /** * Returns whether or not the `replicate_on_write` is true @@ -2613,9 +2361,7 @@ public function populateIOCacheOnFlush() * @return bool Value of `replicate_on_write` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-replicateOnWrite */ - public function replicateOnWrite() - { - } + public function replicateOnWrite() {} /** * Returns the value of `max_index_interval` @@ -2623,9 +2369,7 @@ public function replicateOnWrite() * @return int Value of `max_index_interval` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-maxIndexInterval */ - public function maxIndexInterval() - { - } + public function maxIndexInterval() {} /** * Returns the value of `min_index_interval` @@ -2633,9 +2377,7 @@ public function maxIndexInterval() * @return int Value of `min_index_interval` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-minIndexInterval */ - public function minIndexInterval() - { - } + public function minIndexInterval() {} /** * Returns column by name @@ -2645,9 +2387,7 @@ public function minIndexInterval() * @return \Cassandra\Column Column instance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-column */ - public function column($name) - { - } + public function column($name) {} /** * Returns all columns in this view @@ -2655,9 +2395,7 @@ public function column($name) * @return array A list of Column instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-columns */ - public function columns() - { - } + public function columns() {} /** * Returns the partition key columns of the view @@ -2665,9 +2403,7 @@ public function columns() * @return array A list of of Column instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-partitionKey */ - public function partitionKey() - { - } + public function partitionKey() {} /** * Returns both the partition and clustering key columns of the view @@ -2675,9 +2411,7 @@ public function partitionKey() * @return array A list of of Column instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-primaryKey */ - public function primaryKey() - { - } + public function primaryKey() {} /** * Returns the clustering key columns of the view @@ -2685,17 +2419,13 @@ public function primaryKey() * @return array A list of of Column instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-clusteringKey */ - public function clusteringKey() - { - } + public function clusteringKey() {} /** * @return array A list of cluster column orders ('asc' and 'desc') * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-clusteringOrder */ - public function clusteringOrder() - { - } + public function clusteringOrder() {} /** * Returns the base table of the view @@ -2703,10 +2433,7 @@ public function clusteringOrder() * @return \Cassandra\Table Base table of the view * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultMaterializedView/#method-baseTable */ - public function baseTable() - { - } - + public function baseTable() {} } /** @@ -2715,10 +2442,7 @@ public function baseTable() * @see \Cassandra\SSLOptions\Builder * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.SSLOptions/ */ - final class SSLOptions - { - - } + final class SSLOptions {} /** * A PHP representation of the CQL `bigint` datatype @@ -2726,7 +2450,6 @@ final class SSLOptions */ final class Bigint implements Value, Numeric { - /** * Creates a new 64bit integer. * @@ -2734,9 +2457,7 @@ final class Bigint implements Value, Numeric * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-__construct */ - public function __construct($value) - { - } + public function __construct($value) {} /** * Minimum possible Bigint value @@ -2744,9 +2465,7 @@ public function __construct($value) * @return \Cassandra\Bigint minimum value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-min */ - public static function min() - { - } + public static function min() {} /** * Maximum possible Bigint value @@ -2754,9 +2473,7 @@ public static function min() * @return \Cassandra\Bigint maximum value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-max */ - public static function max() - { - } + public static function max() {} /** * Returns string representation of the integer value. @@ -2764,9 +2481,7 @@ public static function max() * @return string integer value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * The type of this bigint. @@ -2774,9 +2489,7 @@ public function __toString() * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-type */ - public function type() - { - } + public function type() {} /** * Returns the integer value. @@ -2784,9 +2497,7 @@ public function type() * @return string integer value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-value */ - public function value() - { - } + public function value() {} /** * @param \Cassandra\Numeric $num a number to add to this one @@ -2794,9 +2505,7 @@ public function value() * @return \Cassandra\Numeric sum * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-add */ - public function add($num) - { - } + public function add($num) {} /** * @param \Cassandra\Numeric $num a number to subtract from this one @@ -2804,9 +2513,7 @@ public function add($num) * @return \Cassandra\Numeric difference * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-sub */ - public function sub($num) - { - } + public function sub($num) {} /** * @param \Cassandra\Numeric $num a number to multiply this one by @@ -2814,9 +2521,7 @@ public function sub($num) * @return \Cassandra\Numeric product * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-mul */ - public function mul($num) - { - } + public function mul($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -2824,9 +2529,7 @@ public function mul($num) * @return \Cassandra\Numeric quotient * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-div */ - public function div($num) - { - } + public function div($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -2834,50 +2537,37 @@ public function div($num) * @return \Cassandra\Numeric remainder * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-mod */ - public function mod($num) - { - } + public function mod($num) {} /** * @return \Cassandra\Numeric absolute value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-abs */ - public function abs() - { - } + public function abs() {} /** * @return \Cassandra\Numeric negative value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-neg */ - public function neg() - { - } + public function neg() {} /** * @return \Cassandra\Numeric square root * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-sqrt */ - public function sqrt() - { - } + public function sqrt() {} /** * @return int this number as int * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-toInt */ - public function toInt() - { - } + public function toInt() {} /** * @return float this number as float * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Bigint/#method-toDouble */ - public function toDouble() - { - } - + public function toDouble() {} } /** @@ -2888,7 +2578,6 @@ public function toDouble() */ final class FutureSession implements Future { - /** * Waits for a given future resource to resolve and throws errors if any. * @@ -2900,10 +2589,7 @@ final class FutureSession implements Future * @throws \Cassandra\Exception\InvalidArgumentException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.FutureSession/#method-get */ - public function get($timeout) - { - } - + public function get($timeout) {} } /** @@ -2912,7 +2598,6 @@ public function get($timeout) */ final class Set implements Value, \Countable, \Iterator { - /** * Creates a new collection of a given type. * @@ -2920,9 +2605,7 @@ final class Set implements Value, \Countable, \Iterator * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-__construct */ - public function __construct($type) - { - } + public function __construct($type) {} /** * The type of this set. @@ -2930,9 +2613,7 @@ public function __construct($type) * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-type */ - public function type() - { - } + public function type() {} /** * Array of values in this set. @@ -2940,9 +2621,7 @@ public function type() * @return array values * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-values */ - public function values() - { - } + public function values() {} /** * Adds a value to this set. @@ -2952,9 +2631,7 @@ public function values() * @return bool whether the value has been added * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-add */ - public function add($value) - { - } + public function add($value) {} /** * Returns whether a value is in this set. @@ -2964,9 +2641,7 @@ public function add($value) * @return bool whether the value is in the set * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-has */ - public function has($value) - { - } + public function has($value) {} /** * Removes a value to this set. @@ -2976,9 +2651,7 @@ public function has($value) * @return bool whether the value has been removed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-remove */ - public function remove($value) - { - } + public function remove($value) {} /** * Total number of elements in this set @@ -2986,9 +2659,7 @@ public function remove($value) * @return int count * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-count */ - public function count() - { - } + public function count() {} /** * Current element for iteration @@ -2996,9 +2667,7 @@ public function count() * @return mixed current element * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-current */ - public function current() - { - } + public function current() {} /** * Current key for iteration @@ -3006,9 +2675,7 @@ public function current() * @return int current key * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-key */ - public function key() - { - } + public function key() {} /** * Move internal iterator forward @@ -3016,9 +2683,7 @@ public function key() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-next */ - public function next() - { - } + public function next() {} /** * Check whether a current value exists @@ -3026,9 +2691,7 @@ public function next() * @return bool * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-valid */ - public function valid() - { - } + public function valid() {} /** * Rewind internal iterator @@ -3036,10 +2699,7 @@ public function valid() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Set/#method-rewind */ - public function rewind() - { - } - + public function rewind() {} } /** @@ -3048,16 +2708,13 @@ public function rewind() */ final class DefaultIndex implements Index { - /** * Returns the name of the index * * @return string Name of the index * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultIndex/#method-name */ - public function name() - { - } + public function name() {} /** * Returns the kind of index @@ -3065,9 +2722,7 @@ public function name() * @return string Kind of the index * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultIndex/#method-kind */ - public function kind() - { - } + public function kind() {} /** * Returns the target column of the index @@ -3075,9 +2730,7 @@ public function kind() * @return string Target column name of the index * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultIndex/#method-target */ - public function target() - { - } + public function target() {} /** * Return a column's option by name @@ -3087,9 +2740,7 @@ public function target() * @return \Cassandra\Value Value of an option by name * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultIndex/#method-option */ - public function option($name) - { - } + public function option($name) {} /** * Returns all the index's options @@ -3097,9 +2748,7 @@ public function option($name) * @return array A dictionary of `string` and `Value` pairs of the index's options. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultIndex/#method-options */ - public function options() - { - } + public function options() {} /** * Returns the class name of the index @@ -3107,9 +2756,7 @@ public function options() * @return string Class name of a custom index * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultIndex/#method-className */ - public function className() - { - } + public function className() {} /** * Determines if the index is a custom index. @@ -3117,10 +2764,7 @@ public function className() * @return bool true if a custom index * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultIndex/#method-isCustom */ - public function isCustom() - { - } - + public function isCustom() {} } /** @@ -3129,16 +2773,13 @@ public function isCustom() */ final class DefaultAggregate implements Aggregate { - /** * Returns the full name of the aggregate * * @return string Full name of the aggregate including name and types * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultAggregate/#method-name */ - public function name() - { - } + public function name() {} /** * Returns the simple name of the aggregate @@ -3146,9 +2787,7 @@ public function name() * @return string Simple name of the aggregate * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultAggregate/#method-simpleName */ - public function simpleName() - { - } + public function simpleName() {} /** * Returns the argument types of the aggregate @@ -3156,9 +2795,7 @@ public function simpleName() * @return array Argument types of the aggregate * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultAggregate/#method-argumentTypes */ - public function argumentTypes() - { - } + public function argumentTypes() {} /** * Returns the state function of the aggregate @@ -3166,9 +2803,7 @@ public function argumentTypes() * @return \Cassandra\Function_ State public function of the aggregate * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultAggregate/#method-stateFunction */ - public function stateFunction() - { - } + public function stateFunction() {} /** * Returns the final function of the aggregate @@ -3176,9 +2811,7 @@ public function stateFunction() * @return \Cassandra\Function_ Final public function of the aggregate * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultAggregate/#method-finalFunction */ - public function finalFunction() - { - } + public function finalFunction() {} /** * Returns the initial condition of the aggregate @@ -3186,9 +2819,7 @@ public function finalFunction() * @return \Cassandra\Value Initial condition of the aggregate * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultAggregate/#method-initialCondition */ - public function initialCondition() - { - } + public function initialCondition() {} /** * Returns the state type of the aggregate @@ -3196,9 +2827,7 @@ public function initialCondition() * @return \Cassandra\Type State type of the aggregate * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultAggregate/#method-stateType */ - public function stateType() - { - } + public function stateType() {} /** * Returns the return type of the aggregate @@ -3206,9 +2835,7 @@ public function stateType() * @return \Cassandra\Type Return type of the aggregate * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultAggregate/#method-returnType */ - public function returnType() - { - } + public function returnType() {} /** * Returns the signature of the aggregate @@ -3216,10 +2843,7 @@ public function returnType() * @return string Signature of the aggregate (same as name()) * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultAggregate/#method-signature */ - public function signature() - { - } - + public function signature() {} } /** @@ -3228,7 +2852,6 @@ public function signature() */ final class Timestamp implements Value { - /** * Creates a new timestamp from either unix timestamp and microseconds or * from the current time by default. @@ -3238,9 +2861,7 @@ final class Timestamp implements Value * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timestamp/#method-__construct */ - public function __construct($seconds, $microseconds) - { - } + public function __construct($seconds, $microseconds) {} /** * The type of this timestamp. @@ -3248,9 +2869,7 @@ public function __construct($seconds, $microseconds) * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timestamp/#method-type */ - public function type() - { - } + public function type() {} /** * Unix timestamp. @@ -3260,9 +2879,7 @@ public function type() * @see time * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timestamp/#method-time */ - public function time() - { - } + public function time() {} /** * Microtime from this timestamp @@ -3274,9 +2891,7 @@ public function time() * @see microtime * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timestamp/#method-microtime */ - public function microtime($get_as_float) - { - } + public function microtime($get_as_float) {} /** * Converts current timestamp to PHP DateTime. @@ -3284,9 +2899,7 @@ public function microtime($get_as_float) * @return \DateTime PHP representation * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timestamp/#method-toDateTime */ - public function toDateTime() - { - } + public function toDateTime() {} /** * Returns a string representation of this timestamp. @@ -3294,10 +2907,7 @@ public function toDateTime() * @return string timestamp * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timestamp/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -3306,7 +2916,6 @@ public function __toString() */ final class Tinyint implements Value, Numeric { - /** * Creates a new 8-bit signed integer. * @@ -3314,9 +2923,7 @@ final class Tinyint implements Value, Numeric * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-__construct */ - public function __construct($value) - { - } + public function __construct($value) {} /** * Minimum possible Tinyint value @@ -3324,9 +2931,7 @@ public function __construct($value) * @return \Cassandra\Tinyint minimum value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-min */ - public static function min() - { - } + public static function min() {} /** * Maximum possible Tinyint value @@ -3334,17 +2939,13 @@ public static function min() * @return \Cassandra\Tinyint maximum value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-max */ - public static function max() - { - } + public static function max() {} /** * @return string * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * The type of this value (tinyint). @@ -3352,9 +2953,7 @@ public function __toString() * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-type */ - public function type() - { - } + public function type() {} /** * Returns the integer value. @@ -3362,9 +2961,7 @@ public function type() * @return int integer value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-value */ - public function value() - { - } + public function value() {} /** * @param \Cassandra\Numeric $num a number to add to this one @@ -3372,9 +2969,7 @@ public function value() * @return \Cassandra\Numeric sum * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-add */ - public function add($num) - { - } + public function add($num) {} /** * @param \Cassandra\Numeric $num a number to subtract from this one @@ -3382,9 +2977,7 @@ public function add($num) * @return \Cassandra\Numeric difference * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-sub */ - public function sub($num) - { - } + public function sub($num) {} /** * @param \Cassandra\Numeric $num a number to multiply this one by @@ -3392,9 +2985,7 @@ public function sub($num) * @return \Cassandra\Numeric product * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-mul */ - public function mul($num) - { - } + public function mul($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -3402,9 +2993,7 @@ public function mul($num) * @return \Cassandra\Numeric quotient * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-div */ - public function div($num) - { - } + public function div($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -3412,50 +3001,37 @@ public function div($num) * @return \Cassandra\Numeric remainder * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-mod */ - public function mod($num) - { - } + public function mod($num) {} /** * @return \Cassandra\Numeric absolute value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-abs */ - public function abs() - { - } + public function abs() {} /** * @return \Cassandra\Numeric negative value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-neg */ - public function neg() - { - } + public function neg() {} /** * @return \Cassandra\Numeric square root * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-sqrt */ - public function sqrt() - { - } + public function sqrt() {} /** * @return int this number as int * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-toInt */ - public function toInt() - { - } + public function toInt() {} /** * @return float this number as float * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Tinyint/#method-toDouble */ - public function toDouble() - { - } - + public function toDouble() {} } /** @@ -3464,7 +3040,6 @@ public function toDouble() */ final class Timeuuid implements Value, UuidInterface { - /** * Creates a timeuuid from a given timestamp or current time. * @@ -3472,9 +3047,7 @@ final class Timeuuid implements Value, UuidInterface * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timeuuid/#method-__construct */ - public function __construct($timestamp) - { - } + public function __construct($timestamp) {} /** * Returns this timeuuid as string. @@ -3482,9 +3055,7 @@ public function __construct($timestamp) * @return string timeuuid * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timeuuid/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * The type of this timeuuid. @@ -3492,9 +3063,7 @@ public function __toString() * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timeuuid/#method-type */ - public function type() - { - } + public function type() {} /** * Returns this timeuuid as string. @@ -3502,9 +3071,7 @@ public function type() * @return string timeuuid * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timeuuid/#method-uuid */ - public function uuid() - { - } + public function uuid() {} /** * Returns the version of this timeuuid. @@ -3512,9 +3079,7 @@ public function uuid() * @return int version of this timeuuid * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timeuuid/#method-version */ - public function version() - { - } + public function version() {} /** * Unix timestamp. @@ -3524,9 +3089,7 @@ public function version() * @see time * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timeuuid/#method-time */ - public function time() - { - } + public function time() {} /** * Converts current timeuuid to PHP DateTime. @@ -3534,10 +3097,7 @@ public function time() * @return \DateTime PHP representation * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Timeuuid/#method-toDateTime */ - public function toDateTime() - { - } - + public function toDateTime() {} } /** @@ -3549,7 +3109,6 @@ public function toDateTime() */ final class DefaultSession implements Session { - /** * Execute a query. * @@ -3573,9 +3132,7 @@ final class DefaultSession implements Session * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSession/#method-execute */ - public function execute($statement, $options) - { - } + public function execute($statement, $options) {} /** * Execute a query asynchronously. This method returns immediately, but @@ -3589,9 +3146,7 @@ public function execute($statement, $options) * @see \Cassandra\Session::execute() for valid execution options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSession/#method-executeAsync */ - public function executeAsync($statement, $options) - { - } + public function executeAsync($statement, $options) {} /** * Prepare a query for execution. @@ -3606,9 +3161,7 @@ public function executeAsync($statement, $options) * @see \Cassandra\Session::execute() for valid execution options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSession/#method-prepare */ - public function prepare($cql, $options) - { - } + public function prepare($cql, $options) {} /** * Asynchronously prepare a query for execution. @@ -3621,9 +3174,7 @@ public function prepare($cql, $options) * @see \Cassandra\Session::execute() for valid execution options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSession/#method-prepareAsync */ - public function prepareAsync($cql, $options) - { - } + public function prepareAsync($cql, $options) {} /** * Close the session and all its connections. @@ -3635,9 +3186,7 @@ public function prepareAsync($cql, $options) * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSession/#method-close */ - public function close($timeout) - { - } + public function close($timeout) {} /** * Asynchronously close the session and all its connections. @@ -3645,9 +3194,7 @@ public function close($timeout) * @return \Cassandra\FutureClose A future that can be waited on. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSession/#method-closeAsync */ - public function closeAsync() - { - } + public function closeAsync() {} /** * Get performance and diagnostic metrics. @@ -3655,9 +3202,7 @@ public function closeAsync() * @return array Performance/Diagnostic metrics. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSession/#method-metrics */ - public function metrics() - { - } + public function metrics() {} /** * Get a snapshot of the cluster's current schema. @@ -3665,10 +3210,7 @@ public function metrics() * @return \Cassandra\Schema A snapshot of the cluster's schema. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultSession/#method-schema */ - public function schema() - { - } - + public function schema() {} } /** @@ -3677,15 +3219,13 @@ public function schema() */ abstract class Custom implements Value { - /** * The type of this value. * * @return \Cassandra\Type\Custom * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Custom/#method-type */ - public abstract function type(); - + abstract public function type(); } /** @@ -3694,14 +3234,13 @@ public abstract function type(); */ abstract class MaterializedView implements Table { - /** * Returns the base table of the view * * @return \Cassandra\Table Base table of the view * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-baseTable */ - public abstract function baseTable(); + abstract public function baseTable(); /** * Returns the name of this view @@ -3709,7 +3248,7 @@ public abstract function baseTable(); * @return string Name of the view * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-name */ - public abstract function name(); + abstract public function name(); /** * Return a view's option by name @@ -3719,7 +3258,7 @@ public abstract function name(); * @return \Cassandra\Value Value of an option by name * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-option */ - public abstract function option($name); + abstract public function option($name); /** * Returns all the view's options @@ -3728,7 +3267,7 @@ public abstract function option($name); * view's options. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-options */ - public abstract function options(); + abstract public function options(); /** * Description of the view, if any @@ -3736,7 +3275,7 @@ public abstract function options(); * @return string View description or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-comment */ - public abstract function comment(); + abstract public function comment(); /** * Returns read repair chance @@ -3744,7 +3283,7 @@ public abstract function comment(); * @return float Read repair chance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-readRepairChance */ - public abstract function readRepairChance(); + abstract public function readRepairChance(); /** * Returns local read repair chance @@ -3752,7 +3291,7 @@ public abstract function readRepairChance(); * @return float Local read repair chance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-localReadRepairChance */ - public abstract function localReadRepairChance(); + abstract public function localReadRepairChance(); /** * Returns GC grace seconds @@ -3760,7 +3299,7 @@ public abstract function localReadRepairChance(); * @return int GC grace seconds * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-gcGraceSeconds */ - public abstract function gcGraceSeconds(); + abstract public function gcGraceSeconds(); /** * Returns caching options @@ -3768,7 +3307,7 @@ public abstract function gcGraceSeconds(); * @return string Caching options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-caching */ - public abstract function caching(); + abstract public function caching(); /** * Returns bloom filter FP chance @@ -3776,7 +3315,7 @@ public abstract function caching(); * @return float Bloom filter FP chance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-bloomFilterFPChance */ - public abstract function bloomFilterFPChance(); + abstract public function bloomFilterFPChance(); /** * Returns memtable flush period in milliseconds @@ -3784,7 +3323,7 @@ public abstract function bloomFilterFPChance(); * @return int Memtable flush period in milliseconds * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-memtableFlushPeriodMs */ - public abstract function memtableFlushPeriodMs(); + abstract public function memtableFlushPeriodMs(); /** * Returns default TTL. @@ -3792,7 +3331,7 @@ public abstract function memtableFlushPeriodMs(); * @return int Default TTL. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-defaultTTL */ - public abstract function defaultTTL(); + abstract public function defaultTTL(); /** * Returns speculative retry. @@ -3800,7 +3339,7 @@ public abstract function defaultTTL(); * @return string Speculative retry. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-speculativeRetry */ - public abstract function speculativeRetry(); + abstract public function speculativeRetry(); /** * Returns index interval @@ -3808,7 +3347,7 @@ public abstract function speculativeRetry(); * @return int Index interval * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-indexInterval */ - public abstract function indexInterval(); + abstract public function indexInterval(); /** * Returns compaction strategy class name @@ -3816,7 +3355,7 @@ public abstract function indexInterval(); * @return string Compaction strategy class name * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-compactionStrategyClassName */ - public abstract function compactionStrategyClassName(); + abstract public function compactionStrategyClassName(); /** * Returns compaction strategy options @@ -3824,7 +3363,7 @@ public abstract function compactionStrategyClassName(); * @return \Cassandra\Map Compaction strategy options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-compactionStrategyOptions */ - public abstract function compactionStrategyOptions(); + abstract public function compactionStrategyOptions(); /** * Returns compression parameters @@ -3832,7 +3371,7 @@ public abstract function compactionStrategyOptions(); * @return \Cassandra\Map Compression parameters * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-compressionParameters */ - public abstract function compressionParameters(); + abstract public function compressionParameters(); /** * Returns whether or not the `populate_io_cache_on_flush` is true @@ -3840,7 +3379,7 @@ public abstract function compressionParameters(); * @return bool Value of `populate_io_cache_on_flush` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-populateIOCacheOnFlush */ - public abstract function populateIOCacheOnFlush(); + abstract public function populateIOCacheOnFlush(); /** * Returns whether or not the `replicate_on_write` is true @@ -3848,7 +3387,7 @@ public abstract function populateIOCacheOnFlush(); * @return bool Value of `replicate_on_write` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-replicateOnWrite */ - public abstract function replicateOnWrite(); + abstract public function replicateOnWrite(); /** * Returns the value of `max_index_interval` @@ -3856,7 +3395,7 @@ public abstract function replicateOnWrite(); * @return int Value of `max_index_interval` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-maxIndexInterval */ - public abstract function maxIndexInterval(); + abstract public function maxIndexInterval(); /** * Returns the value of `min_index_interval` @@ -3864,7 +3403,7 @@ public abstract function maxIndexInterval(); * @return int Value of `min_index_interval` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-minIndexInterval */ - public abstract function minIndexInterval(); + abstract public function minIndexInterval(); /** * Returns column by name @@ -3874,7 +3413,7 @@ public abstract function minIndexInterval(); * @return \Cassandra\Column Column instance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-column */ - public abstract function column($name); + abstract public function column($name); /** * Returns all columns in this view @@ -3882,7 +3421,7 @@ public abstract function column($name); * @return array A list of `Column` instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-columns */ - public abstract function columns(); + abstract public function columns(); /** * Returns the partition key columns of the view @@ -3890,7 +3429,7 @@ public abstract function columns(); * @return array A list of of `Column` instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-partitionKey */ - public abstract function partitionKey(); + abstract public function partitionKey(); /** * Returns both the partition and clustering key columns of the view @@ -3898,7 +3437,7 @@ public abstract function partitionKey(); * @return array A list of of `Column` instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-primaryKey */ - public abstract function primaryKey(); + abstract public function primaryKey(); /** * Returns the clustering key columns of the view @@ -3906,14 +3445,13 @@ public abstract function primaryKey(); * @return array A list of of `Column` instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-clusteringKey */ - public abstract function clusteringKey(); + abstract public function clusteringKey(); /** * @return array A list of cluster column orders ('asc' and 'desc') * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-clusteringOrder */ - public abstract function clusteringOrder(); - + abstract public function clusteringOrder(); } /** @@ -3922,7 +3460,6 @@ public abstract function clusteringOrder(); */ final class Time implements Value { - /** * Creates a new Time object * @@ -3930,9 +3467,7 @@ final class Time implements Value * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Time/#method-__construct */ - public function __construct($nanoseconds) - { - } + public function __construct($nanoseconds) {} /** * @param \DateTime $datetime @@ -3940,9 +3475,7 @@ public function __construct($nanoseconds) * @return \Cassandra\Time * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Time/#method-fromDateTime */ - public static function fromDateTime($datetime) - { - } + public static function fromDateTime($datetime) {} /** * The type of this date. @@ -3950,26 +3483,19 @@ public static function fromDateTime($datetime) * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Time/#method-type */ - public function type() - { - } + public function type() {} /** * @return int * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Time/#method-seconds */ - public function seconds() - { - } + public function seconds() {} /** * @return string this date in string format: Time(nanoseconds=$nanoseconds) * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Time/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -3978,16 +3504,13 @@ public function __toString() */ abstract class Type { - /** * Get representation of ascii type * * @return \Cassandra\Type ascii type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-ascii */ - public static final function ascii() - { - } + final public static function ascii() {} /** * Get representation of bigint type @@ -3995,9 +3518,7 @@ public static final function ascii() * @return \Cassandra\Type bigint type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-bigint */ - public static final function bigint() - { - } + final public static function bigint() {} /** * Get representation of smallint type @@ -4005,9 +3526,7 @@ public static final function bigint() * @return \Cassandra\Type smallint type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-smallint */ - public static final function smallint() - { - } + final public static function smallint() {} /** * Get representation of tinyint type @@ -4015,9 +3534,7 @@ public static final function smallint() * @return \Cassandra\Type tinyint type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-tinyint */ - public static final function tinyint() - { - } + final public static function tinyint() {} /** * Get representation of blob type @@ -4025,9 +3542,7 @@ public static final function tinyint() * @return \Cassandra\Type blob type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-blob */ - public static final function blob() - { - } + final public static function blob() {} /** * Get representation of boolean type @@ -4035,9 +3550,7 @@ public static final function blob() * @return \Cassandra\Type boolean type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-boolean */ - public static final function boolean() - { - } + final public static function boolean() {} /** * Get representation of counter type @@ -4045,9 +3558,7 @@ public static final function boolean() * @return \Cassandra\Type counter type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-counter */ - public static final function counter() - { - } + final public static function counter() {} /** * Get representation of decimal type @@ -4055,9 +3566,7 @@ public static final function counter() * @return \Cassandra\Type decimal type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-decimal */ - public static final function decimal() - { - } + final public static function decimal() {} /** * Get representation of double type @@ -4065,9 +3574,7 @@ public static final function decimal() * @return \Cassandra\Type double type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-double */ - public static final function double() - { - } + final public static function double() {} /** * Get representation of duration type @@ -4075,9 +3582,7 @@ public static final function double() * @return \Cassandra\Type duration type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-duration */ - public static final function duration() - { - } + final public static function duration() {} /** * Get representation of float type @@ -4085,9 +3590,7 @@ public static final function duration() * @return \Cassandra\Type float type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-float */ - public static final function float() - { - } + final public static function float() {} /** * Get representation of int type @@ -4095,9 +3598,7 @@ public static final function float() * @return \Cassandra\Type int type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-int */ - public static final function int() - { - } + final public static function int() {} /** * Get representation of text type @@ -4105,9 +3606,7 @@ public static final function int() * @return \Cassandra\Type text type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-text */ - public static final function text() - { - } + final public static function text() {} /** * Get representation of timestamp type @@ -4115,9 +3614,7 @@ public static final function text() * @return \Cassandra\Type timestamp type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-timestamp */ - public static final function timestamp() - { - } + final public static function timestamp() {} /** * Get representation of date type @@ -4125,9 +3622,7 @@ public static final function timestamp() * @return \Cassandra\Type date type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-date */ - public static final function date() - { - } + final public static function date() {} /** * Get representation of time type @@ -4135,9 +3630,7 @@ public static final function date() * @return \Cassandra\Type time type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-time */ - public static final function time() - { - } + final public static function time() {} /** * Get representation of uuid type @@ -4145,9 +3638,7 @@ public static final function time() * @return \Cassandra\Type uuid type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-uuid */ - public static final function uuid() - { - } + final public static function uuid() {} /** * Get representation of varchar type @@ -4155,9 +3646,7 @@ public static final function uuid() * @return \Cassandra\Type varchar type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-varchar */ - public static final function varchar() - { - } + final public static function varchar() {} /** * Get representation of varint type @@ -4165,9 +3654,7 @@ public static final function varchar() * @return \Cassandra\Type varint type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-varint */ - public static final function varint() - { - } + final public static function varint() {} /** * Get representation of timeuuid type @@ -4175,9 +3662,7 @@ public static final function varint() * @return \Cassandra\Type timeuuid type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-timeuuid */ - public static final function timeuuid() - { - } + final public static function timeuuid() {} /** * Get representation of inet type @@ -4185,9 +3670,7 @@ public static final function timeuuid() * @return \Cassandra\Type inet type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-inet */ - public static final function inet() - { - } + final public static function inet() {} /** * Initialize a Collection type @@ -4206,9 +3689,7 @@ public static final function inet() * @return \Cassandra\Type The collection type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-collection */ - public static final function collection($type) - { - } + final public static function collection($type) {} /** * Initialize a set type @@ -4227,9 +3708,7 @@ public static final function collection($type) * @return \Cassandra\Type The set type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-set */ - public static final function set($type) - { - } + final public static function set($type) {} /** * Initialize a map type @@ -4247,9 +3726,7 @@ public static final function set($type) * @return \Cassandra\Type The map type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-map */ - public static final function map($keyType, $valueType) - { - } + final public static function map($keyType, $valueType) {} /** * Initialize a tuple type @@ -4266,9 +3743,7 @@ public static final function map($keyType, $valueType) * @return \Cassandra\Type The tuple type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-tuple */ - public static final function tuple($types) - { - } + final public static function tuple($types) {} /** * Initialize a user type @@ -4285,9 +3760,7 @@ public static final function tuple($types) * @return \Cassandra\Type The user type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-userType */ - public static final function userType($types) - { - } + final public static function userType($types) {} /** * Returns the name of this type as string. @@ -4295,7 +3768,7 @@ public static final function userType($types) * @return string Name of this type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-name */ - public abstract function name(); + abstract public function name(); /** * Returns string representation of this type. @@ -4303,8 +3776,7 @@ public abstract function name(); * @return string String representation of this type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-__toString */ - public abstract function __toString(); - + abstract public function __toString(); } /** @@ -4313,7 +3785,6 @@ public abstract function __toString(); */ final class Varint implements Value, Numeric { - /** * Creates a new variable length integer. * @@ -4321,9 +3792,7 @@ final class Varint implements Value, Numeric * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-__construct */ - public function __construct($value) - { - } + public function __construct($value) {} /** * Returns the integer value. @@ -4331,9 +3800,7 @@ public function __construct($value) * @return string integer value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * The type of this varint. @@ -4341,9 +3808,7 @@ public function __toString() * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-type */ - public function type() - { - } + public function type() {} /** * Returns the integer value. @@ -4351,9 +3816,7 @@ public function type() * @return string integer value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-value */ - public function value() - { - } + public function value() {} /** * @param \Cassandra\Numeric $num a number to add to this one @@ -4361,9 +3824,7 @@ public function value() * @return \Cassandra\Numeric sum * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-add */ - public function add($num) - { - } + public function add($num) {} /** * @param \Cassandra\Numeric $num a number to subtract from this one @@ -4371,9 +3832,7 @@ public function add($num) * @return \Cassandra\Numeric difference * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-sub */ - public function sub($num) - { - } + public function sub($num) {} /** * @param \Cassandra\Numeric $num a number to multiply this one by @@ -4381,9 +3840,7 @@ public function sub($num) * @return \Cassandra\Numeric product * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-mul */ - public function mul($num) - { - } + public function mul($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -4391,9 +3848,7 @@ public function mul($num) * @return \Cassandra\Numeric quotient * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-div */ - public function div($num) - { - } + public function div($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -4401,50 +3856,37 @@ public function div($num) * @return \Cassandra\Numeric remainder * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-mod */ - public function mod($num) - { - } + public function mod($num) {} /** * @return \Cassandra\Numeric absolute value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-abs */ - public function abs() - { - } + public function abs() {} /** * @return \Cassandra\Numeric negative value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-neg */ - public function neg() - { - } + public function neg() {} /** * @return \Cassandra\Numeric square root * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-sqrt */ - public function sqrt() - { - } + public function sqrt() {} /** * @return int this number as int * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-toInt */ - public function toInt() - { - } + public function toInt() {} /** * @return float this number as float * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Varint/#method-toDouble */ - public function toDouble() - { - } - + public function toDouble() {} } /** @@ -4453,7 +3895,6 @@ public function toDouble() */ final class Map implements Value, \Countable, \Iterator, \ArrayAccess { - /** * Creates a new map of a given key and value type. * @@ -4462,9 +3903,7 @@ final class Map implements Value, \Countable, \Iterator, \ArrayAccess * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-__construct */ - public function __construct($keyType, $valueType) - { - } + public function __construct($keyType, $valueType) {} /** * The type of this map. @@ -4472,9 +3911,7 @@ public function __construct($keyType, $valueType) * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-type */ - public function type() - { - } + public function type() {} /** * Returns all keys in the map as an array. @@ -4482,9 +3919,7 @@ public function type() * @return array keys * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-keys */ - public function keys() - { - } + public function keys() {} /** * Returns all values in the map as an array. @@ -4492,9 +3927,7 @@ public function keys() * @return array values * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-values */ - public function values() - { - } + public function values() {} /** * Sets key/value in the map. @@ -4505,9 +3938,7 @@ public function values() * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-set */ - public function set($key, $value) - { - } + public function set($key, $value) {} /** * Gets the value of the key in the map. @@ -4517,9 +3948,7 @@ public function set($key, $value) * @return mixed Value or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-get */ - public function get($key) - { - } + public function get($key) {} /** * Removes the key from the map. @@ -4529,9 +3958,7 @@ public function get($key) * @return bool Whether the key was removed or not, e.g. didn't exist * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-remove */ - public function remove($key) - { - } + public function remove($key) {} /** * Returns whether the key is in the map. @@ -4541,9 +3968,7 @@ public function remove($key) * @return bool Whether the key is in the map or not * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-has */ - public function has($key) - { - } + public function has($key) {} /** * Total number of elements in this map @@ -4551,9 +3976,7 @@ public function has($key) * @return int count * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-count */ - public function count() - { - } + public function count() {} /** * Current value for iteration @@ -4561,9 +3984,7 @@ public function count() * @return mixed current value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-current */ - public function current() - { - } + public function current() {} /** * Current key for iteration @@ -4571,9 +3992,7 @@ public function current() * @return int current key * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-key */ - public function key() - { - } + public function key() {} /** * Move internal iterator forward @@ -4581,9 +4000,7 @@ public function key() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-next */ - public function next() - { - } + public function next() {} /** * Check whether a current value exists @@ -4591,9 +4008,7 @@ public function next() * @return bool * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-valid */ - public function valid() - { - } + public function valid() {} /** * Rewind internal iterator @@ -4601,9 +4016,7 @@ public function valid() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-rewind */ - public function rewind() - { - } + public function rewind() {} /** * Sets the value at a given key @@ -4616,9 +4029,7 @@ public function rewind() * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-offsetSet */ - public function offsetSet($key, $value) - { - } + public function offsetSet($key, $value) {} /** * Retrieves the value at a given key @@ -4630,9 +4041,7 @@ public function offsetSet($key, $value) * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-offsetGet */ - public function offsetGet($key) - { - } + public function offsetGet($key) {} /** * Deletes the value at a given key @@ -4644,9 +4053,7 @@ public function offsetGet($key) * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-offsetUnset */ - public function offsetUnset($key) - { - } + public function offsetUnset($key) {} /** * Returns whether the value a given key is present @@ -4658,10 +4065,7 @@ public function offsetUnset($key) * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Map/#method-offsetExists */ - public function offsetExists($key) - { - } - + public function offsetExists($key) {} } /** @@ -4670,7 +4074,6 @@ public function offsetExists($key) */ final class Uuid implements Value, UuidInterface { - /** * Creates a uuid from a given uuid string or a random one. * @@ -4678,9 +4081,7 @@ final class Uuid implements Value, UuidInterface * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Uuid/#method-__construct */ - public function __construct($uuid) - { - } + public function __construct($uuid) {} /** * Returns this uuid as string. @@ -4688,9 +4089,7 @@ public function __construct($uuid) * @return string uuid * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Uuid/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * The type of this uuid. @@ -4698,9 +4097,7 @@ public function __toString() * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Uuid/#method-type */ - public function type() - { - } + public function type() {} /** * Returns this uuid as string. @@ -4708,9 +4105,7 @@ public function type() * @return string uuid * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Uuid/#method-uuid */ - public function uuid() - { - } + public function uuid() {} /** * Returns the version of this uuid. @@ -4718,10 +4113,7 @@ public function uuid() * @return int version of this uuid * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Uuid/#method-version */ - public function version() - { - } - + public function version() {} } /** @@ -4730,7 +4122,6 @@ public function version() */ final class Float_ implements Value, Numeric { - /** * Creates a new float. * @@ -4738,9 +4129,7 @@ final class Float_ implements Value, Numeric * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-__construct */ - public function __construct($value) - { - } + public function __construct($value) {} /** * Minimum possible Float value @@ -4748,9 +4137,7 @@ public function __construct($value) * @return \Cassandra\Float_ minimum value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-min */ - public static function min() - { - } + public static function min() {} /** * Maximum possible Float value @@ -4758,9 +4145,7 @@ public static function min() * @return \Cassandra\Float_ maximum value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-max */ - public static function max() - { - } + public static function max() {} /** * Returns string representation of the float value. @@ -4768,9 +4153,7 @@ public static function max() * @return string float value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * The type of this float. @@ -4778,9 +4161,7 @@ public function __toString() * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-type */ - public function type() - { - } + public function type() {} /** * Returns the float value. @@ -4788,33 +4169,25 @@ public function type() * @return float float value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-value */ - public function value() - { - } + public function value() {} /** * @return bool * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-isInfinite */ - public function isInfinite() - { - } + public function isInfinite() {} /** * @return bool * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-isFinite */ - public function isFinite() - { - } + public function isFinite() {} /** * @return bool * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-isNaN */ - public function isNaN() - { - } + public function isNaN() {} /** * @param \Cassandra\Numeric $num a number to add to this one @@ -4822,9 +4195,7 @@ public function isNaN() * @return \Cassandra\Numeric sum * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-add */ - public function add($num) - { - } + public function add($num) {} /** * @param \Cassandra\Numeric $num a number to subtract from this one @@ -4832,9 +4203,7 @@ public function add($num) * @return \Cassandra\Numeric difference * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-sub */ - public function sub($num) - { - } + public function sub($num) {} /** * @param \Cassandra\Numeric $num a number to multiply this one by @@ -4842,9 +4211,7 @@ public function sub($num) * @return \Cassandra\Numeric product * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-mul */ - public function mul($num) - { - } + public function mul($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -4852,9 +4219,7 @@ public function mul($num) * @return \Cassandra\Numeric quotient * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-div */ - public function div($num) - { - } + public function div($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -4862,50 +4227,37 @@ public function div($num) * @return \Cassandra\Numeric remainder * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-mod */ - public function mod($num) - { - } + public function mod($num) {} /** * @return \Cassandra\Numeric absolute value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-abs */ - public function abs() - { - } + public function abs() {} /** * @return \Cassandra\Numeric negative value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-neg */ - public function neg() - { - } + public function neg() {} /** * @return \Cassandra\Numeric square root * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-sqrt */ - public function sqrt() - { - } + public function sqrt() {} /** * @return int this number as int * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-toInt */ - public function toInt() - { - } + public function toInt() {} /** * @return float this number as float * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Float/#method-toDouble */ - public function toDouble() - { - } - + public function toDouble() {} } /** @@ -4914,7 +4266,6 @@ public function toDouble() */ final class Duration implements Value { - /** * @param int|float|string|\Cassandra\Bigint $months Months attribute of the duration. * @param int|float|string|\Cassandra\Bigint $days Days attribute of the duration. @@ -4922,9 +4273,7 @@ final class Duration implements Value * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Duration/#method-__construct */ - public function __construct($months, $days, $nanos) - { - } + public function __construct($months, $days, $nanos) {} /** * The type of represented by the value. @@ -4932,42 +4281,31 @@ public function __construct($months, $days, $nanos) * @return \Cassandra\Type the Cassandra type for Duration * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Duration/#method-type */ - public function type() - { - } + public function type() {} /** * @return string the months attribute of this Duration * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Duration/#method-months */ - public function months() - { - } + public function months() {} /** * @return string the days attribute of this Duration * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Duration/#method-days */ - public function days() - { - } + public function days() {} /** * @return string the nanoseconds attribute of this Duration * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Duration/#method-nanos */ - public function nanos() - { - } + public function nanos() {} /** * @return string string representation of this Duration; may be used as a literal parameter in CQL queries. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Duration/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -4976,16 +4314,13 @@ public function __toString() */ final class DefaultKeyspace implements Keyspace { - /** * Returns keyspace name * * @return string Name * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-name */ - public function name() - { - } + public function name() {} /** * Returns replication class name @@ -4993,9 +4328,7 @@ public function name() * @return string Replication class * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-replicationClassName */ - public function replicationClassName() - { - } + public function replicationClassName() {} /** * Returns replication options @@ -5003,9 +4336,7 @@ public function replicationClassName() * @return \Cassandra\Map Replication options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-replicationOptions */ - public function replicationOptions() - { - } + public function replicationOptions() {} /** * Returns whether the keyspace has durable writes enabled @@ -5013,9 +4344,7 @@ public function replicationOptions() * @return string Whether durable writes are enabled * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-hasDurableWrites */ - public function hasDurableWrites() - { - } + public function hasDurableWrites() {} /** * Returns a table by name @@ -5025,9 +4354,7 @@ public function hasDurableWrites() * @return \Cassandra\Table * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-table */ - public function table($name) - { - } + public function table($name) {} /** * Returns all tables defined in this keyspace @@ -5035,9 +4362,7 @@ public function table($name) * @return array An array of `Table` instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-tables */ - public function tables() - { - } + public function tables() {} /** * Get user type by name @@ -5047,9 +4372,7 @@ public function tables() * @return \Cassandra\Type\UserType|null A user type or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-userType */ - public function userType($name) - { - } + public function userType($name) {} /** * Get all user types @@ -5057,9 +4380,7 @@ public function userType($name) * @return array An array of user types * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-userTypes */ - public function userTypes() - { - } + public function userTypes() {} /** * Get materialized view by name @@ -5069,9 +4390,7 @@ public function userTypes() * @return \Cassandra\MaterizedView|null A materialized view or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-materializedView */ - public function materializedView($name) - { - } + public function materializedView($name) {} /** * Gets all materialized views @@ -5079,9 +4398,7 @@ public function materializedView($name) * @return array An array of materialized views * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-materializedViews */ - public function materializedViews() - { - } + public function materializedViews() {} /** * Get a function by name and signature @@ -5092,9 +4409,7 @@ public function materializedViews() * @return \Cassandra\Function_|null A function or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-function */ - public function function_($name, ...$params) - { - } + public function function_($name, ...$params) {} /** * Get all functions @@ -5102,9 +4417,7 @@ public function function_($name, ...$params) * @return array An array of functions * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-functions */ - public function functions() - { - } + public function functions() {} /** * Get an aggregate by name and signature @@ -5115,9 +4428,7 @@ public function functions() * @return \Cassandra\Aggregate|null An aggregate or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-aggregate */ - public function aggregate($name, ...$params) - { - } + public function aggregate($name, ...$params) {} /** * Get all aggregates @@ -5125,10 +4436,7 @@ public function aggregate($name, ...$params) * @return array An array of aggregates * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultKeyspace/#method-aggregates */ - public function aggregates() - { - } - + public function aggregates() {} } /** @@ -5137,7 +4445,6 @@ public function aggregates() */ final class Inet implements Value { - /** * Creates a new IPv4 or IPv6 inet address. * @@ -5145,9 +4452,7 @@ final class Inet implements Value * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Inet/#method-__construct */ - public function __construct($address) - { - } + public function __construct($address) {} /** * Returns the normalized string representation of the address. @@ -5155,9 +4460,7 @@ public function __construct($address) * @return string address * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Inet/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * The type of this inet. @@ -5165,9 +4468,7 @@ public function __toString() * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Inet/#method-type */ - public function type() - { - } + public function type() {} /** * Returns the normalized string representation of the address. @@ -5175,10 +4476,7 @@ public function type() * @return string address * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Inet/#method-address */ - public function address() - { - } - + public function address() {} } /** @@ -5187,7 +4485,6 @@ public function address() */ final class Date implements Value { - /** * Creates a new Date object * @@ -5195,9 +4492,7 @@ final class Date implements Value * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Date/#method-__construct */ - public function __construct($seconds) - { - } + public function __construct($seconds) {} /** * Creates a new Date object from a \DateTime object. @@ -5207,9 +4502,7 @@ public function __construct($seconds) * @return \DateTime PHP representation * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Date/#method-fromDateTime */ - public static function fromDateTime($datetime) - { - } + public static function fromDateTime($datetime) {} /** * The type of this date. @@ -5217,17 +4510,13 @@ public static function fromDateTime($datetime) * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Date/#method-type */ - public function type() - { - } + public function type() {} /** * @return int Absolute seconds from epoch (1970, 1, 1), can be negative * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Date/#method-seconds */ - public function seconds() - { - } + public function seconds() {} /** * Converts current date to PHP DateTime. @@ -5237,18 +4526,13 @@ public function seconds() * @return \DateTime PHP representation * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Date/#method-toDateTime */ - public function toDateTime($time) - { - } + public function toDateTime($time) {} /** * @return string this date in string format: Date(seconds=$seconds) * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Date/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -5257,16 +4541,13 @@ public function __toString() */ final class DefaultColumn implements Column { - /** * Returns the name of the column. * * @return string Name of the column or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultColumn/#method-name */ - public function name() - { - } + public function name() {} /** * Returns the type of the column. @@ -5274,9 +4555,7 @@ public function name() * @return \Cassandra\Type Type of the column * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultColumn/#method-type */ - public function type() - { - } + public function type() {} /** * Returns whether the column is in descending or ascending order. @@ -5284,9 +4563,7 @@ public function type() * @return bool Whether the column is stored in descending order. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultColumn/#method-isReversed */ - public function isReversed() - { - } + public function isReversed() {} /** * Returns true for static columns. @@ -5294,9 +4571,7 @@ public function isReversed() * @return bool Whether the column is static * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultColumn/#method-isStatic */ - public function isStatic() - { - } + public function isStatic() {} /** * Returns true for frozen columns. @@ -5304,9 +4579,7 @@ public function isStatic() * @return bool Whether the column is frozen * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultColumn/#method-isFrozen */ - public function isFrozen() - { - } + public function isFrozen() {} /** * Returns name of the index if defined. @@ -5314,9 +4587,7 @@ public function isFrozen() * @return string Name of the index if defined or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultColumn/#method-indexName */ - public function indexName() - { - } + public function indexName() {} /** * Returns index options if present. @@ -5324,10 +4595,7 @@ public function indexName() * @return string Index options if present or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultColumn/#method-indexOptions */ - public function indexOptions() - { - } - + public function indexOptions() {} } /** @@ -5336,7 +4604,6 @@ public function indexOptions() */ final class Blob implements Value { - /** * Creates a new bytes array. * @@ -5344,9 +4611,7 @@ final class Blob implements Value * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Blob/#method-__construct */ - public function __construct($bytes) - { - } + public function __construct($bytes) {} /** * Returns bytes as a hex string. @@ -5354,9 +4619,7 @@ public function __construct($bytes) * @return string bytes as hexadecimal string * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Blob/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * The type of this blob. @@ -5364,9 +4627,7 @@ public function __toString() * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Blob/#method-type */ - public function type() - { - } + public function type() {} /** * Returns bytes as a hex string. @@ -5374,9 +4635,7 @@ public function type() * @return string bytes as hexadecimal string * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Blob/#method-bytes */ - public function bytes() - { - } + public function bytes() {} /** * Returns bytes as a binary string. @@ -5384,10 +4643,7 @@ public function bytes() * @return string bytes as binary string * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Blob/#method-toBinaryString */ - public function toBinaryString() - { - } - + public function toBinaryString() {} } /** @@ -5396,16 +4652,13 @@ public function toBinaryString() */ final class DefaultTable implements Table { - /** * Returns the name of this table * * @return string Name of the table * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-name */ - public function name() - { - } + public function name() {} /** * Return a table's option by name @@ -5415,9 +4668,7 @@ public function name() * @return \Cassandra\Value Value of an option by name * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-option */ - public function option($name) - { - } + public function option($name) {} /** * Returns all the table's options @@ -5425,9 +4676,7 @@ public function option($name) * @return array A dictionary of `string` and `Value` pairs of the table's options. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-options */ - public function options() - { - } + public function options() {} /** * Description of the table, if any @@ -5435,9 +4684,7 @@ public function options() * @return string Table description or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-comment */ - public function comment() - { - } + public function comment() {} /** * Returns read repair chance @@ -5445,9 +4692,7 @@ public function comment() * @return float Read repair chance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-readRepairChance */ - public function readRepairChance() - { - } + public function readRepairChance() {} /** * Returns local read repair chance @@ -5455,9 +4700,7 @@ public function readRepairChance() * @return float Local read repair chance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-localReadRepairChance */ - public function localReadRepairChance() - { - } + public function localReadRepairChance() {} /** * Returns GC grace seconds @@ -5465,9 +4708,7 @@ public function localReadRepairChance() * @return int GC grace seconds * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-gcGraceSeconds */ - public function gcGraceSeconds() - { - } + public function gcGraceSeconds() {} /** * Returns caching options @@ -5475,9 +4716,7 @@ public function gcGraceSeconds() * @return string Caching options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-caching */ - public function caching() - { - } + public function caching() {} /** * Returns bloom filter FP chance @@ -5485,9 +4724,7 @@ public function caching() * @return float Bloom filter FP chance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-bloomFilterFPChance */ - public function bloomFilterFPChance() - { - } + public function bloomFilterFPChance() {} /** * Returns memtable flush period in milliseconds @@ -5495,9 +4732,7 @@ public function bloomFilterFPChance() * @return int Memtable flush period in milliseconds * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-memtableFlushPeriodMs */ - public function memtableFlushPeriodMs() - { - } + public function memtableFlushPeriodMs() {} /** * Returns default TTL. @@ -5505,9 +4740,7 @@ public function memtableFlushPeriodMs() * @return int Default TTL. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-defaultTTL */ - public function defaultTTL() - { - } + public function defaultTTL() {} /** * Returns speculative retry. @@ -5515,9 +4748,7 @@ public function defaultTTL() * @return string Speculative retry. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-speculativeRetry */ - public function speculativeRetry() - { - } + public function speculativeRetry() {} /** * Returns index interval @@ -5525,9 +4756,7 @@ public function speculativeRetry() * @return int Index interval * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-indexInterval */ - public function indexInterval() - { - } + public function indexInterval() {} /** * Returns compaction strategy class name @@ -5535,9 +4764,7 @@ public function indexInterval() * @return string Compaction strategy class name * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-compactionStrategyClassName */ - public function compactionStrategyClassName() - { - } + public function compactionStrategyClassName() {} /** * Returns compaction strategy options @@ -5545,9 +4772,7 @@ public function compactionStrategyClassName() * @return \Cassandra\Map Compaction strategy options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-compactionStrategyOptions */ - public function compactionStrategyOptions() - { - } + public function compactionStrategyOptions() {} /** * Returns compression parameters @@ -5555,9 +4780,7 @@ public function compactionStrategyOptions() * @return \Cassandra\Map Compression parameters * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-compressionParameters */ - public function compressionParameters() - { - } + public function compressionParameters() {} /** * Returns whether or not the `populate_io_cache_on_flush` is true @@ -5565,9 +4788,7 @@ public function compressionParameters() * @return bool Value of `populate_io_cache_on_flush` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-populateIOCacheOnFlush */ - public function populateIOCacheOnFlush() - { - } + public function populateIOCacheOnFlush() {} /** * Returns whether or not the `replicate_on_write` is true @@ -5575,9 +4796,7 @@ public function populateIOCacheOnFlush() * @return bool Value of `replicate_on_write` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-replicateOnWrite */ - public function replicateOnWrite() - { - } + public function replicateOnWrite() {} /** * Returns the value of `max_index_interval` @@ -5585,9 +4804,7 @@ public function replicateOnWrite() * @return int Value of `max_index_interval` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-maxIndexInterval */ - public function maxIndexInterval() - { - } + public function maxIndexInterval() {} /** * Returns the value of `min_index_interval` @@ -5595,9 +4812,7 @@ public function maxIndexInterval() * @return int Value of `min_index_interval` or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-minIndexInterval */ - public function minIndexInterval() - { - } + public function minIndexInterval() {} /** * Returns column by name @@ -5607,9 +4822,7 @@ public function minIndexInterval() * @return \Cassandra\Column Column instance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-column */ - public function column($name) - { - } + public function column($name) {} /** * Returns all columns in this table @@ -5617,9 +4830,7 @@ public function column($name) * @return array A list of `Column` instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-columns */ - public function columns() - { - } + public function columns() {} /** * Returns the partition key columns of the table @@ -5627,9 +4838,7 @@ public function columns() * @return array A list of of `Column` instance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-partitionKey */ - public function partitionKey() - { - } + public function partitionKey() {} /** * Returns both the partition and clustering key columns of the table @@ -5637,9 +4846,7 @@ public function partitionKey() * @return array A list of of `Column` instance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-primaryKey */ - public function primaryKey() - { - } + public function primaryKey() {} /** * Returns the clustering key columns of the table @@ -5647,17 +4854,13 @@ public function primaryKey() * @return array A list of of `Column` instances * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-clusteringKey */ - public function clusteringKey() - { - } + public function clusteringKey() {} /** * @return array A list of cluster column orders ('asc' and 'desc') * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-clusteringOrder */ - public function clusteringOrder() - { - } + public function clusteringOrder() {} /** * Get an index by name @@ -5667,9 +4870,7 @@ public function clusteringOrder() * @return \Cassandra\Index|null An index or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-index */ - public function index($name) - { - } + public function index($name) {} /** * Gets all indexes @@ -5677,9 +4878,7 @@ public function index($name) * @return array An array of indexes * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-indexes */ - public function indexes() - { - } + public function indexes() {} /** * Get materialized view by name @@ -5689,9 +4888,7 @@ public function indexes() * @return \Cassandra\MaterizedView|null A materialized view or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-materializedView */ - public function materializedView($name) - { - } + public function materializedView($name) {} /** * Gets all materialized views @@ -5699,10 +4896,7 @@ public function materializedView($name) * @return array An array of materialized views * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.DefaultTable/#method-materializedViews */ - public function materializedViews() - { - } - + public function materializedViews() {} } /** @@ -5711,11 +4905,10 @@ public function materializedViews() */ final class FutureValue implements Future { - /** * Waits for a given future resource to resolve and throws errors if any. * - * @param int|double|null $timeout A timeout in seconds + * @param int|float|null $timeout A timeout in seconds * * @return mixed A value * @throws \Cassandra\Exception\TimeoutException @@ -5723,10 +4916,7 @@ final class FutureValue implements Future * @throws \Cassandra\Exception\InvalidArgumentException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.FutureValue/#method-get */ - public function get($timeout) - { - } - + public function get($timeout) {} } /** @@ -5737,7 +4927,6 @@ public function get($timeout) */ final class Decimal implements Value, Numeric { - /** * Creates a decimal from a given decimal string: * @@ -5750,9 +4939,7 @@ final class Decimal implements Value, Numeric * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-__construct */ - public function __construct($value) - { - } + public function __construct($value) {} /** * String representation of this decimal. @@ -5760,9 +4947,7 @@ public function __construct($value) * @return string Decimal value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * The type of this decimal. @@ -5770,9 +4955,7 @@ public function __toString() * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-type */ - public function type() - { - } + public function type() {} /** * Numeric value of this decimal as string. @@ -5780,9 +4963,7 @@ public function type() * @return string Numeric value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-value */ - public function value() - { - } + public function value() {} /** * Scale of this decimal as int. @@ -5790,9 +4971,7 @@ public function value() * @return int Scale * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-scale */ - public function scale() - { - } + public function scale() {} /** * @param \Cassandra\Numeric $num a number to add to this one @@ -5800,9 +4979,7 @@ public function scale() * @return \Cassandra\Numeric sum * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-add */ - public function add($num) - { - } + public function add($num) {} /** * @param \Cassandra\Numeric $num a number to subtract from this one @@ -5810,9 +4987,7 @@ public function add($num) * @return \Cassandra\Numeric difference * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-sub */ - public function sub($num) - { - } + public function sub($num) {} /** * @param \Cassandra\Numeric $num a number to multiply this one by @@ -5820,9 +4995,7 @@ public function sub($num) * @return \Cassandra\Numeric product * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-mul */ - public function mul($num) - { - } + public function mul($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -5830,9 +5003,7 @@ public function mul($num) * @return \Cassandra\Numeric quotient * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-div */ - public function div($num) - { - } + public function div($num) {} /** * @param \Cassandra\Numeric $num a number to divide this one by @@ -5840,50 +5011,37 @@ public function div($num) * @return \Cassandra\Numeric remainder * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-mod */ - public function mod($num) - { - } + public function mod($num) {} /** * @return \Cassandra\Numeric absolute value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-abs */ - public function abs() - { - } + public function abs() {} /** * @return \Cassandra\Numeric negative value * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-neg */ - public function neg() - { - } + public function neg() {} /** * @return \Cassandra\Numeric square root * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-sqrt */ - public function sqrt() - { - } + public function sqrt() {} /** * @return int this number as int * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-toInt */ - public function toInt() - { - } + public function toInt() {} /** * @return float this number as float * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Decimal/#method-toDouble */ - public function toDouble() - { - } - + public function toDouble() {} } /** @@ -5894,7 +5052,6 @@ public function toDouble() */ final class FutureClose implements Future { - /** * Waits for a given future resource to resolve and throws errors if any. * @@ -5906,10 +5063,7 @@ final class FutureClose implements Future * @throws \Cassandra\Exception\InvalidArgumentException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.FutureClose/#method-get */ - public function get($timeout) - { - } - + public function get($timeout) {} } /** @@ -5925,11 +5079,7 @@ public function get($timeout) */ final class PreparedStatement implements Statement { - - private function __construct() - { - } - + private function __construct() {} } /** @@ -5944,7 +5094,6 @@ private function __construct() #[Deprecated('Use an array of options instead of creating an instance of this class.')] final class ExecutionOptions { - /** * Creates a new options object for execution. * @@ -5955,9 +5104,7 @@ final class ExecutionOptions * @see \Cassandra\Session::execute() for valid execution options * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.ExecutionOptions/#method-__construct */ - public function __construct($options) - { - } + public function __construct($options) {} /** * @param mixed $name @@ -5965,10 +5112,7 @@ public function __construct($options) * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.ExecutionOptions/#method-__get */ - public function __get($name) - { - } - + public function __get($name) {} } /** @@ -5977,7 +5121,6 @@ public function __get($name) */ final class UserTypeValue implements Value, \Countable, \Iterator { - /** * Creates a new user type value with the given name/type pairs. * @@ -5985,9 +5128,7 @@ final class UserTypeValue implements Value, \Countable, \Iterator * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-__construct */ - public function __construct($types) - { - } + public function __construct($types) {} /** * The type of this user type value. @@ -5995,9 +5136,7 @@ public function __construct($types) * @return \Cassandra\Type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-type */ - public function type() - { - } + public function type() {} /** * Array of values in this user type value. @@ -6005,9 +5144,7 @@ public function type() * @return array values * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-values */ - public function values() - { - } + public function values() {} /** * Sets the value at name in this user type value. @@ -6017,9 +5154,7 @@ public function values() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-set */ - public function set($value) - { - } + public function set($value) {} /** * Retrieves the value at a given name. @@ -6029,9 +5164,7 @@ public function set($value) * @return mixed A value or null * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-get */ - public function get($name) - { - } + public function get($name) {} /** * Total number of elements in this user type value. @@ -6039,9 +5172,7 @@ public function get($name) * @return int count * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-count */ - public function count() - { - } + public function count() {} /** * Current element for iteration @@ -6049,9 +5180,7 @@ public function count() * @return mixed The current element * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-current */ - public function current() - { - } + public function current() {} /** * Current key for iteration @@ -6059,9 +5188,7 @@ public function current() * @return int current key * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-key */ - public function key() - { - } + public function key() {} /** * Move internal iterator forward @@ -6069,9 +5196,7 @@ public function key() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-next */ - public function next() - { - } + public function next() {} /** * Check whether a current value exists @@ -6079,9 +5204,7 @@ public function next() * @return bool * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-valid */ - public function valid() - { - } + public function valid() {} /** * Rewind internal iterator @@ -6089,12 +5212,8 @@ public function valid() * @return void * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.UserTypeValue/#method-rewind */ - public function rewind() - { - } - + public function rewind() {} } - } /** @@ -6102,7 +5221,6 @@ public function rewind() */ namespace Cassandra\Cluster { - /** * Cluster builder allows fluent configuration of the cluster instance. * @@ -6111,16 +5229,13 @@ public function rewind() */ final class Builder { - /** * Returns a Cluster Instance. * * @return \Cassandra\Cluster Cluster instance * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-build */ - public function build() - { - } + public function build() {} /** * Configures default consistency for all requests. @@ -6130,9 +5245,7 @@ public function build() * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withDefaultConsistency */ - public function withDefaultConsistency($consistency) - { - } + public function withDefaultConsistency($consistency) {} /** * Configures default page size for all results. @@ -6143,9 +5256,7 @@ public function withDefaultConsistency($consistency) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withDefaultPageSize */ - public function withDefaultPageSize($pageSize) - { - } + public function withDefaultPageSize($pageSize) {} /** * Configures default timeout for future resolution in blocking operations @@ -6156,9 +5267,7 @@ public function withDefaultPageSize($pageSize) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withDefaultTimeout */ - public function withDefaultTimeout($timeout) - { - } + public function withDefaultTimeout($timeout) {} /** * Configures the initial endpoints. Note that the driver will @@ -6169,9 +5278,7 @@ public function withDefaultTimeout($timeout) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withContactPoints */ - public function withContactPoints(...$host) - { - } + public function withContactPoints(...$host) {} /** * Specify a different port to be used when connecting to the cluster. @@ -6183,9 +5290,7 @@ public function withContactPoints(...$host) * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withPort */ - public function withPort($port) - { - } + public function withPort($port) {} /** * Configures this cluster to use a round robin load balancing policy. @@ -6193,9 +5298,7 @@ public function withPort($port) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withRoundRobinLoadBalancingPolicy */ - public function withRoundRobinLoadBalancingPolicy() - { - } + public function withRoundRobinLoadBalancingPolicy() {} /** * Configures this cluster to use a datacenter aware round robin load balancing policy. @@ -6207,9 +5310,7 @@ public function withRoundRobinLoadBalancingPolicy() * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withDatacenterAwareRoundRobinLoadBalancingPolicy */ - public function withDatacenterAwareRoundRobinLoadBalancingPolicy($localDatacenter, $hostPerRemoteDatacenter, $useRemoteDatacenterForLocalConsistencies) - { - } + public function withDatacenterAwareRoundRobinLoadBalancingPolicy($localDatacenter, $hostPerRemoteDatacenter, $useRemoteDatacenterForLocalConsistencies) {} /** * Sets the blacklist hosts. Any host in the blacklist will be ignored and @@ -6221,9 +5322,7 @@ public function withDatacenterAwareRoundRobinLoadBalancingPolicy($localDatacente * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withBlackListHosts */ - public function withBlackListHosts($hosts) - { - } + public function withBlackListHosts($hosts) {} /** * Sets the whitelist hosts. Any host not in the whitelist will be ignored @@ -6235,9 +5334,7 @@ public function withBlackListHosts($hosts) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withWhiteListHosts */ - public function withWhiteListHosts($hosts) - { - } + public function withWhiteListHosts($hosts) {} /** * Sets the blacklist datacenters. Any datacenter in the blacklist will be @@ -6250,9 +5347,7 @@ public function withWhiteListHosts($hosts) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withBlackListDCs */ - public function withBlackListDCs($dcs) - { - } + public function withBlackListDCs($dcs) {} /** * Sets the whitelist datacenters. Any host not in a whitelisted datacenter @@ -6264,9 +5359,7 @@ public function withBlackListDCs($dcs) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withWhiteListDCs */ - public function withWhiteListDCs($dcs) - { - } + public function withWhiteListDCs($dcs) {} /** * Enable token aware routing. @@ -6276,9 +5369,7 @@ public function withWhiteListDCs($dcs) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withTokenAwareRouting */ - public function withTokenAwareRouting($enabled) - { - } + public function withTokenAwareRouting($enabled) {} /** * Configures plain-text authentication. @@ -6289,9 +5380,7 @@ public function withTokenAwareRouting($enabled) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withCredentials */ - public function withCredentials($username, $password) - { - } + public function withCredentials($username, $password) {} /** * Timeout used for establishing TCP connections. @@ -6301,9 +5390,7 @@ public function withCredentials($username, $password) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withConnectTimeout */ - public function withConnectTimeout($timeout) - { - } + public function withConnectTimeout($timeout) {} /** * Timeout used for waiting for a response from a node. @@ -6313,9 +5400,7 @@ public function withConnectTimeout($timeout) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withRequestTimeout */ - public function withRequestTimeout($timeout) - { - } + public function withRequestTimeout($timeout) {} /** * Set up ssl context. @@ -6325,9 +5410,7 @@ public function withRequestTimeout($timeout) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withSSL */ - public function withSSL($options) - { - } + public function withSSL($options) {} /** * Enable persistent sessions and clusters. @@ -6337,9 +5420,7 @@ public function withSSL($options) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withPersistentSessions */ - public function withPersistentSessions($enabled) - { - } + public function withPersistentSessions($enabled) {} /** * Force the driver to use a specific binary protocol version. @@ -6356,9 +5437,7 @@ public function withPersistentSessions($enabled) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withProtocolVersion */ - public function withProtocolVersion($version) - { - } + public function withProtocolVersion($version) {} /** * Total number of IO threads to use for handling the requests. @@ -6371,9 +5450,7 @@ public function withProtocolVersion($version) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withIOThreads */ - public function withIOThreads($count) - { - } + public function withIOThreads($count) {} /** * Set the size of connection pools used by the driver. Pools are fixed @@ -6389,9 +5466,7 @@ public function withIOThreads($count) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withConnectionsPerHost */ - public function withConnectionsPerHost($core, $max) - { - } + public function withConnectionsPerHost($core, $max) {} /** * Specify interval in seconds that the driver should wait before attempting @@ -6402,9 +5477,7 @@ public function withConnectionsPerHost($core, $max) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withReconnectInterval */ - public function withReconnectInterval($interval) - { - } + public function withReconnectInterval($interval) {} /** * Enables/disables latency-aware routing. @@ -6414,9 +5487,7 @@ public function withReconnectInterval($interval) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withLatencyAwareRouting */ - public function withLatencyAwareRouting($enabled) - { - } + public function withLatencyAwareRouting($enabled) {} /** * Disables nagle algorithm for lower latency. @@ -6426,9 +5497,7 @@ public function withLatencyAwareRouting($enabled) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withTCPNodelay */ - public function withTCPNodelay($enabled) - { - } + public function withTCPNodelay($enabled) {} /** * Enables/disables TCP keepalive. @@ -6441,9 +5510,7 @@ public function withTCPNodelay($enabled) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withTCPKeepalive */ - public function withTCPKeepalive($delay) - { - } + public function withTCPKeepalive($delay) {} /** * Configures the retry policy. @@ -6453,9 +5520,7 @@ public function withTCPKeepalive($delay) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withRetryPolicy */ - public function withRetryPolicy($policy) - { - } + public function withRetryPolicy($policy) {} /** * Sets the timestamp generator. @@ -6466,9 +5531,7 @@ public function withRetryPolicy($policy) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withTimestampGenerator */ - public function withTimestampGenerator($generator) - { - } + public function withTimestampGenerator($generator) {} /** * Enables/disables Schema Metadata. @@ -6483,9 +5546,7 @@ public function withTimestampGenerator($generator) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withSchemaMetadata */ - public function withSchemaMetadata($enabled) - { - } + public function withSchemaMetadata($enabled) {} /** * Enables/disables Hostname Resolution. @@ -6503,9 +5564,7 @@ public function withSchemaMetadata($enabled) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withHostnameResolution */ - public function withHostnameResolution($enabled) - { - } + public function withHostnameResolution($enabled) {} /** * Enables/disables Randomized Contact Points. @@ -6521,9 +5580,7 @@ public function withHostnameResolution($enabled) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withRandomizedContactPoints */ - public function withRandomizedContactPoints($enabled) - { - } + public function withRandomizedContactPoints($enabled) {} /** * Specify interval in seconds that the driver should wait before attempting @@ -6536,12 +5593,8 @@ public function withRandomizedContactPoints($enabled) * @return \Cassandra\Cluster\Builder self * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withConnectionHeartbeatInterval */ - public function withConnectionHeartbeatInterval($interval) - { - } - + public function withConnectionHeartbeatInterval($interval) {} } - } /** @@ -6549,15 +5602,11 @@ public function withConnectionHeartbeatInterval($interval) */ namespace Cassandra\TimestampGenerator { - /** * A timestamp generator that allows the server-side to assign timestamps. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/TimestampGenerator/class.ServerSide/ */ - final class ServerSide implements \Cassandra\TimestampGenerator - { - - } + final class ServerSide implements \Cassandra\TimestampGenerator {} /** * A timestamp generator that generates monotonically increasing timestamps @@ -6569,11 +5618,7 @@ final class ServerSide implements \Cassandra\TimestampGenerator * the next clock tick. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/TimestampGenerator/class.Monotonic/ */ - final class Monotonic implements \Cassandra\TimestampGenerator - { - - } - + final class Monotonic implements \Cassandra\TimestampGenerator {} } /** @@ -6581,7 +5626,6 @@ final class Monotonic implements \Cassandra\TimestampGenerator */ namespace Cassandra\RetryPolicy { - /** * The default retry policy. This policy retries a query, using the * request's original consistency level, in the following cases: @@ -6593,10 +5637,7 @@ final class Monotonic implements \Cassandra\TimestampGenerator * In all other cases the error will be returned. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/RetryPolicy/class.DefaultPolicy/ */ - final class DefaultPolicy implements \Cassandra\RetryPolicy - { - - } + final class DefaultPolicy implements \Cassandra\RetryPolicy {} /** * A retry policy that will downgrade the consistency of a request in @@ -6620,19 +5661,13 @@ final class DefaultPolicy implements \Cassandra\RetryPolicy * consistency level. Using this policy can break consistency guarantees. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/RetryPolicy/class.DowngradingConsistency/ */ - final class DowngradingConsistency implements \Cassandra\RetryPolicy - { - - } + final class DowngradingConsistency implements \Cassandra\RetryPolicy {} /** * A retry policy that never retries and allows all errors to fallthrough. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/RetryPolicy/class.Fallthrough/ */ - final class Fallthrough implements \Cassandra\RetryPolicy - { - - } + final class Fallthrough implements \Cassandra\RetryPolicy {} /** * A retry policy that logs the decisions of its child policy. @@ -6640,7 +5675,6 @@ final class Fallthrough implements \Cassandra\RetryPolicy */ final class Logging implements \Cassandra\RetryPolicy { - /** * Creates a new Logging retry policy. * @@ -6648,12 +5682,8 @@ final class Logging implements \Cassandra\RetryPolicy * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/RetryPolicy/class.Logging/#method-__construct */ - public function __construct($childPolicy) - { - } - + public function __construct($childPolicy) {} } - } /** @@ -6661,7 +5691,6 @@ public function __construct($childPolicy) */ namespace Cassandra\Type { - /** * A class that represents the tuple type. The tuple type is able to represent * a composite type of one or more types accessed by index. @@ -6669,10 +5698,7 @@ public function __construct($childPolicy) */ final class Tuple extends \Cassandra\Type { - - private function __construct() - { - } + private function __construct() {} /** * Returns "tuple" @@ -6680,9 +5706,7 @@ private function __construct() * @return string "tuple" * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Tuple/#method-name */ - public function name() - { - } + public function name() {} /** * Returns type representation in CQL, e.g. `tuple` @@ -6690,9 +5714,7 @@ public function name() * @return string Type representation in CQL * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Tuple/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * Returns types of values @@ -6700,9 +5722,7 @@ public function __toString() * @return array An array of types * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Tuple/#method-types */ - public function types() - { - } + public function types() {} /** * Creates a new Tuple from the given values. When no values given, @@ -6717,10 +5737,7 @@ public function types() * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Tuple/#method-create */ - public function create(...$values) - { - } - + public function create(...$values) {} } /** @@ -6730,10 +5747,7 @@ public function create(...$values) */ final class Collection extends \Cassandra\Type { - - private function __construct() - { - } + private function __construct() {} /** * Returns "list" @@ -6741,9 +5755,7 @@ private function __construct() * @return string "list" * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Collection/#method-name */ - public function name() - { - } + public function name() {} /** * Returns type of values @@ -6751,9 +5763,7 @@ public function name() * @return \Cassandra\Type Type of values * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Collection/#method-valueType */ - public function valueType() - { - } + public function valueType() {} /** * Returns type representation in CQL, e.g. `list` @@ -6761,9 +5771,7 @@ public function valueType() * @return string Type representation in CQL * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Collection/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * Creates a new Collection from the given values. When no values @@ -6778,10 +5786,7 @@ public function __toString() * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Collection/#method-create */ - public function create(...$value) - { - } - + public function create(...$value) {} } /** @@ -6791,10 +5796,7 @@ public function create(...$value) */ final class Set extends \Cassandra\Type { - - private function __construct() - { - } + private function __construct() {} /** * Returns "set" @@ -6802,9 +5804,7 @@ private function __construct() * @return string "set" * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Set/#method-name */ - public function name() - { - } + public function name() {} /** * Returns type of values @@ -6812,9 +5812,7 @@ public function name() * @return \Cassandra\Type Type of values * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Set/#method-valueType */ - public function valueType() - { - } + public function valueType() {} /** * Returns type representation in CQL, e.g. `set` @@ -6822,9 +5820,7 @@ public function valueType() * @return string Type representation in CQL * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Set/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * Creates a new Set from the given values. @@ -6838,10 +5834,7 @@ public function __toString() * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Set/#method-create */ - public function create(...$value) - { - } - + public function create(...$value) {} } /** @@ -6850,10 +5843,7 @@ public function create(...$value) */ final class Custom extends \Cassandra\Type { - - private function __construct() - { - } + private function __construct() {} /** * Returns the name of this type as string. @@ -6861,9 +5851,7 @@ private function __construct() * @return string The name of this type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Custom/#method-name */ - public function name() - { - } + public function name() {} /** * Returns string representation of this type. @@ -6871,9 +5859,7 @@ public function name() * @return string String representation of this type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Custom/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * @param mixed $value @@ -6881,10 +5867,7 @@ public function __toString() * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Custom/#method-create */ - public function create($value) - { - } - + public function create($value) {} } /** @@ -6894,10 +5877,7 @@ public function create($value) */ final class UserType extends \Cassandra\Type { - - private function __construct() - { - } + private function __construct() {} /** * Associate the user type with a name. @@ -6907,9 +5887,7 @@ private function __construct() * @return null Nothing. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.UserType/#method-withName */ - public function withName($name) - { - } + public function withName($name) {} /** * Returns type name for the user type @@ -6917,9 +5895,7 @@ public function withName($name) * @return string Name of this type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.UserType/#method-name */ - public function name() - { - } + public function name() {} /** * Associate the user type with a keyspace. @@ -6929,9 +5905,7 @@ public function name() * @return null Nothing. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.UserType/#method-withKeyspace */ - public function withKeyspace($keyspace) - { - } + public function withKeyspace($keyspace) {} /** * Returns keyspace for the user type @@ -6939,9 +5913,7 @@ public function withKeyspace($keyspace) * @return string * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.UserType/#method-keyspace */ - public function keyspace() - { - } + public function keyspace() {} /** * Returns type representation in CQL, e.g. keyspace1.type_name1 or @@ -6950,9 +5922,7 @@ public function keyspace() * @return string Type representation in CQL * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.UserType/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * Returns types of values @@ -6960,9 +5930,7 @@ public function __toString() * @return array An array of types * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.UserType/#method-types */ - public function types() - { - } + public function types() {} /** * Creates a new UserTypeValue from the given name/value pairs. When @@ -6977,10 +5945,7 @@ public function types() * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.UserType/#method-create */ - public function create(...$value) - { - } - + public function create(...$value) {} } /** @@ -6990,10 +5955,7 @@ public function create(...$value) */ final class Map extends \Cassandra\Type { - - private function __construct() - { - } + private function __construct() {} /** * Returns "map" @@ -7001,9 +5963,7 @@ private function __construct() * @return string "map" * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Map/#method-name */ - public function name() - { - } + public function name() {} /** * Returns type of keys @@ -7011,9 +5971,7 @@ public function name() * @return \Cassandra\Type Type of keys * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Map/#method-keyType */ - public function keyType() - { - } + public function keyType() {} /** * Returns type of values @@ -7021,9 +5979,7 @@ public function keyType() * @return \Cassandra\Type Type of values * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Map/#method-valueType */ - public function valueType() - { - } + public function valueType() {} /** * Returns type representation in CQL, e.g. `map` @@ -7031,9 +5987,7 @@ public function valueType() * @return string Type representation in CQL * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Map/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * Creates a new Map from the given values. @@ -7063,10 +6017,7 @@ public function __toString() * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Map/#method-create */ - public function create(...$value) - { - } - + public function create(...$value) {} } /** @@ -7075,10 +6026,7 @@ public function create(...$value) */ final class Scalar extends \Cassandra\Type { - - private function __construct() - { - } + private function __construct() {} /** * Returns the name of this type as string. @@ -7086,9 +6034,7 @@ private function __construct() * @return string Name of this type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Scalar/#method-name */ - public function name() - { - } + public function name() {} /** * Returns string representation of this type. @@ -7096,9 +6042,7 @@ public function name() * @return string String representation of this type * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Scalar/#method-__toString */ - public function __toString() - { - } + public function __toString() {} /** * @param mixed $value @@ -7106,12 +6050,8 @@ public function __toString() * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Scalar/#method-create */ - public function create($value) - { - } - + public function create($value) {} } - } /** @@ -7119,7 +6059,6 @@ public function create($value) */ namespace Cassandra\SSLOptions { - /** * SSLOptions builder allows fluent configuration of ssl options. * @@ -7129,16 +6068,13 @@ public function create($value) */ final class Builder { - /** * Builds SSL options. * * @return \Cassandra\SSLOptions ssl options configured accordingly. * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/SSLOptions/class.Builder/#method-build */ - public function build() - { - } + public function build() {} /** * Adds a trusted certificate. This is used to verify node's identity. @@ -7150,9 +6086,7 @@ public function build() * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/SSLOptions/class.Builder/#method-withTrustedCerts */ - public function withTrustedCerts(...$path) - { - } + public function withTrustedCerts(...$path) {} /** * Disable certificate verification. @@ -7164,9 +6098,7 @@ public function withTrustedCerts(...$path) * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/SSLOptions/class.Builder/#method-withVerifyFlags */ - public function withVerifyFlags($flags) - { - } + public function withVerifyFlags($flags) {} /** * Set client-side certificate chain. @@ -7181,9 +6113,7 @@ public function withVerifyFlags($flags) * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/SSLOptions/class.Builder/#method-withClientCert */ - public function withClientCert($path) - { - } + public function withClientCert($path) {} /** * Set client-side private key. This is used to authenticate the client on @@ -7197,12 +6127,8 @@ public function withClientCert($path) * * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/SSLOptions/class.Builder/#method-withPrivateKey */ - public function withPrivateKey($path, $passphrase) - { - } - + public function withPrivateKey($path, $passphrase) {} } - } /** @@ -7221,7 +6147,6 @@ public function withPrivateKey($path, $passphrase) */ class ConfigurationException extends ValidationException { - /** * @param mixed $message * @param mixed $code @@ -7230,26 +6155,19 @@ class ConfigurationException extends ValidationException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ConfigurationException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ConfigurationException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ConfigurationException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7258,7 +6176,6 @@ public function __toString() */ class DomainException extends \DomainException implements \Cassandra\Exception { - /** * @param mixed $message * @param mixed $code @@ -7267,26 +6184,19 @@ class DomainException extends \DomainException implements \Cassandra\Exception * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.DomainException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.DomainException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.DomainException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7296,7 +6206,6 @@ public function __toString() */ class InvalidQueryException extends ValidationException { - /** * @param mixed $message * @param mixed $code @@ -7305,26 +6214,19 @@ class InvalidQueryException extends ValidationException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.InvalidQueryException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.InvalidQueryException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.InvalidQueryException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7335,7 +6237,6 @@ public function __toString() */ class UnpreparedException extends ValidationException { - /** * @param mixed $message * @param mixed $code @@ -7344,26 +6245,19 @@ class UnpreparedException extends ValidationException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.UnpreparedException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.UnpreparedException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.UnpreparedException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7372,7 +6266,6 @@ public function __toString() */ class InvalidArgumentException extends \InvalidArgumentException implements \Cassandra\Exception { - /** * @param mixed $message * @param mixed $code @@ -7381,26 +6274,19 @@ class InvalidArgumentException extends \InvalidArgumentException implements \Cas * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.InvalidArgumentException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.InvalidArgumentException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.InvalidArgumentException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7411,7 +6297,6 @@ public function __toString() */ class ServerException extends RuntimeException { - /** * @param mixed $message * @param mixed $code @@ -7420,26 +6305,19 @@ class ServerException extends RuntimeException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ServerException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ServerException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ServerException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7448,7 +6326,6 @@ public function __toString() */ class RangeException extends \RangeException implements \Cassandra\Exception { - /** * @param mixed $message * @param mixed $code @@ -7457,26 +6334,19 @@ class RangeException extends \RangeException implements \Cassandra\Exception * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.RangeException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.RangeException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.RangeException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7486,7 +6356,6 @@ public function __toString() */ class UnauthorizedException extends ValidationException { - /** * @param mixed $message * @param mixed $code @@ -7495,26 +6364,19 @@ class UnauthorizedException extends ValidationException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.UnauthorizedException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.UnauthorizedException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.UnauthorizedException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7523,7 +6385,6 @@ public function __toString() */ class LogicException extends \LogicException implements \Cassandra\Exception { - /** * @param mixed $message * @param mixed $code @@ -7532,26 +6393,19 @@ class LogicException extends \LogicException implements \Cassandra\Exception * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.LogicException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.LogicException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.LogicException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7564,7 +6418,6 @@ public function __toString() */ class UnavailableException extends ExecutionException { - /** * @param mixed $message * @param mixed $code @@ -7573,26 +6426,19 @@ class UnavailableException extends ExecutionException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.UnavailableException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.UnavailableException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.UnavailableException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7602,7 +6448,6 @@ public function __toString() */ class AuthenticationException extends RuntimeException { - /** * @param mixed $message * @param mixed $code @@ -7611,26 +6456,19 @@ class AuthenticationException extends RuntimeException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.AuthenticationException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.AuthenticationException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.AuthenticationException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7639,7 +6477,6 @@ public function __toString() */ class OverloadedException extends ServerException { - /** * @param mixed $message * @param mixed $code @@ -7648,26 +6485,19 @@ class OverloadedException extends ServerException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.OverloadedException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.OverloadedException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.OverloadedException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7678,7 +6508,6 @@ public function __toString() */ class ReadTimeoutException extends ExecutionException { - /** * @param mixed $message * @param mixed $code @@ -7687,26 +6516,19 @@ class ReadTimeoutException extends ExecutionException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ReadTimeoutException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ReadTimeoutException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ReadTimeoutException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7715,7 +6537,6 @@ public function __toString() */ class IsBootstrappingException extends ServerException { - /** * @param mixed $message * @param mixed $code @@ -7724,26 +6545,19 @@ class IsBootstrappingException extends ServerException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.IsBootstrappingException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.IsBootstrappingException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.IsBootstrappingException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7754,7 +6568,6 @@ public function __toString() */ class ProtocolException extends RuntimeException { - /** * @param mixed $message * @param mixed $code @@ -7763,26 +6576,19 @@ class ProtocolException extends RuntimeException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ProtocolException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ProtocolException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ProtocolException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7795,7 +6601,6 @@ public function __toString() */ class ExecutionException extends RuntimeException { - /** * @param mixed $message * @param mixed $code @@ -7804,26 +6609,19 @@ class ExecutionException extends RuntimeException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ExecutionException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ExecutionException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ExecutionException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7832,7 +6630,6 @@ public function __toString() */ class InvalidSyntaxException extends ValidationException { - /** * @param mixed $message * @param mixed $code @@ -7841,26 +6638,19 @@ class InvalidSyntaxException extends ValidationException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.InvalidSyntaxException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.InvalidSyntaxException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.InvalidSyntaxException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7869,7 +6659,6 @@ public function __toString() */ class RuntimeException extends \RuntimeException implements \Cassandra\Exception { - /** * @param mixed $message * @param mixed $code @@ -7878,26 +6667,19 @@ class RuntimeException extends \RuntimeException implements \Cassandra\Exception * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.RuntimeException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.RuntimeException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.RuntimeException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7907,7 +6689,6 @@ public function __toString() */ class TimeoutException extends RuntimeException { - /** * @param mixed $message * @param mixed $code @@ -7916,26 +6697,19 @@ class TimeoutException extends RuntimeException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.TimeoutException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.TimeoutException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.TimeoutException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7951,7 +6725,6 @@ public function __toString() */ class ValidationException extends RuntimeException { - /** * @param mixed $message * @param mixed $code @@ -7960,26 +6733,19 @@ class ValidationException extends RuntimeException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ValidationException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ValidationException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.ValidationException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -7989,7 +6755,6 @@ public function __toString() */ class TruncateException extends ExecutionException { - /** * @param mixed $message * @param mixed $code @@ -7998,26 +6763,19 @@ class TruncateException extends ExecutionException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.TruncateException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.TruncateException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.TruncateException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -8026,7 +6784,6 @@ public function __toString() */ class AlreadyExistsException extends ConfigurationException { - /** * @param mixed $message * @param mixed $code @@ -8035,26 +6792,19 @@ class AlreadyExistsException extends ConfigurationException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.AlreadyExistsException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.AlreadyExistsException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.AlreadyExistsException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -8063,7 +6813,6 @@ public function __toString() */ class DivideByZeroException extends RangeException { - /** * @param mixed $message * @param mixed $code @@ -8072,26 +6821,19 @@ class DivideByZeroException extends RangeException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.DivideByZeroException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.DivideByZeroException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.DivideByZeroException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } /** @@ -8102,7 +6844,6 @@ public function __toString() */ class WriteTimeoutException extends ExecutionException { - /** * @param mixed $message * @param mixed $code @@ -8111,26 +6852,18 @@ class WriteTimeoutException extends ExecutionException * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.WriteTimeoutException/#method-__construct */ #[Pure] - public function __construct($message, $code, $previous) - { - } + public function __construct($message, $code, $previous) {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.WriteTimeoutException/#method-__wakeup */ - public function __wakeup() - { - } + public function __wakeup() {} /** * @return mixed * @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/class.WriteTimeoutException/#method-__toString */ - public function __toString() - { - } - + public function __toString() {} } - } diff --git a/com_dotnet/com_dotnet.php b/com_dotnet/com_dotnet.php index a1b2f9245..fd2cc25d2 100644 --- a/com_dotnet/com_dotnet.php +++ b/com_dotnet/com_dotnet.php @@ -6,8 +6,8 @@ * The COM class allows you to instantiate an OLE compatible COM object and call its methods and access its properties. * @link https://php.net/manual/en/class.com.php */ -class COM { - +class COM +{ /** * (PHP 4 >= 4.1.0, PHP 5, PHP 7)
    * COM class constructor. @@ -16,22 +16,21 @@ class COM { * @param int $codepage [optional] * @param string $typelib [optional] */ - public function __construct ( $module_name, $server_name = null, $codepage = CP_ACP, $typelib = null) {} - - public function __get ($name) {} + public function __construct($module_name, $server_name = null, $codepage = CP_ACP, $typelib = null) {} - public function __set ($name, $value) {} + public function __get($name) {} - public function __call ($name, $args) {} + public function __set($name, $value) {} + public function __call($name, $args) {} } /** * The DOTNET class allows you to instantiate a class from a .Net assembly and call its methods and access its properties. * @link https://php.net/manual/en/class.dotnet.php */ -class DOTNET { - +class DOTNET +{ /** * (PHP 4 >= 4.1.0, PHP 5, PHP 7)
    * COM class constructor. @@ -39,22 +38,21 @@ class DOTNET { * @param string $class_name * @param int $codepage [optional] */ - public function __construct ( $assembly_name , string $class_name, $codepage = CP_ACP ) {} + public function __construct($assembly_name, string $class_name, $codepage = CP_ACP) {} - public function __get ($name) {} + public function __get($name) {} - public function __set ($name, $value) {} - - public function __call ($name, $args) {} + public function __set($name, $value) {} + public function __call($name, $args) {} } /** * The VARIANT is COM's equivalent of the PHP zval; it is a structure that can contain a value with a range of different possible types. The VARIANT class provided by the COM extension allows you to have more control over the way that PHP passes values to and from COM. * @link https://php.net/manual/en/class.variant.php */ -class VARIANT { - +class VARIANT +{ /** * (PHP 4 >= 4.1.0, PHP 5, PHP 7)
    * COM class constructor. @@ -62,14 +60,13 @@ class VARIANT { * @param int $type [optional] * @param int $codepage [optional] */ - public function __construct ( $value = null , int $type = VT_EMPTY, $codepage = CP_ACP ) {} - - public function __get ($name) {} + public function __construct($value = null, int $type = VT_EMPTY, $codepage = CP_ACP) {} - public function __set ($name, $value) {} + public function __get($name) {} - public function __call ($name, $args) {} + public function __set($name, $value) {} + public function __call($name, $args) {} } /** @@ -84,7 +81,7 @@ class com_exception extends \Exception {} * @link https://php.net/manual/en/function.com-create-guid.php * @return string */ -function com_create_guid () {} +function com_create_guid() {} /** * (PHP 4 >= 4.2.0, PHP 5, PHP 7)
    @@ -95,7 +92,7 @@ function com_create_guid () {} * @param string $sinkinterface [optional] * @return bool */ -function com_event_sink ( $comobject, $sinkobject, $sinkinterface = null) {} +function com_event_sink($comobject, $sinkobject, $sinkinterface = null) {} /** * (PHP 5, PHP 7)
    @@ -105,7 +102,7 @@ function com_event_sink ( $comobject, $sinkobject, $sinkinterface = null) {} * @param int $code_page [optional] * @return \VARIANT */ -function com_get_active_object ( $progid, $code_page = CP_ACP ) {} +function com_get_active_object($progid, $code_page = CP_ACP) {} /** * (PHP 4 >= 4.1.0, PHP 5, PHP 7)
    @@ -115,7 +112,7 @@ function com_get_active_object ( $progid, $code_page = CP_ACP ) {} * @param bool $case_insensitive [optional] * @return bool */ -function com_load_typelib ( $typelib_name, $case_insensitive = true ) {} +function com_load_typelib($typelib_name, $case_insensitive = true) {} /** * (PHP 4 >= 4.2.0, PHP 5, PHP 7)
    @@ -124,7 +121,7 @@ function com_load_typelib ( $typelib_name, $case_insensitive = true ) {} * @param int $timeoutms [optional] * @return bool */ -function com_message_pump ( $timeoutms = 0 ) {} +function com_message_pump($timeoutms = 0) {} /** * (PHP 4 >= 4.2.0, PHP 5, PHP 7)
    @@ -135,7 +132,7 @@ function com_message_pump ( $timeoutms = 0 ) {} * @param bool $wantsink [optional] * @return bool */ -function com_print_typeinfo ( $comobject, $dispinterface = null, $wantsink = false ) {} +function com_print_typeinfo($comobject, $dispinterface = null, $wantsink = false) {} /** * (PHP 5, PHP 7)
    @@ -144,7 +141,7 @@ function com_print_typeinfo ( $comobject, $dispinterface = null, $wantsink = fal * @param mixed $val * @return mixed */ -function variant_abs ( $val ) {} +function variant_abs($val) {} /** * (PHP 5, PHP 7)
    @@ -154,7 +151,7 @@ function variant_abs ( $val ) {} * @param mixed $right * @return mixed */ -function variant_add ( $left, $right ) {} +function variant_add($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -164,7 +161,7 @@ function variant_add ( $left, $right ) {} * @param mixed $right * @return mixed */ -function variant_and ( $left, $right ) {} +function variant_and($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -174,7 +171,7 @@ function variant_and ( $left, $right ) {} * @param int $type * @return \VARIANT */ -function variant_cast ( $variant, $type ) {} +function variant_cast($variant, $type) {} /** * (PHP 5, PHP 7)
    @@ -184,7 +181,7 @@ function variant_cast ( $variant, $type ) {} * @param mixed $right * @return mixed */ -function variant_cat ( $left, $right ) {} +function variant_cat($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -196,7 +193,7 @@ function variant_cat ( $left, $right ) {} * @param int $flags [optional] * @return int */ -function variant_cmp ( $left, $right, $lcid = null, $flags = null ) {} +function variant_cmp($left, $right, $lcid = null, $flags = null) {} /** * (PHP 5, PHP 7)
    @@ -205,7 +202,7 @@ function variant_cmp ( $left, $right, $lcid = null, $flags = null ) {} * @param int $timestamp * @return \VARIANT */ -function variant_date_from_timestamp ( $timestamp ) {} +function variant_date_from_timestamp($timestamp) {} /** * (PHP 5, PHP 7)
    @@ -214,7 +211,7 @@ function variant_date_from_timestamp ( $timestamp ) {} * @param \VARIANT $variant * @return int */ -function variant_date_to_timestamp ( $variant ) {} +function variant_date_to_timestamp($variant) {} /** * (PHP 5, PHP 7)
    @@ -224,7 +221,7 @@ function variant_date_to_timestamp ( $variant ) {} * @param mixed $right * @return mixed */ -function variant_div ( $left, $right ) {} +function variant_div($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -234,7 +231,7 @@ function variant_div ( $left, $right ) {} * @param mixed $right * @return mixed */ -function variant_eqv ( $left, $right ) {} +function variant_eqv($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -243,7 +240,7 @@ function variant_eqv ( $left, $right ) {} * @param mixed $variant * @return mixed */ -function variant_fix ( $variant ) {} +function variant_fix($variant) {} /** * (PHP 5, PHP 7)
    @@ -252,7 +249,7 @@ function variant_fix ( $variant ) {} * @param VARIANT $variant * @return int */ -function variant_get_type ( $variant ) {} +function variant_get_type($variant) {} /** * (PHP 5, PHP 7)
    @@ -262,7 +259,7 @@ function variant_get_type ( $variant ) {} * @param mixed $right * @return mixed */ -function variant_idiv ( $left, $right ) {} +function variant_idiv($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -272,7 +269,7 @@ function variant_idiv ( $left, $right ) {} * @param mixed $right * @return mixed */ -function variant_imp ( $left, $right ) {} +function variant_imp($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -281,7 +278,7 @@ function variant_imp ( $left, $right ) {} * @param mixed $variant * @return mixed */ -function variant_int ( $variant ) {} +function variant_int($variant) {} /** * (PHP 5, PHP 7)
    @@ -291,7 +288,7 @@ function variant_int ( $variant ) {} * @param mixed $right * @return mixed */ -function variant_mod ( $left, $right ) {} +function variant_mod($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -301,7 +298,7 @@ function variant_mod ( $left, $right ) {} * @param mixed $right * @return mixed */ -function variant_mul ( $left, $right ) {} +function variant_mul($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -310,7 +307,7 @@ function variant_mul ( $left, $right ) {} * @param mixed $variant * @return mixed */ -function variant_neg ( $variant ) {} +function variant_neg($variant) {} /** * (PHP 5, PHP 7)
    @@ -319,7 +316,7 @@ function variant_neg ( $variant ) {} * @param mixed $variant * @return mixed */ -function variant_not ( $variant ) {} +function variant_not($variant) {} /** * (PHP 5, PHP 7)
    @@ -329,7 +326,7 @@ function variant_not ( $variant ) {} * @param mixed $right * @return mixed */ -function variant_or ( $left, $right ) {} +function variant_or($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -339,7 +336,7 @@ function variant_or ( $left, $right ) {} * @param mixed $right * @return mixed */ -function variant_pow ( $left, $right ) {} +function variant_pow($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -349,7 +346,7 @@ function variant_pow ( $left, $right ) {} * @param int $decimals * @return mixed */ -function variant_round ( $variant, $decimals ) {} +function variant_round($variant, $decimals) {} /** * (PHP 5, PHP 7)
    @@ -359,7 +356,7 @@ function variant_round ( $variant, $decimals ) {} * @param int $type * @return void */ -function variant_set_type ( $variant, $type ) {} +function variant_set_type($variant, $type) {} /** * (PHP 5, PHP 7)
    @@ -369,7 +366,7 @@ function variant_set_type ( $variant, $type ) {} * @param mixed $value * @return void */ -function variant_set ( $variant, $value ) {} +function variant_set($variant, $value) {} /** * (PHP 5, PHP 7)
    @@ -379,7 +376,7 @@ function variant_set ( $variant, $value ) {} * @param mixed $right * @return mixed */ -function variant_sub ( $left, $right ) {} +function variant_sub($left, $right) {} /** * (PHP 5, PHP 7)
    @@ -389,62 +386,61 @@ function variant_sub ( $left, $right ) {} * @param mixed $right * @return mixed */ -function variant_xor ( $left, $right ) {} - -define ('CLSCTX_INPROC_SERVER', 1); -define ('CLSCTX_INPROC_HANDLER', 2); -define ('CLSCTX_LOCAL_SERVER', 4); -define ('CLSCTX_REMOTE_SERVER', 16); -define ('CLSCTX_SERVER', 21); -define ('CLSCTX_ALL', 23); - -define ('VT_NULL', 1); -define ('VT_EMPTY', 0); -define ('VT_UI1', 17); -define ('VT_I2', 2); -define ('VT_I4', 3); -define ('VT_R4', 4); -define ('VT_R8', 5); -define ('VT_BOOL', 11); -define ('VT_ERROR', 10); -define ('VT_CY', 6); -define ('VT_DATE', 7); -define ('VT_BSTR', 8); -define ('VT_DECIMAL', 14); -define ('VT_UNKNOWN', 13); -define ('VT_DISPATCH', 9); -define ('VT_VARIANT', 12); -define ('VT_I1', 16); -define ('VT_UI2', 18); -define ('VT_UI4', 19); -define ('VT_INT', 22); -define ('VT_UINT', 23); -define ('VT_ARRAY', 8192); -define ('VT_BYREF', 16384); - -define ('CP_ACP', 0); -define ('CP_MACCP', 2); -define ('CP_OEMCP', 1); -define ('CP_UTF7', 65000); -define ('CP_UTF8', 65001); -define ('CP_SYMBOL', 42); -define ('CP_THREAD_ACP', 3); - -define ('VARCMP_LT', 0); -define ('VARCMP_EQ', 1); -define ('VARCMP_GT', 2); -define ('VARCMP_NULL', 3); - -define ('NORM_IGNORECASE', 1); -define ('NORM_IGNORENONSPACE', 2); -define ('NORM_IGNORESYMBOLS', 4); -define ('NORM_IGNOREWIDTH', 131072); -define ('NORM_IGNOREKANATYPE', 65536); -define ('NORM_IGNOREKASHIDA', 262144); - -define ('DISP_E_DIVBYZERO', -2147352558); -define ('DISP_E_OVERFLOW', -2147352566); -define ('MK_E_UNAVAILABLE', -2147221021); +function variant_xor($left, $right) {} + +define('CLSCTX_INPROC_SERVER', 1); +define('CLSCTX_INPROC_HANDLER', 2); +define('CLSCTX_LOCAL_SERVER', 4); +define('CLSCTX_REMOTE_SERVER', 16); +define('CLSCTX_SERVER', 21); +define('CLSCTX_ALL', 23); + +define('VT_NULL', 1); +define('VT_EMPTY', 0); +define('VT_UI1', 17); +define('VT_I2', 2); +define('VT_I4', 3); +define('VT_R4', 4); +define('VT_R8', 5); +define('VT_BOOL', 11); +define('VT_ERROR', 10); +define('VT_CY', 6); +define('VT_DATE', 7); +define('VT_BSTR', 8); +define('VT_DECIMAL', 14); +define('VT_UNKNOWN', 13); +define('VT_DISPATCH', 9); +define('VT_VARIANT', 12); +define('VT_I1', 16); +define('VT_UI2', 18); +define('VT_UI4', 19); +define('VT_INT', 22); +define('VT_UINT', 23); +define('VT_ARRAY', 8192); +define('VT_BYREF', 16384); + +define('CP_ACP', 0); +define('CP_MACCP', 2); +define('CP_OEMCP', 1); +define('CP_UTF7', 65000); +define('CP_UTF8', 65001); +define('CP_SYMBOL', 42); +define('CP_THREAD_ACP', 3); + +define('VARCMP_LT', 0); +define('VARCMP_EQ', 1); +define('VARCMP_GT', 2); +define('VARCMP_NULL', 3); + +define('NORM_IGNORECASE', 1); +define('NORM_IGNORENONSPACE', 2); +define('NORM_IGNORESYMBOLS', 4); +define('NORM_IGNOREWIDTH', 131072); +define('NORM_IGNOREKANATYPE', 65536); +define('NORM_IGNOREKASHIDA', 262144); + +define('DISP_E_DIVBYZERO', -2147352558); +define('DISP_E_OVERFLOW', -2147352566); +define('MK_E_UNAVAILABLE', -2147221021); // End of com v. -?> diff --git a/couchbase/couchbase.php b/couchbase/couchbase.php index c7ed16f3e..0ee4a0695 100644 --- a/couchbase/couchbase.php +++ b/couchbase/couchbase.php @@ -60,7 +60,9 @@ * * @package Couchbase */ -namespace Couchbase { + +namespace Couchbase; + /** If igbinary extension was not found during build phase this constant will store 0 */ define("Couchbase\\HAVE_IGBINARY", 1); /** If libz headers was not found during build phase this constant will store 0 */ @@ -212,8 +214,7 @@ function basicEncoderV1($value, $options) {} /** * Exception represeting all errors generated by the extension */ - class Exception extends \Exception { - } + class Exception extends \Exception {} /** * Represents Couchbase Document, which stores metadata and the value. @@ -222,7 +223,8 @@ class Exception extends \Exception { * * @see \Couchbase\Bucket */ - class Document { + class Document +{ /** * @var Exception exception object in case of error, or NULL */ @@ -263,7 +265,8 @@ class Document { * @see \Couchbase\Bucket::mutateIn() * @see \Couchbase\Bucket::lookupIn() */ - class DocumentFragment { + class DocumentFragment +{ /** * @var Exception exception object in case of error, or NULL */ @@ -303,7 +306,8 @@ class DocumentFragment { * @see \Couchbase\ClusterManager * @see \Couchbase\Authenticator */ - class Cluster { + class Cluster +{ /** * Create cluster object * @@ -363,16 +367,16 @@ public function authenticateAs($username, $password) {} * * @see \Couchbase\Cluster */ - class ClusterManager { + class ClusterManager +{ /** * The user account managed by Couchbase Cluster. */ - const RBAC_DOMAIN_LOCAL = 1; + public const RBAC_DOMAIN_LOCAL = 1; /** * The user account managed by external system (e.g. LDAP). */ - const RBAC_DOMAIN_EXTERNAL = 2; - + public const RBAC_DOMAIN_EXTERNAL = 2; final private function __construct() {} @@ -479,7 +483,8 @@ public function removeUser($name, $domain = RBAC_DOMAIN_LOCAL) {} * * @see https://developer.couchbase.com/documentation/server/5.0/rest-api/rbac.html */ - class UserSettings { + class UserSettings +{ /** * Sets full name of the user (optional). * @@ -595,16 +600,16 @@ public function role($role, $bucket = null) {} * @see https://developer.couchbase.com/documentation/server/current/sdk/php/start-using-sdk.html * Start Using SDK */ - class Bucket { + class Bucket +{ /** Ping data (Key/Value) service. */ - const PINGSVC_KV = 0x01; + public const PINGSVC_KV = 0x01; /** Ping query (N1QL) service. */ - const PINGSVC_N1QL = 0x02; + public const PINGSVC_N1QL = 0x02; /** Ping views (Map/Reduce) service. */ - const PINGSVC_VIEWS = 0x04; + public const PINGSVC_VIEWS = 0x04; /** Ping full text search (FTS) service. */ - const PINGSVC_FTS = 0x08; - + public const PINGSVC_FTS = 0x08; final private function __construct() {} @@ -1321,8 +1326,8 @@ public function decryptFields($document, $fieldOptions, $prefix = null) {} /** * Provides management capabilities for the Couchbase Bucket */ - class BucketManager { - + class BucketManager +{ final private function __construct() {} /** @@ -1450,7 +1455,8 @@ interface Authenticator {} * @see \Couchbase\Cluster::authenticate() * @see \Couchbase\Authenticator */ - class ClassicAuthenticator implements Authenticator { + class ClassicAuthenticator implements Authenticator +{ /** * Registers cluster management credentials in the container * @@ -1476,7 +1482,8 @@ public function bucket($name, $password) {} * @see \Couchbase\Cluster::authenticate() * @see \Couchbase\Authenticator */ - class PasswordAuthenticator implements Authenticator { + class PasswordAuthenticator implements Authenticator +{ /** * Sets username * @@ -1497,8 +1504,8 @@ public function password($password) {} /** * An object which contains meta information of the document needed to enforce query consistency. */ - class MutationToken { - + class MutationToken +{ final private function __construct() {} /** @@ -1543,8 +1550,8 @@ public function sequenceNumber() {} /** * Container for mutation tokens. */ - class MutationState { - + class MutationState +{ final private function __construct() {} /** @@ -1573,13 +1580,14 @@ public function add($source) {} * @see \Couchbase\ViewQuery * @see \Couchbase\SpatialViewQuery */ - interface ViewQueryEncodable { + interface ViewQueryEncodable +{ /** * Returns associative array, representing the View query. * * @return array object which is ready to be serialized. */ - function encode(); + public function encode(); } /** @@ -1594,17 +1602,17 @@ function encode(); * @see https://developer.couchbase.com/documentation/server/current/rest-api/rest-views-get.html * Getting Views Information */ - class ViewQuery implements ViewQueryEncodable { + class ViewQuery implements ViewQueryEncodable +{ /** Force a view update before returning data */ - const UPDATE_BEFORE = 1; + public const UPDATE_BEFORE = 1; /** Allow stale views */ - const UPDATE_NONE = 2; + public const UPDATE_NONE = 2; /** Allow stale view, update view after it has been accessed. */ - const UPDATE_AFTER = 3; - - const ORDER_ASCENDING = 1; - const ORDER_DESCENDING = 2; + public const UPDATE_AFTER = 3; + public const ORDER_ASCENDING = 1; + public const ORDER_DESCENDING = 2; final private function __construct() {} @@ -1630,7 +1638,7 @@ public static function fromSpatial($designDocumentName, $viewName) {} * * @return array object which is ready to be serialized. */ - function encode() {} + public function encode() {} /** * Limits the result set to a specified number rows. @@ -1769,8 +1777,8 @@ public function custom($customParameters) {} * @see https://developer.couchbase.com/documentation/server/current/views/sv-query-parameters.html * Querying spatial views */ - class SpatialViewQuery implements ViewQueryEncodable { - + class SpatialViewQuery implements ViewQueryEncodable +{ final private function __construct() {} /** @@ -1778,7 +1786,7 @@ final private function __construct() {} * * @return array object which is ready to be serialized. */ - function encode() {} + public function encode() {} /** * Limits the result set to a specified number rows. @@ -1880,41 +1888,41 @@ public function custom($customParameters) {} * @see https://developer.couchbase.com/documentation/server/current/performance/indexing-and-query-perf.html * Indexing JSON Documents and Query Performance */ - class N1qlQuery { + class N1qlQuery +{ /** * This is the default (for single-statement requests). * No timestamp vector is used in the index scan. * This is also the fastest mode, because we avoid the cost of obtaining the vector, * and we also avoid any wait for the index to catch up to the vector. */ - const NOT_BOUNDED = 1; + public const NOT_BOUNDED = 1; /** * This implements strong consistency per request. * Before processing the request, a current vector is obtained. * The vector is used as a lower bound for the statements in the request. * If there are DML statements in the request, RYOW is also applied within the request. */ - const REQUEST_PLUS = 2; + public const REQUEST_PLUS = 2; /** * This implements strong consistency per statement. * Before processing each statement, a current vector is obtained * and used as a lower bound for that statement. */ - const STATEMENT_PLUS = 3; + public const STATEMENT_PLUS = 3; /** * Disables profiling. This is the default */ - const PROFILE_NONE = 'off'; + public const PROFILE_NONE = 'off'; /** * Enables phase profiling. */ - const PROFILE_PHASES = 'phases'; + public const PROFILE_PHASES = 'phases'; /** * Enables general timing profiling. */ - const PROFILE_TIMINGS = 'timings'; - + public const PROFILE_TIMINGS = 'timings'; final private function __construct() {} @@ -1960,7 +1968,6 @@ public function crossBucket($crossBucket) {} * * @param array $params * @return N1qlQuery - * */ public function positionalParams($params) {} @@ -1974,7 +1981,6 @@ public function positionalParams($params) {} * * @param array $params * @return N1qlQuery - * */ public function namedParams($params) {} @@ -2008,7 +2014,6 @@ public function profile($profileType) {} * @return N1qlQuery * * @see \Couchbase\MutationState - * */ public function consistentWith($state) {} @@ -2073,11 +2078,11 @@ public function maxParallelism($maxParallelism) {} * @see https://developer.couchbase.com/documentation/server/current/performance/indexing-and-query-perf.html * Indexing JSON Documents and Query Performance */ - class N1qlIndex { - const UNSPECIFIED = 0; - const GSI = 1; - const VIEW = 2; - + class N1qlIndex +{ + public const UNSPECIFIED = 0; + public const GSI = 1; + public const VIEW = 2; final private function __construct() {} @@ -2091,7 +2096,7 @@ final private function __construct() {} /** * Is it primary index * - * @var boolean + * @var bool */ public $isPrimary; @@ -2154,8 +2159,8 @@ final private function __construct() {} * @see https://developer.couchbase.com/documentation/server/current/sdk/subdocument-operations.html * Sub-Document Operations */ - class LookupInBuilder { - + class LookupInBuilder +{ final private function __construct() {} /** @@ -2198,7 +2203,6 @@ public function exists($path, $options = []) {} /** * Perform several lookup operations inside a single existing JSON document, using a specific timeout * @return DocumentFragment - * */ public function execute() {} } @@ -2213,11 +2217,11 @@ public function execute() {} * @see https://developer.couchbase.com/documentation/server/current/sdk/subdocument-operations.html * Sub-Document Operations */ - class MutateInBuilder { - const FULLDOC_REPLACE = 0; - const FULLDOC_UPSERT = 1; - const FULLDOC_INSERT = 2; - + class MutateInBuilder +{ + public const FULLDOC_REPLACE = 0; + public const FULLDOC_UPSERT = 1; + public const FULLDOC_INSERT = 2; final private function __construct() {} @@ -2235,7 +2239,6 @@ final private function __construct() {} */ public function insert($path, $value, $options = []) {} - /** * Select mode for new full-document operations. * @@ -2432,7 +2435,6 @@ public function withExpiry($expiry) {} /** * Perform several mutation operations inside a single existing JSON document. * @return DocumentFragment - * */ public function execute() {} } @@ -2443,10 +2445,11 @@ public function execute() {} * @see https://developer.couchbase.com/documentation/server/4.6/sdk/php/full-text-searching-with-sdk.html * Searching from the SDK */ - class SearchQuery implements \JsonSerializable { - const HIGHLIGHT_HTML = 'html'; - const HIGHLIGHT_ANSI = 'ansi'; - const HIGHLIGHT_SIMPLE = 'simple'; + class SearchQuery implements \JsonSerializable +{ + public const HIGHLIGHT_HTML = 'html'; + public const HIGHLIGHT_ANSI = 'ansi'; + public const HIGHLIGHT_SIMPLE = 'simple'; /** * Prepare boolean search query @@ -2758,8 +2761,8 @@ interface SearchQueryPart {} /** * A FTS query that queries fields explicitly indexed as boolean. */ - class BooleanFieldSearchQuery implements \JsonSerializable, SearchQueryPart { - + class BooleanFieldSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -2783,8 +2786,8 @@ public function field($field) {} /** * A compound FTS query that allows various combinations of sub-queries. */ - class BooleanSearchQuery implements \JsonSerializable, SearchQueryPart { - + class BooleanSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -2820,8 +2823,8 @@ public function should(...$queries) {} /** * A compound FTS query that performs a logical AND between all its sub-queries (conjunction). */ - class ConjunctionSearchQuery implements \JsonSerializable, SearchQueryPart { - + class ConjunctionSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -2842,13 +2845,12 @@ public function boost($boost) {} public function every(...$queries) {} } - /** * A compound FTS query that performs a logical OR between all its sub-queries (disjunction). It requires that a * minimum of the queries match. The minimum is configurable (default 1). */ - class DisjunctionSearchQuery implements \JsonSerializable, SearchQueryPart { - + class DisjunctionSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -2873,15 +2875,14 @@ public function either(...$queries) {} * @return DisjunctionSearchQuery */ public function min($min) {} - } /** * A FTS query that matches documents on a range of values. At least one bound is required, and the * inclusiveness of each bound can be configured. */ - class DateRangeSearchQuery implements \JsonSerializable, SearchQueryPart { - + class DateRangeSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -2930,8 +2931,8 @@ public function dateTimeParser($dateTimeParser) {} * A FTS query that matches documents on a range of values. At least one bound is required, and the * inclusiveness of each bound can be configured. */ - class NumericRangeSearchQuery implements \JsonSerializable, SearchQueryPart { - + class NumericRangeSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -2970,8 +2971,8 @@ public function max($max, $inclusive = false) {} * A FTS query that matches on Couchbase document IDs. Useful to restrict the search space to a list of keys (by using * this in a compound query). */ - class DocIdSearchQuery implements \JsonSerializable, SearchQueryPart { - + class DocIdSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3001,8 +3002,8 @@ public function docIds(...$documentIds) {} /** * A FTS query that matches all indexed documents (usually for debugging purposes). */ - class MatchAllSearchQuery implements \JsonSerializable, SearchQueryPart { - + class MatchAllSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3020,8 +3021,8 @@ public function boost($boost) {} /** * A FTS query that matches 0 document (usually for debugging purposes). */ - class MatchNoneSearchQuery implements \JsonSerializable, SearchQueryPart { - + class MatchNoneSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3040,8 +3041,8 @@ public function boost($boost) {} * A FTS query that matches several given terms (a "phrase"), applying further processing * like analyzers to them. */ - class MatchPhraseSearchQuery implements \JsonSerializable, SearchQueryPart { - + class MatchPhraseSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3072,8 +3073,8 @@ public function analyzer($analyzer) {} * A FTS query that matches a given term, applying further processing to it * like analyzers, stemming and even #fuzziness(int). */ - class MatchSearchQuery implements \JsonSerializable, SearchQueryPart { - + class MatchSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3117,8 +3118,8 @@ public function fuzziness($fuzziness) {} * applied to them, so they must appear in the index exactly as provided. Usually for debugging purposes, prefer * MatchPhraseQuery. */ - class PhraseSearchQuery implements \JsonSerializable, SearchQueryPart { - + class PhraseSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3142,8 +3143,8 @@ public function field($field) {} /** * A FTS query that allows for simple matching of regular expressions. */ - class RegexpSearchQuery implements \JsonSerializable, SearchQueryPart { - + class RegexpSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3167,8 +3168,8 @@ public function field($field) {} /** * A FTS query that allows for simple matching using wildcard characters (* and ?). */ - class WildcardSearchQuery implements \JsonSerializable, SearchQueryPart { - + class WildcardSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3192,8 +3193,8 @@ public function field($field) {} /** * A FTS query that allows for simple matching on a given prefix. */ - class PrefixSearchQuery implements \JsonSerializable, SearchQueryPart { - + class PrefixSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3217,8 +3218,8 @@ public function field($field) {} /** * A FTS query that performs a search according to the "string query" syntax. */ - class QueryStringSearchQuery implements \JsonSerializable, SearchQueryPart { - + class QueryStringSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3236,8 +3237,8 @@ public function boost($boost) {} /** * A facet that gives the number of occurrences of the most recurring terms in all hits. */ - class TermSearchQuery implements \JsonSerializable, SearchQueryPart { - + class TermSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3274,8 +3275,8 @@ public function fuzziness($fuzziness) {} * A FTS query that matches documents on a range of values. At least one bound is required, and the * inclusiveness of each bound can be configured. */ - class TermRangeSearchQuery implements \JsonSerializable, SearchQueryPart { - + class TermRangeSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3315,8 +3316,8 @@ public function max($max, $inclusive = false) {} * * Both the point and the distance are required. */ - class GeoDistanceSearchQuery implements \JsonSerializable, SearchQueryPart { - + class GeoDistanceSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3340,8 +3341,8 @@ public function field($field) {} /** * A FTS query which allows to match geo bounding boxes. */ - class GeoBoundingBoxSearchQuery implements \JsonSerializable, SearchQueryPart { - + class GeoBoundingBoxSearchQuery implements \JsonSerializable, SearchQueryPart +{ final private function __construct() {} /** @@ -3375,8 +3376,8 @@ interface SearchFacet {} /** * A facet that gives the number of occurrences of the most recurring terms in all hits. */ - class TermSearchFacet implements \JsonSerializable, SearchFacet { - + class TermSearchFacet implements \JsonSerializable, SearchFacet +{ final private function __construct() {} /** @@ -3388,8 +3389,8 @@ public function jsonSerialize() {} /** * A facet that categorizes hits inside date ranges (or buckets) provided by the user. */ - class DateRangeSearchFacet implements \JsonSerializable, SearchFacet { - + class DateRangeSearchFacet implements \JsonSerializable, SearchFacet +{ final private function __construct() {} /** @@ -3409,8 +3410,8 @@ public function addRange($name, $start, $end) {} /** * A facet that categorizes hits into numerical ranges (or buckets) provided by the user. */ - class NumericRangeSearchFacet implements \JsonSerializable, SearchFacet { - + class NumericRangeSearchFacet implements \JsonSerializable, SearchFacet +{ final private function __construct() {} /** @@ -3430,8 +3431,8 @@ public function addRange($name, $min, $max) {} /** * Base class for all FTS sort options in querying. */ - class SearchSort { - + class SearchSort +{ private function __construct() {} /** @@ -3472,8 +3473,8 @@ public static function geoDistance($field, $longitude, $latitude) {} /** * Sort by the document identifier. */ - class SearchSortId extends SearchSort implements \JsonSerializable { - + class SearchSortId extends SearchSort implements \JsonSerializable +{ private function __construct() {} /** @@ -3489,8 +3490,8 @@ public function descending($descending) {} /** * Sort by the hit score. */ - class SearchSortScore extends SearchSort implements \JsonSerializable { - + class SearchSortScore extends SearchSort implements \JsonSerializable +{ private function __construct() {} /** @@ -3506,19 +3507,19 @@ public function descending($descending) {} /** * Sort by a field in the hits. */ - class SearchSortField extends SearchSort implements \JsonSerializable { - const TYPE_AUTO = "auto"; - const TYPE_STRING = "string"; - const TYPE_NUMBER = "number"; - const TYPE_DATE = "date"; - - const MODE_DEFAULT = "default"; - const MODE_MIN = "min"; - const MODE_MAX = "max"; + class SearchSortField extends SearchSort implements \JsonSerializable +{ + public const TYPE_AUTO = "auto"; + public const TYPE_STRING = "string"; + public const TYPE_NUMBER = "number"; + public const TYPE_DATE = "date"; - const MISSING_FIRST = "first"; - const MISSING_LAST = "last"; + public const MODE_DEFAULT = "default"; + public const MODE_MIN = "min"; + public const MODE_MAX = "max"; + public const MISSING_FIRST = "first"; + public const MISSING_LAST = "last"; private function __construct() {} @@ -3567,8 +3568,8 @@ public function missing($missing) {} /** * Sort by a location and unit in the hits. */ - class SearchSortGeoDistance extends SearchSort implements \JsonSerializable { - + class SearchSortGeoDistance extends SearchSort implements \JsonSerializable +{ private function __construct() {} /** @@ -3596,8 +3597,8 @@ public function unit($unit) {} * @see https://developer.couchbase.com/documentation/server/4.5/analytics/quick-start.html * Analytics quick start */ - class AnalyticsQuery { - + class AnalyticsQuery +{ final private function __construct() {} /** @@ -3605,9 +3606,6 @@ final private function __construct() {} * * @param string $statement statement string * @return AnalyticsQuery - * */ public static function fromString($statement) {} } - -} diff --git a/couchbase/toplevel.php b/couchbase/toplevel.php index a5980544d..228288db9 100644 --- a/couchbase/toplevel.php +++ b/couchbase/toplevel.php @@ -7,19 +7,6 @@ * * https://github.com/couchbase/php-couchbase/tree/master/api */ - -use function Couchbase\fastlzCompress as couchbase_fastlz_compress; -use function Couchbase\fastlzDecomress as couchbase_fastlz_decompress; -use function Couchbase\zlibCompress as couchbase_zlib_compress; -use function Couchbase\zlibDecomress as couchbase_zlib_decompress; - -use function Couchbase\passthruEncoder as couchbase_passthru_encoder; -use function Couchbase\passthruDecoder as couchbase_passthru_decoder; -use function Couchbase\defaultEncoder as couchbase_default_encoder; -use function Couchbase\defaultDecoder as couchbase_default_decoder; -use function Couchbase\basicEncoderV1 as couchbase_basic_encoder_v1; -use function Couchbase\basicDecoderV1 as couchbase_basic_decoder_v1; - class_alias("Couchbase\\Cluster", "CouchbaseCluster"); class_alias("Couchbase\\Bucket", "CouchbaseBucket"); class_alias("Couchbase\\MutationToken", "CouchbaseMutationToken"); diff --git a/crypto/crypto.php b/crypto/crypto.php index d9ba96cc3..8910e6e60 100644 --- a/crypto/crypto.php +++ b/crypto/crypto.php @@ -1,19 +1,20 @@ FALSE otherwise. */ #[Pure] -function ctype_alnum (mixed $text): bool -{} +function ctype_alnum(mixed $text): bool {} /** * Check for alphabetic character(s) @@ -25,8 +24,7 @@ function ctype_alnum (mixed $text): bool * a letter from the current locale, FALSE otherwise. */ #[Pure] -function ctype_alpha (mixed $text): bool -{} +function ctype_alpha(mixed $text): bool {} /** * Check for control character(s) @@ -38,8 +36,7 @@ function ctype_alpha (mixed $text): bool * a control character from the current locale, FALSE otherwise. */ #[Pure] -function ctype_cntrl (mixed $text): bool -{} +function ctype_cntrl(mixed $text): bool {} /** * Check for numeric character(s) @@ -51,8 +48,7 @@ function ctype_cntrl (mixed $text): bool * text is a decimal digit, FALSE otherwise. */ #[Pure] -function ctype_digit (mixed $text): bool -{} +function ctype_digit(mixed $text): bool {} /** * Check for lowercase character(s) @@ -64,8 +60,7 @@ function ctype_digit (mixed $text): bool * a lowercase letter in the current locale. */ #[Pure] -function ctype_lower (mixed $text): bool -{} +function ctype_lower(mixed $text): bool {} /** * Check for any printable character(s) except space @@ -78,8 +73,7 @@ function ctype_lower (mixed $text): bool * otherwise. */ #[Pure] -function ctype_graph (mixed $text): bool -{} +function ctype_graph(mixed $text): bool {} /** * Check for printable character(s) @@ -93,8 +87,7 @@ function ctype_graph (mixed $text): bool * that do not have any output or control function at all. */ #[Pure] -function ctype_print (mixed $text): bool -{} +function ctype_print(mixed $text): bool {} /** * Check for any printable character which is not whitespace or an @@ -107,8 +100,7 @@ function ctype_print (mixed $text): bool * is printable, but neither letter, digit or blank, FALSE otherwise. */ #[Pure] -function ctype_punct (mixed $text): bool -{} +function ctype_punct(mixed $text): bool {} /** * Check for whitespace character(s) @@ -122,8 +114,7 @@ function ctype_punct (mixed $text): bool * carriage return and form feed characters. */ #[Pure] -function ctype_space (mixed $text): bool -{} +function ctype_space(mixed $text): bool {} /** * Check for uppercase character(s) @@ -135,8 +126,7 @@ function ctype_space (mixed $text): bool * an uppercase letter in the current locale. */ #[Pure] -function ctype_upper (mixed $text): bool -{} +function ctype_upper(mixed $text): bool {} /** * Check for character(s) representing a hexadecimal digit @@ -149,5 +139,4 @@ function ctype_upper (mixed $text): bool * [A-Fa-f] , FALSE otherwise. */ #[Pure] -function ctype_xdigit (mixed $text): bool -{} +function ctype_xdigit(mixed $text): bool {} diff --git a/cubrid/cubrid.php b/cubrid/cubrid.php index 2ac0e6b55..b70d7c98b 100644 --- a/cubrid/cubrid.php +++ b/cubrid/cubrid.php @@ -37,7 +37,7 @@ * a CUBRID connection identifier on success or false on failure. *

    */ -function cubrid_connect ($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '', $new_link = false) {} +function cubrid_connect($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '', $new_link = false) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -69,7 +69,7 @@ function cubrid_connect ($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '' * a CUBRID connection identifier on success or false on failure. *

    */ -function cubrid_connect_with_url ($conn_url, $userid = 'PUBLIC', $passwd = '', $new_link = false) {} +function cubrid_connect_with_url($conn_url, $userid = 'PUBLIC', $passwd = '', $new_link = false) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -97,7 +97,7 @@ function cubrid_connect_with_url ($conn_url, $userid = 'PUBLIC', $passwd = '', $ * FALSE, when process is unsuccessful. *

    */ -function cubrid_pconnect ($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '') {} +function cubrid_pconnect($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '') {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -120,7 +120,7 @@ function cubrid_pconnect ($host, $port, $dbname, $userid = 'PUBLIC', $passwd = ' * FALSE, when process is unsuccessful. *

    */ -function cubrid_pconnect_with_url ($conn_url, $userid = 'PUBLIC', $passwd = '') {} +function cubrid_pconnect_with_url($conn_url, $userid = 'PUBLIC', $passwd = '') {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -136,7 +136,7 @@ function cubrid_pconnect_with_url ($conn_url, $userid = 'PUBLIC', $passwd = '') * FALSE, when process is unsuccessful. *

    */ -function cubrid_close ($conn_identifier = null) {} +function cubrid_close($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -147,7 +147,7 @@ function cubrid_close ($conn_identifier = null) {} *

    * @return bool Returns true on success or false on failure. */ -function cubrid_disconnect ($conn_identifier = null) {} +function cubrid_disconnect($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -191,7 +191,7 @@ function cubrid_disconnect ($conn_identifier = null) {} * * */ -function cubrid_query ($query, $conn_identifier = null) {} +function cubrid_query($query, $conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -212,7 +212,7 @@ function cubrid_query ($query, $conn_identifier = null) {} * or FALSE, when process is unsuccessful. *

    */ -function cubrid_execute ($conn_identifier, $sql, $option = null) {} +function cubrid_execute($conn_identifier, $sql, $option = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -230,7 +230,7 @@ function cubrid_execute ($conn_identifier, $sql, $option = null) {} * process is unsuccessful. *

    */ -function cubrid_execute ($request_identifier, $option = null) {} +function cubrid_execute($request_identifier, $option = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -258,7 +258,7 @@ function cubrid_execute ($request_identifier, $option = null) {} *

    * @return bool TRUE, when process is successful, otherwise FALSE. */ -function cubrid_bind ($req_identifier, $bind_index, $bind_value, $bind_value_type = null) {} +function cubrid_bind($req_identifier, $bind_index, $bind_value, $bind_value_type = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -269,7 +269,7 @@ function cubrid_bind ($req_identifier, $bind_index, $bind_value, $bind_value_typ *

    * @return bool TRUE, when process is successful, otherwise FALSE. */ -function cubrid_close_prepare ($req_identifier) {} +function cubrid_close_prepare($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -280,7 +280,7 @@ function cubrid_close_prepare ($req_identifier) {} *

    * @return bool TRUE, when process is successful, or FALSE. */ -function cubrid_close_request ($req_identifier) {} +function cubrid_close_request($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -308,7 +308,7 @@ function cubrid_close_request ($req_identifier) {} * * */ -function cubrid_col_get ($conn_identifier, $oid, $attr_name) {} +function cubrid_col_get($conn_identifier, $oid, $attr_name) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -328,7 +328,7 @@ function cubrid_col_get ($conn_identifier, $oid, $attr_name) {} * FALSE, when process is unsuccessful. *

    */ -function cubrid_col_size ($conn_identifier, $oid, $attr_name) {} +function cubrid_col_size($conn_identifier, $oid, $attr_name) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -352,7 +352,7 @@ function cubrid_col_size ($conn_identifier, $oid, $attr_name) {} * or false on error. *

    */ -function cubrid_unbuffered_query ($query, $conn_identifier = null) {} +function cubrid_unbuffered_query($query, $conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -366,7 +366,7 @@ function cubrid_unbuffered_query ($query, $conn_identifier = null) {} * or false on failure. *

    */ -function cubrid_list_dbs ($conn_identifier) {} +function cubrid_list_dbs($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -379,7 +379,7 @@ function cubrid_list_dbs ($conn_identifier) {} * Error message that occurred. *

    */ -function cubrid_error ($connection = null) {} +function cubrid_error($connection = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -390,7 +390,7 @@ function cubrid_error ($connection = null) {} * Error message that occurred. *

    */ -function cubrid_error_msg () {} +function cubrid_error_msg() {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -407,7 +407,7 @@ function cubrid_error_msg () {} * 0 (zero) if no error occurred. *

    */ -function cubrid_errno ($conn_identifier = null) {} +function cubrid_errno($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -419,7 +419,7 @@ function cubrid_errno ($conn_identifier = null) {} * 0 (zero) if no error occurred. *

    */ -function cubrid_error_code () {} +function cubrid_error_code() {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -436,7 +436,7 @@ function cubrid_error_code () {} * and there is no last request. *

    */ -function cubrid_affected_rows ($conn_identifier = null) {} +function cubrid_affected_rows($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -452,7 +452,7 @@ function cubrid_affected_rows ($conn_identifier = null) {} * not generate new rows. FALSE on failure. *

    */ -function cubrid_insert_id ($conn_identifier = null) {} +function cubrid_insert_id($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -477,7 +477,7 @@ function cubrid_insert_id ($conn_identifier = null) {} * FALSE on failure. *

    */ -function cubrid_result ($result, $row, $field = 0) {} +function cubrid_result($result, $row, $field = 0) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -494,7 +494,7 @@ function cubrid_result ($result, $row, $field = 0) {} * FALSE when process is unsuccessful. *

    */ -function cubrid_num_rows ($result) {} +function cubrid_num_rows($result) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -508,7 +508,7 @@ function cubrid_num_rows ($result) {} * FALSE, if SQL statement is not SELECT. *

    */ -function cubrid_num_cols ($result) {} +function cubrid_num_cols($result) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -524,7 +524,7 @@ function cubrid_num_cols ($result) {} * FALSE when process is unsuccessful. *

    */ -function cubrid_num_fields ($result) {} +function cubrid_num_fields($result) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -565,7 +565,7 @@ function cubrid_num_fields ($result) {} * column name such as "count(*)" cannot be received in object type. *

    */ -function cubrid_fetch ($result, $type = CUBRID_BOTH) {} +function cubrid_fetch($result, $type = CUBRID_BOTH) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -584,7 +584,7 @@ function cubrid_fetch ($result, $type = CUBRID_BOTH) {} * NULL, when process is unsuccessful. *

    */ -function cubrid_fetch_row ($result, $type = null) {} +function cubrid_fetch_row($result, $type = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -614,7 +614,7 @@ function cubrid_fetch_row ($result, $type = null) {} *
  • CUBRID_BOTH : Numerical & Associative array (default)
  • * */ -function cubrid_fetch_array ($result, $type = CUBRID_BOTH) {} +function cubrid_fetch_array($result, $type = CUBRID_BOTH) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -633,7 +633,7 @@ function cubrid_fetch_array ($result, $type = CUBRID_BOTH) {} * NULL, when process is unsuccessful. *

    */ -function cubrid_fetch_assoc ($result, $type = null) {} +function cubrid_fetch_assoc($result, $type = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -661,7 +661,7 @@ function cubrid_fetch_assoc ($result, $type = null) {} * are no more rows, or NULL, when process is unsuccessful. *

    */ -function cubrid_fetch_object ($result, $class_name = null, $params = null, $type = null) {} +function cubrid_fetch_object($result, $class_name = null, $params = null, $type = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -677,7 +677,7 @@ function cubrid_fetch_object ($result, $class_name = null, $params = null, $type * Returns TRUE on success or FALSE on failure. *

    */ -function cubrid_data_seek ($result, $row_number) {} +function cubrid_data_seek($result, $row_number) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -692,7 +692,7 @@ function cubrid_data_seek ($result, $row_number) {} * or false on failure. *

    */ -function cubrid_fetch_lengths ($result) {} +function cubrid_fetch_lengths($result) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -726,7 +726,7 @@ function cubrid_fetch_lengths ($result) {} *
  • zerofill - 1 if the column is zero-filled
  • * */ -function cubrid_fetch_field ($result, $field_offset = 0) {} +function cubrid_fetch_field($result, $field_offset = 0) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -740,7 +740,7 @@ function cubrid_fetch_field ($result, $field_offset = 0) {} * when process is successful. FALSE, when process is unsuccessful. *

    */ -function cubrid_column_names ($req_identifier) {} +function cubrid_column_names($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -754,7 +754,7 @@ function cubrid_column_names ($req_identifier) {} * when process is successful. FALSE, when process is unsuccessful. *

    */ -function cubrid_column_types ($req_identifier) {} +function cubrid_column_types($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -772,7 +772,7 @@ function cubrid_column_types ($req_identifier) {} * Returns true on success or false on failure. *

    */ -function cubrid_field_seek ($result, $field_offset) {} +function cubrid_field_seek($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -790,7 +790,7 @@ function cubrid_field_seek ($result, $field_offset) {} * cubrid_close_request(). *

    */ -function cubrid_free_result ($req_identifier) {} +function cubrid_free_result($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -808,7 +808,7 @@ function cubrid_free_result ($req_identifier) {} * success or false on failure. *

    */ -function cubrid_field_name ($result, $field_offset) {} +function cubrid_field_name($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -827,7 +827,7 @@ function cubrid_field_name ($result, $field_offset) {} * -1 if SQL sentence is not SELECT. *

    */ -function cubrid_field_table ($result, $field_offset) {} +function cubrid_field_table($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -844,7 +844,7 @@ function cubrid_field_table ($result, $field_offset) {} * Maximum length, when process is successful. FALSE on failure. *

    */ -function cubrid_field_len ($result, $field_offset) {} +function cubrid_field_len($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -865,7 +865,7 @@ function cubrid_field_len ($result, $field_offset) {} * is not SELECT. *

    */ -function cubrid_field_type ($result, $field_offset) {} +function cubrid_field_type($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -891,7 +891,7 @@ function cubrid_field_type ($result, $field_offset) {} * "reverse_index", "reverse_unique", and "timestamp". *

    */ -function cubrid_field_flags ($result, $field_offset) {} +function cubrid_field_flags($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -909,7 +909,7 @@ function cubrid_field_flags ($result, $field_offset) {} * FALSE on failure. *

    */ -function cubrid_real_escape_string ($unescaped_string, $conn_identifier = null) {} +function cubrid_real_escape_string($unescaped_string, $conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -924,7 +924,7 @@ function cubrid_real_escape_string ($unescaped_string, $conn_identifier = null) * FALSE on failure. *

    */ -function cubrid_client_encoding ($conn_identifier = null) {} +function cubrid_client_encoding($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -940,7 +940,7 @@ function cubrid_client_encoding ($conn_identifier = null) {} * otherwise false. *

    */ -function cubrid_ping ($conn_identifier = null) {} +function cubrid_ping($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -951,7 +951,7 @@ function cubrid_ping ($conn_identifier = null) {} * FALSE on failure. *

    */ -function cubrid_get_client_info () {} +function cubrid_get_client_info() {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -963,7 +963,7 @@ function cubrid_get_client_info () {} * FALSE on failure. *

    */ -function cubrid_get_server_info ($conn_identifier) {} +function cubrid_get_server_info($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -977,7 +977,7 @@ function cubrid_get_server_info ($conn_identifier) {} * FALSE on failure. *

    */ -function cubrid_get_db_parameter ($conn_identifier) {} +function cubrid_get_db_parameter($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.4.0)
    @@ -991,7 +991,7 @@ function cubrid_get_db_parameter ($conn_identifier) {} * NULL on error. *

    */ -function cubrid_get_autocommit ($conn_identifier) {} +function cubrid_get_autocommit($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1005,7 +1005,7 @@ function cubrid_get_autocommit ($conn_identifier) {} * FALSE on failure. *

    */ -function cubrid_get_charset ($conn_identifier) {} +function cubrid_get_charset($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.4.0)
    @@ -1023,7 +1023,7 @@ function cubrid_get_charset ($conn_identifier) {} * process is unsuccessful. *

    */ -function cubrid_set_autocommit ($conn_identifier, $mode) {} +function cubrid_set_autocommit($conn_identifier, $mode) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -1041,7 +1041,7 @@ function cubrid_set_autocommit ($conn_identifier, $mode) {} * of the error. *

    */ -function cubrid_db_name ($result, $index) {} +function cubrid_db_name($result, $index) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -1056,7 +1056,7 @@ function cubrid_db_name ($result, $index) {} * parameters; on success. FALSE on failure. *

    */ -function cubrid_db_parameter ($conn_identifier) {} +function cubrid_db_parameter($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.4.0)
    @@ -1077,7 +1077,7 @@ function cubrid_db_parameter ($conn_identifier) {} * TRUE on success. FALSE on failure. *

    */ -function cubrid_set_db_parameter ($conn_identifier, $param_type, $param_value) {} +function cubrid_set_db_parameter($conn_identifier, $param_type, $param_value) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1091,7 +1091,7 @@ function cubrid_set_db_parameter ($conn_identifier, $param_type, $param_value) { * Units of msec. Failure: FALSE *

    */ -function cubrid_get_query_timeout ($req_identifier) {} +function cubrid_get_query_timeout($req_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1108,7 +1108,7 @@ function cubrid_get_query_timeout ($req_identifier) {} * process is unsuccessful. *

    */ -function cubrid_set_query_timeout ($req_identifier, $timeout) {} +function cubrid_set_query_timeout($req_identifier, $timeout) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1127,7 +1127,7 @@ function cubrid_set_query_timeout ($req_identifier, $timeout) {} * FALSE, when process is unsuccessful. *

    */ -function cubrid_get_class_name ($conn_identifier, $oid) {} +function cubrid_get_class_name($conn_identifier, $oid) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1159,7 +1159,7 @@ function cubrid_get_class_name ($conn_identifier, $oid) {} * error by using cubrid_error_code()). *

    */ -function cubrid_get ($conn_identifier, $oid, $attr = null) {} +function cubrid_get($conn_identifier, $oid, $attr = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1178,7 +1178,7 @@ function cubrid_get ($conn_identifier, $oid, $attr = null) {} * does not exist; -1, in case of error *

    */ -function cubrid_is_instance ($conn_identifier, $oid) {} +function cubrid_is_instance($conn_identifier, $oid) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1192,7 +1192,7 @@ function cubrid_is_instance ($conn_identifier, $oid) {} * process is unsuccessful. *

    */ -function cubrid_commit ($conn_identifier) {} +function cubrid_commit($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1206,7 +1206,7 @@ function cubrid_commit ($conn_identifier) {} * process is unsuccessful. *

    */ -function cubrid_rollback ($conn_identifier) {} +function cubrid_rollback($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1220,7 +1220,7 @@ function cubrid_rollback ($conn_identifier) {} * is successful. FALSE, when process is unsuccessful. *

    */ -function cubrid_current_oid ($req_identifier) {} +function cubrid_current_oid($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1237,7 +1237,7 @@ function cubrid_current_oid ($req_identifier) {} * when process is unsuccessful. *

    */ -function cubrid_drop ($conn_identifier, $oid) {} +function cubrid_drop($conn_identifier, $oid) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1249,7 +1249,7 @@ function cubrid_drop ($conn_identifier, $oid) {} * CUBRID_FACILITY_CCI, CUBRID_FACILITY_CLIENT *

    */ -function cubrid_error_code_facility () {} +function cubrid_error_code_facility() {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -1263,7 +1263,7 @@ function cubrid_error_code_facility () {} * FALSE, when process is unsuccessful. *

    */ -function cubrid_lob_close ($lob_identifier_array) {} +function cubrid_lob_close($lob_identifier_array) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -1283,7 +1283,7 @@ function cubrid_lob_close ($lob_identifier_array) {} * FALSE, when process is unsuccessful. *

    */ -function cubrid_lob_export ($conn_identifier, $lob_identifier, $path_name) {} +function cubrid_lob_export($conn_identifier, $lob_identifier, $path_name) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -1305,7 +1305,7 @@ function cubrid_lob_export ($conn_identifier, $lob_identifier, $path_name) {} * is successful. FALSE, when process is unsuccessful. *

    */ -function cubrid_lob_get ($conn_identifier, $sql) {} +function cubrid_lob_get($conn_identifier, $sql) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -1322,7 +1322,7 @@ function cubrid_lob_get ($conn_identifier, $sql) {} * process is unsuccessful. *

    */ -function cubrid_lob_send ($conn_identifier, $lob_identifier) {} +function cubrid_lob_send($conn_identifier, $lob_identifier) {} /** * (PHP 5, CUBRID >= 8.3.1)
    @@ -1336,7 +1336,7 @@ function cubrid_lob_send ($conn_identifier, $lob_identifier) {} * process is successful. FALSE, when process is unsuccessful. *

    */ -function cubrid_lob_size ($lob_identifier) {} +function cubrid_lob_size($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1361,7 +1361,7 @@ function cubrid_lob_size ($lob_identifier) {} * FALSE, when process is unsuccessful. *

    */ -function cubrid_lob2_bind ($req_identifier, $bind_index, $bind_value, $bind_value_type = null) {} +function cubrid_lob2_bind($req_identifier, $bind_index, $bind_value, $bind_value_type = null) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1376,7 +1376,7 @@ function cubrid_lob2_bind ($req_identifier, $bind_index, $bind_value, $bind_valu * FALSE, on failure. *

    */ -function cubrid_lob2_close ($lob_identifier) {} +function cubrid_lob2_close($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1394,7 +1394,7 @@ function cubrid_lob2_close ($lob_identifier) {} * TRUE if the process is successful and FALSE for failure. *

    */ -function cubrid_lob2_export ($lob_identifier, $file_name) {} +function cubrid_lob2_export($lob_identifier, $file_name) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1412,7 +1412,7 @@ function cubrid_lob2_export ($lob_identifier, $file_name) {} * TRUE if the process is successful and FALSE for failure. *

    */ -function cubrid_lob2_import ($lob_identifier, $file_name) {} +function cubrid_lob2_import($lob_identifier, $file_name) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1431,7 +1431,7 @@ function cubrid_lob2_import ($lob_identifier, $file_name) {} * Lob identifier when it is successful. FALSE on failure. *

    */ -function cubrid_lob2_new ($conn_identifier = null, $type = "BLOB") {} +function cubrid_lob2_new($conn_identifier = null, $type = "BLOB") {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1450,7 +1450,7 @@ function cubrid_lob2_new ($conn_identifier = null, $type = "BLOB") {} * NULL on failure. *

    */ -function cubrid_lob2_read ($lob_identifier, $len) {} +function cubrid_lob2_read($lob_identifier, $len) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1477,7 +1477,7 @@ function cubrid_lob2_read ($lob_identifier, $len) {} * TRUE if the process is successful and FALSE for failure. *

    */ -function cubrid_lob2_seek64 ($lob_identifier, $offset, $origin = CUBRID_CURSOR_CURRENT) {} +function cubrid_lob2_seek64($lob_identifier, $offset, $origin = CUBRID_CURSOR_CURRENT) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1504,7 +1504,7 @@ function cubrid_lob2_seek64 ($lob_identifier, $offset, $origin = CUBRID_CURSOR_C * TRUE if the process is successful and FALSE for failure. *

    */ -function cubrid_lob2_seek ($lob_identifier, $offset, $origin = CUBRID_CURSOR_CURRENT) {} +function cubrid_lob2_seek($lob_identifier, $offset, $origin = CUBRID_CURSOR_CURRENT) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1519,7 +1519,7 @@ function cubrid_lob2_seek ($lob_identifier, $offset, $origin = CUBRID_CURSOR_CUR * when it processes successfully. FALSE on failure. *

    */ -function cubrid_lob2_size64 ($lob_identifier) {} +function cubrid_lob2_size64($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1534,7 +1534,7 @@ function cubrid_lob2_size64 ($lob_identifier) {} * when it processes successfully. FALSE on failure. *

    */ -function cubrid_lob2_size ($lob_identifier) {} +function cubrid_lob2_size($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1549,7 +1549,7 @@ function cubrid_lob2_size ($lob_identifier) {} * string when it processes successfully. FALSE on failure. *

    */ -function cubrid_lob2_tell64 ($lob_identifier) {} +function cubrid_lob2_tell64($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)
    @@ -1564,7 +1564,7 @@ function cubrid_lob2_tell64 ($lob_identifier) {} * string when it processes successfully. FALSE on failure. *

    */ -function cubrid_lob2_tell ($lob_identifier) {} +function cubrid_lob2_tell($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1581,7 +1581,7 @@ function cubrid_lob2_tell ($lob_identifier) {} * process is unsuccessful. *

    */ -function cubrid_lock_read ($conn_identifier, $oid) {} +function cubrid_lock_read($conn_identifier, $oid) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1598,7 +1598,7 @@ function cubrid_lock_read ($conn_identifier, $oid) {} * process is unsuccessful. *

    */ -function cubrid_lock_write ($conn_identifier, $oid) {} +function cubrid_lock_write($conn_identifier, $oid) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1620,7 +1620,7 @@ function cubrid_lock_write ($conn_identifier, $oid) {} * CUBRID_CURSOR_ERROR, in case of error. *

    */ -function cubrid_move_cursor ($req_identifier, $offset, $origin = CUBRID_CURSOR_CURRENT) {} +function cubrid_move_cursor($req_identifier, $offset, $origin = CUBRID_CURSOR_CURRENT) {} /** * (PHP 5, CUBRID >= 8.4.0)
    @@ -1634,7 +1634,7 @@ function cubrid_move_cursor ($req_identifier, $offset, $origin = CUBRID_CURSOR_C * process is unsuccessful. *

    */ -function cubrid_next_result ($result) {} +function cubrid_next_result($result) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1654,7 +1654,7 @@ function cubrid_next_result ($result) {} * FALSE, if process is unsuccessful. *

    */ -function cubrid_prepare ($conn_identifier, $prepare_stmt, $option = 0) {} +function cubrid_prepare($conn_identifier, $prepare_stmt, $option = 0) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1677,7 +1677,7 @@ function cubrid_prepare ($conn_identifier, $prepare_stmt, $option = 0) {} * FALSE, when process is unsuccessful. *

    */ -function cubrid_put ($conn_identifier, $oid, $attr = null, $value) {} +function cubrid_put($conn_identifier, $oid, $attr = null, $value) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1701,7 +1701,7 @@ function cubrid_put ($conn_identifier, $oid, $attr = null, $value) {} * unsuccessful. *

    */ -function cubrid_schema ($conn_identifier, $schema_type, $class_name = null, $attr_name = null) {} +function cubrid_schema($conn_identifier, $schema_type, $class_name = null, $attr_name = null) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1724,7 +1724,7 @@ function cubrid_schema ($conn_identifier, $schema_type, $class_name = null, $att * when process is unsuccessful. *

    */ -function cubrid_seq_drop ($conn_identifier, $oid, $attr_name, $index) {} +function cubrid_seq_drop($conn_identifier, $oid, $attr_name, $index) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1750,7 +1750,7 @@ function cubrid_seq_drop ($conn_identifier, $oid, $attr_name, $index) {} * when process is unsuccessful. *

    */ -function cubrid_seq_insert ($conn_identifier, $oid, $attr_name, $index, $seq_element) {} +function cubrid_seq_insert($conn_identifier, $oid, $attr_name, $index, $seq_element) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1776,7 +1776,7 @@ function cubrid_seq_insert ($conn_identifier, $oid, $attr_name, $index, $seq_ele * when process is unsuccessful. *

    */ -function cubrid_seq_put ($conn_identifier, $oid, $attr_name, $index, $seq_element) {} +function cubrid_seq_put($conn_identifier, $oid, $attr_name, $index, $seq_element) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1799,7 +1799,7 @@ function cubrid_seq_put ($conn_identifier, $oid, $attr_name, $index, $seq_elemen * when process is unsuccessful. *

    */ -function cubrid_seq_add ($conn_identifier, $oid, $attr_name, $seq_element) {} +function cubrid_seq_add($conn_identifier, $oid, $attr_name, $seq_element) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1822,7 +1822,7 @@ function cubrid_seq_add ($conn_identifier, $oid, $attr_name, $seq_element) {} * when process is unsuccessful. *

    */ -function cubrid_set_add ($conn_identifier, $oid, $attr_name, $set_element) {} +function cubrid_set_add($conn_identifier, $oid, $attr_name, $set_element) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1845,7 +1845,7 @@ function cubrid_set_add ($conn_identifier, $oid, $attr_name, $set_element) {} * when process is unsuccessful. *

    */ -function cubrid_set_drop ($conn_identifier, $oid, $attr_name, $set_element) {} +function cubrid_set_drop($conn_identifier, $oid, $attr_name, $set_element) {} /** * (PHP 5, CUBRID >= 8.3.0)
    @@ -1855,105 +1855,104 @@ function cubrid_set_drop ($conn_identifier, $oid, $attr_name, $set_element) {} * Version information (eg. "8.4.1.0001"). *

    */ -function cubrid_version () {} +function cubrid_version() {} /** * Columns are returned into the array having a numerical index to the * fields. This index starts with 0, the first field in the result. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_NUM', 1); +define('CUBRID_NUM', 1); /** * Columns are returned into the array having the fieldname as the array * index. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_ASSOC', 2); +define('CUBRID_ASSOC', 2); /** * Columns are returned into the array having both a numerical index * and the fieldname as the array index. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_BOTH', 3); +define('CUBRID_BOTH', 3); /** * Get query result as an object. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_OBJECT', 4); +define('CUBRID_OBJECT', 4); /** * Determine whether to get OID during query execution. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_INCLUDE_OID', 1); +define('CUBRID_INCLUDE_OID', 1); /** * Execute the query in asynchronous mode. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_ASYNC', 2); +define('CUBRID_ASYNC', 2); /** * Execute the query in synchronous mode. * This flag must be set when executing multiple SQL statements. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_EXEC_QUERY_ALL', 4); +define('CUBRID_EXEC_QUERY_ALL', 4); /** * Returned value of cubrid_move_cursor() function * in case of success. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_CURSOR_SUCCESS', 1); +define('CUBRID_CURSOR_SUCCESS', 1); /** * Returned value of cubrid_move_cursor() function in case * of failure. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_NO_MORE_DATA', 0); +define('CUBRID_NO_MORE_DATA', 0); /** * Returned value of cubrid_move_cursor() function in case * of failure. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_CURSOR_ERROR', -1); +define('CUBRID_CURSOR_ERROR', -1); /** * Enable the auto-commit mode. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_AUTOCOMMIT_TRUE', 1); +define('CUBRID_AUTOCOMMIT_TRUE', 1); /** * Disable the auto-commit mode. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_AUTOCOMMIT_FALSE', 0); +define('CUBRID_AUTOCOMMIT_FALSE', 0); /** * Move current cursor to the first position in the result. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_CURSOR_FIRST', 0); +define('CUBRID_CURSOR_FIRST', 0); /** * Move current cursor as a default value if the origin is * not specified. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_CURSOR_CURRENT', 1); +define('CUBRID_CURSOR_CURRENT', 1); /** * Move current cursor to the last position in the result. * @link https://php.net/manual/en/cubrid.constants.php */ -define ('CUBRID_CURSOR_LAST', 2); +define('CUBRID_CURSOR_LAST', 2); // End of cubrid v.1.0 -?> diff --git a/curl/curl.php b/curl/curl.php index 3350778f8..7849b7aca 100644 --- a/curl/curl.php +++ b/curl/curl.php @@ -4,7 +4,8 @@ use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware; use JetBrains\PhpStorm\Pure; -class CURLFile { +class CURLFile +{ public $name; public $mime; public $postname; @@ -17,8 +18,7 @@ class CURLFile { * @param string $posted_filename [optional]

    Name of the file.

    * @since 5.5 */ - function __construct($filename, $mime_type = '', $posted_filename = '') { - } + public function __construct($filename, $mime_type = '', $posted_filename = '') {} /** * Get file name @@ -27,8 +27,7 @@ function __construct($filename, $mime_type = '', $posted_filename = '') { * @since 5.5 */ #[Pure] - public function getFilename() { - } + public function getFilename() {} /** * Get MIME type @@ -37,8 +36,7 @@ public function getFilename() { * @since 5.5 */ #[Pure] - public function getMimeType() { - } + public function getMimeType() {} /** * Get file name for POST @@ -47,8 +45,7 @@ public function getMimeType() { * @since 5.5 */ #[Pure] - public function getPostFilename() { - } + public function getPostFilename() {} /** * Set MIME type @@ -56,8 +53,7 @@ public function getPostFilename() { * @param string $mime_type * @since 5.5 */ - public function setMimeType($mime_type) { - } + public function setMimeType($mime_type) {} /** * Set file name for POST @@ -65,16 +61,14 @@ public function setMimeType($mime_type) { * @param string $posted_filename * @since 5.5 */ - public function setPostFilename($posted_filename) { - } + public function setPostFilename($posted_filename) {} /** * @link https://secure.php.net/manual/en/curlfile.wakeup.php * Unserialization handler * @since 5.5 */ - public function __wakeup() { - } + public function __wakeup() {} } /** * Initialize a cURL session @@ -87,7 +81,7 @@ public function __wakeup() { * @return resource|false|CurlHandle a cURL handle on success, false on errors. */ #[LanguageLevelTypeAware(["8.0" => "CurlHandle|false"], default: "resource|false")] -function curl_init (?string $url) {} +function curl_init(?string $url) {} /** * Copy a cURL handle along with all of its preferences @@ -97,7 +91,7 @@ function curl_init (?string $url) {} */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "CurlHandle|false"], default: "resource|false")] -function curl_copy_handle (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle) {} +function curl_copy_handle(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle) {} /** * Gets cURL version information @@ -157,8 +151,7 @@ function curl_copy_handle (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], def "protocols" => "array", ])] #[Pure] -function curl_version ($age = null): array|false -{} +function curl_version($age = null): array|false {} /** * Set an option for a cURL transfer @@ -2116,8 +2109,7 @@ function curl_version ($age = null): array|false * * @return bool true on success or false on failure. */ -function curl_setopt (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, int $option, mixed $value): bool -{} +function curl_setopt(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, int $option, mixed $value): bool {} /** * Set multiple options for a cURL transfer @@ -2133,8 +2125,7 @@ function curl_setopt (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: * future options in the options array. * @since 5.1.3 */ -function curl_setopt_array (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, array $options): bool -{} +function curl_setopt_array(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, array $options): bool {} /** * (PHP 5 >=5.5.0)
    @@ -2146,7 +2137,7 @@ function curl_setopt_array (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], de * @return void * @since 5.5 */ -function curl_share_close (#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"], default: "resource")] $share_handle): void {} +function curl_share_close(#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"], default: "resource")] $share_handle): void {} /** * (PHP 5 >=5.5.0)
    @@ -2156,8 +2147,7 @@ function curl_share_close (#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"] * @since 5.5 */ #[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"], default: "resource")] -function curl_share_init() -{} +function curl_share_init() {} /** * (PHP 5 >=5.5.0)
    @@ -2236,8 +2226,7 @@ function curl_share_init() * Returns TRUE on success or FALSE on failure. * @since 5.5 */ -function curl_share_setopt (#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"], default: "resource")] $share_handle, int $option, mixed $value ): bool -{} +function curl_share_setopt(#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"], default: "resource")] $share_handle, int $option, mixed $value): bool {} /** * (PHP 5 >=5.5.0)
    @@ -2250,8 +2239,7 @@ function curl_share_setopt (#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle" * @since 5.5 */ #[Pure] -function curl_strerror (int $error_code): ?string -{} +function curl_strerror(int $error_code): ?string {} /** * (PHP 5 >=5.5.0)
    @@ -2266,8 +2254,7 @@ function curl_strerror (int $error_code): ?string * @since 5.5 */ #[Pure] -function curl_unescape (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, string $string): string|false -{} +function curl_unescape(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, string $string): string|false {} /** * Perform a cURL session * @link https://php.net/manual/en/function.curl-exec.php @@ -2275,8 +2262,7 @@ function curl_unescape (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], defau * @return string|bool true on success or false on failure. However, if the CURLOPT_RETURNTRANSFER * option is set, it will return the result on success, false on failure. */ -function curl_exec (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): string|bool -{} +function curl_exec(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): string|bool {} /** * Get information regarding a specific transfer @@ -2310,8 +2296,7 @@ function curl_exec (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: " * "redirect_time" */ #[Pure] -function curl_getinfo (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, ?int $option): mixed -{} +function curl_getinfo(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, ?int $option): mixed {} /** * Return a string containing the last error for the current session @@ -2321,8 +2306,7 @@ function curl_getinfo (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default * error occurred. */ #[Pure] -function curl_error (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): string -{} +function curl_error(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): string {} /** * Return the last error number @@ -2332,8 +2316,7 @@ function curl_error (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: * occurred. */ #[Pure] -function curl_errno (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): int -{} +function curl_errno(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): int {} /** * URL encodes the given string @@ -2347,8 +2330,7 @@ function curl_errno (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: * @since 5.5 */ #[Pure] -function curl_escape(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, string $string): string|false -{} +function curl_escape(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, string $string): string|false {} /** * (PHP 5 >= 5.5.0)
    @@ -2362,8 +2344,7 @@ function curl_escape(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: * @since 5.5 */ #[Pure] -function curl_file_create(string $filename, ?string $mime_type = '', ?string $posted_filename = ''): CURLFile -{} +function curl_file_create(string $filename, ?string $mime_type = '', ?string $posted_filename = ''): CURLFile {} /** * Close a cURL session @@ -2371,7 +2352,7 @@ function curl_file_create(string $filename, ?string $mime_type = '', ?string $po * @param CurlHandle|resource $handle * @return void */ -function curl_close (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): void {} +function curl_close(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): void {} /** * Returns a new cURL multi handle @@ -2379,8 +2360,7 @@ function curl_close (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: * @return resource|CurlMultiHandle|false a cURL multi handle resource on success, false on failure. */ #[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] -function curl_multi_init (): CurlMultiHandle -{} +function curl_multi_init(): CurlMultiHandle {} /** * Add a normal cURL handle to a cURL multi handle @@ -2390,8 +2370,7 @@ function curl_multi_init (): CurlMultiHandle * @return int 0 on success, or one of the CURLM_XXX errors * code. */ -function curl_multi_add_handle (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, #[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): int -{} +function curl_multi_add_handle(#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, #[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): int {} /** * Remove a multi handle from a set of cURL handles @@ -2401,8 +2380,7 @@ function curl_multi_add_handle (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHan * @return int|false On success, returns one of the CURLM_XXX error codes, false on failure. */ #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function curl_multi_remove_handle (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, #[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle) -{} +function curl_multi_remove_handle(#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, #[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle) {} /** * Wait for activity on any curl_multi connection @@ -2414,8 +2392,7 @@ function curl_multi_remove_handle (#[LanguageLevelTypeAware(["8.0" => "CurlMulti * @return int On success, returns the number of descriptors contained in, * the descriptor sets. On failure, this function will return -1 on a select failure or timeout (from the underlying select system call). */ -function curl_multi_select (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, float $timeout = 1.0): int -{} +function curl_multi_select(#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, float $timeout = 1.0): int {} /** * (PHP 5 >=5.5.0)
    @@ -2467,8 +2444,7 @@ function curl_multi_select (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle" * @return bool Returns TRUE on success or FALSE on failure. * @since 5.5 */ -function curl_multi_setopt (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, int $option, mixed $value): bool -{} +function curl_multi_setopt(#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, int $option, mixed $value): bool {} /** * (PHP 5 >=5.5.0)
    @@ -2480,8 +2456,7 @@ function curl_multi_setopt (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle" * @return string|null Returns error string for valid error code, NULL otherwise. * @since 5.5 */ -function curl_multi_strerror (int $error_code): ?string -{} +function curl_multi_strerror(int $error_code): ?string {} /** * (PHP 5 >=5.5.0)
    @@ -2493,8 +2468,7 @@ function curl_multi_strerror (int $error_code): ?string * @return int Returns an error code (CURLE_OK for no error). * @since 5.5 */ -function curl_pause (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, int $flags): int -{} +function curl_pause(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle, int $flags): int {} /** * (PHP 5 >=5.5.0)
    @@ -2505,7 +2479,7 @@ function curl_pause (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: * @return void * @since 5.5 */ -function curl_reset (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): void {} +function curl_reset(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): void {} /** * Run the sub-connections of the current cURL handle @@ -2521,8 +2495,7 @@ function curl_reset (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: * CURLM_OK. *

    */ -function curl_multi_exec (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, &$still_running): int -{} +function curl_multi_exec(#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, &$still_running): int {} /** * Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set @@ -2531,8 +2504,7 @@ function curl_multi_exec (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], * @return null|string Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set. */ #[Pure] -function curl_multi_getcontent (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): ?string -{} +function curl_multi_getcontent(#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): ?string {} /** * Get information about the current transfers @@ -2544,8 +2516,7 @@ function curl_multi_getcontent (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"] * @return array|false On success, returns an associative array for the message, false on failure. */ #[Pure] -function curl_multi_info_read (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, &$queued_messages): array|false -{} +function curl_multi_info_read(#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle, &$queued_messages): array|false {} /** * Close a set of cURL handles @@ -2553,7 +2524,7 @@ function curl_multi_info_read (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHand * @param CurlMultiHandle|resource $multi_handle * @return void */ -function curl_multi_close (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle): void {} +function curl_multi_close(#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle): void {} /** * Return the last multi curl error number @@ -2562,8 +2533,7 @@ function curl_multi_close (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"] * @since 7.1 */ #[Pure] -function curl_multi_errno(#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle): int -{} +function curl_multi_errno(#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], default: "resource")] $multi_handle): int {} /** * Return the last share curl error number @@ -2572,8 +2542,7 @@ function curl_multi_errno(#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"], * @since 7.1 */ #[Pure] -function curl_share_errno(#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"], default: "resource")] $share_handle): int -{} +function curl_share_errno(#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"], default: "resource")] $share_handle): int {} /** * Return string describing the given error code @@ -2582,38 +2551,40 @@ function curl_share_errno(#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"], * @since 7.1 */ #[Pure] -function curl_share_strerror(int $error_code): ?string -{} +function curl_share_strerror(int $error_code): ?string {} /** * @since 8.0 */ -final class CurlHandle{ +final class CurlHandle +{ /** * Cannot directly construct CurlHandle, use curl_init() instead * @see curl_init() */ - private function __construct(){} + private function __construct() {} } /** * @since 8.0 */ -final class CurlMultiHandle{ +final class CurlMultiHandle +{ /** * Cannot directly construct CurlMultiHandle, use curl_multi_init() instead * @see curl_multi_init() */ - private function __construct(){} + private function __construct() {} } /** * @since 8.0 */ -final class CurlShareHandle{ +final class CurlShareHandle +{ /** * Cannot directly construct CurlShareHandle, use curl_share_init() instead * @see curl_share_init() */ - private function __construct(){} + private function __construct() {} } diff --git a/curl/curl_d.php b/curl/curl_d.php index 117729b76..fea5f4b39 100644 --- a/curl/curl_d.php +++ b/curl/curl_d.php @@ -18,7 +18,7 @@ * @since 5.5 * @link https://php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_CONNECT_ONLY', 141); +define('CURLOPT_CONNECT_ONLY', 141); /** * With the CURLOPT_FOLLOWLOCATION option disabled: @@ -59,108 +59,108 @@ * @link https://php.net/manual/en/function.curl-setopt.php * @since 5.5 */ -define ('CURLOPT_SHARE', 10100); +define('CURLOPT_SHARE', 10100); /** * Allows an application to select what kind of IP addresses to use when resolving host names. * This is only interesting when using host names that resolve addresses using more than one version of IP, * possible values are CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6, by default CURL_IPRESOLVE_WHATEVER. * @link https://php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_IPRESOLVE', 113); +define('CURLOPT_IPRESOLVE', 113); /** * Value for the CURLOPT_IPRESOLVE option. * Default, resolves addresses to all IP versions that your system allows. * @link https://www.php.net/manual/en/function.curl-setopt.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_IPRESOLVE.html */ -define ('CURL_IPRESOLVE_WHATEVER', 0); +define('CURL_IPRESOLVE_WHATEVER', 0); /** * Value for the CURLOPT_IPRESOLVE option. * Resolve to IPv4 addresses. * @link https://www.php.net/manual/en/function.curl-setopt.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_IPRESOLVE.html */ -define ('CURL_IPRESOLVE_V4', 1); +define('CURL_IPRESOLVE_V4', 1); /** * Value for the CURLOPT_IPRESOLVE option. * Resolve to IPv6 addresses. * @link https://www.php.net/manual/en/function.curl-setopt.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_IPRESOLVE.html */ -define ('CURL_IPRESOLVE_V6', 2); +define('CURL_IPRESOLVE_V6', 2); /** * TRUE to use a global DNS cache. This option is not thread-safe. * It is conditionally enabled by default if PHP is built for non-threaded use (CLI, FCGI, Apache2-Prefork, etc.). * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_DNS_USE_GLOBAL_CACHE', 91); +define('CURLOPT_DNS_USE_GLOBAL_CACHE', 91); /** * The number of seconds to keep DNS entries in memory. * This option is set to 120 (2 minutes) by default. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_DNS_CACHE_TIMEOUT', 92); +define('CURLOPT_DNS_CACHE_TIMEOUT', 92); /** * An alternative port number to connect to. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_PORT', 3); +define('CURLOPT_PORT', 3); /** * The file that the transfer should be written to. The default is STDOUT (the browser window). * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FILE', 10001); +define('CURLOPT_FILE', 10001); /** * Custom pointer passed to the read callback. * If you use the CURLOPT_READFUNCTION option, this is the pointer you'll get as input in the 4th argument to the callback. * @link https://www.php.net/manual/en/function.curl-setopt.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_READDATA.html */ -define ('CURLOPT_READDATA', 10009); +define('CURLOPT_READDATA', 10009); /** * The file that the transfer should be read from when uploading. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_INFILE', 10009); +define('CURLOPT_INFILE', 10009); /** * The expected size, in bytes, of the file when uploading a file to a remote site. * Note that using this option will not stop libcurl from sending more data, as exactly what is sent depends on CURLOPT_READFUNCTION. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_INFILESIZE', 14); +define('CURLOPT_INFILESIZE', 14); /** * The URL to fetch. This can also be set when initializing a session with {@see curl_init()}. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_URL', 10002); +define('CURLOPT_URL', 10002); /** * The HTTP proxy to tunnel requests through. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_PROXY', 10004); +define('CURLOPT_PROXY', 10004); /** * TRUE to output verbose information. * Writes output to STDERR, or the file specified using CURLOPT_STDERR. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_VERBOSE', 41); +define('CURLOPT_VERBOSE', 41); /** * TRUE to include the header in the output. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_HEADER', 42); +define('CURLOPT_HEADER', 42); /** * An array of HTTP header fields to set, in the format array('Content-type: text/plain', 'Content-length: 100') * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_HTTPHEADER', 10023); +define('CURLOPT_HTTPHEADER', 10023); /** * TRUE to disable the progress meter for cURL transfers. * (PHP automatically sets this option to TRUE, this should only be changed for debugging purposes.) * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_NOPROGRESS', 43); +define('CURLOPT_NOPROGRESS', 43); /** * A callback accepting five parameters. @@ -174,69 +174,69 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.3 */ -define ('CURLOPT_PROGRESSFUNCTION', 20056); +define('CURLOPT_PROGRESSFUNCTION', 20056); /** * TRUE to exclude the body from the output. Request method is then set to HEAD. Changing this to FALSE does not change it to GET. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_NOBODY', 44); +define('CURLOPT_NOBODY', 44); /** * TRUE to fail verbosely if the HTTP code returned is greater than or equal to 400. * The default behavior is to return the page normally, ignoring the code. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FAILONERROR', 45); +define('CURLOPT_FAILONERROR', 45); /** * TRUE to prepare for an upload. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_UPLOAD', 46); +define('CURLOPT_UPLOAD', 46); /** * TRUE to do a regular HTTP POST. * This POST is the normal application/x-www-form-urlencoded kind, most commonly used by HTML forms. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_POST', 47); +define('CURLOPT_POST', 47); /** * TRUE to only list the names of an FTP directory. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FTPLISTONLY', 48); +define('CURLOPT_FTPLISTONLY', 48); /** * TRUE to append to the remote file instead of overwriting it. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FTPAPPEND', 50); +define('CURLOPT_FTPAPPEND', 50); /** * TRUE to scan the ~/.netrc file to find a username and password for the remote site that a connection is being established with. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_NETRC', 51); +define('CURLOPT_NETRC', 51); /** * A bitmask of 1 (301 Moved Permanently), 2 (302 Found) and 4 (303 See Other) if the HTTP POST method should be maintained * when CURLOPT_FOLLOWLOCATION is set and a specific type of redirect occurs. * @link https://secure.php.net/manual/en/function.curl-setopt.php * @since 5.3.2 */ -define ('CURLOPT_POSTREDIR', 161); +define('CURLOPT_POSTREDIR', 161); /** * TRUE to output SSL certification information to STDERR on secure transfers. * Requires CURLOPT_VERBOSE to be on to have an effect. * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.3.2 */ -define ('CURLOPT_CERTINFO', 172); +define('CURLOPT_CERTINFO', 172); /** * An alias of CURLOPT_TRANSFERTEXT. Use that instead. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FTPASCII', -1); +define('CURLOPT_FTPASCII', -1); /** * TRUE to be completely silent with regards to the cURL functions. * @link https://www.php.net/manual/en/function.curl-setopt.php * @deprecated use CURLOPT_RETURNTRANSFER instead since cURL 7.15.5 */ -define ('CURLOPT_MUTE', -1); +define('CURLOPT_MUTE', -1); /** * Bitmask of CURLPROTO_* values. If used, this bitmask limits what protocols libcurl may use in the transfer. * This allows you to have a libcurl built to support a wide range of protocols but still limit specific transfers @@ -249,7 +249,7 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.2.10 */ -define ('CURLOPT_PROTOCOLS', 181); +define('CURLOPT_PROTOCOLS', 181); /** * Bitmask of CURLPROTO_* values. If used, this bitmask limits what protocols libcurl may use in a transfer * that it follows to in a redirect when CURLOPT_FOLLOWLOCATION is enabled. @@ -260,7 +260,7 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.2.10 */ -define ('CURLOPT_REDIR_PROTOCOLS', 182); +define('CURLOPT_REDIR_PROTOCOLS', 182); /** * If a download exceeds this speed (counted in bytes per second) on cumulative average during the transfer, * the transfer will pause to keep the average rate less than or equal to the parameter value. @@ -268,7 +268,7 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.4 */ -define ('CURLOPT_MAX_RECV_SPEED_LARGE', 30146); +define('CURLOPT_MAX_RECV_SPEED_LARGE', 30146); /** * If an upload exceeds this speed (counted in bytes per second) on cumulative average during the transfer, * the transfer will pause to keep the average rate less than or equal to the parameter value. @@ -276,14 +276,14 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.4 */ -define ('CURLOPT_MAX_SEND_SPEED_LARGE', 30145); +define('CURLOPT_MAX_SEND_SPEED_LARGE', 30145); /** * A callback accepting three parameters. * The first is the cURL resource, the second is a string containing a password prompt, and the third is the maximum password length. * Return the string containing the password. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_PASSWDFUNCTION', -1); +define('CURLOPT_PASSWDFUNCTION', -1); /** * TRUE to follow any "Location: " header that the server sends as part of the HTTP header @@ -292,33 +292,33 @@ * or safe_mode are enabled. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FOLLOWLOCATION', 52); +define('CURLOPT_FOLLOWLOCATION', 52); /** * TRUE to HTTP PUT a file. The file to PUT must be set with CURLOPT_INFILE and CURLOPT_INFILESIZE. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_PUT', 54); +define('CURLOPT_PUT', 54); /** * A username and password formatted as "[username]:[password]" to use for the connection. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_USERPWD', 10005); +define('CURLOPT_USERPWD', 10005); /** * A username and password formatted as "[username]:[password]" to use for the connection to the proxy. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_PROXYUSERPWD', 10006); +define('CURLOPT_PROXYUSERPWD', 10006); /** * Range(s) of data to retrieve in the format "X-Y" where X or Y are optional. * HTTP transfers also support several intervals, separated with commas in the format "X-Y,N-M". * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_RANGE', 10007); +define('CURLOPT_RANGE', 10007); /** * The maximum number of seconds to allow cURL functions to execute. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_TIMEOUT', 13); +define('CURLOPT_TIMEOUT', 13); /** * The maximum number of milliseconds to allow cURL functions to execute. * If libcurl is built to use the standard system name resolver, @@ -326,7 +326,7 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.2 */ -define ('CURLOPT_TIMEOUT_MS', 155); +define('CURLOPT_TIMEOUT_MS', 155); /** * The full data to post in a HTTP "POST" operation. * To post a file, prepend a filename with @ and use the full path. @@ -340,37 +340,37 @@ * The @ prefix can be disabled for safe passing of values beginning with @ by setting the CURLOPT_SAFE_UPLOAD option to TRUE. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_POSTFIELDS', 10015); +define('CURLOPT_POSTFIELDS', 10015); /** * The contents of the "Referer: " header to be used in a HTTP request. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_REFERER', 10016); +define('CURLOPT_REFERER', 10016); /** * A string containing 32 hexadecimal digits. * The string should be the MD5 checksum of the remote host's public key, and libcurl will reject the connection to the host unless the md5sums match. * This option is only for SCP and SFTP transfers. * @link https://php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSH_HOST_PUBLIC_KEY_MD5', 10162); +define('CURLOPT_SSH_HOST_PUBLIC_KEY_MD5', 10162); /** * The file name for your public key. If not used, libcurl defaults to $HOME/.ssh/id_dsa.pub * if the HOME environment variable is set, and just "id_dsa.pub" in the current directory if HOME is not set. * @link https://php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSH_PUBLIC_KEYFILE', 10152); +define('CURLOPT_SSH_PUBLIC_KEYFILE', 10152); /** * The file name for your private key. If not used, libcurl defaults to $HOME/.ssh/id_dsa * if the HOME environment variable is set, and just "id_dsa" in the current directory if HOME is not set. * If the file is password-protected, set the password with CURLOPT_KEYPASSWD. * @link https://php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSH_PRIVATE_KEYFILE', 10153); +define('CURLOPT_SSH_PRIVATE_KEYFILE', 10153); /** * The contents of the "User-Agent: " header to be used in a HTTP request. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_USERAGENT', 10018); +define('CURLOPT_USERAGENT', 10018); /** * The value which will be used to get the IP address to use for the FTP "PORT" instruction. * The "PORT" instruction tells the remote server to connect to our specified IP address. @@ -378,35 +378,35 @@ * or just a plain '-' to use the systems default IP address. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FTPPORT', 10017); +define('CURLOPT_FTPPORT', 10017); /** * TRUE to first try an EPSV command for FTP transfers before reverting back to PASV. Set to FALSE to disable EPSV. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FTP_USE_EPSV', 85); +define('CURLOPT_FTP_USE_EPSV', 85); /** * The transfer speed, in bytes per second, that the transfer should be below during the count of CURLOPT_LOW_SPEED_TIME seconds * before PHP considers the transfer too slow and aborts. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_LOW_SPEED_LIMIT', 19); +define('CURLOPT_LOW_SPEED_LIMIT', 19); /** * The number of seconds the transfer speed should be below CURLOPT_LOW_SPEED_LIMIT * before PHP considers the transfer too slow and aborts. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_LOW_SPEED_TIME', 20); +define('CURLOPT_LOW_SPEED_TIME', 20); /** * The offset, in bytes, to resume a transfer from. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_RESUME_FROM', 21); +define('CURLOPT_RESUME_FROM', 21); /** * The contents of the "Cookie: " header to be used in the HTTP request. * Note that multiple cookies are separated with a semicolon followed by a space (e.g., "fruit=apple; colour=red") * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_COOKIE', 10022); +define('CURLOPT_COOKIE', 10022); /** * TRUE to mark this as a new cookie "session". @@ -415,42 +415,42 @@ * Session cookies are cookies without expiry date and they are meant to be alive and existing for this "session" only. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_COOKIESESSION', 96); +define('CURLOPT_COOKIESESSION', 96); /** * TRUE to automatically set the Referer: field in requests where it follows a Location: redirect. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_AUTOREFERER', 58); +define('CURLOPT_AUTOREFERER', 58); /** * The name of a file containing a PEM formatted certificate. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSLCERT', 10025); +define('CURLOPT_SSLCERT', 10025); /** * The password required to use the CURLOPT_SSLCERT certificate. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSLCERTPASSWD', 10026); +define('CURLOPT_SSLCERTPASSWD', 10026); /** * The file that the header part of the transfer is written to. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_WRITEHEADER', 10029); +define('CURLOPT_WRITEHEADER', 10029); /** * 1 to check the existence of a common name in the SSL peer certificate. (Deprecated) * 2 to check the existence of a common name and also verify that it matches the hostname provided. * 0 to not check the names. In production environments the value of this option should be kept at 2 (default value). * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSL_VERIFYHOST', 81); +define('CURLOPT_SSL_VERIFYHOST', 81); /** * The name of the file containing the cookie data. * The cookie file can be in Netscape format, or just plain HTTP-style headers dumped into a file. * If the name is an empty string, no cookies are loaded, but cookie handling is still enabled. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_COOKIEFILE', 10031); +define('CURLOPT_COOKIEFILE', 10031); /** * One of CURL_SSLVERSION_DEFAULT (0), CURL_SSLVERSION_TLSv1 (1), CURL_SSLVERSION_SSLv2 (2), CURL_SSLVERSION_SSLv3 (3), * CURL_SSLVERSION_TLSv1_0 (4), CURL_SSLVERSION_TLSv1_1 (5) or CURL_SSLVERSION_TLSv1_2 (6). @@ -460,27 +460,27 @@ * CURL_SSLVERSION_MAX_TLSv1_2, or CURL_SSLVERSION_MAX_TLSv1_3. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSLVERSION', 32); +define('CURLOPT_SSLVERSION', 32); /** * Value for the CURLOPT_SSLVERSION option. * @link https://www.php.net/manual/en/curl.constants.php */ -define ('CURL_SSLVERSION_DEFAULT', 0); +define('CURL_SSLVERSION_DEFAULT', 0); /** * Value for the CURLOPT_SSLVERSION option. * @link https://www.php.net/manual/en/curl.constants.php */ -define ('CURL_SSLVERSION_TLSv1',1); +define('CURL_SSLVERSION_TLSv1', 1); /** * Value for the CURLOPT_SSLVERSION option. * @link https://www.php.net/manual/en/curl.constants.php */ -define ('CURL_SSLVERSION_SSLv2',2); +define('CURL_SSLVERSION_SSLv2', 2); /** * Value for the CURLOPT_SSLVERSION option. * @link https://www.php.net/manual/en/curl.constants.php */ -define ('CURL_SSLVERSION_SSLv3',3); +define('CURL_SSLVERSION_SSLv3', 3); /** * Value for the CURLOPT_SSLVERSION option. @@ -488,7 +488,7 @@ * @since 5.6.3 * @since 5.5.19 */ -define ('CURL_SSLVERSION_TLSv1_0',4); +define('CURL_SSLVERSION_TLSv1_0', 4); /** * Value for the CURLOPT_SSLVERSION option. @@ -496,7 +496,7 @@ * @since 5.6.3 * @since 5.5.19 */ -define ('CURL_SSLVERSION_TLSv1_1',5); +define('CURL_SSLVERSION_TLSv1_1', 5); /** * Value for the CURLOPT_SSLVERSION option. @@ -513,13 +513,13 @@ * CURL_TIMECOND_IFMODSINCE is the default. * * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_TIMECONDITION', 33); +define('CURLOPT_TIMECONDITION', 33); /** * The time in seconds since January 1st, 1970. * The time will be used by CURLOPT_TIMECONDITION. By default, CURL_TIMECOND_IFMODSINCE is used. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_TIMEVALUE', 34); +define('CURLOPT_TIMEVALUE', 34); /** * A custom request method to use instead of "GET" or "HEAD" when doing a HTTP request. * This is useful for doing "DELETE" or other, more obscure HTTP requests. @@ -527,39 +527,39 @@ * For instance, entering "GET /index.html HTTP/1.0\r\n\r\n" would be incorrect. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_CUSTOMREQUEST', 10036); +define('CURLOPT_CUSTOMREQUEST', 10036); /** * An alternative location to output errors to instead of STDERR. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_STDERR', 10037); +define('CURLOPT_STDERR', 10037); /** * TRUE to use ASCII mode for FTP transfers. * For LDAP, it retrieves data in plain text instead of HTML. * On Windows systems, it will not set STDOUT to binary mode. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_TRANSFERTEXT', 53); +define('CURLOPT_TRANSFERTEXT', 53); /** * TRUE to return the transfer as a string of the return value of {@see curl_exec()} instead of outputting it directly. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_RETURNTRANSFER', 19913); +define('CURLOPT_RETURNTRANSFER', 19913); /** * An array of FTP commands to execute on the server prior to the FTP request. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_QUOTE', 10028); +define('CURLOPT_QUOTE', 10028); /** * An array of FTP commands to execute on the server after the FTP request has been performed. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_POSTQUOTE', 10039); +define('CURLOPT_POSTQUOTE', 10039); /** * The name of the outgoing network interface to use. This can be an interface name, an IP address or a host name. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_INTERFACE', 10062); +define('CURLOPT_INTERFACE', 10062); /** * The KRB4 (Kerberos 4) security level. * Any of the following values (in order from least to most powerful) are valid: "clear", "safe", "confidential", "private". @@ -567,24 +567,24 @@ * Setting this option to NULL will disable KRB4 security. Currently KRB4 security only works with FTP transactions. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_KRB4LEVEL', 10063); +define('CURLOPT_KRB4LEVEL', 10063); /** * TRUE to tunnel through a given HTTP proxy. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_HTTPPROXYTUNNEL', 61); +define('CURLOPT_HTTPPROXYTUNNEL', 61); /** * TRUE to attempt to retrieve the modification date of the remote document. * This value can be retrieved using the CURLINFO_FILETIME option with {@see curl_getinfo()}. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FILETIME', 69); +define('CURLOPT_FILETIME', 69); /** * A callback accepting two parameters. The first is the cURL resource, and the second is a string with the data to be written. * The data must be saved by this callback. It must return the exact number of bytes written or the transfer will be aborted with an error. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_WRITEFUNCTION', 20011); +define('CURLOPT_WRITEFUNCTION', 20011); /** * A callback accepting three parameters. * The first is the cURL resource, @@ -594,56 +594,56 @@ * It should return an empty string to signal EOF. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_READFUNCTION', 20012); +define('CURLOPT_READFUNCTION', 20012); /** * A callback accepting two parameters. The first is the cURL resource, the second is a string with the header data to be written. * The header data must be written by this callback. Return the number of bytes written. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_HEADERFUNCTION', 20079); +define('CURLOPT_HEADERFUNCTION', 20079); /** * The maximum amount of HTTP redirections to follow. Use this option alongside CURLOPT_FOLLOWLOCATION. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_MAXREDIRS', 68); +define('CURLOPT_MAXREDIRS', 68); /** * The maximum amount of persistent connections that are allowed. * When the limit is reached, CURLOPT_CLOSEPOLICY is used to determine which connection to close. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_MAXCONNECTS', 71); +define('CURLOPT_MAXCONNECTS', 71); /** * This option is deprecated, as it was never implemented in cURL and never had any effect. * @link https://www.php.net/manual/en/function.curl-setopt.php * @deprecated 5.6 */ -define ('CURLOPT_CLOSEPOLICY', 72); +define('CURLOPT_CLOSEPOLICY', 72); /** * TRUE to force the use of a new connection instead of a cached one. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FRESH_CONNECT', 74); +define('CURLOPT_FRESH_CONNECT', 74); /** * TRUE to force the connection to explicitly close when it has finished processing, and not be pooled for reuse. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FORBID_REUSE', 75); +define('CURLOPT_FORBID_REUSE', 75); /** * A filename to be used to seed the random number generator for SSL. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_RANDOM_FILE', 10076); +define('CURLOPT_RANDOM_FILE', 10076); /** * Like CURLOPT_RANDOM_FILE, except a filename to an Entropy Gathering Daemon socket. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_EGDSOCKET', 10077); +define('CURLOPT_EGDSOCKET', 10077); /** * The number of seconds to wait while trying to connect. Use 0 to wait indefinitely. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_CONNECTTIMEOUT', 78); +define('CURLOPT_CONNECTTIMEOUT', 78); /** * The number of milliseconds to wait while trying to connect. Use 0 to wait indefinitely. @@ -652,62 +652,62 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.2.3 */ -define ('CURLOPT_CONNECTTIMEOUT_MS', 156); +define('CURLOPT_CONNECTTIMEOUT_MS', 156); /** * FALSE to stop cURL from verifying the peer's certificate. * Alternate certificates to verify against can be specified with the CURLOPT_CAINFO option or * a certificate directory can be specified with the CURLOPT_CAPATH option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSL_VERIFYPEER', 64); +define('CURLOPT_SSL_VERIFYPEER', 64); /** * The name of a file holding one or more certificates to verify the peer with. * This only makes sense when used in combination with CURLOPT_SSL_VERIFYPEER. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_CAINFO', 10065); +define('CURLOPT_CAINFO', 10065); /** * A directory that holds multiple CA certificates. Use this option alongside CURLOPT_SSL_VERIFYPEER. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_CAPATH', 10097); +define('CURLOPT_CAPATH', 10097); /** * The name of a file to save all internal cookies to when the handle is closed, e.g. after a call to curl_close. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_COOKIEJAR', 10082); +define('CURLOPT_COOKIEJAR', 10082); /** * A list of ciphers to use for SSL. For example, RC4-SHA and TLSv1 are valid cipher lists. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSL_CIPHER_LIST', 10083); +define('CURLOPT_SSL_CIPHER_LIST', 10083); /** * TRUE to return the raw output when CURLOPT_RETURNTRANSFER is used. * @link https://www.php.net/manual/en/function.curl-setopt.php * @deprecated 5.1.3 */ -define ('CURLOPT_BINARYTRANSFER', 19914); +define('CURLOPT_BINARYTRANSFER', 19914); /** * TRUE to ignore any cURL function that causes a signal to be sent to the PHP process. * This is turned on by default in multi-threaded SAPIs so timeout options can still be used. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_NOSIGNAL', 99); +define('CURLOPT_NOSIGNAL', 99); /** * Either CURLPROXY_HTTP (default), CURLPROXY_SOCKS4, CURLPROXY_SOCKS5, CURLPROXY_SOCKS4A or CURLPROXY_SOCKS5_HOSTNAME. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_PROXYTYPE', 101); +define('CURLOPT_PROXYTYPE', 101); /** * The size of the buffer to use for each read. There is no guarantee this request will be fulfilled, however. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_BUFFERSIZE', 98); +define('CURLOPT_BUFFERSIZE', 98); /** * TRUE to reset the HTTP request method to GET. Since GET is the default, this is only necessary if the request method has been changed. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_HTTPGET', 80); +define('CURLOPT_HTTPGET', 80); /** * CURL_HTTP_VERSION_NONE (default, lets CURL decide which version to use), * CURL_HTTP_VERSION_1_0 (forces HTTP/1.0), CURL_HTTP_VERSION_1_1 (forces HTTP/1.1), CURL_HTTP_VERSION_2_0 (attempts HTTP 2), @@ -715,99 +715,99 @@ * CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE (issues non-TLS HTTP requests using HTTP/2 without HTTP/1.1 Upgrade). * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_HTTP_VERSION', 84); +define('CURLOPT_HTTP_VERSION', 84); /** * The name of a file containing a private SSL key. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSLKEY', 10087); +define('CURLOPT_SSLKEY', 10087); /** * The key type of the private SSL key specified in CURLOPT_SSLKEY. * Supported key types are "PEM" (default), "DER", and "ENG". * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSLKEYTYPE', 10088); +define('CURLOPT_SSLKEYTYPE', 10088); /** * The secret password needed to use the private SSL key specified in CURLOPT_SSLKEY. * (Since this option contains a sensitive password, remember to keep the PHP script it is contained within safe) * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSLKEYPASSWD', 10026); +define('CURLOPT_SSLKEYPASSWD', 10026); /** * The identifier for the crypto engine of the private SSL key specified in CURLOPT_SSLKEY. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSLENGINE', 10089); +define('CURLOPT_SSLENGINE', 10089); /** * The identifier for the crypto engine used for asymmetric crypto operations. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSLENGINE_DEFAULT', 90); +define('CURLOPT_SSLENGINE_DEFAULT', 90); /** * The format of the certificate. * Supported formats are "PEM" (default), "DER", and "ENG". As of OpenSSL 0.9.3, "P12" (for PKCS#12-encoded files) is also supported. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_SSLCERTTYPE', 10086); +define('CURLOPT_SSLCERTTYPE', 10086); /** * TRUE to convert Unix newlines to CRLF newlines on transfers. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_CRLF', 27); +define('CURLOPT_CRLF', 27); /** * The contents of the "Accept-Encoding: " header. This enables decoding of the response. * Supported encodings are "identity", "deflate", and "gzip". * If an empty string, "", is set, a header containing all supported encoding types is sent. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_ENCODING', 10102); +define('CURLOPT_ENCODING', 10102); /** * The port number of the proxy to connect to. This port number can also be set in CURLOPT_PROXY. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_PROXYPORT', 59); +define('CURLOPT_PROXYPORT', 59); /** * TRUE to keep sending the username and password when following locations * (using CURLOPT_FOLLOWLOCATION), even when the hostname has changed. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_UNRESTRICTED_AUTH', 105); +define('CURLOPT_UNRESTRICTED_AUTH', 105); /** * TRUE to use EPRT (and LPRT) when doing active FTP downloads. Use FALSE to disable EPRT and LPRT and use PORT only. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FTP_USE_EPRT', 106); +define('CURLOPT_FTP_USE_EPRT', 106); /** * TRUE to disable TCP's Nagle algorithm, which tries to minimize the number of small packets on the network. * @link https://php.net/manual/en/curl.constants.php * @since 5.2.1 */ -define ('CURLOPT_TCP_NODELAY', 121); +define('CURLOPT_TCP_NODELAY', 121); /** * An array of HTTP 200 responses that will be treated as valid responses and not as errors. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_HTTP200ALIASES', 10104); +define('CURLOPT_HTTP200ALIASES', 10104); /** * Value for the CURLOPT_TIMECONDITION option. * Return the page only if it has been modified since the time specified in CURLOPT_TIMEVALUE. * @link https://www.php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_TIMECONDITION.html */ -define ('CURL_TIMECOND_IFMODSINCE', 1); +define('CURL_TIMECOND_IFMODSINCE', 1); /** * Value for the CURLOPT_TIMECONDITION option. * Return the page if it hasn't been modified since the time specified in CURLOPT_TIMEVALUE. * @link https://www.php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_TIMECONDITION.html */ -define ('CURL_TIMECOND_IFUNMODSINCE', 2); +define('CURL_TIMECOND_IFUNMODSINCE', 2); /** * Value for the CURLOPT_TIMECONDITION option. * @link https://www.php.net/manual/en/curl.constants.php */ -define ('CURL_TIMECOND_LASTMOD', 3); +define('CURL_TIMECOND_LASTMOD', 3); /** * The HTTP authentication method(s) to use. * The options are: CURLAUTH_BASIC, CURLAUTH_DIGEST, CURLAUTH_GSSNEGOTIATE, CURLAUTH_NTLM, CURLAUTH_ANY, and CURLAUTH_ANYSAFE. @@ -817,57 +817,57 @@ * CURLAUTH_ANYSAFE is an alias for CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_HTTPAUTH', 107); +define('CURLOPT_HTTPAUTH', 107); /** * Value for the CURLOPT_HTTPAUTH option. * Allows username/password authentication. * @link https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html */ -define ('CURLAUTH_BASIC', 1); +define('CURLAUTH_BASIC', 1); /** * Value for the CURLOPT_HTTPAUTH option. * @link https://www.php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html */ -define ('CURLAUTH_DIGEST', 2); +define('CURLAUTH_DIGEST', 2); /** * Value for the CURLOPT_HTTPAUTH option. * @link https://www.php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html */ -define ('CURLAUTH_GSSNEGOTIATE', 4); +define('CURLAUTH_GSSNEGOTIATE', 4); /** * Value for the CURLOPT_HTTPAUTH option. * @link https://www.php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html */ -define ('CURLAUTH_NTLM', 8); +define('CURLAUTH_NTLM', 8); /** * Value for the CURLOPT_HTTPAUTH option. * Is an alias for CURLAUTH_BASIC | CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM. * @link https://www.php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html */ -define ('CURLAUTH_ANY', -17); +define('CURLAUTH_ANY', -17); /** * Value for the CURLOPT_HTTPAUTH option. * Is an alias for CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM. * @link https://www.php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html */ -define ('CURLAUTH_ANYSAFE', -18); +define('CURLAUTH_ANYSAFE', -18); /** * The HTTP authentication method(s) to use for the proxy connection. * Use the same bitmasks as described in CURLOPT_HTTPAUTH. * For proxy authentication, only CURLAUTH_BASIC and CURLAUTH_NTLM are currently supported. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_PROXYAUTH', 111); +define('CURLOPT_PROXYAUTH', 111); /** * TRUE to create missing directories when an FTP operation encounters a path that currently doesn't exist. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_FTP_CREATE_MISSING_DIRS', 110); +define('CURLOPT_FTP_CREATE_MISSING_DIRS', 110); /** * Any data that should be associated with this cURL handle. @@ -876,281 +876,281 @@ * @link https://php.net/manual/en/curl.constants.php * @since 5.2.4 */ -define ('CURLOPT_PRIVATE', 10103); +define('CURLOPT_PRIVATE', 10103); /** * The last response code * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_RESPONSE_CODE', 2097154); +define('CURLINFO_RESPONSE_CODE', 2097154); /** * The CONNECT response code * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_HTTP_CONNECTCODE', 2097174); +define('CURLINFO_HTTP_CONNECTCODE', 2097174); /** * Bitmask indicating the authentication method(s) available according to the previous response * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_HTTPAUTH_AVAIL', 2097175); +define('CURLINFO_HTTPAUTH_AVAIL', 2097175); /** * Bitmask indicating the proxy authentication method(s) available according to the previous response * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_PROXYAUTH_AVAIL', 2097176); +define('CURLINFO_PROXYAUTH_AVAIL', 2097176); /** * Errno from a connect failure. The number is OS and system specific. * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_OS_ERRNO', 2097177); +define('CURLINFO_OS_ERRNO', 2097177); /** * Number of connections curl had to create to achieve the previous transfer * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_NUM_CONNECTS', 2097178); +define('CURLINFO_NUM_CONNECTS', 2097178); /** * OpenSSL crypto-engines supported * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_SSL_ENGINES', 4194331); +define('CURLINFO_SSL_ENGINES', 4194331); /** * All known cookies * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_COOKIELIST', 4194332); +define('CURLINFO_COOKIELIST', 4194332); /** * Entry path in FTP server * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_FTP_ENTRY_PATH', 1048606); +define('CURLINFO_FTP_ENTRY_PATH', 1048606); /** * Time in seconds it took from the start until the SSL/SSH connect/handshake to the remote host was completed * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_APPCONNECT_TIME',3145761); +define('CURLINFO_APPCONNECT_TIME', 3145761); /** * TLS certificate chain * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_CERTINFO', 4194338); +define('CURLINFO_CERTINFO', 4194338); /** * Info on unmet time conditional * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_CONDITION_UNMET', 2097187); +define('CURLINFO_CONDITION_UNMET', 2097187); /** * Next RTSP client CSeq * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_RTSP_CLIENT_CSEQ', 2097189); +define('CURLINFO_RTSP_CLIENT_CSEQ', 2097189); /** * Recently received CSeq * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_RTSP_CSEQ_RECV', 2097191); +define('CURLINFO_RTSP_CSEQ_RECV', 2097191); /** * Next RTSP server CSeq * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_RTSP_SERVER_CSEQ', 2097190); +define('CURLINFO_RTSP_SERVER_CSEQ', 2097190); /** * RTSP session ID * @link https://php.net/manual/en/function.curl-getinfo.php * @since 5.5 */ -define ('CURLINFO_RTSP_SESSION_ID', 1048612); +define('CURLINFO_RTSP_SESSION_ID', 1048612); /** * Value for the CURLOPT_CLOSEPOLICY option. * @link https://www.php.net/manual/en/curl.constants.php * @deprecated it was never implemented in cURL and never had any effect. */ -define ('CURLCLOSEPOLICY_LEAST_RECENTLY_USED', 2); +define('CURLCLOSEPOLICY_LEAST_RECENTLY_USED', 2); /** * Value for the CURLOPT_CLOSEPOLICY option. * @link https://www.php.net/manual/en/curl.constants.php * @deprecated it was never implemented in cURL and never had any effect. */ -define ('CURLCLOSEPOLICY_LEAST_TRAFFIC', 3); +define('CURLCLOSEPOLICY_LEAST_TRAFFIC', 3); /** * Value for the CURLOPT_CLOSEPOLICY option. * @link https://www.php.net/manual/en/curl.constants.php * @deprecated it was never implemented in cURL and never had any effect. */ -define ('CURLCLOSEPOLICY_SLOWEST', 4); +define('CURLCLOSEPOLICY_SLOWEST', 4); /** * Value for the CURLOPT_CLOSEPOLICY option. * @link https://www.php.net/manual/en/curl.constants.php * @deprecated it was never implemented in cURL and never had any effect. */ -define ('CURLCLOSEPOLICY_CALLBACK', 5); +define('CURLCLOSEPOLICY_CALLBACK', 5); /** * Value for the CURLOPT_CLOSEPOLICY option. * @link https://www.php.net/manual/en/curl.constants.php * @deprecated it was never implemented in cURL and never had any effect. */ -define ('CURLCLOSEPOLICY_OLDEST', 1); +define('CURLCLOSEPOLICY_OLDEST', 1); /** * Last effective URL * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_EFFECTIVE_URL', 1048577); +define('CURLINFO_EFFECTIVE_URL', 1048577); /** * As of PHP 5.5.0 and cURL 7.10.8, this is a legacy alias of CURLINFO_RESPONSE_CODE. * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_HTTP_CODE', 2097154); +define('CURLINFO_HTTP_CODE', 2097154); /** * Total size of all headers received * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_HEADER_SIZE', 2097163); +define('CURLINFO_HEADER_SIZE', 2097163); /** * Total size of issued requests, currently only for HTTP requests * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_REQUEST_SIZE', 2097164); +define('CURLINFO_REQUEST_SIZE', 2097164); /** * Total transaction time in seconds for last transfer * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_TOTAL_TIME', 3145731); +define('CURLINFO_TOTAL_TIME', 3145731); /** * Time in seconds until name resolving was complete * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_NAMELOOKUP_TIME', 3145732); +define('CURLINFO_NAMELOOKUP_TIME', 3145732); /** * Time in seconds it took to establish the connection * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_CONNECT_TIME', 3145733); +define('CURLINFO_CONNECT_TIME', 3145733); /** * Time in seconds from start until just before file transfer begins * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_PRETRANSFER_TIME', 3145734); +define('CURLINFO_PRETRANSFER_TIME', 3145734); /** * Total number of bytes uploaded * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_SIZE_UPLOAD', 3145735); +define('CURLINFO_SIZE_UPLOAD', 3145735); /** * Total number of bytes downloaded * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_SIZE_DOWNLOAD', 3145736); +define('CURLINFO_SIZE_DOWNLOAD', 3145736); /** * Average download speed * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_SPEED_DOWNLOAD', 3145737); +define('CURLINFO_SPEED_DOWNLOAD', 3145737); /** * Average upload speed * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_SPEED_UPLOAD', 3145738); +define('CURLINFO_SPEED_UPLOAD', 3145738); /** * Remote time of the retrieved document, with the CURLOPT_FILETIME enabled; * if -1 is returned the time of the document is unknown * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_FILETIME', 2097166); +define('CURLINFO_FILETIME', 2097166); /** * Result of SSL certification verification requested by setting CURLOPT_SSL_VERIFYPEER * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_SSL_VERIFYRESULT', 2097165); +define('CURLINFO_SSL_VERIFYRESULT', 2097165); /** * Content length of download, read from Content-Length: field * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_CONTENT_LENGTH_DOWNLOAD', 3145743); +define('CURLINFO_CONTENT_LENGTH_DOWNLOAD', 3145743); /** * Specified size of upload * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_CONTENT_LENGTH_UPLOAD', 3145744); +define('CURLINFO_CONTENT_LENGTH_UPLOAD', 3145744); /** * Time in seconds until the first byte is about to be transferred * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_STARTTRANSFER_TIME', 3145745); +define('CURLINFO_STARTTRANSFER_TIME', 3145745); /** * Content-Type: of the requested document. NULL indicates server did not send valid Content-Type: header * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_CONTENT_TYPE', 1048594); +define('CURLINFO_CONTENT_TYPE', 1048594); /** * Time in seconds of all redirection steps before final transaction was started, * with the CURLOPT_FOLLOWLOCATION option enabled * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_REDIRECT_TIME', 3145747); +define('CURLINFO_REDIRECT_TIME', 3145747); /** * Number of redirects, with the CURLOPT_FOLLOWLOCATION option enabled * @link https://www.php.net/manual/en/function.curl-getinfo.php */ -define ('CURLINFO_REDIRECT_COUNT', 2097172); +define('CURLINFO_REDIRECT_COUNT', 2097172); /** * TRUE to track the handle's request string * @link https://www.php.net/manual/en/function.curl-getinfo.php * @since 5.1.3 */ -define ('CURLINFO_HEADER_OUT', 2); +define('CURLINFO_HEADER_OUT', 2); /** * Private data associated with this cURL handle, previously set with the CURLOPT_PRIVATE option of {@see curl_getinfo()} * @link https://www.php.net/manual/en/function.curl-getinfo.php * @since 5.2.4 */ -define ('CURLINFO_PRIVATE', 1048597); +define('CURLINFO_PRIVATE', 1048597); /** * Supports IPv6 * @link https://php.net/manual/en/curl.constants.php */ -define ('CURL_VERSION_IPV6', 1); +define('CURL_VERSION_IPV6', 1); /** * Supports Kerberos V4 (when using FTP) * @link https://php.net/manual/en/curl.constants.php */ -define ('CURL_VERSION_KERBEROS4', 2); +define('CURL_VERSION_KERBEROS4', 2); /** * Supports SSL (HTTPS/FTPS) * @link https://php.net/manual/en/curl.constants.php */ -define ('CURL_VERSION_SSL', 4); +define('CURL_VERSION_SSL', 4); /** * Supports HTTP deflate using libz * @link https://php.net/manual/en/curl.constants.php */ -define ('CURL_VERSION_LIBZ', 8); +define('CURL_VERSION_LIBZ', 8); /** * Will be the most recent age value for the libcurl. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLVERSION_NOW', 7); +define('CURLVERSION_NOW', 7); /** * All fine. Proceed as usual. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_OK', 0); +define('CURLE_OK', 0); /** * The URL you passed to libcurl used a protocol that this libcurl does not support. * The support might be a compile-time option that you didn't use, @@ -1158,7 +1158,7 @@ * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_UNSUPPORTED_PROTOCOL', 1); +define('CURLE_UNSUPPORTED_PROTOCOL', 1); /** * Very early initialization code failed. * This is likely to be an internal error or problem, @@ -1166,105 +1166,105 @@ * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FAILED_INIT', 2); +define('CURLE_FAILED_INIT', 2); /** * The URL was not properly formatted. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_URL_MALFORMAT', 3); +define('CURLE_URL_MALFORMAT', 3); /** * A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_URL_MALFORMAT_USER', 4); +define('CURLE_URL_MALFORMAT_USER', 4); /** * Couldn't resolve proxy. The given proxy host could not be resolved. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_COULDNT_RESOLVE_PROXY', 5); +define('CURLE_COULDNT_RESOLVE_PROXY', 5); /** * Couldn't resolve host. The given remote host was not resolved. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_COULDNT_RESOLVE_HOST', 6); +define('CURLE_COULDNT_RESOLVE_HOST', 6); /** * Failed to connect to host or proxy. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_COULDNT_CONNECT', 7); +define('CURLE_COULDNT_CONNECT', 7); /** * The server sent data libcurl couldn't parse. * This error code was known as as CURLE_FTP_WEIRD_SERVER_REPLY before 7.51.0. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_WEIRD_SERVER_REPLY', 8); +define('CURLE_FTP_WEIRD_SERVER_REPLY', 8); /** * We were denied access to the resource given in the URL. * For FTP, this occurs while trying to change to the remote directory. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_ACCESS_DENIED', 9); +define('CURLE_FTP_ACCESS_DENIED', 9); /** * While waiting for the server to connect back when an active FTP session is used, * an error code was sent over the control connection or similar. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_USER_PASSWORD_INCORRECT', 10); +define('CURLE_FTP_USER_PASSWORD_INCORRECT', 10); /** * After having sent the FTP password to the server, libcurl expects a proper reply. * This error code indicates that an unexpected code was returned. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_WEIRD_PASS_REPLY', 11); +define('CURLE_FTP_WEIRD_PASS_REPLY', 11); /** * During an active FTP session while waiting for the server to connect, * the CURLOPT_ACCEPTTIMEOUT_MS (or the internal default) timeout expired. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_WEIRD_USER_REPLY', 12); +define('CURLE_FTP_WEIRD_USER_REPLY', 12); /** * Libcurl failed to get a sensible result back from the server as a response to either a PASV or a EPSV command. * The server is flawed. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_WEIRD_PASV_REPLY', 13); +define('CURLE_FTP_WEIRD_PASV_REPLY', 13); /** * FTP servers return a 227-line as a response to a PASV command. * If libcurl fails to parse that line, this return code is passed back. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_WEIRD_227_FORMAT', 14); +define('CURLE_FTP_WEIRD_227_FORMAT', 14); /** * An internal failure to lookup the host used for the new connection. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_CANT_GET_HOST', 15); +define('CURLE_FTP_CANT_GET_HOST', 15); /** * A problem was detected in the HTTP2 framing layer. * This is somewhat generic and can be one out of several problems, see the error buffer for details. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_CANT_RECONNECT', 16); +define('CURLE_FTP_CANT_RECONNECT', 16); /** * Received an error when trying to set the transfer mode to binary or ASCII. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_COULDNT_SET_BINARY', 17); +define('CURLE_FTP_COULDNT_SET_BINARY', 17); /** * A file transfer was shorter or larger than expected. * This happens when the server first reports an expected transfer size, and then delivers data @@ -1272,102 +1272,102 @@ * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_PARTIAL_FILE', 18); +define('CURLE_PARTIAL_FILE', 18); /** * This was either a weird reply to a 'RETR' command or a zero byte transfer complete. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_COULDNT_RETR_FILE', 19); +define('CURLE_FTP_COULDNT_RETR_FILE', 19); /** * After a completed file transfer, the FTP server did not respond a proper * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLE_FTP_WRITE_ERROR', 20); +define('CURLE_FTP_WRITE_ERROR', 20); /** * When sending custom "QUOTE" commands to the remote server, * one of the commands returned an error code that was 400 or higher (for FTP) or otherwise indicated unsuccessful completion of the command. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_QUOTE_ERROR', 21); +define('CURLE_FTP_QUOTE_ERROR', 21); /** * This is returned if CURLOPT_FAILONERROR is set TRUE and the HTTP server returns an error code that is >= 400. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_HTTP_NOT_FOUND', 22); +define('CURLE_HTTP_NOT_FOUND', 22); /** * An error occurred when writing received data to a local file, or an error was returned to libcurl from a write callback. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_WRITE_ERROR', 23); +define('CURLE_WRITE_ERROR', 23); /** * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLE_MALFORMAT_USER', 24); +define('CURLE_MALFORMAT_USER', 24); /** * Failed starting the upload. For FTP, the server typically denied the STOR command. * The error buffer usually contains the server's explanation for this. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_COULDNT_STOR_FILE', 25); +define('CURLE_FTP_COULDNT_STOR_FILE', 25); /** * There was a problem reading a local file or an error returned by the read callback. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_READ_ERROR', 26); +define('CURLE_READ_ERROR', 26); /** * A memory allocation request failed. This is serious badness and things are severely screwed up if this ever occurs. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_OUT_OF_MEMORY', 27); +define('CURLE_OUT_OF_MEMORY', 27); /** * Operation timeout. The specified time-out period was reached according to the conditions. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_OPERATION_TIMEOUTED', 28); +define('CURLE_OPERATION_TIMEOUTED', 28); /** * libcurl failed to set ASCII transfer type (TYPE A). * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLE_FTP_COULDNT_SET_ASCII', 29); +define('CURLE_FTP_COULDNT_SET_ASCII', 29); /** * The FTP PORT command returned error. * This mostly happens when you haven't specified a good enough address for libcurl to use. See CURLOPT_FTPPORT. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_PORT_FAILED', 30); +define('CURLE_FTP_PORT_FAILED', 30); /** * The FTP REST command returned error. This should never happen if the server is sane. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_COULDNT_USE_REST', 31); +define('CURLE_FTP_COULDNT_USE_REST', 31); /** * The FTP SIZE command returned error. SIZE is not a kosher FTP command, * it is an extension and not all servers support it. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLE_FTP_COULDNT_GET_SIZE', 32); +define('CURLE_FTP_COULDNT_GET_SIZE', 32); /** * The server does not support or accept range requests. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_HTTP_RANGE_ERROR', 33); +define('CURLE_HTTP_RANGE_ERROR', 33); /** * This is an odd error that mainly occurs due to internal confusion. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_HTTP_POST_ERROR', 34); +define('CURLE_HTTP_POST_ERROR', 34); /** * A problem occurred somewhere in the SSL/TLS handshake. * You really want the error buffer and read the message there as it pinpoints the problem slightly more. @@ -1375,196 +1375,196 @@ * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_SSL_CONNECT_ERROR', 35); +define('CURLE_SSL_CONNECT_ERROR', 35); /** * The download could not be resumed because the specified offset was out of the file boundary. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_BAD_DOWNLOAD_RESUME', 36); +define('CURLE_FTP_BAD_DOWNLOAD_RESUME', 36); /** * A file given with FILE:// couldn't be opened. * Most likely because the file path doesn't identify an existing file. Did you check file permissions? * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FILE_COULDNT_READ_FILE', 37); +define('CURLE_FILE_COULDNT_READ_FILE', 37); /** * LDAP cannot bind. LDAP bind operation failed. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_LDAP_CANNOT_BIND', 38); +define('CURLE_LDAP_CANNOT_BIND', 38); /** * LDAP search failed. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_LDAP_SEARCH_FAILED', 39); +define('CURLE_LDAP_SEARCH_FAILED', 39); /** * Library not found. The LDAP library was not found. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLE_LIBRARY_NOT_FOUND', 40); +define('CURLE_LIBRARY_NOT_FOUND', 40); /** * Function not found. A required zlib function was not found. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FUNCTION_NOT_FOUND', 41); +define('CURLE_FUNCTION_NOT_FOUND', 41); /** * Aborted by callback. A callback returned "abort" to libcurl. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_ABORTED_BY_CALLBACK', 42); +define('CURLE_ABORTED_BY_CALLBACK', 42); /** * A function was called with a bad parameter. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_BAD_FUNCTION_ARGUMENT', 43); +define('CURLE_BAD_FUNCTION_ARGUMENT', 43); /** * This is never returned * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLE_BAD_CALLING_ORDER', 44); +define('CURLE_BAD_CALLING_ORDER', 44); /** * Interface error. A specified outgoing interface could not be used. * Set which interface to use for outgoing connections' source IP address with CURLOPT_INTERFACE. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_HTTP_PORT_FAILED', 45); +define('CURLE_HTTP_PORT_FAILED', 45); /** * This is never returned * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLE_BAD_PASSWORD_ENTERED', 46); +define('CURLE_BAD_PASSWORD_ENTERED', 46); /** * Too many redirects. When following redirects, libcurl hit the maximum amount. * Set your limit with CURLOPT_MAXREDIRS. * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_TOO_MANY_REDIRECTS', 47); +define('CURLE_TOO_MANY_REDIRECTS', 47); /** * An option passed to libcurl is not recognized/known. Refer to the appropriate documentation. * This is most likely a problem in the program that uses libcurl. * The error buffer might contain more specific information about which exact option it concerns. * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_UNKNOWN_TELNET_OPTION', 48); +define('CURLE_UNKNOWN_TELNET_OPTION', 48); /** * A telnet option string was Illegally formatted. * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_TELNET_OPTION_SYNTAX', 49); +define('CURLE_TELNET_OPTION_SYNTAX', 49); /** * Currently unused. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLE_OBSOLETE', 50); +define('CURLE_OBSOLETE', 50); /** * The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK. * This error code has been unified with CURLE_SSL_CACERT since 7.62.0. Its previous value was 51. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_SSL_PEER_CERTIFICATE', 60); +define('CURLE_SSL_PEER_CERTIFICATE', 60); /** * Nothing was returned from the server, and under the circumstances, getting nothing is considered an error. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_GOT_NOTHING', 52); +define('CURLE_GOT_NOTHING', 52); /** * The specified crypto engine wasn't found. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_SSL_ENGINE_NOTFOUND', 53); +define('CURLE_SSL_ENGINE_NOTFOUND', 53); /** * Failed setting the selected SSL crypto engine as default! * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_SSL_ENGINE_SETFAILED', 54); +define('CURLE_SSL_ENGINE_SETFAILED', 54); /** * Failed sending network data. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_SEND_ERROR', 55); +define('CURLE_SEND_ERROR', 55); /** * Failure with receiving network data. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_RECV_ERROR', 56); +define('CURLE_RECV_ERROR', 56); /** * The share object is currently in use. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_SHARE_IN_USE', 57); +define('CURLE_SHARE_IN_USE', 57); /** * Problem with the local client certificate. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_SSL_CERTPROBLEM', 58); +define('CURLE_SSL_CERTPROBLEM', 58); /** * Couldn't use specified cipher. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_SSL_CIPHER', 59); +define('CURLE_SSL_CIPHER', 59); /** * The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK. * This error code has been unified with CURLE_SSL_PEER_CERTIFICATE since 7.62.0. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_SSL_CACERT', 60); +define('CURLE_SSL_CACERT', 60); /** * Unrecognized transfer encoding. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_BAD_CONTENT_ENCODING', 61); +define('CURLE_BAD_CONTENT_ENCODING', 61); /** * Invalid LDAP URL. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_LDAP_INVALID_URL', 62); +define('CURLE_LDAP_INVALID_URL', 62); /** * Maximum file size exceeded. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FILESIZE_EXCEEDED', 63); +define('CURLE_FILESIZE_EXCEEDED', 63); /** * Requested FTP SSL level failed. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLE_FTP_SSL_FAILED', 64); +define('CURLE_FTP_SSL_FAILED', 64); /** * Value for the CURLOPT_PROXYTYPE option. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLPROXY_HTTP', 0); +define('CURLPROXY_HTTP', 0); /** * Value for the CURLOPT_PROXYTYPE option. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLPROXY_SOCKS4', 4); +define('CURLPROXY_SOCKS4', 4); /** * Value for the CURLOPT_PROXYTYPE option. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLPROXY_SOCKS5', 5); +define('CURLPROXY_SOCKS5', 5); /** * Value for the CURLOPT_NETRC option. * The use of the ~/.netrc file is optional, and information in the URL is to be preferred. @@ -1572,13 +1572,13 @@ * to find the first user name and password after that machine, which ever information is not specified. * @link https://curl.haxx.se/libcurl/c/CURLOPT_NETRC.html */ -define ('CURL_NETRC_OPTIONAL', 1); +define('CURL_NETRC_OPTIONAL', 1); /** * Value for the CURLOPT_NETRC option. * The library will ignore the ~/.netrc file. This is the default. * @link https://curl.haxx.se/libcurl/c/CURLOPT_NETRC.html */ -define ('CURL_NETRC_IGNORED', 0); +define('CURL_NETRC_IGNORED', 0); /** * Value for the CURLOPT_NETRC option. * The use of the ~/.netrc file is required, and information in the URL is to be ignored. @@ -1586,150 +1586,150 @@ * to find the first user name and password after that machine, which ever information is not specified. * @link https://curl.haxx.se/libcurl/c/CURLOPT_NETRC.html */ -define ('CURL_NETRC_REQUIRED', 2); +define('CURL_NETRC_REQUIRED', 2); /** * Value for the CURLOPT_HTTP_VERSION option. * Let's CURL decide which version to use. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURL_HTTP_VERSION_NONE', 0); +define('CURL_HTTP_VERSION_NONE', 0); /** * Value for the CURLOPT_HTTP_VERSION option. * Forces HTTP/1.0. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURL_HTTP_VERSION_1_0', 1); +define('CURL_HTTP_VERSION_1_0', 1); /** * Value for the CURLOPT_HTTP_VERSION option. * Forces HTTP/1.1. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURL_HTTP_VERSION_1_1', 2); +define('CURL_HTTP_VERSION_1_1', 2); /** * Value for the CURLOPT_HTTP_VERSION option. * Attempts HTTP 2. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURL_HTTP_VERSION_2_0', 3); +define('CURL_HTTP_VERSION_2_0', 3); /** * This is not really an error. It means you should call {@see curl_multi_exec()} again without doing select() or similar in between. * Before version 7.20.0 this could be returned by {@see curl_multi_exec()}, but in later versions this return code is never used. * @link https://www.php.net/manual/en/function.curl-multi-exec.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLM_CALL_MULTI_PERFORM', -1); +define('CURLM_CALL_MULTI_PERFORM', -1); /** * Things are fine. * @link https://www.php.net/manual/en/function.curl-multi-exec.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLM_OK', 0); +define('CURLM_OK', 0); /** * The passed-in handle is not a valid CURLM handle. * @link https://www.php.net/manual/en/function.curl-multi-exec.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLM_BAD_HANDLE', 1); +define('CURLM_BAD_HANDLE', 1); /** * An easy handle was not good/valid. It could mean that it isn't an easy handle at all, * or possibly that the handle already is in use by this or another multi handle. * @link https://www.php.net/manual/en/function.curl-multi-exec.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLM_BAD_EASY_HANDLE', 2); +define('CURLM_BAD_EASY_HANDLE', 2); /** * Out of memory error. * @link https://www.php.net/manual/en/function.curl-multi-exec.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLM_OUT_OF_MEMORY', 3); +define('CURLM_OUT_OF_MEMORY', 3); /** * libcurl' internal error. * @link https://www.php.net/manual/en/function.curl-multi-exec.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define ('CURLM_INTERNAL_ERROR', 4); +define('CURLM_INTERNAL_ERROR', 4); /** * The message identifies a transfer that is done, and then result contains the return code for the easy handle that just completed. * Other return values are currently not available. * @link https://www.php.net/manual/en/function.curl-multi-info-read.php * @link https://curl.haxx.se/libcurl/c/curl_multi_info_read.html */ -define ('CURLMSG_DONE', 1); +define('CURLMSG_DONE', 1); /** * The FTP authentication method (when is activated): * CURLFTPAUTH_SSL (try SSL first), CURLFTPAUTH_TLS (try TLS first), or CURLFTPAUTH_DEFAULT (let cURL decide). * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLOPT_FTPSSLAUTH', 129); +define('CURLOPT_FTPSSLAUTH', 129); /** * Value for the CURLOPT_FTPSSLAUTH option. * Let cURL decide FTP authentication method. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLFTPAUTH_DEFAULT', 0); +define('CURLFTPAUTH_DEFAULT', 0); /** * Value for the CURLOPT_FTPSSLAUTH option. * Try SSL first as FTP authentication method. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLFTPAUTH_SSL', 1); +define('CURLFTPAUTH_SSL', 1); /** * Value for the CURLOPT_FTPSSLAUTH option. * Try TLS first as FTP authentication method. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLFTPAUTH_TLS', 2); +define('CURLFTPAUTH_TLS', 2); /** * @link https://php.net/manual/en/curl.constants.php * @deprecated use CURLOPT_USE_SSL instead. */ -define ('CURLOPT_FTP_SSL', 119); +define('CURLOPT_FTP_SSL', 119); /** * Value for the CURLOPT_FTP_SSL option. * Don't attempt to use SSL. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLFTPSSL_NONE', 0); +define('CURLFTPSSL_NONE', 0); /** * Value for the CURLOPT_FTP_SSL option. * Try using SSL, proceed as normal otherwise. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLFTPSSL_TRY', 1); +define('CURLFTPSSL_TRY', 1); /** * Value for the CURLOPT_FTP_SSL option. * Require SSL for the control connection or fail. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLFTPSSL_CONTROL', 2); +define('CURLFTPSSL_CONTROL', 2); /** * Value for the CURLOPT_FTP_SSL option. * Require SSL for all communication or fail. * @link https://php.net/manual/en/curl.constants.php */ -define ('CURLFTPSSL_ALL', 3); +define('CURLFTPSSL_ALL', 3); /** * Tell curl which method to use to reach a file on a FTP(S) server. * Possible values are CURLFTPMETHOD_MULTICWD, CURLFTPMETHOD_NOCWD and CURLFTPMETHOD_SINGLECWD. * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.3 */ -define ('CURLOPT_FTP_FILEMETHOD', 138); +define('CURLOPT_FTP_FILEMETHOD', 138); /** * Ignore the IP address in the PASV response * @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SKIP_PASV_IP.html */ -define ('CURLOPT_FTP_SKIP_PASV_IP', 137); +define('CURLOPT_FTP_SKIP_PASV_IP', 137); /** * TRUE to disable support for the @ prefix for uploading files in CURLOPT_POSTFIELDS, * which means that values starting with @ can be safely passed as fields. @@ -1737,94 +1737,94 @@ * @since 5.5 * @deprecated 7.0 Use CURLFile for uploads instead. */ -define ('CURLOPT_SAFE_UPLOAD', -1); +define('CURLOPT_SAFE_UPLOAD', -1); /** * Value for the CURLOPT_FTP_FILEMETHOD option. * libcurl does a single CWD operation for each path part in the given URL. * For deep hierarchies this means many commands. This is how RFC 1738 says it should be done. This is the default but the slowest behavior. * @link https://www.php.net/manual/en/curl.constants.php */ -define ('CURLFTPMETHOD_MULTICWD', 1); +define('CURLFTPMETHOD_MULTICWD', 1); /** * Value for the CURLOPT_FTP_FILEMETHOD option. * libcurl does no CWD at all. * libcurl will do SIZE, RETR, STOR etc and give a full path to the server for all these commands. This is the fastest behavior. * @link https://www.php.net/manual/en/curl.constants.php */ -define ('CURLFTPMETHOD_NOCWD', 2); +define('CURLFTPMETHOD_NOCWD', 2); /** * Value for the CURLOPT_FTP_FILEMETHOD option. * libcurl does one CWD with the full target directory and then operates on the file "normally" (like in the multicwd case). * This is somewhat more standards compliant than 'nocwd' but without the full penalty of 'multicwd'. * @link https://www.php.net/manual/en/curl.constants.php */ -define ('CURLFTPMETHOD_SINGLECWD', 3); +define('CURLFTPMETHOD_SINGLECWD', 3); + /** + * Value for the CURLOPT_PROTOCOLS option. + * @link https://www.php.net/manual/en/function.curl-setopt.php + */ + define('CURLPROTO_HTTP', 1); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ - define ('CURLPROTO_HTTP', 1); +define('CURLPROTO_HTTPS', 2); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_HTTPS', 2); +define('CURLPROTO_FTP', 4); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_FTP', 4); +define('CURLPROTO_FTPS', 8); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_FTPS', 8); +define('CURLPROTO_SCP', 16); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_SCP', 16); +define('CURLPROTO_SFTP', 32); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_SFTP', 32); +define('CURLPROTO_TELNET', 64); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_TELNET', 64); +define('CURLPROTO_LDAP', 128); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_LDAP', 128); +define('CURLPROTO_LDAPS', 256); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_LDAPS', 256); +define('CURLPROTO_DICT', 512); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_DICT', 512); +define('CURLPROTO_FILE', 1024); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_FILE', 1024); +define('CURLPROTO_TFTP', 2048); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLPROTO_TFTP', 2048); -/** - * Value for the CURLOPT_PROTOCOLS option. - * @link https://www.php.net/manual/en/function.curl-setopt.php - */ -define ('CURLPROTO_ALL', -1); +define('CURLPROTO_ALL', -1); /** * As of cURL 7.43.0, the value is a bitmask. @@ -1839,7 +1839,7 @@ * @link https://www.php.net/manual/en/function.curl-multi-setopt.php * @since 5.5 */ -define ('CURLMOPT_PIPELINING', 3); +define('CURLMOPT_PIPELINING', 3); /** * Pass a number that will be used as the maximum amount of simultaneously open connections that libcurl may cache. @@ -1848,43 +1848,42 @@ * @link https://www.php.net/manual/en/function.curl-multi-setopt.php * @since 5.5 */ -define ('CURLMOPT_MAXCONNECTS', 6); +define('CURLMOPT_MAXCONNECTS', 6); /** * Specifies a type of data that should be shared. * @link https://www.php.net/manual/en/function.curl-share-setopt.php */ -define ('CURLSHOPT_SHARE', 1); +define('CURLSHOPT_SHARE', 1); /** * Specifies a type of data that will be no longer shared. * @link https://www.php.net/manual/en/function.curl-share-setopt.php */ -define ('CURLSHOPT_UNSHARE', 2); +define('CURLSHOPT_UNSHARE', 2); /** * Value for the CURLSHOPT_SHARE option. * Shares cookie data. * @link https://www.php.net/manual/en/function.curl-share-setopt.php */ -define ('CURL_LOCK_DATA_COOKIE', 2); +define('CURL_LOCK_DATA_COOKIE', 2); /** * Value for the CURLSHOPT_SHARE option. * Shares DNS cache. Note that when you use cURL multi handles, * all handles added to the same multi handle will share DNS cache by default. * @link https://www.php.net/manual/en/function.curl-share-setopt.php */ -define ('CURL_LOCK_DATA_DNS', 3); +define('CURL_LOCK_DATA_DNS', 3); /** * Value for the CURLSHOPT_SHARE option. * Shares SSL session IDs, reducing the time spent on the SSL handshake when reconnecting to the same server. * Note that SSL session IDs are reused within the same handle by default. * @link https://www.php.net/manual/en/function.curl-share-setopt.php */ -define ('CURL_LOCK_DATA_SSL_SESSION', 4); +define('CURL_LOCK_DATA_SSL_SESSION', 4); /** * The password required to use the CURLOPT_SSLKEY or CURLOPT_SSH_PRIVATE_KEYFILE private key. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define ('CURLOPT_KEYPASSWD', 10026); - +define('CURLOPT_KEYPASSWD', 10026); /** * Value for the CURLOPT_FTP_CREATE_MISSING_DIRS option. @@ -2166,7 +2165,6 @@ */ define('CURL_REDIR_POST_302', 2); - /** * Value for the CURLOPT_POSTREDIR option. * @link https://php.net/manual/en/curl.constants.php @@ -2179,7 +2177,7 @@ * @link https://php.net/manual/en/curl.constants.php * @since 7.0.7 */ -define('CURLPROXY_HTTP_1_0',1); +define('CURLPROXY_HTTP_1_0', 1); /** * Value for the CURLOPT_POSTREDIR option. * @link https://php.net/manual/en/curl.constants.php @@ -2192,14 +2190,14 @@ * @link https://www.php.net/manual/en/function.curl-multi-setopt.php * @since 7.0.7 */ -define ('CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE', 30010); +define('CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE', 30010); /** * Pass a number that specifies the size threshold for pipelining penalty in bytes. * @link https://www.php.net/manual/en/function.curl-multi-setopt.php * @since 7.0.7 */ -define ('CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE', 30009); +define('CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE', 30009); /** * Pass a number that specifies the maximum number of connections to a single host. @@ -2230,7 +2228,7 @@ * @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_CREATE_MISSING_DIRS.html * @since 7.0.7 */ -define ('CURLFTP_CREATE_DIR_RETRY', 2); +define('CURLFTP_CREATE_DIR_RETRY', 2); /** * Value for the CURLOPT_HTTPAUTH option. @@ -2240,7 +2238,6 @@ */ define('CURLAUTH_NEGOTIATE', 4); - /** * Pass a callable that will be registered to handle server pushes and should have the following signature: * parent_ch @@ -2268,7 +2265,7 @@ * @link https://www.php.net/manual/en/function.curl-multi-setopt.php * @since 7.1 */ -define('CURL_PUSH_DENY',1); +define('CURL_PUSH_DENY', 1); /** * The default buffer size for CURLOPT_BUFFERSIZE @@ -2600,7 +2597,7 @@ * @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_RESPONSE_TIMEOUT.html * @since 5.5 */ -define ('CURLOPT_FTP_RESPONSE_TIMEOUT', 112); +define('CURLOPT_FTP_RESPONSE_TIMEOUT', 112); /** * Provide a custom address for a specific host and port pair. @@ -2657,21 +2654,21 @@ * @link https://curl.haxx.se/libcurl/c/CURLOPT_PREQUOTE.html * @since 5.5 */ -define('CURLOPT_PREQUOTE',10093); +define('CURLOPT_PREQUOTE', 10093); /** * Set FTP kerberos security level * @link https://curl.haxx.se/libcurl/c/CURLOPT_KRBLEVEL.html * @since 5.5 */ -define('CURLOPT_KRBLEVEL',10063); +define('CURLOPT_KRBLEVEL', 10063); /** * Maximum file size allowed to download (in bytes) * @link https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE.html * @since 5.5 */ -define ('CURLOPT_MAXFILESIZE', 114); +define('CURLOPT_MAXFILESIZE', 114); /** * Set account info for FTP @@ -2930,7 +2927,6 @@ */ define('CURLOPT_DNS_SERVERS', 10211); - /** * Request using SSL / TLS for the transfer * @link https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html @@ -2941,13 +2937,13 @@ * Custom telnet options * @link https://curl.haxx.se/libcurl/c/CURLOPT_TELNETOPTIONS.html */ -define("CURLOPT_TELNETOPTIONS",10070); +define("CURLOPT_TELNETOPTIONS", 10070); /** * The download could not be resumed because the specified offset was out of the file boundary. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define("CURLE_BAD_DOWNLOAD_RESUME",36); +define("CURLE_BAD_DOWNLOAD_RESUME", 36); /** * A file transfer was shorter or larger than expected. * This happens when the server first reports an expected transfer size, and then delivers data @@ -2955,198 +2951,198 @@ * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define("CURLE_FTP_PARTIAL_FILE",18); +define("CURLE_FTP_PARTIAL_FILE", 18); /** * This is returned if CURLOPT_FAILONERROR is set TRUE and the HTTP server returns an error code that is >= 400. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define("CURLE_HTTP_RETURNED_ERROR",22); +define("CURLE_HTTP_RETURNED_ERROR", 22); /** * Operation timeout. The specified time-out period was reached according to the conditions. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define("CURLE_OPERATION_TIMEDOUT",28); +define("CURLE_OPERATION_TIMEDOUT", 28); /** * Failed to match the pinned key specified with CURLOPT_PINNEDPUBLICKEY. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define("CURLE_SSL_PINNEDPUBKEYNOTMATCH",90); +define("CURLE_SSL_PINNEDPUBKEYNOTMATCH", 90); /** * @link https://php.net/manual/en/curl.constants.php */ -define("CURLINFO_LASTONE",59); +define("CURLINFO_LASTONE", 59); /** * An easy handle already added to a multi handle was attempted to get added a second time. * @link https://www.php.net/manual/en/function.curl-multi-exec.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define("CURLM_ADDED_ALREADY",7); +define("CURLM_ADDED_ALREADY", 7); /** * @link https://curl.haxx.se/libcurl/c/symbols-in-versions.html */ -define("CURLSHOPT_NONE",0); +define("CURLSHOPT_NONE", 0); /** * Default value for the CURLOPT_TIMECONDITION option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_TIMECONDITION.html */ -define("CURL_TIMECOND_NONE",0); +define("CURL_TIMECOND_NONE", 0); /** * Value for the CURLOPT_HTTPAUTH option. * Allows no authentication. * @link https://www.php.net/manual/en/function.curl-setopt.php */ -define("CURLAUTH_NONE",0); +define("CURLAUTH_NONE", 0); /** * Problem with reading the SSL CA cert (path? access rights?) * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define("CURLE_SSL_CACERT_BADFILE",77); +define("CURLE_SSL_CACERT_BADFILE", 77); /** * An unspecified error occurred during the SSH session. * @link https://php.net/manual/en/curl.constants.php * @link https://curl.haxx.se/libcurl/c/libcurl-errors.html */ -define("CURLE_SSH",79); +define("CURLE_SSH", 79); /** * Value for the CURLOPT_FTP_SSL_CCC option. * Initiate the shutdown and wait for a reply. * @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html */ -define("CURLFTPSSL_CCC_ACTIVE",2); +define("CURLFTPSSL_CCC_ACTIVE", 2); /** * Value for the CURLOPT_FTP_SSL_CCC option. * Don't attempt to use CCC. * @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html */ -define("CURLFTPSSL_CCC_NONE",0); +define("CURLFTPSSL_CCC_NONE", 0); /** * Value for the CURLOPT_FTP_SSL_CCC option. * Do not initiate the shutdown, but wait for the server to do it. Do not send a reply. * @link https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html */ -define("CURLFTPSSL_CCC_PASSIVE",1); +define("CURLFTPSSL_CCC_PASSIVE", 1); /** * Value for the CURLOPT_USE_SSL option. * Require SSL for all communication or fail. * @link https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html */ -define("CURLUSESSL_ALL",3); +define("CURLUSESSL_ALL", 3); /** * Value for the CURLOPT_USE_SSL option. * Require SSL for the control connection or fail. * @link https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html */ -define("CURLUSESSL_CONTROL",2); +define("CURLUSESSL_CONTROL", 2); /** * Value for the CURLOPT_USE_SSL option. * Don't attempt to use SSL. * @link https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html */ -define("CURLUSESSL_NONE",0); +define("CURLUSESSL_NONE", 0); /** * Value for the CURLOPT_USE_SSL option. * Try using SSL, proceed as normal otherwise. * @link https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html */ -define("CURLUSESSL_TRY",1); +define("CURLUSESSL_TRY", 1); /** * Convenience define that pauses both directions. * @link https://php.net/manual/en/curl.constants.php * @since 5.5 */ -define("CURLPAUSE_ALL",5); +define("CURLPAUSE_ALL", 5); /** * Convenience define that unpauses both directions. * @link https://php.net/manual/en/curl.constants.php * @since 5.5 */ -define("CURLPAUSE_CONT",0); +define("CURLPAUSE_CONT", 0); /** * Pause receiving data. There will be no data received on this connection until this function is called again without this bit set. * Thus, the write callback (CURLOPT_WRITEFUNCTION) won't be called. * @link https://php.net/manual/en/curl.constants.php * @since 5.5 */ -define("CURLPAUSE_RECV",1); +define("CURLPAUSE_RECV", 1); /** * @link https://php.net/manual/en/curl.constants.php * @since 5.5 */ -define("CURLPAUSE_RECV_CONT",0); +define("CURLPAUSE_RECV_CONT", 0); /** * Pause sending data. There will be no data sent on this connection until this function is called again without this bit set. * Thus, the read callback (CURLOPT_READFUNCTION) won't be called. * @link https://php.net/manual/en/curl.constants.php * @since 5.5 */ -define("CURLPAUSE_SEND",4); +define("CURLPAUSE_SEND", 4); /** * @link https://php.net/manual/en/curl.constants.php * @since 5.5 */ -define("CURLPAUSE_SEND_CONT",0); +define("CURLPAUSE_SEND_CONT", 0); /** * Read callback for data uploads. * @link https://curl.haxx.se/libcurl/c/CURLOPT_READFUNCTION.html */ -define("CURL_READFUNC_PAUSE",268435457); +define("CURL_READFUNC_PAUSE", 268435457); /** * Set callback for writing received data. * @link https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html */ -define("CURL_WRITEFUNC_PAUSE",268435457); +define("CURL_WRITEFUNC_PAUSE", 268435457); /** * Value for the CURLOPT_PROXYTYPE option. * @link https://www.php.net/manual/en/curl.constants.php * @since 5.5.23 */ -define("CURLPROXY_SOCKS4A",6); +define("CURLPROXY_SOCKS4A", 6); /** * Value for the CURLOPT_PROXYTYPE option. * Proxy resolves URL hostname. * @link https://www.php.net/manual/en/curl.constants.php * @since 5.5.23 */ -define("CURLPROXY_SOCKS5_HOSTNAME",7); +define("CURLPROXY_SOCKS5_HOSTNAME", 7); /** * Value for the CURLOPT_SSH_AUTH_TYPES option. * @link https://www.php.net/manual/en/curl.constants.php */ -define("CURLSSH_AUTH_ANY",-1); +define("CURLSSH_AUTH_ANY", -1); /** * Value for the CURLOPT_SSH_AUTH_TYPES option. * @link https://www.php.net/manual/en/curl.constants.php */ -define("CURLSSH_AUTH_DEFAULT",-1); +define("CURLSSH_AUTH_DEFAULT", -1); /** * Value for the CURLOPT_SSH_AUTH_TYPES option. * @link https://www.php.net/manual/en/curl.constants.php */ -define("CURLSSH_AUTH_HOST",4); +define("CURLSSH_AUTH_HOST", 4); /** * Value for the CURLOPT_SSH_AUTH_TYPES option. * @link https://www.php.net/manual/en/curl.constants.php */ -define("CURLSSH_AUTH_KEYBOARD",8); +define("CURLSSH_AUTH_KEYBOARD", 8); /** * Value for the CURLOPT_SSH_AUTH_TYPES option. * @link https://www.php.net/manual/en/curl.constants.php */ -define("CURLSSH_AUTH_NONE",0); +define("CURLSSH_AUTH_NONE", 0); /** * Value for the CURLOPT_SSH_AUTH_TYPES option. * @link https://www.php.net/manual/en/curl.constants.php */ -define("CURLSSH_AUTH_PASSWORD",2); +define("CURLSSH_AUTH_PASSWORD", 2); /** * Value for the CURLOPT_SSH_AUTH_TYPES option. * @link https://www.php.net/manual/en/curl.constants.php */ -define("CURLSSH_AUTH_PUBLICKEY",1); +define("CURLSSH_AUTH_PUBLICKEY", 1); /** * Value for the CURLOPT_HTTPAUTH option. * HTTP Digest authentication with an IE flavor. @@ -3156,42 +3152,42 @@ * and that some servers require the client to use. * @link https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html */ -define("CURLAUTH_DIGEST_IE",16); +define("CURLAUTH_DIGEST_IE", 16); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_IMAP",4096); +define("CURLPROTO_IMAP", 4096); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_IMAPS",8192); +define("CURLPROTO_IMAPS", 8192); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_POP3",16384); +define("CURLPROTO_POP3", 16384); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_POP3S",32768); +define("CURLPROTO_POP3S", 32768); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_RTSP",262144); +define("CURLPROTO_RTSP", 262144); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_SMTP",65536); +define("CURLPROTO_SMTP", 65536); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_SMTPS",131072); +define("CURLPROTO_SMTPS", 131072); /** * Value for the CURLOPT_RTSP_REQUEST option. * When sent by a client, this method changes the description of the session. @@ -3200,7 +3196,7 @@ * ANNOUNCE acts like an HTTP PUT or POST * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_ANNOUNCE",3); +define("CURL_RTSPREQ_ANNOUNCE", 3); /** * Value for the CURLOPT_RTSP_REQUEST option. * Used to get the low level description of a stream. @@ -3209,7 +3205,7 @@ * Time-condition headers will be added to Describe requests if the CURLOPT_TIMECONDITION option is active. * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_DESCRIBE",2); +define("CURL_RTSPREQ_DESCRIBE", 2); /** * Value for the CURLOPT_RTSP_REQUEST option. * Retrieve a parameter from the server. @@ -3217,7 +3213,7 @@ * unless a custom one is set. GET_PARAMETER acts just like an HTTP PUT or POST * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_GET_PARAMETER",8); +define("CURL_RTSPREQ_GET_PARAMETER", 8); /** * Value for the CURLOPT_RTSP_REQUEST option. * Used to retrieve the available methods of the server. @@ -3225,21 +3221,21 @@ * The session ID is not needed for this method. * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_OPTIONS",1); +define("CURL_RTSPREQ_OPTIONS", 1); /** * Value for the CURLOPT_RTSP_REQUEST option. * Send a Pause command to the server. * Use the CURLOPT_RANGE option with a single value to indicate when the stream should be halted. (e.g. npt='25') * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_PAUSE",6); +define("CURL_RTSPREQ_PAUSE", 6); /** * Value for the CURLOPT_RTSP_REQUEST option. * Send a Play command to the server. * Use the CURLOPT_RANGE option to modify the playback time (e.g. 'npt=10-15'). * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_PLAY",5); +define("CURL_RTSPREQ_PLAY", 5); /** * Value for the CURLOPT_RTSP_REQUEST option. * This is a special request because it does not send any data to the server. @@ -3247,13 +3243,13 @@ * It will return after processing one read buffer of data in order to give the application a chance to run. * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_RECEIVE",11); +define("CURL_RTSPREQ_RECEIVE", 11); /** * Value for the CURLOPT_RTSP_REQUEST option. * Used to tell the server to record a session. Use the CURLOPT_RANGE option to modify the record time. * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_RECORD",10); +define("CURL_RTSPREQ_RECORD", 10); /** * Value for the CURLOPT_RTSP_REQUEST option. * Set a parameter on the server. @@ -3261,7 +3257,7 @@ * The interaction with SET_PARAMETER is much like an HTTP PUT or POST. * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_SET_PARAMETER",9); +define("CURL_RTSPREQ_SET_PARAMETER", 9); /** * Value for the CURLOPT_RTSP_REQUEST option. * Setup is used to initialize the transport layer for the session. @@ -3269,74 +3265,74 @@ * by using the CURLOPT_RTSP_TRANSPORT option prior to calling setup. * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_SETUP",4); +define("CURL_RTSPREQ_SETUP", 4); /** * Value for the CURLOPT_RTSP_REQUEST option. * This command terminates an RTSP session. * Simply closing a connection does not terminate the RTSP session since it is valid to control an RTSP session over different connections. * @link https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html */ -define("CURL_RTSPREQ_TEARDOWN",7); +define("CURL_RTSPREQ_TEARDOWN", 7); /** * Wildcard matching function callback. * @link https://curl.haxx.se/libcurl/c/CURLOPT_FNMATCH_FUNCTION.html */ -define("CURLOPT_FNMATCH_FUNCTION",20200); +define("CURLOPT_FNMATCH_FUNCTION", 20200); /** * Enable directory wildcard transfers. * @link https://curl.haxx.se/libcurl/c/CURLOPT_WILDCARDMATCH.html */ -define("CURLOPT_WILDCARDMATCH",197); +define("CURLOPT_WILDCARDMATCH", 197); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_RTMP",524288); +define("CURLPROTO_RTMP", 524288); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_RTMPE",2097152); +define("CURLPROTO_RTMPE", 2097152); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_RTMPS",8388608); +define("CURLPROTO_RTMPS", 8388608); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_RTMPT",1048576); +define("CURLPROTO_RTMPT", 1048576); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_RTMPTE",4194304); +define("CURLPROTO_RTMPTE", 4194304); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_RTMPTS",16777216); +define("CURLPROTO_RTMPTS", 16777216); /** * Return value for the CURLOPT_FNMATCH_FUNCTION if an error was occurred. * @link https://curl.haxx.se/libcurl/c/CURLOPT_FNMATCH_FUNCTION.html */ -define("CURL_FNMATCHFUNC_FAIL",2); +define("CURL_FNMATCHFUNC_FAIL", 2); /** * Return value for the CURLOPT_FNMATCH_FUNCTION if pattern matches the string. * @link https://curl.haxx.se/libcurl/c/CURLOPT_FNMATCH_FUNCTION.html */ -define("CURL_FNMATCHFUNC_MATCH",0); +define("CURL_FNMATCHFUNC_MATCH", 0); /** * Return value for the CURLOPT_FNMATCH_FUNCTION if pattern not matches the string. * @link https://curl.haxx.se/libcurl/c/CURLOPT_FNMATCH_FUNCTION.html */ -define("CURL_FNMATCHFUNC_NOMATCH",1); +define("CURL_FNMATCHFUNC_NOMATCH", 1); /** * Value for the CURLOPT_PROTOCOLS option. * @link https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html */ -define("CURLPROTO_GOPHER",33554432); +define("CURLPROTO_GOPHER", 33554432); /** * Value for the CURLOPT_HTTPAUTH option. * This is a meta symbol. @@ -3344,57 +3340,57 @@ * only that single auth algorithm is acceptable. * @link https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html */ -define("CURLAUTH_ONLY",2147483648); +define("CURLAUTH_ONLY", 2147483648); /** * Password to use for TLS authentication. * @link https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_PASSWORD.html */ -define("CURLOPT_TLSAUTH_PASSWORD",10205); +define("CURLOPT_TLSAUTH_PASSWORD", 10205); /** * Set TLS authentication methods. * @link https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_TYPE.html */ -define("CURLOPT_TLSAUTH_TYPE",10206); +define("CURLOPT_TLSAUTH_TYPE", 10206); /** * User name to use for TLS authentication. * @link https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_USERNAME.html */ -define("CURLOPT_TLSAUTH_USERNAME",10204); +define("CURLOPT_TLSAUTH_USERNAME", 10204); /** * Value for the CURLOPT_TLSAUTH_TYPE option. * TLS-SRP authentication. * Secure Remote Password authentication for TLS is defined in RFC 5054 and provides mutual authentication if both sides have a shared secret. * @link https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_TYPE.html */ -define("CURL_TLSAUTH_SRP",1); +define("CURL_TLSAUTH_SRP", 1); /** * Value for the CURLOPT_GSSAPI_DELEGATION option. * Allow unconditional GSSAPI credential delegation. * @link https://curl.haxx.se/libcurl/c/CURLOPT_GSSAPI_DELEGATION.html */ -define("CURLGSSAPI_DELEGATION_FLAG",2); +define("CURLGSSAPI_DELEGATION_FLAG", 2); /** * Value for the CURLOPT_GSSAPI_DELEGATION option. * Delegate only if the OK-AS-DELEGATE flag is set in the service ticket * in case this feature is supported by the GSS-API implementation. * @link https://curl.haxx.se/libcurl/c/CURLOPT_GSSAPI_DELEGATION.html */ -define("CURLGSSAPI_DELEGATION_POLICY_FLAG",1); +define("CURLGSSAPI_DELEGATION_POLICY_FLAG", 1); /** * Set allowed GSS-API delegation. * @link https://curl.haxx.se/libcurl/c/CURLOPT_GSSAPI_DELEGATION.html */ -define("CURLOPT_GSSAPI_DELEGATION",210); +define("CURLOPT_GSSAPI_DELEGATION", 210); /** * Timeout waiting for FTP server to connect back * @link https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPTTIMEOUT_MS.html */ -define("CURLOPT_ACCEPTTIMEOUT_MS",212); +define("CURLOPT_ACCEPTTIMEOUT_MS", 212); /** * SMTP authentication address * @link https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_AUTH.html */ -define("CURLOPT_MAIL_AUTH",10217); +define("CURLOPT_MAIL_AUTH", 10217); /** * Set SSL behavior options, which is a bitmask of any of the following constants: * CURLSSLOPT_ALLOW_BEAST: do not attempt to use any workarounds for a security flaw in the SSL3 and TLS1.0 protocols. @@ -3402,7 +3398,7 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 7.0.7 */ -define("CURLOPT_SSL_OPTIONS",216); +define("CURLOPT_SSL_OPTIONS", 216); /** * If set to 1, TCP keepalive probes will be sent. * The delay and frequency of these probes can be controlled by the CURLOPT_TCP_KEEPIDLE and CURLOPT_TCP_KEEPINTVL options, @@ -3411,72 +3407,72 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.5 */ -define("CURLOPT_TCP_KEEPALIVE",213); +define("CURLOPT_TCP_KEEPALIVE", 213); /** * Sets the delay, in seconds, that the operating system will wait while the connection is idle before sending keepalive probes, * if CURLOPT_TCP_KEEPALIVE is enabled. Not all operating systems support this option. The default is 60. * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.5 */ -define("CURLOPT_TCP_KEEPIDLE",214); +define("CURLOPT_TCP_KEEPIDLE", 214); /** * Sets the interval, in seconds, that the operating system will wait between sending keepalive probes, * if CURLOPT_TCP_KEEPALIVE is enabled. Not all operating systems support this option. The default is 60. * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 5.5 */ -define("CURLOPT_TCP_KEEPINTVL",215); +define("CURLOPT_TCP_KEEPINTVL", 215); /** * Value for the CURLOPT_SSL_OPTIONS option. * Do not attempt to use any workarounds for a security flaw in the SSL3 and TLS1.0 protocols. * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 7.0.7 */ -define("CURLSSLOPT_ALLOW_BEAST",1); +define("CURLSSLOPT_ALLOW_BEAST", 1); /** * Supports HTTP2. * @link https://www.php.net/manual/en/curl.constants.php * @since 5.5.24 */ -define("CURL_VERSION_HTTP2",65536); +define("CURL_VERSION_HTTP2", 65536); /** * Value for the CURLOPT_SSL_OPTIONS option. * Disable certificate revocation checks for those SSL backends where such behavior is present. * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 7.0.7 */ -define("CURLSSLOPT_NO_REVOKE",2); +define("CURLSSLOPT_NO_REVOKE", 2); /** * The default protocol to use if the URL is missing a scheme name. * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 7.0.7 */ -define("CURLOPT_DEFAULT_PROTOCOL",10238); +define("CURLOPT_DEFAULT_PROTOCOL", 10238); /** * Set the numerical stream weight (a number between 1 and 256). * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 7.0.7 */ -define("CURLOPT_STREAM_WEIGHT",239); +define("CURLOPT_STREAM_WEIGHT", 239); /** * TRUE to not send TFTP options requests. * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 7.0.7 */ -define("CURLOPT_TFTP_NO_OPTIONS",242); +define("CURLOPT_TFTP_NO_OPTIONS", 242); /** * Connect to a specific host and port instead of the URL's host and port. * Accepts an array of strings with the format HOST:PORT:CONNECT-TO-HOST:CONNECT-TO-PORT. * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 7.0.7 */ -define("CURLOPT_CONNECT_TO",10243); +define("CURLOPT_CONNECT_TO", 10243); /** * TRUE to enable TCP Fast Open. * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 7.0.7 */ -define("CURLOPT_TCP_FASTOPEN",244); +define("CURLOPT_TCP_FASTOPEN", 244); /** * The server sent data libcurl couldn't parse. @@ -3506,7 +3502,6 @@ */ define('CURL_VERSION_HTTPS_PROXY', 2097152); - /** * The protocol used in the last HTTP connection. The returned value will be exactly one of the CURLPROTO_* values * @link https://www.php.net/manual/en/function.curl-getinfo.php @@ -3634,7 +3629,7 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 7.3 */ -define ('CURLOPT_PROXY_CAPATH', 10247); +define('CURLOPT_PROXY_CAPATH', 10247); /** * Set the file name with the concatenation of CRL (Certificate Revocation List) in PEM format @@ -3685,7 +3680,7 @@ * @link https://www.php.net/manual/en/function.curl-setopt.php * @since 7.3 */ -define('CURLOPT_PROXY_TLSAUTH_USERNAME' ,10251); +define('CURLOPT_PROXY_TLSAUTH_USERNAME', 10251); /** * The password to use for the TLS authentication method specified with the CURLOPT_PROXY_TLSAUTH_TYPE option. * Requires that the CURLOPT_PROXY_TLSAUTH_USERNAME option to also be set. diff --git a/date/date.php b/date/date.php index a6693c1be..738046076 100644 --- a/date/date.php +++ b/date/date.php @@ -22,8 +22,7 @@ * this function would return -1 on failure. */ #[Pure] -function strtotime (string $datetime, ?int $baseTimestamp): int|false -{} +function strtotime(string $datetime, ?int $baseTimestamp): int|false {} /** * Format a local time/date @@ -295,8 +294,7 @@ function strtotime (string $datetime, ?int $baseTimestamp): int|false */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function date (string $format, ?int $timestamp) -{} +function date(string $format, ?int $timestamp) {} /** * Format a local time/date as integer @@ -392,8 +390,7 @@ function date (string $format, ?int $timestamp) *

    */ #[Pure] -function idate (string $format, ?int $timestamp): int|false -{} +function idate(string $format, ?int $timestamp): int|false {} /** * Format a GMT/UTC date/time @@ -409,8 +406,7 @@ function idate (string $format, ?int $timestamp): int|false */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function gmdate (string $format, ?int $timestamp) -{} +function gmdate(string $format, ?int $timestamp) {} /** * Get Unix timestamp for a date @@ -463,8 +459,7 @@ function gmdate (string $format, ?int $timestamp) * it returned -1). */ #[Pure] -function mktime ($hour = null, $minute = null, $second = null, $month = null, $day = null, $year = null, #[Deprecated('Use the new timezone handling functions instead', since: '5.3')] $is_dst = -1): int|false -{} +function mktime($hour = null, $minute = null, $second = null, $month = null, $day = null, $year = null, #[Deprecated('Use the new timezone handling functions instead', since: '5.3')] $is_dst = -1): int|false {} /** * Get Unix timestamp for a GMT date @@ -494,8 +489,7 @@ function mktime ($hour = null, $minute = null, $second = null, $month = null, $d * @return int|false a integer Unix timestamp. */ #[Pure] -function gmmktime ($hour = null, $minute = null, $second = null, $month = null, $day = null, $year = null, $is_dst = null): int|false -{} +function gmmktime($hour = null, $minute = null, $second = null, $month = null, $day = null, $year = null, $is_dst = null): int|false {} /** * Validate a Gregorian date @@ -514,8 +508,7 @@ function gmmktime ($hour = null, $minute = null, $second = null, $month = null, * @return bool true if the date given is valid; otherwise returns false. */ #[Pure] -function checkdate (int $month, int $day, int $year): bool -{} +function checkdate(int $month, int $day, int $year): bool {} /** * Format a local time/date according to locale settings @@ -773,8 +766,7 @@ function checkdate (int $month, int $day, int $year): bool * other language-dependent strings respect the current locale set * with setlocale. */ -function strftime (string $format, ?int $timestamp): string|false -{} +function strftime(string $format, ?int $timestamp): string|false {} /** * Format a GMT/UTC time/date according to locale settings @@ -789,16 +781,14 @@ function strftime (string $format, ?int $timestamp): string|false * other language dependent strings respect the current locale set * with setlocale. */ -function gmstrftime (string $format, ?int $timestamp): string|false -{} +function gmstrftime(string $format, ?int $timestamp): string|false {} /** * Return current Unix timestamp * @link https://php.net/manual/en/function.time.php * @return int

    Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).

    */ -function time (): int -{} +function time(): int {} /** * Get the local time @@ -816,8 +806,7 @@ function time (): int * @return array */ #[Pure] -function localtime (?int $timestamp, bool $associative = false): array -{} +function localtime(?int $timestamp, bool $associative = false): array {} /** * Get date/time information @@ -899,8 +888,7 @@ function localtime (?int $timestamp, bool $associative = false): array * */ #[Pure] -function getdate (?int $timestamp): array -{} +function getdate(?int $timestamp): array {} /** * Returns new DateTime object @@ -914,8 +902,7 @@ function getdate (?int $timestamp): array * @return DateTime|false DateTime object on success or false on failure. */ #[Pure] -function date_create (string $datetime = 'now', ?DateTimeZone $timezone ): DateTime|false -{} +function date_create(string $datetime = 'now', ?DateTimeZone $timezone): DateTime|false {} /** * (PHP 5.5)
    @@ -933,8 +920,7 @@ function date_create (string $datetime = 'now', ?DateTimeZone $timezone ): DateT * @return DateTimeImmutable|false DateTime object on success or false on failure. */ #[Pure] -function date_create_immutable (string $datetime = 'now', ?DateTimeZone $timezone): DateTimeImmutable|false -{} +function date_create_immutable(string $datetime = 'now', ?DateTimeZone $timezone): DateTimeImmutable|false {} /** * Returns new DateTimeImmutable object formatted according to the specified format @@ -945,8 +931,7 @@ function date_create_immutable (string $datetime = 'now', ?DateTimeZone $timezon * @return DateTimeImmutable|false */ #[Pure] -function date_create_immutable_from_format (string $format, string $datetime, ?DateTimeZone $timezone): DateTimeImmutable|false -{} +function date_create_immutable_from_format(string $format, string $datetime, ?DateTimeZone $timezone): DateTimeImmutable|false {} /** * Alias: @@ -962,8 +947,7 @@ function date_create_immutable_from_format (string $format, string $datetime, ?D * {@see DateTime} instance or FALSE on failure.

    */ #[Pure] -function date_create_from_format (string $format, string $datetime, ?DateTimeZone $timezone): DateTime|false -{} +function date_create_from_format(string $format, string $datetime, ?DateTimeZone $timezone): DateTime|false {} /** * Returns associative array with detailed info about given date @@ -976,8 +960,7 @@ function date_create_from_format (string $format, string $datetime, ?DateTimeZon */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function date_parse (string $datetime): false|array -{} +function date_parse(string $datetime): false|array {} /** * Get info about given date formatted according to the specified format @@ -991,8 +974,7 @@ function date_parse (string $datetime): false|array * @return array associative array with detailed info about given date. */ #[Pure] -function date_parse_from_format (string $format, string $datetime): array -{} +function date_parse_from_format(string $format, string $datetime): array {} /** * Returns the warnings and errors @@ -1008,8 +990,7 @@ function date_parse_from_format (string $format, string $datetime): array "errors" => "string[]", ])] #[Pure] -function date_get_last_errors (): array|false -{} +function date_get_last_errors(): array|false {} /** * Alias: @@ -1021,8 +1002,7 @@ function date_get_last_errors (): array|false */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function date_format (DateTimeInterface $object, string $format) -{} +function date_format(DateTimeInterface $object, string $format) {} /** * Alter the timestamp of a DateTime object by incrementing or decrementing @@ -1034,8 +1014,7 @@ function date_format (DateTimeInterface $object, string $format) * @param string $modifier A date/time string. Valid formats are explained in {@link https://secure.php.net/manual/en/datetime.formats.php Date and Time Formats}. * @return DateTime|false Returns the DateTime object for method chaining or FALSE on failure. */ -function date_modify (DateTime $object, string $modifier): DateTime|false -{} +function date_modify(DateTime $object, string $modifier): DateTime|false {} /** * Alias: @@ -1050,8 +1029,7 @@ function date_modify (DateTime $object, string $modifier): DateTime|false * {@see DateTime} object for method chaining or FALSE on failure.

    */ #[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] -function date_add (DateTime $object, DateInterval $interval) -{} +function date_add(DateTime $object, DateInterval $interval) {} /** * Subtracts an amount of days, months, years, hours, minutes and seconds from a datetime object @@ -1067,8 +1045,7 @@ function date_add (DateTime $object, DateInterval $interval) * {@see DateTime} object for method chaining or FALSE on failure.

    */ #[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] -function date_sub (DateTime $object, DateInterval $interval) -{} +function date_sub(DateTime $object, DateInterval $interval) {} /** * Alias: @@ -1086,8 +1063,7 @@ function date_sub (DateTime $object, DateInterval $interval) *

    */ #[Pure] -function date_timezone_get (DateTimeInterface $object): DateTimeZone|false -{} +function date_timezone_get(DateTimeInterface $object): DateTimeZone|false {} /** * Sets the time zone for the datetime object @@ -1103,8 +1079,7 @@ function date_timezone_get (DateTimeInterface $object): DateTimeZone|false * {@see DateTime} object for method chaining or FALSE on failure.

    */ #[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] -function date_timezone_set (#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTimeInterface")] $object, DateTimeZone $timezone) -{} +function date_timezone_set(#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTimeInterface")] $object, DateTimeZone $timezone) {} /** * Alias: @@ -1116,8 +1091,7 @@ function date_timezone_set (#[LanguageLevelTypeAware(["8.0" => "DateTime"], defa */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function date_offset_get (DateTimeInterface $object) -{} +function date_offset_get(DateTimeInterface $object) {} /** * Returns the difference between two datetime objects @@ -1131,8 +1105,7 @@ function date_offset_get (DateTimeInterface $object) */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "DateInterval"], default: "DateInterval|false")] -function date_diff (DateTimeInterface $baseObject, DateTimeInterface $targetObject, bool $absolute = false) -{} +function date_diff(DateTimeInterface $baseObject, DateTimeInterface $targetObject, bool $absolute = false) {} /** * Alias: @@ -1146,7 +1119,7 @@ function date_diff (DateTimeInterface $baseObject, DateTimeInterface $targetObje * @return DateTime

    Returns the * {@see DateTime} object for method chaining or FALSE on failure.

    */ -function date_time_set (DateTime $object, int $hour, int $minute, int $second = 0, int $microsecond = 0): DateTime {} +function date_time_set(DateTime $object, int $hour, int $minute, int $second = 0, int $microsecond = 0): DateTime {} /** * Alias: @@ -1165,8 +1138,7 @@ function date_time_set (DateTime $object, int $hour, int $minute, int $second = *

    */ #[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] -function date_date_set (DateTime $object, int $year, int $month, int $day): DateTime|false -{} +function date_date_set(DateTime $object, int $year, int $month, int $day): DateTime|false {} /** * Alias: @@ -1181,8 +1153,7 @@ function date_date_set (DateTime $object, int $year, int $month, int $day): Date *

    */ #[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] -function date_isodate_set (DateTime $object, int $year, int $week, int $dayOfWeek = 1) -{} +function date_isodate_set(DateTime $object, int $year, int $week, int $dayOfWeek = 1) {} /** * Sets the date and time based on an unix timestamp @@ -1197,8 +1168,7 @@ function date_isodate_set (DateTime $object, int $year, int $week, int $dayOfWee * {@see DateTime} object for call chaining or FALSE on failure */ #[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] -function date_timestamp_set (DateTime $object, int $timestamp): DateTime|false -{} +function date_timestamp_set(DateTime $object, int $timestamp): DateTime|false {} /** * Gets the unix timestamp @@ -1209,8 +1179,7 @@ function date_timestamp_set (DateTime $object, int $timestamp): DateTime|false * @return int

    Returns the Unix timestamp representing the date.

    */ #[Pure] -function date_timestamp_get (DateTimeInterface $object): int -{} +function date_timestamp_get(DateTimeInterface $object): int {} /** * Returns new DateTimeZone object @@ -1222,8 +1191,7 @@ function date_timestamp_get (DateTimeInterface $object): int * @return DateTimeZone|false DateTimeZone object on success or false on failure. */ #[Pure] -function timezone_open (string $timezone): DateTimeZone|false -{} +function timezone_open(string $timezone): DateTimeZone|false {} /** * Alias: @@ -1234,8 +1202,7 @@ function timezone_open (string $timezone): DateTimeZone|false * @return string One of the timezone names in the list of timezones. */ #[Pure] -function timezone_name_get (DateTimeZone $object): string -{} +function timezone_name_get(DateTimeZone $object): string {} /** * Returns the timezone name from abbreviation @@ -1258,8 +1225,7 @@ function timezone_name_get (DateTimeZone $object): string * @since 5.1.3 */ #[Pure] -function timezone_name_from_abbr (string $abbr, int $utcOffset = -1, int $isDST = -1): string|false -{} +function timezone_name_from_abbr(string $abbr, int $utcOffset = -1, int $isDST = -1): string|false {} /** * Alias: @@ -1274,8 +1240,7 @@ function timezone_name_from_abbr (string $abbr, int $utcOffset = -1, int $isDST */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function timezone_offset_get (DateTimeZone $object, DateTimeInterface $datetime) -{} +function timezone_offset_get(DateTimeZone $object, DateTimeInterface $datetime) {} /** * Returns all transitions for the timezone @@ -1290,8 +1255,7 @@ function timezone_offset_get (DateTimeZone $object, DateTimeInterface $datetime) * @return array|false

    Returns numerically indexed array containing associative array with all transitions on success or FALSE on failure.

    */ #[Pure] -function timezone_transitions_get (DateTimeZone $object, int $timestampBegin, int $timestampEnd): array|false -{} +function timezone_transitions_get(DateTimeZone $object, int $timestampBegin, int $timestampEnd): array|false {} /** * Alias: @@ -1301,8 +1265,7 @@ function timezone_transitions_get (DateTimeZone $object, int $timestampBegin, in * @return array|false

    Array containing location information about timezone.

    */ #[Pure] -function timezone_location_get (DateTimeZone $object): array|false -{} +function timezone_location_get(DateTimeZone $object): array|false {} /** * Returns a numerically indexed array containing all defined timezone identifiers @@ -1316,8 +1279,7 @@ function timezone_location_get (DateTimeZone $object): array|false */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function timezone_identifiers_list (int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode) -{} +function timezone_identifiers_list(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode) {} /** * Returns associative array containing dst, offset and the timezone name @@ -1328,8 +1290,7 @@ function timezone_identifiers_list (int $timezoneGroup = DateTimeZone::ALL, ?str */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function timezone_abbreviations_list () -{} +function timezone_abbreviations_list() {} /** * Gets the version of the timezonedb @@ -1337,8 +1298,7 @@ function timezone_abbreviations_list () * @return string a string. */ #[Pure] -function timezone_version_get (): string -{} +function timezone_version_get(): string {} /** * Alias: @@ -1352,8 +1312,7 @@ function timezone_version_get (): string *

    Returns a new DateInterval instance.

    */ #[Pure] -function date_interval_create_from_date_string (string $datetime): DateInterval|false -{} +function date_interval_create_from_date_string(string $datetime): DateInterval|false {} /** * Alias: @@ -1364,8 +1323,7 @@ function date_interval_create_from_date_string (string $datetime): DateInterval| * @return string */ #[Pure] -function date_interval_format (DateInterval $object, string $format): string -{} +function date_interval_format(DateInterval $object, string $format): string {} /** * Sets the default timezone used by all date/time functions in a script @@ -1379,8 +1337,7 @@ function date_interval_format (DateInterval $object, string $format): string * timezone_identifier isn't valid, or true * otherwise. */ -function date_default_timezone_set (string $timezoneId): bool -{} +function date_default_timezone_set(string $timezoneId): bool {} /** * Gets the default timezone used by all date/time functions in a script @@ -1388,8 +1345,7 @@ function date_default_timezone_set (string $timezoneId): bool * @return string a string. */ #[Pure] -function date_default_timezone_get (): string -{} +function date_default_timezone_get(): string {} /** * Returns time of sunrise for a given day and location @@ -1439,8 +1395,7 @@ function date_default_timezone_get (): string * success or false on failure. */ #[Pure] -function date_sunrise (int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ?float $latitude, ?float $longitude, ?float $zenith, ?float $utcOffset): string|int|float|false -{} +function date_sunrise(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ?float $latitude, ?float $longitude, ?float $zenith, ?float $utcOffset): string|int|float|false {} /** * Returns time of sunset for a given day and location @@ -1490,8 +1445,7 @@ function date_sunrise (int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, * success or false on failure. */ #[Pure] -function date_sunset (int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ?float $latitude, ?float $longitude, ?float $zenith, ?float $utcOffset): string|int|float|false -{} +function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ?float $latitude, ?float $longitude, ?float $zenith, ?float $utcOffset): string|int|float|false {} /** * Returns an array with information about sunset/sunrise and twilight begin/end @@ -1510,7 +1464,6 @@ function date_sunset (int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ? */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function date_sun_info (int $timestamp, float $latitude, float $longitude) -{} +function date_sun_info(int $timestamp, float $latitude, float $longitude) {} // End of date v.5.3.2-0.dotdeb.1 diff --git a/date/date_c.php b/date/date_c.php index 4b2625db3..421989c6a 100644 --- a/date/date_c.php +++ b/date/date_c.php @@ -5,71 +5,72 @@ /** * @since 5.5 */ -interface DateTimeInterface { +interface DateTimeInterface +{ /** * @since 7.2 */ - const ATOM = 'Y-m-d\TH:i:sP'; + public const ATOM = 'Y-m-d\TH:i:sP'; /** * @since 7.2 */ - const COOKIE = 'l, d-M-Y H:i:s T'; + public const COOKIE = 'l, d-M-Y H:i:s T'; /** * @since 7.2 */ - const ISO8601 = 'Y-m-d\TH:i:sO'; + public const ISO8601 = 'Y-m-d\TH:i:sO'; /** * @since 7.2 */ - const RFC822 = 'D, d M y H:i:s O'; + public const RFC822 = 'D, d M y H:i:s O'; /** * @since 7.2 */ - const RFC850 = 'l, d-M-y H:i:s T'; + public const RFC850 = 'l, d-M-y H:i:s T'; /** * @since 7.2 */ - const RFC1036 = 'D, d M y H:i:s O'; + public const RFC1036 = 'D, d M y H:i:s O'; /** * @since 7.2 */ - const RFC1123 = 'D, d M Y H:i:s O'; + public const RFC1123 = 'D, d M Y H:i:s O'; /** * @since 7.2 */ - const RFC2822 = 'D, d M Y H:i:s O'; + public const RFC2822 = 'D, d M Y H:i:s O'; /** * @since 7.2 */ - const RFC3339 = 'Y-m-d\TH:i:sP'; + public const RFC3339 = 'Y-m-d\TH:i:sP'; /** * @since 7.2 */ - const RFC3339_EXTENDED = 'Y-m-d\TH:i:s.vP'; + public const RFC3339_EXTENDED = 'Y-m-d\TH:i:s.vP'; /** * @since 7.2 */ - const RFC7231 = 'D, d M Y H:i:s \G\M\T'; + public const RFC7231 = 'D, d M Y H:i:s \G\M\T'; /** * @since 7.2 */ - const RSS = 'D, d M Y H:i:s O'; + public const RSS = 'D, d M Y H:i:s O'; /** * @since 7.2 */ - const W3C = 'Y-m-d\TH:i:sP'; + public const W3C = 'Y-m-d\TH:i:sP'; /* Methods */ /** @@ -81,7 +82,6 @@ interface DateTimeInterface { * @return DateInterval * The https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object representing the * difference between the two dates or FALSE on failure. - * */ public function diff($targetObject, $absolute = false); @@ -94,7 +94,6 @@ public function diff($targetObject, $absolute = false); *

    * @return string * Returns the formatted date string on success or FALSE on failure. - * */ public function format($format); @@ -104,7 +103,6 @@ public function format($format); * @return int * Returns the timezone offset in seconds from UTC on success * or FALSE on failure. - * */ public function getOffset(); @@ -138,7 +136,8 @@ public function __wakeup(); /** * @since 5.5 */ -class DateTimeImmutable implements DateTimeInterface { +class DateTimeImmutable implements DateTimeInterface +{ /* Methods */ /** * (PHP 5 >=5.5.0)
    @@ -168,7 +167,7 @@ class DateTimeImmutable implements DateTimeInterface { *

    * @throws Exception Emits Exception in case of an error. */ - public function __construct($datetime = "now", DateTimeZone $timezone = null) { } + public function __construct($datetime = "now", DateTimeZone $timezone = null) {} /** * (PHP 5 >=5.5.0)
    @@ -176,7 +175,7 @@ public function __construct($datetime = "now", DateTimeZone $timezone = null) { * @param DateInterval $interval * @return static */ - public function add(DateInterval $interval) { } + public function add(DateInterval $interval) {} /** * (PHP 5 >=5.5.0)
    @@ -187,7 +186,7 @@ public function add(DateInterval $interval) { } * @param null|DateTimeZone $timezone [optional] * @return DateTimeImmutable|false */ - public static function createFromFormat($format, $datetime, DateTimeZone $timezone = null) { } + public static function createFromFormat($format, $datetime, DateTimeZone $timezone = null) {} /** * (PHP 5 >=5.6.0)
    @@ -196,7 +195,7 @@ public static function createFromFormat($format, $datetime, DateTimeZone $timezo * @param DateTime $object The mutable DateTime object that you want to convert to an immutable version. This object is not modified, but instead a new DateTimeImmutable object is created containing the same date time and timezone information. * @return DateTimeImmutable returns a new DateTimeImmutable instance. */ - public static function createFromMutable(DateTime $object) { } + public static function createFromMutable(DateTime $object) {} /** * (PHP 5 >=5.5.0)
    @@ -210,7 +209,7 @@ public static function createFromMutable(DateTime $object) { } "error_count" => "int", "errors" => "string[]", ])] - public static function getLastErrors() { } + public static function getLastErrors() {} /** * (PHP 5 >=5.5.0)
    @@ -221,7 +220,7 @@ public static function getLastErrors() { } * @return static * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. */ - public function modify($modifier) { } + public function modify($modifier) {} /** * (PHP 5 >=5.5.0)
    @@ -231,7 +230,7 @@ public function modify($modifier) { } * @return DateTimeImmutable * Returns a new instance of a {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object. */ - public static function __set_state(array $array) { } + public static function __set_state(array $array) {} /** * (PHP 5 >=5.5.0)
    @@ -242,9 +241,8 @@ public static function __set_state(array $array) { } * @param int $day

    Day of the date.

    * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. - * */ - public function setDate($year, $month, $day) { } + public function setDate($year, $month, $day) {} /** * (PHP 5 >=5.5.0)
    @@ -256,7 +254,7 @@ public function setDate($year, $month, $day) { } * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. */ - public function setISODate($year, $week, $dayOfWeek = 1) { } + public function setISODate($year, $week, $dayOfWeek = 1) {} /** * (PHP 5 >=5.5.0)
    @@ -269,7 +267,7 @@ public function setISODate($year, $week, $dayOfWeek = 1) { } * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. */ - public function setTime($hour, $minute, $second = 0, $microsecond = 0) { } + public function setTime($hour, $minute, $second = 0, $microsecond = 0) {} /** * (PHP 5 >=5.5.0)
    @@ -279,7 +277,7 @@ public function setTime($hour, $minute, $second = 0, $microsecond = 0) { } * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. */ - public function setTimestamp($timestamp) { } + public function setTimestamp($timestamp) {} /** * (PHP 5 >=5.5.0)
    @@ -292,7 +290,7 @@ public function setTimestamp($timestamp) { } * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. */ - public function setTimezone(DateTimeZone $timezone) { } + public function setTimezone(DateTimeZone $timezone) {} /** * (PHP 5 >=5.5.0)
    @@ -304,7 +302,7 @@ public function setTimezone(DateTimeZone $timezone) { } * @return static|false * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or FALSE on failure. */ - public function sub(DateInterval $interval) { } + public function sub(DateInterval $interval) {} /** * (PHP 5 >=5.5.0)
    @@ -316,7 +314,7 @@ public function sub(DateInterval $interval) { } * The {@link https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object representing the * difference between the two dates or FALSE on failure. */ - public function diff($targetObject, $absolute = false) { } + public function diff($targetObject, $absolute = false) {} /** * (PHP 5 >=5.5.0)
    @@ -327,9 +325,8 @@ public function diff($targetObject, $absolute = false) { } *

    * @return string * Returns the formatted date string on success or FALSE on failure. - * */ - public function format($format) { } + public function format($format) {} /** * (PHP 5 >=5.5.0)
    @@ -337,9 +334,8 @@ public function format($format) { } * @return int * Returns the timezone offset in seconds from UTC on success * or FALSE on failure. - * */ - public function getOffset() { } + public function getOffset() {} /** * (PHP 5 >=5.5.0)
    @@ -347,7 +343,7 @@ public function getOffset() { } * @return int * Returns the Unix timestamp representing the date. */ - public function getTimestamp() { } + public function getTimestamp() {} /** * (PHP 5 >=5.5.0)
    @@ -357,7 +353,7 @@ public function getTimestamp() { } * Returns a {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object on success * or FALSE on failure. */ - public function getTimezone() { } + public function getTimezone() {} /** * (PHP 5 >=5.5.0)
    @@ -365,86 +361,86 @@ public function getTimezone() { } * @link https://secure.php.net/manual/en/datetime.wakeup.php * @return void Initializes a DateTime object. */ - public function __wakeup() { } + public function __wakeup() {} /** * @param DateTimeInterface $object * @return DateTimeImmutable * @since 8.0 */ - public static function createFromInterface(DateTimeInterface $object){} + public static function createFromInterface(DateTimeInterface $object) {} } - /** * Representation of date and time. * @link https://php.net/manual/en/class.datetime.php */ -class DateTime implements DateTimeInterface { +class DateTime implements DateTimeInterface +{ /** * @removed 7.2 */ - const ATOM = 'Y-m-d\TH:i:sP'; + public const ATOM = 'Y-m-d\TH:i:sP'; /** * @removed 7.2 */ - const COOKIE = 'l, d-M-Y H:i:s T'; + public const COOKIE = 'l, d-M-Y H:i:s T'; /** * @removed 7.2 */ - const ISO8601 = 'Y-m-d\TH:i:sO'; + public const ISO8601 = 'Y-m-d\TH:i:sO'; /** * @removed 7.2 */ - const RFC822 = 'D, d M y H:i:s O'; + public const RFC822 = 'D, d M y H:i:s O'; /** * @removed 7.2 */ - const RFC850 = 'l, d-M-y H:i:s T'; + public const RFC850 = 'l, d-M-y H:i:s T'; /** * @removed 7.2 */ - const RFC1036 = 'D, d M y H:i:s O'; + public const RFC1036 = 'D, d M y H:i:s O'; /** * @removed 7.2 */ - const RFC1123 = 'D, d M Y H:i:s O'; + public const RFC1123 = 'D, d M Y H:i:s O'; /** * @removed 7.2 */ - const RFC2822 = 'D, d M Y H:i:s O'; + public const RFC2822 = 'D, d M Y H:i:s O'; /** * @removed 7.2 */ - const RFC3339 = 'Y-m-d\TH:i:sP'; + public const RFC3339 = 'Y-m-d\TH:i:sP'; /** * @removed 7.2 */ - const RFC3339_EXTENDED = 'Y-m-d\TH:i:s.vP'; + public const RFC3339_EXTENDED = 'Y-m-d\TH:i:s.vP'; /** * @removed 7.2 */ - const RFC7231 = 'D, d M Y H:i:s \G\M\T'; + public const RFC7231 = 'D, d M Y H:i:s \G\M\T'; /** * @removed 7.2 */ - const RSS = 'D, d M Y H:i:s O'; + public const RSS = 'D, d M Y H:i:s O'; /** * @removed 7.2 */ - const W3C = 'Y-m-d\TH:i:sP'; + public const W3C = 'Y-m-d\TH:i:sP'; /** * (PHP 5 >=5.2.0)
    @@ -474,14 +470,13 @@ class DateTime implements DateTimeInterface { *

    * @throws Exception Emits Exception in case of an error. */ - public function __construct ($datetime = 'now', DateTimeZone $timezone = null) {} + public function __construct($datetime = 'now', DateTimeZone $timezone = null) {} /** * @return void * @link https://php.net/manual/en/datetime.wakeup.php */ - public function __wakeup () {} - + public function __wakeup() {} /** * Returns date formatted according to given format. @@ -489,7 +484,7 @@ public function __wakeup () {} * @return string * @link https://php.net/manual/en/datetime.format.php */ - public function format ($format) {} + public function format($format) {} /** * Alter the timestamp of a DateTime object by incrementing or decrementing @@ -498,7 +493,7 @@ public function format ($format) {} * @return static|false Returns the DateTime object for method chaining or FALSE on failure. * @link https://php.net/manual/en/datetime.modify.php */ - public function modify ($modifier) {} + public function modify($modifier) {} /** * Adds an amount of days, months, years, hours, minutes and seconds to a DateTime object @@ -506,8 +501,7 @@ public function modify ($modifier) {} * @return static * @link https://php.net/manual/en/datetime.add.php */ - public function add (DateInterval $interval) {} - + public function add(DateInterval $interval) {} /** * @param DateTimeImmutable $object @@ -522,14 +516,14 @@ public static function createFromImmutable(DateTimeImmutable $object) {} * @return static * @link https://php.net/manual/en/datetime.sub.php */ - public function sub (DateInterval $interval) {} + public function sub(DateInterval $interval) {} /** * Get the TimeZone associated with the DateTime * @return DateTimeZone * @link https://php.net/manual/en/datetime.gettimezone.php */ - public function getTimezone () {} + public function getTimezone() {} /** * Set the TimeZone associated with the DateTime @@ -537,14 +531,14 @@ public function getTimezone () {} * @return static * @link https://php.net/manual/en/datetime.settimezone.php */ - public function setTimezone ($timezone) {} + public function setTimezone($timezone) {} /** * Returns the timezone offset * @return int * @link https://php.net/manual/en/datetime.getoffset.php */ - public function getOffset () {} + public function getOffset() {} /** * Sets the current time of the DateTime object to a different time. @@ -555,7 +549,7 @@ public function getOffset () {} * @return static|false * @link https://php.net/manual/en/datetime.settime.php */ - public function setTime ($hour, $minute, $second = 0, $microsecond = 0) {} + public function setTime($hour, $minute, $second = 0, $microsecond = 0) {} /** * Sets the current date of the DateTime object to a different date. @@ -565,7 +559,7 @@ public function setTime ($hour, $minute, $second = 0, $microsecond = 0) {} * @return static * @link https://php.net/manual/en/datetime.setdate.php */ - public function setDate ($year, $month, $day) {} + public function setDate($year, $month, $day) {} /** * Set a date according to the ISO 8601 standard - using weeks and day offsets rather than specific dates. @@ -575,7 +569,7 @@ public function setDate ($year, $month, $day) {} * @return static * @link https://php.net/manual/en/datetime.setisodate.php */ - public function setISODate ($year, $week, $dayOfWeek = 1) {} + public function setISODate($year, $week, $dayOfWeek = 1) {} /** * Sets the date and time based on a Unix timestamp. @@ -583,14 +577,14 @@ public function setISODate ($year, $week, $dayOfWeek = 1) {} * @return static * @link https://php.net/manual/en/datetime.settimestamp.php */ - public function setTimestamp ($timestamp) {} + public function setTimestamp($timestamp) {} /** * Gets the Unix timestamp. * @return int * @link https://php.net/manual/en/datetime.gettimestamp.php */ - public function getTimestamp () {} + public function getTimestamp() {} /** * Returns the difference between two DateTime objects represented as a DateInterval. @@ -599,8 +593,7 @@ public function getTimestamp () {} * @return DateInterval|false The DateInterval object representing the difference between the two dates or FALSE on failure. * @link https://php.net/manual/en/datetime.diff.php */ - public function diff ($targetObject, $absolute = false) {} - + public function diff($targetObject, $absolute = false) {} /** * Parse a string into a new DateTime object according to the specified format @@ -610,7 +603,7 @@ public function diff ($targetObject, $absolute = false) {} * @return DateTime|false * @link https://php.net/manual/en/datetime.createfromformat.php */ - public static function createFromFormat ($format, $datetime, DateTimeZone $timezone = null) {} + public static function createFromFormat($format, $datetime, DateTimeZone $timezone = null) {} /** * Returns an array of warnings and errors found while parsing a date/time string @@ -623,7 +616,7 @@ public static function createFromFormat ($format, $datetime, DateTimeZone $timez "error_count" => "int", "errors" => "string[]", ])] - public static function getLastErrors () {} + public static function getLastErrors() {} /** * The __set_state handler @@ -631,56 +624,56 @@ public static function getLastErrors () {} * @param array $array

    Initialization array.

    * @return DateTime

    Returns a new instance of a DateTime object.

    */ - public static function __set_state ($array) {} + public static function __set_state($array) {} /** * @param DateTimeInterface $object * @return DateTime * @since 8.0 */ - public static function createFromInterface(DateTimeInterface $object){} + public static function createFromInterface(DateTimeInterface $object) {} } /** * Representation of time zone * @link https://php.net/manual/en/class.datetimezone.php */ -class DateTimeZone { - const AFRICA = 1; - const AMERICA = 2; - const ANTARCTICA = 4; - const ARCTIC = 8; - const ASIA = 16; - const ATLANTIC = 32; - const AUSTRALIA = 64; - const EUROPE = 128; - const INDIAN = 256; - const PACIFIC = 512; - const UTC = 1024; - const ALL = 2047; - const ALL_WITH_BC = 4095; - const PER_COUNTRY = 4096; - +class DateTimeZone +{ + public const AFRICA = 1; + public const AMERICA = 2; + public const ANTARCTICA = 4; + public const ARCTIC = 8; + public const ASIA = 16; + public const ATLANTIC = 32; + public const AUSTRALIA = 64; + public const EUROPE = 128; + public const INDIAN = 256; + public const PACIFIC = 512; + public const UTC = 1024; + public const ALL = 2047; + public const ALL_WITH_BC = 4095; + public const PER_COUNTRY = 4096; /** * @param string $timezone * @link https://php.net/manual/en/datetimezone.construct.php */ - public function __construct ($timezone) {} + public function __construct($timezone) {} /** * Returns the name of the timezone * @return string * @link https://php.net/manual/en/datetimezone.getname.php */ - public function getName () {} + public function getName() {} /** * Returns location information for a timezone * @return array|false * @link https://php.net/manual/en/datetimezone.getlocation.php */ - public function getLocation () {} + public function getLocation() {} /** * Returns the timezone offset from GMT @@ -688,7 +681,7 @@ public function getLocation () {} * @return int|false * @link https://php.net/manual/en/datetimezone.getoffset.php */ - public function getOffset (DateTimeInterface $datetime) {} + public function getOffset(DateTimeInterface $datetime) {} /** * Returns all transitions for the timezone @@ -697,15 +690,14 @@ public function getOffset (DateTimeInterface $datetime) {} * @return array|false * @link https://php.net/manual/en/datetimezone.gettransitions.php */ - public function getTransitions ($timestampBegin=null, $timestampEnd=null) {} - + public function getTransitions($timestampBegin = null, $timestampEnd = null) {} /** * Returns associative array containing dst, offset and the timezone name * @return array|false * @link https://php.net/manual/en/datetimezone.listabbreviations.php */ - public static function listAbbreviations () {} + public static function listAbbreviations() {} /** * Returns a numerically indexed array with all timezone identifiers @@ -714,13 +706,12 @@ public static function listAbbreviations () {} * @return array|false * @link https://php.net/manual/en/datetimezone.listidentifiers.php */ - public static function listIdentifiers ($timezoneGroup = DateTimeZone::ALL, $countryCode = null) {} + public static function listIdentifiers($timezoneGroup = DateTimeZone::ALL, $countryCode = null) {} /** * @link https://php.net/manual/en/datetime.wakeup.php */ - public function __wakeup(){} - + public function __wakeup() {} public static function __set_state($an_array) {} } @@ -731,7 +722,8 @@ public static function __set_state($an_array) {} * that DateTime's constructor supports. * @link https://php.net/manual/en/class.dateinterval.php */ -class DateInterval { +class DateInterval +{ /** * Number of years * @var int @@ -787,13 +779,12 @@ class DateInterval { */ public $days; - /** * @param string $duration * @link https://php.net/manual/en/dateinterval.construct.php * @throws \Exception when the $duration cannot be parsed as an interval. */ - public function __construct ($duration) {} + public function __construct($duration) {} /** * Formats the interval @@ -801,7 +792,7 @@ public function __construct ($duration) {} * @return string * @link https://php.net/manual/en/dateinterval.format.php */ - public function format ($format) {} + public function format($format) {} /** * Sets up a DateInterval from the relative parts of the string @@ -809,7 +800,7 @@ public function format ($format) {} * @return DateInterval * @link https://php.net/manual/en/dateinterval.createfromdatestring.php */ - public static function createFromDateString ($datetime) {} + public static function createFromDateString($datetime) {} public function __wakeup() {} @@ -820,8 +811,9 @@ public static function __set_state($an_array) {} * Representation of date period. * @link https://php.net/manual/en/class.dateperiod.php */ -class DatePeriod implements IteratorAggregate { - const EXCLUDE_START_DATE = 1; +class DatePeriod implements IteratorAggregate +{ + public const EXCLUDE_START_DATE = 1; /** * Start date @@ -866,7 +858,7 @@ class DatePeriod implements IteratorAggregate { * @param int $options Can be set to DatePeriod::EXCLUDE_START_DATE. * @link https://php.net/manual/en/dateperiod.construct.php */ - public function __construct (DateTimeInterface $start, DateInterval $interval, DateTimeInterface $end, $options = 0) {} + public function __construct(DateTimeInterface $start, DateInterval $interval, DateTimeInterface $end, $options = 0) {} /** * @param DateTimeInterface $start @@ -875,14 +867,14 @@ public function __construct (DateTimeInterface $start, DateInterval $interval, D * @param int $options Can be set to DatePeriod::EXCLUDE_START_DATE. * @link https://php.net/manual/en/dateperiod.construct.php */ - public function __construct (DateTimeInterface $start, DateInterval $interval, $recurrences, $options = 0) {} + public function __construct(DateTimeInterface $start, DateInterval $interval, $recurrences, $options = 0) {} /** * @param string $isostr String containing the ISO interval. * @param int $options Can be set to DatePeriod::EXCLUDE_START_DATE. * @link https://php.net/manual/en/dateperiod.construct.php */ - public function __construct ($isostr, $options = 0) {} + public function __construct($isostr, $options = 0) {} /** * Gets the interval @@ -890,7 +882,7 @@ public function __construct ($isostr, $options = 0) {} * @link https://php.net/manual/en/dateperiod.getdateinterval.php * @since 5.6.5 */ - public function getDateInterval () {} + public function getDateInterval() {} /** * Gets the end date @@ -898,7 +890,7 @@ public function getDateInterval () {} * @link https://php.net/manual/en/dateperiod.getenddate.php * @since 5.6.5 */ - public function getEndDate () {} + public function getEndDate() {} /** * Gets the start date @@ -906,9 +898,9 @@ public function getEndDate () {} * @link https://php.net/manual/en/dateperiod.getstartdate.php * @since 5.6.5 */ - public function getStartDate () {} + public function getStartDate() {} - public static function __set_state ($array){} + public static function __set_state($array) {} public function __wakeup() {} @@ -919,11 +911,11 @@ public function __wakeup() {} * @since 7.2.17 * @since 7.3.4 */ - public function getRecurrences () {} + public function getRecurrences() {} /** * @return DateTimeInterface[] * @since 8.0 */ - public function getIterator(){} + public function getIterator() {} } diff --git a/date/date_d.php b/date/date_d.php index d5289cc37..0d7a0780e 100644 --- a/date/date_d.php +++ b/date/date_d.php @@ -2,36 +2,36 @@ // Start of date v.5.3.2-0.dotdeb.1 -define ('DATE_ATOM', "Y-m-d\TH:i:sP"); -define ('DATE_COOKIE', "l, d-M-Y H:i:s T"); -define ('DATE_ISO8601', "Y-m-d\TH:i:sO"); -define ('DATE_RFC822', "D, d M y H:i:s O"); -define ('DATE_RFC850', "l, d-M-y H:i:s T"); -define ('DATE_RFC1036', "D, d M y H:i:s O"); -define ('DATE_RFC1123', "D, d M Y H:i:s O"); -define ('DATE_RFC2822', "D, d M Y H:i:s O"); -define ('DATE_RFC3339', "Y-m-d\TH:i:sP"); -define ('DATE_RFC3339_EXTENDED', "Y-m-d\TH:i:s.vP"); -define ('DATE_RFC7231', "D, d M Y H:i:s \G\M\T"); -define ('DATE_RSS', "D, d M Y H:i:s O"); -define ('DATE_W3C', "Y-m-d\TH:i:sP"); +define('DATE_ATOM', "Y-m-d\TH:i:sP"); +define('DATE_COOKIE', "l, d-M-Y H:i:s T"); +define('DATE_ISO8601', "Y-m-d\TH:i:sO"); +define('DATE_RFC822', "D, d M y H:i:s O"); +define('DATE_RFC850', "l, d-M-y H:i:s T"); +define('DATE_RFC1036', "D, d M y H:i:s O"); +define('DATE_RFC1123', "D, d M Y H:i:s O"); +define('DATE_RFC2822', "D, d M Y H:i:s O"); +define('DATE_RFC3339', "Y-m-d\TH:i:sP"); +define('DATE_RFC3339_EXTENDED', "Y-m-d\TH:i:s.vP"); +define('DATE_RFC7231', "D, d M Y H:i:s \G\M\T"); +define('DATE_RSS', "D, d M Y H:i:s O"); +define('DATE_W3C', "Y-m-d\TH:i:sP"); /** * Timestamp * @link https://php.net/manual/en/datetime.constants.php */ -define ('SUNFUNCS_RET_TIMESTAMP', 0); +define('SUNFUNCS_RET_TIMESTAMP', 0); /** * Hours:minutes (example: 08:02) * @link https://php.net/manual/en/datetime.constants.php */ -define ('SUNFUNCS_RET_STRING', 1); +define('SUNFUNCS_RET_STRING', 1); /** * Hours as floating point number (example 8.75) * @link https://php.net/manual/en/datetime.constants.php */ -define ('SUNFUNCS_RET_DOUBLE', 2); +define('SUNFUNCS_RET_DOUBLE', 2); // End of date v.5.3.2-0.dotdeb.1 diff --git a/dba/dba.php b/dba/dba.php index 6424c40dd..4b67472d1 100644 --- a/dba/dba.php +++ b/dba/dba.php @@ -119,8 +119,7 @@ * @param mixed ...$handler_params [optional] * @return resource|false a positive handle on success or FALSE on failure. */ -function dba_open ($path, $mode, $handler, ...$handler_params) -{} +function dba_open($path, $mode, $handler, ...$handler_params) {} /** * Open database persistently @@ -143,8 +142,7 @@ function dba_open ($path, $mode, $handler, ...$handler_params) * @param mixed ...$handler_params [optional] * @return resource|false a positive handle on success or FALSE on failure. */ -function dba_popen ($path, $mode, $handler, ...$handler_params) -{} +function dba_popen($path, $mode, $handler, ...$handler_params) {} /** * Close a DBA database @@ -155,7 +153,7 @@ function dba_popen ($path, $mode, $handler, ...$handler_params) *

    * @return void No value is returned. */ -function dba_close ($dba): void {} +function dba_close($dba): void {} /** * Delete DBA entry specified by key @@ -169,8 +167,7 @@ function dba_close ($dba): void {} *

    * @return bool TRUE on success or FALSE on failure. */ -function dba_delete ($key, $dba): bool -{} +function dba_delete($key, $dba): bool {} /** * Check whether key exists @@ -184,8 +181,7 @@ function dba_delete ($key, $dba): bool *

    * @return bool TRUE if the key exists, FALSE otherwise. */ -function dba_exists ($key, $dba): bool -{} +function dba_exists($key, $dba): bool {} /** * Fetch data specified by key @@ -205,8 +201,7 @@ function dba_exists ($key, $dba): bool * @return string|false the associated string if the key/data pair is found, FALSE * otherwise. */ -function dba_fetch ($key, $handle): string|false -{} +function dba_fetch($key, $handle): string|false {} /** * Fetch data specified by key @@ -227,8 +222,7 @@ function dba_fetch ($key, $handle): string|false * @return string|false the associated string if the key/data pair is found, FALSE * otherwise. */ -function dba_fetch ($key, $skip, $dba): string|false -{} +function dba_fetch($key, $skip, $dba): string|false {} /** * Insert entry @@ -247,8 +241,7 @@ function dba_fetch ($key, $skip, $dba): string|false *

    * @return bool TRUE on success or FALSE on failure. */ -function dba_insert ($key, string $value, $dba): bool -{} +function dba_insert($key, string $value, $dba): bool {} /** * Replace or insert entry @@ -265,8 +258,7 @@ function dba_insert ($key, string $value, $dba): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function dba_replace ($key, string $value, $dba): bool -{} +function dba_replace($key, string $value, $dba): bool {} /** * Fetch first key @@ -277,8 +269,7 @@ function dba_replace ($key, string $value, $dba): bool *

    * @return string|false the key on success or FALSE on failure. */ -function dba_firstkey ($dba): string|false -{} +function dba_firstkey($dba): string|false {} /** * Fetch next key @@ -289,8 +280,7 @@ function dba_firstkey ($dba): string|false *

    * @return string|false the key on success or FALSE on failure. */ -function dba_nextkey ($dba): string|false -{} +function dba_nextkey($dba): string|false {} /** * Optimize database @@ -301,8 +291,7 @@ function dba_nextkey ($dba): string|false *

    * @return bool TRUE on success or FALSE on failure. */ -function dba_optimize ($dba): bool -{} +function dba_optimize($dba): bool {} /** * Synchronize database @@ -313,8 +302,7 @@ function dba_optimize ($dba): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function dba_sync ($dba): bool -{} +function dba_sync($dba): bool {} /** * List all the handlers available @@ -331,16 +319,14 @@ function dba_sync ($dba): bool * When the internal cdb library is used you will see * cdb and cdb_make. */ -function dba_handlers (bool $full_info = false): array -{} +function dba_handlers(bool $full_info = false): array {} /** * List all open database files * @link https://php.net/manual/en/function.dba-list.php * @return array An associative array, in the form resourceid => filename. */ -function dba_list (): array -{} +function dba_list(): array {} /** * Splits a key in string representation into array representation @@ -352,7 +338,6 @@ function dba_list (): array * value_name). This function will return FALSE if * key is NULL or FALSE. */ -function dba_key_split (string|false|null $key): array|false -{} +function dba_key_split(string|false|null $key): array|false {} // End of dba v. diff --git a/decimal/decimal.php b/decimal/decimal.php index 267d5be35..d3e48374e 100644 --- a/decimal/decimal.php +++ b/decimal/decimal.php @@ -1,4 +1,5 @@ DOMElement
    object from a SimpleXMLElement object * @link https://php.net/manual/en/function.dom-import-simplexml.php @@ -11,194 +10,193 @@ *

    * @return DOMElement|null The DOMElement node added or NULL if any errors occur. */ -function dom_import_simplexml (object $node): ?DOMElement {} - +function dom_import_simplexml(object $node): ?DOMElement {} /** * Node is a DOMElement * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_ELEMENT_NODE', 1); +define('XML_ELEMENT_NODE', 1); /** * Node is a DOMAttr * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_ATTRIBUTE_NODE', 2); +define('XML_ATTRIBUTE_NODE', 2); /** * Node is a DOMText * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_TEXT_NODE', 3); +define('XML_TEXT_NODE', 3); /** * Node is a DOMCharacterData * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_CDATA_SECTION_NODE', 4); +define('XML_CDATA_SECTION_NODE', 4); /** * Node is a DOMEntityReference * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_ENTITY_REF_NODE', 5); +define('XML_ENTITY_REF_NODE', 5); /** * Node is a DOMEntity * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_ENTITY_NODE', 6); +define('XML_ENTITY_NODE', 6); /** * Node is a DOMProcessingInstruction * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_PI_NODE', 7); +define('XML_PI_NODE', 7); /** * Node is a DOMComment * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_COMMENT_NODE', 8); +define('XML_COMMENT_NODE', 8); /** * Node is a DOMDocument * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_DOCUMENT_NODE', 9); +define('XML_DOCUMENT_NODE', 9); /** * Node is a DOMDocumentType * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_DOCUMENT_TYPE_NODE', 10); +define('XML_DOCUMENT_TYPE_NODE', 10); /** * Node is a DOMDocumentFragment * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_DOCUMENT_FRAG_NODE', 11); +define('XML_DOCUMENT_FRAG_NODE', 11); /** * Node is a DOMNotation * @link https://php.net/manual/en/dom.constants.php */ -define ('XML_NOTATION_NODE', 12); -define ('XML_HTML_DOCUMENT_NODE', 13); -define ('XML_DTD_NODE', 14); -define ('XML_ELEMENT_DECL_NODE', 15); -define ('XML_ATTRIBUTE_DECL_NODE', 16); -define ('XML_ENTITY_DECL_NODE', 17); -define ('XML_NAMESPACE_DECL_NODE', 18); -define ('XML_LOCAL_NAMESPACE', 18); -define ('XML_ATTRIBUTE_CDATA', 1); -define ('XML_ATTRIBUTE_ID', 2); -define ('XML_ATTRIBUTE_IDREF', 3); -define ('XML_ATTRIBUTE_IDREFS', 4); -define ('XML_ATTRIBUTE_ENTITY', 6); -define ('XML_ATTRIBUTE_NMTOKEN', 7); -define ('XML_ATTRIBUTE_NMTOKENS', 8); -define ('XML_ATTRIBUTE_ENUMERATION', 9); -define ('XML_ATTRIBUTE_NOTATION', 10); +define('XML_NOTATION_NODE', 12); +define('XML_HTML_DOCUMENT_NODE', 13); +define('XML_DTD_NODE', 14); +define('XML_ELEMENT_DECL_NODE', 15); +define('XML_ATTRIBUTE_DECL_NODE', 16); +define('XML_ENTITY_DECL_NODE', 17); +define('XML_NAMESPACE_DECL_NODE', 18); +define('XML_LOCAL_NAMESPACE', 18); +define('XML_ATTRIBUTE_CDATA', 1); +define('XML_ATTRIBUTE_ID', 2); +define('XML_ATTRIBUTE_IDREF', 3); +define('XML_ATTRIBUTE_IDREFS', 4); +define('XML_ATTRIBUTE_ENTITY', 6); +define('XML_ATTRIBUTE_NMTOKEN', 7); +define('XML_ATTRIBUTE_NMTOKENS', 8); +define('XML_ATTRIBUTE_ENUMERATION', 9); +define('XML_ATTRIBUTE_NOTATION', 10); /** * Error code not part of the DOM specification. Meant for PHP errors. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_PHP_ERR', 0); +define('DOM_PHP_ERR', 0); /** * If index or size is negative, or greater than the allowed value. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_INDEX_SIZE_ERR', 1); +define('DOM_INDEX_SIZE_ERR', 1); /** * If the specified range of text does not fit into a * DOMString. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOMSTRING_SIZE_ERR', 2); +define('DOMSTRING_SIZE_ERR', 2); /** * If any node is inserted somewhere it doesn't belong * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_HIERARCHY_REQUEST_ERR', 3); +define('DOM_HIERARCHY_REQUEST_ERR', 3); /** * If a node is used in a different document than the one that created it. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_WRONG_DOCUMENT_ERR', 4); +define('DOM_WRONG_DOCUMENT_ERR', 4); /** * If an invalid or illegal character is specified, such as in a name. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_INVALID_CHARACTER_ERR', 5); +define('DOM_INVALID_CHARACTER_ERR', 5); /** * If data is specified for a node which does not support data. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_NO_DATA_ALLOWED_ERR', 6); +define('DOM_NO_DATA_ALLOWED_ERR', 6); /** * If an attempt is made to modify an object where modifications are not allowed. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_NO_MODIFICATION_ALLOWED_ERR', 7); +define('DOM_NO_MODIFICATION_ALLOWED_ERR', 7); /** * If an attempt is made to reference a node in a context where it does not exist. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_NOT_FOUND_ERR', 8); +define('DOM_NOT_FOUND_ERR', 8); /** * If the implementation does not support the requested type of object or operation. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_NOT_SUPPORTED_ERR', 9); +define('DOM_NOT_SUPPORTED_ERR', 9); /** * If an attempt is made to add an attribute that is already in use elsewhere. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_INUSE_ATTRIBUTE_ERR', 10); +define('DOM_INUSE_ATTRIBUTE_ERR', 10); /** * If an attempt is made to use an object that is not, or is no longer, usable. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_INVALID_STATE_ERR', 11); +define('DOM_INVALID_STATE_ERR', 11); /** * If an invalid or illegal string is specified. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_SYNTAX_ERR', 12); +define('DOM_SYNTAX_ERR', 12); /** * If an attempt is made to modify the type of the underlying object. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_INVALID_MODIFICATION_ERR', 13); +define('DOM_INVALID_MODIFICATION_ERR', 13); /** * If an attempt is made to create or change an object in a way which is * incorrect with regard to namespaces. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_NAMESPACE_ERR', 14); +define('DOM_NAMESPACE_ERR', 14); /** * If a parameter or an operation is not supported by the underlying object. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_INVALID_ACCESS_ERR', 15); +define('DOM_INVALID_ACCESS_ERR', 15); /** * If a call to a method such as insertBefore or removeChild would make the Node @@ -206,7 +204,6 @@ function dom_import_simplexml (object $node): ?DOMElement {} * the operation would not be done. * @link https://php.net/manual/en/dom.constants.php */ -define ('DOM_VALIDATION_ERR', 16); +define('DOM_VALIDATION_ERR', 16); // End of dom v.20031129 -?> diff --git a/dom/dom_c.php b/dom/dom_c.php index 325f363a7..65e972c94 100644 --- a/dom/dom_c.php +++ b/dom/dom_c.php @@ -7,8 +7,8 @@ * The DOMNode class * @link https://php.net/manual/en/class.domnode.php */ -class DOMNode { - +class DOMNode +{ /** * @var string * Returns the most accurate name for the current node type @@ -134,7 +134,7 @@ class DOMNode { *

    * @return DOMNode The inserted node. */ - public function insertBefore (DOMNode $node, DOMNode $child = null) {} + public function insertBefore(DOMNode $node, DOMNode $child = null) {} /** * Replaces a child @@ -149,7 +149,7 @@ public function insertBefore (DOMNode $node, DOMNode $child = null) {} *

    * @return DOMNode|false The old node or false if an error occur. */ - public function replaceChild (DOMNode $node , DOMNode $child ) {} + public function replaceChild(DOMNode $node, DOMNode $child) {} /** * Removes child from list of children @@ -159,7 +159,7 @@ public function replaceChild (DOMNode $node , DOMNode $child ) {} *

    * @return DOMNode If the child could be removed the functions returns the old child. */ - public function removeChild (DOMNode $child ) {} + public function removeChild(DOMNode $child) {} /** * Adds new child at the end of the children @@ -169,14 +169,14 @@ public function removeChild (DOMNode $child ) {} *

    * @return DOMNode The node added. */ - public function appendChild (DOMNode $node) {} + public function appendChild(DOMNode $node) {} /** * Checks if node has children * @link https://php.net/manual/en/domnode.haschildnodes.php * @return bool true on success or false on failure. */ - public function hasChildNodes () {} + public function hasChildNodes() {} /** * Clones a node @@ -187,14 +187,14 @@ public function hasChildNodes () {} *

    * @return static The cloned node. */ - public function cloneNode ($deep = false) {} + public function cloneNode($deep = false) {} /** * Normalizes the node * @link https://php.net/manual/en/domnode.normalize.php * @return void */ - public function normalize () {} + public function normalize() {} /** * Checks if feature is supported for specified version @@ -209,19 +209,19 @@ public function normalize () {} *

    * @return bool true on success or false on failure. */ - public function isSupported ($feature, $version) {} + public function isSupported($feature, $version) {} /** * Checks if node has attributes * @link https://php.net/manual/en/domnode.hasattributes.php * @return bool true on success or false on failure. */ - public function hasAttributes () {} + public function hasAttributes() {} /** * @param DOMNode $other */ - public function compareDocumentPosition (DOMNode $other) {} + public function compareDocumentPosition(DOMNode $other) {} /** * Indicates if two nodes are the same node @@ -231,7 +231,7 @@ public function compareDocumentPosition (DOMNode $other) {} *

    * @return bool true on success or false on failure. */ - public function isSameNode (DOMNode $otherNode ) {} + public function isSameNode(DOMNode $otherNode) {} /** * Gets the namespace prefix of the node based on the namespace URI @@ -241,7 +241,7 @@ public function isSameNode (DOMNode $otherNode ) {} *

    * @return string The prefix of the namespace. */ - public function lookupPrefix ($namespace) {} + public function lookupPrefix($namespace) {} /** * Checks if the specified namespaceURI is the default namespace or not @@ -252,7 +252,7 @@ public function lookupPrefix ($namespace) {} * @return bool Return true if namespaceURI is the default * namespace, false otherwise. */ - public function isDefaultNamespace ($namespace) {} + public function isDefaultNamespace($namespace) {} /** * Gets the namespace URI of the node based on the prefix @@ -262,48 +262,47 @@ public function isDefaultNamespace ($namespace) {} *

    * @return string The namespace URI of the node. */ - public function lookupNamespaceURI ($prefix) {} + public function lookupNamespaceURI($prefix) {} /** * @param DOMNode $arg * @return bool */ - public function isEqualNode (DOMNode $arg) {} + public function isEqualNode(DOMNode $arg) {} /** * @param $feature * @param $version * @return mixed */ - public function getFeature ($feature, $version) {} + public function getFeature($feature, $version) {} /** * @param $key * @param $data * @param $handler */ - public function setUserData ($key, $data, $handler) {} + public function setUserData($key, $data, $handler) {} /** * @param $key * @return mixed */ - public function getUserData ($key) {} + public function getUserData($key) {} /** * Gets an XPath location path for the node * @return string|null the XPath, or NULL in case of an error. * @link https://secure.php.net/manual/en/domnode.getnodepath.php */ - public function getNodePath () {} + public function getNodePath() {} - - /** - * Get line number for a node - * @link https://php.net/manual/en/domnode.getlineno.php - * @return int Always returns the line number where the node was defined in. - */ - public function getLineNo () {} + /** + * Get line number for a node + * @link https://php.net/manual/en/domnode.getlineno.php + * @return int Always returns the line number where the node was defined in. + */ + public function getLineNo() {} /** * Canonicalize nodes to a string @@ -313,7 +312,7 @@ public function getLineNo () {} * @param null|array $nsPrefixes [optional] An array of namespace prefixes to filter the nodes by. * @return string|false Canonicalized nodes as a string or FALSE on failure */ - public function C14N ($exclusive = false, $withComments = false, array $xpath = null, array $nsPrefixes = null) {} + public function C14N($exclusive = false, $withComments = false, array $xpath = null, array $nsPrefixes = null) {} /** * Canonicalize nodes to a file. @@ -325,9 +324,7 @@ public function C14N ($exclusive = false, $withComments = false, array $xpath = * @param null|array $nsPrefixes [optional] An array of namespace prefixes to filter the nodes by. * @return int|false Number of bytes written or FALSE on failure */ - public function C14NFile ($uri, $exclusive = false, $withComments = false, array $xpath = null, array $nsPrefixes = null) {} - - + public function C14NFile($uri, $exclusive = false, $withComments = false, array $xpath = null, array $nsPrefixes = null) {} } /** @@ -335,8 +332,8 @@ public function C14NFile ($uri, $exclusive = false, $withComments = false, array * when an operation is impossible to perform for logical reasons. * @link https://php.net/manual/en/class.domexception.php */ -class DOMException extends Exception { - +class DOMException extends Exception +{ /** * An integer indicating the type of error generated * @link https://php.net/manual/en/class.domexception.php#domexception.props.code @@ -344,66 +341,62 @@ class DOMException extends Exception { public $code; } -class DOMStringList { - +class DOMStringList +{ /** - * @param $index + * @param $index * @return mixed */ - public function item ($index) {} - + public function item($index) {} } /** * @link https://php.net/manual/en/ref.dom.php * @removed 8.0 */ -class DOMNameList { - +class DOMNameList +{ /** - * @param $index + * @param $index * @return mixed */ - public function getName ($index) {} + public function getName($index) {} /** - * @param $index + * @param $index * @return mixed */ - public function getNamespaceURI ($index) {} - + public function getNamespaceURI($index) {} } /** * @removed 8.0 */ -class DOMImplementationList { - +class DOMImplementationList +{ /** - * @param $index + * @param $index * @return mixed */ - public function item ($index) {} - + public function item($index) {} } /** * @removed 8.0 */ -class DOMImplementationSource { - +class DOMImplementationSource +{ /** - * @param $features + * @param $features * @return mixed */ - public function getDomimplementation ($features) {} + public function getDomimplementation($features) {} /** - * @param $features + * @param $features * @return mixed */ - public function getDomimplementations ($features) {} - + public function getDomimplementations($features) {} } /** @@ -412,35 +405,35 @@ public function getDomimplementations ($features) {} * particular instance of the document object model. * @link https://php.net/manual/en/class.domimplementation.php */ -class DOMImplementation { - +class DOMImplementation +{ /** * Creates a new DOMImplementation object * @link https://php.net/manual/en/domimplementation.construct.php */ - public function __construct(){} + public function __construct() {} /** * @param $feature * @param $version * @return mixed */ - public function getFeature ($feature, $version) {} + public function getFeature($feature, $version) {} - /** - * Test if the DOM implementation implements a specific feature - * @link https://php.net/manual/en/domimplementation.hasfeature.php - * @param string $feature

    - * The feature to test. - *

    - * @param string $version

    - * The version number of the feature to test. In - * level 2, this can be either 2.0 or - * 1.0. - *

    - * @return bool true on success or false on failure. - */ - public function hasFeature ($feature, $version) {} + /** + * Test if the DOM implementation implements a specific feature + * @link https://php.net/manual/en/domimplementation.hasfeature.php + * @param string $feature

    + * The feature to test. + *

    + * @param string $version

    + * The version number of the feature to test. In + * level 2, this can be either 2.0 or + * 1.0. + *

    + * @return bool true on success or false on failure. + */ + public function hasFeature($feature, $version) {} /** * Creates an empty DOMDocumentType object @@ -457,7 +450,7 @@ public function hasFeature ($feature, $version) {} * @return DOMDocumentType A new DOMDocumentType node with its * ownerDocument set to null. */ - public function createDocumentType ($qualifiedName = null, $publicId = null, $systemId = null) {} + public function createDocumentType($qualifiedName = null, $publicId = null, $systemId = null) {} /** * Creates a DOMDocument object of the specified type with its document element @@ -476,21 +469,18 @@ public function createDocumentType ($qualifiedName = null, $publicId = null, $sy * and doctype are null, the returned * DOMDocument is empty with no document element */ - public function createDocument ($namespace = null, $qualifiedName = null, DOMDocumentType $doctype = null) {} - + public function createDocument($namespace = null, $qualifiedName = null, DOMDocumentType $doctype = null) {} } - -class DOMNameSpaceNode { -} +class DOMNameSpaceNode {} /** * The DOMDocumentFragment class * @link https://php.net/manual/en/class.domdocumentfragment.php */ -class DOMDocumentFragment extends DOMNode implements DOMParentNode { - - public function __construct () {} +class DOMDocumentFragment extends DOMNode implements DOMParentNode +{ + public function __construct() {} /** * Append raw XML data @@ -500,7 +490,7 @@ public function __construct () {} *

    * @return bool true on success or false on failure. */ - public function appendXML ($data) {} + public function appendXML($data) {} /** * {@inheritDoc} @@ -518,8 +508,8 @@ public function prepend(...$nodes) {} * document; serves as the root of the document tree. * @link https://php.net/manual/en/class.domdocument.php */ -class DOMDocument extends DOMNode implements DOMParentNode { - +class DOMDocument extends DOMNode implements DOMParentNode +{ /** * @var string * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.actualencoding @@ -564,28 +554,28 @@ class DOMDocument extends DOMNode implements DOMParentNode { * encoding in this implementation. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.encoding */ - public $encoding ; + public $encoding; /** * @var bool * Nicely formats output with indentation and extra space. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.formatoutput */ - public $formatOutput ; + public $formatOutput; /** * @var DOMImplementation * The DOMImplementation object that handles this document. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.implementation */ - public $implementation ; + public $implementation; /** * @var bool * Do not remove redundant white space. Default to TRUE. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.preservewhitespace */ - public $preserveWhiteSpace = true ; + public $preserveWhiteSpace = true; /** * @var bool @@ -593,7 +583,7 @@ class DOMDocument extends DOMNode implements DOMParentNode { * This attribute is not part of the DOM specification and is specific to libxml. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.recover */ - public $recover ; + public $recover; /** * @var bool @@ -601,21 +591,21 @@ class DOMDocument extends DOMNode implements DOMParentNode { * including character entities in your XML document. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.resolveexternals */ - public $resolveExternals ; + public $resolveExternals; /** * @var bool * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.standalone */ #[Deprecated("Whether or not the document is standalone, as specified by the XML declaration, corresponds to xmlStandalone.")] - public $standalone ; + public $standalone; /** * @var bool * Throws DOMException on errors. Default to TRUE. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.stricterrorchecking */ - public $strictErrorChecking = true ; + public $strictErrorChecking = true; /** * @var bool @@ -623,21 +613,21 @@ class DOMDocument extends DOMNode implements DOMParentNode { * specification and is specific to libxml. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.substituteentities */ - public $substituteEntities ; + public $substituteEntities; /** * @var bool * Loads and validates against the DTD. Default to FALSE. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.validateonparse */ - public $validateOnParse = false ; + public $validateOnParse = false; /** * @var string * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.version */ #[Deprecated('Version of XML, corresponds to xmlVersion')] - public $version ; + public $version; /** * @var string @@ -645,7 +635,7 @@ class DOMDocument extends DOMNode implements DOMParentNode { * unspecified or when it is not known, such as when the Document was created in memory. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.xmlencoding */ - public $xmlEncoding ; + public $xmlEncoding; /** * @var bool @@ -653,7 +643,7 @@ class DOMDocument extends DOMNode implements DOMParentNode { * This is FALSE when unspecified. * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.xmlstandalone */ - public $xmlStandalone ; + public $xmlStandalone; /** * @var string @@ -661,7 +651,7 @@ class DOMDocument extends DOMNode implements DOMParentNode { * declaration and if this document supports the "XML" feature, the value is "1.0". * @link https://php.net/manual/en/class.domdocument.php#domdocument.props.xmlversion */ - public $xmlVersion ; + public $xmlVersion; /** * Create new element node @@ -676,14 +666,14 @@ class DOMDocument extends DOMNode implements DOMParentNode { * @return DOMElement|false A new instance of class DOMElement or false * if an error occurred. */ - public function createElement ($localName, $value = null) {} + public function createElement($localName, $value = null) {} /** * Create new document fragment * @link https://php.net/manual/en/domdocument.createdocumentfragment.php * @return DOMDocumentFragment|false The new DOMDocumentFragment or false if an error occurred. */ - public function createDocumentFragment () {} + public function createDocumentFragment() {} /** * Create new text node @@ -693,7 +683,7 @@ public function createDocumentFragment () {} *

    * @return DOMText|false The new DOMText or false if an error occurred. */ - public function createTextNode ($data) {} + public function createTextNode($data) {} /** * Create new comment node @@ -703,7 +693,7 @@ public function createTextNode ($data) {} *

    * @return DOMComment|false The new DOMComment or false if an error occurred. */ - public function createComment ($data) {} + public function createComment($data) {} /** * Create new cdata node @@ -713,7 +703,7 @@ public function createComment ($data) {} *

    * @return DOMCDATASection|false The new DOMCDATASection or false if an error occurred. */ - public function createCDATASection ($data) {} + public function createCDATASection($data) {} /** * Creates new PI node @@ -726,7 +716,7 @@ public function createCDATASection ($data) {} *

    * @return DOMProcessingInstruction|false The new DOMProcessingInstruction or false if an error occurred. */ - public function createProcessingInstruction ($target, $data = null) {} + public function createProcessingInstruction($target, $data = null) {} /** * Create new attribute @@ -736,7 +726,7 @@ public function createProcessingInstruction ($target, $data = null) {} *

    * @return DOMAttr|false The new DOMAttr or false if an error occurred. */ - public function createAttribute ($localName) {} + public function createAttribute($localName) {} /** * Create new entity reference node @@ -749,7 +739,7 @@ public function createAttribute ($localName) {} * @return DOMEntityReference|false The new DOMEntityReference or false if an error * occurred. */ - public function createEntityReference ($name) {} + public function createEntityReference($name) {} /** * Searches for all elements with given tag name @@ -761,7 +751,7 @@ public function createEntityReference ($name) {} * @return DOMNodeList A new DOMNodeList object containing all the matched * elements. */ - public function getElementsByTagName ($qualifiedName) {} + public function getElementsByTagName($qualifiedName) {} /** * Import node into current document @@ -778,7 +768,7 @@ public function getElementsByTagName ($qualifiedName) {} *

    * @return DOMNode|false The copied node or false, if it cannot be copied. */ - public function importNode (DOMNode $node , $deep = false) {} + public function importNode(DOMNode $node, $deep = false) {} /** * Create new element node with an associated namespace @@ -795,7 +785,7 @@ public function importNode (DOMNode $node , $deep = false) {} *

    * @return DOMElement|false The new DOMElement or false if an error occurred. */ - public function createElementNS ($namespace, $qualifiedName, $value = null) {} + public function createElementNS($namespace, $qualifiedName, $value = null) {} /** * Create new attribute node with an associated namespace @@ -808,7 +798,7 @@ public function createElementNS ($namespace, $qualifiedName, $value = null) {} *

    * @return DOMAttr|false The new DOMAttr or false if an error occurred. */ - public function createAttributeNS ($namespace, $qualifiedName) {} + public function createAttributeNS($namespace, $qualifiedName) {} /** * Searches for all elements with given tag name in specified namespace @@ -824,7 +814,7 @@ public function createAttributeNS ($namespace, $qualifiedName) {} * @return DOMNodeList A new DOMNodeList object containing all the matched * elements. */ - public function getElementsByTagNameNS ($namespace, $localName) {} + public function getElementsByTagNameNS($namespace, $localName) {} /** * Searches for an element with a certain id @@ -835,12 +825,12 @@ public function getElementsByTagNameNS ($namespace, $localName) {} * @return DOMElement|null The DOMElement or null if the element is * not found. */ - public function getElementById ($elementId) {} + public function getElementById($elementId) {} /** * @param DOMNode $node */ - public function adoptNode (DOMNode $node) {} + public function adoptNode(DOMNode $node) {} /** * {@inheritDoc} @@ -857,14 +847,14 @@ public function prepend(...$nodes) {} * @link https://php.net/manual/en/domdocument.normalizedocument.php * @return void */ - public function normalizeDocument () {} + public function normalizeDocument() {} /** * @param DOMNode $node * @param $namespace * @param $qualifiedName */ - public function renameNode (DOMNode $node, $namespace, $qualifiedName) {} + public function renameNode(DOMNode $node, $namespace, $qualifiedName) {} /** * Load XML from a file @@ -880,7 +870,7 @@ public function renameNode (DOMNode $node, $namespace, $qualifiedName) {} * DOMDocument and issues E_STRICT * warning. */ - public function load ($filename, $options = null) {} + public function load($filename, $options = null) {} /** * Dumps the internal XML tree back into a file @@ -893,7 +883,7 @@ public function load ($filename, $options = null) {} *

    * @return int|false the number of bytes written or false if an error occurred. */ - public function save ($filename, $options = null) {} + public function save($filename, $options = null) {} /** * Load XML from a string @@ -909,7 +899,7 @@ public function save ($filename, $options = null) {} * DOMDocument and issues E_STRICT * warning. */ - public function loadXML ($source, $options = null) {} + public function loadXML($source, $options = null) {} /** * Dumps the internal XML tree back into a string @@ -923,7 +913,7 @@ public function loadXML ($source, $options = null) {} *

    * @return string|false the XML, or false if an error occurred. */ - public function saveXML (DOMNode $node = null , $options = null) {} + public function saveXML(DOMNode $node = null, $options = null) {} /** * Creates a new DOMDocument object @@ -931,7 +921,7 @@ public function saveXML (DOMNode $node = null , $options = null) {} * @param string $version [optional] The version number of the document as part of the XML declaration. * @param string $encoding [optional] The encoding of the document as part of the XML declaration. */ - public function __construct ($version = '1.0', $encoding = '') {} + public function __construct($version = '1.0', $encoding = '') {} /** * Validates the document based on its DTD @@ -939,7 +929,7 @@ public function __construct ($version = '1.0', $encoding = '') {} * @return bool true on success or false on failure. * If the document have no DTD attached, this method will return false. */ - public function validate () {} + public function validate() {} /** * Substitutes XIncludes in a DOMDocument Object @@ -950,7 +940,7 @@ public function validate () {} *

    * @return int the number of XIncludes in the document. */ - public function xinclude ($options = null) {} + public function xinclude($options = null) {} /** * Load HTML from a string @@ -966,7 +956,7 @@ public function xinclude ($options = null) {} * DOMDocument and issues E_STRICT * warning. */ - public function loadHTML ($source, $options = 0) {} + public function loadHTML($source, $options = 0) {} /** * Load HTML from a file @@ -982,7 +972,7 @@ public function loadHTML ($source, $options = 0) {} * DOMDocument and issues E_STRICT * warning. */ - public function loadHTMLFile ($filename, $options = 0) {} + public function loadHTMLFile($filename, $options = 0) {} /** * Dumps the internal document into a string using HTML formatting @@ -990,7 +980,7 @@ public function loadHTMLFile ($filename, $options = 0) {} * @param null|DOMNode $node [optional] parameter to output a subset of the document. * @return string|false The HTML, or false if an error occurred. */ - public function saveHTML (DOMNode $node = null) {} + public function saveHTML(DOMNode $node = null) {} /** * Dumps the internal document into a file using HTML formatting @@ -1000,7 +990,7 @@ public function saveHTML (DOMNode $node = null) {} *

    * @return int|false the number of bytes written or false if an error occurred. */ - public function saveHTMLFile ($filename) {} + public function saveHTMLFile($filename) {} /** * Validates a document based on a schema @@ -1008,13 +998,13 @@ public function saveHTMLFile ($filename) {} * @param string $filename

    * The path to the schema. *

    - * @param int $options [optional]

    - * Bitwise OR - * of the libxml option constants. - *

    + * @param int $options [optional]

    + * Bitwise OR + * of the libxml option constants. + *

    * @return bool true on success or false on failure. */ - public function schemaValidate ($filename, $options = null) {} + public function schemaValidate($filename, $options = null) {} /** * Validates a document based on a schema @@ -1026,7 +1016,7 @@ public function schemaValidate ($filename, $options = null) {} * Available since PHP 5.5.2 and Libxml 2.6.14.

    * @return bool true on success or false on failure. */ - public function schemaValidateSource ($source, $flags) {} + public function schemaValidateSource($source, $flags) {} /** * Performs relaxNG validation on the document @@ -1036,7 +1026,7 @@ public function schemaValidateSource ($source, $flags) {} *

    * @return bool true on success or false on failure. */ - public function relaxNGValidate ($filename) {} + public function relaxNGValidate($filename) {} /** * Performs relaxNG validation on the document @@ -1046,7 +1036,7 @@ public function relaxNGValidate ($filename) {} *

    * @return bool true on success or false on failure. */ - public function relaxNGValidateSource ($source) {} + public function relaxNGValidateSource($source) {} /** * Register extended class used to create base node type @@ -1062,16 +1052,15 @@ public function relaxNGValidateSource ($source) {} *

    * @return bool true on success or false on failure. */ - public function registerNodeClass ($baseClass, $extendedClass) {} - + public function registerNodeClass($baseClass, $extendedClass) {} } /** * The DOMNodeList class * @link https://php.net/manual/en/class.domnodelist.php */ -class DOMNodeList implements IteratorAggregate, Countable { - +class DOMNodeList implements IteratorAggregate, Countable +{ /** * @var int * The number of nodes in the list. The range of valid child node indices is 0 to length - 1 inclusive. @@ -1079,18 +1068,18 @@ class DOMNodeList implements IteratorAggregate, Countable { */ public $length; - /** - * Retrieves a node specified by index - * @link https://php.net/manual/en/domnodelist.item.php - * @param int $index

    - * Index of the node into the collection. - * The range of valid child node indices is 0 to length - 1 inclusive. - *

    - * @return DOMNode|null The node at the indexth position in the - * DOMNodeList, or null if that is not a valid - * index. - */ - public function item ($index) {} + /** + * Retrieves a node specified by index + * @link https://php.net/manual/en/domnodelist.item.php + * @param int $index

    + * Index of the node into the collection. + * The range of valid child node indices is 0 to length - 1 inclusive. + *

    + * @return DOMNode|null The node at the indexth position in the + * DOMNodeList, or null if that is not a valid + * index. + */ + public function item($index) {} /** * @since 7.2 @@ -1101,7 +1090,7 @@ public function count() {} * @since 8.0 * @return Traversable */ - public function getIterator(){} + public function getIterator() {} } /** @@ -1109,8 +1098,8 @@ public function getIterator(){} * @link https://php.net/manual/en/class.domnamednodemap.php * @property-read int $length The number of nodes in the map. The range of valid child node indices is 0 to length - 1 inclusive. */ -class DOMNamedNodeMap implements IteratorAggregate, Countable { - +class DOMNamedNodeMap implements IteratorAggregate, Countable +{ /** * Retrieves a node specified by name * @link https://php.net/manual/en/domnamednodemap.getnameditem.php @@ -1120,17 +1109,17 @@ class DOMNamedNodeMap implements IteratorAggregate, Countable { * @return DOMNode|null A node (of any type) with the specified nodeName, or * null if no node is found. */ - public function getNamedItem ($qualifiedName) {} + public function getNamedItem($qualifiedName) {} /** * @param DOMNode $arg */ - public function setNamedItem (DOMNode $arg) {} + public function setNamedItem(DOMNode $arg) {} /** * @param $name [optional] */ - public function removeNamedItem ($name) {} + public function removeNamedItem($name) {} /** * Retrieves a node specified by index @@ -1142,7 +1131,7 @@ public function removeNamedItem ($name) {} * if that is not a valid index (greater than or equal to the number of nodes * in this map). */ - public function item ($index) {} + public function item($index) {} /** * Retrieves a node specified by local name and namespace URI @@ -1156,18 +1145,18 @@ public function item ($index) {} * @return DOMNode|null A node (of any type) with the specified local name and namespace URI, or * null if no node is found. */ - public function getNamedItemNS ($namespace, $localName) {} + public function getNamedItemNS($namespace, $localName) {} /** * @param DOMNode $arg [optional] */ - public function setNamedItemNS (DOMNode $arg) {} + public function setNamedItemNS(DOMNode $arg) {} /** * @param $namespace [optional] * @param $localName [optional] */ - public function removeNamedItemNS ($namespace, $localName) {} + public function removeNamedItemNS($namespace, $localName) {} /** * @since 7.2 @@ -1179,7 +1168,7 @@ public function count() {} * @since 8.0 * @return Traversable */ - public function getIterator(){} + public function getIterator() {} } /** @@ -1187,9 +1176,8 @@ public function getIterator(){} * No nodes directly correspond to this class, but other nodes do inherit from it. * @link https://php.net/manual/en/class.domcharacterdata.php */ -class DOMCharacterData extends DOMNode implements DOMChildNode { - - +class DOMCharacterData extends DOMNode implements DOMChildNode +{ /** * @var string * The contents of the node. @@ -1217,7 +1205,7 @@ class DOMCharacterData extends DOMNode implements DOMChildNode { * and count exceeds the length, then all 16-bit units * to the end of the data are returned. */ - public function substringData ($offset, $count) {} + public function substringData($offset, $count) {} /** * Append the string to the end of the character data of the node @@ -1227,7 +1215,7 @@ public function substringData ($offset, $count) {} *

    * @return void */ - public function appendData ($data) {} + public function appendData($data) {} /** * Insert a string at the specified 16-bit unit offset @@ -1240,7 +1228,7 @@ public function appendData ($data) {} *

    * @return void */ - public function insertData ($offset, $data) {} + public function insertData($offset, $data) {} /** * Remove a range of characters from the node @@ -1255,7 +1243,7 @@ public function insertData ($offset, $data) {} *

    * @return void */ - public function deleteData ($offset, $count) {} + public function deleteData($offset, $count) {} /** * Replace a substring within the DOMCharacterData node @@ -1273,7 +1261,7 @@ public function deleteData ($offset, $count) {} *

    * @return void */ - public function replaceData ($offset, $count, $data) {} + public function replaceData($offset, $count, $data) {} /** * {@inheritDoc} @@ -1302,7 +1290,6 @@ public function replaceWith(...$nodes) {} */ class DOMAttr extends DOMNode { - /** * @var string * (PHP5)
    @@ -1363,9 +1350,8 @@ public function __construct($name, $value) {} * The DOMElement class * @link https://php.net/manual/en/class.domelement.php */ -class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode { - - +class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode +{ /** * @var DOMElement|null * The parent of this node. If there is no such node, this returns NULL. @@ -1406,14 +1392,14 @@ class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode { * Not implemented yet, always return NULL * @link https://php.net/manual/en/class.domelement.php#domelement.props.schematypeinfo */ - public $schemaTypeInfo ; + public $schemaTypeInfo; /** * @var string * The element name * @link https://php.net/manual/en/class.domelement.php#domelement.props.tagname */ - public $tagName ; + public $tagName; /** * Returns value of attribute @@ -1424,7 +1410,7 @@ class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode { * @return string The value of the attribute, or an empty string if no attribute with the * given name is found. */ - public function getAttribute ($qualifiedName) {} + public function getAttribute($qualifiedName) {} /** * Adds new attribute @@ -1437,7 +1423,7 @@ public function getAttribute ($qualifiedName) {} *

    * @return DOMAttr|false The new DOMAttr or false if an error occurred. */ - public function setAttribute ($qualifiedName, $value) {} + public function setAttribute($qualifiedName, $value) {} /** * Removes attribute @@ -1447,7 +1433,7 @@ public function setAttribute ($qualifiedName, $value) {} *

    * @return bool true on success or false on failure. */ - public function removeAttribute ($qualifiedName) {} + public function removeAttribute($qualifiedName) {} /** * Returns attribute node @@ -1457,7 +1443,7 @@ public function removeAttribute ($qualifiedName) {} *

    * @return DOMAttr The attribute node. */ - public function getAttributeNode ($qualifiedName) {} + public function getAttributeNode($qualifiedName) {} /** * Adds new attribute node to element @@ -1467,7 +1453,7 @@ public function getAttributeNode ($qualifiedName) {} *

    * @return DOMAttr|null Old node if the attribute has been replaced or null. */ - public function setAttributeNode (DOMAttr $attr) {} + public function setAttributeNode(DOMAttr $attr) {} /** * Removes attribute @@ -1477,7 +1463,7 @@ public function setAttributeNode (DOMAttr $attr) {} *

    * @return bool true on success or false on failure. */ - public function removeAttributeNode (DOMAttr $attr) {} + public function removeAttributeNode(DOMAttr $attr) {} /** * Gets elements by tagname @@ -1489,7 +1475,7 @@ public function removeAttributeNode (DOMAttr $attr) {} * @return DOMNodeList This function returns a new instance of the class * DOMNodeList of all matched elements. */ - public function getElementsByTagName ($qualifiedName) {} + public function getElementsByTagName($qualifiedName) {} /** * Returns value of attribute @@ -1504,7 +1490,7 @@ public function getElementsByTagName ($qualifiedName) {} * given localName and namespaceURI * is found. */ - public function getAttributeNS ($namespace, $localName) {} + public function getAttributeNS($namespace, $localName) {} /** * Adds new attribute @@ -1520,7 +1506,7 @@ public function getAttributeNS ($namespace, $localName) {} *

    * @return void */ - public function setAttributeNS ($namespace, $qualifiedName, $value) {} + public function setAttributeNS($namespace, $qualifiedName, $value) {} /** * Removes attribute @@ -1533,7 +1519,7 @@ public function setAttributeNS ($namespace, $qualifiedName, $value) {} *

    * @return bool true on success or false on failure. */ - public function removeAttributeNS ($namespace, $localName) {} + public function removeAttributeNS($namespace, $localName) {} /** * Returns attribute node @@ -1546,7 +1532,7 @@ public function removeAttributeNS ($namespace, $localName) {} *

    * @return DOMAttr The attribute node. */ - public function getAttributeNodeNS ($namespace, $localName) {} + public function getAttributeNodeNS($namespace, $localName) {} /** * Adds new attribute node to element @@ -1554,7 +1540,7 @@ public function getAttributeNodeNS ($namespace, $localName) {} * @param DOMAttr $attr * @return DOMAttr the old node if the attribute has been replaced. */ - public function setAttributeNodeNS (DOMAttr $attr) {} + public function setAttributeNodeNS(DOMAttr $attr) {} /** * Get elements by namespaceURI and localName @@ -1570,7 +1556,7 @@ public function setAttributeNodeNS (DOMAttr $attr) {} * DOMNodeList of all matched elements in the order in * which they are encountered in a preorder traversal of this element tree. */ - public function getElementsByTagNameNS ($namespace, $localName) {} + public function getElementsByTagNameNS($namespace, $localName) {} /** * Checks to see if attribute exists @@ -1580,7 +1566,7 @@ public function getElementsByTagNameNS ($namespace, $localName) {} *

    * @return bool true on success or false on failure. */ - public function hasAttribute ($qualifiedName) {} + public function hasAttribute($qualifiedName) {} /** * Checks to see if attribute exists @@ -1593,7 +1579,7 @@ public function hasAttribute ($qualifiedName) {} *

    * @return bool true on success or false on failure. */ - public function hasAttributeNS ($namespace, $localName) {} + public function hasAttributeNS($namespace, $localName) {} /** * Declares the attribute specified by name to be of type ID @@ -1607,7 +1593,7 @@ public function hasAttributeNS ($namespace, $localName) {} *

    * @return void */ - public function setIdAttribute ($qualifiedName, $isId) {} + public function setIdAttribute($qualifiedName, $isId) {} /** * Declares the attribute specified by local name and namespace URI to be of type ID @@ -1624,7 +1610,7 @@ public function setIdAttribute ($qualifiedName, $isId) {} *

    * @return void */ - public function setIdAttributeNS ($namespace, $qualifiedName, $isId) {} + public function setIdAttributeNS($namespace, $qualifiedName, $isId) {} /** * Declares the attribute specified by node to be of type ID @@ -1638,7 +1624,7 @@ public function setIdAttributeNS ($namespace, $qualifiedName, $isId) {} *

    * @return void */ - public function setIdAttributeNode (DOMAttr $attr, $isId) {} + public function setIdAttributeNode(DOMAttr $attr, $isId) {} /** * {@inheritDoc} @@ -1677,8 +1663,7 @@ public function prepend(...$nodes) {} * @param string|null $value [optional] The value of the element. * @param string|null $namespace [optional] A namespace URI to create the element within a specific namespace. */ - public function __construct ($qualifiedName, $value = null, $namespace = null) {} - + public function __construct($qualifiedName, $value = null, $namespace = null) {} } /** @@ -1686,8 +1671,8 @@ public function __construct ($qualifiedName, $value = null, $namespace = null) { * a DOMElement or DOMAttr. * @link https://php.net/manual/en/class.domtext.php */ -class DOMText extends DOMCharacterData { - +class DOMText extends DOMCharacterData +{ /** * Holds all the text of logically-adjacent (not separated by Element, Comment or Processing Instruction) Text nodes. * @link https://php.net/manual/en/class.domtext.php#domtext.props.wholeText @@ -1703,29 +1688,28 @@ class DOMText extends DOMCharacterData { * @return DOMText The new node of the same type, which contains all the content at and after the * offset. */ - public function splitText ($offset) {} + public function splitText($offset) {} /** * Indicates whether this text node contains whitespace * @link https://php.net/manual/en/domtext.iswhitespaceinelementcontent.php * @return bool true on success or false on failure. */ - public function isWhitespaceInElementContent () {} + public function isWhitespaceInElementContent() {} - public function isElementContentWhitespace () {} + public function isElementContentWhitespace() {} /** * @param $content */ - public function replaceWholeText ($content) {} + public function replaceWholeText($content) {} /** * Creates a new DOMText object * @link https://php.net/manual/en/domtext.construct.php * @param string $data [optional] The value of the text node. If not supplied an empty text node is created. */ - public function __construct ($data) {} - + public function __construct($data) {} } /** @@ -1733,91 +1717,85 @@ public function __construct ($data) {} * characters delimited by lt;!-- and -->. * @link https://php.net/manual/en/class.domcomment.php */ -class DOMComment extends DOMCharacterData { - +class DOMComment extends DOMCharacterData +{ /** * Creates a new DOMComment object * @link https://php.net/manual/en/domcomment.construct.php * @param string $data [optional] The value of the comment */ - public function __construct ($data) {} + public function __construct($data) {} } /** * @removed 8.0 */ -class DOMTypeinfo { -} +class DOMTypeinfo {} /** * @removed 8.0 */ -class DOMUserDataHandler { - - public function handle () {} - +class DOMUserDataHandler +{ + public function handle() {} } /** * @removed 8.0 */ -class DOMDomError { -} +class DOMDomError {} /** * @removed 8.0 */ -class DOMErrorHandler { - +class DOMErrorHandler +{ /** * @param DOMDomError $error */ - public function handleError (DOMDomError $error) {} - + public function handleError(DOMDomError $error) {} } /** * @removed 8.0 */ -class DOMLocator { -} +class DOMLocator {} /** * @removed 8.0 */ -class DOMConfiguration { - +class DOMConfiguration +{ /** * @param $name * @param $value */ - public function setParameter ($name, $value) {} + public function setParameter($name, $value) {} /** * @param $name [optional] */ - public function getParameter ($name) {} + public function getParameter($name) {} /** * @param $name [optional] * @param $value [optional] */ - public function canSetParameter ($name, $value) {} - + public function canSetParameter($name, $value) {} } /** * The DOMCdataSection inherits from DOMText for textural representation of CData constructs. * @link https://secure.php.net/manual/en/class.domcdatasection.php */ -class DOMCdataSection extends DOMText { - +class DOMCdataSection extends DOMText +{ /** * The value of the CDATA node. If not supplied, an empty CDATA node is created. * @param string $data The value of the CDATA node. If not supplied, an empty CDATA node is created. * @link https://secure.php.net/manual/en/domcdatasection.construct.php */ - public function __construct ($data) {} + public function __construct($data) {} } /** @@ -1826,7 +1804,6 @@ public function __construct ($data) {} */ class DOMDocumentType extends DOMNode { - /** * @var string * The public identifier of the external subset. @@ -1874,9 +1851,8 @@ class DOMDocumentType extends DOMNode * The DOMNotation class * @link https://php.net/manual/en/class.domnotation.php */ -class DOMNotation extends DOMNode{ - - +class DOMNotation extends DOMNode +{ /** * @var string * @@ -1890,21 +1866,20 @@ class DOMNotation extends DOMNode{ * @link https://php.net/manual/en/class.domnotation.php#domnotation.props.systemid */ public $systemId; - } /** * The DOMEntity class represents a known entity, either parsed or unparsed, in an XML document. * @link https://php.net/manual/en/class.domentity.php */ -class DOMEntity extends DOMNode { - +class DOMEntity extends DOMNode +{ /** * @var string|null * The public identifier associated with the entity if specified, and NULL otherwise. * @link https://php.net/manual/en/class.domentity.php#domentity.props.publicid */ - public $publicId ; + public $publicId; /** * @var string|null @@ -1912,14 +1887,14 @@ class DOMEntity extends DOMNode { * absolute URI or not. * @link https://php.net/manual/en/class.domentity.php#domentity.props.systemid */ - public $systemId ; + public $systemId; /** * @var string|null * For unparsed entities, the name of the notation for the entity. For parsed entities, this is NULL. * @link https://php.net/manual/en/class.domentity.php#domentity.props.notationname */ - public $notationName ; + public $notationName; /** * @var string|null @@ -1927,7 +1902,7 @@ class DOMEntity extends DOMNode { * parsed entity. This is NULL if it an entity from the internal subset or if it is not known. * @link https://php.net/manual/en/class.domentity.php#domentity.props.actualencoding */ - public $actualEncoding ; + public $actualEncoding; /** * @var string|null @@ -1935,7 +1910,7 @@ class DOMEntity extends DOMNode { * parsed entity. This is NULL otherwise. * @link https://php.net/manual/en/class.domentity.php#domentity.props.encoding */ - public $encoding ; + public $encoding; /** * @var string|null @@ -1943,39 +1918,35 @@ class DOMEntity extends DOMNode { * external parsed entity. This is NULL otherwise. * @link https://php.net/manual/en/class.domentity.php#domentity.props.version */ - public $version ; - + public $version; } /** * Extends DOMNode. * @link https://php.net/manual/en/class.domentityreference.php */ -class DOMEntityReference extends DOMNode { - +class DOMEntityReference extends DOMNode +{ /** * Creates a new DOMEntityReference object * @link https://php.net/manual/en/domentityreference.construct.php * @param string $name The name of the entity reference. */ - public function __construct ($name) {} - + public function __construct($name) {} } /** * The DOMProcessingInstruction class * @link https://php.net/manual/en/class.domprocessinginstruction.php */ -class DOMProcessingInstruction extends DOMNode { - +class DOMProcessingInstruction extends DOMNode +{ /** - * * @link https://php.net/manual/en/class.domprocessinginstruction.php#domprocessinginstruction.props.target */ public $target; /** - * * @link https://php.net/manual/en/class.domprocessinginstruction.php#domprocessinginstruction.props.data */ public $data; @@ -1986,32 +1957,28 @@ class DOMProcessingInstruction extends DOMNode { * @param string $name The tag name of the processing instruction. * @param string $value [optional] The value of the processing instruction. */ - public function __construct ($name, $value) {} - + public function __construct($name, $value) {} } -class DOMStringExtend { - +class DOMStringExtend +{ /** * @param $offset32 */ - public function findOffset16 ($offset32) {} + public function findOffset16($offset32) {} /** * @param $offset16 */ - public function findOffset32 ($offset16) {} - + public function findOffset32($offset16) {} } /** * The DOMXPath class (supports XPath 1.0) * @link https://php.net/manual/en/class.domxpath.php */ -class DOMXPath { - - - +class DOMXPath +{ /** * @var DOMDocument * @@ -2025,7 +1992,7 @@ class DOMXPath { * @param DOMDocument $document The DOMDocument associated with the DOMXPath. * @param bool $registerNodeNS [optional] allow global flag to configure query() or evaluate() calls. Since 8.0. */ - public function __construct (DOMDocument $document, $registerNodeNS = true) {} + public function __construct(DOMDocument $document, $registerNodeNS = true) {} /** * Registers the namespace with the DOMXPath object @@ -2038,7 +2005,7 @@ public function __construct (DOMDocument $document, $registerNodeNS = true) {} *

    * @return bool true on success or false on failure. */ - public function registerNamespace ($prefix, $namespace) {} + public function registerNamespace($prefix, $namespace) {} /** * Evaluates the given XPath expression @@ -2058,7 +2025,7 @@ public function registerNamespace ($prefix, $namespace) {} * will return an empty DOMNodeList. The return is false if the expression * is malformed or the contextnode is invalid. */ - public function query ($expression, $contextNode = null, $registerNodeNS = true) {} + public function query($expression, $contextNode = null, $registerNodeNS = true) {} /** * Evaluates the given XPath expression and returns a typed result if possible. @@ -2078,7 +2045,7 @@ public function query ($expression, $contextNode = null, $registerNodeNS = true) * @return mixed a typed result if possible or a DOMNodeList * containing all nodes matching the given XPath expression. */ - public function evaluate ($expression, $contextNode = null, $registerNodeNS = true) {} + public function evaluate($expression, $contextNode = null, $registerNodeNS = true) {} /** * Register PHP functions as XPath functions @@ -2092,8 +2059,7 @@ public function evaluate ($expression, $contextNode = null, $registerNodeNS = tr *

    * @return void */ - public function registerPhpFunctions ($restrict = null) {} - + public function registerPhpFunctions($restrict = null) {} } /** @@ -2103,7 +2069,8 @@ public function registerPhpFunctions ($restrict = null) {} * * @since 8.0 */ -interface DOMParentNode { +interface DOMParentNode +{ /** * Appends one or many nodes to the list of children behind the last * child node. @@ -2131,7 +2098,8 @@ public function prepend(...$nodes); * * @since 8.0 */ -interface DOMChildNode { +interface DOMChildNode +{ /** * Acts as a simpler version of {@see DOMNode::removeChild()}. * diff --git a/ds/ds.php b/ds/ds.php index c0ba2c3e6..01eb219c8 100644 --- a/ds/ds.php +++ b/ds/ds.php @@ -8,7 +8,7 @@ * @license CC-BY 3.0, https://www.php.net/manual/en/cc.license.php */ -namespace Ds { +namespace Ds; use Countable; use JsonSerializable; @@ -423,7 +423,6 @@ public function sum(): float|int; public function unshift($values): void; } - /** * A Vector is a sequence of values in a contiguous buffer that grows and * shrinks automatically. It’s the most efficient sequential structure @@ -451,18 +450,14 @@ public function unshift($values): void; */ class Vector implements Sequence { - - const MIN_CAPACITY = 10; + public const MIN_CAPACITY = 10; /** * Creates a new instance, using either a traversable object or an array for the initial values. * * @param array|Traversable $values */ - public function __construct($values = null) - { - } - + public function __construct($values = null) {} /** * Ensures that enough memory is allocated for a required capacity. @@ -473,9 +468,7 @@ public function __construct($values = null) * equal to the current capacity.

    * @link https://www.php.net/manual/en/ds-vector.allocate.php */ - public function allocate(int $capacity): void - { - } + public function allocate(int $capacity): void {} /** * Updates all values by applying a callback function to each value in @@ -486,26 +479,20 @@ public function allocate(int $capacity): void * return what the value should be replaced by. * @link https://www.php.net/manual/en/ds-vector.apply.php */ - public function apply(callable $callback): void - { - } + public function apply(callable $callback): void {} /** * Returns the current capacity. * @return int The current capacity. * @link https://www.php.net/manual/en/ds-vector.capacity.php */ - public function capacity(): int - { - } + public function capacity(): int {} /** * Removes all values from the vector. * @link https://www.php.net/manual/en/ds-vector.clear.php */ - public function clear(): void - { - } + public function clear(): void {} /** * Determines if the vector contains all values. @@ -514,17 +501,13 @@ public function clear(): void * vector, TRUE otherwise. * @link https://www.php.net/manual/en/ds-vector.contains.php */ - public function contains(...$values): bool - { - } + public function contains(...$values): bool {} /** *Returns a shallow copy of the vector. * @return Vector Returns a shallow copy of the vector. */ - public function copy(): Vector - { - } + public function copy(): Vector {} /** * Creates a new vector using a callable to determine which values to @@ -540,9 +523,7 @@ public function copy(): Vector * TRUE if a callback was not provided. * @link https://www.php.net/manual/en/ds-vector.filter.php */ - public function filter(?callable $callback = null): Vector - { - } + public function filter(?callable $callback = null): Vector {} /** * Returns the index of the value, or FALSE if not found. @@ -551,9 +532,7 @@ public function filter(?callable $callback = null): Vector *

    Note: Values will be compared by value and by type.

    * @link https://www.php.net/manual/en/ds-vector.find.php */ - public function find($value) - { - } + public function find($value) {} /** * Returns the first value in the vector. @@ -561,9 +540,7 @@ public function find($value) * @throws UnderflowException if empty. * @link https://www.php.net/manual/en/ds-vector.first.php */ - public function first() - { - } + public function first() {} /** * Returns the value at a given index. @@ -571,9 +548,7 @@ public function first() * @return mixed * @link https://www.php.net/manual/en/ds-vector.get.php */ - public function get(int $index) - { - } + public function get(int $index) {} /** * Inserts values into the sequence at a given index. @@ -584,9 +559,7 @@ public function get(int $index) * @param array $values The value or values to insert. * @link https://www.php.net/manual/en/ds-vector.insert.php */ - public function insert(int $index, ...$values): void - { - } + public function insert(int $index, ...$values): void {} /** * Joins all values together as a string using an optional separator between each value. @@ -595,9 +568,7 @@ public function insert(int $index, ...$values): void * @return string All values of the sequence joined together as a string. * @link https://www.php.net/manual/en/ds-vector.join.php */ - public function join(?string $glue = null): string - { - } + public function join(?string $glue = null): string {} /** * Returns the last value in the sequence. @@ -605,9 +576,7 @@ public function join(?string $glue = null): string * @return mixed The last value in the sequence. * @link https://www.php.net/manual/en/ds-vector.last.php */ - public function last() - { - } + public function last() {} /** * Returns the result of applying a callback function to each value in the sequence. @@ -618,9 +587,7 @@ public function last() * @return Vector * @link https://www.php.net/manual/en/ds-vector.map.php */ - public function map(callable $callback): Vector - { - } + public function map(callable $callback): Vector {} /** * Returns the result of adding all given values to the sequence. @@ -632,9 +599,7 @@ public function map(callable $callback): Vector * The current instance won't be affected. * @link https://www.php.net/manual/en/ds-vector.merge.php */ - public function merge($values): Vector - { - } + public function merge($values): Vector {} /** * Removes and returns the last value. @@ -642,18 +607,14 @@ public function merge($values): Vector * @return mixed * @link https://www.php.net/manual/en/ds-vector.pop.php */ - public function pop() - { - } + public function pop() {} /** * Adds values to the end of the sequence. * @param array $values * @link https://www.php.net/manual/en/ds-vector.push.php */ - public function push(...$values): void - { - } + public function push(...$values): void {} /** * Reduces the sequence to a single value using a callback function. @@ -667,9 +628,7 @@ public function push(...$values): void * * @link https://www.php.net/manual/en/ds-vector.reduce.php */ - public function reduce(callable $callback, $initial = null) - { - } + public function reduce(callable $callback, $initial = null) {} /** * Removes and returns a value by index. @@ -677,17 +636,13 @@ public function reduce(callable $callback, $initial = null) * @return mixed The value that was removed. * @link https://www.php.net/manual/en/ds-vector.remove.php */ - public function remove(int $index) - { - } + public function remove(int $index) {} /** * Reverses the sequence in-place. * @link https://www.php.net/manual/en/ds-vector.reverse.php */ - public function reverse(): void - { - } + public function reverse(): void {} /** * Returns a reversed copy of the sequence. @@ -695,9 +650,7 @@ public function reverse(): void * Note: The current instance is not affected. * @link https://www.php.net/manual/en/ds-vector.reversed.php */ - public function reversed(): Vector - { - } + public function reversed(): Vector {} /** * Rotates the sequence by a given number of rotations, which is @@ -709,9 +662,7 @@ public function reversed(): Vector * * @param int $rotations The number of times the sequence should be rotated. */ - public function rotate(int $rotations): void - { - } + public function rotate(int $rotations): void {} /** * Updates a value at a given index. @@ -723,9 +674,7 @@ public function rotate(int $rotations): void * * @throws OutOfRangeException if the index is not valid. */ - public function set(int $index, $value): void - { - } + public function set(int $index, $value): void {} /** * Removes and returns the first value. @@ -735,9 +684,7 @@ public function set(int $index, $value): void * @return mixed The first value, which was removed. * @throws UnderflowException if empty. */ - public function shift() - { - } + public function shift() {} /** * Creates a sub-sequence of a given range. @@ -755,9 +702,7 @@ public function shift() * between the index and the end of the sequence. * @return Vector */ - public function slice(int $index, int $length = null): Vector - { - } + public function slice(int $index, int $length = null): Vector {} /** * Sorts the sequence in-place, using an optional comparator function. @@ -774,9 +719,7 @@ public function slice(int $index, int $length = null): Vector * such as 0.99 and 0.1 will both be cast to an integer value of 0, * which will compare such values as equal. */ - public function sort(?callable $comparator = null): void - { - } + public function sort(?callable $comparator = null): void {} /** * Returns a sorted copy, using an optional comparator function. @@ -791,9 +734,7 @@ public function sort(?callable $comparator = null): void * an integer value of 0, which will compare such values as equal. * @return Vector Returns a sorted copy of the sequence. */ - public function sorted(?callable $comparator = null): Vector - { - } + public function sorted(?callable $comparator = null): Vector {} /** * Returns the sum of all values in the sequence.
    @@ -802,9 +743,7 @@ public function sorted(?callable $comparator = null): Vector * @link https://www.php.net/manual/en/ds-vector.sum.php * @return float */ - public function sum(): float - { - } + public function sum(): float {} /** * Adds values to the front of the sequence, moving all the current @@ -814,9 +753,7 @@ public function sum(): float * passed. * @link https://www.php.net/manual/en/ds-vector.unshift.php */ - public function unshift($values): void - { - } + public function unshift($values): void {} /** * Count elements of an object @@ -827,18 +764,14 @@ public function unshift($values): void *

    * @since 5.1 */ - public function count(): int - { - } + public function count(): int {} /** * Returns whether the collection is empty. * @link https://www.php.net/manual/en/ds-vector.isempty.php * @return bool */ - public function isEmpty(): bool - { - } + public function isEmpty(): bool {} /** * Converts the collection to an array. @@ -847,9 +780,7 @@ public function isEmpty(): bool * @return array An array containing all the values in the same order as * the collection. */ - public function toArray(): array - { - } + public function toArray(): array {} /** * Specify data which should be serialized to JSON @@ -858,9 +789,7 @@ public function toArray(): array * which is a value of any type other than a resource. * @since 5.4 */ - public function jsonSerialize() - { - } + public function jsonSerialize() {} } class Deque implements Sequence @@ -871,9 +800,7 @@ class Deque implements Sequence * * @link https://www.php.net/manual/en/ds-deque.construct.php */ - public function __construct(...$values) - { - } + public function __construct(...$values) {} /** * Count elements of an object @@ -884,35 +811,27 @@ public function __construct(...$values) *

    * @since 5.1 */ - public function count(): int - { - } + public function count(): int {} /** * Removes all values from the deque. * @link https://www.php.net/manual/en/ds-deque.clear.php */ - public function clear(): void - { - } + public function clear(): void {} /** * Returns a shallow copy of the deque. * @link https://www.php.net/manual/en/ds-deque.copy.php * @return Collection */ - public function copy(): Collection - { - } + public function copy(): Collection {} /** * Returns whether the deque is empty. * @link https://www.php.net/manual/en/ds-deque.isempty.php * @return bool */ - public function isEmpty(): bool - { - } + public function isEmpty(): bool {} /** * Converts the deque to an array. @@ -921,9 +840,7 @@ public function isEmpty(): bool * @return array An array containing all the values in the same order as * the deque. */ - public function toArray(): array - { - } + public function toArray(): array {} /** * Ensures that enough memory is allocated for a required capacity. @@ -935,9 +852,7 @@ public function toArray(): array *

    Note: Capacity will always be rounded up to the nearest power of 2.

    * @link https://www.php.net/manual/en/ds-deque.allocate.php */ - public function allocate(int $capacity): void - { - } + public function allocate(int $capacity): void {} /** * Updates all values by applying a callback function to each value in @@ -949,18 +864,14 @@ public function allocate(int $capacity): void *

    * @link https://www.php.net/manual/en/ds-deque.apply.php */ - public function apply(callable $callback): void - { - } + public function apply(callable $callback): void {} /** * Returns the current capacity. * @return int The current capacity. * @link https://www.php.net/manual/en/ds-deque.capacity.php */ - public function capacity(): int - { - } + public function capacity(): int {} /** * Determines if the deque contains all values. @@ -969,9 +880,7 @@ public function capacity(): int * deque, TRUE otherwise. * @link https://www.php.net/manual/en/ds-deque.contains.php */ - public function contains(...$values): bool - { - } + public function contains(...$values): bool {} /** * Creates a new deque using a callable to determine which values @@ -987,9 +896,7 @@ public function contains(...$values): bool * TRUE if a callback was not provided. * @link https://www.php.net/manual/en/ds-deque.filter.php */ - public function filter(?callable $callback = null): Deque - { - } + public function filter(?callable $callback = null): Deque {} /** * Returns the index of the value, or FALSE if not found. @@ -997,9 +904,7 @@ public function filter(?callable $callback = null): Deque * @return int|false The index of the value, or FALSE if not found. * @link https://www.php.net/manual/en/ds-deque.find.php */ - public function find($value) - { - } + public function find($value) {} /** * Returns the first value in the deque. @@ -1007,9 +912,7 @@ public function find($value) * @throws UnderflowException if empty. * @link https://www.php.net/manual/en/ds-deque.first.php */ - public function first() - { - } + public function first() {} /** * Returns the value at a given index. @@ -1018,9 +921,7 @@ public function first() * @throws OutOfRangeException if the index is not valid. * @link https://www.php.net/manual/en/ds-deque.get.php */ - public function get(int $index) - { - } + public function get(int $index) {} /** * Inserts values into the deque at a given index. @@ -1031,9 +932,7 @@ public function get(int $index) * @throws OutOfRangeException if the index is not valid. * @link https://www.php.net/manual/en/ds-deque.insert.php */ - public function insert(int $index, ...$values): void - { - } + public function insert(int $index, ...$values): void {} /** * Joins all values together as a string using an optional separator @@ -1043,9 +942,7 @@ public function insert(int $index, ...$values): void * string. * @link https://www.php.net/manual/en/ds-deque.join.php */ - public function join(string $glue = ''): string - { - } + public function join(string $glue = ''): string {} /** * Returns the last value in the deque. @@ -1053,9 +950,7 @@ public function join(string $glue = ''): string * @throws UnderflowException if empty. * @link https://www.php.net/manual/en/ds-deque.last.php */ - public function last() - { - } + public function last() {} /** * Returns the result of applying a callback function to each value in @@ -1073,9 +968,7 @@ public function last() * affected.

    * @link https://www.php.net/manual/en/ds-deque.map.php */ - public function map(callable $callback): Deque - { - } + public function map(callable $callback): Deque {} /** * Returns the result of adding all given values to the deque. @@ -1085,9 +978,7 @@ public function map(callable $callback): Deque * then returning that copy. * @link https://www.php.net/manual/en/ds-deque.merge.php */ - public function merge($values): Deque - { - } + public function merge($values): Deque {} /** * Removes and returns the last value. @@ -1095,17 +986,13 @@ public function merge($values): Deque * @throws UnderflowException if empty. * @link https://www.php.net/manual/en/ds-deque.pop.php */ - public function pop() - { - } + public function pop() {} /** * Adds values to the end of the deque. * @param mixed ...$values The values to add. */ - public function push(...$values): void - { - } + public function push(...$values): void {} /** * Reduces the deque to a single value using a callback function. @@ -1119,9 +1006,7 @@ public function push(...$values): void * @return mixed The return value of the final callback. * @link https://www.php.net/manual/en/ds-deque.reduce.php */ - public function reduce(callable $callback, $initial = null) - { - } + public function reduce(callable $callback, $initial = null) {} /** * Removes and returns a value by index. @@ -1129,26 +1014,20 @@ public function reduce(callable $callback, $initial = null) * @return mixed The value that was removed. * @link https://www.php.net/manual/en/ds-deque.remove.php */ - public function remove(int $index) - { - } + public function remove(int $index) {} /** * Reverses the deque in-place. * @link https://www.php.net/manual/en/ds-deque.reverse.php */ - public function reverse(): void - { - } + public function reverse(): void {} /** * Returns a reversed copy of the deque. * @return Deque A reversed copy of the deque. *

    Note: The current instance is not affected.

    */ - public function reversed(): Deque - { - } + public function reversed(): Deque {} /** * Rotates the deque by a given number of rotations, which is @@ -1159,9 +1038,7 @@ public function reversed(): Deque * rotated. * @link https://www.php.net/manual/en/ds-deque.rotate.php */ - public function rotate(int $rotations): void - { - } + public function rotate(int $rotations): void {} /** * Updates a value at a given index. @@ -1170,9 +1047,7 @@ public function rotate(int $rotations): void * @throws OutOfRangeException if the index is not valid. * @link https://www.php.net/manual/en/ds-deque.set.php */ - public function set(int $index, $value): void - { - } + public function set(int $index, $value): void {} /** * Removes and returns the first value. @@ -1180,9 +1055,7 @@ public function set(int $index, $value): void * @throws UnderflowException if empty. * @link https://www.php.net/manual/en/ds-deque.shift.php */ - public function shift() - { - } + public function shift() {} /** * Creates a sub-deque of a given range. @@ -1199,9 +1072,7 @@ public function shift() * @return Deque A sub-deque of the given range. * @link https://www.php.net/manual/en/ds-deque.slice.php */ - public function slice(int $index, int $length = null): Deque - { - } + public function slice(int $index, int $length = null): Deque {} /** * Sorts the deque in-place, using an optional comparator function. @@ -1218,9 +1089,7 @@ public function slice(int $index, int $length = null): Deque * values as equal.

    * @link https://www.php.net/manual/en/ds-deque.sort.php */ - public function sort(?callable $comparator = null): void - { - } + public function sort(?callable $comparator = null): void {} /** * Returns a sorted copy, using an optional comparator function. @@ -1238,9 +1107,7 @@ public function sort(?callable $comparator = null): void * @return Deque Returns a sorted copy of the deque. * @link https://www.php.net/manual/en/ds-deque.sort.php */ - public function sorted(?callable $comparator = null): Deque - { - } + public function sorted(?callable $comparator = null): Deque {} /** * Returns the sum of all values in the deque. @@ -1249,9 +1116,7 @@ public function sorted(?callable $comparator = null): Deque * @return float|int The sum of all the values in the deque as * either a float or int depending on the values in the deque. */ - public function sum(): float|int - { - } + public function sum(): float|int {} /** * Adds values to the front of the deque, moving all the current @@ -1260,9 +1125,7 @@ public function sum(): float|int *

    Note: Multiple values will be added in the same order that they * are passed.

    */ - public function unshift($values): void - { - } + public function unshift($values): void {} /** * Specify data which should be serialized to JSON @@ -1271,11 +1134,7 @@ public function unshift($values): void * which is a value of any type other than a resource. * @since 5.4 */ - public function jsonSerialize() - { - } - - + public function jsonSerialize() {} } class Map implements Collection @@ -1286,9 +1145,7 @@ class Map implements Collection * * @link https://www.php.net/manual/en/ds-map.construct.php */ - public function __construct(...$values) - { - } + public function __construct(...$values) {} /** * Allocates enough memory for a required capacity. @@ -1299,9 +1156,7 @@ public function __construct(...$values) * * @link https://www.php.net/manual/en/ds-map.allocate.php */ - public function allocate(int $capacity) - { - } + public function allocate(int $capacity) {} /** * Updates all values by applying a callback function to each value in the map. @@ -1311,9 +1166,7 @@ public function allocate(int $capacity) * * @link https://www.php.net/manual/en/ds-map.apply.php */ - public function apply(callable $callback) - { - } + public function apply(callable $callback) {} /** * Returns the current capacity. @@ -1322,9 +1175,7 @@ public function apply(callable $callback) * * @link https://www.php.net/manual/en/ds-map.capacity.php */ - public function capacity(): int - { - } + public function capacity(): int {} /** * Count elements of an object @@ -1335,26 +1186,20 @@ public function capacity(): int * The return value is cast to an integer. * @since 5.1 */ - public function count(): int - { - } + public function count(): int {} /** * Removes all values from the collection. * @link https://www.php.net/manual/en/ds-collection.clear.php */ - public function clear(): void - { - } + public function clear(): void {} /** * Returns a shallow copy of the collection. * @link https://www.php.net/manual/en/ds-collection.copy.php * @return Collection */ - public function copy(): Collection - { - } + public function copy(): Collection {} /** * Returns the result of removing all keys from the current instance that are present in a given map. @@ -1367,9 +1212,7 @@ public function copy(): Collection * * @link https://www.php.net/manual/en/ds-map.diff.php */ - public function diff(Map $map): Map - { - } + public function diff(Map $map): Map {} /** * Creates a new map using a callable to determine which pairs to include @@ -1381,9 +1224,7 @@ public function diff(Map $map): Map * * @link https://www.php.net/manual/en/ds-map.filter.php */ - public function filter(?callable $callback = null): Map - { - } + public function filter(?callable $callback = null): Map {} /** * Returns the first pair in the map @@ -1394,9 +1235,7 @@ public function filter(?callable $callback = null): Map * * @link https://www.php.net/manual/en/ds-map.first.php */ - public function first(): Pair - { - } + public function first(): Pair {} /** * Returns the value for a given key, or an optional default value if the key could not be found. @@ -1421,9 +1260,7 @@ public function first(): Pair * * @link https://www.php.net/manual/en/ds-map.get.php */ - public function get($key, $default = null) - { - } + public function get($key, $default = null) {} /** * Determines whether the map contains a given key @@ -1434,9 +1271,7 @@ public function get($key, $default = null) * * @link https://www.php.net/manual/en/ds-map.hasKey.php */ - public function hasKey($key): bool - { - } + public function hasKey($key): bool {} /** * Determines whether the map contains a given value @@ -1447,9 +1282,7 @@ public function hasKey($key): bool * * @link https://www.php.net/manual/en/ds-map.hasValue.php */ - public function hasValue($value): bool - { - } + public function hasValue($value): bool {} /** * Creates a new map containing the pairs of the current instance whose @@ -1467,9 +1300,7 @@ public function hasValue($value): bool * * @link https://www.php.net/manual/en/ds-map.intersect.php */ - public function intersect(Map $map): Map - { - } + public function intersect(Map $map): Map {} /** * Returns whether the collection is empty. @@ -1480,9 +1311,7 @@ public function intersect(Map $map): Map * * @link https://www.php.net/manual/en/ds-map.isempty.php */ - public function isEmpty(): bool - { - } + public function isEmpty(): bool {} /** * Converts the map to an array. @@ -1499,9 +1328,7 @@ public function isEmpty(): bool * @return array An array containing all the values in the same order as * the map. */ - public function toArray(): array - { - } + public function toArray(): array {} /** * Specify data which should be serialized to JSON @@ -1510,18 +1337,14 @@ public function toArray(): array * which is a value of any type other than a resource. * @since 5.4 */ - public function jsonSerialize() - { - } + public function jsonSerialize() {} /** * Returns a set containing all the keys of the map, in the same order. * @link https://www.php.net/manual/en/ds-map.keys.php * @return Set A Ds\Set containing all the keys of the map. */ - public function keys(): Set - { - } + public function keys(): Set {} /** * Sorts the map in-place by key, using an optional comparator function. @@ -1538,9 +1361,7 @@ public function keys(): Set * equal.

    * @link https://www.php.net/manual/en/ds-map.ksort.php */ - public function ksort(?callable $comparator = null) - { - } + public function ksort(?callable $comparator = null) {} /** * Returns a copy sorted by key, using an optional comparator function. @@ -1558,9 +1379,7 @@ public function ksort(?callable $comparator = null) * @return Map Returns a copy of the map, sorted by key. * @link https://www.php.net/manual/en/ds-map.ksorted.php */ - public function ksorted(?callable $comparator = null): Map - { - } + public function ksorted(?callable $comparator = null): Map {} /** * Returns the last pair of the map. @@ -1568,9 +1387,7 @@ public function ksorted(?callable $comparator = null): Map * @throws UnderflowException if empty * @link https://www.php.net/manual/en/ds-map.last.php */ - public function last(): Pair - { - } + public function last(): Pair {} /** * Returns the result of applying a callback function to each value of @@ -1586,9 +1403,7 @@ public function last(): Pair * * @link https://www.php.net/manual/en/ds-map.map.php */ - public function map(callable $callback): Map - { - } + public function map(callable $callback): Map {} /** * Returns the result of associating all keys of a given traversable @@ -1603,9 +1418,7 @@ public function map(callable $callback): Map * * @link https://www.php.net/manual/en/ds-map.merge.php */ - public function merge($values): Map - { - } + public function merge($values): Map {} /** * Returns a Ds\Sequence containing all the pairs of the map. @@ -1614,9 +1427,7 @@ public function merge($values): Map * * @link https://www.php.net/manual/en/ds-map.pairs.php */ - public function pairs(): Sequence - { - } + public function pairs(): Sequence {} /** * Associates a key with a value, overwriting a previous association if @@ -1639,9 +1450,7 @@ public function pairs(): Sequence * * @link https://www.php.net/manual/en/ds-map.put.php */ - public function put($key, $value) - { - } + public function put($key, $value) {} /** * Associates all key-value pairs of a traversable object or array. @@ -1656,9 +1465,7 @@ public function put($key, $value) * * @link https://www.php.net/manual/en/ds-map.putall.php */ - public function putAll($pairs) - { - } + public function putAll($pairs) {} /** * Reduces the map to a single value using a callback function. @@ -1675,9 +1482,7 @@ public function putAll($pairs) * * @link https://www.php.net/manual/en/ds-map.reduce.php */ - public function reduce(callable $callback, $initial) - { - } + public function reduce(callable $callback, $initial) {} /** * Removes and returns a value by key, or return an optional default @@ -1709,18 +1514,14 @@ public function reduce(callable $callback, $initial) * * @link https://www.php.net/manual/en/ds-map.remove.php */ - public function remove($key, $default = null) - { - } + public function remove($key, $default = null) {} /** * Reverses the map in-place. * * @link https://www.php.net/manual/en/ds-map.reverse.php */ - public function reverse() - { - } + public function reverse() {} /** * Returns a reversed copy of the map. @@ -1731,9 +1532,7 @@ public function reverse() * * @link https://www.php.net/manual/en/ds-map.reversed.php */ - public function reversed(): Map - { - } + public function reversed(): Map {} /** * Returns the pair at a given zero-based position. @@ -1746,9 +1545,7 @@ public function reversed(): Map * * @link https://www.php.net/manual/en/ds-map.skip.php */ - public function skip(int $position): Pair - { - } + public function skip(int $position): Pair {} /** * Returns a subset of the map defined by a starting index and length. @@ -1770,9 +1567,7 @@ public function skip(int $position): Pair * * @link https://www.php.net/manual/en/ds-map.slice.php */ - public function slice(int $index, ?int $length = null): Map - { - } + public function slice(int $index, ?int $length = null): Map {} /** * Sorts the map in-place by value, using an optional comparator @@ -1794,9 +1589,7 @@ public function slice(int $index, ?int $length = null): Map * * @link https://www.php.net/manual/en/ds-map.sort.php */ - public function sort(?callable $comparator = null) - { - } + public function sort(?callable $comparator = null) {} /** * Returns a copy, sorted by value using an optional comparator function. @@ -1819,9 +1612,7 @@ public function sort(?callable $comparator = null) * * @link https://www.php.net/manual/en/ds-map.sorted.php */ - public function sorted(?callable $comparator = null): Map - { - } + public function sorted(?callable $comparator = null): Map {} /** * Returns the sum of all values in the map. @@ -1834,9 +1625,7 @@ public function sorted(?callable $comparator = null): Map * * @link https://www.php.net/manual/en/ds-map.sum.php */ - public function sum(): float|int - { - } + public function sum(): float|int {} /** * Creates a new map using values from the current instance and another @@ -1854,9 +1643,7 @@ public function sum(): float|int * * @link https://www.php.net/manual/en/ds-map.union.php */ - public function union(Map $map): Map - { - } + public function union(Map $map): Map {} /** * Returns a sequence containing all the values of the map, in the same @@ -1866,9 +1653,7 @@ public function union(Map $map): Map * * @link https://www.php.net/manual/en/ds-map.values.php */ - public function values(): Sequence - { - } + public function values(): Sequence {} /** * Creates a new map containing keys of the current instance as well as @@ -1883,9 +1668,7 @@ public function values(): Sequence * * @link https://www.php.net/manual/en/ds-map.xor.php */ - public function xor(Map $map): Map - { - } + public function xor(Map $map): Map {} } /** @@ -1912,18 +1695,14 @@ class Pair implements JsonSerializable * * @link https://php.net/manual/en/ds-pair.construct.php */ - public function __construct($key = null, $value = null) - { - } + public function __construct($key = null, $value = null) {} /** * Removes all values from the pair. * * @link https://php.net/manual/en/ds-pair.clear.php */ - public function clear() - { - } + public function clear() {} /** * Returns a shallow copy of the pair. @@ -1932,9 +1711,7 @@ public function clear() * * @link https://php.net/manual/en/ds-pair.copy.php */ - public function copy(): Pair - { - } + public function copy(): Pair {} /** * Returns whether the pair is empty. @@ -1943,9 +1720,7 @@ public function copy(): Pair * * @link https://php.net/manual/en/ds-pair.isempty.php */ - public function isEmpty(): bool - { - } + public function isEmpty(): bool {} /** * Converts the pair to an array. @@ -1957,9 +1732,7 @@ public function isEmpty(): bool * * @link https://php.net/manual/en/ds-pair.toarray.php */ - public function toArray(): array - { - } + public function toArray(): array {} /** * Specify data which should be serialized to JSON @@ -1967,10 +1740,7 @@ public function toArray(): array * @return mixed data which can be serialized by json_encode, * which is a value of any type other than a resource. */ - public function jsonSerialize() - { - } - + public function jsonSerialize() {} } /** @@ -1993,9 +1763,7 @@ class Set implements Collection * * @link https://php.net/manual/en/ds-set.construct.php */ - public function __construct(...$values) - { - } + public function __construct(...$values) {} /** * Adds all given values to the set that haven't already been added. @@ -2011,9 +1779,7 @@ public function __construct(...$values) * * @link https://php.net/manual/en/ds-set.add.php */ - public function add(...$values) - { - } + public function add(...$values) {} /** * Allocates enough memory for a required capacity. @@ -2028,9 +1794,7 @@ public function add(...$values) * * @link https://php.net/manual/en/ds-set.allocate.php */ - public function allocate(int $capacity) - { - } + public function allocate(int $capacity) {} /** * Determines if the set contains all values. @@ -2048,10 +1812,7 @@ public function allocate(int $capacity) * * @link https://php.net/manual/en/ds-set.contains.php */ - public function contains(...$values): bool - { - } - + public function contains(...$values): bool {} /** * Returns the current capacity. @@ -2059,17 +1820,13 @@ public function contains(...$values): bool * * @return int */ - public function capacity(): int - { - } + public function capacity(): int {} /** * Removes all values from the set. * @link https://www.php.net/manual/en/ds-set.clear.php */ - public function clear(): void - { - } + public function clear(): void {} /** * Count elements of an object @@ -2080,18 +1837,14 @@ public function clear(): void * The return value is cast to an integer. * @since 5.1 */ - public function count(): int - { - } + public function count(): int {} /** * Returns a shallow copy of the set. * @link https://www.php.net/manual/en/ds-set.copy.php * @return Set */ - public function copy(): Set - { - } + public function copy(): Set {} /** * Creates a new set using values that aren't in another set. @@ -2105,9 +1858,7 @@ public function copy(): Set * @return Set A new set containing all values that were not in the * other set. */ - public function diff(Set $set): Set - { - } + public function diff(Set $set): Set {} /** * Creates a new set using a callable to determine which values to @@ -2124,9 +1875,7 @@ public function diff(Set $set): Set * callback returned TRUE, or all values that convert to TRUE if a * callback was not provided. */ - public function filter(?callable $callback = null): Set - { - } + public function filter(?callable $callback = null): Set {} /** * Returns the first value in the set. @@ -2135,9 +1884,7 @@ public function filter(?callable $callback = null): Set * * @return mixed The first value in the set. */ - public function first() - { - } + public function first() {} /** * Returns the value at a given index. @@ -2148,9 +1895,7 @@ public function first() * * @return mixed The value at the requested index. */ - public function get(int $index) - { - } + public function get(int $index) {} /** * Creates a new set using values common to both the current instance @@ -2165,9 +1910,7 @@ public function get(int $index) * * @return Set The intersection of the current instance and another set. */ - public function intersect(Set $set): Set - { - } + public function intersect(Set $set): Set {} /** * Returns whether the set is empty. @@ -2175,9 +1918,7 @@ public function intersect(Set $set): Set * * @return bool */ - public function isEmpty(): bool - { - } + public function isEmpty(): bool {} /** * Joins all values together as a string using an optional separator @@ -2189,9 +1930,7 @@ public function isEmpty(): bool * * @return string */ - public function join(?string $glue = null): string - { - } + public function join(?string $glue = null): string {} /** * Returns the result of adding all given values to the set. @@ -2206,9 +1945,7 @@ public function join(?string $glue = null): string * effectively the same as adding the values to a copy, then returning * that copy. */ - public function merge($values): Set - { - } + public function merge($values): Set {} /** * Reduces the set to a single value using a callback function. @@ -2226,9 +1963,7 @@ public function merge($values): Set * * @return mixed The return value of the final callback. */ - public function reduce(callable $callback, $initial = null) - { - } + public function reduce(callable $callback, $initial = null) {} /** * Removes all given values from the set, ignoring any that are not in @@ -2238,18 +1973,14 @@ public function reduce(callable $callback, $initial = null) * * @param mixed ...$values The values to remove. */ - public function remove(...$values) - { - } + public function remove(...$values) {} /** * Reverses the set in-place. * * @link https://www.php.net/manual/en/ds-set.reverse.php */ - public function reverse() - { - } + public function reverse() {} /** * Returns a reversed copy of the set. @@ -2260,9 +1991,7 @@ public function reverse() * * @return Set A reversed copy of the set. */ - public function reversed(): Set - { - } + public function reversed(): Set {} /** * Returns a sub-set of a given range @@ -2281,9 +2010,7 @@ public function reversed(): Set * * @return Set A sub-set of the given range. */ - public function slice(int $index, ?int $length = null): Set - { - } + public function slice(int $index, ?int $length = null): Set {} /** * Returns the last value in the set. @@ -2294,9 +2021,7 @@ public function slice(int $index, ?int $length = null): Set * * @throws UnderflowException if empty. */ - public function last() - { - } + public function last() {} /** * Sorts the set in-place, using an optional comparator function. @@ -2315,9 +2040,7 @@ public function last() * * @link https://www.php.net/manual/en/ds-set.sort.php */ - public function sort(?callable $comparator = null) - { - } + public function sort(?callable $comparator = null) {} /** * Returns a sorted copy, using an optional comparator function. @@ -2340,9 +2063,7 @@ public function sort(?callable $comparator = null) * * @return Set Returns a sorted copy of the set. */ - public function sorted(?callable $comparator = null): Set - { - } + public function sorted(?callable $comparator = null): Set {} /** * Returns the sum of all values in the set. @@ -2355,9 +2076,7 @@ public function sorted(?callable $comparator = null): Set * @return float|int The sum of all the values in the set as either a * float or int depending on the values in the set. */ - public function sum(): float|int - { - } + public function sum(): float|int {} /** * Creates a new set that contains the values of the current instance as @@ -2372,9 +2091,7 @@ public function sum(): float|int * @return Set A new set containing all the values of the current * instance as well as another set. */ - public function union(Set $set): Set - { - } + public function union(Set $set): Set {} /** * Creates a new set using values in either the current instance or in @@ -2389,9 +2106,7 @@ public function union(Set $set): Set * @return Set A new set containing values in the current instance as * well as another set, but not in both. */ - public function xor(Set $set): Set - { - } + public function xor(Set $set): Set {} /** * Converts the set to an array. @@ -2400,9 +2115,7 @@ public function xor(Set $set): Set * @return array An array containing all the values in the same order as * the collection. */ - public function toArray(): array - { - } + public function toArray(): array {} /** * Specify data which should be serialized to JSON @@ -2411,11 +2124,7 @@ public function toArray(): array * which is a value of any type other than a resource. * @since 5.4 */ - public function jsonSerialize() - { - } - - + public function jsonSerialize() {} } /** @@ -2438,9 +2147,7 @@ class Stack implements Collection * @param array|Traversable|null $values A traversable object or an * array to use for the initial values. */ - public function __construct($values = null) - { - } + public function __construct($values = null) {} /** * Ensures that enough memory is allocated for a required capacity. This @@ -2454,9 +2161,7 @@ public function __construct($values = null) *

    Note: Capacity will stay the same if this value is less than or * equal to the current capacity.

    */ - public function allocate(int $capacity) - { - } + public function allocate(int $capacity) {} /** * Returns the current capacity. @@ -2465,17 +2170,13 @@ public function allocate(int $capacity) * * @return int The current capacity. */ - public function capacity(): int - { - } + public function capacity(): int {} /** * Removes all values from the stack. * @link https://www.php.net/manual/en/ds-stack.clear.php */ - public function clear(): void - { - } + public function clear(): void {} /** * Count elements of an object @@ -2486,27 +2187,21 @@ public function clear(): void * The return value is cast to an integer. * @since 5.1 */ - public function count(): int - { - } + public function count(): int {} /** * Returns a shallow copy of the collection. * @link https://www.php.net/manual/en/ds-stack.copy.php * @return Stack */ - public function copy(): Stack - { - } + public function copy(): Stack {} /** * Returns whether the collection is empty. * @link https://www.php.net/manual/en/ds-stack.isempty.php * @return bool */ - public function isEmpty(): bool - { - } + public function isEmpty(): bool {} /** * Converts the collection to an array. @@ -2515,9 +2210,7 @@ public function isEmpty(): bool * @return array An array containing all the values in the same order as * the collection. */ - public function toArray(): array - { - } + public function toArray(): array {} /** * Specify data which should be serialized to JSON @@ -2526,9 +2219,7 @@ public function toArray(): array * which is a value of any type other than a resource. * @since 5.4 */ - public function jsonSerialize() - { - } + public function jsonSerialize() {} /** * Returns the value at the top of the stack, but does not remove it. @@ -2539,9 +2230,7 @@ public function jsonSerialize() * * @throws UnderflowException */ - public function peek() - { - } + public function peek() {} /** * Removes and returns the value at the top of the stack. @@ -2552,9 +2241,7 @@ public function peek() * * @throws UnderflowException */ - public function pop() - { - } + public function pop() {} /** * Pushes values onto the stack. @@ -2563,9 +2250,7 @@ public function pop() * * @param array $values The values to push onto the stack. */ - public function push(...$values) - { - } + public function push(...$values) {} } /** @@ -2588,9 +2273,7 @@ class Queue implements Collection * @param array|Traversable|null $values A traversable object or an * array to use for the initial values. */ - public function __construct($values = null) - { - } + public function __construct($values = null) {} /** * Ensures that enough memory is allocated for a required capacity. This @@ -2604,9 +2287,7 @@ public function __construct($values = null) *

    Note: Capacity will stay the same if this value is less than or * equal to the current capacity.

    */ - public function allocate(int $capacity) - { - } + public function allocate(int $capacity) {} /** * Returns the current capacity. @@ -2615,17 +2296,13 @@ public function allocate(int $capacity) * * @return int The current capacity. */ - public function capacity(): int - { - } + public function capacity(): int {} /** * Removes all values from the queue. * @link https://www.php.net/manual/en/ds-queue.clear.php */ - public function clear(): void - { - } + public function clear(): void {} /** * Count elements of an object @@ -2636,27 +2313,21 @@ public function clear(): void * The return value is cast to an integer. * @since 5.1 */ - public function count(): int - { - } + public function count(): int {} /** * Returns a shallow copy of the collection. * @link https://www.php.net/manual/en/ds-queue.copy.php * @return Stack */ - public function copy(): Stack - { - } + public function copy(): Stack {} /** * Returns whether the collection is empty. * @link https://www.php.net/manual/en/ds-queue.isempty.php * @return bool */ - public function isEmpty(): bool - { - } + public function isEmpty(): bool {} /** * Converts the collection to an array. @@ -2665,9 +2336,7 @@ public function isEmpty(): bool * @return array An array containing all the values in the same order as * the collection. */ - public function toArray(): array - { - } + public function toArray(): array {} /** * Specify data which should be serialized to JSON @@ -2676,9 +2345,7 @@ public function toArray(): array * which is a value of any type other than a resource. * @since 5.4 */ - public function jsonSerialize() - { - } + public function jsonSerialize() {} /** * Returns the value at the top of the queue, but does not remove it. @@ -2689,9 +2356,7 @@ public function jsonSerialize() * * @throws UnderflowException */ - public function peek() - { - } + public function peek() {} /** * Removes and returns the value at the top of the queue. @@ -2702,9 +2367,7 @@ public function peek() * * @throws UnderflowException */ - public function pop() - { - } + public function pop() {} /** * Pushes values onto the queue. @@ -2713,9 +2376,7 @@ public function pop() * * @param array $values The values to push onto the queue. */ - public function push(...$values) - { - } + public function push(...$values) {} } /** @@ -2731,7 +2392,7 @@ public function push(...$values) */ class PriorityQueue implements Collection { - const MIN_CAPACITY = 8; + public const MIN_CAPACITY = 8; /** * Count elements of an object @@ -2742,35 +2403,27 @@ class PriorityQueue implements Collection * The return value is cast to an integer. * @since 5.1 */ - public function count(): int - { - } + public function count(): int {} /** * Removes all values from the collection. * @link https://www.php.net/manual/en/ds-collection.clear.php */ - public function clear(): void - { - } + public function clear(): void {} /** * Returns a shallow copy of the collection. * @link https://www.php.net/manual/en/ds-collection.copy.php * @return Collection */ - public function copy() - { - } + public function copy() {} /** * Returns whether the collection is empty. * @link https://www.php.net/manual/en/ds-collection.isempty.php * @return bool */ - public function isEmpty(): bool - { - } + public function isEmpty(): bool {} /** * Pushes a value with a given priority into the queue. @@ -2778,9 +2431,7 @@ public function isEmpty(): bool * @param mixed $value * @param int $priority */ - public function push($value, int $priority) - { - } + public function push($value, int $priority) {} /** * Converts the collection to an array. @@ -2789,9 +2440,7 @@ public function push($value, int $priority) * @return array An array containing all the values in the same order as * the collection. */ - public function toArray(): array - { - } + public function toArray(): array {} /** * Specify data which should be serialized to JSON @@ -2800,10 +2449,5 @@ public function toArray(): array * which is a value of any type other than a resource. * @since 5.4 */ - public function jsonSerialize() - { - } - - + public function jsonSerialize() {} } -} diff --git a/enchant/enchant.php b/enchant/enchant.php index 516d5ed89..e181b4aaa 100644 --- a/enchant/enchant.php +++ b/enchant/enchant.php @@ -9,7 +9,7 @@ * @link https://php.net/manual/en/function.enchant-broker-init.php * @return resource|false|EnchantBroker a broker resource on success or FALSE. */ -function enchant_broker_init () {} +function enchant_broker_init() {} /** * Free the broker resource and its dictionaries @@ -21,7 +21,7 @@ function enchant_broker_init () {} * @since 5.3 */ #[Deprecated(reason: "Unset the object instead", since: '8.0')] -function enchant_broker_free ($broker) {} +function enchant_broker_free($broker) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -32,7 +32,7 @@ function enchant_broker_free ($broker) {} *

    * @return string|false Return the msg string if an error was found or FALSE */ -function enchant_broker_get_error ($broker) {} +function enchant_broker_get_error($broker) {} /** * Set the directory path for a given backend @@ -43,7 +43,7 @@ function enchant_broker_get_error ($broker) {} * @return bool TRUE on success or FALSE on failure. */ #[Deprecated(since: '8.0', reason: 'Relying on this function is highly discouraged.')] -function enchant_broker_set_dict_path ($broker, int $dict_type, string $value) {} +function enchant_broker_set_dict_path($broker, int $dict_type, string $value) {} /** * Get the directory path for a given backend @@ -53,7 +53,7 @@ function enchant_broker_set_dict_path ($broker, int $dict_type, string $value) { * @return string|false */ #[Deprecated(since: '8.0', reason: 'Relying on this function is highly discouraged.')] -function enchant_broker_get_dict_path ($broker, $dict_type) {} +function enchant_broker_get_dict_path($broker, $dict_type) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 1.0.1)
    @@ -64,7 +64,7 @@ function enchant_broker_get_dict_path ($broker, $dict_type) {} *

    * @return array Returns an array of available dictionaries with their details. */ -function enchant_broker_list_dicts ($broker) {} +function enchant_broker_list_dicts($broker) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -78,7 +78,7 @@ function enchant_broker_list_dicts ($broker) {} *

    * @return resource|false|EnchantDictionary a dictionary resource on success or FALSE on failure. */ -function enchant_broker_request_dict ($broker, $tag) {} +function enchant_broker_request_dict($broker, $tag) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -92,7 +92,7 @@ function enchant_broker_request_dict ($broker, $tag) {} *

    * @return resource|false|EnchantDictionary a dictionary resource on success or FALSE on failure. */ -function enchant_broker_request_pwl_dict ($broker, $filename) {} +function enchant_broker_request_pwl_dict($broker, $filename) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -103,8 +103,8 @@ function enchant_broker_request_pwl_dict ($broker, $filename) {} *

    * @return bool TRUE on success or FALSE on failure. */ -#[Deprecated("Unset the object instead",since: '8.0')] -function enchant_broker_free_dict ($dict) {} +#[Deprecated("Unset the object instead", since: '8.0')] +function enchant_broker_free_dict($dict) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -118,7 +118,7 @@ function enchant_broker_free_dict ($dict) {} *

    * @return bool TRUE when the tag exist or FALSE when not. */ -function enchant_broker_dict_exists ($broker, $tag) {} +function enchant_broker_dict_exists($broker, $tag) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -137,7 +137,7 @@ function enchant_broker_dict_exists ($broker, $tag) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function enchant_broker_set_ordering ($broker, $tag, $ordering) {} +function enchant_broker_set_ordering($broker, $tag, $ordering) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0)
    @@ -148,7 +148,7 @@ function enchant_broker_set_ordering ($broker, $tag, $ordering) {} *

    * @return array|false */ -function enchant_broker_describe ($broker) {} +function enchant_broker_describe($broker) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -162,7 +162,7 @@ function enchant_broker_describe ($broker) {} *

    * @return bool TRUE if the word is spelled correctly, FALSE if not. */ -function enchant_dict_check ($dict, $word) {} +function enchant_dict_check($dict, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -176,7 +176,7 @@ function enchant_dict_check ($dict, $word) {} *

    * @return array|false Will returns an array of suggestions if the word is bad spelled. */ -function enchant_dict_suggest ($dict, $word) {} +function enchant_dict_suggest($dict, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -196,7 +196,7 @@ function enchant_dict_suggest ($dict, $word) {} replacement: 'enchant_dict_add(%parameter0%, %parameter1%)', since: '8.0' )] -function enchant_dict_add_to_personal ($dict, $word) {} +function enchant_dict_add_to_personal($dict, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -210,7 +210,7 @@ function enchant_dict_add_to_personal ($dict, $word) {} *

    * @return void */ -function enchant_dict_add_to_session ($dict, $word) {} +function enchant_dict_add_to_session($dict, $word) {} /** * (PHP 8)
    @@ -225,7 +225,7 @@ function enchant_dict_add_to_session ($dict, $word) {} * @return void * @since 8.0 */ -function enchant_dict_add ($dictionary, $word) {} +function enchant_dict_add($dictionary, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -245,7 +245,7 @@ function enchant_dict_add ($dictionary, $word) {} replacement: 'enchant_dict_is_added(%parameter0%, %parameter1%)', since: '8.0' )] -function enchant_dict_is_in_session ($dict, $word) {} +function enchant_dict_is_in_session($dict, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -262,7 +262,7 @@ function enchant_dict_is_in_session ($dict, $word) {} *

    * @return void */ -function enchant_dict_store_replacement ($dict, $mis, $cor) {} +function enchant_dict_store_replacement($dict, $mis, $cor) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -273,7 +273,7 @@ function enchant_dict_store_replacement ($dict, $mis, $cor) {} *

    * @return string|false the error message as string or FALSE if no error occurred. */ -function enchant_dict_get_error ($dict) {} +function enchant_dict_get_error($dict) {} /** * (PHP 8)
    @@ -288,7 +288,7 @@ function enchant_dict_get_error ($dict) {} * @return bool TRUE if the word exists or FALSE * @since 8.0 */ -function enchant_dict_is_added ($dictionary, $word) {} +function enchant_dict_is_added($dictionary, $word) {} /** * (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )
    @@ -299,7 +299,7 @@ function enchant_dict_is_added ($dictionary, $word) {} *

    * @return array Returns the details of the dictionary. */ -function enchant_dict_describe ($dict) {} +function enchant_dict_describe($dict) {} /** * (PHP 5 >= 5.3.0, PECL enchant:0.2.0-1.0.1)
    @@ -317,23 +317,18 @@ function enchant_dict_describe ($dict) {} *

    * @return bool TRUE if the word is correctly spelled or FALSE */ -function enchant_dict_quick_check ($dict, $word, ?array &$suggestions = null) {} +function enchant_dict_quick_check($dict, $word, ?array &$suggestions = null) {} /** * @deprecated 8.0 */ -define ('ENCHANT_MYSPELL', 1); +define('ENCHANT_MYSPELL', 1); /** * @deprecated 8.0 */ -define ('ENCHANT_ISPELL', 2); +define('ENCHANT_ISPELL', 2); -final class EnchantBroker -{ -} +final class EnchantBroker {} -final class EnchantDictionary -{ -} +final class EnchantDictionary {} // End of enchant v.1.1.0 -?> diff --git a/event/event.php b/event/event.php index ea58335ac..f3a17d282 100644 --- a/event/event.php +++ b/event/event.php @@ -22,12 +22,12 @@ final class Event #[Immutable] public $pending; - const ET = 32; - const PERSIST = 16; - const READ = 2; - const WRITE = 4; - const SIGNAL = 8; - const TIMEOUT = 1; + public const ET = 32; + public const PERSIST = 16; + public const READ = 2; + public const WRITE = 4; + public const SIGNAL = 8; + public const TIMEOUT = 1; /** * __construct. @@ -42,9 +42,7 @@ final class Event * @see https://php.net/manual/en/event.construct.php */ #[Pure] - public function __construct(EventBase $base, $fd, int $what, callable $cb, $arg = null) - { - } + public function __construct(EventBase $base, $fd, int $what, callable $cb, $arg = null) {} /** * add. @@ -56,9 +54,7 @@ public function __construct(EventBase $base, $fd, int $what, callable $cb, $arg * * @see https://php.net/manual/en/event.add.php */ - public function add(float $timeout = -1): bool - { - } + public function add(float $timeout = -1): bool {} /** * addSignal. @@ -70,9 +66,7 @@ public function add(float $timeout = -1): bool * * @see https://php.net/manual/en/event.addsignal.php */ - public function addSignal(float $timeout = -1): bool - { - } + public function addSignal(float $timeout = -1): bool {} /** * addTimer. @@ -84,9 +78,7 @@ public function addSignal(float $timeout = -1): bool * * @see https://php.net/manual/en/event.addtimer.php */ - public function addTimer(float $timeout = -1): bool - { - } + public function addTimer(float $timeout = -1): bool {} /** * del. @@ -96,9 +88,7 @@ public function addTimer(float $timeout = -1): bool * * @see https://php.net/manual/en/event.del.php */ - public function del(): bool - { - } + public function del(): bool {} /** * delSignal. @@ -108,9 +98,7 @@ public function del(): bool * * @see https://php.net/manual/en/event.delsignal.php */ - public function delSignal(): bool - { - } + public function delSignal(): bool {} /** * delTimer. @@ -120,9 +108,7 @@ public function delSignal(): bool * * @see https://php.net/manual/en/event.deltimer.php */ - public function delTimer(): bool - { - } + public function delTimer(): bool {} /** * free. @@ -130,9 +116,7 @@ public function delTimer(): bool * * @see https://php.net/manual/en/event.free.php */ - public function free(): void - { - } + public function free(): void {} /** * getSupportedMethods. @@ -142,9 +126,7 @@ public function free(): void * * @see https://php.net/manual/en/event.getsupportedmethods.php */ - public static function getSupportedMethods(): array - { - } + public static function getSupportedMethods(): array {} /** * pending. @@ -156,9 +138,7 @@ public static function getSupportedMethods(): array * * @see https://php.net/manual/en/event.pending.php */ - public function pending(int $flags): bool - { - } + public function pending(int $flags): bool {} /** * set. @@ -174,9 +154,7 @@ public function pending(int $flags): bool * * @see https://php.net/manual/en/event.set.php */ - public function set(EventBase $base, $fd, int $what, callable $cb, $arg): bool - { - } + public function set(EventBase $base, $fd, int $what, callable $cb, $arg): bool {} /** * setPriority. @@ -187,9 +165,7 @@ public function set(EventBase $base, $fd, int $what, callable $cb, $arg): bool * * @see https://php.net/manual/en/event.setpriority.php */ - public function setPriority(int $priority): bool - { - } + public function setPriority(int $priority): bool {} /** * setTimer. @@ -203,9 +179,7 @@ public function setPriority(int $priority): bool * * @see https://php.net/manual/en/event.settimer.php */ - public function setTimer(EventBase $base, callable $cb, $arg): bool - { - } + public function setTimer(EventBase $base, callable $cb, $arg): bool {} /** * signal. @@ -220,9 +194,7 @@ public function setTimer(EventBase $base, callable $cb, $arg): bool * * @see https://php.net/manual/en/event.signal.php */ - public static function signal(EventBase $base, int $signum, callable $cb, $arg): Event - { - } + public static function signal(EventBase $base, int $signum, callable $cb, $arg): Event {} /** * timer. @@ -236,9 +208,7 @@ public static function signal(EventBase $base, int $signum, callable $cb, $arg): * * @see https://php.net/manual/en/event.timer.php */ - public static function timer(EventBase $base, callable $cb, $arg): Event - { - } + public static function timer(EventBase $base, callable $cb, $arg): Event {} } // The EventBase class @@ -255,14 +225,14 @@ public static function timer(EventBase $base, callable $cb, $arg): Event */ final class EventBase { - const LOOP_ONCE = 1; - const LOOP_NONBLOCK = 2; - const NOLOCK = 1; - const STARTUP_IOCP = 4; - const NO_CACHE_TIME = 8; - const EPOLL_USE_CHANGELIST = 16; - const IGNORE_ENV = 2; - const PRECISE_TIMER = 32; + public const LOOP_ONCE = 1; + public const LOOP_NONBLOCK = 2; + public const NOLOCK = 1; + public const STARTUP_IOCP = 4; + public const NO_CACHE_TIME = 8; + public const EPOLL_USE_CHANGELIST = 16; + public const IGNORE_ENV = 2; + public const PRECISE_TIMER = 32; /** * __construct. @@ -272,9 +242,7 @@ final class EventBase * * @see https://php.net/manual/en/eventbase.construct.php */ - public function __construct(?EventConfig $cfg = null) - { - } + public function __construct(?EventConfig $cfg = null) {} /** * dispatch. @@ -282,9 +250,7 @@ public function __construct(?EventConfig $cfg = null) * * @see https://php.net/manual/en/eventbase.dispatch.php */ - public function dispatch(): void - { - } + public function dispatch(): void {} /** * exit. @@ -296,9 +262,7 @@ public function dispatch(): void * * @see https://php.net/manual/en/eventbase.exit.php */ - public function exit(float $timeout = 0.0): bool - { - } + public function exit(float $timeout = 0.0): bool {} /** * free. @@ -306,9 +270,7 @@ public function exit(float $timeout = 0.0): bool * * @see https://php.net/manual/en/eventbase.free.php */ - public function free(): void - { - } + public function free(): void {} /** * getFeatures. @@ -319,9 +281,7 @@ public function free(): void * @see https://php.net/manual/en/eventbase.getfeatures.php */ #[Pure] - public function getFeatures(): int - { - } + public function getFeatures(): int {} /** * getMethod. @@ -332,9 +292,7 @@ public function getFeatures(): int * @see https://php.net/manual/en/eventbase.getmethod.php */ #[Pure] - public function getMethod(): string - { - } + public function getMethod(): string {} /** * getTimeOfDayCached. @@ -345,9 +303,7 @@ public function getMethod(): string * @see https://php.net/manual/en/eventbase.gettimeofdaycached.php */ #[Pure] - public function getTimeOfDayCached(): float - { - } + public function getTimeOfDayCached(): float {} /** * gotExit. @@ -358,9 +314,7 @@ public function getTimeOfDayCached(): float * @see https://php.net/manual/en/eventbase.gotexit.php */ #[Pure] - public function gotExit(): bool - { - } + public function gotExit(): bool {} /** * gotStop. @@ -371,9 +325,7 @@ public function gotExit(): bool * @see https://php.net/manual/en/eventbase.gotstop.php */ #[Pure] - public function gotStop(): bool - { - } + public function gotStop(): bool {} /** * loop. @@ -385,9 +337,7 @@ public function gotStop(): bool * * @see https://php.net/manual/en/eventbase.loop.php */ - public function loop(int $flags = -1): bool - { - } + public function loop(int $flags = -1): bool {} /** * priorityInit. @@ -399,9 +349,7 @@ public function loop(int $flags = -1): bool * * @see https://php.net/manual/en/eventbase.priorityinit.php */ - public function priorityInit(int $n_priorities): bool - { - } + public function priorityInit(int $n_priorities): bool {} /** * reInit. @@ -411,9 +359,7 @@ public function priorityInit(int $n_priorities): bool * * @see https://php.net/manual/en/eventbase.reinit.php */ - public function reInit(): bool - { - } + public function reInit(): bool {} /** * Tells event_base to resume previously stopped event @@ -421,9 +367,7 @@ public function reInit(): bool * @since libevent version 2.1.2-alpha * @see https://bitbucket.org/osmanov/pecl-event/src/8e5ab7303f3ef7827b71f31904a51b3f26dd1ac2/php8/classes/base.c#lines-387 */ - public function resume():bool - { - } + public function resume(): bool {} /** * stop. @@ -433,9 +377,7 @@ public function resume():bool * * @see https://php.net/manual/en/eventbase.stop.php */ - public function stop(): bool - { - } + public function stop(): bool {} /** * Updates cache time @@ -443,10 +385,7 @@ public function stop(): bool * @since libevent 2.1.1-alpha * @see https://bitbucket.org/osmanov/pecl-event/src/8e5ab7303f3ef7827b71f31904a51b3f26dd1ac2/php8/classes/base.c#lines-343 */ - public function updateCacheTime(): bool - { - - } + public function updateCacheTime(): bool {} } // The EventBuffer class @@ -474,13 +413,13 @@ class EventBuffer #[Immutable] public $contiguous_space; - const EOL_ANY = 0; - const EOL_CRLF = 1; - const EOL_CRLF_STRICT = 2; - const EOL_LF = 3; - const EOL_NUL = 4; - const PTR_SET = 0; - const PTR_ADD = 1; + public const EOL_ANY = 0; + public const EOL_CRLF = 1; + public const EOL_CRLF_STRICT = 2; + public const EOL_LF = 3; + public const EOL_NUL = 4; + public const PTR_SET = 0; + public const PTR_ADD = 1; /** * __construct. @@ -489,9 +428,7 @@ class EventBuffer * @see https://php.net/manual/en/eventbuffer.construct.php */ #[Pure] - public function __construct() - { - } + public function __construct() {} /** * add. @@ -503,9 +440,7 @@ public function __construct() * * @see https://php.net/manual/en/eventbuffer.add.php */ - public function add(string $data): bool - { - } + public function add(string $data): bool {} /** * addBuffer. @@ -517,9 +452,7 @@ public function add(string $data): bool * * @see https://php.net/manual/en/eventbuffer.addbuffer.php */ - public function addBuffer(EventBuffer $buf): bool - { - } + public function addBuffer(EventBuffer $buf): bool {} /** * appendFrom. @@ -532,9 +465,7 @@ public function addBuffer(EventBuffer $buf): bool * * @see https://php.net/manual/en/eventbuffer.appendfrom.php */ - public function appendFrom(EventBuffer $buf, int $len): int - { - } + public function appendFrom(EventBuffer $buf, int $len): int {} /** * copyout. @@ -547,9 +478,7 @@ public function appendFrom(EventBuffer $buf, int $len): int * * @see https://php.net/manual/en/eventbuffer.copyout.php */ - public function copyout(string &$data, int $max_bytes): int - { - } + public function copyout(string &$data, int $max_bytes): int {} /** * drain. @@ -561,18 +490,14 @@ public function copyout(string &$data, int $max_bytes): int * * @see https://php.net/manual/en/eventbuffer.drain.php */ - public function drain(int $len): bool - { - } + public function drain(int $len): bool {} /** * enableLocking. * * @see https://php.net/manual/en/eventbuffer.enablelocking.php */ - public function enableLocking(): void - { - } + public function enableLocking(): void {} /** * expand. @@ -584,9 +509,7 @@ public function enableLocking(): void * * @see https://php.net/manual/en/eventbuffer.expand.php */ - public function expand(int $len): bool - { - } + public function expand(int $len): bool {} /** * freeze. @@ -598,9 +521,7 @@ public function expand(int $len): bool * * @see https://php.net/manual/en/eventbuffer.freeze.php */ - public function freeze(bool $at_front): bool - { - } + public function freeze(bool $at_front): bool {} /** * lock. @@ -608,9 +529,7 @@ public function freeze(bool $at_front): bool * * @see https://php.net/manual/en/eventbuffer.lock.php */ - public function lock(): void - { - } + public function lock(): void {} /** * prepend. @@ -622,9 +541,7 @@ public function lock(): void * * @see https://php.net/manual/en/eventbuffer.prepend.php */ - public function prepend(string $data): bool - { - } + public function prepend(string $data): bool {} /** * prependBuffer. @@ -636,9 +553,7 @@ public function prepend(string $data): bool * * @see https://php.net/manual/en/eventbuffer.prependbuffer.php */ - public function prependBuffer(EventBuffer $buf): bool - { - } + public function prependBuffer(EventBuffer $buf): bool {} /** * pullup. @@ -650,9 +565,7 @@ public function prependBuffer(EventBuffer $buf): bool * * @see https://php.net/manual/en/eventbuffer.pullup.php */ - public function pullup(int $size): ?string - { - } + public function pullup(int $size): ?string {} /** * read. @@ -662,9 +575,7 @@ public function pullup(int $size): ?string * * @return null | string */ - public function read(int $max_bytes): ?string - { - } + public function read(int $max_bytes): ?string {} /** * readFrom. @@ -677,9 +588,7 @@ public function read(int $max_bytes): ?string * * @see https://php.net/manual/en/eventbuffer.readfrom.php */ - public function readFrom($fd, int $howmuch): int - { - } + public function readFrom($fd, int $howmuch): int {} /** * readLine. @@ -691,9 +600,7 @@ public function readFrom($fd, int $howmuch): int * * @see https://php.net/manual/en/eventbuffer.readline.php */ - public function readLine(int $eol_style): ?string - { - } + public function readLine(int $eol_style): ?string {} /** * search. @@ -707,9 +614,7 @@ public function readLine(int $eol_style): ?string * * @see https://php.net/manual/en/eventbuffer.search.php */ - public function search(string $what, int $start = 1, int $end = 1): int|false - { - } + public function search(string $what, int $start = 1, int $end = 1): int|false {} /** * searchEol. @@ -722,9 +627,7 @@ public function search(string $what, int $start = 1, int $end = 1): int|false * * @see https://php.net/manual/en/eventbuffer.searcheol.php */ - public function searchEol(int $start = 1, int $eol_style = EventBuffer::EOL_ANY): int|false - { - } + public function searchEol(int $start = 1, int $eol_style = EventBuffer::EOL_ANY): int|false {} /** * substr. @@ -737,9 +640,7 @@ public function searchEol(int $start = 1, int $eol_style = EventBuffer::EOL_ANY) * * @see https://php.net/manual/en/eventbuffer.substr.php */ - public function substr(int $start, int $length): string - { - } + public function substr(int $start, int $length): string {} /** * unfreeze. @@ -751,9 +652,7 @@ public function substr(int $start, int $length): string * * @see https://php.net/manual/en/eventbuffer.unfreeze.php */ - public function unfreeze(bool $at_front): bool - { - } + public function unfreeze(bool $at_front): bool {} /** * unlock. @@ -763,9 +662,7 @@ public function unfreeze(bool $at_front): bool * * @see https://php.net/manual/en/eventbuffer.unlock.php */ - public function unlock(): void - { - } + public function unlock(): void {} /** * write. @@ -778,9 +675,7 @@ public function unlock(): void * * @see https://php.net/manual/en/eventbuffer.write.php */ - public function write(mixed $fd, int $howmuch): int|false - { - } + public function write(mixed $fd, int $howmuch): int|false {} } // The EventBufferEvent class @@ -819,19 +714,19 @@ final class EventBufferEvent #[Immutable] public $output; - const READING = 1; - const WRITING = 2; - const EOF = 16; - const ERROR = 32; - const TIMEOUT = 64; - const CONNECTED = 128; - const OPT_CLOSE_ON_FREE = 1; - const OPT_THREADSAFE = 2; - const OPT_DEFER_CALLBACKS = 4; - const OPT_UNLOCK_CALLBACKS = 8; - const SSL_OPEN = 0; - const SSL_CONNECTING = 1; - const SSL_ACCEPTING = 2; + public const READING = 1; + public const WRITING = 2; + public const EOF = 16; + public const ERROR = 32; + public const TIMEOUT = 64; + public const CONNECTED = 128; + public const OPT_CLOSE_ON_FREE = 1; + public const OPT_THREADSAFE = 2; + public const OPT_DEFER_CALLBACKS = 4; + public const OPT_UNLOCK_CALLBACKS = 8; + public const SSL_OPEN = 0; + public const SSL_CONNECTING = 1; + public const SSL_ACCEPTING = 2; /** * __construct. @@ -847,9 +742,7 @@ final class EventBufferEvent * @see https://php.net/manual/en/eventbufferevent.construct.php */ #[Pure] - public function __construct(EventBase $base, $socket = null, int $options = 0, ?callable $readcb = null, ?callable $writecb = null, ?callable $eventcb = null) - { - } + public function __construct(EventBase $base, $socket = null, int $options = 0, ?callable $readcb = null, ?callable $writecb = null, ?callable $eventcb = null) {} /** * close. @@ -857,9 +750,7 @@ public function __construct(EventBase $base, $socket = null, int $options = 0, ? * @return bool * @see https://php.net/manual/en/eventbufferevent.close.php */ - public function close(): bool - { - } + public function close(): bool {} /** * connect. @@ -871,9 +762,7 @@ public function close(): bool * * @see https://php.net/manual/en/eventbufferevent.connect.php */ - public function connect(string $addr): bool - { - } + public function connect(string $addr): bool {} /** * connectHost. @@ -888,9 +777,7 @@ public function connect(string $addr): bool * * @see https://php.net/manual/en/eventbufferevent.connecthost.php */ - public function connectHost(?EventDnsBase $dns_base, string $hostname, int $port, int $family = EventUtil::AF_UNSPEC): bool - { - } + public function connectHost(?EventDnsBase $dns_base, string $hostname, int $port, int $family = EventUtil::AF_UNSPEC): bool {} /** * createSslFilter @@ -902,9 +789,7 @@ public function connectHost(?EventDnsBase $dns_base, string $hostname, int $port * @return EventBufferEvent * @see https://bitbucket.org/osmanov/pecl-event/src/8e5ab7303f3ef7827b71f31904a51b3f26dd1ac2/php8/classes/buffer_event.c#lines-1025 */ - public function createSslFilter(EventBufferEvent $underlying, EventSslContext $ctx, int $state, int $options = 0): EventBufferEvent - { - } + public function createSslFilter(EventBufferEvent $underlying, EventSslContext $ctx, int $state, int $options = 0): EventBufferEvent {} /** * createPair. @@ -917,9 +802,7 @@ public function createSslFilter(EventBufferEvent $underlying, EventSslContext $c * * @see https://php.net/manual/en/eventbufferevent.createpair.php */ - public static function createPair(EventBase $base, int $options = 0): array - { - } + public static function createPair(EventBase $base, int $options = 0): array {} /** * disable. @@ -931,9 +814,7 @@ public static function createPair(EventBase $base, int $options = 0): array * * @see https://php.net/manual/en/eventbufferevent.disable.php */ - public function disable(int $events): bool - { - } + public function disable(int $events): bool {} /** * enable. @@ -945,9 +826,7 @@ public function disable(int $events): bool * * @see https://php.net/manual/en/eventbufferevent.enable.php */ - public function enable(int $events): bool - { - } + public function enable(int $events): bool {} /** * free. @@ -955,9 +834,7 @@ public function enable(int $events): bool * * @see https://php.net/manual/en/eventbufferevent.free.php */ - public function free(): void - { - } + public function free(): void {} /** * getDnsErrorString. @@ -968,9 +845,7 @@ public function free(): void * @see https://php.net/manual/en/eventbufferevent.getdnserrorstring.php */ #[Pure] - public function getDnsErrorString(): string - { - } + public function getDnsErrorString(): string {} /** * getEnabled. @@ -981,9 +856,7 @@ public function getDnsErrorString(): string * @see https://php.net/manual/en/eventbufferevent.getenabled.php */ #[Pure] - public function getEnabled(): int - { - } + public function getEnabled(): int {} /** * getInput. @@ -994,9 +867,7 @@ public function getEnabled(): int * @see https://php.net/manual/en/eventbufferevent.getinput.php */ #[Pure] - public function getInput(): EventBuffer - { - } + public function getInput(): EventBuffer {} /** * getOutput. @@ -1007,9 +878,7 @@ public function getInput(): EventBuffer * @see https://php.net/manual/en/eventbufferevent.getoutput.php */ #[Pure] - public function getOutput(): EventBuffer - { - } + public function getOutput(): EventBuffer {} /** * read. @@ -1021,9 +890,7 @@ public function getOutput(): EventBuffer * * @see https://php.net/manual/en/eventbufferevent.read.php */ - public function read(int $size): ?string - { - } + public function read(int $size): ?string {} /** * readBuffer. @@ -1035,9 +902,7 @@ public function read(int $size): ?string * * @see https://php.net/manual/en/eventbufferevent.readbuffer.php */ - public function readBuffer(EventBuffer $buf): bool - { - } + public function readBuffer(EventBuffer $buf): bool {} /** * setCallbacks. @@ -1050,9 +915,7 @@ public function readBuffer(EventBuffer $buf): bool * * @see https://php.net/manual/en/eventbufferevent.setcallbacks.php */ - public function setCallbacks(callable $readcb, callable $writecb, callable $eventcb, mixed $arg = null): void - { - } + public function setCallbacks(callable $readcb, callable $writecb, callable $eventcb, mixed $arg = null): void {} /** * setPriority. @@ -1064,9 +927,7 @@ public function setCallbacks(callable $readcb, callable $writecb, callable $even * * @see https://php.net/manual/en/eventbufferevent.setpriority.php */ - public function setPriority(int $priority): bool - { - } + public function setPriority(int $priority): bool {} /** * setTimeouts. @@ -1079,9 +940,7 @@ public function setPriority(int $priority): bool * * @see https://php.net/manual/en/eventbufferevent.settimeouts.php */ - public function setTimeouts(float $timeout_read, float $timeout_write): bool - { - } + public function setTimeouts(float $timeout_read, float $timeout_write): bool {} /** * setWatermark. @@ -1093,9 +952,7 @@ public function setTimeouts(float $timeout_read, float $timeout_write): bool * * @see https://php.net/manual/en/eventbufferevent.setwatermark.php */ - public function setWatermark(int $events, int $lowmark, int $highmark): void - { - } + public function setWatermark(int $events, int $lowmark, int $highmark): void {} /** * sslError. @@ -1105,9 +962,7 @@ public function setWatermark(int $events, int $lowmark, int $highmark): void * * @see https://secure.php.net/manual/en/eventbufferevent.sslerror.php */ - public function sslError(): false|string - { - } + public function sslError(): false|string {} /** * sslFilter. @@ -1123,9 +978,7 @@ public function sslError(): false|string * * @see https://secure.php.net/manual/en/eventbufferevent.sslfilter.php */ - public static function sslFilter(EventBase $base, EventBufferEvent $underlying, EventSslContext $ctx, int $state, int $options = 0): EventBufferEvent - { - } + public static function sslFilter(EventBase $base, EventBufferEvent $underlying, EventSslContext $ctx, int $state, int $options = 0): EventBufferEvent {} /** * sslGetCipherInfo. @@ -1135,9 +988,7 @@ public static function sslFilter(EventBase $base, EventBufferEvent $underlying, * * @see https://secure.php.net/manual/en/eventbufferevent.sslgetcipherinfo.php */ - public function sslGetCipherInfo(): string|false - { - } + public function sslGetCipherInfo(): string|false {} /** * sslGetCipherName. @@ -1147,9 +998,7 @@ public function sslGetCipherInfo(): string|false * * @see https://secure.php.net/manual/en/eventbufferevent.sslgetciphername.php */ - public function sslGetCipherName(): string|false - { - } + public function sslGetCipherName(): string|false {} /** * sslGetCipherVersion. @@ -1159,9 +1008,7 @@ public function sslGetCipherName(): string|false * * @see https://secure.php.net/manual/en/eventbufferevent.sslgetcipherversion.php */ - public function sslGetCipherVersion(): string|false - { - } + public function sslGetCipherVersion(): string|false {} /** * sslGetProtocol. @@ -1171,9 +1018,7 @@ public function sslGetCipherVersion(): string|false * * @see https://secure.php.net/manual/en/eventbufferevent.sslgetprotocol.php */ - public function sslGetProtocol(): string - { - } + public function sslGetProtocol(): string {} /** * sslRenegotiate. @@ -1181,9 +1026,7 @@ public function sslGetProtocol(): string * * @see https://secure.php.net/manual/en/eventbufferevent.sslrenegotiate.php */ - public function sslRenegotiate(): void - { - } + public function sslRenegotiate(): void {} /** * sslSocket. @@ -1199,9 +1042,7 @@ public function sslRenegotiate(): void * * @see https://secure.php.net/manual/en/eventbufferevent.sslsocket.php */ - public static function sslSocket(EventBase $base, mixed $socket, EventSslContext $ctx, int $state, int $options = 0): EventBufferEvent - { - } + public static function sslSocket(EventBase $base, mixed $socket, EventSslContext $ctx, int $state, int $options = 0): EventBufferEvent {} /** * write. @@ -1213,9 +1054,7 @@ public static function sslSocket(EventBase $base, mixed $socket, EventSslContext * * @see https://secure.php.net/manual/en/eventbufferevent.write.php */ - public function write(string $data): bool - { - } + public function write(string $data): bool {} /** * writeBuffer. @@ -1227,9 +1066,7 @@ public function write(string $data): bool * * @see https://secure.php.net/manual/en/eventbufferevent.writebuffer.php */ - public function writeBuffer(EventBuffer $buf): bool - { - } + public function writeBuffer(EventBuffer $buf): bool {} } // The EventConfig class @@ -1244,9 +1081,9 @@ public function writeBuffer(EventBuffer $buf): bool */ final class EventConfig { - const FEATURE_ET = 1; - const FEATURE_O1 = 2; - const FEATURE_FDS = 4; + public const FEATURE_ET = 1; + public const FEATURE_O1 = 2; + public const FEATURE_FDS = 4; /** * __construct. @@ -1255,9 +1092,7 @@ final class EventConfig * @see https://secure.php.net/manual/en/eventconfig.construct.php */ #[Pure] - public function __construct() - { - } + public function __construct() {} /** * avoidMethod. @@ -1269,9 +1104,7 @@ public function __construct() * * @see https://secure.php.net/manual/en/eventconfig.avoidmethod.php */ - public function avoidMethod(string $method): bool - { - } + public function avoidMethod(string $method): bool {} /** * requireFeatures. @@ -1283,9 +1116,7 @@ public function avoidMethod(string $method): bool * * @see https://secure.php.net/manual/en/eventconfig.requirefeatures.php */ - public function requireFeatures(int $feature): bool - { - } + public function requireFeatures(int $feature): bool {} /** * Sets one or more flags to configure what parts of the eventual EventBase @@ -1294,9 +1125,7 @@ public function requireFeatures(int $feature): bool * @return bool * @since libevent version 2.0.2-alpha */ - public function setFlags(int $flags): bool - { - } + public function setFlags(int $flags): bool {} /** * setMaxDispatchInterval. @@ -1308,9 +1137,7 @@ public function setFlags(int $flags): bool * * @see https://secure.php.net/manual/en/eventconfig.setmaxdispatchinterval.php */ - public function setMaxDispatchInterval(int $max_interval, int $max_callbacks, int $min_priority): void - { - } + public function setMaxDispatchInterval(int $max_interval, int $max_callbacks, int $min_priority): void {} } // The EventDnsBase class @@ -1325,11 +1152,11 @@ public function setMaxDispatchInterval(int $max_interval, int $max_callbacks, in */ final class EventDnsBase { - const OPTION_SEARCH = 1; - const OPTION_NAMESERVERS = 2; - const OPTION_MISC = 4; - const OPTION_HOSTSFILE = 8; - const OPTIONS_ALL = 15; + public const OPTION_SEARCH = 1; + public const OPTION_NAMESERVERS = 2; + public const OPTION_MISC = 4; + public const OPTION_HOSTSFILE = 8; + public const OPTIONS_ALL = 15; /** * __construct. @@ -1341,9 +1168,7 @@ final class EventDnsBase * @see https://secure.php.net/manual/en/eventdnsbase.construct.php */ #[Pure] - public function __construct(EventBase $base, bool $initialize) - { - } + public function __construct(EventBase $base, bool $initialize) {} /** * addNameserverIp. @@ -1355,9 +1180,7 @@ public function __construct(EventBase $base, bool $initialize) * * @see https://secure.php.net/manual/en/eventdnsbase.addnameserverip.php */ - public function addNameserverIp(string $ip): bool - { - } + public function addNameserverIp(string $ip): bool {} /** * addSearch. @@ -1367,9 +1190,7 @@ public function addNameserverIp(string $ip): bool * * @see https://secure.php.net/manual/en/eventdnsbase.addsearch.php */ - public function addSearch(string $domain): void - { - } + public function addSearch(string $domain): void {} /** * clearSearch. @@ -1377,9 +1198,7 @@ public function addSearch(string $domain): void * * @see https://secure.php.net/manual/en/eventdnsbase.clearsearch.php */ - public function clearSearch(): void - { - } + public function clearSearch(): void {} /** * countNameservers. @@ -1389,9 +1208,7 @@ public function clearSearch(): void * * @see https://secure.php.net/manual/en/eventdnsbase.countnameservers.php */ - public function countNameservers(): int - { - } + public function countNameservers(): int {} /** * loadHosts. @@ -1403,9 +1220,7 @@ public function countNameservers(): int * * @see https://secure.php.net/manual/en/eventdnsbase.loadhosts.php */ - public function loadHosts(string $hosts): bool - { - } + public function loadHosts(string $hosts): bool {} /** * parseResolvConf. @@ -1418,9 +1233,7 @@ public function loadHosts(string $hosts): bool * * @see https://secure.php.net/manual/en/eventdnsbase.parseresolvconf.php */ - public function parseResolvConf(int $flags, string $filename): bool - { - } + public function parseResolvConf(int $flags, string $filename): bool {} /** * setOption. @@ -1433,9 +1246,7 @@ public function parseResolvConf(int $flags, string $filename): bool * * @see https://secure.php.net/manual/en/eventdnsbase.setoption.php */ - public function setOption(string $option, string $value): bool - { - } + public function setOption(string $option, string $value): bool {} /** * setSearchNdots. @@ -1447,9 +1258,7 @@ public function setOption(string $option, string $value): bool * * @see https://secure.php.net/manual/en/eventdnsbase.setsearchndots.php */ - public function setSearchNdots(int $ndots): void - { - } + public function setSearchNdots(int $ndots): void {} } // The EventHttp class @@ -1473,9 +1282,7 @@ final class EventHttp * * @see https://secure.php.net/manual/en/eventhttp.construct.php */ - public function __construct(EventBase $base, ?EventSslContext $ctx = null) - { - } + public function __construct(EventBase $base, ?EventSslContext $ctx = null) {} /** * accept. @@ -1487,9 +1294,7 @@ public function __construct(EventBase $base, ?EventSslContext $ctx = null) * * @see https://secure.php.net/manual/en/eventhttp.accept.php */ - public function accept(mixed $socket): bool - { - } + public function accept(mixed $socket): bool {} /** * addServerAlias. @@ -1501,9 +1306,7 @@ public function accept(mixed $socket): bool * * @see https://secure.php.net/manual/en/eventhttp.addserveralias.php */ - public function addServerAlias(string $alias): bool - { - } + public function addServerAlias(string $alias): bool {} /** * bind. @@ -1515,9 +1318,7 @@ public function addServerAlias(string $alias): bool * * @see https://secure.php.net/manual/en/eventhttp.bind.php */ - public function bind(string $address, int $port): bool - { - } + public function bind(string $address, int $port): bool {} /** * removeServerAlias. @@ -1529,9 +1330,7 @@ public function bind(string $address, int $port): bool * * @see https://secure.php.net/manual/en/eventhttp.removeserveralias.php */ - public function removeServerAlias(string $alias): bool - { - } + public function removeServerAlias(string $alias): bool {} /** * setAllowedMethods. @@ -1541,9 +1340,7 @@ public function removeServerAlias(string $alias): bool * * @see https://secure.php.net/manual/en/eventhttp.setallowedmethods.php */ - public function setAllowedMethods(int $methods): void - { - } + public function setAllowedMethods(int $methods): void {} /** * setCallback. @@ -1555,9 +1352,7 @@ public function setAllowedMethods(int $methods): void * @return bool * @see https://secure.php.net/manual/en/eventhttp.setcallback.php */ - public function setCallback(string $path, string $cb, ?string $arg = null): bool - { - } + public function setCallback(string $path, string $cb, ?string $arg = null): bool {} /** * setDefaultCallback. @@ -1568,9 +1363,7 @@ public function setCallback(string $path, string $cb, ?string $arg = null): bool * * @see https://secure.php.net/manual/en/eventhttp.setdefaultcallback.php */ - public function setDefaultCallback(string $cb, ?string $arg = null): void - { - } + public function setDefaultCallback(string $cb, ?string $arg = null): void {} /** * setMaxBodySize. @@ -1580,9 +1373,7 @@ public function setDefaultCallback(string $cb, ?string $arg = null): void * * @see https://secure.php.net/manual/en/eventhttp.setmaxbodysize.php */ - public function setMaxBodySize(int $value): void - { - } + public function setMaxBodySize(int $value): void {} /** * setMaxHeadersSize. @@ -1592,9 +1383,7 @@ public function setMaxBodySize(int $value): void * * @see https://secure.php.net/manual/en/eventhttp.setmaxheaderssize.php */ - public function setMaxHeadersSize(int $value): void - { - } + public function setMaxHeadersSize(int $value): void {} /** * setTimeout. @@ -1604,9 +1393,7 @@ public function setMaxHeadersSize(int $value): void * * @see https://secure.php.net/manual/en/eventhttp.settimeout.php */ - public function setTimeout(int $value): void - { - } + public function setTimeout(int $value): void {} } // The EventHttpConnection class @@ -1634,9 +1421,7 @@ class EventHttpConnection * @see https://secure.php.net/manual/en/eventhttpconnection.construct.php */ #[Pure] - public function __construct(EventBase $base, EventDnsBase $dns_base, string $address, int $port, ?EventSslContext $ctx = null) - { - } + public function __construct(EventBase $base, EventDnsBase $dns_base, string $address, int $port, ?EventSslContext $ctx = null) {} /** * getBase. @@ -1646,9 +1431,7 @@ public function __construct(EventBase $base, EventDnsBase $dns_base, string $add * * @see https://secure.php.net/manual/en/eventhttpconnection.getbase.php */ - public function getBase(): false|EventBase - { - } + public function getBase(): false|EventBase {} /** * getPeer. @@ -1659,9 +1442,7 @@ public function getBase(): false|EventBase * * @see https://secure.php.net/manual/en/eventhttpconnection.getpeer.php */ - public function getPeer(string &$address, int &$port): void - { - } + public function getPeer(string &$address, int &$port): void {} /** * makeRequest. @@ -1675,9 +1456,7 @@ public function getPeer(string &$address, int &$port): void * * @see https://secure.php.net/manual/en/eventhttpconnection.makerequest.php */ - public function makeRequest(EventHttpRequest $req, int $type, string $uri): bool - { - } + public function makeRequest(EventHttpRequest $req, int $type, string $uri): bool {} /** * setCloseCallback. @@ -1688,9 +1467,7 @@ public function makeRequest(EventHttpRequest $req, int $type, string $uri): bool * * @see https://secure.php.net/manual/en/eventhttpconnection.setclosecallback.php */ - public function setCloseCallback(callable $callback, mixed $data = null): void - { - } + public function setCloseCallback(callable $callback, mixed $data = null): void {} /** * setLocalAddress. @@ -1700,9 +1477,7 @@ public function setCloseCallback(callable $callback, mixed $data = null): void * * @see https://secure.php.net/manual/en/eventhttpconnection.setlocaladdress.php */ - public function setLocalAddress(string $address): void - { - } + public function setLocalAddress(string $address): void {} /** * setLocalPort. @@ -1712,9 +1487,7 @@ public function setLocalAddress(string $address): void * * @see https://secure.php.net/manual/en/eventhttpconnection.setlocalport.php */ - public function setLocalPort(int $port): void - { - } + public function setLocalPort(int $port): void {} /** * setMaxBodySize. @@ -1724,9 +1497,7 @@ public function setLocalPort(int $port): void * * @see https://secure.php.net/manual/en/eventhttpconnection.setmaxbodysize.php */ - public function setMaxBodySize(string $max_size): void - { - } + public function setMaxBodySize(string $max_size): void {} /** * setMaxHeadersSize. @@ -1736,9 +1507,7 @@ public function setMaxBodySize(string $max_size): void * * @see https://secure.php.net/manual/en/eventhttpconnection.setmaxheaderssize.php */ - public function setMaxHeadersSize(string $max_size): void - { - } + public function setMaxHeadersSize(string $max_size): void {} /** * setRetries. @@ -1748,9 +1517,7 @@ public function setMaxHeadersSize(string $max_size): void * * @see https://secure.php.net/manual/en/eventhttpconnection.setretries.php */ - public function setRetries(int $retries): void - { - } + public function setRetries(int $retries): void {} /** * setTimeout. @@ -1760,25 +1527,23 @@ public function setRetries(int $retries): void * * @see https://secure.php.net/manual/en/eventhttpconnection.settimeout.php */ - public function setTimeout(int $timeout): void - { - } + public function setTimeout(int $timeout): void {} } // The EventHttpRequest class class EventHttpRequest { - const CMD_GET = 1; - const CMD_POST = 2; - const CMD_HEAD = 4; - const CMD_PUT = 8; - const CMD_DELETE = 16; - const CMD_OPTIONS = 32; - const CMD_TRACE = 64; - const CMD_CONNECT = 128; - const CMD_PATCH = 256; - const INPUT_HEADER = 1; - const OUTPUT_HEADER = 2; + public const CMD_GET = 1; + public const CMD_POST = 2; + public const CMD_HEAD = 4; + public const CMD_PUT = 8; + public const CMD_DELETE = 16; + public const CMD_OPTIONS = 32; + public const CMD_TRACE = 64; + public const CMD_CONNECT = 128; + public const CMD_PATCH = 256; + public const INPUT_HEADER = 1; + public const OUTPUT_HEADER = 2; /** * EventHttpRequest constructor. @@ -1789,101 +1554,58 @@ class EventHttpRequest public function __construct( callable $callback, $data = null - ) { - } + ) {} - public function addHeader(string $key, string $value, int $type): bool - { - } + public function addHeader(string $key, string $value, int $type): bool {} - public function cancel():void - { - } + public function cancel(): void {} - public function clearHeaders():void - { - } + public function clearHeaders(): void {} - public function closeConnection():void - { - } + public function closeConnection(): void {} - public function findHeader(string $key, string $type): ?string - { - } + public function findHeader(string $key, string $type): ?string {} - public function free() - { - } + public function free() {} #[Pure] - public function getCommand(): int - { - } + public function getCommand(): int {} #[Pure] - public function getConnection(): ?EventHttpConnection - { - } + public function getConnection(): ?EventHttpConnection {} #[Pure] - public function getHost(): string - { - } + public function getHost(): string {} #[Pure] - public function getInputBuffer(): EventBuffer - { - } + public function getInputBuffer(): EventBuffer {} #[Pure] - public function getInputHeaders(): array - { - } + public function getInputHeaders(): array {} #[Pure] - public function getOutputBuffer(): EventBuffer - { - } + public function getOutputBuffer(): EventBuffer {} #[Pure] - public function getOutputHeaders(): array - { - } + public function getOutputHeaders(): array {} #[Pure] - public function getResponseCode(): int - { - } + public function getResponseCode(): int {} #[Pure] - public function getUri(): string - { - } + public function getUri(): string {} - public function removeHeader(string $key, int $type): bool - { - } + public function removeHeader(string $key, int $type): bool {} - public function sendError(int $error, ?string $reason = null) - { - } + public function sendError(int $error, ?string $reason = null) {} - public function sendReply(int $code, string $reason, ?EventBuffer $buf = null) - { - } + public function sendReply(int $code, string $reason, ?EventBuffer $buf = null) {} - public function sendReplyChunk(EventBuffer $buf) - { - } + public function sendReplyChunk(EventBuffer $buf) {} - public function sendReplyEnd():void - { - } + public function sendReplyEnd(): void {} - public function sendReplyStart(int $code, string $reason):void - { - } + public function sendReplyStart(int $code, string $reason): void {} } // The EventListener class @@ -1904,13 +1626,13 @@ final class EventListener #[Immutable] public $fd; - const OPT_LEAVE_SOCKETS_BLOCKING = 1; - const OPT_CLOSE_ON_FREE = 2; - const OPT_CLOSE_ON_EXEC = 4; - const OPT_REUSEABLE = 8; - const OPT_THREADSAFE = 16; - const OPT_DISABLED = 32; - const OPT_DEFERRED_ACCEPT = 64; + public const OPT_LEAVE_SOCKETS_BLOCKING = 1; + public const OPT_CLOSE_ON_FREE = 2; + public const OPT_CLOSE_ON_EXEC = 4; + public const OPT_REUSEABLE = 8; + public const OPT_THREADSAFE = 16; + public const OPT_DISABLED = 32; + public const OPT_DEFERRED_ACCEPT = 64; /** * __construct. @@ -1925,9 +1647,7 @@ final class EventListener * * @see https://secure.php.net/manual/en/eventlistener.construct.php */ - public function __construct(EventBase $base, callable $cb, mixed $data, int $flags, int $backlog, mixed $target) - { - } + public function __construct(EventBase $base, callable $cb, mixed $data, int $flags, int $backlog, mixed $target) {} /** * disable. @@ -1937,9 +1657,7 @@ public function __construct(EventBase $base, callable $cb, mixed $data, int $fla * * @see https://secure.php.net/manual/en/eventlistener.disable.php */ - public function disable(): bool - { - } + public function disable(): bool {} /** * enable. @@ -1949,13 +1667,9 @@ public function disable(): bool * * @see https://secure.php.net/manual/en/eventlistener.enable.php */ - public function enable(): bool - { - } + public function enable(): bool {} - public function free(): void - { - } + public function free(): void {} /** * getBase. @@ -1963,9 +1677,7 @@ public function free(): void * * @see https://secure.php.net/manual/en/eventlistener.getbase.php */ - public function getBase(): void - { - } + public function getBase(): void {} /** * getSocketName. @@ -1978,9 +1690,7 @@ public function getBase(): void * * @see https://secure.php.net/manual/en/eventlistener.getsocketname.php */ - public static function getSocketName(string &$address, int &$port): bool - { - } + public static function getSocketName(string &$address, int &$port): bool {} /** * setCallback. @@ -1991,9 +1701,7 @@ public static function getSocketName(string &$address, int &$port): bool * * @see https://secure.php.net/manual/en/eventlistener.setcallback.php */ - public function setCallback(callable $cb, mixed $arg = null): void - { - } + public function setCallback(callable $cb, mixed $arg = null): void {} /** * setErrorCallback. @@ -2003,9 +1711,7 @@ public function setCallback(callable $cb, mixed $arg = null): void * * @see https://secure.php.net/manual/en/eventlistener.seterrorcallback.php */ - public function setErrorCallback(string $cb): void - { - } + public function setErrorCallback(string $cb): void {} } // The EventSslContext class @@ -2021,35 +1727,35 @@ public function setErrorCallback(string $cb): void */ final class EventSslContext { - const SSLv2_CLIENT_METHOD = 1; - const SSLv3_CLIENT_METHOD = 2; - const SSLv23_CLIENT_METHOD = 3; - const TLS_CLIENT_METHOD = 4; - const SSLv2_SERVER_METHOD = 5; - const SSLv3_SERVER_METHOD = 6; - const SSLv23_SERVER_METHOD = 7; - const TLS_SERVER_METHOD = 8; - const TLSv11_CLIENT_METHOD = 9; - const TLSv11_SERVER_METHOD = 10; - const TLSv12_CLIENT_METHOD = 11; - const TLSv12_SERVER_METHOD = 12; - const OPT_LOCAL_CERT = 1; - const OPT_LOCAL_PK = 2; - const OPT_PASSPHRASE = 3; - const OPT_CA_FILE = 4; - const OPT_CA_PATH = 5; - const OPT_ALLOW_SELF_SIGNED = 6; - const OPT_VERIFY_PEER = 7; - const OPT_VERIFY_DEPTH = 8; - const OPT_CIPHERS = 9; - const OPT_NO_SSLv2 = 10; - const OPT_NO_SSLv3 =11; - const OPT_NO_TLSv1= 12; - const OPT_NO_TLSv1_1 = 13; - const OPT_NO_TLSv1_2 = 14; - const OPT_CIPHER_SERVER_PREFERENCE = 15; - const OPT_REQUIRE_CLIENT_CERT = 16; - const OPT_VERIFY_CLIENT_ONCE = 17; + public const SSLv2_CLIENT_METHOD = 1; + public const SSLv3_CLIENT_METHOD = 2; + public const SSLv23_CLIENT_METHOD = 3; + public const TLS_CLIENT_METHOD = 4; + public const SSLv2_SERVER_METHOD = 5; + public const SSLv3_SERVER_METHOD = 6; + public const SSLv23_SERVER_METHOD = 7; + public const TLS_SERVER_METHOD = 8; + public const TLSv11_CLIENT_METHOD = 9; + public const TLSv11_SERVER_METHOD = 10; + public const TLSv12_CLIENT_METHOD = 11; + public const TLSv12_SERVER_METHOD = 12; + public const OPT_LOCAL_CERT = 1; + public const OPT_LOCAL_PK = 2; + public const OPT_PASSPHRASE = 3; + public const OPT_CA_FILE = 4; + public const OPT_CA_PATH = 5; + public const OPT_ALLOW_SELF_SIGNED = 6; + public const OPT_VERIFY_PEER = 7; + public const OPT_VERIFY_DEPTH = 8; + public const OPT_CIPHERS = 9; + public const OPT_NO_SSLv2 = 10; + public const OPT_NO_SSLv3 = 11; + public const OPT_NO_TLSv1 = 12; + public const OPT_NO_TLSv1_1 = 13; + public const OPT_NO_TLSv1_2 = 14; + public const OPT_CIPHER_SERVER_PREFERENCE = 15; + public const OPT_REQUIRE_CLIENT_CERT = 16; + public const OPT_VERIFY_CLIENT_ONCE = 17; /** * @var string @@ -2071,27 +1777,21 @@ final class EventSslContext * @see https://secure.php.net/manual/en/eventsslcontext.construct.php */ #[Pure] - public function __construct(int $method, array $options) - { - } + public function __construct(int $method, array $options) {} /** * Sets minimum supported protocol version for the SSL context * @param int $proto * @return bool */ - public function setMinProtoVersion(int $proto): bool - { - } + public function setMinProtoVersion(int $proto): bool {} /** * Sets max supported protocol version for the SSL context. * @param int $proto * @return bool */ - public function setMaxProtoVersion(int $proto): bool - { - } + public function setMaxProtoVersion(int $proto): bool {} } // The EventUtil class @@ -2106,33 +1806,33 @@ public function setMaxProtoVersion(int $proto): bool */ final class EventUtil { - const AF_INET = 2; - const AF_INET6 = 10; - const AF_UNIX = 1; - const AF_UNSPEC = 0; - const LIBEVENT_VERSION_NUMBER = 33559808; - const SO_DEBUG = 1; - const SO_REUSEADDR = 2; - const SO_KEEPALIVE = 9; - const SO_DONTROUTE = 5; - const SO_LINGER = 13; - const SO_BROADCAST = 6; - const SO_OOBINLINE = 10; - const SO_SNDBUF = 7; - const SO_RCVBUF = 8; - const SO_SNDLOWAT = 19; - const SO_RCVLOWAT = 18; - const SO_SNDTIMEO = 21; - const SO_RCVTIMEO = 20; - const SO_TYPE = 3; - const SO_ERROR = 4; - const SOL_SOCKET = 1; - const SOL_TCP = 6; - const SOL_UDP = 17; - const SOCK_RAW = 3; - const TCP_NODELAY = 1; - const IPPROTO_IP = 0; - const IPPROTO_IPV6 = 41; + public const AF_INET = 2; + public const AF_INET6 = 10; + public const AF_UNIX = 1; + public const AF_UNSPEC = 0; + public const LIBEVENT_VERSION_NUMBER = 33559808; + public const SO_DEBUG = 1; + public const SO_REUSEADDR = 2; + public const SO_KEEPALIVE = 9; + public const SO_DONTROUTE = 5; + public const SO_LINGER = 13; + public const SO_BROADCAST = 6; + public const SO_OOBINLINE = 10; + public const SO_SNDBUF = 7; + public const SO_RCVBUF = 8; + public const SO_SNDLOWAT = 19; + public const SO_RCVLOWAT = 18; + public const SO_SNDTIMEO = 21; + public const SO_RCVTIMEO = 20; + public const SO_TYPE = 3; + public const SO_ERROR = 4; + public const SOL_SOCKET = 1; + public const SOL_TCP = 6; + public const SOL_UDP = 17; + public const SOCK_RAW = 3; + public const TCP_NODELAY = 1; + public const IPPROTO_IP = 0; + public const IPPROTO_IPV6 = 41; /** * __construct. @@ -2146,9 +1846,7 @@ abstract public function __construct(); * @param mixed $socket * @return resource */ - public function createSocket(mixed $socket) - { - } + public function createSocket(mixed $socket) {} /** * getLastSocketErrno. @@ -2160,9 +1858,7 @@ public function createSocket(mixed $socket) * * @see https://secure.php.net/manual/en/eventutil.getlastsocketerrno.php */ - public static function getLastSocketErrno($socket = null): int | false - { - } + public static function getLastSocketErrno($socket = null): int|false {} /** * getLastSocketError. @@ -2174,9 +1870,7 @@ public static function getLastSocketErrno($socket = null): int | false * * @see https://secure.php.net/manual/en/eventutil.getlastsocketerror.php */ - public static function getLastSocketError(mixed $socket): string|false - { - } + public static function getLastSocketError(mixed $socket): string|false {} /** * getSocketFd. @@ -2188,9 +1882,7 @@ public static function getLastSocketError(mixed $socket): string|false * * @see https://secure.php.net/manual/en/eventutil.getsocketfd.php */ - public static function getSocketFd(mixed $socket): int - { - } + public static function getSocketFd(mixed $socket): int {} /** * getSocketName. @@ -2204,9 +1896,7 @@ public static function getSocketFd(mixed $socket): int * * @see https://secure.php.net/manual/en/eventutil.getsocketname.php */ - public static function getSocketName(mixed $socket, string &$address, int &$port): bool - { - } + public static function getSocketName(mixed $socket, string &$address, int &$port): bool {} /** * setSocketOption. @@ -2221,9 +1911,7 @@ public static function getSocketName(mixed $socket, string &$address, int &$port * * @see https://secure.php.net/manual/en/eventutil.setsocketoption.php */ - public static function setSocketOption(mixed $socket, int $level, int $optname, int|array $optval): bool - { - } + public static function setSocketOption(mixed $socket, int $level, int $optname, int|array $optval): bool {} /** * sslRandPoll. @@ -2231,7 +1919,5 @@ public static function setSocketOption(mixed $socket, int $level, int $optname, * * @see https://secure.php.net/manual/en/eventutil.sslrandpoll.php */ - public static function sslRandPoll(): bool - { - } + public static function sslRandPoll(): bool {} } diff --git a/exif/exif.php b/exif/exif.php index d7928fca1..ed12944c5 100644 --- a/exif/exif.php +++ b/exif/exif.php @@ -77,8 +77,7 @@ * those headers. If no data can be returned, * exif_read_data will return FALSE. */ -function exif_read_data ($file, ?string $required_sections, bool $as_arrays = false, bool $read_thumbnail = false): array|false -{} +function exif_read_data($file, ?string $required_sections, bool $as_arrays = false, bool $read_thumbnail = false): array|false {} /** * Alias of exif_read_data @@ -90,7 +89,7 @@ function exif_read_data ($file, ?string $required_sections, bool $as_arrays = fa * @removed 8.0 */ #[Deprecated(replacement: "exif_read_data(%parametersList%)", since: "7.2")] -function read_exif_data ($filename, $sections = null, $arrays = false, $thumbnail = false) {} +function read_exif_data($filename, $sections = null, $arrays = false, $thumbnail = false) {} /** * Get the header name for an index @@ -101,7 +100,7 @@ function read_exif_data ($filename, $sections = null, $arrays = false, $thumbnai * @return string|false the header name, or FALSE if index is * not a defined EXIF tag id. */ -function exif_tagname (int $index): string|false {} +function exif_tagname(int $index): string|false {} /** * Retrieve the embedded thumbnail of a TIFF or JPEG image @@ -124,7 +123,7 @@ function exif_tagname (int $index): string|false {} * @return string|false the embedded thumbnail, or FALSE if the image contains no * thumbnail. */ -function exif_thumbnail ($file, &$width, &$height, &$image_type): string|false {} +function exif_thumbnail($file, &$width, &$height, &$image_type): string|false {} /** * Determine the type of an image @@ -140,9 +139,8 @@ function exif_thumbnail ($file, &$width, &$height, &$image_type): string|false { * and return FALSE if it is unable to read enough bytes from the file to * determine the image type. */ -function exif_imagetype (string $filename): int|false {} +function exif_imagetype(string $filename): int|false {} -define ('EXIF_USE_MBSTRING', 1); +define('EXIF_USE_MBSTRING', 1); // End of exif v.1.4 $Id$ -?> diff --git a/expect/expect.php b/expect/expect.php index aa865c3d7..8205276eb 100644 --- a/expect/expect.php +++ b/expect/expect.php @@ -41,8 +41,8 @@ */ function expect_popen(string $command) { - unset($command); - return false; + unset($command); + return false; } /** @@ -92,8 +92,8 @@ function expect_popen(string $command) * @since PECL expect >= 0.1.0 * @link https://www.php.net/manual/en/function.expect-expectl.php */ -function expect_expectl($expect, array $cases, array &$match = array()): int +function expect_expectl($expect, array $cases, array &$match = []): int { - unset ($expect, $cases, $match); - return 0; + unset($expect, $cases, $match); + return 0; } diff --git a/fann/fann.php b/fann/fann.php index 5c11be98d..b52cf0aa9 100644 --- a/fann/fann.php +++ b/fann/fann.php @@ -29,36 +29,28 @@ class FANNConnection * @param int $to_neuron * @param float $weight */ - public function __construct($from_neuron, $to_neuron, $weight) - { - } + public function __construct($from_neuron, $to_neuron, $weight) {} /** * Returns the postions of starting neuron. * * @return int The postions of starting neuron. */ - public function getFromNeuron() - { - } + public function getFromNeuron() {} /** * Returns the postions of terminating neuron * * @return int The postions of terminating neuron. */ - public function getToNeuron() - { - } + public function getToNeuron() {} /** * Returns the connection weight * * @return void The connection weight. */ - public function getWeight() - { - } + public function getWeight() {} /** * Sets the connections weight @@ -67,9 +59,7 @@ public function getWeight() * * @return bool */ - public function setWeight($weight) - { - } + public function setWeight($weight) {} } /** @@ -84,9 +74,7 @@ public function setWeight($weight) * * @return bool */ -function fann_cascadetrain_on_data($ann, $data, $max_neurons, $neurons_between_reports, $desired_error) -{ -} +function fann_cascadetrain_on_data($ann, $data, $max_neurons, $neurons_between_reports, $desired_error) {} /** * Trains on an entire dataset read from file, for a period of time using the Cascade2 training algorithm. @@ -100,9 +88,7 @@ function fann_cascadetrain_on_data($ann, $data, $max_neurons, $neurons_between_r * * @return bool */ -function fann_cascadetrain_on_file($ann, $filename, $max_neurons, $neurons_between_reports, $desired_error) -{ -} +function fann_cascadetrain_on_file($ann, $filename, $max_neurons, $neurons_between_reports, $desired_error) {} /** * Clears scaling parameters @@ -112,9 +98,7 @@ function fann_cascadetrain_on_file($ann, $filename, $max_neurons, $neurons_betwe * * @return bool */ -function fann_clear_scaling_params($ann) -{ -} +function fann_clear_scaling_params($ann) {} /** * Creates a copy of a fann structure @@ -124,9 +108,7 @@ function fann_clear_scaling_params($ann) * * @return resource|false Returns a copy of neural network resource on success, or false on error */ -function fann_copy($ann) -{ -} +function fann_copy($ann) {} /** * Constructs a backpropagation neural network from a configuration file @@ -136,9 +118,7 @@ function fann_copy($ann) * * @return resource|false */ -function fann_create_from_file($configuration_file) -{ -} +function fann_create_from_file($configuration_file) {} /** * Creates a standard backpropagation neural network which is not fully connectected and has shortcut connections @@ -149,9 +129,7 @@ function fann_create_from_file($configuration_file) * * @return resource|false Returns a neural network resource on success, or false on error. */ -function fann_create_shortcut_array($num_layers, $layers) -{ -} +function fann_create_shortcut_array($num_layers, $layers) {} /** * Creates a standard backpropagation neural network which is not fully connectected and has shortcut connections @@ -163,9 +141,7 @@ function fann_create_shortcut_array($num_layers, $layers) * * @return resource|false Returns a neural network resource on success, or false on error. */ -function fann_create_shortcut($num_layers, $num_neurons1, $num_neurons2, ...$_) -{ -} +function fann_create_shortcut($num_layers, $num_neurons1, $num_neurons2, ...$_) {} /** * Creates a standard backpropagation neural network, which is not fully connected using an array of layer sizes @@ -177,9 +153,7 @@ function fann_create_shortcut($num_layers, $num_neurons1, $num_neurons2, ...$_) * * @return resource|false Returns a neural network resource on success, or false on error. */ -function fann_create_sparse_array($connection_rate, $num_layers, $layers) -{ -} +function fann_create_sparse_array($connection_rate, $num_layers, $layers) {} /** * Creates a standard backpropagation neural network, which is not fully connected @@ -193,9 +167,7 @@ function fann_create_sparse_array($connection_rate, $num_layers, $layers) * * @return resource|false Returns a neural network resource on success, or false on error. */ -function fann_create_sparse($connection_rate, $num_layers, $num_neurons1, $num_neurons2, ...$_) -{ -} +function fann_create_sparse($connection_rate, $num_layers, $num_neurons1, $num_neurons2, ...$_) {} /** * Creates a standard fully connected backpropagation neural network using an array of layer sizes @@ -206,9 +178,7 @@ function fann_create_sparse($connection_rate, $num_layers, $num_neurons1, $num_n * * @return resource|false Returns a neural network resource on success, or false on error. */ -function fann_create_standard_array($num_layers, $layers) -{ -} +function fann_create_standard_array($num_layers, $layers) {} /** * Creates a standard fully connected backpropagation neural network @@ -221,9 +191,7 @@ function fann_create_standard_array($num_layers, $layers) * * @return resource|false Returns a neural network resource on success, or false on error. */ -function fann_create_standard($num_layers, $num_neurons1, $num_neurons2, ...$_) -{ -} +function fann_create_standard($num_layers, $num_neurons1, $num_neurons2, ...$_) {} /** * Creates the training data struct from a user supplied function @@ -236,9 +204,7 @@ function fann_create_standard($num_layers, $num_neurons1, $num_neurons2, ...$_) * * @return resource|false */ -function fann_create_train_from_callback($num_data, $num_input, $num_output, $user_function) -{ -} +function fann_create_train_from_callback($num_data, $num_input, $num_output, $user_function) {} /** * Creates an empty training data struct @@ -250,9 +216,7 @@ function fann_create_train_from_callback($num_data, $num_input, $num_output, $us * * @return resource|false */ -function fann_create_train($num_data, $num_input, $num_output) -{ -} +function fann_create_train($num_data, $num_input, $num_output) {} /** * Scale data in input vector after get it from ann based on previously calculated parameters @@ -263,9 +227,7 @@ function fann_create_train($num_data, $num_input, $num_output) * * @return bool */ -function fann_descale_input($ann, $input_vector) -{ -} +function fann_descale_input($ann, $input_vector) {} /** * Scale data in output vector after get it from ann based on previously calculated parameters @@ -276,9 +238,7 @@ function fann_descale_input($ann, $input_vector) * * @return bool */ -function fann_descale_output($ann, $output_vector) -{ -} +function fann_descale_output($ann, $output_vector) {} /** * Descale input and output data based on previously calculated parameters @@ -289,9 +249,7 @@ function fann_descale_output($ann, $output_vector) * * @return bool */ -function fann_descale_train($ann, $train_data) -{ -} +function fann_descale_train($ann, $train_data) {} /** * Destroys the entire network and properly freeing all the associated memory @@ -301,9 +259,7 @@ function fann_descale_train($ann, $train_data) * * @return bool */ -function fann_destroy($ann) -{ -} +function fann_destroy($ann) {} /** * Destructs the training data @@ -313,9 +269,7 @@ function fann_destroy($ann) * * @return bool */ -function fann_destroy_train($train_data) -{ -} +function fann_destroy_train($train_data) {} /** * Returns an exact copy of a fann train data @@ -325,9 +279,7 @@ function fann_destroy_train($train_data) * * @return resource|false */ -function fann_duplicate_train_data($data) -{ -} +function fann_duplicate_train_data($data) {} /** * Returns the activation function @@ -339,9 +291,7 @@ function fann_duplicate_train_data($data) * * @return int|false constant or -1 if the neuron is not defined in the neural network, or false on error. */ -function fann_get_activation_function($ann, $layer, $neuron) -{ -} +function fann_get_activation_function($ann, $layer, $neuron) {} /** * Returns the activation steepness for supplied neuron and layer number @@ -353,9 +303,7 @@ function fann_get_activation_function($ann, $layer, $neuron) * * @return float|false The activation steepness for the neuron or -1 if the neuron is not defined in the neural network, or false on error. */ -function fann_get_activation_steepness($ann, $layer, $neuron) -{ -} +function fann_get_activation_steepness($ann, $layer, $neuron) {} /** * Get the number of bias in each layer in the network @@ -365,9 +313,7 @@ function fann_get_activation_steepness($ann, $layer, $neuron) * * @return array An array of numbers of bias in each layer */ -function fann_get_bias_array($ann) -{ -} +function fann_get_bias_array($ann) {} /** * Returns the bit fail limit used during training @@ -377,9 +323,7 @@ function fann_get_bias_array($ann) * * @return float|false The bit fail limit, or false on error. */ -function fann_get_bit_fail_limit($ann) -{ -} +function fann_get_bit_fail_limit($ann) {} /** * The number of fail bits @@ -389,9 +333,7 @@ function fann_get_bit_fail_limit($ann) * * @return int|false The number of bits fail, or false on error. */ -function fann_get_bit_fail($ann) -{ -} +function fann_get_bit_fail($ann) {} /** * Returns the number of cascade activation functions @@ -401,9 +343,7 @@ function fann_get_bit_fail($ann) * * @return int|false The number of cascade activation functions, or false on error. */ -function fann_get_cascade_activation_functions_count($ann) -{ -} +function fann_get_cascade_activation_functions_count($ann) {} /** * Returns the cascade activation functions @@ -413,9 +353,7 @@ function fann_get_cascade_activation_functions_count($ann) * * @return array|false The cascade activation functions, or false on error. */ -function fann_get_cascade_activation_functions($ann) -{ -} +function fann_get_cascade_activation_functions($ann) {} /** * The number of activation steepnesses @@ -425,9 +363,7 @@ function fann_get_cascade_activation_functions($ann) * * @return int|false The number of activation steepnesses, or false on error. */ -function fann_get_cascade_activation_steepnesses_count($ann) -{ -} +function fann_get_cascade_activation_steepnesses_count($ann) {} /** * Returns the cascade activation steepnesses @@ -437,9 +373,7 @@ function fann_get_cascade_activation_steepnesses_count($ann) * * @return array|false The cascade activation steepnesses, or false on error. */ -function fann_get_cascade_activation_steepnesses($ann) -{ -} +function fann_get_cascade_activation_steepnesses($ann) {} /** * Returns the cascade candidate change fraction @@ -449,9 +383,7 @@ function fann_get_cascade_activation_steepnesses($ann) * * @return float|false The cascade candidate change fraction, or false on error. */ -function fann_get_cascade_candidate_change_fraction($ann) -{ -} +function fann_get_cascade_candidate_change_fraction($ann) {} /** * Return the candidate limit @@ -461,9 +393,7 @@ function fann_get_cascade_candidate_change_fraction($ann) * * @return float|false The candidate limit, or false on error. */ -function fann_get_cascade_candidate_limit($ann) -{ -} +function fann_get_cascade_candidate_limit($ann) {} /** * Returns the number of cascade candidate stagnation epochs @@ -473,9 +403,7 @@ function fann_get_cascade_candidate_limit($ann) * * @return float|false The number of cascade candidate stagnation epochs, or false on error. */ -function fann_get_cascade_candidate_stagnation_epochs($ann) -{ -} +function fann_get_cascade_candidate_stagnation_epochs($ann) {} /** * Returns the maximum candidate epochs @@ -485,9 +413,7 @@ function fann_get_cascade_candidate_stagnation_epochs($ann) * * @return int|false The maximum candidate epochs, or false on error. */ -function fann_get_cascade_max_cand_epochs($ann) -{ -} +function fann_get_cascade_max_cand_epochs($ann) {} /** * Returns the maximum out epochs @@ -497,9 +423,7 @@ function fann_get_cascade_max_cand_epochs($ann) * * @return int|false The maximum out epochs, or false on error. */ -function fann_get_cascade_max_out_epochs($ann) -{ -} +function fann_get_cascade_max_out_epochs($ann) {} /** * Returns the minimum candidate epochs @@ -509,9 +433,7 @@ function fann_get_cascade_max_out_epochs($ann) * * @return int|false The minimum candidate epochs, or false on error. */ -function fann_get_cascade_min_cand_epochs($ann) -{ -} +function fann_get_cascade_min_cand_epochs($ann) {} /** * Returns the minimum out epochs @@ -521,9 +443,7 @@ function fann_get_cascade_min_cand_epochs($ann) * * @return int|false The minimum out epochs, or false on error. */ -function fann_get_cascade_min_out_epochs($ann) -{ -} +function fann_get_cascade_min_out_epochs($ann) {} /** * Returns the number of candidate groups @@ -533,9 +453,7 @@ function fann_get_cascade_min_out_epochs($ann) * * @return int|false The number of candidate groups, or false on error. */ -function fann_get_cascade_num_candidate_groups($ann) -{ -} +function fann_get_cascade_num_candidate_groups($ann) {} /** * Returns the number of candidates used during training @@ -545,9 +463,7 @@ function fann_get_cascade_num_candidate_groups($ann) * * @return int|false The number of candidates used during training, or false on error. */ -function fann_get_cascade_num_candidates($ann) -{ -} +function fann_get_cascade_num_candidates($ann) {} /** * Returns the cascade output change fraction @@ -557,9 +473,7 @@ function fann_get_cascade_num_candidates($ann) * * @return float|false The cascade output change fraction, or false on error. */ -function fann_get_cascade_output_change_fraction($ann) -{ -} +function fann_get_cascade_output_change_fraction($ann) {} /** * Returns the number of cascade output stagnation epochs @@ -569,9 +483,7 @@ function fann_get_cascade_output_change_fraction($ann) * * @return int|false The number of cascade output stagnation epochs, or false on error. */ -function fann_get_cascade_output_stagnation_epochs($ann) -{ -} +function fann_get_cascade_output_stagnation_epochs($ann) {} /** * Returns the weight multiplier @@ -581,9 +493,7 @@ function fann_get_cascade_output_stagnation_epochs($ann) * * @return float|false The weight multiplier, or false on error. */ -function fann_get_cascade_weight_multiplier($ann) -{ -} +function fann_get_cascade_weight_multiplier($ann) {} /** * Get connections in the network @@ -593,9 +503,7 @@ function fann_get_cascade_weight_multiplier($ann) * * @return array An array of connections in the network */ -function fann_get_connection_array($ann) -{ -} +function fann_get_connection_array($ann) {} /** * Get the connection rate used when the network was created @@ -605,9 +513,7 @@ function fann_get_connection_array($ann) * * @return float|false The connection rate used when the network was created, or false on error. */ -function fann_get_connection_rate($ann) -{ -} +function fann_get_connection_rate($ann) {} /** * Returns the last error number @@ -617,9 +523,7 @@ function fann_get_connection_rate($ann) * * @return int|false The error number, or false on error. */ -function fann_get_errno($errdat) -{ -} +function fann_get_errno($errdat) {} /** * Returns the last errstr @@ -629,9 +533,7 @@ function fann_get_errno($errdat) * * @return string|false The last error string, or false on error. */ -function fann_get_errstr($errdat) -{ -} +function fann_get_errstr($errdat) {} /** * Get the number of neurons in each layer in the network @@ -641,9 +543,7 @@ function fann_get_errstr($errdat) * * @return array An array of numbers of neurons in each leayer */ -function fann_get_layer_array($ann) -{ -} +function fann_get_layer_array($ann) {} /** * Returns the learning momentum @@ -653,9 +553,7 @@ function fann_get_layer_array($ann) * * @return float|false The learning momentum, or false on error. */ -function fann_get_learning_momentum($ann) -{ -} +function fann_get_learning_momentum($ann) {} /** * Returns the learning rate @@ -665,9 +563,7 @@ function fann_get_learning_momentum($ann) * * @return float|false The learning rate, or false on error. */ -function fann_get_learning_rate($ann) -{ -} +function fann_get_learning_rate($ann) {} /** * Reads the mean square error from the network @@ -677,9 +573,7 @@ function fann_get_learning_rate($ann) * * @return float|false The mean square error, or false on error. */ -function fann_get_MSE($ann) -{ -} +function fann_get_MSE($ann) {} /** * Get the type of neural network it was created as @@ -689,9 +583,7 @@ function fann_get_MSE($ann) * * @return int|false constant, or false on error. */ -function fann_get_network_type($ann) -{ -} +function fann_get_network_type($ann) {} /** * Get the number of input neurons @@ -701,9 +593,7 @@ function fann_get_network_type($ann) * * @return int|false Number of input neurons, or false on error */ -function fann_get_num_input($ann) -{ -} +function fann_get_num_input($ann) {} /** * Get the number of layers in the neural network @@ -713,9 +603,7 @@ function fann_get_num_input($ann) * * @return int|false The number of leayers in the neural network, or false on error. */ -function fann_get_num_layers($ann) -{ -} +function fann_get_num_layers($ann) {} /** * Get the number of output neurons @@ -725,9 +613,7 @@ function fann_get_num_layers($ann) * * @return int|false Number of output neurons, or false on error */ -function fann_get_num_output($ann) -{ -} +function fann_get_num_output($ann) {} /** * Returns the decay which is a factor that weights should decrease in each iteration during quickprop training @@ -737,9 +623,7 @@ function fann_get_num_output($ann) * * @return float|false The decay, or false on error. */ -function fann_get_quickprop_decay($ann) -{ -} +function fann_get_quickprop_decay($ann) {} /** * Returns the mu factor @@ -749,9 +633,7 @@ function fann_get_quickprop_decay($ann) * * @return float|false The mu factor, or false on error. */ -function fann_get_quickprop_mu($ann) -{ -} +function fann_get_quickprop_mu($ann) {} /** * Returns the increase factor used during RPROP training @@ -761,9 +643,7 @@ function fann_get_quickprop_mu($ann) * * @return float|false The decrease factor, or false on error. */ -function fann_get_rprop_decrease_factor($ann) -{ -} +function fann_get_rprop_decrease_factor($ann) {} /** * Returns the maximum step-size @@ -773,9 +653,7 @@ function fann_get_rprop_decrease_factor($ann) * * @return float|false The maximum step-size, or false on error. */ -function fann_get_rprop_delta_max($ann) -{ -} +function fann_get_rprop_delta_max($ann) {} /** * Returns the minimum step-size @@ -785,9 +663,7 @@ function fann_get_rprop_delta_max($ann) * * @return float|false The minimum step-size, or false on error. */ -function fann_get_rprop_delta_min($ann) -{ -} +function fann_get_rprop_delta_min($ann) {} /** * Returns the initial step-size @@ -797,9 +673,7 @@ function fann_get_rprop_delta_min($ann) * * @return int|false The initial step-size, or false on error. */ -function fann_get_rprop_delta_zero($ann) -{ -} +function fann_get_rprop_delta_zero($ann) {} /** * Returns the increase factor used during RPROP training @@ -809,9 +683,7 @@ function fann_get_rprop_delta_zero($ann) * * @return float|false The increase factor, or false on error. */ -function fann_get_rprop_increase_factor($ann) -{ -} +function fann_get_rprop_increase_factor($ann) {} /** * Returns the sarprop step error shift @@ -821,9 +693,7 @@ function fann_get_rprop_increase_factor($ann) * * @return float|false The sarprop step error shift , or false on error. */ -function fann_get_sarprop_step_error_shift($ann) -{ -} +function fann_get_sarprop_step_error_shift($ann) {} /** * Returns the sarprop step error threshold factor @@ -833,9 +703,7 @@ function fann_get_sarprop_step_error_shift($ann) * * @return float|false The sarprop step error threshold factor, or false on error. */ -function fann_get_sarprop_step_error_threshold_factor($ann) -{ -} +function fann_get_sarprop_step_error_threshold_factor($ann) {} /** * Returns the sarprop temperature @@ -845,9 +713,7 @@ function fann_get_sarprop_step_error_threshold_factor($ann) * * @return float|false The sarprop temperature, or false on error. */ -function fann_get_sarprop_temperature($ann) -{ -} +function fann_get_sarprop_temperature($ann) {} /** * Returns the sarprop weight decay shift @@ -857,9 +723,7 @@ function fann_get_sarprop_temperature($ann) * * @return float|false The sarprop weight decay shift, or false on error. */ -function fann_get_sarprop_weight_decay_shift($ann) -{ -} +function fann_get_sarprop_weight_decay_shift($ann) {} /** * Get the total number of connections in the entire network @@ -869,9 +733,7 @@ function fann_get_sarprop_weight_decay_shift($ann) * * @return int|false Total number of connections in the entire network, or false on error */ -function fann_get_total_connections($ann) -{ -} +function fann_get_total_connections($ann) {} /** * Get the total number of neurons in the entire network @@ -881,9 +743,7 @@ function fann_get_total_connections($ann) * * @return int|false Total number of neurons in the entire network, or false on error. */ -function fann_get_total_neurons($ann) -{ -} +function fann_get_total_neurons($ann) {} /** * Returns the error function used during training @@ -893,9 +753,7 @@ function fann_get_total_neurons($ann) * * @return int|false The constant, or false on error. */ -function fann_get_train_error_function($ann) -{ -} +function fann_get_train_error_function($ann) {} /** * Returns the training algorithm @@ -905,9 +763,7 @@ function fann_get_train_error_function($ann) * * @return int|false constant, or false on error. */ -function fann_get_training_algorithm($ann) -{ -} +function fann_get_training_algorithm($ann) {} /** * Returns the stop function used during training @@ -917,9 +773,7 @@ function fann_get_training_algorithm($ann) * * @return int|false The constant, or false on error. */ -function fann_get_train_stop_function($ann) -{ -} +function fann_get_train_stop_function($ann) {} /** * Initialize the weights using Widrow + Nguyen’s algorithm @@ -930,9 +784,7 @@ function fann_get_train_stop_function($ann) * * @return bool */ -function fann_init_weights($ann, $train_data) -{ -} +function fann_init_weights($ann, $train_data) {} /** * Returns the number of training patterns in the train data @@ -942,9 +794,7 @@ function fann_init_weights($ann, $train_data) * * @return int|false Number of elements in the train data ``resource``, or false on error. */ -function fann_length_train_data($data) -{ -} +function fann_length_train_data($data) {} /** * Merges the train data @@ -955,9 +805,7 @@ function fann_length_train_data($data) * * @return resource|false New merged train data ``resource``, or false on error. */ -function fann_merge_train_data($data1, $data2) -{ -} +function fann_merge_train_data($data1, $data2) {} /** * Returns the number of inputs in each of the training patterns in the train data @@ -967,9 +815,7 @@ function fann_merge_train_data($data1, $data2) * * @return int|false The number of inputs, or false on error. */ -function fann_num_input_train_data($data) -{ -} +function fann_num_input_train_data($data) {} /** * Returns the number of outputs in each of the training patterns in the train data @@ -979,9 +825,7 @@ function fann_num_input_train_data($data) * * @return int|false The number of outputs, or false on error. */ -function fann_num_output_train_data($data) -{ -} +function fann_num_output_train_data($data) {} /** * Prints the error string @@ -991,9 +835,7 @@ function fann_num_output_train_data($data) * * @return void */ -function fann_print_error($errdat) -{ -} +function fann_print_error($errdat) {} /** * Give each connection a random weight between min_weight and max_weight @@ -1005,9 +847,7 @@ function fann_print_error($errdat) * * @return bool */ -function fann_randomize_weights($ann, $min_weight, $max_weight) -{ -} +function fann_randomize_weights($ann, $min_weight, $max_weight) {} /** * Reads a file that stores training data @@ -1017,9 +857,7 @@ function fann_randomize_weights($ann, $min_weight, $max_weight) * * @return resource|false */ -function fann_read_train_from_file($filename) -{ -} +function fann_read_train_from_file($filename) {} /** * Resets the last error number @@ -1029,9 +867,7 @@ function fann_read_train_from_file($filename) * * @return void */ -function fann_reset_errno($errdat) -{ -} +function fann_reset_errno($errdat) {} /** * Resets the last error string @@ -1041,9 +877,7 @@ function fann_reset_errno($errdat) * * @return void */ -function fann_reset_errstr($errdat) -{ -} +function fann_reset_errstr($errdat) {} /** * Resets the mean square error from the network @@ -1053,9 +887,7 @@ function fann_reset_errstr($errdat) * * @return bool */ -function fann_reset_MSE($ann) -{ -} +function fann_reset_MSE($ann) {} /** * Will run input through the neural network @@ -1066,9 +898,7 @@ function fann_reset_MSE($ann) * * @return array|false Array of output values, or false on error */ -function fann_run($ann, $input) -{ -} +function fann_run($ann, $input) {} /** * Saves the entire network to a configuration file @@ -1079,9 +909,7 @@ function fann_run($ann, $input) * * @return bool */ -function fann_save($ann, $configuration_file) -{ -} +function fann_save($ann, $configuration_file) {} /** * Save the training structure to a file @@ -1092,9 +920,7 @@ function fann_save($ann, $configuration_file) * * @return bool */ -function fann_save_train($data, $file_name) -{ -} +function fann_save_train($data, $file_name) {} /** * Scale data in input vector before feed it to ann based on previously calculated parameters @@ -1105,9 +931,7 @@ function fann_save_train($data, $file_name) * * @return bool */ -function fann_scale_input($ann, $input_vector) -{ -} +function fann_scale_input($ann, $input_vector) {} /** * Scales the inputs in the training data to the specified range @@ -1119,9 +943,7 @@ function fann_scale_input($ann, $input_vector) * * @return bool */ -function fann_scale_input_train_data($train_data, $new_min, $new_max) -{ -} +function fann_scale_input_train_data($train_data, $new_min, $new_max) {} /** * Scale data in output vector before feed it to ann based on previously calculated parameters @@ -1132,9 +954,7 @@ function fann_scale_input_train_data($train_data, $new_min, $new_max) * * @return bool */ -function fann_scale_output($ann, $output_vector) -{ -} +function fann_scale_output($ann, $output_vector) {} /** * Scales the outputs in the training data to the specified range @@ -1146,9 +966,7 @@ function fann_scale_output($ann, $output_vector) * * @return bool */ -function fann_scale_output_train_data($train_data, $new_min, $new_max) -{ -} +function fann_scale_output_train_data($train_data, $new_min, $new_max) {} /** * Scales the inputs and outputs in the training data to the specified range @@ -1160,9 +978,7 @@ function fann_scale_output_train_data($train_data, $new_min, $new_max) * * @return bool */ -function fann_scale_train_data($train_data, $new_min, $new_max) -{ -} +function fann_scale_train_data($train_data, $new_min, $new_max) {} /** * Scale input and output data based on previously calculated parameters @@ -1173,9 +989,7 @@ function fann_scale_train_data($train_data, $new_min, $new_max) * * @return bool */ -function fann_scale_train($ann, $train_data) -{ -} +function fann_scale_train($ann, $train_data) {} /** * Sets the activation function for all of the hidden layers @@ -1186,9 +1000,7 @@ function fann_scale_train($ann, $train_data) * * @return bool */ -function fann_set_activation_function_hidden($ann, $activation_function) -{ -} +function fann_set_activation_function_hidden($ann, $activation_function) {} /** * Sets the activation function for all the neurons in the supplied layer. @@ -1200,9 +1012,7 @@ function fann_set_activation_function_hidden($ann, $activation_function) * * @return bool */ -function fann_set_activation_function_layer($ann, $activation_function, $layer) -{ -} +function fann_set_activation_function_layer($ann, $activation_function, $layer) {} /** * Sets the activation function for the output layer @@ -1213,9 +1023,7 @@ function fann_set_activation_function_layer($ann, $activation_function, $layer) * * @return bool */ -function fann_set_activation_function_output($ann, $activation_function) -{ -} +function fann_set_activation_function_output($ann, $activation_function) {} /** * Sets the activation function for supplied neuron and layer @@ -1228,9 +1036,7 @@ function fann_set_activation_function_output($ann, $activation_function) * * @return bool */ -function fann_set_activation_function($ann, $activation_function, $layer, $neuron) -{ -} +function fann_set_activation_function($ann, $activation_function, $layer, $neuron) {} /** * Sets the steepness of the activation steepness for all neurons in the all hidden layers @@ -1241,9 +1047,7 @@ function fann_set_activation_function($ann, $activation_function, $layer, $neuro * * @return bool */ -function fann_set_activation_steepness_hidden($ann, $activation_steepness) -{ -} +function fann_set_activation_steepness_hidden($ann, $activation_steepness) {} /** * Sets the activation steepness for all of the neurons in the supplied layer number @@ -1255,9 +1059,7 @@ function fann_set_activation_steepness_hidden($ann, $activation_steepness) * * @return bool */ -function fann_set_activation_steepness_layer($ann, $activation_steepness, $layer) -{ -} +function fann_set_activation_steepness_layer($ann, $activation_steepness, $layer) {} /** * Sets the steepness of the activation steepness in the output layer @@ -1268,9 +1070,7 @@ function fann_set_activation_steepness_layer($ann, $activation_steepness, $layer * * @return bool */ -function fann_set_activation_steepness_output($ann, $activation_steepness) -{ -} +function fann_set_activation_steepness_output($ann, $activation_steepness) {} /** * Sets the activation steepness for supplied neuron and layer number @@ -1283,9 +1083,7 @@ function fann_set_activation_steepness_output($ann, $activation_steepness) * * @return bool */ -function fann_set_activation_steepness($ann, $activation_steepness, $layer, $neuron) -{ -} +function fann_set_activation_steepness($ann, $activation_steepness, $layer, $neuron) {} /** * Set the bit fail limit used during training @@ -1296,9 +1094,7 @@ function fann_set_activation_steepness($ann, $activation_steepness, $layer, $neu * * @return bool */ -function fann_set_bit_fail_limit($ann, $bit_fail_limit) -{ -} +function fann_set_bit_fail_limit($ann, $bit_fail_limit) {} /** * Sets the callback function for use during training @@ -1309,9 +1105,7 @@ function fann_set_bit_fail_limit($ann, $bit_fail_limit) * * @return bool */ -function fann_set_callback($ann, $callback) -{ -} +function fann_set_callback($ann, $callback) {} /** * Sets the array of cascade candidate activation functions @@ -1322,9 +1116,7 @@ function fann_set_callback($ann, $callback) * * @return bool */ -function fann_set_cascade_activation_functions($ann, $cascade_activation_functions) -{ -} +function fann_set_cascade_activation_functions($ann, $cascade_activation_functions) {} /** * Sets the array of cascade candidate activation steepnesses @@ -1335,9 +1127,7 @@ function fann_set_cascade_activation_functions($ann, $cascade_activation_functio * * @return bool */ -function fann_set_cascade_activation_steepnesses($ann, $cascade_activation_steepnesses_count) -{ -} +function fann_set_cascade_activation_steepnesses($ann, $cascade_activation_steepnesses_count) {} /** * Sets the cascade candidate change fraction @@ -1348,9 +1138,7 @@ function fann_set_cascade_activation_steepnesses($ann, $cascade_activation_steep * * @return bool */ -function fann_set_cascade_candidate_change_fraction($ann, $cascade_candidate_change_fraction) -{ -} +function fann_set_cascade_candidate_change_fraction($ann, $cascade_candidate_change_fraction) {} /** * Sets the candidate limit @@ -1361,9 +1149,7 @@ function fann_set_cascade_candidate_change_fraction($ann, $cascade_candidate_cha * * @return bool */ -function fann_set_cascade_candidate_limit($ann, $cascade_candidate_limit) -{ -} +function fann_set_cascade_candidate_limit($ann, $cascade_candidate_limit) {} /** * Sets the number of cascade candidate stagnation epochs @@ -1374,9 +1160,7 @@ function fann_set_cascade_candidate_limit($ann, $cascade_candidate_limit) * * @return bool */ -function fann_set_cascade_candidate_stagnation_epochs($ann, $cascade_candidate_stagnation_epochs) -{ -} +function fann_set_cascade_candidate_stagnation_epochs($ann, $cascade_candidate_stagnation_epochs) {} /** * Sets the max candidate epochs @@ -1387,9 +1171,7 @@ function fann_set_cascade_candidate_stagnation_epochs($ann, $cascade_candidate_s * * @return bool */ -function fann_set_cascade_max_cand_epochs($ann, $cascade_max_cand_epochs) -{ -} +function fann_set_cascade_max_cand_epochs($ann, $cascade_max_cand_epochs) {} /** * Sets the maximum out epochs @@ -1400,9 +1182,7 @@ function fann_set_cascade_max_cand_epochs($ann, $cascade_max_cand_epochs) * * @return bool */ -function fann_set_cascade_max_out_epochs($ann, $cascade_max_out_epochs) -{ -} +function fann_set_cascade_max_out_epochs($ann, $cascade_max_out_epochs) {} /** * Sets the min candidate epochs @@ -1413,9 +1193,7 @@ function fann_set_cascade_max_out_epochs($ann, $cascade_max_out_epochs) * * @return bool */ -function fann_set_cascade_min_cand_epochs($ann, $cascade_min_cand_epochs) -{ -} +function fann_set_cascade_min_cand_epochs($ann, $cascade_min_cand_epochs) {} /** * Sets the minimum out epochs @@ -1426,9 +1204,7 @@ function fann_set_cascade_min_cand_epochs($ann, $cascade_min_cand_epochs) * * @return bool */ -function fann_set_cascade_min_out_epochs($ann, $cascade_min_out_epochs) -{ -} +function fann_set_cascade_min_out_epochs($ann, $cascade_min_out_epochs) {} /** * Sets the number of candidate groups @@ -1439,9 +1215,7 @@ function fann_set_cascade_min_out_epochs($ann, $cascade_min_out_epochs) * * @return bool */ -function fann_set_cascade_num_candidate_groups($ann, $cascade_num_candidate_groups) -{ -} +function fann_set_cascade_num_candidate_groups($ann, $cascade_num_candidate_groups) {} /** * Sets the cascade output change fraction @@ -1452,9 +1226,7 @@ function fann_set_cascade_num_candidate_groups($ann, $cascade_num_candidate_grou * * @return bool */ -function fann_set_cascade_output_change_fraction($ann, $cascade_output_change_fraction) -{ -} +function fann_set_cascade_output_change_fraction($ann, $cascade_output_change_fraction) {} /** * Sets the number of cascade output stagnation epochs @@ -1465,9 +1237,7 @@ function fann_set_cascade_output_change_fraction($ann, $cascade_output_change_fr * * @return bool */ -function fann_set_cascade_output_stagnation_epochs($ann, $cascade_output_stagnation_epochs) -{ -} +function fann_set_cascade_output_stagnation_epochs($ann, $cascade_output_stagnation_epochs) {} /** * Sets the weight multiplier @@ -1478,9 +1248,7 @@ function fann_set_cascade_output_stagnation_epochs($ann, $cascade_output_stagnat * * @return bool */ -function fann_set_cascade_weight_multiplier($ann, $cascade_weight_multiplier) -{ -} +function fann_set_cascade_weight_multiplier($ann, $cascade_weight_multiplier) {} /** * Sets where the errors are logged to @@ -1491,9 +1259,7 @@ function fann_set_cascade_weight_multiplier($ann, $cascade_weight_multiplier) * * @return void */ -function fann_set_error_log($errdat, $log_file) -{ -} +function fann_set_error_log($errdat, $log_file) {} /** * Calculate input scaling parameters for future use based on training data @@ -1506,9 +1272,7 @@ function fann_set_error_log($errdat, $log_file) * * @return bool */ -function fann_set_input_scaling_params($ann, $train_data, $new_input_min, $new_input_max) -{ -} +function fann_set_input_scaling_params($ann, $train_data, $new_input_min, $new_input_max) {} /** * Sets the learning momentum @@ -1519,9 +1283,7 @@ function fann_set_input_scaling_params($ann, $train_data, $new_input_min, $new_i * * @return bool */ -function fann_set_learning_momentum($ann, $learning_momentum) -{ -} +function fann_set_learning_momentum($ann, $learning_momentum) {} /** * Sets the learning rate @@ -1532,9 +1294,7 @@ function fann_set_learning_momentum($ann, $learning_momentum) * * @return bool */ -function fann_set_learning_rate($ann, $learning_rate) -{ -} +function fann_set_learning_rate($ann, $learning_rate) {} /** * Calculate output scaling parameters for future use based on training data @@ -1547,9 +1307,7 @@ function fann_set_learning_rate($ann, $learning_rate) * * @return bool */ -function fann_set_output_scaling_params($ann, $train_data, $new_output_min, $new_output_max) -{ -} +function fann_set_output_scaling_params($ann, $train_data, $new_output_min, $new_output_max) {} /** * Sets the quickprop decay factor @@ -1560,9 +1318,7 @@ function fann_set_output_scaling_params($ann, $train_data, $new_output_min, $new * * @return bool */ -function fann_set_quickprop_decay($ann, $quickprop_decay) -{ -} +function fann_set_quickprop_decay($ann, $quickprop_decay) {} /** * Sets the quickprop mu factor @@ -1573,9 +1329,7 @@ function fann_set_quickprop_decay($ann, $quickprop_decay) * * @return bool */ -function fann_set_quickprop_mu($ann, $quickprop_mu) -{ -} +function fann_set_quickprop_mu($ann, $quickprop_mu) {} /** * Sets the decrease factor used during RPROP training @@ -1586,9 +1340,7 @@ function fann_set_quickprop_mu($ann, $quickprop_mu) * * @return bool */ -function fann_set_rprop_decrease_factor($ann, $rprop_decrease_factor) -{ -} +function fann_set_rprop_decrease_factor($ann, $rprop_decrease_factor) {} /** * Sets the maximum step-size @@ -1599,9 +1351,7 @@ function fann_set_rprop_decrease_factor($ann, $rprop_decrease_factor) * * @return bool */ -function fann_set_rprop_delta_max($ann, $rprop_delta_max) -{ -} +function fann_set_rprop_delta_max($ann, $rprop_delta_max) {} /** * Sets the minimum step-size @@ -1612,9 +1362,7 @@ function fann_set_rprop_delta_max($ann, $rprop_delta_max) * * @return bool */ -function fann_set_rprop_delta_min($ann, $rprop_delta_min) -{ -} +function fann_set_rprop_delta_min($ann, $rprop_delta_min) {} /** * Sets the initial step-size @@ -1625,9 +1373,7 @@ function fann_set_rprop_delta_min($ann, $rprop_delta_min) * * @return bool */ -function fann_set_rprop_delta_zero($ann, $rprop_delta_zero) -{ -} +function fann_set_rprop_delta_zero($ann, $rprop_delta_zero) {} /** * Sets the increase factor used during RPROP training @@ -1638,9 +1384,7 @@ function fann_set_rprop_delta_zero($ann, $rprop_delta_zero) * * @return bool */ -function fann_set_rprop_increase_factor($ann, $rprop_increase_factor) -{ -} +function fann_set_rprop_increase_factor($ann, $rprop_increase_factor) {} /** * Sets the sarprop step error shift @@ -1651,9 +1395,7 @@ function fann_set_rprop_increase_factor($ann, $rprop_increase_factor) * * @return bool */ -function fann_set_sarprop_step_error_shift($ann, $sarprop_step_error_shift) -{ -} +function fann_set_sarprop_step_error_shift($ann, $sarprop_step_error_shift) {} /** * Sets the sarprop step error threshold factor @@ -1664,9 +1406,7 @@ function fann_set_sarprop_step_error_shift($ann, $sarprop_step_error_shift) * * @return bool */ -function fann_set_sarprop_step_error_threshold_factor($ann, $sarprop_step_error_threshold_factor) -{ -} +function fann_set_sarprop_step_error_threshold_factor($ann, $sarprop_step_error_threshold_factor) {} /** * Sets the sarprop temperature @@ -1677,9 +1417,7 @@ function fann_set_sarprop_step_error_threshold_factor($ann, $sarprop_step_error_ * * @return bool */ -function fann_set_sarprop_temperature($ann, $sarprop_temperature) -{ -} +function fann_set_sarprop_temperature($ann, $sarprop_temperature) {} /** * Sets the sarprop weight decay shift @@ -1690,9 +1428,7 @@ function fann_set_sarprop_temperature($ann, $sarprop_temperature) * * @return bool */ -function fann_set_sarprop_weight_decay_shift($ann, $sarprop_weight_decay_shift) -{ -} +function fann_set_sarprop_weight_decay_shift($ann, $sarprop_weight_decay_shift) {} /** * Calculate input and output scaling parameters for future use based on training data @@ -1707,9 +1443,7 @@ function fann_set_sarprop_weight_decay_shift($ann, $sarprop_weight_decay_shift) * * @return bool */ -function fann_set_scaling_params($ann, $train_data, $new_input_min, $new_input_max, $new_output_min, $new_output_max) -{ -} +function fann_set_scaling_params($ann, $train_data, $new_input_min, $new_input_max, $new_output_min, $new_output_max) {} /** * Sets the error function used during training @@ -1720,9 +1454,7 @@ function fann_set_scaling_params($ann, $train_data, $new_input_min, $new_input_m * * @return bool */ -function fann_set_train_error_function($ann, $error_function) -{ -} +function fann_set_train_error_function($ann, $error_function) {} /** * Sets the training algorithm @@ -1733,9 +1465,7 @@ function fann_set_train_error_function($ann, $error_function) * * @return bool */ -function fann_set_training_algorithm($ann, $training_algorithm) -{ -} +function fann_set_training_algorithm($ann, $training_algorithm) {} /** * Sets the stop function used during training @@ -1746,9 +1476,7 @@ function fann_set_training_algorithm($ann, $training_algorithm) * * @return bool */ -function fann_set_train_stop_function($ann, $stop_function) -{ -} +function fann_set_train_stop_function($ann, $stop_function) {} /** * Set connections in the network @@ -1759,9 +1487,7 @@ function fann_set_train_stop_function($ann, $stop_function) * * @return bool */ -function fann_set_weight_array($ann, $connections) -{ -} +function fann_set_weight_array($ann, $connections) {} /** * Set a connection in the network @@ -1774,9 +1500,7 @@ function fann_set_weight_array($ann, $connections) * * @return bool */ -function fann_set_weight($ann, $from_neuron, $to_neuron, $weight) -{ -} +function fann_set_weight($ann, $from_neuron, $to_neuron, $weight) {} /** * Shuffles training data, randomizing the order @@ -1786,9 +1510,7 @@ function fann_set_weight($ann, $from_neuron, $to_neuron, $weight) * * @return bool */ -function fann_shuffle_train_data($train_data) -{ -} +function fann_shuffle_train_data($train_data) {} /** * Returns an copy of a subset of the train data @@ -1800,9 +1522,7 @@ function fann_shuffle_train_data($train_data) * * @return resource|false */ -function fann_subset_train_data($data, $pos, $length) -{ -} +function fann_subset_train_data($data, $pos, $length) {} /** * Test a set of training data and calculates the MSE for the training data @@ -1813,9 +1533,7 @@ function fann_subset_train_data($data, $pos, $length) * * @return float|false The updated MSE, or false on error. */ -function fann_test_data($ann, $data) -{ -} +function fann_test_data($ann, $data) {} /** * Test with a set of inputs, and a set of desired outputs @@ -1827,9 +1545,7 @@ function fann_test_data($ann, $data) * * @return bool */ -function fann_test($ann, $input, $desired_output) -{ -} +function fann_test($ann, $input, $desired_output) {} /** * Train one epoch with a set of training data @@ -1840,9 +1556,7 @@ function fann_test($ann, $input, $desired_output) * * @return float|false The MSE, or false on error. */ -function fann_train_epoch($ann, $data) -{ -} +function fann_train_epoch($ann, $data) {} /** * Trains on an entire dataset for a period of time @@ -1856,9 +1570,7 @@ function fann_train_epoch($ann, $data) * * @return bool */ -function fann_train_on_data($ann, $data, $max_epochs, $epochs_between_reports, $desired_error) -{ -} +function fann_train_on_data($ann, $data, $max_epochs, $epochs_between_reports, $desired_error) {} /** * Trains on an entire dataset, which is read from file, for a period of time @@ -1872,9 +1584,7 @@ function fann_train_on_data($ann, $data, $max_epochs, $epochs_between_reports, $ * * @return bool */ -function fann_train_on_file($ann, $filename, $max_epochs, $epochs_between_reports, $desired_error) -{ -} +function fann_train_on_file($ann, $filename, $max_epochs, $epochs_between_reports, $desired_error) {} /** * Train one iteration with a set of inputs, and a set of desired outputs @@ -1886,9 +1596,7 @@ function fann_train_on_file($ann, $filename, $max_epochs, $epochs_between_report * * @return bool */ -function fann_train($ann, $input, $desired_output) -{ -} +function fann_train($ann, $input, $desired_output) {} define('FANN_TRAIN_INCREMENTAL', 0); define('FANN_TRAIN_BATCH', 1); diff --git a/ffmpeg/ffmpeg.php b/ffmpeg/ffmpeg.php index fb091622d..b8463d470 100644 --- a/ffmpeg/ffmpeg.php +++ b/ffmpeg/ffmpeg.php @@ -1,257 +1,216 @@ - * Set libmagic configuration options - * @link https://php.net/manual/en/function.finfo-set-flags.php - * @param int $flags

    - * One or disjunction of more Fileinfo - * constants. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function set_flags ($flags) {} - - /** - * (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)
    - * Return information about a file - * @link https://php.net/manual/en/function.finfo-file.php - * @param string $filename [optional]

    - * Name of a file to be checked. - *

    - * @param int $flags [optional]

    - * One or disjunction of more Fileinfo - * constants. - *

    - * @param resource $context [optional]

    - * For a description of contexts, refer to . - *

    - * @return string a textual description of the contents of the - * filename argument, or FALSE if an error occurred. - */ - #[Pure] - public function file ($filename = null, $flags = FILEINFO_NONE, $context = null) {} - - /** - * (PHP 5 >= 5.3.0, PECL fileinfo >= 0.1.0)
    - * Return information about a string buffer - * @link https://php.net/manual/en/function.finfo-buffer.php - * @param string $string [optional]

    - * Content of a file to be checked. - *

    - * @param int $flags [optional]

    - * One or disjunction of more Fileinfo - * constants. - *

    - * @param resource $context [optional] - * @return string a textual description of the string - * argument, or FALSE if an error occurred. - */ - #[Pure] - public function buffer ($string = null, $flags = FILEINFO_NONE, $context = null) {} - +class finfo +{ + /** + * @param int $flags [optional] + * @param string $magic_database [optional] + */ + public function __construct($flags, $magic_database) {} + + /** + * (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)
    + * Set libmagic configuration options + * @link https://php.net/manual/en/function.finfo-set-flags.php + * @param int $flags

    + * One or disjunction of more Fileinfo + * constants. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function set_flags($flags) {} + + /** + * (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)
    + * Return information about a file + * @link https://php.net/manual/en/function.finfo-file.php + * @param string $filename [optional]

    + * Name of a file to be checked. + *

    + * @param int $flags [optional]

    + * One or disjunction of more Fileinfo + * constants. + *

    + * @param resource $context [optional]

    + * For a description of contexts, refer to . + *

    + * @return string a textual description of the contents of the + * filename argument, or FALSE if an error occurred. + */ + #[Pure] + public function file($filename = null, $flags = FILEINFO_NONE, $context = null) {} + + /** + * (PHP 5 >= 5.3.0, PECL fileinfo >= 0.1.0)
    + * Return information about a string buffer + * @link https://php.net/manual/en/function.finfo-buffer.php + * @param string $string [optional]

    + * Content of a file to be checked. + *

    + * @param int $flags [optional]

    + * One or disjunction of more Fileinfo + * constants. + *

    + * @param resource $context [optional] + * @return string a textual description of the string + * argument, or FALSE if an error occurred. + */ + #[Pure] + public function buffer($string = null, $flags = FILEINFO_NONE, $context = null) {} } /** @@ -82,8 +81,7 @@ public function buffer ($string = null, $flags = FILEINFO_NONE, $context = null) *

    * @return resource|false a magic database resource on success or FALSE on failure. */ -function finfo_open (int $flags, ?string $magic_database = null) -{} +function finfo_open(int $flags, ?string $magic_database = null) {} /** * (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)
    @@ -94,8 +92,7 @@ function finfo_open (int $flags, ?string $magic_database = null) *

    * @return bool TRUE on success or FALSE on failure. */ -function finfo_close ($finfo): bool -{} +function finfo_close($finfo): bool {} /** * (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)
    @@ -110,8 +107,7 @@ function finfo_close ($finfo): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function finfo_set_flags ($finfo, int $flags): bool -{} +function finfo_set_flags($finfo, int $flags): bool {} /** * (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)
    @@ -133,8 +129,7 @@ function finfo_set_flags ($finfo, int $flags): bool * @return string|false a textual description of the contents of the * filename argument, or FALSE if an error occurred. */ -function finfo_file ($finfo, string $filename, int $flags, $context): string|false -{} +function finfo_file($finfo, string $filename, int $flags, $context): string|false {} /** * (PHP 5 >= 5.3.0, PECL fileinfo >= 0.1.0)
    @@ -152,8 +147,7 @@ function finfo_file ($finfo, string $filename, int $flags, $context): string|fal * @return string|false a textual description of the string * argument, or FALSE if an error occurred. */ -function finfo_buffer ($finfo , string $string, int $flags = FILEINFO_NONE, $context): string|false -{} +function finfo_buffer($finfo, string $string, int $flags = FILEINFO_NONE, $context): string|false {} /** * Detect MIME Content-type for a file @@ -164,64 +158,62 @@ function finfo_buffer ($finfo , string $string, int $flags = FILEINFO_NONE, $con * @return string|false the content type in MIME format, like * text/plain or application/octet-stream. */ -function mime_content_type ($filename): string|false -{} - +function mime_content_type($filename): string|false {} /** * No special handling. * @link https://php.net/manual/en/fileinfo.constants.php */ -define ('FILEINFO_NONE', 0); +define('FILEINFO_NONE', 0); /** * Follow symlinks. * @link https://php.net/manual/en/fileinfo.constants.php */ -define ('FILEINFO_SYMLINK', 2); +define('FILEINFO_SYMLINK', 2); /** * Return the mime type and mime encoding as defined by RFC 2045. * @link https://php.net/manual/en/fileinfo.constants.php */ -define ('FILEINFO_MIME', 1040); +define('FILEINFO_MIME', 1040); /** * Return the mime type. * @link https://php.net/manual/en/fileinfo.constants.php */ -define ('FILEINFO_MIME_TYPE', 16); +define('FILEINFO_MIME_TYPE', 16); /** * Return the mime encoding of the file. * @link https://php.net/manual/en/fileinfo.constants.php */ -define ('FILEINFO_MIME_ENCODING', 1024); +define('FILEINFO_MIME_ENCODING', 1024); /** * Look at the contents of blocks or character special devices. * @link https://php.net/manual/en/fileinfo.constants.php */ -define ('FILEINFO_DEVICES', 8); +define('FILEINFO_DEVICES', 8); /** * Return all matches, not just the first. * @link https://php.net/manual/en/fileinfo.constants.php */ -define ('FILEINFO_CONTINUE', 32); +define('FILEINFO_CONTINUE', 32); /** * If possible preserve the original access time. * @link https://php.net/manual/en/fileinfo.constants.php */ -define ('FILEINFO_PRESERVE_ATIME', 128); +define('FILEINFO_PRESERVE_ATIME', 128); /** * Don't translate unprintable characters to a \ooo octal * representation. * @link https://php.net/manual/en/fileinfo.constants.php */ -define ('FILEINFO_RAW', 256); +define('FILEINFO_RAW', 256); /** * Returns the file extension appropriate for a the MIME type detected in the file. @@ -232,4 +224,3 @@ function mime_content_type ($filename): string|false define('FILEINFO_EXTENSION', 2097152); // End of fileinfo v.1.0.5 -?> diff --git a/filter/filter.php b/filter/filter.php index 8e3b315f1..d3baa7cec 100644 --- a/filter/filter.php +++ b/filter/filter.php @@ -28,8 +28,7 @@ * returns FALSE if the variable is not set and NULL if the filter fails. */ #[Pure] -function filter_input (int $type, string $var_name, int $filter = FILTER_DEFAULT, array|int $options): mixed -{} +function filter_input(int $type, string $var_name, int $filter = FILTER_DEFAULT, array|int $options): mixed {} /** * Filters a variable with a specified filter @@ -85,8 +84,7 @@ function filter_input (int $type, string $var_name, int $filter = FILTER_DEFAULT * @return mixed the filtered data, or FALSE if the filter fails. */ #[Pure] -function filter_var (mixed $value, int $filter = FILTER_DEFAULT, array|int $options): mixed -{} +function filter_var(mixed $value, int $filter = FILTER_DEFAULT, array|int $options): mixed {} /** * Gets external variables and optionally filters them @@ -120,8 +118,7 @@ function filter_var (mixed $value, int $filter = FILTER_DEFAULT, array|int $opti * fails. */ #[Pure] -function filter_input_array (int $type, array|int $options = FILTER_DEFAULT, bool $add_empty = true): array|false|null -{} +function filter_input_array(int $type, array|int $options = FILTER_DEFAULT, bool $add_empty = true): array|false|null {} /** * Gets multiple variables and optionally filters them @@ -152,8 +149,7 @@ function filter_input_array (int $type, array|int $options = FILTER_DEFAULT, boo * the variable is not set. */ #[Pure] -function filter_var_array (array $array, array|int $options = FILTER_DEFAULT, bool $add_empty = true): array|false|null -{} +function filter_var_array(array $array, array|int $options = FILTER_DEFAULT, bool $add_empty = true): array|false|null {} /** * Returns a list of all supported filters @@ -163,8 +159,7 @@ function filter_var_array (array $array, array|int $options = FILTER_DEFAULT, bo * obtained with filter_id from a name instead. */ #[Pure] -function filter_list (): array -{} +function filter_list(): array {} /** * Checks if variable of specified type exists @@ -180,8 +175,7 @@ function filter_list (): array * @return bool TRUE on success or FALSE on failure. */ #[Pure] -function filter_has_var (int $input_type, string $var_name): bool -{} +function filter_has_var(int $input_type, string $var_name): bool {} /** * Returns the filter ID belonging to a named filter @@ -192,39 +186,37 @@ function filter_has_var (int $input_type, string $var_name): bool * @return int|false ID of a filter on success or FALSE if filter doesn't exist. */ #[Pure] -function filter_id (string $name): int|false -{} - +function filter_id(string $name): int|false {} /** * POST variables. * @link https://php.net/manual/en/filter.constants.php */ -define ('INPUT_POST', 0); +define('INPUT_POST', 0); /** * GET variables. * @link https://php.net/manual/en/filter.constants.php */ -define ('INPUT_GET', 1); +define('INPUT_GET', 1); /** * COOKIE variables. * @link https://php.net/manual/en/filter.constants.php */ -define ('INPUT_COOKIE', 2); +define('INPUT_COOKIE', 2); /** * ENV variables. * @link https://php.net/manual/en/filter.constants.php */ -define ('INPUT_ENV', 4); +define('INPUT_ENV', 4); /** * SERVER variables. * @link https://php.net/manual/en/filter.constants.php */ -define ('INPUT_SERVER', 5); +define('INPUT_SERVER', 5); /** * SESSION variables. @@ -232,7 +224,7 @@ function filter_id (string $name): int|false * @link https://php.net/manual/en/filter.constants.php * @removed 8.0 */ -define ('INPUT_SESSION', 6); +define('INPUT_SESSION', 6); /** * REQUEST variables. @@ -240,66 +232,66 @@ function filter_id (string $name): int|false * @link https://php.net/manual/en/filter.constants.php * @removed 8.0 */ -define ('INPUT_REQUEST', 99); +define('INPUT_REQUEST', 99); /** * No flags. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_NONE', 0); +define('FILTER_FLAG_NONE', 0); /** * Flag used to require scalar as input * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_REQUIRE_SCALAR', 33554432); +define('FILTER_REQUIRE_SCALAR', 33554432); /** * Require an array as input. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_REQUIRE_ARRAY', 16777216); +define('FILTER_REQUIRE_ARRAY', 16777216); /** * Always returns an array. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FORCE_ARRAY', 67108864); +define('FILTER_FORCE_ARRAY', 67108864); /** * Use NULL instead of FALSE on failure. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_NULL_ON_FAILURE', 134217728); +define('FILTER_NULL_ON_FAILURE', 134217728); /** * ID of "int" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_VALIDATE_INT', 257); +define('FILTER_VALIDATE_INT', 257); /** * ID of "boolean" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_VALIDATE_BOOLEAN', 258); +define('FILTER_VALIDATE_BOOLEAN', 258); /** * ID of "boolean" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_VALIDATE_BOOL', 258); +define('FILTER_VALIDATE_BOOL', 258); /** * ID of "float" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_VALIDATE_FLOAT', 259); +define('FILTER_VALIDATE_FLOAT', 259); /** * ID of "validate_regexp" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_VALIDATE_REGEXP', 272); +define('FILTER_VALIDATE_REGEXP', 272); define('FILTER_VALIDATE_DOMAIN', 277); @@ -307,26 +299,26 @@ function filter_id (string $name): int|false * ID of "validate_url" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_VALIDATE_URL', 273); +define('FILTER_VALIDATE_URL', 273); /** * ID of "validate_email" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_VALIDATE_EMAIL', 274); +define('FILTER_VALIDATE_EMAIL', 274); /** * ID of "validate_ip" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_VALIDATE_IP', 275); -define ('FILTER_VALIDATE_MAC', 276); +define('FILTER_VALIDATE_IP', 275); +define('FILTER_VALIDATE_MAC', 276); /** * ID of default ("string") filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_DEFAULT', 516); +define('FILTER_DEFAULT', 516); /** * @since 7.3 @@ -337,56 +329,56 @@ function filter_id (string $name): int|false * ID of "unsafe_raw" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_UNSAFE_RAW', 516); +define('FILTER_UNSAFE_RAW', 516); /** * ID of "string" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_SANITIZE_STRING', 513); +define('FILTER_SANITIZE_STRING', 513); /** * ID of "stripped" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_SANITIZE_STRIPPED', 513); +define('FILTER_SANITIZE_STRIPPED', 513); /** * ID of "encoded" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_SANITIZE_ENCODED', 514); +define('FILTER_SANITIZE_ENCODED', 514); /** * ID of "special_chars" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_SANITIZE_SPECIAL_CHARS', 515); -define ('FILTER_SANITIZE_FULL_SPECIAL_CHARS', 522); +define('FILTER_SANITIZE_SPECIAL_CHARS', 515); +define('FILTER_SANITIZE_FULL_SPECIAL_CHARS', 522); /** * ID of "email" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_SANITIZE_EMAIL', 517); +define('FILTER_SANITIZE_EMAIL', 517); /** * ID of "url" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_SANITIZE_URL', 518); +define('FILTER_SANITIZE_URL', 518); /** * ID of "number_int" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_SANITIZE_NUMBER_INT', 519); +define('FILTER_SANITIZE_NUMBER_INT', 519); /** * ID of "number_float" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_SANITIZE_NUMBER_FLOAT', 520); +define('FILTER_SANITIZE_NUMBER_FLOAT', 520); /** * ID of "magic_quotes" filter. @@ -394,87 +386,87 @@ function filter_id (string $name): int|false * @deprecated 7.4 * @removed 8.0 */ -define ('FILTER_SANITIZE_MAGIC_QUOTES', 521); +define('FILTER_SANITIZE_MAGIC_QUOTES', 521); /** * ID of "callback" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_CALLBACK', 1024); +define('FILTER_CALLBACK', 1024); /** * Allow octal notation (0[0-7]+) in "int" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_ALLOW_OCTAL', 1); +define('FILTER_FLAG_ALLOW_OCTAL', 1); /** * Allow hex notation (0x[0-9a-fA-F]+) in "int" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_ALLOW_HEX', 2); +define('FILTER_FLAG_ALLOW_HEX', 2); /** * Strip characters with ASCII value less than 32. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_STRIP_LOW', 4); +define('FILTER_FLAG_STRIP_LOW', 4); /** * Strip characters with ASCII value greater than 127. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_STRIP_HIGH', 8); -define ('FILTER_FLAG_STRIP_BACKTICK', 512); +define('FILTER_FLAG_STRIP_HIGH', 8); +define('FILTER_FLAG_STRIP_BACKTICK', 512); /** * Encode characters with ASCII value less than 32. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_ENCODE_LOW', 16); +define('FILTER_FLAG_ENCODE_LOW', 16); /** * Encode characters with ASCII value greater than 127. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_ENCODE_HIGH', 32); +define('FILTER_FLAG_ENCODE_HIGH', 32); /** * Encode &. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_ENCODE_AMP', 64); +define('FILTER_FLAG_ENCODE_AMP', 64); /** * Don't encode ' and ". * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_NO_ENCODE_QUOTES', 128); +define('FILTER_FLAG_NO_ENCODE_QUOTES', 128); /** * (No use for now.) * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_EMPTY_STRING_NULL', 256); +define('FILTER_FLAG_EMPTY_STRING_NULL', 256); /** * Allow fractional part in "number_float" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_ALLOW_FRACTION', 4096); +define('FILTER_FLAG_ALLOW_FRACTION', 4096); /** * Allow thousand separator (,) in "number_float" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_ALLOW_THOUSAND', 8192); +define('FILTER_FLAG_ALLOW_THOUSAND', 8192); /** * Allow scientific notation (e, E) in * "number_float" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_ALLOW_SCIENTIFIC', 16384); +define('FILTER_FLAG_ALLOW_SCIENTIFIC', 16384); /** * Require scheme in "validate_url" filter. @@ -482,7 +474,7 @@ function filter_id (string $name): int|false * @deprecated 7.3 * @removed 8.0 */ -define ('FILTER_FLAG_SCHEME_REQUIRED', 65536); +define('FILTER_FLAG_SCHEME_REQUIRED', 65536); /** * Require host in "validate_url" filter. @@ -490,45 +482,44 @@ function filter_id (string $name): int|false * @deprecated 7.3 * @removed 8.0 */ -define ('FILTER_FLAG_HOST_REQUIRED', 131072); +define('FILTER_FLAG_HOST_REQUIRED', 131072); /** * Require path in "validate_url" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_PATH_REQUIRED', 262144); +define('FILTER_FLAG_PATH_REQUIRED', 262144); /** * Require query in "validate_url" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_QUERY_REQUIRED', 524288); +define('FILTER_FLAG_QUERY_REQUIRED', 524288); /** * Allow only IPv4 address in "validate_ip" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_IPV4', 1048576); +define('FILTER_FLAG_IPV4', 1048576); /** * Allow only IPv6 address in "validate_ip" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_IPV6', 2097152); +define('FILTER_FLAG_IPV6', 2097152); /** * Deny reserved addresses in "validate_ip" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_NO_RES_RANGE', 4194304); +define('FILTER_FLAG_NO_RES_RANGE', 4194304); /** * Deny private addresses in "validate_ip" filter. * @link https://php.net/manual/en/filter.constants.php */ -define ('FILTER_FLAG_NO_PRIV_RANGE', 8388608); +define('FILTER_FLAG_NO_PRIV_RANGE', 8388608); define('FILTER_FLAG_HOSTNAME', 1048576); define('FILTER_FLAG_EMAIL_UNICODE', 1048576); // End of filter v.0.11.0 -?> diff --git a/fpm/fpm.php b/fpm/fpm.php index 5d4a4e909..6bd6d1c0c 100644 --- a/fpm/fpm.php +++ b/fpm/fpm.php @@ -4,7 +4,7 @@ * @since 7.3 * @return array */ -function fpm_get_status() : array { } +function fpm_get_status(): array {} /** * This function flushes all response data to the client and finishes the request. diff --git a/ftp/ftp.php b/ftp/ftp.php index ebecfa603..46f61dd24 100644 --- a/ftp/ftp.php +++ b/ftp/ftp.php @@ -12,8 +12,7 @@ * @return bool * @since 7.2 */ -function ftp_append ($ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY): bool -{} +function ftp_append($ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY): bool {} /** * returns a list of files in the given directory @@ -22,8 +21,7 @@ function ftp_append ($ftp, string $remote_filename, string $local_filename, int * @return array|false * @since 7.2 */ -function ftp_mlsd ($ftp, string $directory): array|false -{} +function ftp_mlsd($ftp, string $directory): array|false {} /** * Opens an FTP connection @@ -44,8 +42,7 @@ function ftp_mlsd ($ftp, string $directory): array|false *

    * @return resource|false a FTP stream on success or FALSE on error. */ -function ftp_connect (string $hostname, int $port = 21, int $timeout = 90) -{} +function ftp_connect(string $hostname, int $port = 21, int $timeout = 90) {} /** * Opens a Secure SSL-FTP connection @@ -66,8 +63,7 @@ function ftp_connect (string $hostname, int $port = 21, int $timeout = 90) *

    * @return resource|false a SSL-FTP stream on success or FALSE on error. */ -function ftp_ssl_connect (string $hostname, int $port = 21, int $timeout = 90) -{} +function ftp_ssl_connect(string $hostname, int $port = 21, int $timeout = 90) {} /** * Logs in to an FTP connection @@ -84,8 +80,7 @@ function ftp_ssl_connect (string $hostname, int $port = 21, int $timeout = 90) * @return bool TRUE on success or FALSE on failure. * If login fails, PHP will also throw a warning. */ -function ftp_login ($ftp, string $username, string $password): bool -{} +function ftp_login($ftp, string $username, string $password): bool {} /** * Returns the current directory name @@ -95,8 +90,7 @@ function ftp_login ($ftp, string $username, string $password): bool *

    * @return string|false the current directory name or FALSE on error. */ -function ftp_pwd ($ftp): string|false -{} +function ftp_pwd($ftp): string|false {} /** * Changes to the parent directory @@ -106,8 +100,7 @@ function ftp_pwd ($ftp): string|false *

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_cdup ($ftp): bool -{} +function ftp_cdup($ftp): bool {} /** * Changes the current directory on a FTP server @@ -121,8 +114,7 @@ function ftp_cdup ($ftp): bool * @return bool TRUE on success or FALSE on failure. * If changing directory fails, PHP will also throw a warning. */ -function ftp_chdir ($ftp, string $directory): bool -{} +function ftp_chdir($ftp, string $directory): bool {} /** * Requests execution of a command on the FTP server @@ -136,8 +128,7 @@ function ftp_chdir ($ftp, string $directory): bool * @return bool TRUE if the command was successful (server sent response code: * 200); otherwise returns FALSE. */ -function ftp_exec ($ftp, string $command): bool -{} +function ftp_exec($ftp, string $command): bool {} /** * Sends an arbitrary command to an FTP server @@ -152,8 +143,7 @@ function ftp_exec ($ftp, string $command): bool * No parsing is performed on the response string, nor does * ftp_raw determine if the command succeeded. */ -function ftp_raw ($ftp, string $command): array -{} +function ftp_raw($ftp, string $command): array {} /** * Creates a directory @@ -166,8 +156,7 @@ function ftp_raw ($ftp, string $command): array *

    * @return string|false the newly created directory name on success or FALSE on error. */ -function ftp_mkdir ($ftp, string $directory): string|false -{} +function ftp_mkdir($ftp, string $directory): string|false {} /** * Removes a directory @@ -181,8 +170,7 @@ function ftp_mkdir ($ftp, string $directory): string|false *

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_rmdir ($ftp, string $directory): bool -{} +function ftp_rmdir($ftp, string $directory): bool {} /** * Set permissions on a file via FTP @@ -198,8 +186,7 @@ function ftp_rmdir ($ftp, string $directory): bool *

    * @return int|false the new file permissions on success or FALSE on error. */ -function ftp_chmod ($ftp, int $permissions, string $filename): int|false -{} +function ftp_chmod($ftp, int $permissions, string $filename): int|false {} /** * Allocates space for a file to be uploaded @@ -216,8 +203,7 @@ function ftp_chmod ($ftp, int $permissions, string $filename): int|false *

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_alloc ($ftp, int $size, &$response): bool -{} +function ftp_alloc($ftp, int $size, &$response): bool {} /** * Returns a list of files in the given directory @@ -234,8 +220,7 @@ function ftp_alloc ($ftp, int $size, &$response): bool * @return array|false an array of filenames from the specified directory on success or * FALSE on error. */ -function ftp_nlist ($ftp, string $directory): array|false -{} +function ftp_nlist($ftp, string $directory): array|false {} /** * Returns a detailed list of files in the given directory @@ -257,8 +242,7 @@ function ftp_nlist ($ftp, string $directory): array|false * should be interpreted. *

    */ -function ftp_rawlist ($ftp, string $directory, bool $recursive = false): array|false -{} +function ftp_rawlist($ftp, string $directory, bool $recursive = false): array|false {} /** * Returns the system type identifier of the remote FTP server @@ -268,8 +252,7 @@ function ftp_rawlist ($ftp, string $directory, bool $recursive = false): array|f *

    * @return string|false the remote system type, or FALSE on error. */ -function ftp_systype ($ftp): string|false -{} +function ftp_systype($ftp): string|false {} /** * Turns passive mode on or off @@ -282,8 +265,7 @@ function ftp_systype ($ftp): string|false *

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_pasv ($ftp, bool $enable): bool -{} +function ftp_pasv($ftp, bool $enable): bool {} /** * Downloads a file from the FTP server @@ -306,8 +288,7 @@ function ftp_pasv ($ftp, bool $enable): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_get ($ftp, string $local_filename, string $remote_filename, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): bool -{} +function ftp_get($ftp, string $local_filename, string $remote_filename, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): bool {} /** * Downloads a file from the FTP server and saves to an open file @@ -330,8 +311,7 @@ function ftp_get ($ftp, string $local_filename, string $remote_filename, #[EV([F *

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_fget ($ftp, $stream, string $remote_filename, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): bool -{} +function ftp_fget($ftp, $stream, string $remote_filename, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): bool {} /** * Uploads a file to the FTP server @@ -352,8 +332,7 @@ function ftp_fget ($ftp, $stream, string $remote_filename, #[EV([FTP_ASCII, FTP_ * @param int $offset [optional]

    The position in the remote file to start uploading to.

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_put ($ftp, string $remote_filename, string $local_filename, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): bool -{} +function ftp_put($ftp, string $remote_filename, string $local_filename, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): bool {} /** * Uploads from an open file to the FTP server @@ -374,8 +353,7 @@ function ftp_put ($ftp, string $remote_filename, string $local_filename, #[EV([F * @param int $offset [optional]

    The position in the remote file to start uploading to.

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_fput ($ftp, string $remote_filename, $stream, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): bool -{} +function ftp_fput($ftp, string $remote_filename, $stream, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): bool {} /** * Returns the size of the given file @@ -388,8 +366,7 @@ function ftp_fput ($ftp, string $remote_filename, $stream, #[EV([FTP_ASCII, FTP_ *

    * @return int the file size on success, or -1 on error. */ -function ftp_size ($ftp, string $filename): int -{} +function ftp_size($ftp, string $filename): int {} /** * Returns the last modified time of the given file @@ -403,8 +380,7 @@ function ftp_size ($ftp, string $filename): int * @return int the last modified time as a Unix timestamp on success, or -1 on * error. */ -function ftp_mdtm ($ftp, string $filename): int -{} +function ftp_mdtm($ftp, string $filename): int {} /** * Renames a file or a directory on the FTP server @@ -420,8 +396,7 @@ function ftp_mdtm ($ftp, string $filename): int *

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_rename ($ftp, string $from, string $to): bool -{} +function ftp_rename($ftp, string $from, string $to): bool {} /** * Deletes a file on the FTP server @@ -434,8 +409,7 @@ function ftp_rename ($ftp, string $from, string $to): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_delete ($ftp, string $filename): bool -{} +function ftp_delete($ftp, string $filename): bool {} /** * Sends a SITE command to the server @@ -449,8 +423,7 @@ function ftp_delete ($ftp, string $filename): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_site ($ftp, string $command): bool -{} +function ftp_site($ftp, string $command): bool {} /** * Closes an FTP connection @@ -460,8 +433,7 @@ function ftp_site ($ftp, string $command): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function ftp_close ($ftp): bool -{} +function ftp_close($ftp): bool {} /** * Set miscellaneous runtime FTP options @@ -501,8 +473,7 @@ function ftp_close ($ftp): bool * supported or the passed value doesn't match the * expected value for the given option. */ -function ftp_set_option ($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK, FTP_USEPASVADDRESS])] int $option, $value): bool -{} +function ftp_set_option($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK, FTP_USEPASVADDRESS])] int $option, $value): bool {} /** * Retrieves various runtime behaviours of the current FTP stream @@ -532,8 +503,7 @@ function ftp_set_option ($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK, FTP_U * option is not supported. In the latter case, a * warning message is also thrown. */ -function ftp_get_option ($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK])] int $option): int|bool -{} +function ftp_get_option($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK])] int $option): int|bool {} /** * Retrieves a file from the FTP server and writes it to an open file (non-blocking) @@ -555,8 +525,7 @@ function ftp_get_option ($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK])] int * @return int FTP_FAILED or FTP_FINISHED * or FTP_MOREDATA. */ -#[EV([FTP_FAILED, FTP_FINISHED, FTP_MOREDATA])] function ftp_nb_fget ($ftp, $stream, string $remote_filename, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): int -{} +#[EV([FTP_FAILED, FTP_FINISHED, FTP_MOREDATA])] function ftp_nb_fget($ftp, $stream, string $remote_filename, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): int {} /** * Retrieves a file from the FTP server and writes it to a local file (non-blocking) @@ -578,8 +547,7 @@ function ftp_get_option ($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK])] int * @return int FTP_FAILED or FTP_FINISHED * or FTP_MOREDATA. */ -#[EV([FTP_FAILED, FTP_FINISHED, FTP_MOREDATA])] function ftp_nb_get ($ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): int -{} +#[EV([FTP_FAILED, FTP_FINISHED, FTP_MOREDATA])] function ftp_nb_get($ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): int {} /** * Continues retrieving/sending a file (non-blocking) @@ -590,8 +558,7 @@ function ftp_get_option ($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK])] int * @return int FTP_FAILED or FTP_FINISHED * or FTP_MOREDATA. */ -#[EV([FTP_FAILED, FTP_FINISHED, FTP_MOREDATA])] function ftp_nb_continue ($ftp): int -{} +#[EV([FTP_FAILED, FTP_FINISHED, FTP_MOREDATA])] function ftp_nb_continue($ftp): int {} /** * Stores a file on the FTP server (non-blocking) @@ -613,8 +580,7 @@ function ftp_get_option ($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK])] int * @return int|false FTP_FAILED or FTP_FINISHED * or FTP_MOREDATA. */ -#[EV([FTP_FAILED, FTP_FINISHED, FTP_MOREDATA])] function ftp_nb_put ($ftp, string $remote_filename, string $local_filename, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): int|false -{} +#[EV([FTP_FAILED, FTP_FINISHED, FTP_MOREDATA])] function ftp_nb_put($ftp, string $remote_filename, string $local_filename, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): int|false {} /** * Stores a file from an open file to the FTP server (non-blocking) @@ -636,8 +602,7 @@ function ftp_get_option ($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK])] int * @return int FTP_FAILED or FTP_FINISHED * or FTP_MOREDATA. */ -#[EV([FTP_FAILED, FTP_FINISHED, FTP_MOREDATA])] function ftp_nb_fput ($ftp, string $remote_filename, $stream, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): int -{} +#[EV([FTP_FAILED, FTP_FINISHED, FTP_MOREDATA])] function ftp_nb_fput($ftp, string $remote_filename, $stream, #[EV([FTP_ASCII, FTP_BINARY])] int $mode = FTP_BINARY, int $offset = 0): int {} /** * Alias of ftp_close @@ -645,33 +610,31 @@ function ftp_get_option ($ftp, #[EV(flags: [FTP_TIMEOUT_SEC, FTP_AUTOSEEK])] int * @param resource $ftp * @return bool TRUE on success or FALSE on failure. */ -function ftp_quit ($ftp): bool -{} - +function ftp_quit($ftp): bool {} /** *

    * @link https://php.net/manual/en/ftp.constants.php */ -define ('FTP_ASCII', 1); +define('FTP_ASCII', 1); /** *

    * @link https://php.net/manual/en/ftp.constants.php */ -define ('FTP_TEXT', 1); +define('FTP_TEXT', 1); /** *

    * @link https://php.net/manual/en/ftp.constants.php */ -define ('FTP_BINARY', 2); +define('FTP_BINARY', 2); /** *

    * @link https://php.net/manual/en/ftp.constants.php */ -define ('FTP_IMAGE', 2); +define('FTP_IMAGE', 2); /** *

    @@ -680,7 +643,7 @@ function ftp_quit ($ftp): bool *

    * @link https://php.net/manual/en/ftp.constants.php */ -define ('FTP_AUTORESUME', -1); +define('FTP_AUTORESUME', -1); /** *

    @@ -688,7 +651,7 @@ function ftp_quit ($ftp): bool *

    * @link https://php.net/manual/en/ftp.constants.php */ -define ('FTP_TIMEOUT_SEC', 0); +define('FTP_TIMEOUT_SEC', 0); /** *

    @@ -696,8 +659,7 @@ function ftp_quit ($ftp): bool *

    * @link https://php.net/manual/en/ftp.constants.php */ -define ('FTP_AUTOSEEK', 1); - +define('FTP_AUTOSEEK', 1); define('FTP_USEPASVADDRESS', 2); @@ -707,7 +669,7 @@ function ftp_quit ($ftp): bool *

    * @link https://php.net/manual/en/ftp.constants.php */ -define ('FTP_FAILED', 0); +define('FTP_FAILED', 0); /** *

    @@ -715,7 +677,7 @@ function ftp_quit ($ftp): bool *

    * @link https://php.net/manual/en/ftp.constants.php */ -define ('FTP_FINISHED', 1); +define('FTP_FINISHED', 1); /** *

    @@ -723,7 +685,6 @@ function ftp_quit ($ftp): bool *

    * @link https://php.net/manual/en/ftp.constants.php */ -define ('FTP_MOREDATA', 2); +define('FTP_MOREDATA', 2); // End of ftp v. -?> diff --git a/gd/gd.php b/gd/gd.php index 61e210220..cf25f5824 100644 --- a/gd/gd.php +++ b/gd/gd.php @@ -82,7 +82,7 @@ *

    */ #[Pure] -function gd_info (): array {} +function gd_info(): array {} /** * Draws an arc @@ -114,7 +114,7 @@ function gd_info (): array {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imagearc (GdImage $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color): bool {} +function imagearc(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color): bool {} /** * Draw an ellipse @@ -138,7 +138,7 @@ function imagearc (GdImage $image, int $center_x, int $center_y, int $width, int *

    * @return bool TRUE on success or FALSE on failure. */ -function imageellipse (GdImage $image, int $center_x, int $center_y, int $width, int $height, int $color): bool {} +function imageellipse(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $color): bool {} /** * Draw a character horizontally @@ -160,7 +160,7 @@ function imageellipse (GdImage $image, int $center_x, int $center_y, int $width, *

    * @return bool TRUE on success or FALSE on failure. */ -function imagechar (GdImage $image, int $font, int $x, int $y, string $char, int $color): bool {} +function imagechar(GdImage $image, int $font, int $x, int $y, string $char, int $color): bool {} /** * Draw a character vertically @@ -182,7 +182,7 @@ function imagechar (GdImage $image, int $font, int $x, int $y, string $char, int *

    * @return bool TRUE on success or FALSE on failure. */ -function imagecharup (GdImage $image, int $font, int $x, int $y, string $char, int $color): bool {} +function imagecharup(GdImage $image, int $font, int $x, int $y, string $char, int $color): bool {} /** * Get the index of the color of a pixel @@ -197,7 +197,7 @@ function imagecharup (GdImage $image, int $font, int $x, int $y, string $char, i * @return int|false the index of the color or FALSE on failure */ #[Pure] -function imagecolorat (GdImage $image, int $x, int $y): int|false {} +function imagecolorat(GdImage $image, int $x, int $y): int|false {} /** * Allocate a color for an image @@ -208,7 +208,7 @@ function imagecolorat (GdImage $image, int $x, int $y): int|false {} * @param int $blue

    Value of blue component.

    * @return int|false A color identifier or FALSE if the allocation failed. */ -function imagecolorallocate (GdImage $image, int $red, int $green, int $blue): int|false {} +function imagecolorallocate(GdImage $image, int $red, int $green, int $blue): int|false {} /** * Copy the palette from one image to another @@ -221,7 +221,7 @@ function imagecolorallocate (GdImage $image, int $red, int $green, int $blue): i *

    * @return void No value is returned. */ -function imagepalettecopy (GdImage $dst, GdImage $src): void {} +function imagepalettecopy(GdImage $dst, GdImage $src): void {} /** * Create a new image from the image stream in the string @@ -234,7 +234,7 @@ function imagepalettecopy (GdImage $dst, GdImage $src): void {} * or the image is corrupt and cannot be loaded. */ #[Pure] -function imagecreatefromstring (string $data): GdImage|false {} +function imagecreatefromstring(string $data): GdImage|false {} /** * Get the index of the closest color to the specified color @@ -247,7 +247,7 @@ function imagecreatefromstring (string $data): GdImage|false {} * the specified one or FALSE on failure */ #[Pure] -function imagecolorclosest (GdImage $image, int $red, int $green, int $blue): int|false {} +function imagecolorclosest(GdImage $image, int $red, int $green, int $blue): int|false {} /** * Get the index of the color which has the hue, white and blackness @@ -260,7 +260,7 @@ function imagecolorclosest (GdImage $image, int $red, int $green, int $blue): in * the hue, white and blackness nearest the given color or FALSE on failure */ #[Pure] -function imagecolorclosesthwb (GdImage $image, int $red, int $green, int $blue): int|false {} +function imagecolorclosesthwb(GdImage $image, int $red, int $green, int $blue): int|false {} /** * De-allocate a color for an image @@ -271,7 +271,7 @@ function imagecolorclosesthwb (GdImage $image, int $red, int $green, int $blue): *

    * @return bool TRUE on success or FALSE on failure. */ -function imagecolordeallocate (GdImage $image, int $color): bool {} +function imagecolordeallocate(GdImage $image, int $color): bool {} /** * Get the index of the specified color or its closest possible alternative @@ -283,7 +283,7 @@ function imagecolordeallocate (GdImage $image, int $color): bool {} * @return int|false a color index or FALSE on failure */ #[Pure] -function imagecolorresolve (GdImage $image, int $red, int $green, int $blue): int|false {} +function imagecolorresolve(GdImage $image, int $red, int $green, int $blue): int|false {} /** * Get the index of the specified color @@ -296,7 +296,7 @@ function imagecolorresolve (GdImage $image, int $red, int $green, int $blue): in * color does not exist, or FALSE on failure */ #[Pure] -function imagecolorexact (GdImage $image, int $red, int $green, int $blue): int|false {} +function imagecolorexact(GdImage $image, int $red, int $green, int $blue): int|false {} /** * Set the color for the specified palette index @@ -313,7 +313,7 @@ function imagecolorexact (GdImage $image, int $red, int $green, int $blue): int| *

    * @return bool|null */ -function imagecolorset (GdImage $image, int $color, int $red, int $green, int $blue, int $alpha = 0): ?bool {} +function imagecolorset(GdImage $image, int $color, int $red, int $green, int $blue, int $alpha = 0): ?bool {} /** * Define a color as transparent @@ -328,7 +328,7 @@ function imagecolorset (GdImage $image, int $color, int $red, int $green, int $b * is not specified, and the image has no transparent color, the * returned identifier will be -1. */ -function imagecolortransparent (GdImage $image, ?int $color = null): ?int {} +function imagecolortransparent(GdImage $image, ?int $color = null): ?int {} /** * Find out the number of colors in an image's palette @@ -341,7 +341,7 @@ function imagecolortransparent (GdImage $image, ?int $color = null): ?int {} * truecolor images, or FALSE on failure */ #[Pure] -function imagecolorstotal (GdImage $image): int {} +function imagecolorstotal(GdImage $image): int {} /** * Get the colors for an index @@ -354,7 +354,7 @@ function imagecolorstotal (GdImage $image): int {} * contain the appropriate values for the specified color index or FALSE on failure */ #[Pure] -function imagecolorsforindex (GdImage $image, int $color): array|false {} +function imagecolorsforindex(GdImage $image, int $color): array|false {} /** * Copy part of an image @@ -385,7 +385,7 @@ function imagecolorsforindex (GdImage $image, int $color): array|false {} *

    * @return bool true on success or false on failure. */ -function imagecopy (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height): bool {} +function imagecopy(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height): bool {} /** * Copy and merge part of an image @@ -423,7 +423,7 @@ function imagecopy (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst *

    * @return bool true on success or false on failure. */ -function imagecopymerge (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): bool {} +function imagecopymerge(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): bool {} /** * Copy and merge part of an image with gray scale @@ -461,7 +461,7 @@ function imagecopymerge (GdImage $dst_image, GdImage $src_image, int $dst_x, int *

    * @return bool true on success or false on failure. */ -function imagecopymergegray (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): bool {} +function imagecopymergegray(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): bool {} /** * Copy and resize part of an image @@ -494,7 +494,7 @@ function imagecopymergegray (GdImage $dst_image, GdImage $src_image, int $dst_x, *

    * @return bool true on success or false on failure. */ -function imagecopyresized (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): bool {} +function imagecopyresized(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): bool {} /** * Create a new palette based image @@ -508,7 +508,7 @@ function imagecopyresized (GdImage $dst_image, GdImage $src_image, int $dst_x, i * @return resource|GdImage|false an image resource identifier on success, false on errors. */ #[Pure] -function imagecreate (int $width, int $height): GdImage|false {} +function imagecreate(int $width, int $height): GdImage|false {} /** * Create a new true color image @@ -522,7 +522,7 @@ function imagecreate (int $width, int $height): GdImage|false {} * @return resource|GdImage|false an image resource identifier on success, false on errors. */ #[Pure] -function imagecreatetruecolor (int $width, int $height): GdImage|false {} +function imagecreatetruecolor(int $width, int $height): GdImage|false {} /** * Finds whether an image is a truecolor image @@ -532,7 +532,7 @@ function imagecreatetruecolor (int $width, int $height): GdImage|false {} * otherwise. */ #[Pure] -function imageistruecolor (GdImage $image): bool {} +function imageistruecolor(GdImage $image): bool {} /** * Convert a true color image to a palette image @@ -548,7 +548,7 @@ function imageistruecolor (GdImage $image): bool {} *

    * @return bool true on success or false on failure. */ -function imagetruecolortopalette (GdImage $image, bool $dither, int $num_colors): bool {} +function imagetruecolortopalette(GdImage $image, bool $dither, int $num_colors): bool {} /** * Set the thickness for line drawing @@ -559,7 +559,7 @@ function imagetruecolortopalette (GdImage $image, bool $dither, int $num_colors) *

    * @return bool true on success or false on failure. */ -function imagesetthickness (GdImage $image, int $thickness): bool {} +function imagesetthickness(GdImage $image, int $thickness): bool {} /** * Draw a partial arc and fill it @@ -594,7 +594,7 @@ function imagesetthickness (GdImage $image, int $thickness): bool {} * IMG_ARC_PIE

    * @return bool true on success or false on failure. */ -function imagefilledarc (GdImage $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color, int $style): bool {} +function imagefilledarc(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color, int $style): bool {} /** * Draw a filled ellipse @@ -618,7 +618,7 @@ function imagefilledarc (GdImage $image, int $center_x, int $center_y, int $widt *

    * @return bool true on success or false on failure. */ -function imagefilledellipse (GdImage $image, int $center_x, int $center_y, int $width, int $height, int $color): bool {} +function imagefilledellipse(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $color): bool {} /** * Set the blending mode for an image @@ -630,7 +630,7 @@ function imagefilledellipse (GdImage $image, int $center_x, int $center_y, int $ *

    * @return bool true on success or false on failure. */ -function imagealphablending (GdImage $image, bool $enable): bool {} +function imagealphablending(GdImage $image, bool $enable): bool {} /** * Set the flag to save full alpha channel information (as opposed to single-color transparency) when saving PNG images @@ -641,7 +641,7 @@ function imagealphablending (GdImage $image, bool $enable): bool {} *

    * @return bool true on success or false on failure. */ -function imagesavealpha (GdImage $image, bool $enable): bool {} +function imagesavealpha(GdImage $image, bool $enable): bool {} /** * Allocate a color for an image @@ -663,7 +663,7 @@ function imagesavealpha (GdImage $image, bool $enable): bool {} *

    * @return int|false A color identifier or false if the allocation failed. */ -function imagecolorallocatealpha (GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {} +function imagecolorallocatealpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {} /** * Get the index of the specified color + alpha or its closest possible alternative @@ -686,7 +686,7 @@ function imagecolorallocatealpha (GdImage $image, int $red, int $green, int $blu * @return int|false a color index or FALSE on failure */ #[Pure] -function imagecolorresolvealpha (GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {} +function imagecolorresolvealpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {} /** * Get the index of the closest color to the specified color + alpha @@ -710,7 +710,7 @@ function imagecolorresolvealpha (GdImage $image, int $red, int $green, int $blue * FALSE on failure */ #[Pure] -function imagecolorclosestalpha (GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {} +function imagecolorclosestalpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {} /** * Get the index of the specified color + alpha @@ -735,7 +735,7 @@ function imagecolorclosestalpha (GdImage $image, int $red, int $green, int $blue * on failure */ #[Pure] -function imagecolorexactalpha (GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {} +function imagecolorexactalpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {} /** * Copy and resize part of an image with resampling @@ -768,7 +768,7 @@ function imagecolorexactalpha (GdImage $image, int $red, int $green, int $blue, *

    * @return bool true on success or false on failure. */ -function imagecopyresampled (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): bool {} +function imagecopyresampled(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): bool {} /** * Rotate an image with a given angle @@ -785,7 +785,7 @@ function imagecopyresampled (GdImage $dst_image, GdImage $src_image, int $dst_x, *

    * @return resource|GdImage|false the rotated image or FALSE on failure */ -function imagerotate (GdImage $image, float $angle, int $background_color, bool $ignore_transparent = false): GdImage|false {} +function imagerotate(GdImage $image, float $angle, int $background_color, bool $ignore_transparent = false): GdImage|false {} /** * Should antialias functions be used or not.
    @@ -797,7 +797,7 @@ function imagerotate (GdImage $image, float $angle, int $background_color, bool *

    * @return bool true on success or false on failure. */ -function imageantialias (GdImage $image, bool $enable): bool {} +function imageantialias(GdImage $image, bool $enable): bool {} /** * Set the tile image for filling @@ -808,7 +808,7 @@ function imageantialias (GdImage $image, bool $enable): bool {} *

    * @return bool true on success or false on failure. */ -function imagesettile (GdImage $image, GdImage $tile): bool {} +function imagesettile(GdImage $image, GdImage $tile): bool {} /** * Set the brush image for line drawing @@ -819,7 +819,7 @@ function imagesettile (GdImage $image, GdImage $tile): bool {} *

    * @return bool true on success or false on failure. */ -function imagesetbrush (GdImage $image, GdImage $brush): bool {} +function imagesetbrush(GdImage $image, GdImage $brush): bool {} /** * Set the style for line drawing @@ -832,7 +832,7 @@ function imagesetbrush (GdImage $image, GdImage $brush): bool {} *

    * @return bool true on success or false on failure. */ -function imagesetstyle (GdImage $image, array $style): bool {} +function imagesetstyle(GdImage $image, array $style): bool {} /** * Create a new image from file or URL @@ -842,7 +842,7 @@ function imagesetstyle (GdImage $image, array $style): bool {} *

    * @return resource|GdImage|false an image resource identifier on success, false on errors. */ -function imagecreatefrompng (string $filename): GdImage|false {} +function imagecreatefrompng(string $filename): GdImage|false {} /** * Create a new image from file or URL @@ -852,7 +852,7 @@ function imagecreatefrompng (string $filename): GdImage|false {} *

    * @return resource|GdImage|false an image resource identifier on success, false on errors. */ -function imagecreatefromgif (string $filename): GdImage|false {} +function imagecreatefromgif(string $filename): GdImage|false {} /** * Create a new image from file or URL @@ -862,7 +862,7 @@ function imagecreatefromgif (string $filename): GdImage|false {} *

    * @return resource|GdImage|false an image resource identifier on success, false on errors. */ -function imagecreatefromjpeg (string $filename): GdImage|false {} +function imagecreatefromjpeg(string $filename): GdImage|false {} /** * Create a new image from file or URL @@ -872,7 +872,7 @@ function imagecreatefromjpeg (string $filename): GdImage|false {} *

    * @return resource|GdImage|false an image resource identifier on success, false on errors. */ -function imagecreatefromwbmp (string $filename): GdImage|false {} +function imagecreatefromwbmp(string $filename): GdImage|false {} /** * Create a new image from file or URL @@ -883,7 +883,7 @@ function imagecreatefromwbmp (string $filename): GdImage|false {} * @return resource|GdImage|false an image resource identifier on success, false on errors. * @since 5.4 */ -function imagecreatefromwebp (string $filename): GdImage|false {} +function imagecreatefromwebp(string $filename): GdImage|false {} /** * Create a new image from file or URL @@ -893,7 +893,7 @@ function imagecreatefromwebp (string $filename): GdImage|false {} *

    * @return resource|GdImage|false an image resource identifier on success, false on errors. */ -function imagecreatefromxbm (string $filename): GdImage|false {} +function imagecreatefromxbm(string $filename): GdImage|false {} /** * Create a new image from file or URL @@ -903,7 +903,7 @@ function imagecreatefromxbm (string $filename): GdImage|false {} *

    * @return resource|GdImage|false an image resource identifier on success, false on errors. */ -function imagecreatefromxpm (string $filename): GdImage|false {} +function imagecreatefromxpm(string $filename): GdImage|false {} /** * Create a new image from GD file or URL @@ -913,7 +913,7 @@ function imagecreatefromxpm (string $filename): GdImage|false {} *

    * @return resource|GdImage|false an image resource identifier on success, false on errors. */ -function imagecreatefromgd (string $filename): GdImage|false {} +function imagecreatefromgd(string $filename): GdImage|false {} /** * Create a new image from GD2 file or URL @@ -923,7 +923,7 @@ function imagecreatefromgd (string $filename): GdImage|false {} *

    * @return resource|GdImage|false an image resource identifier on success, false on errors. */ -function imagecreatefromgd2 (string $filename): GdImage|false {} +function imagecreatefromgd2(string $filename): GdImage|false {} /** * Create a new image from a given part of GD2 file or URL @@ -945,7 +945,7 @@ function imagecreatefromgd2 (string $filename): GdImage|false {} *

    * @return resource|GdImage|false an image resource identifier on success, false on errors. */ -function imagecreatefromgd2part (string $filename, int $x, int $y, int $width, int $height): GdImage|false {} +function imagecreatefromgd2part(string $filename, int $x, int $y, int $width, int $height): GdImage|false {} /** * Output a PNG image to either the browser or a file @@ -971,7 +971,7 @@ function imagecreatefromgd2part (string $filename, int $x, int $y, int $width, i *

    * @return bool true on success or false on failure. */ -function imagepng (GdImage $image, $file = null, int $quality = -1, int $filters = -1): bool {} +function imagepng(GdImage $image, $file = null, int $quality = -1, int $filters = -1): bool {} /** * Output a WebP image to browser or file @@ -987,7 +987,7 @@ function imagepng (GdImage $image, $file = null, int $quality = -1, int $filters * @return bool true on success or false on failure. * @since 5.4 */ -function imagewebp ($image, $to = null, $quality = 80): bool {} +function imagewebp($image, $to = null, $quality = 80): bool {} /** * Output image to browser or file @@ -999,7 +999,7 @@ function imagewebp ($image, $to = null, $quality = 80): bool {} *

    * @return bool true on success or false on failure. */ -function imagegif (GdImage $image, $file = null): bool {} +function imagegif(GdImage $image, $file = null): bool {} /** * Output image to browser or file @@ -1020,7 +1020,7 @@ function imagegif (GdImage $image, $file = null): bool {} *

    * @return bool true on success or false on failure. */ -function imagejpeg ($image, $filename = null, $quality = null): bool {} +function imagejpeg($image, $filename = null, $quality = null): bool {} /** * Output image to browser or file @@ -1037,7 +1037,7 @@ function imagejpeg ($image, $filename = null, $quality = null): bool {} *

    * @return bool true on success or false on failure. */ -function imagewbmp (GdImage $image, $file = null, ?int $foreground_color = null): bool {} +function imagewbmp(GdImage $image, $file = null, ?int $foreground_color = null): bool {} /** * Output GD image to browser or file.
    @@ -1050,7 +1050,7 @@ function imagewbmp (GdImage $image, $file = null, ?int $foreground_color = null) *

    * @return bool true on success or false on failure. */ -function imagegd (GdImage $image, ?string $file = null): bool {} +function imagegd(GdImage $image, ?string $file = null): bool {} /** * Output GD2 image to browser or file @@ -1070,7 +1070,7 @@ function imagegd (GdImage $image, ?string $file = null): bool {} *

    * @return bool true on success or false on failure. */ -function imagegd2 (GdImage $image, ?string $file = null, int $chunk_size = null, int $mode = null): bool {} +function imagegd2(GdImage $image, ?string $file = null, int $chunk_size = null, int $mode = null): bool {} /** * Destroy an image @@ -1078,7 +1078,7 @@ function imagegd2 (GdImage $image, ?string $file = null, int $chunk_size = null, * @param resource|GdImage $image * @return bool true on success or false on failure. */ -function imagedestroy (GdImage $image): bool {} +function imagedestroy(GdImage $image): bool {} /** * Apply a gamma correction to a GD image @@ -1092,7 +1092,7 @@ function imagedestroy (GdImage $image): bool {} *

    * @return bool true on success or false on failure. */ -function imagegammacorrect (GdImage $image, float $input_gamma, float $output_gamma): bool {} +function imagegammacorrect(GdImage $image, float $input_gamma, float $output_gamma): bool {} /** * Flood fill @@ -1110,7 +1110,7 @@ function imagegammacorrect (GdImage $image, float $input_gamma, float $output_ga *

    * @return bool true on success or false on failure. */ -function imagefill (GdImage $image, int $x, int $y, int $color): bool {} +function imagefill(GdImage $image, int $x, int $y, int $color): bool {} /** * Draw a filled polygon @@ -1129,7 +1129,7 @@ function imagefill (GdImage $image, int $x, int $y, int $color): bool {} *

    * @return bool true on success or false on failure. */ -function imagefilledpolygon (GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {} +function imagefilledpolygon(GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {} /** * Draw a filled rectangle @@ -1153,7 +1153,7 @@ function imagefilledpolygon (GdImage $image, array $points, int $num_points_or_c *

    * @return bool true on success or false on failure. */ -function imagefilledrectangle (GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {} +function imagefilledrectangle(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {} /** * Flood fill to specific color @@ -1175,7 +1175,7 @@ function imagefilledrectangle (GdImage $image, int $x1, int $y1, int $x2, int $y *

    * @return bool true on success or false on failure. */ -function imagefilltoborder (GdImage $image, int $x, int $y, int $border_color, int $color): bool {} +function imagefilltoborder(GdImage $image, int $x, int $y, int $border_color, int $color): bool {} /** * Get font width @@ -1184,7 +1184,7 @@ function imagefilltoborder (GdImage $image, int $x, int $y, int $border_color, i * @return int the width of the pixel */ #[Pure] -function imagefontwidth (int $font): int {} +function imagefontwidth(int $font): int {} /** * Get font height @@ -1193,7 +1193,7 @@ function imagefontwidth (int $font): int {} * @return int the height of the pixel. */ #[Pure] -function imagefontheight (int $font): int {} +function imagefontheight(int $font): int {} /** * Enable or disable interlace @@ -1206,7 +1206,7 @@ function imagefontheight (int $font): int {} * @return int|null 1 if the interlace bit is set for the image, * 0 if it is not */ -function imageinterlace (GdImage $image, ?bool $enable = null): ?int {} +function imageinterlace(GdImage $image, ?bool $enable = null): ?int {} /** * Draw a line @@ -1230,7 +1230,7 @@ function imageinterlace (GdImage $image, ?bool $enable = null): ?int {} *

    * @return bool true on success or false on failure. */ -function imageline (GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {} +function imageline(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {} /** * Load a new font @@ -1283,7 +1283,7 @@ function imageline (GdImage $image, int $x1, int $y1, int $x2, int $y2, int $col * @return int|false The font identifier which is always bigger than 5 to avoid conflicts with * built-in fonts or false on errors. */ -function imageloadfont (string $filename): int|false {} +function imageloadfont(string $filename): int|false {} /** * Draws a polygon @@ -1317,7 +1317,7 @@ function imageloadfont (string $filename): int|false {} *

    * @return bool true on success or false on failure. */ -function imagepolygon (GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {} +function imagepolygon(GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {} /** * Draw a rectangle @@ -1342,7 +1342,7 @@ function imagepolygon (GdImage $image, array $points, int $num_points_or_color, *

    * @return bool true on success or false on failure. */ -function imagerectangle (GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {} +function imagerectangle(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {} /** * Set a single pixel @@ -1360,7 +1360,7 @@ function imagerectangle (GdImage $image, int $x1, int $y1, int $x2, int $y2, int *

    * @return bool true on success or false on failure. */ -function imagesetpixel (GdImage $image, int $x, int $y, int $color): bool {} +function imagesetpixel(GdImage $image, int $x, int $y, int $color): bool {} /** * Draw a string horizontally @@ -1382,7 +1382,7 @@ function imagesetpixel (GdImage $image, int $x, int $y, int $color): bool {} *

    * @return bool true on success or false on failure. */ -function imagestring (GdImage $image, int $font, int $x, int $y, string $string, int $color): bool {} +function imagestring(GdImage $image, int $font, int $x, int $y, string $string, int $color): bool {} /** * Draw a string vertically @@ -1404,7 +1404,7 @@ function imagestring (GdImage $image, int $font, int $x, int $y, string $string, *

    * @return bool true on success or false on failure. */ -function imagestringup (GdImage $image, int $font, int $x, int $y, string $string, int $color): bool {} +function imagestringup(GdImage $image, int $font, int $x, int $y, string $string, int $color): bool {} /** * Get image width @@ -1414,7 +1414,7 @@ function imagestringup (GdImage $image, int $font, int $x, int $y, string $strin * errors. */ #[Pure] -function imagesx (GdImage $image): int {} +function imagesx(GdImage $image): int {} /** * Get image height @@ -1424,7 +1424,7 @@ function imagesx (GdImage $image): int {} * errors. */ #[Pure] -function imagesy (GdImage $image): int {} +function imagesy(GdImage $image): int {} /** * Draw a dashed line @@ -1451,7 +1451,7 @@ function imagesy (GdImage $image): int {} * @see imageline() */ #[Deprecated("Use combination of imagesetstyle() and imageline() instead")] -function imagedashedline (GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {} +function imagedashedline(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {} /** * Give the bounding box of a text using TrueType fonts @@ -1518,7 +1518,7 @@ function imagedashedline (GdImage $image, int $x1, int $y1, int $x2, int $y2, in * corner seeing the text horizontally. */ #[Pure] -function imagettfbbox ($size, $angle, $fontfile, $text) {} +function imagettfbbox($size, $angle, $fontfile, $text) {} /** * Write text to the image using TrueType fonts @@ -1610,7 +1610,7 @@ function imagettfbbox ($size, $angle, $fontfile, $text) {} * corner when you see the text horizontally. * Returns false on error. */ -function imagettftext ($image, $size, $angle, $x, $y, $color, $fontfile, $text) {} +function imagettftext($image, $size, $angle, $x, $y, $color, $fontfile, $text) {} /** * Give the bounding box of a text using fonts via freetype2 @@ -1690,7 +1690,7 @@ function imagettftext ($image, $size, $angle, $x, $y, $color, $fontfile, $text) * Returns false on error. */ #[Pure] -function imageftbbox ($size, $angle, $fontfile, $text, $extrainfo = null ) {} +function imageftbbox($size, $angle, $fontfile, $text, $extrainfo = null) {} /** * Write text to the image using fonts using FreeType 2 @@ -1808,7 +1808,7 @@ function imageftbbox ($size, $angle, $fontfile, $text, $extrainfo = null ) {} * * Returns false on error. */ -function imagefttext ($image, $size, $angle, $x, $y, $color, $fontfile, $text, $extrainfo = null ) {} +function imagefttext($image, $size, $angle, $x, $y, $color, $fontfile, $text, $extrainfo = null) {} /** * Load a PostScript Type 1 font from file @@ -1820,7 +1820,7 @@ function imagefttext ($image, $size, $angle, $x, $y, $color, $fontfile, $text, $ * can be used for further purposes. Otherwise the function returns false. * @removed 7.0 This function was REMOVED in PHP 7.0.0. */ -function imagepsloadfont ($filename) {} +function imagepsloadfont($filename) {} /** * Free memory used by a PostScript Type 1 font @@ -1831,7 +1831,7 @@ function imagepsloadfont ($filename) {} * @return bool true on success or false on failure. * @removed 7.0 */ -function imagepsfreefont ($font_index) {} +function imagepsfreefont($font_index) {} /** * Change the character encoding vector of a font @@ -1848,7 +1848,7 @@ function imagepsfreefont ($font_index) {} * @return bool true on success or false on failure. * @removed 7.0 */ -function imagepsencodefont ($font_index, $encodingfile) {} +function imagepsencodefont($font_index, $encodingfile) {} /** * Extend or condense a font @@ -1862,7 +1862,7 @@ function imagepsencodefont ($font_index, $encodingfile) {} * @return bool true on success or false on failure. * @removed 7.0 */ -function imagepsextendfont ($font_index, $extend) {} +function imagepsextendfont($font_index, $extend) {} /** * Slant a font @@ -1876,7 +1876,7 @@ function imagepsextendfont ($font_index, $extend) {} * @return bool true on success or false on failure. * @removed 7.0 This function was REMOVED in PHP 7.0.0. */ -function imagepsslantfont ($font_index, $slant) {} +function imagepsslantfont($font_index, $slant) {} /** * Draws a text over an image using PostScript Type1 fonts @@ -1949,7 +1949,7 @@ function imagepsslantfont ($font_index, $slant) {} * Returns false on error. * @removed 7.0 This function was REMOVED in PHP 7.0.0. */ -function imagepstext ($image, $text, $font_index, $size, $foreground, $background, $x, $y, $space = null, $tightness = null, $angle = null, $antialias_steps = null) {} +function imagepstext($image, $text, $font_index, $size, $foreground, $background, $x, $y, $space = null, $tightness = null, $angle = null, $antialias_steps = null) {} /** * Give the bounding box of a text rectangle using PostScript Type1 fonts @@ -1981,7 +1981,7 @@ function imagepstext ($image, $text, $font_index, $size, $foreground, $backgroun * Returns false on error. * @removed 7.0 */ -function imagepsbbox ($text, $font, $size) {} +function imagepsbbox($text, $font, $size) {} /** * Return the image types supported by this PHP build @@ -1991,7 +1991,7 @@ function imagepsbbox ($text, $font, $size) {} * IMG_BMP | IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP | IMG_XPM | IMG_WEBP */ #[Pure] -function imagetypes (): int {} +function imagetypes(): int {} /** * Convert JPEG image file to WBMP image file @@ -2016,7 +2016,7 @@ function imagetypes (): int {} * @see imagecreatefromjpeg() */ #[Deprecated(reason: "Use imagecreatefromjpeg() and imagewbmp() instead", since: "7.2")] -function jpeg2wbmp ($jpegname, $wbmpname, $dest_height, $dest_width, $threshold) {} +function jpeg2wbmp($jpegname, $wbmpname, $dest_height, $dest_width, $threshold) {} /** * Convert PNG image file to WBMP image file @@ -2042,7 +2042,7 @@ function jpeg2wbmp ($jpegname, $wbmpname, $dest_height, $dest_width, $threshold) * @see imagewbmp() */ #[Deprecated("Use imagecreatefrompng() and imagewbmp() instead", since: "7.2")] -function png2wbmp ($pngname, $wbmpname, $dest_height, $dest_width, $threshold) {} +function png2wbmp($pngname, $wbmpname, $dest_height, $dest_width, $threshold) {} /** * Output image to browser or file @@ -2060,7 +2060,7 @@ function png2wbmp ($pngname, $wbmpname, $dest_height, $dest_width, $threshold) { * @see imagewbmp() */ #[Deprecated(replacement: "imagewbmp(%parametersList%)", since: "7.3")] -function image2wbmp ($image, $filename = null, $threshold = null) {} +function image2wbmp($image, $filename = null, $threshold = null) {} /** * Set the alpha blending flag to use the bundled libgd layering effects @@ -2073,7 +2073,7 @@ function image2wbmp ($image, $filename = null, $threshold = null) {} * imagealphablending)

    * @return bool true on success or false on failure. */ -function imagelayereffect (GdImage $image, int $effect): bool {} +function imagelayereffect(GdImage $image, int $effect): bool {} /** * Makes the colors of the palette version of an image more closely match the true color version @@ -2087,7 +2087,7 @@ function imagelayereffect (GdImage $image, int $effect): bool {} *

    * @return bool true on success or false on failure. */ -function imagecolormatch (GdImage $image1, GdImage $image2): bool {} +function imagecolormatch(GdImage $image1, GdImage $image2): bool {} /** * Output XBM image to browser or file @@ -2104,7 +2104,7 @@ function imagecolormatch (GdImage $image1, GdImage $image2): bool {} *

    * @return bool true on success or false on failure. */ -function imagexbm (GdImage $image, ?string $filename, ?int $foreground_color = null): bool {} +function imagexbm(GdImage $image, ?string $filename, ?int $foreground_color = null): bool {} /** * Applies a filter to an image @@ -2117,7 +2117,7 @@ function imagexbm (GdImage $image, ?string $filename, ?int $foreground_color = n * @param int ...$args * @return bool true on success or false on failure. */ -function imagefilter (GdImage $image, int $filter, ...$args): bool {} +function imagefilter(GdImage $image, int $filter, ...$args): bool {} /** * Apply a 3x3 convolution matrix, using coefficient and offset @@ -2134,7 +2134,7 @@ function imagefilter (GdImage $image, int $filter, ...$args): bool {} *

    * @return bool true on success or false on failure. */ -function imageconvolution (GdImage $image, array $matrix, float $divisor, float $offset): bool {} +function imageconvolution(GdImage $image, array $matrix, float $divisor, float $offset): bool {} /** * @param resource|GdImage $image An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}. @@ -2144,8 +2144,7 @@ function imageconvolution (GdImage $image, array $matrix, float $divisor, float * @link https://php.net/manual/en/function.imageresolution.php * @since 7.2 */ -function imageresolution (GdImage $image, ?int $resolution_x = 96, ?int $resolution_y = 96): array|bool {} - +function imageresolution(GdImage $image, ?int $resolution_x = 96, ?int $resolution_y = 96): array|bool {} /** * imagesetclip() sets the current clipping rectangle, i.e. the area beyond which no pixels will be drawn. @@ -2159,7 +2158,7 @@ function imageresolution (GdImage $image, ?int $resolution_x = 96, ?int $resolut * @see imagegetclip() * @since 7.2 */ -function imagesetclip (GdImage $image, int $x1, int $y1, int $x2, int $y2): bool {} +function imagesetclip(GdImage $image, int $x1, int $y1, int $x2, int $y2): bool {} /** * imagegetclip() retrieves the current clipping rectangle, i.e. the area beyond which no pixels will be drawn. @@ -2176,7 +2175,7 @@ function imagesetclip (GdImage $image, int $x1, int $y1, int $x2, int $y2): bool * @see imagesetclip() * @since 7.2 */ -function imagegetclip (GdImage $image): array {} +function imagegetclip(GdImage $image): array {} /** * imageopenpolygon() draws an open polygon on the given image. Contrary to {@see imagepolygon()}, no line is drawn between the last and the first point. @@ -2195,7 +2194,7 @@ function imagegetclip (GdImage $image): array {} * @since 7.2 * @see imageplygon() */ -function imageopenpolygon (GdImage $image , array $points, int $num_points_or_color, ?int $color = null): bool {} +function imageopenpolygon(GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {} /** * imagecreatefrombmp() returns an image identifier representing the image obtained from the given filename. @@ -2220,7 +2219,7 @@ function imagecreatefrombmp(string $filename): GdImage|false {} * @link https://php.net/manual/en/function.imagebmp.php * @since 7.2 */ -function imagebmp (GdImage $image, $file = null, bool $compressed = true): bool {} +function imagebmp(GdImage $image, $file = null, bool $compressed = true): bool {} /** * @param string $filename @@ -2259,19 +2258,19 @@ function imagegrabwindow($handle, $client_area = null) {} * @return int */ #[Pure] -function imagegetinterpolation (GdImage $image): int {} +function imagegetinterpolation(GdImage $image): int {} /** * Used as a return value by {@see imagetypes()} * @link https://php.net/manual/en/image.constants.php#constant.img-gif */ -define ('IMG_GIF', 1); +define('IMG_GIF', 1); /** * Used as a return value by {@see imagetypes()} * @link https://php.net/manual/en/image.constants.php#constant.img-jpg */ -define ('IMG_JPG', 2); +define('IMG_JPG', 2); /** * Used as a return value by {@see imagetypes()} @@ -2280,25 +2279,25 @@ function imagegetinterpolation (GdImage $image): int {} *

    * @link https://php.net/manual/en/image.constants.php#constant.img-jpeg */ -define ('IMG_JPEG', 2); +define('IMG_JPEG', 2); /** * Used as a return value by {@see imagetypes()} * @link https://php.net/manual/en/image.constants.php#constant.img-png */ -define ('IMG_PNG', 4); +define('IMG_PNG', 4); /** * Used as a return value by {@see imagetypes()} * @link https://php.net/manual/en/image.constants.php#constant.img-wbmp */ -define ('IMG_WBMP', 8); +define('IMG_WBMP', 8); /** * Used as a return value by {@see imagetypes()} * @link https://php.net/manual/en/image.constants.php#constant.img-xpm */ -define ('IMG_XPM', 16); +define('IMG_XPM', 16); /** * Used as a return value by {@see imagetypes()} @@ -2320,35 +2319,35 @@ function imagegetinterpolation (GdImage $image): int {} * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()} * @link https://php.net/manual/en/image.constants.php#constant.img-color-tiled */ -define ('IMG_COLOR_TILED', -5); +define('IMG_COLOR_TILED', -5); /** * Special color option which can be used instead of color allocated with * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()} * @link https://php.net/manual/en/image.constants.php#constant.img-color-styled */ -define ('IMG_COLOR_STYLED', -2); +define('IMG_COLOR_STYLED', -2); /** * Special color option which can be used instead of color allocated with * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()} * @link https://php.net/manual/en/image.constants.php#constant.img-color-brushed */ -define ('IMG_COLOR_BRUSHED', -3); +define('IMG_COLOR_BRUSHED', -3); /** * Special color option which can be used instead of color allocated with * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()} * @link https://php.net/manual/en/image.constants.php#constant.img-color-styledbrushed */ -define ('IMG_COLOR_STYLEDBRUSHED', -4); +define('IMG_COLOR_STYLEDBRUSHED', -4); /** * Special color option which can be used instead of color allocated with * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()} * @link https://php.net/manual/en/image.constants.php#constant.img-color-transparent */ -define ('IMG_COLOR_TRANSPARENT', -6); +define('IMG_COLOR_TRANSPARENT', -6); /** * A style constant used by the {@see imagefilledarc()} function. @@ -2357,238 +2356,237 @@ function imagegetinterpolation (GdImage $image): int {} *

    * @link https://php.net/manual/en/image.constants.php#constant.img-arc-rounded */ -define ('IMG_ARC_ROUNDED', 0); +define('IMG_ARC_ROUNDED', 0); /** * A style constant used by the {@see imagefilledarc()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-pie */ -define ('IMG_ARC_PIE', 0); +define('IMG_ARC_PIE', 0); /** * A style constant used by the {@see imagefilledarc()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-chord */ -define ('IMG_ARC_CHORD', 1); +define('IMG_ARC_CHORD', 1); /** * A style constant used by the {@see imagefilledarc()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-nofill */ -define ('IMG_ARC_NOFILL', 2); +define('IMG_ARC_NOFILL', 2); /** * A style constant used by the {@see imagefilledarc()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-edged */ -define ('IMG_ARC_EDGED', 4); +define('IMG_ARC_EDGED', 4); /** * A type constant used by the {@see imagegd2()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-gd2-raw */ -define ('IMG_GD2_RAW', 1); +define('IMG_GD2_RAW', 1); /** * A type constant used by the {@see imagegd2()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-gd2-compressed */ -define ('IMG_GD2_COMPRESSED', 2); +define('IMG_GD2_COMPRESSED', 2); /** * Alpha blending effect used by the {@see imagelayereffect()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-replace */ -define ('IMG_EFFECT_REPLACE', 0); +define('IMG_EFFECT_REPLACE', 0); /** * Alpha blending effect used by the {@see imagelayereffect()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-alphablend */ -define ('IMG_EFFECT_ALPHABLEND', 1); +define('IMG_EFFECT_ALPHABLEND', 1); /** * Alpha blending effect used by the {@see imagelayereffect()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-normal */ -define ('IMG_EFFECT_NORMAL', 2); +define('IMG_EFFECT_NORMAL', 2); /** * Alpha blending effect used by the {@see imagelayereffect()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-overlay */ -define ('IMG_EFFECT_OVERLAY', 3); +define('IMG_EFFECT_OVERLAY', 3); /** * Alpha blending effect used by the {@see imagelayereffect()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-multiply * @since 7.2 */ -define ('IMG_EFFECT_MULTIPLY', 4); +define('IMG_EFFECT_MULTIPLY', 4); /** * When the bundled version of GD is used this is 1 otherwise * it's set to 0. * @link https://php.net/manual/en/image.constants.php */ -define ('GD_BUNDLED', 1); +define('GD_BUNDLED', 1); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-negate */ -define ('IMG_FILTER_NEGATE', 0); +define('IMG_FILTER_NEGATE', 0); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-grayscale */ -define ('IMG_FILTER_GRAYSCALE', 1); +define('IMG_FILTER_GRAYSCALE', 1); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-brightness */ -define ('IMG_FILTER_BRIGHTNESS', 2); +define('IMG_FILTER_BRIGHTNESS', 2); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-contrast */ -define ('IMG_FILTER_CONTRAST', 3); +define('IMG_FILTER_CONTRAST', 3); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-colorize */ -define ('IMG_FILTER_COLORIZE', 4); +define('IMG_FILTER_COLORIZE', 4); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-edgedetect */ -define ('IMG_FILTER_EDGEDETECT', 5); +define('IMG_FILTER_EDGEDETECT', 5); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-gaussian-blur */ -define ('IMG_FILTER_GAUSSIAN_BLUR', 7); +define('IMG_FILTER_GAUSSIAN_BLUR', 7); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-selective-blur */ -define ('IMG_FILTER_SELECTIVE_BLUR', 8); +define('IMG_FILTER_SELECTIVE_BLUR', 8); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-emboss */ -define ('IMG_FILTER_EMBOSS', 6); +define('IMG_FILTER_EMBOSS', 6); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-mean-removal */ -define ('IMG_FILTER_MEAN_REMOVAL', 9); +define('IMG_FILTER_MEAN_REMOVAL', 9); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-smooth */ -define ('IMG_FILTER_SMOOTH', 10); +define('IMG_FILTER_SMOOTH', 10); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-pixelate */ -define ('IMG_FILTER_PIXELATE', 11); +define('IMG_FILTER_PIXELATE', 11); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-scatter * @since 7.4 */ -define ('IMG_FILTER_SCATTER', 12); +define('IMG_FILTER_SCATTER', 12); /** * The GD version PHP was compiled against. * @since 5.2.4 * @link https://php.net/manual/en/image.constants.php#constant.gd-version */ -define ('GD_VERSION', "2.0.35"); +define('GD_VERSION', "2.0.35"); /** * The GD major version PHP was compiled against. * @since 5.2.4 * @link https://php.net/manual/en/image.constants.php#constant.gd-major-version */ -define ('GD_MAJOR_VERSION', 2); +define('GD_MAJOR_VERSION', 2); /** * The GD minor version PHP was compiled against. * @since 5.2.4 * @link https://php.net/manual/en/image.constants.php#constant.gd-minor-version */ -define ('GD_MINOR_VERSION', 0); +define('GD_MINOR_VERSION', 0); /** * The GD release version PHP was compiled against. * @since 5.2.4 * @link https://php.net/manual/en/image.constants.php#constant.gd-release-version */ -define ('GD_RELEASE_VERSION', 35); +define('GD_RELEASE_VERSION', 35); /** * The GD "extra" version (beta/rc..) PHP was compiled against. * @since 5.2.4 * @link https://php.net/manual/en/image.constants.php#constant.gd-extra-version */ -define ('GD_EXTRA_VERSION', ""); - +define('GD_EXTRA_VERSION', ""); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-no-filter */ -define ('PNG_NO_FILTER', 0); +define('PNG_NO_FILTER', 0); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-none */ -define ('PNG_FILTER_NONE', 8); +define('PNG_FILTER_NONE', 8); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-sub */ -define ('PNG_FILTER_SUB', 16); +define('PNG_FILTER_SUB', 16); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-up */ -define ('PNG_FILTER_UP', 32); +define('PNG_FILTER_UP', 32); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-avg */ -define ('PNG_FILTER_AVG', 64); +define('PNG_FILTER_AVG', 64); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-paeth */ -define ('PNG_FILTER_PAETH', 128); +define('PNG_FILTER_PAETH', 128); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-all-filters */ -define ('PNG_ALL_FILTERS', 248); +define('PNG_ALL_FILTERS', 248); /** * An affine transformation type constant used by the {@see imageaffinematrixget()} function. @@ -2867,7 +2865,7 @@ function imageaffinematrixconcat(array $matrix1, array $matrix2): array|false {} * @return float[]|false Array with keys 0 to 5 and float values or FALSE on failure. * @since 5.5 */ -function imageaffinematrixget (int $type, $options = null): array|false {} +function imageaffinematrixget(int $type, $options = null): array|false {} /** * Crop an image using the given coordinates and size, x, y, width and height @@ -2879,7 +2877,7 @@ function imageaffinematrixget (int $type, $options = null): array|false {} * @return resource|GdImage|false Return cropped image resource on success or FALSE on failure. * @since 5.5 */ -function imagecrop (GdImage $image, array $rectangle): GdImage|false {} +function imagecrop(GdImage $image, array $rectangle): GdImage|false {} /** * Crop an image automatically using one of the available modes @@ -2900,7 +2898,7 @@ function imagecrop (GdImage $image, array $rectangle): GdImage|false {} * @return resource|GdImage|false Return cropped image resource on success or FALSE on failure. * @since 5.5 */ -function imagecropauto (GdImage $image, int $mode = IMG_CROP_DEFAULT, float $threshold = .5, int $color = -1): GdImage|false {} +function imagecropauto(GdImage $image, int $mode = IMG_CROP_DEFAULT, float $threshold = .5, int $color = -1): GdImage|false {} /** * Flips an image using a given mode @@ -2942,7 +2940,7 @@ function imagecropauto (GdImage $image, int $mode = IMG_CROP_DEFAULT, float $thr * @return bool Returns TRUE on success or FALSE on failure. * @since 5.5 */ -function imageflip (GdImage $image, int $mode): bool {} +function imageflip(GdImage $image, int $mode): bool {} /** * Converts a palette based image to true color @@ -2953,7 +2951,7 @@ function imageflip (GdImage $image, int $mode): bool {} * @return bool Returns TRUE if the convertion was complete, or if the source image already is a true color image, otherwise FALSE is returned. * @since 5.5 */ -function imagepalettetotruecolor (GdImage $image): bool {} +function imagepalettetotruecolor(GdImage $image): bool {} /** * @param resource|GdImage $image

    @@ -2967,7 +2965,7 @@ function imagepalettetotruecolor (GdImage $image): bool {} * @since 5.5 * Scale an image using the given new width and height */ -function imagescale (GdImage $image, int $width, int $height = -1, int $mode = IMG_BILINEAR_FIXED): GdImage|false {} +function imagescale(GdImage $image, int $width, int $height = -1, int $mode = IMG_BILINEAR_FIXED): GdImage|false {} /** * Set the interpolation method @@ -3046,15 +3044,16 @@ function imagescale (GdImage $image, int $width, int $height = -1, int $mode = I * @return bool Returns TRUE on success or FALSE on failure. * @since 5.5 */ -function imagesetinterpolation (GdImage $image, int $method = IMG_BILINEAR_FIXED): bool {} +function imagesetinterpolation(GdImage $image, int $method = IMG_BILINEAR_FIXED): bool {} /** * @since 8.0 */ -final class GdImage{ +final class GdImage +{ /** * You cannot initialize a GdImage object except through helper functions. */ - private function __construct(){} - private function __clone(){} + private function __construct() {} + private function __clone() {} } diff --git a/gearman/gearman.php b/gearman/gearman.php index 8ec8fa621..b4b860059 100644 --- a/gearman/gearman.php +++ b/gearman/gearman.php @@ -804,13 +804,8 @@ */ define('GEARMAN_WORKER_STATE_PRE_SLEEP', 5); - -/** - */ function gearman_version() {} -/** - */ function gearman_bugreport() {} /** @@ -1170,8 +1165,6 @@ function gearman_task_recv_data($task_object, $data_len) {} */ function gearman_worker_return_code($worker_object) {} -/** - */ function gearman_worker_create() {} /** @@ -1351,13 +1344,11 @@ function gearman_job_workload($job_object) {} */ function gearman_job_workload_size($job_object) {} - - /** * Class: GearmanClient - * */ -class GearmanClient { +class GearmanClient +{ /** * Creates a GearmanClient instance representing a client that connects to the job * server and submits tasks to complete. @@ -1390,8 +1381,6 @@ public function error() {} */ public function getErrno() {} - /** - */ public function options() {} /** @@ -1479,8 +1468,6 @@ public function addServer($host = '127.0.0.1', $port = 4730) {} */ public function addServers($servers = '127.0.0.1:4730') {} - /** - */ public function wait() {} /** @@ -1809,12 +1796,11 @@ public function runTasks() {} public function ping($workload) {} } - /** * Class: GearmanTask - * */ -class GearmanTask { +class GearmanTask +{ /** * Returns the last Gearman return code for this task. * @@ -1921,12 +1907,11 @@ public function dataSize() {} public function recvData($data_len) {} } - /** * Class: GearmanWorker - * */ -class GearmanWorker { +class GearmanWorker +{ /** * Creates a GearmanWorker instance representing a worker that connects to the job * server and accepts tasks to run. @@ -2088,8 +2073,6 @@ public function unregister($function_name) {} */ public function unregisterAll() {} - /** - */ public function grabJob() {} /** @@ -2118,15 +2101,13 @@ public function addFunction($function_name, $function, $context = null, $timeout * @return bool */ public function work() {} - } - /** * Class: GearmanJob - * */ -class GearmanJob { +class GearmanJob +{ /** * Returns the last return code issued by the job server. * @@ -2247,12 +2228,7 @@ public function workload() {} public function workloadSize() {} } - /** * Class: GearmanException */ -class GearmanException extends Exception { -} - - -?> +class GearmanException extends Exception {} diff --git a/geoip/geoip.php b/geoip/geoip.php index e608f69fa..b9a851365 100644 --- a/geoip/geoip.php +++ b/geoip/geoip.php @@ -15,7 +15,7 @@ * @return string|null the corresponding database version, or NULL on error. */ #[Pure] -function geoip_database_info ($database = GEOIP_COUNTRY_EDITION) {} +function geoip_database_info($database = GEOIP_COUNTRY_EDITION) {} /** * (PECL geoip >= 0.2.0)
    @@ -28,7 +28,7 @@ function geoip_database_info ($database = GEOIP_COUNTRY_EDITION) {} * if the address cannot be found in the database. */ #[Pure] -function geoip_country_code_by_name ($hostname) {} +function geoip_country_code_by_name($hostname) {} /** * (PECL geoip >= 0.2.0)
    @@ -41,7 +41,7 @@ function geoip_country_code_by_name ($hostname) {} * if the address cannot be found in the database. */ #[Pure] -function geoip_country_code3_by_name ($hostname) {} +function geoip_country_code3_by_name($hostname) {} /** * (PECL geoip >= 0.2.0)
    @@ -54,7 +54,7 @@ function geoip_country_code3_by_name ($hostname) {} * be found in the database. */ #[Pure] -function geoip_country_name_by_name ($hostname) {} +function geoip_country_name_by_name($hostname) {} /** * (PECL geoip >= 1.0.3)
    @@ -67,7 +67,7 @@ function geoip_country_name_by_name ($hostname) {} * address cannot be found in the database. */ #[Pure] -function geoip_continent_code_by_name ($hostname) {} +function geoip_continent_code_by_name($hostname) {} /** * (PECL geoip >= 0.2.0)
    @@ -80,7 +80,7 @@ function geoip_continent_code_by_name ($hostname) {} * cannot be found in the database. */ #[Pure] -function geoip_org_by_name ($hostname) {} +function geoip_org_by_name($hostname) {} /** * (PECL geoip >= 0.2.0)
    @@ -93,7 +93,7 @@ function geoip_org_by_name ($hostname) {} * cannot be found in the database. */ #[Pure] -function geoip_record_by_name ($hostname) {} +function geoip_record_by_name($hostname) {} /** * (PECL geoip >= 0.2.0)
    @@ -105,7 +105,7 @@ function geoip_record_by_name ($hostname) {} * @return int the connection type. */ #[Pure] -function geoip_id_by_name ($hostname) {} +function geoip_id_by_name($hostname) {} /** * (PECL geoip >= 0.2.0)
    @@ -118,7 +118,7 @@ function geoip_id_by_name ($hostname) {} * cannot be found in the database. */ #[Pure] -function geoip_region_by_name ($hostname) {} +function geoip_region_by_name($hostname) {} /** * (PECL geoip >= 1.0.2)
    @@ -131,7 +131,7 @@ function geoip_region_by_name ($hostname) {} * cannot be found in the database. */ #[Pure] -function geoip_isp_by_name ($hostname) {} +function geoip_isp_by_name($hostname) {} /** * (PECL geoip >= 1.0.1)
    @@ -145,7 +145,7 @@ function geoip_isp_by_name ($hostname) {} * @return bool|null TRUE is database exists, FALSE if not found, or NULL on error. */ #[Pure] -function geoip_db_avail ($database) {} +function geoip_db_avail($database) {} /** * (PECL geoip >= 1.0.1)
    @@ -154,7 +154,7 @@ function geoip_db_avail ($database) {} * @return array the associative array. */ #[Pure] -function geoip_db_get_all_info () {} +function geoip_db_get_all_info() {} /** * (PECL geoip >= 1.0.1)
    @@ -168,7 +168,7 @@ function geoip_db_get_all_info () {} * @return string|null the filename of the corresponding database, or NULL on error. */ #[Pure] -function geoip_db_filename ($database) {} +function geoip_db_filename($database) {} /** * (PECL geoip >= 1.0.4)
    @@ -186,7 +186,7 @@ function geoip_db_filename ($database) {} * combo cannot be found. */ #[Pure] -function geoip_region_name_by_code ($country_code, $region_code) {} +function geoip_region_name_by_code($country_code, $region_code) {} /** * (PECL geoip >= 1.0.4)
    @@ -204,23 +204,23 @@ function geoip_region_name_by_code ($country_code, $region_code) {} * combo cannot be found. */ #[Pure] -function geoip_time_zone_by_country_and_region ($country_code, $region_code = null) {} +function geoip_time_zone_by_country_and_region($country_code, $region_code = null) {} -define ('GEOIP_COUNTRY_EDITION', 1); -define ('GEOIP_REGION_EDITION_REV0', 7); -define ('GEOIP_CITY_EDITION_REV0', 6); -define ('GEOIP_ORG_EDITION', 5); -define ('GEOIP_ISP_EDITION', 4); -define ('GEOIP_CITY_EDITION_REV1', 2); -define ('GEOIP_REGION_EDITION_REV1', 3); -define ('GEOIP_PROXY_EDITION', 8); -define ('GEOIP_ASNUM_EDITION', 9); -define ('GEOIP_NETSPEED_EDITION', 10); -define ('GEOIP_DOMAIN_EDITION', 11); -define ('GEOIP_UNKNOWN_SPEED', 0); -define ('GEOIP_DIALUP_SPEED', 1); -define ('GEOIP_CABLEDSL_SPEED', 2); -define ('GEOIP_CORPORATE_SPEED', 3); +define('GEOIP_COUNTRY_EDITION', 1); +define('GEOIP_REGION_EDITION_REV0', 7); +define('GEOIP_CITY_EDITION_REV0', 6); +define('GEOIP_ORG_EDITION', 5); +define('GEOIP_ISP_EDITION', 4); +define('GEOIP_CITY_EDITION_REV1', 2); +define('GEOIP_REGION_EDITION_REV1', 3); +define('GEOIP_PROXY_EDITION', 8); +define('GEOIP_ASNUM_EDITION', 9); +define('GEOIP_NETSPEED_EDITION', 10); +define('GEOIP_DOMAIN_EDITION', 11); +define('GEOIP_UNKNOWN_SPEED', 0); +define('GEOIP_DIALUP_SPEED', 1); +define('GEOIP_CABLEDSL_SPEED', 2); +define('GEOIP_CORPORATE_SPEED', 3); /** * (PECL geoip >= 1.1.0)
    @@ -233,7 +233,7 @@ function geoip_time_zone_by_country_and_region ($country_code, $region_code = nu * @return string|false Returns the ASN on success, or FALSE if the address cannot be found in the database. * @since 1.1.0 */ -function geoip_asnum_by_name ($hostname) {} +function geoip_asnum_by_name($hostname) {} /** * (PECL geoip >= 1.1.0)
    @@ -256,7 +256,7 @@ function geoip_asnum_by_name ($hostname) {} * @return string|false Returns the connection speed on success, or FALSE if the address cannot be found in the database. * @since 1.1.0 */ -function geoip_netspeedcell_by_name ($hostname) {} +function geoip_netspeedcell_by_name($hostname) {} /** * (PECL geoip >= 1.1.0)
    @@ -269,6 +269,6 @@ function geoip_netspeedcell_by_name ($hostname) {} * @return void * @since 1.1.0 */ -function geoip_setup_custom_directory ($path) {} +function geoip_setup_custom_directory($path) {} // End of geoip v.1.1.0 diff --git a/geos/geos.php b/geos/geos.php index 657bd8f4b..8050ed89f 100644 --- a/geos/geos.php +++ b/geos/geos.php @@ -3,7 +3,6 @@ /** * @see https://github.com/libgeos/php-geos/blob/master/tests/000_General.phpt */ - define('GEOSBUF_CAP_ROUND', 1); define('GEOSBUF_CAP_FLAT', 2); @@ -101,7 +100,6 @@ function GEOSPolygonize(GEOSGeometry $geom): array {} */ class GEOSWKTReader { - /** * GEOSWKTReader constructor. */ @@ -113,7 +111,6 @@ public function __construct() {} * @throws Exception */ public function read(string $wkt): GEOSGeometry {} - } /** @@ -122,7 +119,6 @@ public function read(string $wkt): GEOSGeometry {} */ class GEOSWKTWriter { - /** * GEOSWKTWriter constructor. */ @@ -160,7 +156,6 @@ public function getOutputDimension(): int {} * @param bool $old3d */ public function setOld3D(bool $old3d): void {} - } /** @@ -169,7 +164,6 @@ public function setOld3D(bool $old3d): void {} */ class GEOSGeometry { - /** * GEOSGeometry constructor. */ @@ -652,7 +646,6 @@ public function voronoiDiagram(float $tolerance = 0.0, bool $onlyEdges = false, * @throws Exception */ public function clipByRect(float $xmin, float $ymin, float $xmax, float $ymax): GEOSGeometry {} - } /** @@ -661,7 +654,6 @@ public function clipByRect(float $xmin, float $ymin, float $xmax, float $ymax): */ class GEOSWKBWriter { - /** * GEOSWKBWriter constructor. */ @@ -713,7 +705,6 @@ public function write(GEOSGeometry $geom): string {} * @throws Exception */ public function writeHEX(GEOSGeometry $geom): string {} - } /** @@ -722,7 +713,6 @@ public function writeHEX(GEOSGeometry $geom): string {} */ class GEOSWKBReader { - /** * GEOSWKBReader constructor. */ @@ -741,5 +731,4 @@ public function read(string $wkb): GEOSGeometry {} * @throws Exception */ public function readHEX(string $wkb): GEOSGeometry {} - } diff --git a/gettext/gettext.php b/gettext/gettext.php index 8dcb3236f..351766f8a 100644 --- a/gettext/gettext.php +++ b/gettext/gettext.php @@ -14,8 +14,7 @@ * @return string If successful, this function returns the current message * domain, after possibly changing it. */ -function textdomain (?string $domain): string -{} +function textdomain(?string $domain): string {} /** * Lookup a message in the current domain @@ -27,8 +26,7 @@ function textdomain (?string $domain): string * translation table, or the submitted message if not found. */ #[Pure] -function _ (string $message): string -{} +function _(string $message): string {} /** * Lookup a message in the current domain @@ -40,8 +38,7 @@ function _ (string $message): string * translation table, or the submitted message if not found. */ #[Pure] -function gettext (string $message): string -{} +function gettext(string $message): string {} /** * Override the current domain @@ -54,8 +51,7 @@ function gettext (string $message): string *

    * @return string A string on success. */ -function dgettext (string $domain, string $message): string -{} +function dgettext(string $domain, string $message): string {} /** * Overrides the domain for a single lookup @@ -71,8 +67,7 @@ function dgettext (string $domain, string $message): string *

    * @return string A string on success. */ -function dcgettext (string $domain, string $message, int $category): string -{} +function dcgettext(string $domain, string $message, int $category): string {} /** * Sets the path for a domain @@ -85,8 +80,7 @@ function dcgettext (string $domain, string $message, int $category): string *

    * @return string|false The full pathname for the domain currently being set. */ -function bindtextdomain (string $domain, #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $directory): string|false -{} +function bindtextdomain(string $domain, #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $directory): string|false {} /** * Plural version of gettext @@ -99,8 +93,7 @@ function bindtextdomain (string $domain, #[LanguageLevelTypeAware(['8.0' => '?st * for count n. */ #[Pure] -function ngettext (string $singular, string $plural, int $count): string -{} +function ngettext(string $singular, string $plural, int $count): string {} /** * Plural version of dgettext @@ -114,8 +107,7 @@ function ngettext (string $singular, string $plural, int $count): string * @return string A string on success. */ #[Pure] -function dngettext (string $domain, string $singular, string $plural, int $count): string -{} +function dngettext(string $domain, string $singular, string $plural, int $count): string {} /** * Plural version of dcgettext @@ -130,8 +122,7 @@ function dngettext (string $domain, string $singular, string $plural, int $count * @return string A string on success. */ #[Pure] -function dcngettext (string $domain, string $singular, string $plural, int $count, int $category): string -{} +function dcngettext(string $domain, string $singular, string $plural, int $count, int $category): string {} /** * Specify the character encoding in which the messages from the DOMAIN message catalog will be returned @@ -144,8 +135,6 @@ function dcngettext (string $domain, string $singular, string $plural, int $coun *

    * @return string|false A string on success. */ -function bind_textdomain_codeset (string $domain, #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $codeset): string|false -{} +function bind_textdomain_codeset(string $domain, #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $codeset): string|false {} // End of gettext v. -?> diff --git a/gmagick/gmagick.php b/gmagick/gmagick.php index 11868c920..3a12c2f54 100644 --- a/gmagick/gmagick.php +++ b/gmagick/gmagick.php @@ -7,325 +7,325 @@ */ class Gmagick { - const COLOR_BLACK = 0; - const COLOR_BLUE = 0; - const COLOR_CYAN = 0; - const COLOR_GREEN = 0; - const COLOR_RED = 0; - const COLOR_YELLOW = 0; - const COLOR_MAGENTA = 0; - const COLOR_OPACITY = 0; - const COLOR_ALPHA = 0; - const COLOR_FUZZ = 0; - - const GMAGICK_EXTNUM = 0; - - const COMPOSITE_DEFAULT = 0; - const COMPOSITE_UNDEFINED = 0; - const COMPOSITE_NO = 0; - const COMPOSITE_ADD = 0; - const COMPOSITE_ATOP = 0; - const COMPOSITE_BUMPMAP = 0; - const COMPOSITE_CLEAR = 0; - const COMPOSITE_COLORIZE = 0; - const COMPOSITE_COPYBLACK = 0; - const COMPOSITE_COPYBLUE = 0; - const COMPOSITE_COPY = 0; - const COMPOSITE_COPYCYAN = 0; - const COMPOSITE_COPYGREEN = 0; - const COMPOSITE_COPYMAGENTA = 0; - const COMPOSITE_COPYOPACITY = 0; - const COMPOSITE_COPYRED = 0; - const COMPOSITE_COPYYELLOW = 0; - const COMPOSITE_DARKEN = 0; - const COMPOSITE_DIFFERENCE = 0; - const COMPOSITE_DISPLACE = 0; - const COMPOSITE_DISSOLVE = 0; - const COMPOSITE_HUE = 0; - const COMPOSITE_IN = 0; - const COMPOSITE_LIGHTEN = 0; - const COMPOSITE_LUMINIZE = 0; - const COMPOSITE_MINUS = 0; - const COMPOSITE_MODULATE = 0; - const COMPOSITE_MULTIPLY = 0; - const COMPOSITE_OUT = 0; - const COMPOSITE_OVER = 0; - const COMPOSITE_OVERLAY = 0; - const COMPOSITE_PLUS = 0; - const COMPOSITE_REPLACE = 0; - const COMPOSITE_SATURATE = 0; - const COMPOSITE_SCREEN = 0; - const COMPOSITE_SUBTRACT = 0; - const COMPOSITE_THRESHOLD = 0; - const COMPOSITE_XOR = 0; - const COMPOSITE_DIVIDE = 0; - const COMPOSITE_HARDLIGHT = 0; - const COMPOSITE_EXCLUSION = 0; - const COMPOSITE_COLORDODGE = 0; - const COMPOSITE_COLORBURN = 0; - const COMPOSITE_SOFTLIGHT = 0; - const COMPOSITE_LINEARBURN = 0; - const COMPOSITE_LINEARDODGE = 0; - const COMPOSITE_LINEARLIGHT = 0; - const COMPOSITE_VIVIDLIGHT = 0; - const COMPOSITE_PINLIGHT = 0; - const COMPOSITE_HARDMIX = 0; - - const MONTAGEMODE_FRAME = 0; - const MONTAGEMODE_UNFRAME = 0; - const MONTAGEMODE_CONCATENATE = 0; - - const STYLE_NORMAL = 0; - const STYLE_ITALIC = 0; - const STYLE_OBLIQUE = 0; - const STYLE_ANY = 0; - - const FILTER_UNDEFINED = 0; - const FILTER_POINT = 0; - const FILTER_BOX = 0; - const FILTER_TRIANGLE = 0; - const FILTER_HERMITE = 0; - const FILTER_HANNING = 0; - const FILTER_HAMMING = 0; - const FILTER_BLACKMAN = 0; - const FILTER_GAUSSIAN = 0; - const FILTER_QUADRATIC = 0; - const FILTER_CUBIC = 0; - const FILTER_CATROM = 0; - const FILTER_MITCHELL = 0; - const FILTER_LANCZOS = 0; - const FILTER_BESSEL = 0; - const FILTER_SINC = 0; - - const IMGTYPE_UNDEFINED = 0; - const IMGTYPE_BILEVEL = 0; - const IMGTYPE_GRAYSCALE = 0; - const IMGTYPE_GRAYSCALEMATTE = 0; - const IMGTYPE_PALETTE = 0; - const IMGTYPE_PALETTEMATTE = 0; - const IMGTYPE_TRUECOLOR = 0; - const IMGTYPE_TRUECOLORMATTE = 0; - const IMGTYPE_COLORSEPARATION = 0; - const IMGTYPE_COLORSEPARATIONMATTE = 0; - const IMGTYPE_OPTIMIZE = 0; - - const RESOLUTION_UNDEFINED = 0; - const RESOLUTION_PIXELSPERINCH = 0; - const RESOLUTION_PIXELSPERCENTIMETER = 0; - - const COMPRESSION_UNDEFINED = 0; - const COMPRESSION_NO = 0; - const COMPRESSION_BZIP = 0; - const COMPRESSION_FAX = 0; - const COMPRESSION_GROUP4 = 0; - const COMPRESSION_JPEG = 0; - const COMPRESSION_LOSSLESSJPEG = 0; - const COMPRESSION_LZW = 0; - const COMPRESSION_RLE = 0; - const COMPRESSION_ZIP = 0; - const COMPRESSION_GROUP3 = 0; - const COMPRESSION_LZMA = 0; - const COMPRESSION_JPEG2000 = 0; - const COMPRESSION_JBIG1 = 0; - const COMPRESSION_JBIG2 = 0; - - const INTERLACE_NONE = 0; - const INTERLACE_LINE = 0; - const INTERLACE_PLANE = 0; - const INTERLACE_PARTITION = 0; - - const PAINT_POINT = 0; - const PAINT_REPLACE = 0; - const PAINT_FLOODFILL = 0; - const PAINT_FILLTOBORDER = 0; - const PAINT_RESET = 0; - - const GRAVITY_NORTHWEST = 0; - const GRAVITY_NORTH = 0; - const GRAVITY_NORTHEAST = 0; - const GRAVITY_WEST = 0; - const GRAVITY_CENTER = 0; - const GRAVITY_EAST = 0; - const GRAVITY_SOUTHWEST = 0; - const GRAVITY_SOUTH = 0; - const GRAVITY_SOUTHEAST = 0; - - const STRETCH_NORMAL = 0; - const STRETCH_ULTRACONDENSED = 0; - const STRETCH_CONDENSED = 0; - const STRETCH_SEMICONDENSED = 0; - const STRETCH_SEMIEXPANDED = 0; - const STRETCH_EXPANDED = 0; - const STRETCH_EXTRAEXPANDED = 0; - const STRETCH_ULTRAEXPANDED = 0; - const STRETCH_ANY = 0; - const STRETCH_EXTRACONDENSED = 0; - - const ALIGN_UNDEFINED = 0; - const ALIGN_LEFT = 0; - const ALIGN_CENTER = 0; - const ALIGN_RIGHT = 0; - - const DECORATION_NO = 0; - const DECORATION_UNDERLINE = 0; - const DECORATION_OVERLINE = 0; - const DECORATION_LINETROUGH = 0; - - const NOISE_UNIFORM = 0; - const NOISE_GAUSSIAN = 0; - const NOISE_MULTIPLICATIVEGAUSSIAN = 0; - const NOISE_IMPULSE = 0; - const NOISE_LAPLACIAN = 0; - const NOISE_POISSON = 0; - const NOISE_RANDOM = 0; - - const CHANNEL_UNDEFINED = 0; - const CHANNEL_RED = 0; - const CHANNEL_GRAY = 0; - const CHANNEL_CYAN = 0; - const CHANNEL_GREEN = 0; - const CHANNEL_MAGENTA = 0; - const CHANNEL_BLUE = 0; - const CHANNEL_YELLOW = 0; - const CHANNEL_OPACITY = 0; - const CHANNEL_MATTE = 0; - const CHANNEL_BLACK = 0; - const CHANNEL_INDEX = 0; - const CHANNEL_ALL = 0; - const CHANNEL_DEFAULT = 0; - - const METRIC_UNDEFINED = 0; - const METRIC_MEANABSOLUTEERROR = 0; - const METRIC_MEANSQUAREERROR = 0; - const METRIC_PEAKABSOLUTEERROR = 0; - const METRIC_PEAKSIGNALTONOISERATIO = 0; - const METRIC_ROOTMEANSQUAREDERROR = 0; - - const PIXEL_CHAR = 0; - const PIXEL_DOUBLE = 0; - const PIXEL_FLOAT = 0; - const PIXEL_INTEGER = 0; - const PIXEL_LONG = 0; - const PIXEL_SHORT = 0; - - const COLORSPACE_UNDEFINED = 0; - const COLORSPACE_RGB = 0; - const COLORSPACE_GRAY = 0; - const COLORSPACE_TRANSPARENT = 0; - const COLORSPACE_OHTA = 0; - const COLORSPACE_LAB = 0; - const COLORSPACE_XYZ = 0; - const COLORSPACE_YCBCR = 0; - const COLORSPACE_YCC = 0; - const COLORSPACE_YIQ = 0; - const COLORSPACE_YPBPR = 0; - const COLORSPACE_YUV = 0; - const COLORSPACE_CMYK = 0; - const COLORSPACE_SRGB = 0; - const COLORSPACE_HSL = 0; - const COLORSPACE_HWB = 0; - const COLORSPACE_REC601LUMA = 0; - const COLORSPACE_REC709LUMA = 0; - const COLORSPACE_CINEONLOGRGB = 0; - const COLORSPACE_REC601YCBCR = 0; - const COLORSPACE_REC709YCBCR = 0; - - const VIRTUALPIXELMETHOD_UNDEFINED = 0; - const VIRTUALPIXELMETHOD_CONSTANT = 0; - const VIRTUALPIXELMETHOD_EDGE = 0; - const VIRTUALPIXELMETHOD_MIRROR = 0; - const VIRTUALPIXELMETHOD_TILE = 0; - - const PREVIEW_UNDEFINED = 0; - const PREVIEW_ROTATE = 0; - const PREVIEW_SHEAR = 0; - const PREVIEW_ROLL = 0; - const PREVIEW_HUE = 0; - const PREVIEW_SATURATION = 0; - const PREVIEW_BRIGHTNESS = 0; - const PREVIEW_GAMMA = 0; - const PREVIEW_SPIFF = 0; - const PREVIEW_DULL = 0; - const PREVIEW_GRAYSCALE = 0; - const PREVIEW_QUANTIZE = 0; - const PREVIEW_DESPECKLE = 0; - const PREVIEW_REDUCENOISE = 0; - const PREVIEW_ADDNOISE = 0; - const PREVIEW_SHARPEN = 0; - const PREVIEW_BLUR = 0; - const PREVIEW_THRESHOLD = 0; - const PREVIEW_EDGEDETECT = 0; - const PREVIEW_SPREAD = 0; - const PREVIEW_SOLARIZE = 0; - const PREVIEW_SHADE = 0; - const PREVIEW_RAISE = 0; - const PREVIEW_SEGMENT = 0; - const PREVIEW_SWIRL = 0; - const PREVIEW_IMPLODE = 0; - const PREVIEW_WAVE = 0; - const PREVIEW_OILPAINT = 0; - const PREVIEW_CHARCOALDRAWING = 0; - const PREVIEW_JPEG = 0; - - const RENDERINGINTENT_UNDEFINED = 0; - const RENDERINGINTENT_SATURATION = 0; - const RENDERINGINTENT_PERCEPTUAL = 0; - const RENDERINGINTENT_ABSOLUTE = 0; - const RENDERINGINTENT_RELATIVE = 0; - - const INTERLACE_UNDEFINED = 0; - const INTERLACE_NO = 0; - - const FILLRULE_UNDEFINED = 0; - const FILLRULE_EVENODD = 0; - const FILLRULE_NONZERO = 0; - - const PATHUNITS_USERSPACE = 0; - const PATHUNITS_USERSPACEONUSE = 0; - const PATHUNITS_OBJECTBOUNDINGBOX = 0; - - const LINECAP_UNDEFINED = 0; - const LINECAP_BUTT = 0; - const LINECAP_ROUND = 0; - const LINECAP_SQUARE = 0; - - const LINEJOIN_UNDEFINED = 0; - const LINEJOIN_MITER = 0; - const LINEJOIN_ROUND = 0; - const LINEJOIN_BEVEL = 0; - - const RESOURCETYPE_UNDEFINED = 0; - const RESOURCETYPE_AREA = 0; - const RESOURCETYPE_DISK = 0; - const RESOURCETYPE_FILE = 0; - const RESOURCETYPE_MAP = 0; - const RESOURCETYPE_MEMORY = 0; - const RESOURCETYPE_PIXELS = 0; - const RESOURCETYPE_THREADS = 0; - const RESOURCETYPE_WIDTH = 0; - const RESOURCETYPE_HEIGHT = 0; - - const DISPOSE_UNDEFINED = 0; - const DISPOSE_NONE = 0; - const DISPOSE_BACKGROUND = 0; - const DISPOSE_PREVIOUS = 0; - - const ORIENTATION_UNDEFINED = 0; - const ORIENTATION_TOPLEFT = 0; - const ORIENTATION_TOPRIGHT = 0; - const ORIENTATION_BOTTOMRIGHT = 0; - const ORIENTATION_BOTTOMLEFT = 0; - const ORIENTATION_LEFTTOP = 0; - const ORIENTATION_RIGHTTOP = 0; - const ORIENTATION_RIGHTBOTTOM = 0; - const ORIENTATION_LEFTBOTTOM = 0; - - const QUANTUM_DEPTH = 0; - const QUANTUM = 0; - - const VERSION_LIB = 0; - const VERSION_NUM = 0; - const VERSION_TXT = ''; + public const COLOR_BLACK = 0; + public const COLOR_BLUE = 0; + public const COLOR_CYAN = 0; + public const COLOR_GREEN = 0; + public const COLOR_RED = 0; + public const COLOR_YELLOW = 0; + public const COLOR_MAGENTA = 0; + public const COLOR_OPACITY = 0; + public const COLOR_ALPHA = 0; + public const COLOR_FUZZ = 0; + + public const GMAGICK_EXTNUM = 0; + + public const COMPOSITE_DEFAULT = 0; + public const COMPOSITE_UNDEFINED = 0; + public const COMPOSITE_NO = 0; + public const COMPOSITE_ADD = 0; + public const COMPOSITE_ATOP = 0; + public const COMPOSITE_BUMPMAP = 0; + public const COMPOSITE_CLEAR = 0; + public const COMPOSITE_COLORIZE = 0; + public const COMPOSITE_COPYBLACK = 0; + public const COMPOSITE_COPYBLUE = 0; + public const COMPOSITE_COPY = 0; + public const COMPOSITE_COPYCYAN = 0; + public const COMPOSITE_COPYGREEN = 0; + public const COMPOSITE_COPYMAGENTA = 0; + public const COMPOSITE_COPYOPACITY = 0; + public const COMPOSITE_COPYRED = 0; + public const COMPOSITE_COPYYELLOW = 0; + public const COMPOSITE_DARKEN = 0; + public const COMPOSITE_DIFFERENCE = 0; + public const COMPOSITE_DISPLACE = 0; + public const COMPOSITE_DISSOLVE = 0; + public const COMPOSITE_HUE = 0; + public const COMPOSITE_IN = 0; + public const COMPOSITE_LIGHTEN = 0; + public const COMPOSITE_LUMINIZE = 0; + public const COMPOSITE_MINUS = 0; + public const COMPOSITE_MODULATE = 0; + public const COMPOSITE_MULTIPLY = 0; + public const COMPOSITE_OUT = 0; + public const COMPOSITE_OVER = 0; + public const COMPOSITE_OVERLAY = 0; + public const COMPOSITE_PLUS = 0; + public const COMPOSITE_REPLACE = 0; + public const COMPOSITE_SATURATE = 0; + public const COMPOSITE_SCREEN = 0; + public const COMPOSITE_SUBTRACT = 0; + public const COMPOSITE_THRESHOLD = 0; + public const COMPOSITE_XOR = 0; + public const COMPOSITE_DIVIDE = 0; + public const COMPOSITE_HARDLIGHT = 0; + public const COMPOSITE_EXCLUSION = 0; + public const COMPOSITE_COLORDODGE = 0; + public const COMPOSITE_COLORBURN = 0; + public const COMPOSITE_SOFTLIGHT = 0; + public const COMPOSITE_LINEARBURN = 0; + public const COMPOSITE_LINEARDODGE = 0; + public const COMPOSITE_LINEARLIGHT = 0; + public const COMPOSITE_VIVIDLIGHT = 0; + public const COMPOSITE_PINLIGHT = 0; + public const COMPOSITE_HARDMIX = 0; + + public const MONTAGEMODE_FRAME = 0; + public const MONTAGEMODE_UNFRAME = 0; + public const MONTAGEMODE_CONCATENATE = 0; + + public const STYLE_NORMAL = 0; + public const STYLE_ITALIC = 0; + public const STYLE_OBLIQUE = 0; + public const STYLE_ANY = 0; + + public const FILTER_UNDEFINED = 0; + public const FILTER_POINT = 0; + public const FILTER_BOX = 0; + public const FILTER_TRIANGLE = 0; + public const FILTER_HERMITE = 0; + public const FILTER_HANNING = 0; + public const FILTER_HAMMING = 0; + public const FILTER_BLACKMAN = 0; + public const FILTER_GAUSSIAN = 0; + public const FILTER_QUADRATIC = 0; + public const FILTER_CUBIC = 0; + public const FILTER_CATROM = 0; + public const FILTER_MITCHELL = 0; + public const FILTER_LANCZOS = 0; + public const FILTER_BESSEL = 0; + public const FILTER_SINC = 0; + + public const IMGTYPE_UNDEFINED = 0; + public const IMGTYPE_BILEVEL = 0; + public const IMGTYPE_GRAYSCALE = 0; + public const IMGTYPE_GRAYSCALEMATTE = 0; + public const IMGTYPE_PALETTE = 0; + public const IMGTYPE_PALETTEMATTE = 0; + public const IMGTYPE_TRUECOLOR = 0; + public const IMGTYPE_TRUECOLORMATTE = 0; + public const IMGTYPE_COLORSEPARATION = 0; + public const IMGTYPE_COLORSEPARATIONMATTE = 0; + public const IMGTYPE_OPTIMIZE = 0; + + public const RESOLUTION_UNDEFINED = 0; + public const RESOLUTION_PIXELSPERINCH = 0; + public const RESOLUTION_PIXELSPERCENTIMETER = 0; + + public const COMPRESSION_UNDEFINED = 0; + public const COMPRESSION_NO = 0; + public const COMPRESSION_BZIP = 0; + public const COMPRESSION_FAX = 0; + public const COMPRESSION_GROUP4 = 0; + public const COMPRESSION_JPEG = 0; + public const COMPRESSION_LOSSLESSJPEG = 0; + public const COMPRESSION_LZW = 0; + public const COMPRESSION_RLE = 0; + public const COMPRESSION_ZIP = 0; + public const COMPRESSION_GROUP3 = 0; + public const COMPRESSION_LZMA = 0; + public const COMPRESSION_JPEG2000 = 0; + public const COMPRESSION_JBIG1 = 0; + public const COMPRESSION_JBIG2 = 0; + + public const INTERLACE_NONE = 0; + public const INTERLACE_LINE = 0; + public const INTERLACE_PLANE = 0; + public const INTERLACE_PARTITION = 0; + + public const PAINT_POINT = 0; + public const PAINT_REPLACE = 0; + public const PAINT_FLOODFILL = 0; + public const PAINT_FILLTOBORDER = 0; + public const PAINT_RESET = 0; + + public const GRAVITY_NORTHWEST = 0; + public const GRAVITY_NORTH = 0; + public const GRAVITY_NORTHEAST = 0; + public const GRAVITY_WEST = 0; + public const GRAVITY_CENTER = 0; + public const GRAVITY_EAST = 0; + public const GRAVITY_SOUTHWEST = 0; + public const GRAVITY_SOUTH = 0; + public const GRAVITY_SOUTHEAST = 0; + + public const STRETCH_NORMAL = 0; + public const STRETCH_ULTRACONDENSED = 0; + public const STRETCH_CONDENSED = 0; + public const STRETCH_SEMICONDENSED = 0; + public const STRETCH_SEMIEXPANDED = 0; + public const STRETCH_EXPANDED = 0; + public const STRETCH_EXTRAEXPANDED = 0; + public const STRETCH_ULTRAEXPANDED = 0; + public const STRETCH_ANY = 0; + public const STRETCH_EXTRACONDENSED = 0; + + public const ALIGN_UNDEFINED = 0; + public const ALIGN_LEFT = 0; + public const ALIGN_CENTER = 0; + public const ALIGN_RIGHT = 0; + + public const DECORATION_NO = 0; + public const DECORATION_UNDERLINE = 0; + public const DECORATION_OVERLINE = 0; + public const DECORATION_LINETROUGH = 0; + + public const NOISE_UNIFORM = 0; + public const NOISE_GAUSSIAN = 0; + public const NOISE_MULTIPLICATIVEGAUSSIAN = 0; + public const NOISE_IMPULSE = 0; + public const NOISE_LAPLACIAN = 0; + public const NOISE_POISSON = 0; + public const NOISE_RANDOM = 0; + + public const CHANNEL_UNDEFINED = 0; + public const CHANNEL_RED = 0; + public const CHANNEL_GRAY = 0; + public const CHANNEL_CYAN = 0; + public const CHANNEL_GREEN = 0; + public const CHANNEL_MAGENTA = 0; + public const CHANNEL_BLUE = 0; + public const CHANNEL_YELLOW = 0; + public const CHANNEL_OPACITY = 0; + public const CHANNEL_MATTE = 0; + public const CHANNEL_BLACK = 0; + public const CHANNEL_INDEX = 0; + public const CHANNEL_ALL = 0; + public const CHANNEL_DEFAULT = 0; + + public const METRIC_UNDEFINED = 0; + public const METRIC_MEANABSOLUTEERROR = 0; + public const METRIC_MEANSQUAREERROR = 0; + public const METRIC_PEAKABSOLUTEERROR = 0; + public const METRIC_PEAKSIGNALTONOISERATIO = 0; + public const METRIC_ROOTMEANSQUAREDERROR = 0; + + public const PIXEL_CHAR = 0; + public const PIXEL_DOUBLE = 0; + public const PIXEL_FLOAT = 0; + public const PIXEL_INTEGER = 0; + public const PIXEL_LONG = 0; + public const PIXEL_SHORT = 0; + + public const COLORSPACE_UNDEFINED = 0; + public const COLORSPACE_RGB = 0; + public const COLORSPACE_GRAY = 0; + public const COLORSPACE_TRANSPARENT = 0; + public const COLORSPACE_OHTA = 0; + public const COLORSPACE_LAB = 0; + public const COLORSPACE_XYZ = 0; + public const COLORSPACE_YCBCR = 0; + public const COLORSPACE_YCC = 0; + public const COLORSPACE_YIQ = 0; + public const COLORSPACE_YPBPR = 0; + public const COLORSPACE_YUV = 0; + public const COLORSPACE_CMYK = 0; + public const COLORSPACE_SRGB = 0; + public const COLORSPACE_HSL = 0; + public const COLORSPACE_HWB = 0; + public const COLORSPACE_REC601LUMA = 0; + public const COLORSPACE_REC709LUMA = 0; + public const COLORSPACE_CINEONLOGRGB = 0; + public const COLORSPACE_REC601YCBCR = 0; + public const COLORSPACE_REC709YCBCR = 0; + + public const VIRTUALPIXELMETHOD_UNDEFINED = 0; + public const VIRTUALPIXELMETHOD_CONSTANT = 0; + public const VIRTUALPIXELMETHOD_EDGE = 0; + public const VIRTUALPIXELMETHOD_MIRROR = 0; + public const VIRTUALPIXELMETHOD_TILE = 0; + + public const PREVIEW_UNDEFINED = 0; + public const PREVIEW_ROTATE = 0; + public const PREVIEW_SHEAR = 0; + public const PREVIEW_ROLL = 0; + public const PREVIEW_HUE = 0; + public const PREVIEW_SATURATION = 0; + public const PREVIEW_BRIGHTNESS = 0; + public const PREVIEW_GAMMA = 0; + public const PREVIEW_SPIFF = 0; + public const PREVIEW_DULL = 0; + public const PREVIEW_GRAYSCALE = 0; + public const PREVIEW_QUANTIZE = 0; + public const PREVIEW_DESPECKLE = 0; + public const PREVIEW_REDUCENOISE = 0; + public const PREVIEW_ADDNOISE = 0; + public const PREVIEW_SHARPEN = 0; + public const PREVIEW_BLUR = 0; + public const PREVIEW_THRESHOLD = 0; + public const PREVIEW_EDGEDETECT = 0; + public const PREVIEW_SPREAD = 0; + public const PREVIEW_SOLARIZE = 0; + public const PREVIEW_SHADE = 0; + public const PREVIEW_RAISE = 0; + public const PREVIEW_SEGMENT = 0; + public const PREVIEW_SWIRL = 0; + public const PREVIEW_IMPLODE = 0; + public const PREVIEW_WAVE = 0; + public const PREVIEW_OILPAINT = 0; + public const PREVIEW_CHARCOALDRAWING = 0; + public const PREVIEW_JPEG = 0; + + public const RENDERINGINTENT_UNDEFINED = 0; + public const RENDERINGINTENT_SATURATION = 0; + public const RENDERINGINTENT_PERCEPTUAL = 0; + public const RENDERINGINTENT_ABSOLUTE = 0; + public const RENDERINGINTENT_RELATIVE = 0; + + public const INTERLACE_UNDEFINED = 0; + public const INTERLACE_NO = 0; + + public const FILLRULE_UNDEFINED = 0; + public const FILLRULE_EVENODD = 0; + public const FILLRULE_NONZERO = 0; + + public const PATHUNITS_USERSPACE = 0; + public const PATHUNITS_USERSPACEONUSE = 0; + public const PATHUNITS_OBJECTBOUNDINGBOX = 0; + + public const LINECAP_UNDEFINED = 0; + public const LINECAP_BUTT = 0; + public const LINECAP_ROUND = 0; + public const LINECAP_SQUARE = 0; + + public const LINEJOIN_UNDEFINED = 0; + public const LINEJOIN_MITER = 0; + public const LINEJOIN_ROUND = 0; + public const LINEJOIN_BEVEL = 0; + + public const RESOURCETYPE_UNDEFINED = 0; + public const RESOURCETYPE_AREA = 0; + public const RESOURCETYPE_DISK = 0; + public const RESOURCETYPE_FILE = 0; + public const RESOURCETYPE_MAP = 0; + public const RESOURCETYPE_MEMORY = 0; + public const RESOURCETYPE_PIXELS = 0; + public const RESOURCETYPE_THREADS = 0; + public const RESOURCETYPE_WIDTH = 0; + public const RESOURCETYPE_HEIGHT = 0; + + public const DISPOSE_UNDEFINED = 0; + public const DISPOSE_NONE = 0; + public const DISPOSE_BACKGROUND = 0; + public const DISPOSE_PREVIOUS = 0; + + public const ORIENTATION_UNDEFINED = 0; + public const ORIENTATION_TOPLEFT = 0; + public const ORIENTATION_TOPRIGHT = 0; + public const ORIENTATION_BOTTOMRIGHT = 0; + public const ORIENTATION_BOTTOMLEFT = 0; + public const ORIENTATION_LEFTTOP = 0; + public const ORIENTATION_RIGHTTOP = 0; + public const ORIENTATION_RIGHTBOTTOM = 0; + public const ORIENTATION_LEFTBOTTOM = 0; + + public const QUANTUM_DEPTH = 0; + public const QUANTUM = 0; + + public const VERSION_LIB = 0; + public const VERSION_NUM = 0; + public const VERSION_TXT = ''; /** * The Gmagick constructor. @@ -334,9 +334,7 @@ class Gmagick * * @param string $filename [optional] The path to an image to load or array of paths. */ - public function __construct($filename = null) - { - } + public function __construct($filename = null) {} /** * Adds new image to Gmagick object from the current position of the source object. @@ -350,9 +348,7 @@ public function __construct($filename = null) * * @throws GmagickException On error. */ - public function addimage($Gmagick) - { - } + public function addimage($Gmagick) {} /** * Adds random noise to the image. @@ -365,9 +361,7 @@ public function addimage($Gmagick) * * @throws GmagickException On error. */ - public function addnoiseimage($NOISE) - { - } + public function addnoiseimage($NOISE) {} /** * Annotates an image with text. @@ -384,9 +378,7 @@ public function addnoiseimage($NOISE) * * @throws GmagickException On error. */ - public function annotateimage($GmagickDraw, $x, $y, $angle, $text) - { - } + public function annotateimage($GmagickDraw, $x, $y, $angle, $text) {} /** * Adds blur filter to image. @@ -401,9 +393,7 @@ public function annotateimage($GmagickDraw, $x, $y, $angle, $text) * * @throws GmagickException On error. */ - public function blurimage($radius, $sigma, $channel = null) - { - } + public function blurimage($radius, $sigma, $channel = null) {} /** * Surrounds the image with a border of the color defined by the bordercolor GmagickPixel object or a color string. @@ -418,9 +408,7 @@ public function blurimage($radius, $sigma, $channel = null) * * @throws GmagickException On error. */ - public function borderimage($color, $width, $height) - { - } + public function borderimage($color, $width, $height) {} /** * Simulates a charcoal drawing. @@ -434,9 +422,7 @@ public function borderimage($color, $width, $height) * * @throws GmagickException On error. */ - public function charcoalimage($radius, $sigma) - { - } + public function charcoalimage($radius, $sigma) {} /** * Removes a region of an image and collapses the image to occupy the removed portion. @@ -452,9 +438,7 @@ public function charcoalimage($radius, $sigma) * * @throws GmagickException On error. */ - public function chopimage($width, $height, $x, $y) - { - } + public function chopimage($width, $height, $x, $y) {} /** * Clears all resources associated to Gmagick object. @@ -465,9 +449,7 @@ public function chopimage($width, $height, $x, $y) * * @throws GmagickException On error. */ - public function clear() - { - } + public function clear() {} /** * Adds a comment to your image. @@ -480,9 +462,7 @@ public function clear() * * @throws GmagickException On error. */ - public function commentimage($comment) - { - } + public function commentimage($comment) {} /** * Composite one image onto another at the specified offset. @@ -498,9 +478,7 @@ public function commentimage($comment) * * @throws GmagickException On error. */ - public function compositeimage($source, $COMPOSE, $x, $y) - { - } + public function compositeimage($source, $COMPOSE, $x, $y) {} /** * Extracts a region of the image. @@ -516,9 +494,7 @@ public function compositeimage($source, $COMPOSE, $x, $y) * * @throws GmagickException On error. */ - public function cropimage($width, $height, $x, $y) - { - } + public function cropimage($width, $height, $x, $y) {} /** * Creates a fixed size thumbnail by first scaling the image down and cropping a specified area from the center. @@ -532,9 +508,7 @@ public function cropimage($width, $height, $x, $y) * * @throws GmagickException On error. */ - public function cropthumbnailimage($width, $height) - { - } + public function cropthumbnailimage($width, $height) {} /** * Returns reference to the current gmagick object with image pointer at the correct sequence. @@ -545,9 +519,7 @@ public function cropthumbnailimage($width, $height) * * @throws GmagickException On error. */ - public function current() - { - } + public function current() {} /** * Displaces an image's colormap by a given number of positions. @@ -561,9 +533,7 @@ public function current() * * @throws GmagickException On error. */ - public function cyclecolormapimage($displace) - { - } + public function cyclecolormapimage($displace) {} /** * Compares each image with the next in a sequence. @@ -575,9 +545,7 @@ public function cyclecolormapimage($displace) * * @throws GmagickException On error. */ - public function deconstructimages() - { - } + public function deconstructimages() {} /** * Reduces the speckle noise in an image while preserving the edges of the original image. @@ -588,9 +556,7 @@ public function deconstructimages() * * @throws GmagickException On error. */ - public function despeckleimage() - { - } + public function despeckleimage() {} /** * Destroys the Gmagick object and frees all resources associated with it. @@ -601,9 +567,7 @@ public function despeckleimage() * * @throws GmagickException On error. */ - public function destroy() - { - } + public function destroy() {} /** * Renders the GmagickDraw object on the current image. @@ -616,9 +580,7 @@ public function destroy() * * @throws GmagickException On error. */ - public function drawimage($GmagickDraw) - { - } + public function drawimage($GmagickDraw) {} /** * Enhance edges within the image with a convolution filter of the given radius. @@ -632,9 +594,7 @@ public function drawimage($GmagickDraw) * * @throws GmagickException On error. */ - public function edgeimage($radius) - { - } + public function edgeimage($radius) {} /** * Returns a grayscale image with a three-dimensional effect. @@ -651,9 +611,7 @@ public function edgeimage($radius) * * @throws GmagickException On error. */ - public function embossimage($radius, $sigma) - { - } + public function embossimage($radius, $sigma) {} /** * Applies a digital filter that improves the quality of a noisy image. @@ -664,9 +622,7 @@ public function embossimage($radius, $sigma) * * @throws GmagickException On error. */ - public function enhanceimage() - { - } + public function enhanceimage() {} /** * Equalizes the image histogram. @@ -677,9 +633,7 @@ public function enhanceimage() * * @throws GmagickException On error. */ - public function equalizeimage() - { - } + public function equalizeimage() {} /** * Creates a vertical mirror image by reflecting the pixels around the central x-axis. @@ -690,9 +644,7 @@ public function equalizeimage() * * @throws GmagickException On error. */ - public function flipimage() - { - } + public function flipimage() {} /** * Creates a horizontal mirror image by reflecting the pixels around the central y-axis. @@ -703,9 +655,7 @@ public function flipimage() * * @throws GmagickException On error. */ - public function flopimage() - { - } + public function flopimage() {} /** * Adds a simulated three-dimensional border around the image. @@ -724,9 +674,7 @@ public function flopimage() * * @throws GmagickException On error. */ - public function frameimage($color, $width, $height, $inner_bevel, $outer_bevel) - { - } + public function frameimage($color, $width, $height, $inner_bevel, $outer_bevel) {} /** * Gamma-corrects an image. @@ -742,9 +690,7 @@ public function frameimage($color, $width, $height, $inner_bevel, $outer_bevel) * * @throws GmagickException On error. */ - public function gammaimage($gamma) - { - } + public function gammaimage($gamma) {} /** * Returns the GraphicsMagick API copyright as a string. @@ -756,9 +702,7 @@ public function gammaimage($gamma) * @throws GmagickException On error. */ #[Pure] - public function getcopyright() - { - } + public function getcopyright() {} /** * Returns the filename associated with an image sequence. @@ -770,9 +714,7 @@ public function getcopyright() * @throws GmagickException On error. */ #[Pure] - public function getfilename() - { - } + public function getfilename() {} /** * Returns the image background color. @@ -784,9 +726,7 @@ public function getfilename() * @throws GmagickException On error. */ #[Pure] - public function getimagebackgroundcolor() - { - } + public function getimagebackgroundcolor() {} /** * Returns the chromaticity blue primary point for the image. @@ -798,9 +738,7 @@ public function getimagebackgroundcolor() * @throws GmagickException On error. */ #[Pure] - public function getimageblueprimary() - { - } + public function getimageblueprimary() {} /** * Returns the image border color. @@ -812,9 +750,7 @@ public function getimageblueprimary() * @throws GmagickException On error. */ #[Pure] - public function getimagebordercolor() - { - } + public function getimagebordercolor() {} /** * Gets the depth for a particular image channel. @@ -828,9 +764,7 @@ public function getimagebordercolor() * @throws GmagickException On error. */ #[Pure] - public function getimagechanneldepth($channel_type) - { - } + public function getimagechanneldepth($channel_type) {} /** * Returns the color of the specified colormap index. @@ -842,9 +776,7 @@ public function getimagechanneldepth($channel_type) * @throws GmagickException On error */ #[Pure] - public function getimagecolors() - { - } + public function getimagecolors() {} /** * Gets the image colorspace. @@ -856,9 +788,7 @@ public function getimagecolors() * @throws GmagickException On error. */ #[Pure] - public function getimagecolorspace() - { - } + public function getimagecolorspace() {} /** * Returns the composite operator associated with the image. @@ -870,9 +800,7 @@ public function getimagecolorspace() * @throws GmagickException On error. */ #[Pure] - public function getimagecompose() - { - } + public function getimagecompose() {} /** * Gets the image delay. @@ -884,9 +812,7 @@ public function getimagecompose() * @throws GmagickException On error. */ #[Pure] - public function getimagedelay() - { - } + public function getimagedelay() {} /** * Gets the depth of the image. @@ -898,9 +824,7 @@ public function getimagedelay() * @throws GmagickException On error. */ #[Pure] - public function getimagedepth() - { - } + public function getimagedepth() {} /** * Gets the image disposal method. @@ -912,9 +836,7 @@ public function getimagedepth() * @throws GmagickException On error. */ #[Pure] - public function getimagedispose() - { - } + public function getimagedispose() {} /** * Gets the extrema for the image. @@ -926,9 +848,7 @@ public function getimagedispose() * @throws GmagickException On error. */ #[Pure] - public function getimageextrema() - { - } + public function getimageextrema() {} /** * Returns the filename of a particular image in a sequence. @@ -940,9 +860,7 @@ public function getimageextrema() * @throws GmagickException On error. */ #[Pure] - public function getimagefilename() - { - } + public function getimagefilename() {} /** * Returns the format of a particular image in a sequence. @@ -954,9 +872,7 @@ public function getimagefilename() * @throws GmagickException On error. */ #[Pure] - public function getimageformat() - { - } + public function getimageformat() {} /** * Gets the image gamma. @@ -968,9 +884,7 @@ public function getimageformat() * @throws GmagickException On error. */ #[Pure] - public function getimagegamma() - { - } + public function getimagegamma() {} /** * Returns the chromaticy green primary point. @@ -982,9 +896,7 @@ public function getimagegamma() * @throws GmagickException On error. */ #[Pure] - public function getimagegreenprimary() - { - } + public function getimagegreenprimary() {} /** * Returns the image height. @@ -996,9 +908,7 @@ public function getimagegreenprimary() * @throws GmagickException On error. */ #[Pure] - public function getimageheight() - { - } + public function getimageheight() {} /** * Gets the image histogram. @@ -1010,9 +920,7 @@ public function getimageheight() * @throws GmagickException On error. */ #[Pure] - public function getimagehistogram() - { - } + public function getimagehistogram() {} /** * Returns the index of the current active image within the Gmagick object. @@ -1024,9 +932,7 @@ public function getimagehistogram() * @throws GmagickException On error. */ #[Pure] - public function getimageindex() - { - } + public function getimageindex() {} /** * Gets the image interlace scheme. @@ -1038,9 +944,7 @@ public function getimageindex() * @throws GmagickException On error. */ #[Pure] - public function getimageinterlacescheme() - { - } + public function getimageinterlacescheme() {} /** * Gets the image iterations. @@ -1052,9 +956,7 @@ public function getimageinterlacescheme() * @throws GmagickException On error. */ #[Pure] - public function getimageiterations() - { - } + public function getimageiterations() {} /** * Checks if the image has a matte channel. @@ -1066,9 +968,7 @@ public function getimageiterations() * @throws GmagickException On error. */ #[Pure] - public function getimagematte() - { - } + public function getimagematte() {} /** * Returns the image matte color. @@ -1080,9 +980,7 @@ public function getimagematte() * @throws GmagickException On error. */ #[Pure] - public function getimagemattecolor() - { - } + public function getimagemattecolor() {} /** * Returns the named image profile. @@ -1096,9 +994,7 @@ public function getimagemattecolor() * @throws GmagickException On error. */ #[Pure] - public function getimageprofile($name) - { - } + public function getimageprofile($name) {} /** * Returns the chromaticity red primary point. @@ -1110,9 +1006,7 @@ public function getimageprofile($name) * @throws GmagickException On error. */ #[Pure] - public function getimageredprimary() - { - } + public function getimageredprimary() {} /** * Gets the image rendering intent. @@ -1124,9 +1018,7 @@ public function getimageredprimary() * @throws GmagickException On error. */ #[Pure] - public function getimagerenderingintent() - { - } + public function getimagerenderingintent() {} /** * Gets the image X and Y resolution. @@ -1138,9 +1030,7 @@ public function getimagerenderingintent() * @throws GmagickException On error. */ #[Pure] - public function getimageresolution() - { - } + public function getimageresolution() {} /** * Gets the image scene. @@ -1152,9 +1042,7 @@ public function getimageresolution() * @throws GmagickException On error. */ #[Pure] - public function getimagescene() - { - } + public function getimagescene() {} /** * Generates an SHA-256 message digest for the image pixel stream. @@ -1166,9 +1054,7 @@ public function getimagescene() * @throws GmagickException On error. */ #[Pure] - public function getimagesignature() - { - } + public function getimagesignature() {} /** * Gets the potential image type. @@ -1180,9 +1066,7 @@ public function getimagesignature() * @throws GmagickException On error. */ #[Pure] - public function getimagetype() - { - } + public function getimagetype() {} /** * Gets the image units of resolution. @@ -1192,9 +1076,7 @@ public function getimagetype() * @return int Returns the image units of resolution. */ #[Pure] - public function getimageunits() - { - } + public function getimageunits() {} /** * Returns the chromaticity white point. @@ -1206,9 +1088,7 @@ public function getimageunits() * @throws GmagickException On error. */ #[Pure] - public function getimagewhitepoint() - { - } + public function getimagewhitepoint() {} /** * Returns the width of the image. @@ -1220,9 +1100,7 @@ public function getimagewhitepoint() * @throws GmagickException On error. */ #[Pure] - public function getimagewidth() - { - } + public function getimagewidth() {} /** * Returns the GraphicsMagick package name. @@ -1234,9 +1112,7 @@ public function getimagewidth() * @throws GmagickException On error. */ #[Pure] - public function getpackagename() - { - } + public function getpackagename() {} /** * Returns the Gmagick quantum depth. @@ -1248,9 +1124,7 @@ public function getpackagename() * @throws GmagickException On error. */ #[Pure] - public function getquantumdepth() - { - } + public function getquantumdepth() {} /** * Returns the GraphicsMagick release date as a string. @@ -1262,9 +1136,7 @@ public function getquantumdepth() * @throws GmagickException On error. */ #[Pure] - public function getreleasedate() - { - } + public function getreleasedate() {} /** * Gets the horizontal and vertical sampling factor. @@ -1276,9 +1148,7 @@ public function getreleasedate() * @throws GmagickException On error. */ #[Pure] - public function getsamplingfactors() - { - } + public function getsamplingfactors() {} /** * Returns the size associated with the Gmagick object. @@ -1290,9 +1160,7 @@ public function getsamplingfactors() * @throws GmagickException On error. */ #[Pure] - public function getsize() - { - } + public function getsize() {} /** * Returns the GraphicsMagick API version. @@ -1304,9 +1172,7 @@ public function getsize() * @throws GmagickException On error. */ #[Pure] - public function getversion() - { - } + public function getversion() {} /** * Checks if the object has more images. @@ -1317,9 +1183,7 @@ public function getversion() * * @throws GmagickException On error. */ - public function hasnextimage() - { - } + public function hasnextimage() {} /** * Checks if the object has a previous image. @@ -1330,9 +1194,7 @@ public function hasnextimage() * * @throws GmagickException On error. */ - public function haspreviousimage() - { - } + public function haspreviousimage() {} /** * Creates a new image that is a copy of an existing one with the image pixels "imploded" by the specified percentage. @@ -1345,9 +1207,7 @@ public function haspreviousimage() * * @throws GmagickException On error. */ - public function implodeimage($radius) - { - } + public function implodeimage($radius) {} /** * Adds a label to an image. @@ -1360,9 +1220,7 @@ public function implodeimage($radius) * * @throws GmagickException On error. */ - public function labelimage($label) - { - } + public function labelimage($label) {} /** * Adjusts the levels of an image. @@ -1386,9 +1244,7 @@ public function labelimage($label) * * @throws GmagickException On error. */ - public function levelimage($blackPoint, $gamma, $whitePoint, $channel = false) - { - } + public function levelimage($blackPoint, $gamma, $whitePoint, $channel = false) {} /** * Scales an image proportionally 2x. @@ -1399,9 +1255,7 @@ public function levelimage($blackPoint, $gamma, $whitePoint, $channel = false) * * @throws GmagickException On error. */ - public function magnifyimage() - { - } + public function magnifyimage() {} /** * Replaces the colors of an image with the closest color from a reference image. @@ -1415,9 +1269,7 @@ public function magnifyimage() * * @throws GmagickException On error. */ - public function mapimage($gmagick, $dither) - { - } + public function mapimage($gmagick, $dither) {} /** * Applies a digital filter that improves the quality of a noisy image. @@ -1431,9 +1283,7 @@ public function mapimage($gmagick, $dither) * * @throws GmagickException On error. */ - public function medianfilterimage($radius) - { - } + public function medianfilterimage($radius) {} /** * Scales an image proportionally to half its size. @@ -1444,9 +1294,7 @@ public function medianfilterimage($radius) * * @throws GmagickException On error. */ - public function minifyimage() - { - } + public function minifyimage() {} /** * Controls the brightness, saturation, and hue. @@ -1466,9 +1314,7 @@ public function minifyimage() * * @throws GmagickException On error. */ - public function modulateimage($brightness, $saturation, $hue) - { - } + public function modulateimage($brightness, $saturation, $hue) {} /** * Simulates motion blur. @@ -1488,9 +1334,7 @@ public function modulateimage($brightness, $saturation, $hue) * * @throws GmagickException On error. */ - public function motionblurimage($radius, $sigma, $angle) - { - } + public function motionblurimage($radius, $sigma, $angle) {} /** * Creates a new image. @@ -1506,9 +1350,7 @@ public function motionblurimage($radius, $sigma, $angle) * * @throws GmagickException On error. */ - public function newimage($width, $height, $background, $format = null) - { - } + public function newimage($width, $height, $background, $format = null) {} /** * Moves to the next image. @@ -1519,9 +1361,7 @@ public function newimage($width, $height, $background, $format = null) * * @return bool True on success, false on failure. */ - public function nextimage() - { - } + public function nextimage() {} /** * Enhances the contrast of a color image. @@ -1534,9 +1374,7 @@ public function nextimage() * * @throws GmagickException On error. */ - public function normalizeimage($channel = null) - { - } + public function normalizeimage($channel = null) {} /** * Simulates an oil painting. @@ -1552,9 +1390,7 @@ public function normalizeimage($channel = null) * * @throws GmagickException On error. */ - public function oilpaintimage($radius) - { - } + public function oilpaintimage($radius) {} /** * Move to the previous image in the object. @@ -1567,9 +1403,7 @@ public function oilpaintimage($radius) * * @throws GmagickException On error. */ - public function previousimage() - { - } + public function previousimage() {} /** * Adds or removes a profile from an image. @@ -1587,9 +1421,7 @@ public function previousimage() * * @throws GmagickException On error. */ - public function profileimage($name, $profile) - { - } + public function profileimage($name, $profile) {} /** * Analyzes the colors within a reference image. @@ -1619,9 +1451,7 @@ public function profileimage($name, $profile) * * @throws GmagickException On error. */ - public function quantizeimage($numColors, $colorspace, $treeDepth, $dither, $measureError) - { - } + public function quantizeimage($numColors, $colorspace, $treeDepth, $dither, $measureError) {} /** * The quantizeimages purpose. @@ -1651,9 +1481,7 @@ public function quantizeimage($numColors, $colorspace, $treeDepth, $dither, $mea * * @throws GmagickException On error. */ - public function quantizeimages($numColors, $colorspace, $treeDepth, $dither, $measureError) - { - } + public function quantizeimages($numColors, $colorspace, $treeDepth, $dither, $measureError) {} /** * Returns an array representing the font metrics. @@ -1667,9 +1495,7 @@ public function quantizeimages($numColors, $colorspace, $treeDepth, $dither, $me * * @throws GmagickException On error. */ - public function queryfontmetrics($draw, $text) - { - } + public function queryfontmetrics($draw, $text) {} /** * Returns fonts supported by Gmagick. @@ -1682,9 +1508,7 @@ public function queryfontmetrics($draw, $text) * * @throws GmagickException On error. */ - public function queryfonts($pattern = '*') - { - } + public function queryfonts($pattern = '*') {} /** * Returns formats supported by Gmagick. @@ -1697,9 +1521,7 @@ public function queryfonts($pattern = '*') * * @throws GmagickException On error. */ - public function queryformats($pattern = '*') - { - } + public function queryformats($pattern = '*') {} /** * Radial blurs an image. @@ -1713,9 +1535,7 @@ public function queryformats($pattern = '*') * * @throws GmagickException On error. */ - public function radialblurimage($angle, $channel = Gmagick::CHANNEL_DEFAULT) - { - } + public function radialblurimage($angle, $channel = Gmagick::CHANNEL_DEFAULT) {} /** * Creates a simulated 3d button-like effect. @@ -1735,9 +1555,7 @@ public function radialblurimage($angle, $channel = Gmagick::CHANNEL_DEFAULT) * * @throws GmagickException On error. */ - public function raiseimage($width, $height, $x, $y, $raise) - { - } + public function raiseimage($width, $height, $x, $y, $raise) {} /** * Reads image from filename. @@ -1752,9 +1570,7 @@ public function raiseimage($width, $height, $x, $y, $raise) * * @throws GmagickException On error. */ - public function read($filename) - { - } + public function read($filename) {} /** * Reads image from filename. @@ -1767,9 +1583,7 @@ public function read($filename) * * @throws GmagickException On error. */ - public function readimage($filename) - { - } + public function readimage($filename) {} /** * Reads image from a binary string. @@ -1783,9 +1597,7 @@ public function readimage($filename) * * @throws GmagickException On error. */ - public function readimageblob($imageContents, $filename = null) - { - } + public function readimageblob($imageContents, $filename = null) {} /** * Reads an image or image sequence from an open file descriptor. @@ -1799,9 +1611,7 @@ public function readimageblob($imageContents, $filename = null) * * @throws GmagickException On error. */ - public function readimagefile($fp, $filename = null) - { - } + public function readimagefile($fp, $filename = null) {} /** * Smooths the contours of an image. @@ -1819,9 +1629,7 @@ public function readimagefile($fp, $filename = null) * * @throws GmagickException On error. */ - public function reducenoiseimage($radius) - { - } + public function reducenoiseimage($radius) {} /** * Removes an image from the image list. @@ -1832,9 +1640,7 @@ public function reducenoiseimage($radius) * * @throws GmagickException On error. */ - public function removeimage() - { - } + public function removeimage() {} /** * Removes the named image profile and returns it. @@ -1847,9 +1653,7 @@ public function removeimage() * * @throws GmagickException On error. */ - public function removeimageprofile($name) - { - } + public function removeimageprofile($name) {} /** * Resample image to desired resolution. @@ -1865,9 +1669,7 @@ public function removeimageprofile($name) * * @throws GmagickException On error. */ - public function resampleimage($xResolution, $yResolution, $filter, $blur) - { - } + public function resampleimage($xResolution, $yResolution, $filter, $blur) {} /** * Scales an image to the desired dimensions with a filter. @@ -1884,9 +1686,7 @@ public function resampleimage($xResolution, $yResolution, $filter, $blur) * * @throws GmagickException On error. */ - public function resizeimage($width, $height, $filter, $blur, $fit = false) - { - } + public function resizeimage($width, $height, $filter, $blur, $fit = false) {} /** * Offsets an image as defined by x and y. @@ -1900,9 +1700,7 @@ public function resizeimage($width, $height, $filter, $blur, $fit = false) * * @throws GmagickException On error. */ - public function rollimage($x, $y) - { - } + public function rollimage($x, $y) {} /** * Rotates an image the specified number of degrees. @@ -1918,9 +1716,7 @@ public function rollimage($x, $y) * * @throws GmagickException On error. */ - public function rotateimage($color, $degrees) - { - } + public function rotateimage($color, $degrees) {} /** * Scales the size of an image to the given dimensions. @@ -1937,9 +1733,7 @@ public function rotateimage($color, $degrees) * * @throws GmagickException On error. */ - public function scaleimage($width, $height, $fit = false) - { - } + public function scaleimage($width, $height, $fit = false) {} /** * Separates a channel from the image and returns a grayscale image. @@ -1956,9 +1750,7 @@ public function scaleimage($width, $height, $fit = false) * * @throws GmagickException On error. */ - public function separateimagechannel($channel) - { - } + public function separateimagechannel($channel) {} /** * Sets the object's default compression quality. @@ -1971,10 +1763,7 @@ public function separateimagechannel($channel) * * @throws GmagickException On error. */ - public function setCompressionQuality($quality = 75) - { - - } + public function setCompressionQuality($quality = 75) {} /** * Sets the filename before you read or write the image. @@ -1987,9 +1776,7 @@ public function setCompressionQuality($quality = 75) * * @throws GmagickException On error. */ - public function setfilename($filename) - { - } + public function setfilename($filename) {} /** * Sets the image background color. @@ -2002,9 +1789,7 @@ public function setfilename($filename) * * @throws GmagickException On error. */ - public function setimagebackgroundcolor($color) - { - } + public function setimagebackgroundcolor($color) {} /** * Sets the image chromaticity blue primary point. @@ -2018,9 +1803,7 @@ public function setimagebackgroundcolor($color) * * @throws GmagickException On error. */ - public function setimageblueprimary($x, $y) - { - } + public function setimageblueprimary($x, $y) {} /** * Sets the image border color. @@ -2033,9 +1816,7 @@ public function setimageblueprimary($x, $y) * * @throws GmagickException On error. */ - public function setimagebordercolor(GmagickPixel $color) - { - } + public function setimagebordercolor(GmagickPixel $color) {} /** * Sets the depth of a particular image channel. @@ -2050,9 +1831,7 @@ public function setimagebordercolor(GmagickPixel $color) * * @throws GmagickException On error. */ - public function setimagechanneldepth($channel, $depth) - { - } + public function setimagechanneldepth($channel, $depth) {} /** * Sets the image colorspace. @@ -2068,9 +1847,7 @@ public function setimagechanneldepth($channel, $depth) * * @throws GmagickException On error. */ - public function setimagecolorspace($colorspace) - { - } + public function setimagecolorspace($colorspace) {} /** * Sets the image composite operator. @@ -2083,9 +1860,7 @@ public function setimagecolorspace($colorspace) * * @throws GmagickException On error. */ - public function setimagecompose($composite) - { - } + public function setimagecompose($composite) {} /** * Sets the image delay. @@ -2098,9 +1873,7 @@ public function setimagecompose($composite) * * @throws GmagickException On error. */ - public function setimagedelay($delay) - { - } + public function setimagedelay($delay) {} /** * Sets the image depth. @@ -2113,9 +1886,7 @@ public function setimagedelay($delay) * * @throws GmagickException On error. */ - public function setimagedepth($depth) - { - } + public function setimagedepth($depth) {} /** * Sets the image disposal method. @@ -2128,9 +1899,7 @@ public function setimagedepth($depth) * * @throws GmagickException On error. */ - public function setimagedispose($disposeType) - { - } + public function setimagedispose($disposeType) {} /** * Sets the filename of a particular image in a sequence. @@ -2143,9 +1912,7 @@ public function setimagedispose($disposeType) * * @throws GmagickException On error. */ - public function setimagefilename($filename) - { - } + public function setimagefilename($filename) {} /** * Sets the format of a particular image in a sequence. @@ -2158,9 +1925,7 @@ public function setimagefilename($filename) * * @throws GmagickException On error. */ - public function setimageformat($imageFormat) - { - } + public function setimageformat($imageFormat) {} /** * Sets the image gamma. @@ -2173,9 +1938,7 @@ public function setimageformat($imageFormat) * * @throws GmagickException On error. */ - public function setimagegamma($gamma) - { - } + public function setimagegamma($gamma) {} /** * Sets the image chromaticity green primary point. @@ -2189,9 +1952,7 @@ public function setimagegamma($gamma) * * @throws GmagickException On error. */ - public function setimagegreenprimary($x, $y) - { - } + public function setimagegreenprimary($x, $y) {} /** * Sets the iterator to the position in the image list specified with the index parameter. @@ -2204,9 +1965,7 @@ public function setimagegreenprimary($x, $y) * * @throws GmagickException On error. */ - public function setimageindex($index) - { - } + public function setimageindex($index) {} /** * Sets the interlace scheme of the image. @@ -2219,9 +1978,7 @@ public function setimageindex($index) * * @throws GmagickException On error. */ - public function setimageinterlacescheme($interlace) - { - } + public function setimageinterlacescheme($interlace) {} /** * Sets the image iterations. @@ -2234,9 +1991,7 @@ public function setimageinterlacescheme($interlace) * * @throws GmagickException On error. */ - public function setimageiterations($iterations) - { - } + public function setimageiterations($iterations) {} /** * Adds a named profile to the Gmagick object. @@ -2253,9 +2008,7 @@ public function setimageiterations($iterations) * * @throws GmagickException On error. */ - public function setimageprofile($name, $profile) - { - } + public function setimageprofile($name, $profile) {} /** * Sets the image chromaticity red primary point. @@ -2269,9 +2022,7 @@ public function setimageprofile($name, $profile) * * @throws GmagickException On error. */ - public function setimageredprimary($x, $y) - { - } + public function setimageredprimary($x, $y) {} /** * Sets the image rendering intent. @@ -2285,9 +2036,7 @@ public function setimageredprimary($x, $y) * * @throws GmagickException On error. */ - public function setimagerenderingintent($rendering_intent) - { - } + public function setimagerenderingintent($rendering_intent) {} /** * Sets the image resolution. @@ -2301,9 +2050,7 @@ public function setimagerenderingintent($rendering_intent) * * @throws GmagickException On error. */ - public function setimageresolution($xResolution, $yResolution) - { - } + public function setimageresolution($xResolution, $yResolution) {} /** * Sets the image scene. @@ -2316,9 +2063,7 @@ public function setimageresolution($xResolution, $yResolution) * * @throws GmagickException On error. */ - public function setimagescene($scene) - { - } + public function setimagescene($scene) {} /** * Sets the image type. @@ -2333,9 +2078,7 @@ public function setimagescene($scene) * * @throws GmagickException On error. */ - public function setimagetype($imgType) - { - } + public function setimagetype($imgType) {} /** * Sets the image units of resolution. @@ -2349,9 +2092,7 @@ public function setimagetype($imgType) * * @throws GmagickException On error. */ - public function setimageunits($resolution) - { - } + public function setimageunits($resolution) {} /** * Sets the image chromaticity white point. @@ -2365,9 +2106,7 @@ public function setimageunits($resolution) * * @throws GmagickException On error. */ - public function setimagewhitepoint($x, $y) - { - } + public function setimagewhitepoint($x, $y) {} /** * Sets the image sampling factors. @@ -2381,9 +2120,7 @@ public function setimagewhitepoint($x, $y) * * @throws GmagickException On error. */ - public function setsamplingfactors($factors) - { - } + public function setsamplingfactors($factors) {} /** * Sets the size of the Gmagick object. @@ -2399,9 +2136,7 @@ public function setsamplingfactors($factors) * * @throws GmagickException On error. */ - public function setsize($columns, $rows) - { - } + public function setsize($columns, $rows) {} /** * Slides one edge of an image along the X or Y axis, creating a parallelogram. @@ -2421,9 +2156,7 @@ public function setsize($columns, $rows) * * @throws GmagickException On error. */ - public function shearimage($color, $xShear, $yShear) - { - } + public function shearimage($color, $xShear, $yShear) {} /** * Applies a solarizing effect to the image. @@ -2440,9 +2173,7 @@ public function shearimage($color, $xShear, $yShear) * * @throws GmagickException On error. */ - public function solarizeimage($threshold) - { - } + public function solarizeimage($threshold) {} /** * Randomly displaces each pixel in a block. @@ -2457,9 +2188,7 @@ public function solarizeimage($threshold) * * @throws GmagickException On error. */ - public function spreadimage($radius) - { - } + public function spreadimage($radius) {} /** * Strips an image of all profiles and comments. @@ -2470,9 +2199,7 @@ public function spreadimage($radius) * * @throws GmagickException On error. */ - public function stripimage() - { - } + public function stripimage() {} /** * Swirls the pixels about the center of the image. @@ -2488,9 +2215,7 @@ public function stripimage() * * @throws GmagickException On error. */ - public function swirlimage($degrees) - { - } + public function swirlimage($degrees) {} /** * Changes the size of an image to the given dimensions and removes any associated profiles. @@ -2509,9 +2234,7 @@ public function swirlimage($degrees) * * @throws GmagickException On error. */ - public function thumbnailimage($width, $height, $fit = false) - { - } + public function thumbnailimage($width, $height, $fit = false) {} /** * Remove edges that are the background color from the image. @@ -2527,9 +2250,7 @@ public function thumbnailimage($width, $height, $fit = false) * * @throws GmagickException On error. */ - public function trimimage($fuzz) - { - } + public function trimimage($fuzz) {} /** * Writes an image to the specified filename. @@ -2547,9 +2268,7 @@ public function trimimage($fuzz) * * @throws GmagickException On error. */ - public function write($filename) - { - } + public function write($filename) {} /** * Writes an image to the specified filename. @@ -2566,9 +2285,7 @@ public function write($filename) * * @throws GmagickException On error. */ - public function writeimage($filename, $all_frames = false) - { - } + public function writeimage($filename, $all_frames = false) {} } /** @@ -2587,9 +2304,7 @@ class GmagickDraw * * @return GmagickDraw The GmagickDraw object on success. */ - public function annotate($x, $y, $text) - { - } + public function annotate($x, $y, $text) {} /** * Draws an arc falling within a specified bounding rectangle on the image. @@ -2605,9 +2320,7 @@ public function annotate($x, $y, $text) * * @return GmagickDraw The GmagickDraw object on success. */ - public function arc($sx, $sy, $ex, $ey, $sd, $ed) - { - } + public function arc($sx, $sy, $ex, $ey, $sd, $ed) {} /** * Draws a bezier curve through a set of points on the image. @@ -2618,9 +2331,7 @@ public function arc($sx, $sy, $ex, $ey, $sd, $ed) * * @return GmagickDraw The GmagickDraw object on success. */ - public function bezier(array $coordinate_array) - { - } + public function bezier(array $coordinate_array) {} /** * Draws an ellipse on the image. @@ -2636,9 +2347,7 @@ public function bezier(array $coordinate_array) * * @return GmagickDraw The GmagickDraw object on success. */ - public function ellipse($ox, $oy, $rx, $ry, $start, $end) - { - } + public function ellipse($ox, $oy, $rx, $ry, $start, $end) {} /** * Returns the fill color used for drawing filled objects. @@ -2648,9 +2357,7 @@ public function ellipse($ox, $oy, $rx, $ry, $start, $end) * @return GmagickPixel The GmagickPixel fill color used for drawing filled objects. */ #[Pure] - public function getfillcolor() - { - } + public function getfillcolor() {} /** * Returns the opacity used when drawing. @@ -2660,9 +2367,7 @@ public function getfillcolor() * @return float The opacity used when drawing using the fill color or fill texture. Fully opaque is 1.0. */ #[Pure] - public function getfillopacity() - { - } + public function getfillopacity() {} /** * Returns a string specifying the font used when annotating with text. @@ -2672,9 +2377,7 @@ public function getfillopacity() * @return string|false A string on success and false if no font is set. */ #[Pure] - public function getfont() - { - } + public function getfont() {} /** * Returns the font pointsize used when annotating with text. @@ -2684,9 +2387,7 @@ public function getfont() * @return float The font size associated with the current GmagickDraw object. */ #[Pure] - public function getfontsize() - { - } + public function getfontsize() {} /** * Returns the font style used when annotating with text. @@ -2696,9 +2397,7 @@ public function getfontsize() * @return int The font style constant (STYLE_) associated with the GmagickDraw object or 0 if no style is set. */ #[Pure] - public function getfontstyle() - { - } + public function getfontstyle() {} /** * Returns the font weight used when annotating with text. @@ -2708,9 +2407,7 @@ public function getfontstyle() * @return int An int on success and 0 if no weight is set. */ #[Pure] - public function getfontweight() - { - } + public function getfontweight() {} /** * Returns the color used for stroking object outlines. @@ -2720,9 +2417,7 @@ public function getfontweight() * @return GmagickPixel Returns an GmagickPixel object which describes the color. */ #[Pure] - public function getstrokecolor() - { - } + public function getstrokecolor() {} /** * Returns the opacity of stroked object outlines. @@ -2732,9 +2427,7 @@ public function getstrokecolor() * @return float Returns a float describing the opacity. */ #[Pure] - public function getstrokeopacity() - { - } + public function getstrokeopacity() {} /** * Returns the width of the stroke used to draw object outlines. @@ -2744,9 +2437,7 @@ public function getstrokeopacity() * @return float Returns a float describing the stroke width. */ #[Pure] - public function getstrokewidth() - { - } + public function getstrokewidth() {} /** * Returns the decoration applied when annotating with text. @@ -2756,9 +2447,7 @@ public function getstrokewidth() * @return int Returns one of the DECORATION_ constants and 0 if no decoration is set. */ #[Pure] - public function gettextdecoration() - { - } + public function gettextdecoration() {} /** * Returns the code set used for text annotations. @@ -2768,9 +2457,7 @@ public function gettextdecoration() * @return string|false Returns a string specifying the code set or false if text encoding is not set. */ #[Pure] - public function gettextencoding() - { - } + public function gettextencoding() {} /** * Draws a line on the image using the current stroke color, stroke opacity, and stroke width. @@ -2784,9 +2471,7 @@ public function gettextencoding() * * @return GmagickDraw The GmagickDraw object on success. */ - public function line($sx, $sy, $ex, $ey) - { - } + public function line($sx, $sy, $ex, $ey) {} /** * Draws a point using the current stroke color and stroke thickness at the specified coordinates. @@ -2798,9 +2483,7 @@ public function line($sx, $sy, $ex, $ey) * * @return GmagickDraw The GmagickDraw object on success. */ - public function point($x, $y) - { - } + public function point($x, $y) {} /** * Draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates. @@ -2811,9 +2494,7 @@ public function point($x, $y) * * @return GmagickDraw The GmagickDraw object on success. */ - public function polygon(array $coordinates) - { - } + public function polygon(array $coordinates) {} /** * Draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates. @@ -2824,9 +2505,7 @@ public function polygon(array $coordinates) * * @return GmagickDraw The GmagickDraw object on success. */ - public function polyline(array $coordinate_array) - { - } + public function polyline(array $coordinate_array) {} /** * Draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings. @@ -2840,9 +2519,7 @@ public function polyline(array $coordinate_array) * * @return GmagickDraw The GmagickDraw object on success. */ - public function rectangle($x1, $y1, $x2, $y2) - { - } + public function rectangle($x1, $y1, $x2, $y2) {} /** * Applies the specified rotation to the current coordinate space. @@ -2853,9 +2530,7 @@ public function rectangle($x1, $y1, $x2, $y2) * * @return GmagickDraw The GmagickDraw object on success. */ - public function rotate($degrees) - { - } + public function rotate($degrees) {} /** * Draws a rounded rectangle given two coordinates, x and y corner radiuses and using the current stroke, stroke width, and fill settings. @@ -2871,9 +2546,7 @@ public function rotate($degrees) * * @return GmagickDraw The GmagickDraw object on success. */ - public function roundrectangle($x1, $y1, $x2, $y2, $rx, $ry) - { - } + public function roundrectangle($x1, $y1, $x2, $y2, $rx, $ry) {} /** * Adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space. @@ -2885,9 +2558,7 @@ public function roundrectangle($x1, $y1, $x2, $y2, $rx, $ry) * * @return GmagickDraw The GmagickDraw object on success. */ - public function scale($x, $y) - { - } + public function scale($x, $y) {} /** * Sets the fill color to be used for drawing filled objects. @@ -2898,9 +2569,7 @@ public function scale($x, $y) * * @return GmagickDraw The GmagickDraw object on success. */ - public function setfillcolor($color) - { - } + public function setfillcolor($color) {} /** * Sets the opacity to use when drawing using the fill color or fill texture. Setting it to 1.0 will make fill full opaque. @@ -2911,9 +2580,7 @@ public function setfillcolor($color) * * @return GmagickDraw The GmagickDraw object on success. */ - public function setfillopacity($fill_opacity) - { - } + public function setfillopacity($fill_opacity) {} /** * Sets the fully-specified font to use when annotating with text. @@ -2924,9 +2591,7 @@ public function setfillopacity($fill_opacity) * * @return GmagickDraw The GmagickDraw object on success. */ - public function setfont($font) - { - } + public function setfont($font) {} /** * Sets the font pointsize to use when annotating with text. @@ -2937,9 +2602,7 @@ public function setfont($font) * * @return GmagickDraw The GmagickDraw object on success. */ - public function setfontsize($pointsize) - { - } + public function setfontsize($pointsize) {} /** * Sets the font style to use when annotating with text. @@ -2952,9 +2615,7 @@ public function setfontsize($pointsize) * * @return GmagickDraw The GmagickDraw object on success. */ - public function setfontstyle($style) - { - } + public function setfontstyle($style) {} /** * Sets the font weight to use when annotating with text. @@ -2965,9 +2626,7 @@ public function setfontstyle($style) * * @return GmagickDraw The GmagickDraw object on success. */ - public function setfontweight($weight) - { - } + public function setfontweight($weight) {} /** * Sets the color used for stroking object outlines. @@ -2978,9 +2637,7 @@ public function setfontweight($weight) * * @return GmagickDraw The GmagickDraw object on success. */ - public function setstrokecolor($color) - { - } + public function setstrokecolor($color) {} /** * Specifies the opacity of stroked object outlines. @@ -2991,9 +2648,7 @@ public function setstrokecolor($color) * * @return GmagickDraw The GmagickDraw object on success. */ - public function setstrokeopacity($stroke_opacity) - { - } + public function setstrokeopacity($stroke_opacity) {} /** * Sets the width of the stroke used to draw object outlines. @@ -3004,9 +2659,7 @@ public function setstrokeopacity($stroke_opacity) * * @return GmagickDraw The GmagickDraw object on success. */ - public function setstrokewidth($width) - { - } + public function setstrokewidth($width) {} /** * Specifies a decoration to be applied when annotating with text. @@ -3018,9 +2671,7 @@ public function setstrokewidth($width) * * @return GmagickDraw The GmagickDraw object on success. */ - public function settextdecoration($decoration) - { - } + public function settextdecoration($decoration) {} /** * Specifies the code set to use for text annotations. @@ -3035,14 +2686,10 @@ public function settextdecoration($decoration) * * @return GmagickDraw The GmagickDraw object on success. */ - public function settextencoding($encoding) - { - } + public function settextencoding($encoding) {} } -class GmagickException extends \Exception -{ -} +class GmagickException extends \Exception {} /** * @link https://php.net/manual/en/class.gmagickpixel.php @@ -3058,9 +2705,7 @@ class GmagickPixel * * @param string $color [optional] The optional color string to use as the initial value of this object. */ - public function __construct($color = null) - { - } + public function __construct($color = null) {} /** * Returns the color described by the GmagickPixel object. @@ -3077,9 +2722,7 @@ public function __construct($color = null) * @throws GmagickPixelException On error. */ #[Pure] - public function getcolor($as_array = null, $normalize_array = null) - { - } + public function getcolor($as_array = null, $normalize_array = null) {} /** * Returns the color count associated with this color. @@ -3091,9 +2734,7 @@ public function getcolor($as_array = null, $normalize_array = null) * @throws GmagickPixelException On failure. */ #[Pure] - public function getcolorcount() - { - } + public function getcolorcount() {} /** * Gets the normalized value of the provided color channel. @@ -3107,9 +2748,7 @@ public function getcolorcount() * @throws GmagickPixelException On error. */ #[Pure] - public function getcolorvalue($color) - { - } + public function getcolorvalue($color) {} /** * Sets the color. @@ -3123,9 +2762,7 @@ public function getcolorvalue($color) * * @return GmagickPixel The GmagickPixel object on success. */ - public function setcolor($color) - { - } + public function setcolor($color) {} /** * Sets the normalized value of one of the channels. @@ -3140,11 +2777,7 @@ public function setcolor($color) * * @return GmagickPixel The GmagickPixel object on success. */ - public function setcolorvalue($color, $value) - { - } + public function setcolorvalue($color, $value) {} } -class GmagickPixelException extends \Exception -{ -} +class GmagickPixelException extends \Exception {} diff --git a/gmp/gmp.php b/gmp/gmp.php index 1c121da7d..625a657ca 100644 --- a/gmp/gmp.php +++ b/gmp/gmp.php @@ -24,7 +24,7 @@ * @return resource|GMP A GMP number resource. */ #[Pure] -function gmp_init ($number, $base = 0) {} +function gmp_init($number, $base = 0) {} /** * Convert GMP number to integer @@ -35,7 +35,7 @@ function gmp_init ($number, $base = 0) {} * @return int An integer value of gmpnumber. */ #[Pure] -function gmp_intval ($gmpnumber) {} +function gmp_intval($gmpnumber) {} /** * Sets the RNG seed @@ -46,7 +46,7 @@ function gmp_intval ($gmpnumber) {} * @return null|false Returns NULL on success. * @since 7.0 */ -function gmp_random_seed ($seed ) {} +function gmp_random_seed($seed) {} /** * Convert GMP number to string * @link https://php.net/manual/en/function.gmp-strval.php @@ -62,7 +62,7 @@ function gmp_random_seed ($seed ) {} * @return string The number, as a string. */ #[Pure] -function gmp_strval ($gmpnumber, $base = 10) {} +function gmp_strval($gmpnumber, $base = 10) {} /** * Add numbers @@ -80,7 +80,7 @@ function gmp_strval ($gmpnumber, $base = 10) {} * @return resource|GMP A GMP number representing the sum of the arguments. */ #[Pure] -function gmp_add ($a, $b) {} +function gmp_add($a, $b) {} /** * Subtract numbers @@ -98,7 +98,7 @@ function gmp_add ($a, $b) {} * @return resource|GMP A GMP number resource. */ #[Pure] -function gmp_sub ($a, $b) {} +function gmp_sub($a, $b) {} /** * Multiply numbers @@ -116,7 +116,7 @@ function gmp_sub ($a, $b) {} * @return resource|GMP A GMP number resource. */ #[Pure] -function gmp_mul ($a, $b) {} +function gmp_mul($a, $b) {} /** * Divide numbers and get quotient and remainder @@ -141,7 +141,7 @@ function gmp_mul ($a, $b) {} * (the remainder of the division). */ #[Pure] -function gmp_div_qr ($n, $d, $round = GMP_ROUND_ZERO) {} +function gmp_div_qr($n, $d, $round = GMP_ROUND_ZERO) {} /** * Divide numbers @@ -165,7 +165,7 @@ function gmp_div_qr ($n, $d, $round = GMP_ROUND_ZERO) {} * @return resource|GMP A GMP number resource. */ #[Pure] -function gmp_div_q ($a, $b, $round = GMP_ROUND_ZERO) {} +function gmp_div_q($a, $b, $round = GMP_ROUND_ZERO) {} /** * Remainder of the division of numbers @@ -187,7 +187,7 @@ function gmp_div_q ($a, $b, $round = GMP_ROUND_ZERO) {} * @return resource|GMP The remainder, as a GMP number. */ #[Pure] -function gmp_div_r ($n, $d, $round = GMP_ROUND_ZERO) {} +function gmp_div_r($n, $d, $round = GMP_ROUND_ZERO) {} /** * Divide numbers @@ -211,7 +211,7 @@ function gmp_div_r ($n, $d, $round = GMP_ROUND_ZERO) {} * @return resource|GMP A GMP number resource. */ #[Pure] -function gmp_div ($a, $b, $round = GMP_ROUND_ZERO) {} +function gmp_div($a, $b, $round = GMP_ROUND_ZERO) {} /** * Modulo operation @@ -226,7 +226,7 @@ function gmp_div ($a, $b, $round = GMP_ROUND_ZERO) {} * @return resource|GMP A GMP number resource. */ #[Pure] -function gmp_mod ($n, $d) {} +function gmp_mod($n, $d) {} /** * Exact division of numbers @@ -244,7 +244,7 @@ function gmp_mod ($n, $d) {} * @return resource|GMP A GMP number resource. */ #[Pure] -function gmp_divexact ($n, $d) {} +function gmp_divexact($n, $d) {} /** * Negate number @@ -254,7 +254,7 @@ function gmp_divexact ($n, $d) {} * @return resource|GMP -a, as a GMP number. */ #[Pure] -function gmp_neg ($a) {} +function gmp_neg($a) {} /** * Absolute value @@ -264,7 +264,7 @@ function gmp_neg ($a) {} * @return resource|GMP the absolute value of a, as a GMP number. */ #[Pure] -function gmp_abs ($a) {} +function gmp_abs($a) {} /** * Factorial @@ -277,7 +277,7 @@ function gmp_abs ($a) {} * @return resource|GMP A GMP number resource. */ #[Pure] -function gmp_fact ($a) {} +function gmp_fact($a) {} /** * Calculate square root @@ -287,7 +287,7 @@ function gmp_fact ($a) {} * @return resource|GMP The integer portion of the square root, as a GMP number. */ #[Pure] -function gmp_sqrt ($a) {} +function gmp_sqrt($a) {} /** * Square root with remainder @@ -303,7 +303,7 @@ function gmp_sqrt ($a) {} * first element squared). */ #[Pure] -function gmp_sqrtrem ($a) {} +function gmp_sqrtrem($a) {} /** * Raise number into power @@ -320,7 +320,7 @@ function gmp_sqrtrem ($a) {} * 0^0 yields 1. */ #[Pure] -function gmp_pow ($base, $exp) {} +function gmp_pow($base, $exp) {} /** * Raise number into power with modulo @@ -343,7 +343,7 @@ function gmp_pow ($base, $exp) {} * @return resource|GMP The new (raised) number, as a GMP number. */ #[Pure] -function gmp_powm ($base, $exp, $mod) {} +function gmp_powm($base, $exp, $mod) {} /** * Perfect square check @@ -357,7 +357,7 @@ function gmp_powm ($base, $exp, $mod) {} * FALSE otherwise. */ #[Pure] -function gmp_perfect_square ($a) {} +function gmp_perfect_square($a) {} /** * Check if number is "probably prime" @@ -381,7 +381,7 @@ function gmp_perfect_square ($a) {} * then a is surely prime. */ #[Pure] -function gmp_prob_prime ($a, $reps = 10) {} +function gmp_prob_prime($a, $reps = 10) {} /** * Random number @@ -415,7 +415,7 @@ function gmp_random_range(GMP $min, GMP $max) {} * a and b. */ #[Pure] -function gmp_gcd ($a, $b) {} +function gmp_gcd($a, $b) {} /** * Calculate GCD and multipliers @@ -427,7 +427,7 @@ function gmp_gcd ($a, $b) {} * @return array An array of GMP numbers. */ #[Pure] -function gmp_gcdext ($a, $b) {} +function gmp_gcdext($a, $b) {} /** * Inverse by modulo @@ -439,7 +439,7 @@ function gmp_gcdext ($a, $b) {} * @return resource|GMP|false A GMP number on success or FALSE if an inverse does not exist. */ #[Pure] -function gmp_invert ($a, $b) {} +function gmp_invert($a, $b) {} /** * Jacobi symbol @@ -454,7 +454,7 @@ function gmp_invert ($a, $b) {} * @return int A GMP number resource. */ #[Pure] -function gmp_jacobi ($a, $p) {} +function gmp_jacobi($a, $p) {} /** * Legendre symbol @@ -469,7 +469,7 @@ function gmp_jacobi ($a, $p) {} * @return int A GMP number resource. */ #[Pure] -function gmp_legendre ($a, $p) {} +function gmp_legendre($a, $p) {} /** * Compare numbers @@ -483,7 +483,7 @@ function gmp_legendre ($a, $p) {} * b. */ #[Pure] -function gmp_cmp ($a, $b) {} +function gmp_cmp($a, $b) {} /** * Sign of number @@ -495,7 +495,7 @@ function gmp_cmp ($a, $b) {} * and 0 if a is zero. */ #[Pure] -function gmp_sign ($a) {} +function gmp_sign($a) {} /** * Random number @@ -512,7 +512,7 @@ function gmp_sign ($a) {} */ #[Deprecated(reason: "Use see gmp_random_bits() or see gmp_random_range() instead", since: "7.2")] #[Pure] -function gmp_random ($limiter = 20) {} +function gmp_random($limiter = 20) {} /** * Bitwise AND @@ -524,7 +524,7 @@ function gmp_random ($limiter = 20) {} * @return resource|GMP A GMP number representing the bitwise AND comparison. */ #[Pure] -function gmp_and ($a, $b) {} +function gmp_and($a, $b) {} /** * Bitwise OR @@ -536,7 +536,7 @@ function gmp_and ($a, $b) {} * @return resource|GMP A GMP number resource. */ #[Pure] -function gmp_or ($a, $b) {} +function gmp_or($a, $b) {} /** * Calculates one's complement @@ -546,7 +546,7 @@ function gmp_or ($a, $b) {} * @return resource|GMP the one's complement of a, as a GMP number. */ #[Pure] -function gmp_com ($a) {} +function gmp_com($a) {} /** * Bitwise XOR @@ -558,7 +558,7 @@ function gmp_com ($a) {} * @return resource|GMP A GMP number resource. */ #[Pure] -function gmp_xor ($a, $b) {} +function gmp_xor($a, $b) {} /** * Set bit @@ -577,7 +577,7 @@ function gmp_xor ($a, $b) {} *

    * @return void A GMP number resource. */ -function gmp_setbit (&$a, $index, $set_clear = true) {} +function gmp_setbit(&$a, $index, $set_clear = true) {} /** * Clear bit @@ -588,7 +588,7 @@ function gmp_setbit (&$a, $index, $set_clear = true) {} * numeric string given that it is possible to convert the latter to a number.

    * @return void A GMP number resource. */ -function gmp_clrbit (&$a, $index) {} +function gmp_clrbit(&$a, $index) {} /** * Scan for 0 @@ -605,7 +605,7 @@ function gmp_clrbit (&$a, $index) {} * index starts from 0. */ #[Pure] -function gmp_scan0 ($a, $start) {} +function gmp_scan0($a, $start) {} /** * Scan for 1 @@ -622,7 +622,7 @@ function gmp_scan0 ($a, $start) {} * If no set bit is found, -1 is returned. */ #[Pure] -function gmp_scan1 ($a, $start) {} +function gmp_scan1($a, $start) {} /** * Tests if a bit is set @@ -635,7 +635,7 @@ function gmp_scan1 ($a, $start) {} * @return bool TRUE on success or FALSE on failure. */ #[Pure] -function gmp_testbit ($a, $index) {} +function gmp_testbit($a, $index) {} /** * Population count @@ -645,7 +645,7 @@ function gmp_testbit ($a, $index) {} * @return int The population count of a, as an integer. */ #[Pure] -function gmp_popcount ($a) {} +function gmp_popcount($a) {} /** * Hamming distance @@ -663,58 +663,58 @@ function gmp_popcount ($a) {} * @return int A GMP number resource. */ #[Pure] -function gmp_hamdist ($a, $b) {} +function gmp_hamdist($a, $b) {} /** * Import from a binary string * @link https://php.net/manual/en/function.gmp-import.php * @param string $data The binary string being imported - * @param integer $word_size

    Default value is 1. The number of bytes in each chunk of binary + * @param int $word_size

    Default value is 1. The number of bytes in each chunk of binary * data. This is mainly used in conjunction with the options parameter.

    - * @param integer $options Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN. + * @param int $options Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN. * @return GMP|false Returns a GMP number or FALSE on failure. * @since 5.6.1 */ #[Pure] -function gmp_import ($data, $word_size = 1, $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN) {} +function gmp_import($data, $word_size = 1, $options = GMP_MSW_FIRST|GMP_NATIVE_ENDIAN) {} /** * Export to a binary string * @link https://php.net/manual/en/function.gmp-export.php * @param GMP $gmpnumber The GMP number being exported - * @param integer $word_size

    Default value is 1. The number of bytes in each chunk of binary + * @param int $word_size

    Default value is 1. The number of bytes in each chunk of binary * data. This is mainly used in conjunction with the options parameter.

    - * @param integer $options Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN. + * @param int $options Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN. * @return string|false Returns a string or FALSE on failure. * @since 5.6.1 */ #[Pure] -function gmp_export (GMP $gmpnumber, $word_size = 1, $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN) {} +function gmp_export(GMP $gmpnumber, $word_size = 1, $options = GMP_MSW_FIRST|GMP_NATIVE_ENDIAN) {} /** * Takes the nth root of a and returns the integer component of the result. * @link https://php.net/manual/en/function.gmp-root.php * @param GMP $a

    Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 * and later, or a numeric string provided that it is possible to convert the latter to a number.

    - * @param integer $nth The positive root to take of a. + * @param int $nth The positive root to take of a. * @return GMP The integer component of the resultant root, as a GMP number. * @since 5.6 */ #[Pure] -function gmp_root (GMP $a, $nth) {} +function gmp_root(GMP $a, $nth) {} /** * Takes the nth root of a and returns the integer component and remainder of the result. * @link https://php.net/manual/en/function.gmp-rootrem.php * @param GMP $a

    Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 * and later, or a numeric string provided that it is possible to convert the latter to a number.

    - * @param integer $nth The positive root to take of a. + * @param int $nth The positive root to take of a. * @return array|GMP[]

    A two element array, where the first element is the integer component of * the root, and the second element is the remainder, both represented as GMP numbers.

    * @since 5.6 */ #[Pure] -function gmp_rootrem (GMP $a, $nth) {} +function gmp_rootrem(GMP $a, $nth) {} /** * Find next prime number @@ -725,7 +725,7 @@ function gmp_rootrem (GMP $a, $nth) {} * as a GMP number. */ #[Pure] -function gmp_nextprime ($a) {} +function gmp_nextprime($a) {} /** * Calculates binomial coefficient @@ -782,25 +782,25 @@ function gmp_lcm($a, $b) {} #[Pure] function gmp_perfect_power($a) {} -define ('GMP_ROUND_ZERO', 0); -define ('GMP_ROUND_PLUSINF', 1); -define ('GMP_ROUND_MINUSINF', 2); -define ('GMP_MSW_FIRST', 1); -define ('GMP_LSW_FIRST', 2); -define ('GMP_LITTLE_ENDIAN', 4); -define ('GMP_BIG_ENDIAN', 8); -define ('GMP_NATIVE_ENDIAN', 16); +define('GMP_ROUND_ZERO', 0); +define('GMP_ROUND_PLUSINF', 1); +define('GMP_ROUND_MINUSINF', 2); +define('GMP_MSW_FIRST', 1); +define('GMP_LSW_FIRST', 2); +define('GMP_LITTLE_ENDIAN', 4); +define('GMP_BIG_ENDIAN', 8); +define('GMP_NATIVE_ENDIAN', 16); /** * The GMP library version * @link https://php.net/manual/en/gmp.constants.php */ -define ('GMP_VERSION', ""); +define('GMP_VERSION', ""); -define ('GMP_MPIR_VERSION', '3.0.0'); - -class GMP implements Serializable { +define('GMP_MPIR_VERSION', '3.0.0'); +class GMP implements Serializable +{ /** * String representation of object * @link https://php.net/manual/en/serializable.serialize.php @@ -819,4 +819,3 @@ public function serialize() {} public function unserialize($serialized) {} } // End of gmp v. -?> diff --git a/gnupg/gnupg.php b/gnupg/gnupg.php index 9e013aeba..9858716ee 100644 --- a/gnupg/gnupg.php +++ b/gnupg/gnupg.php @@ -33,263 +33,220 @@ * @link https://php.net/manual/en/book.gnupg.php * Class gnupg */ - -class gnupg { - /** - * Add a key for decryption - * @link https://php.net/manual/en/function.gnupg-adddecryptkey.php - * - * @param string $fingerprint - * @param string $passphrase - * - * @return bool - */ - function adddecryptkey($fingerprint, $passphrase) - { - } - - /** - * Verifies a signed text - * @link https://php.net/manual/en/function.gnupg-verify.php - * - * * @param string $signed_text - * @param string $signature - * @param string &$plaintext - * - * @return array|false On success, this function returns information about the signature. - * On failure, this function returns false. - */ - function verify($signed_text, $signature, &$plaintext = null) - { - } - - /** - * Add a key for encryption - * @link https://php.net/manual/en/function.gnupg-addencryptkey.php - * - * @param string $fingerprint - * - * @return bool - */ - function addencryptkey($fingerprint) - { - } - - /** - * Add a key for signing - * @link https://php.net/manual/en/function.gnupg-addsignkey.php - * - * @param string $fingerprint - * @param string $passphrase - * - * @return bool - */ - function addsignkey($fingerprint, $passphrase = null) - { - } - - /** - * Removes all keys which were set for decryption before - * @link https://php.net/manual/en/function.gnupg-cleardecryptkeys.php - * - * @return bool - */ - function cleardecryptkeys() - { - } - - /** - * Removes all keys which were set for encryption before - * @link https://php.net/manual/en/function.gnupg-clearencryptkeys.php - * - * @return bool - */ - function clearencryptkeys() - { - } - - /** - * Removes all keys which were set for signing before - * @link https://php.net/manual/en/function.gnupg-clearsignkeys.php - * - * @return bool - */ - function clearsignkeys() - { - } - - /** - * Decrypts a given text - * @link https://php.net/manual/en/function.gnupg-decrypt.php - * - * @param string $text - * - * @return string|false On success, this function returns the decrypted text. - * On failure, this function returns false. - */ - function decrypt($text) - { - } - - /** - * Decrypts and verifies a given text - * @link https://php.net/manual/en/function.gnupg-decryptverify.php - * - * @param string $text - * @param string &$plaintext - * - * @return array|false On success, this function returns information about the signature and - * fills the parameter with the decrypted text. - * On failure, this function returns false. - */ - function decryptverify($text, &$plaintext) - { - } - - /** - * Encrypts a given text - * @link https://php.net/manual/en/function.gnupg-encrypt.php - * - * @param string $plaintext - * - * @return string|false On success, this function returns the encrypted text. - * On failure, this function returns false. - */ - function encrypt($plaintext) - { - } - - /** - * Encrypts and signs a given text - * @link https://php.net/manual/en/function.gnupg-encryptsign.php - * - * @param string $plaintext - * - * @return string|false On success, this function returns the encrypted and signed text. - * On failure, this function returns false. - */ - function encryptsign($plaintext) - { - } - - /** - * Exports a key - * @link https://php.net/manual/en/function.gnupg-export.php - * - * @param string $fingerprint - * - * @return string|false On success, this function returns the keydata. - * On failure, this function returns false. - */ - function export($fingerprint) - { - } - - /** - * Returns the errortext, if a function fails - * @link https://php.net/manual/en/function.gnupg-geterror.php - * - * @return string|false Returns an errortext, if an error has occurred, otherwise false. - */ - function geterror() - { - } - - /** - * Returns the currently active protocol for all operations - * @link https://php.net/manual/en/function.gnupg-getprotocol.php - * - * @return int Returns the currently active protocol, which can be one of - * or - * . - */ - function getprotocol() - { - } - - /** - * Imports a key - * @link https://php.net/manual/en/function.gnupg-import.php - * - * @param string $keydata - * - * @return array|false On success, this function returns and info-array about the importprocess. - * On failure, this function returns false. - */ - function import($keydata) - { - } - - /** - * Initialize a connection - * @link https://php.net/manual/en/function.gnupg-init.php - * - * @return resource A GnuPG ``resource`` connection used by other GnuPG functions. - */ - function init() - { - } - - /** - * Returns an array with information about all keys that matches the given pattern - * @link https://php.net/manual/en/function.gnupg-keyinfo.php - * - * @param string $pattern - * - * @return array Returns an array with information about all keys that matches the given - * pattern or false, if an error has occurred. - */ - function keyinfo($pattern) - { - } - - /** - * Toggle armored output - * @link https://php.net/manual/en/function.gnupg-setarmor.php - * - * @param int $armor - * - * @return bool - */ - function setarmor($armor) - { - } - - /** - * Sets the mode for error_reporting - * @link https://php.net/manual/en/function.gnupg-seterrormode.php - * - * @param int $errormode - * - * @return void - */ - function seterrormode($errormode) - { - } - - /** - * Sets the mode for signing - * @link https://php.net/manual/en/function.gnupg-setsignmode.php - * - * @param int $signmode - * - * @return bool - */ - function setsignmode($signmode) - { - } - - /** - * Signs a given text - * @link https://php.net/manual/en/function.gnupg-sign.php - * - * @param string $plaintext - * - * @return string|false On success, this function returns the signed text or the signature. - * On failure, this function returns false. - */ - function sign($plaintext) - { - } - +class gnupg +{ + /** + * Add a key for decryption + * @link https://php.net/manual/en/function.gnupg-adddecryptkey.php + * + * @param string $fingerprint + * @param string $passphrase + * + * @return bool + */ + public function adddecryptkey($fingerprint, $passphrase) {} + + /** + * Verifies a signed text + * @link https://php.net/manual/en/function.gnupg-verify.php + * + * * @param string $signed_text + * @param string $signature + * @param string &$plaintext + * + * @return array|false On success, this function returns information about the signature. + * On failure, this function returns false. + */ + public function verify($signed_text, $signature, &$plaintext = null) {} + + /** + * Add a key for encryption + * @link https://php.net/manual/en/function.gnupg-addencryptkey.php + * + * @param string $fingerprint + * + * @return bool + */ + public function addencryptkey($fingerprint) {} + + /** + * Add a key for signing + * @link https://php.net/manual/en/function.gnupg-addsignkey.php + * + * @param string $fingerprint + * @param string $passphrase + * + * @return bool + */ + public function addsignkey($fingerprint, $passphrase = null) {} + + /** + * Removes all keys which were set for decryption before + * @link https://php.net/manual/en/function.gnupg-cleardecryptkeys.php + * + * @return bool + */ + public function cleardecryptkeys() {} + + /** + * Removes all keys which were set for encryption before + * @link https://php.net/manual/en/function.gnupg-clearencryptkeys.php + * + * @return bool + */ + public function clearencryptkeys() {} + + /** + * Removes all keys which were set for signing before + * @link https://php.net/manual/en/function.gnupg-clearsignkeys.php + * + * @return bool + */ + public function clearsignkeys() {} + + /** + * Decrypts a given text + * @link https://php.net/manual/en/function.gnupg-decrypt.php + * + * @param string $text + * + * @return string|false On success, this function returns the decrypted text. + * On failure, this function returns false. + */ + public function decrypt($text) {} + + /** + * Decrypts and verifies a given text + * @link https://php.net/manual/en/function.gnupg-decryptverify.php + * + * @param string $text + * @param string &$plaintext + * + * @return array|false On success, this function returns information about the signature and + * fills the parameter with the decrypted text. + * On failure, this function returns false. + */ + public function decryptverify($text, &$plaintext) {} + + /** + * Encrypts a given text + * @link https://php.net/manual/en/function.gnupg-encrypt.php + * + * @param string $plaintext + * + * @return string|false On success, this function returns the encrypted text. + * On failure, this function returns false. + */ + public function encrypt($plaintext) {} + + /** + * Encrypts and signs a given text + * @link https://php.net/manual/en/function.gnupg-encryptsign.php + * + * @param string $plaintext + * + * @return string|false On success, this function returns the encrypted and signed text. + * On failure, this function returns false. + */ + public function encryptsign($plaintext) {} + + /** + * Exports a key + * @link https://php.net/manual/en/function.gnupg-export.php + * + * @param string $fingerprint + * + * @return string|false On success, this function returns the keydata. + * On failure, this function returns false. + */ + public function export($fingerprint) {} + + /** + * Returns the errortext, if a function fails + * @link https://php.net/manual/en/function.gnupg-geterror.php + * + * @return string|false Returns an errortext, if an error has occurred, otherwise false. + */ + public function geterror() {} + + /** + * Returns the currently active protocol for all operations + * @link https://php.net/manual/en/function.gnupg-getprotocol.php + * + * @return int Returns the currently active protocol, which can be one of + * or + * . + */ + public function getprotocol() {} + + /** + * Imports a key + * @link https://php.net/manual/en/function.gnupg-import.php + * + * @param string $keydata + * + * @return array|false On success, this function returns and info-array about the importprocess. + * On failure, this function returns false. + */ + public function import($keydata) {} + + /** + * Initialize a connection + * @link https://php.net/manual/en/function.gnupg-init.php + * + * @return resource A GnuPG ``resource`` connection used by other GnuPG functions. + */ + public function init() {} + + /** + * Returns an array with information about all keys that matches the given pattern + * @link https://php.net/manual/en/function.gnupg-keyinfo.php + * + * @param string $pattern + * + * @return array Returns an array with information about all keys that matches the given + * pattern or false, if an error has occurred. + */ + public function keyinfo($pattern) {} + + /** + * Toggle armored output + * @link https://php.net/manual/en/function.gnupg-setarmor.php + * + * @param int $armor + * + * @return bool + */ + public function setarmor($armor) {} + + /** + * Sets the mode for error_reporting + * @link https://php.net/manual/en/function.gnupg-seterrormode.php + * + * @param int $errormode + * + * @return void + */ + public function seterrormode($errormode) {} + + /** + * Sets the mode for signing + * @link https://php.net/manual/en/function.gnupg-setsignmode.php + * + * @param int $signmode + * + * @return bool + */ + public function setsignmode($signmode) {} + + /** + * Signs a given text + * @link https://php.net/manual/en/function.gnupg-sign.php + * + * @param string $plaintext + * + * @return string|false On success, this function returns the signed text or the signature. + * On failure, this function returns false. + */ + public function sign($plaintext) {} } diff --git a/grpc/grpc.php b/grpc/grpc.php index 046f6a31d..ac85cd9ed 100644 --- a/grpc/grpc.php +++ b/grpc/grpc.php @@ -9,8 +9,10 @@ * @see https://grpc.io * @see https://github.com/grpc/grpc/tree/master/src/php/ext/grpc */ + namespace Grpc -{ +; + /** * Register call error constants */ @@ -443,7 +445,7 @@ class Channel * * @throws \InvalidArgumentException */ - public function __construct($target, $args = array()) {} + public function __construct($target, $args = []) {} /** * Get the endpoint this call/stream is connected to @@ -723,4 +725,3 @@ public function subtract(Timeval $other) {} */ public static function zero() {} } -} diff --git a/hash/hash.php b/hash/hash.php index 1f16ee7b0..a2105d4f3 100644 --- a/hash/hash.php +++ b/hash/hash.php @@ -23,8 +23,7 @@ * binary representation of the message digest is returned. */ #[Pure] -function hash (string $algo, string $data, bool $binary = false): string|false -{} +function hash(string $algo, string $data, bool $binary = false): string|false {} /** * Timing attack safe string comparison @@ -35,8 +34,7 @@ function hash (string $algo, string $data, bool $binary = false): string|false * @since 5.6 */ #[Pure] -function hash_equals(string $known_string, string $user_string): bool -{} +function hash_equals(string $known_string, string $user_string): bool {} /** * (PHP 5 >= 5.1.2, PECL hash >= 1.1)
    @@ -57,8 +55,7 @@ function hash_equals(string $known_string, string $user_string): bool * binary representation of the message digest is returned. */ #[Pure] -function hash_file (string $algo, string $filename, bool $binary = false): string|false -{} +function hash_file(string $algo, string $filename, bool $binary = false): string|false {} /** * (PHP 5 >= 5.1.2, PECL hash >= 1.1)
    @@ -83,8 +80,7 @@ function hash_file (string $algo, string $filename, bool $binary = false): strin * binary representation of the message digest is returned. */ #[Pure] -function hash_hmac (string $algo, string $data, string $key, bool $binary = false): string|false -{} +function hash_hmac(string $algo, string $data, string $key, bool $binary = false): string|false {} /** * (PHP 5 >= 5.1.2, PECL hash >= 1.1)
    @@ -109,8 +105,7 @@ function hash_hmac (string $algo, string $data, string $key, bool $binary = fals * binary representation of the message digest is returned. */ #[Pure] -function hash_hmac_file (string $algo, string $data, string $key, bool $binary = false): string|false -{} +function hash_hmac_file(string $algo, string $data, string $key, bool $binary = false): string|false {} /** * (PHP 5 >= 5.1.2, PECL hash >= 1.1)
    @@ -136,8 +131,7 @@ function hash_hmac_file (string $algo, string $data, string $key, bool $binary = */ #[Pure] #[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] -function hash_init (string $algo, int $flags = 0, string $key) -{} +function hash_init(string $algo, int $flags = 0, string $key) {} /** * (PHP 5 >= 5.1.2, PECL hash >= 1.1)
    @@ -151,8 +145,7 @@ function hash_init (string $algo, int $flags = 0, string $key) *

    * @return bool TRUE. */ -function hash_update (#[LanguageLevelTypeAware(["8.0" => "HashContext"], default: "resource")] $context, string $data): bool -{} +function hash_update(#[LanguageLevelTypeAware(["8.0" => "HashContext"], default: "resource")] $context, string $data): bool {} /** * (PHP 5 >= 5.1.2, PECL hash >= 1.1)
    @@ -170,8 +163,7 @@ function hash_update (#[LanguageLevelTypeAware(["8.0" => "HashContext"], default *

    * @return int Actual number of bytes added to the hashing context from handle. */ -function hash_update_stream (#[LanguageLevelTypeAware(["8.0" => "HashContext"], default: "resource")] $context, $stream, int $length = -1): int -{} +function hash_update_stream(#[LanguageLevelTypeAware(["8.0" => "HashContext"], default: "resource")] $context, $stream, int $length = -1): int {} /** * (PHP 5 >= 5.1.2, PECL hash >= 1.1)
    @@ -188,8 +180,7 @@ function hash_update_stream (#[LanguageLevelTypeAware(["8.0" => "HashContext"], *

    * @return bool TRUE on success or FALSE on failure. */ -function hash_update_file (#[LanguageLevelTypeAware(["8.0" => "HashContext"], default: "resource")] $context, string $filename, $stream_context): bool -{} +function hash_update_file(#[LanguageLevelTypeAware(["8.0" => "HashContext"], default: "resource")] $context, string $filename, $stream_context): bool {} /** * (PHP 5 >= 5.1.2, PECL hash >= 1.1)
    @@ -206,8 +197,7 @@ function hash_update_file (#[LanguageLevelTypeAware(["8.0" => "HashContext"], de * unless raw_output is set to true in which case the raw * binary representation of the message digest is returned. */ -function hash_final (#[LanguageLevelTypeAware(["8.0" => "HashContext"], default: "resource")] $context, bool $binary = false): string -{} +function hash_final(#[LanguageLevelTypeAware(["8.0" => "HashContext"], default: "resource")] $context, bool $binary = false): string {} /** * Copy hashing context @@ -219,8 +209,7 @@ function hash_final (#[LanguageLevelTypeAware(["8.0" => "HashContext"], default: */ #[Pure] #[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] -function hash_copy (#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] $context) -{} +function hash_copy(#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] $context) {} /** * (PHP 5 >= 5.1.2, PECL hash >= 1.1)
    @@ -230,9 +219,7 @@ function hash_copy (#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: * hashing algorithms. */ #[Pure] -function hash_algos (): array -{} - +function hash_algos(): array {} /** * Generate a hkdf key derivation of a supplied key input @@ -256,8 +243,7 @@ function hash_algos (): array */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function hash_hkdf(string $algo , string $key, int $length = 0, string $info = '', string $salt = '') -{} +function hash_hkdf(string $algo, string $key, int $length = 0, string $info = '', string $salt = '') {} /** * Return a list of registered hashing algorithms suitable for hash_hmac @@ -266,8 +252,7 @@ function hash_hkdf(string $algo , string $key, int $length = 0, string $info = ' * @return string[] Returns a numerically indexed array containing the list of supported hashing algorithms suitable for {@see hash_hmac()}. */ #[Pure] -function hash_hmac_algos(): array -{} +function hash_hmac_algos(): array {} /** * Generate a PBKDF2 key derivation of a supplied password @@ -299,8 +284,7 @@ function hash_hmac_algos(): array * @since 5.5 */ #[Pure] -function hash_pbkdf2 (string $algo, string $password, string $salt, int $iterations, int $length = 0, bool $binary = false): string -{} +function hash_pbkdf2(string $algo, string $password, string $salt, int $iterations, int $length = 0, bool $binary = false): string {} /** * Generates a key @@ -325,8 +309,7 @@ function hash_pbkdf2 (string $algo, string $password, string $salt, int $iterati * @return string|false the generated key as a string, or FALSE on error. */ #[Pure] -function mhash_keygen_s2k (int $algo, string $password, string $salt, int $length): string|false -{} +function mhash_keygen_s2k(int $algo, string $password, string $salt, int $length): string|false {} /** * Gets the block size of the specified hash @@ -338,8 +321,7 @@ function mhash_keygen_s2k (int $algo, string $password, string $salt, int $lengt * does not exist. */ #[Pure] -function mhash_get_block_size (int $algo): int|false -{} +function mhash_get_block_size(int $algo): int|false {} /** * Gets the name of the specified hash @@ -350,8 +332,7 @@ function mhash_get_block_size (int $algo): int|false * @return string|false the name of the hash or FALSE, if the hash does not exist. */ #[Pure] -function mhash_get_hash_name (int $algo): string|false -{} +function mhash_get_hash_name(int $algo): string|false {} /** * Gets the highest available hash ID @@ -360,8 +341,7 @@ function mhash_get_hash_name (int $algo): string|false * hash ID. */ #[Pure] -function mhash_count (): int -{} +function mhash_count(): int {} /** * Computes hash @@ -382,9 +362,7 @@ function mhash_count (): int * FALSE on error. */ #[Pure] -function mhash (int $algo, string $data, ?string $key): string|false -{} - +function mhash(int $algo, string $data, ?string $key): string|false {} /** * Optional flag for hash_init. @@ -392,55 +370,52 @@ function mhash (int $algo, string $data, ?string $key): string|false * applied to the current hashing context. * @link https://php.net/manual/en/hash.constants.php */ -define ('HASH_HMAC', 1); -define ('MHASH_CRC32', 0); +define('HASH_HMAC', 1); +define('MHASH_CRC32', 0); /** * @since 7.4 */ -define ('MHASH_CRC32C', 34); -define ('MHASH_MD5', 1); -define ('MHASH_SHA1', 2); -define ('MHASH_HAVAL256', 3); -define ('MHASH_RIPEMD160', 5); -define ('MHASH_TIGER', 7); -define ('MHASH_GOST', 8); -define ('MHASH_CRC32B', 9); -define ('MHASH_HAVAL224', 10); -define ('MHASH_HAVAL192', 11); -define ('MHASH_HAVAL160', 12); -define ('MHASH_HAVAL128', 13); -define ('MHASH_TIGER128', 14); -define ('MHASH_TIGER160', 15); -define ('MHASH_MD4', 16); -define ('MHASH_SHA256', 17); -define ('MHASH_ADLER32', 18); -define ('MHASH_SHA224', 19); -define ('MHASH_SHA512', 20); -define ('MHASH_SHA384', 21); -define ('MHASH_WHIRLPOOL', 22); -define ('MHASH_RIPEMD128', 23); -define ('MHASH_RIPEMD256', 24); -define ('MHASH_RIPEMD320', 25); -define ('MHASH_SNEFRU256', 27); -define ('MHASH_MD2', 28); -define ('MHASH_FNV132', 29); -define ('MHASH_FNV1A32', 30); -define ('MHASH_FNV164', 31); -define ('MHASH_FNV1A64', 32); -define ('MHASH_JOAAT', 33); +define('MHASH_CRC32C', 34); +define('MHASH_MD5', 1); +define('MHASH_SHA1', 2); +define('MHASH_HAVAL256', 3); +define('MHASH_RIPEMD160', 5); +define('MHASH_TIGER', 7); +define('MHASH_GOST', 8); +define('MHASH_CRC32B', 9); +define('MHASH_HAVAL224', 10); +define('MHASH_HAVAL192', 11); +define('MHASH_HAVAL160', 12); +define('MHASH_HAVAL128', 13); +define('MHASH_TIGER128', 14); +define('MHASH_TIGER160', 15); +define('MHASH_MD4', 16); +define('MHASH_SHA256', 17); +define('MHASH_ADLER32', 18); +define('MHASH_SHA224', 19); +define('MHASH_SHA512', 20); +define('MHASH_SHA384', 21); +define('MHASH_WHIRLPOOL', 22); +define('MHASH_RIPEMD128', 23); +define('MHASH_RIPEMD256', 24); +define('MHASH_RIPEMD320', 25); +define('MHASH_SNEFRU256', 27); +define('MHASH_MD2', 28); +define('MHASH_FNV132', 29); +define('MHASH_FNV1A32', 30); +define('MHASH_FNV164', 31); +define('MHASH_FNV1A64', 32); +define('MHASH_JOAAT', 33); class HashContext { - private function __construct() - { - } + private function __construct() {} - public function __serialize(){} + public function __serialize() {} /** * @param array $data */ - public function __unserialize($data){} + public function __unserialize($data) {} } // End of hash v.1.0 -?> diff --git a/http/http.php b/http/http.php index 04331c592..32808172c 100644 --- a/http/http.php +++ b/http/http.php @@ -4,2171 +4,2145 @@ use JetBrains\PhpStorm\Pure; -class HttpException extends Exception { - public $innerException; -} -class HttpRuntimeException extends HttpException { -} -class HttpInvalidParamException extends HttpException { -} -class HttpHeaderException extends HttpException { -} -class HttpMalformedHeadersException extends HttpException { -} -class HttpRequestMethodException extends HttpException { -} -class HttpMessageTypeException extends HttpException { -} -class HttpEncodingException extends HttpException { -} -class HttpRequestException extends HttpException { -} -class HttpRequestPoolException extends HttpException { -} -class HttpSocketException extends HttpException { -} -class HttpResponseException extends HttpException { -} -class HttpUrlException extends HttpException { -} -class HttpQueryStringException extends HttpException { +class HttpException extends Exception +{ + public $innerException; } +class HttpRuntimeException extends HttpException {} +class HttpInvalidParamException extends HttpException {} +class HttpHeaderException extends HttpException {} +class HttpMalformedHeadersException extends HttpException {} +class HttpRequestMethodException extends HttpException {} +class HttpMessageTypeException extends HttpException {} +class HttpEncodingException extends HttpException {} +class HttpRequestException extends HttpException {} +class HttpRequestPoolException extends HttpException {} +class HttpSocketException extends HttpException {} +class HttpResponseException extends HttpException {} +class HttpUrlException extends HttpException {} +class HttpQueryStringException extends HttpException {} /** * @link https://php.net/manual/en/class.httpdeflatestream.php */ -class HttpDeflateStream { - const TYPE_GZIP = 16; - const TYPE_ZLIB = 0; - const TYPE_RAW = 32; - const LEVEL_DEF = 0; - const LEVEL_MIN = 1; - const LEVEL_MAX = 9; - const STRATEGY_DEF = 0; - const STRATEGY_FILT = 256; - const STRATEGY_HUFF = 512; - const STRATEGY_RLE = 768; - const STRATEGY_FIXED = 1024; - const FLUSH_NONE = 0; - const FLUSH_SYNC = 1048576; - const FLUSH_FULL = 2097152; - - - /** - * (PECL pecl_http >= 0.21.0)
    - * HttpDeflateStream class constructor - * @link https://php.net/manual/en/function.httpdeflatestream-construct.php - * @param int $flags [optional]

    - * initialization flags - *

    - */ - public function __construct ($flags = null) {} - - /** - * (PECL pecl_http >= 0.21.0)
    - * Update deflate stream - * @link https://php.net/manual/en/function.httpdeflatestream-update.php - * @param string $data

    - * data to deflate - *

    - * @return string|false deflated data on success or false on failure. - */ - public function update ($data) {} - - /** - * (PECL pecl_http >= 0.21.0)
    - * Flush deflate stream - * @link https://php.net/manual/en/function.httpdeflatestream-flush.php - * @param string $data [optional]

    - * more data to deflate - *

    - * @return string|false some deflated data as string on success or false on failure. - */ - public function flush ($data = null) {} - - /** - * (PECL pecl_http >= 0.21.0)
    - * Finalize deflate stream - * @link https://php.net/manual/en/function.httpdeflatestream-finish.php - * @param string $data [optional]

    - * data to deflate - *

    - * @return string the final part of deflated data. - */ - public function finish ($data = null) {} - - /** - * (PECL pecl_http >= 1.4.0)
    - * HttpDeflateStream class factory - * @link https://php.net/manual/en/function.httpdeflatestream-factory.php - * @param int $flags [optional]

    - * initialization flags - *

    - * @param string $class_name [optional]

    - * name of a subclass of HttpDeflateStream - *

    - * @return HttpDeflateStream - */ - public static function factory ($flags = null, $class_name = null) {} - +class HttpDeflateStream +{ + public const TYPE_GZIP = 16; + public const TYPE_ZLIB = 0; + public const TYPE_RAW = 32; + public const LEVEL_DEF = 0; + public const LEVEL_MIN = 1; + public const LEVEL_MAX = 9; + public const STRATEGY_DEF = 0; + public const STRATEGY_FILT = 256; + public const STRATEGY_HUFF = 512; + public const STRATEGY_RLE = 768; + public const STRATEGY_FIXED = 1024; + public const FLUSH_NONE = 0; + public const FLUSH_SYNC = 1048576; + public const FLUSH_FULL = 2097152; + + /** + * (PECL pecl_http >= 0.21.0)
    + * HttpDeflateStream class constructor + * @link https://php.net/manual/en/function.httpdeflatestream-construct.php + * @param int $flags [optional]

    + * initialization flags + *

    + */ + public function __construct($flags = null) {} + + /** + * (PECL pecl_http >= 0.21.0)
    + * Update deflate stream + * @link https://php.net/manual/en/function.httpdeflatestream-update.php + * @param string $data

    + * data to deflate + *

    + * @return string|false deflated data on success or false on failure. + */ + public function update($data) {} + + /** + * (PECL pecl_http >= 0.21.0)
    + * Flush deflate stream + * @link https://php.net/manual/en/function.httpdeflatestream-flush.php + * @param string $data [optional]

    + * more data to deflate + *

    + * @return string|false some deflated data as string on success or false on failure. + */ + public function flush($data = null) {} + + /** + * (PECL pecl_http >= 0.21.0)
    + * Finalize deflate stream + * @link https://php.net/manual/en/function.httpdeflatestream-finish.php + * @param string $data [optional]

    + * data to deflate + *

    + * @return string the final part of deflated data. + */ + public function finish($data = null) {} + + /** + * (PECL pecl_http >= 1.4.0)
    + * HttpDeflateStream class factory + * @link https://php.net/manual/en/function.httpdeflatestream-factory.php + * @param int $flags [optional]

    + * initialization flags + *

    + * @param string $class_name [optional]

    + * name of a subclass of HttpDeflateStream + *

    + * @return HttpDeflateStream + */ + public static function factory($flags = null, $class_name = null) {} } /** * @link https://php.net/manual/en/class.httpinflatestream.php */ -class HttpInflateStream { - const FLUSH_NONE = 0; - const FLUSH_SYNC = 1048576; - const FLUSH_FULL = 2097152; - - - /** - * (PECL pecl_http >= 1.0.0)
    - * HttpInflateStream class constructor - * @link https://php.net/manual/en/function.httpinflatestream-construct.php - * @param int $flags [optional]

    - * initialization flags - *

    - */ - public function __construct ($flags = null) {} - - /** - * (PECL pecl_http >= 0.21.0)
    - * Update inflate stream - * @link https://php.net/manual/en/function.httpinflatestream-update.php - * @param string $data

    - * data to inflate - *

    - * @return string|false inflated data on success or false on failure. - */ - public function update ($data) {} - - /** - * (PECL pecl_http >= 0.21.0)
    - * Flush inflate stream - * @link https://php.net/manual/en/function.httpinflatestream-flush.php - * @param string $data [optional]

    - * more data to inflate - *

    - * @return string|false some inflated data as string on success or false on failure. - */ - public function flush ($data = null) {} - - /** - * (PECL pecl_http >= 0.21.0)
    - * Finalize inflate stream - * @link https://php.net/manual/en/function.httpinflatestream-finish.php - * @param string $data [optional]

    - * data to inflate - *

    - * @return string the final part of inflated data. - */ - public function finish ($data = null) {} - - /** - * (PECL pecl_http >= 1.4.0)
    - * HttpInflateStream class factory - * @link https://php.net/manual/en/function.httpinflatestream-factory.php - * @param int $flags [optional]

    - * initialization flags - *

    - * @param string $class_name [optional]

    - * name of a subclass of HttpInflateStream - *

    - * @return HttpInflateStream - */ - public static function factory ($flags = null, $class_name = null) {} - +class HttpInflateStream +{ + public const FLUSH_NONE = 0; + public const FLUSH_SYNC = 1048576; + public const FLUSH_FULL = 2097152; + + /** + * (PECL pecl_http >= 1.0.0)
    + * HttpInflateStream class constructor + * @link https://php.net/manual/en/function.httpinflatestream-construct.php + * @param int $flags [optional]

    + * initialization flags + *

    + */ + public function __construct($flags = null) {} + + /** + * (PECL pecl_http >= 0.21.0)
    + * Update inflate stream + * @link https://php.net/manual/en/function.httpinflatestream-update.php + * @param string $data

    + * data to inflate + *

    + * @return string|false inflated data on success or false on failure. + */ + public function update($data) {} + + /** + * (PECL pecl_http >= 0.21.0)
    + * Flush inflate stream + * @link https://php.net/manual/en/function.httpinflatestream-flush.php + * @param string $data [optional]

    + * more data to inflate + *

    + * @return string|false some inflated data as string on success or false on failure. + */ + public function flush($data = null) {} + + /** + * (PECL pecl_http >= 0.21.0)
    + * Finalize inflate stream + * @link https://php.net/manual/en/function.httpinflatestream-finish.php + * @param string $data [optional]

    + * data to inflate + *

    + * @return string the final part of inflated data. + */ + public function finish($data = null) {} + + /** + * (PECL pecl_http >= 1.4.0)
    + * HttpInflateStream class factory + * @link https://php.net/manual/en/function.httpinflatestream-factory.php + * @param int $flags [optional]

    + * initialization flags + *

    + * @param string $class_name [optional]

    + * name of a subclass of HttpInflateStream + *

    + * @return HttpInflateStream + */ + public static function factory($flags = null, $class_name = null) {} } /** * @link https://php.net/manual/en/class.httpmessage.php */ -class HttpMessage implements Countable, Serializable, Iterator { - const TYPE_NONE = 0; - const TYPE_REQUEST = 1; - const TYPE_RESPONSE = 2; - - protected $type; - protected $body; - protected $requestMethod; - protected $requestUrl; - protected $responseStatus; - protected $responseCode; - protected $httpVersion; - protected $headers; - protected $parentMessage; - - - /** - * (PECL pecl_http >= 0.10.0)
    - * HttpMessage constructor - * @link https://php.net/manual/en/function.httpmessage-construct.php - * @param string $message [optional]

    - * a single or several consecutive HTTP messages - *

    - */ - public function __construct ($message = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get message body - * @link https://php.net/manual/en/function.httpmessage-getbody.php - * @return string the message body as string. - */ +class HttpMessage implements Countable, Serializable, Iterator +{ + public const TYPE_NONE = 0; + public const TYPE_REQUEST = 1; + public const TYPE_RESPONSE = 2; + + protected $type; + protected $body; + protected $requestMethod; + protected $requestUrl; + protected $responseStatus; + protected $responseCode; + protected $httpVersion; + protected $headers; + protected $parentMessage; + + /** + * (PECL pecl_http >= 0.10.0)
    + * HttpMessage constructor + * @link https://php.net/manual/en/function.httpmessage-construct.php + * @param string $message [optional]

    + * a single or several consecutive HTTP messages + *

    + */ + public function __construct($message = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get message body + * @link https://php.net/manual/en/function.httpmessage-getbody.php + * @return string the message body as string. + */ #[Pure] - public function getBody () {} - - /** - * (PECL pecl_http >= 0.14.0)
    - * Set message body - * @link https://php.net/manual/en/function.httpmessage-setbody.php - * @param string $body

    - * the new body of the message - *

    - * @return void - */ - public function setBody ($body) {} - - /** - * (PECL pecl_http >= 1.1.0)
    - * Get header - * @link https://php.net/manual/en/function.httpmessage-getheader.php - * @param string $header

    - * header name - *

    - * @return string|null the header value on success or NULL if the header does not exist. - */ + public function getBody() {} + + /** + * (PECL pecl_http >= 0.14.0)
    + * Set message body + * @link https://php.net/manual/en/function.httpmessage-setbody.php + * @param string $body

    + * the new body of the message + *

    + * @return void + */ + public function setBody($body) {} + + /** + * (PECL pecl_http >= 1.1.0)
    + * Get header + * @link https://php.net/manual/en/function.httpmessage-getheader.php + * @param string $header

    + * header name + *

    + * @return string|null the header value on success or NULL if the header does not exist. + */ #[Pure] - public function getHeader ($header) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get message headers - * @link https://php.net/manual/en/function.httpmessage-getheaders.php - * @return array an associative array containing the messages HTTP headers. - */ + public function getHeader($header) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get message headers + * @link https://php.net/manual/en/function.httpmessage-getheaders.php + * @return array an associative array containing the messages HTTP headers. + */ #[Pure] - public function getHeaders () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set headers - * @link https://php.net/manual/en/function.httpmessage-setheaders.php - * @param array $header

    - * associative array containing the new HTTP headers, which will replace all previous HTTP headers of the message - *

    - * @return void - */ - public function setHeaders (array $header) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Add headers - * @link https://php.net/manual/en/function.httpmessage-addheaders.php - * @param array $headers

    - * associative array containing the additional HTTP headers to add to the messages existing headers - *

    - * @param bool $append [optional]

    - * if true, and a header with the same name of one to add exists already, this respective - * header will be converted to an array containing both header values, otherwise - * it will be overwritten with the new header value - *

    - * @return void - */ - public function addHeaders (array $headers, $append = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get message type - * @link https://php.net/manual/en/function.httpmessage-gettype.php - * @return int the HttpMessage::TYPE. - */ + public function getHeaders() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set headers + * @link https://php.net/manual/en/function.httpmessage-setheaders.php + * @param array $header

    + * associative array containing the new HTTP headers, which will replace all previous HTTP headers of the message + *

    + * @return void + */ + public function setHeaders(array $header) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Add headers + * @link https://php.net/manual/en/function.httpmessage-addheaders.php + * @param array $headers

    + * associative array containing the additional HTTP headers to add to the messages existing headers + *

    + * @param bool $append [optional]

    + * if true, and a header with the same name of one to add exists already, this respective + * header will be converted to an array containing both header values, otherwise + * it will be overwritten with the new header value + *

    + * @return void + */ + public function addHeaders(array $headers, $append = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get message type + * @link https://php.net/manual/en/function.httpmessage-gettype.php + * @return int the HttpMessage::TYPE. + */ #[Pure] - public function getType () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set message type - * @link https://php.net/manual/en/function.httpmessage-settype.php - * @param int $type

    - * the HttpMessage::TYPE - *

    - * @return void - */ - public function setType ($type) {} + public function getType() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set message type + * @link https://php.net/manual/en/function.httpmessage-settype.php + * @param int $type

    + * the HttpMessage::TYPE + *

    + * @return void + */ + public function setType($type) {} #[Pure] - public function getInfo () {} - - /** - * @param $http_info - */ - public function setInfo ($http_info) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get response code - * @link https://php.net/manual/en/function.httpmessage-getresponsecode.php - * @return int|false the HTTP response code if the message is of type HttpMessage::TYPE_RESPONSE, else FALSE. - */ + public function getInfo() {} + + /** + * @param $http_info + */ + public function setInfo($http_info) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get response code + * @link https://php.net/manual/en/function.httpmessage-getresponsecode.php + * @return int|false the HTTP response code if the message is of type HttpMessage::TYPE_RESPONSE, else FALSE. + */ #[Pure] - public function getResponseCode () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set response code - * @link https://php.net/manual/en/function.httpmessage-setresponsecode.php - * @param int $code

    - * HTTP response code - *

    - * @return bool TRUE on success, or FALSE if the message is not of type - * HttpMessage::TYPE_RESPONSE or the response code is out of range (100-510). - */ - public function setResponseCode ($code) {} - - /** - * (PECL pecl_http >= 0.23.0)
    - * Get response status - * @link https://php.net/manual/en/function.httpmessage-getresponsestatus.php - * @return string the HTTP response status string if the message is of type - * HttpMessage::TYPE_RESPONSE, else FALSE. - */ + public function getResponseCode() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set response code + * @link https://php.net/manual/en/function.httpmessage-setresponsecode.php + * @param int $code

    + * HTTP response code + *

    + * @return bool TRUE on success, or FALSE if the message is not of type + * HttpMessage::TYPE_RESPONSE or the response code is out of range (100-510). + */ + public function setResponseCode($code) {} + + /** + * (PECL pecl_http >= 0.23.0)
    + * Get response status + * @link https://php.net/manual/en/function.httpmessage-getresponsestatus.php + * @return string the HTTP response status string if the message is of type + * HttpMessage::TYPE_RESPONSE, else FALSE. + */ #[Pure] - public function getResponseStatus () {} - - /** - * (PECL pecl_http >= 0.23.0)
    - * Set response status - * @link https://php.net/manual/en/function.httpmessage-setresponsestatus.php - * @param string $status

    - * the response status text - *

    - * @return bool TRUE on success or FALSE if the message is not of type - * HttpMessage::TYPE_RESPONSE. - */ - public function setResponseStatus ($status) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get request method - * @link https://php.net/manual/en/function.httpmessage-getrequestmethod.php - * @return string|false the request method name on success, or FALSE if the message is - * not of type HttpMessage::TYPE_REQUEST. - */ + public function getResponseStatus() {} + + /** + * (PECL pecl_http >= 0.23.0)
    + * Set response status + * @link https://php.net/manual/en/function.httpmessage-setresponsestatus.php + * @param string $status

    + * the response status text + *

    + * @return bool TRUE on success or FALSE if the message is not of type + * HttpMessage::TYPE_RESPONSE. + */ + public function setResponseStatus($status) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get request method + * @link https://php.net/manual/en/function.httpmessage-getrequestmethod.php + * @return string|false the request method name on success, or FALSE if the message is + * not of type HttpMessage::TYPE_REQUEST. + */ #[Pure] - public function getRequestMethod () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set request method - * @link https://php.net/manual/en/function.httpmessage-setrequestmethod.php - * @param string $method

    - * the request method name - *

    - * @return bool TRUE on success, or FALSE if the message is not of type - * HttpMessage::TYPE_REQUEST or an invalid request method was supplied. - */ - public function setRequestMethod ($method) {} - - /** - * (PECL pecl_http >= 0.21.0)
    - * Get request URL - * @link https://php.net/manual/en/function.httpmessage-getrequesturl.php - * @return string|false the request URL as string on success, or FALSE if the message - * is not of type HttpMessage::TYPE_REQUEST. - */ + public function getRequestMethod() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set request method + * @link https://php.net/manual/en/function.httpmessage-setrequestmethod.php + * @param string $method

    + * the request method name + *

    + * @return bool TRUE on success, or FALSE if the message is not of type + * HttpMessage::TYPE_REQUEST or an invalid request method was supplied. + */ + public function setRequestMethod($method) {} + + /** + * (PECL pecl_http >= 0.21.0)
    + * Get request URL + * @link https://php.net/manual/en/function.httpmessage-getrequesturl.php + * @return string|false the request URL as string on success, or FALSE if the message + * is not of type HttpMessage::TYPE_REQUEST. + */ #[Pure] - public function getRequestUrl () {} - - /** - * (PECL pecl_http >= 0.21.0)
    - * Set request URL - * @link https://php.net/manual/en/function.httpmessage-setrequesturl.php - * @param string $url

    - * the request URL - *

    - * @return bool TRUE on success, or FALSE if the message is not of type - * HttpMessage::TYPE_REQUEST or supplied URL was empty. - */ - public function setRequestUrl ($url) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get HTTP version - * @link https://php.net/manual/en/function.httpmessage-gethttpversion.php - * @return string the HTTP protocol version as string. - */ + public function getRequestUrl() {} + + /** + * (PECL pecl_http >= 0.21.0)
    + * Set request URL + * @link https://php.net/manual/en/function.httpmessage-setrequesturl.php + * @param string $url

    + * the request URL + *

    + * @return bool TRUE on success, or FALSE if the message is not of type + * HttpMessage::TYPE_REQUEST or supplied URL was empty. + */ + public function setRequestUrl($url) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get HTTP version + * @link https://php.net/manual/en/function.httpmessage-gethttpversion.php + * @return string the HTTP protocol version as string. + */ #[Pure] - public function getHttpVersion () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set HTTP version - * @link https://php.net/manual/en/function.httpmessage-sethttpversion.php - * @param string $version

    - * the HTTP protocol version - *

    - * @return bool TRUE on success, or FALSE if supplied version is out of range (1.0/1.1). - */ - public function setHttpVersion ($version) {} - - /** - * (PECL pecl_http >= 1.0.0)
    - * Guess content type - * @link https://php.net/manual/en/function.httpmessage-guesscontenttype.php - * @param string $magic_file

    - * the magic.mime database to use - *

    - * @param int $magic_mode [optional]

    - * flags for libmagic - *

    - * @return string|false the guessed content type on success or false on failure. - */ - public function guessContentType ($magic_file, $magic_mode = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get parent message - * @link https://php.net/manual/en/function.httpmessage-getparentmessage.php - * @return HttpMessage the parent HttpMessage object. - */ + public function getHttpVersion() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set HTTP version + * @link https://php.net/manual/en/function.httpmessage-sethttpversion.php + * @param string $version

    + * the HTTP protocol version + *

    + * @return bool TRUE on success, or FALSE if supplied version is out of range (1.0/1.1). + */ + public function setHttpVersion($version) {} + + /** + * (PECL pecl_http >= 1.0.0)
    + * Guess content type + * @link https://php.net/manual/en/function.httpmessage-guesscontenttype.php + * @param string $magic_file

    + * the magic.mime database to use + *

    + * @param int $magic_mode [optional]

    + * flags for libmagic + *

    + * @return string|false the guessed content type on success or false on failure. + */ + public function guessContentType($magic_file, $magic_mode = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get parent message + * @link https://php.net/manual/en/function.httpmessage-getparentmessage.php + * @return HttpMessage the parent HttpMessage object. + */ #[Pure] - public function getParentMessage () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Send message - * @link https://php.net/manual/en/function.httpmessage-send.php - * @return bool true on success or false on failure. - */ - public function send () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get string representation - * @link https://php.net/manual/en/function.httpmessage-tostring.php - * @param bool $include_parent [optional]

    - * specifies whether the returned string should also contain any parent messages - *

    - * @return string the message as string. - */ - public function toString ($include_parent = null) {} - - /** - * (PECL pecl_http >= 0.22.0)
    - * Create HTTP object regarding message type - * @link https://php.net/manual/en/function.httpmessage-tomessagetypeobject.php - * @return HttpRequest|HttpResponse|null either an HttpRequest or HttpResponse object on success, or NULL on failure. - */ - public function toMessageTypeObject () {} - - public function count () {} - - public function serialize () {} - - /** - * @param $serialized - */ - public function unserialize ($serialized) {} - - public function rewind () {} - - public function valid () {} - - public function current () {} - - public function key () {} - - public function next () {} - - /** - * @return string - */ - public function __toString () {} - - /** - * (PECL pecl_http >= 1.4.0)
    - * Create HttpMessage from string - * @link https://php.net/manual/en/function.httpmessage-factory.php - * @param string $raw_message [optional]

    - * a single or several consecutive HTTP messages - *

    - * @param string $class_name [optional]

    - * a class extending HttpMessage - *

    - * @return HttpMessage|null an HttpMessage object on success or NULL on failure. - */ - public static function factory ($raw_message = null, $class_name = null) {} - - /** - * (PECL pecl_http 0.10.0-1.3.3)
    - * Create HttpMessage from string - * @link https://php.net/manual/en/function.httpmessage-fromstring.php - * @param string $raw_message [optional]

    - * a single or several consecutive HTTP messages - *

    - * @param string $class_name [optional]

    - * a class extending HttpMessage - *

    - * @return HttpMessage|null an HttpMessage object on success or NULL on failure. - */ - public static function fromString ($raw_message = null, $class_name = null) {} - - /** - * (PECL pecl_http >= 1.5.0)
    - * Create HttpMessage from environment - * @link https://php.net/manual/en/function.httpmessage-fromenv.php - * @param int $message_type

    - * The message type. See HttpMessage type constants. - *

    - * @param string $class_name [optional]

    - * a class extending HttpMessage - *

    - * @return HttpMessage|null an HttpMessage object on success or NULL on failure. - */ - public static function fromEnv ($message_type, $class_name = null) {} - - /** - * (PECL pecl_http >= 0.22.0)
    - * Detach HttpMessage - * @link https://php.net/manual/en/function.httpmessage-detach.php - * @return HttpMessage detached HttpMessage object copy. - */ - public function detach () {} - - /** - * (PECL pecl_http >= 0.22.0)
    - * Prepend message(s) - * @link https://php.net/manual/en/function.httpmessage-prepend.php - * @param HttpMessage $message

    - * HttpMessage object to prepend - *

    - * @param bool $top [optional]

    - * whether to prepend to the top most or right this message - *

    - * @return void - */ - public function prepend (HttpMessage $message, $top = null) {} - - /** - * (PECL pecl_http >= 0.23.0)
    - * Reverse message chain - * @link https://php.net/manual/en/function.httpmessage-reverse.php - * @return HttpMessage the most parent HttpMessage object. - */ - public function reverse () {} - + public function getParentMessage() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Send message + * @link https://php.net/manual/en/function.httpmessage-send.php + * @return bool true on success or false on failure. + */ + public function send() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get string representation + * @link https://php.net/manual/en/function.httpmessage-tostring.php + * @param bool $include_parent [optional]

    + * specifies whether the returned string should also contain any parent messages + *

    + * @return string the message as string. + */ + public function toString($include_parent = null) {} + + /** + * (PECL pecl_http >= 0.22.0)
    + * Create HTTP object regarding message type + * @link https://php.net/manual/en/function.httpmessage-tomessagetypeobject.php + * @return HttpRequest|HttpResponse|null either an HttpRequest or HttpResponse object on success, or NULL on failure. + */ + public function toMessageTypeObject() {} + + public function count() {} + + public function serialize() {} + + /** + * @param $serialized + */ + public function unserialize($serialized) {} + + public function rewind() {} + + public function valid() {} + + public function current() {} + + public function key() {} + + public function next() {} + + /** + * @return string + */ + public function __toString() {} + + /** + * (PECL pecl_http >= 1.4.0)
    + * Create HttpMessage from string + * @link https://php.net/manual/en/function.httpmessage-factory.php + * @param string $raw_message [optional]

    + * a single or several consecutive HTTP messages + *

    + * @param string $class_name [optional]

    + * a class extending HttpMessage + *

    + * @return HttpMessage|null an HttpMessage object on success or NULL on failure. + */ + public static function factory($raw_message = null, $class_name = null) {} + + /** + * (PECL pecl_http 0.10.0-1.3.3)
    + * Create HttpMessage from string + * @link https://php.net/manual/en/function.httpmessage-fromstring.php + * @param string $raw_message [optional]

    + * a single or several consecutive HTTP messages + *

    + * @param string $class_name [optional]

    + * a class extending HttpMessage + *

    + * @return HttpMessage|null an HttpMessage object on success or NULL on failure. + */ + public static function fromString($raw_message = null, $class_name = null) {} + + /** + * (PECL pecl_http >= 1.5.0)
    + * Create HttpMessage from environment + * @link https://php.net/manual/en/function.httpmessage-fromenv.php + * @param int $message_type

    + * The message type. See HttpMessage type constants. + *

    + * @param string $class_name [optional]

    + * a class extending HttpMessage + *

    + * @return HttpMessage|null an HttpMessage object on success or NULL on failure. + */ + public static function fromEnv($message_type, $class_name = null) {} + + /** + * (PECL pecl_http >= 0.22.0)
    + * Detach HttpMessage + * @link https://php.net/manual/en/function.httpmessage-detach.php + * @return HttpMessage detached HttpMessage object copy. + */ + public function detach() {} + + /** + * (PECL pecl_http >= 0.22.0)
    + * Prepend message(s) + * @link https://php.net/manual/en/function.httpmessage-prepend.php + * @param HttpMessage $message

    + * HttpMessage object to prepend + *

    + * @param bool $top [optional]

    + * whether to prepend to the top most or right this message + *

    + * @return void + */ + public function prepend(HttpMessage $message, $top = null) {} + + /** + * (PECL pecl_http >= 0.23.0)
    + * Reverse message chain + * @link https://php.net/manual/en/function.httpmessage-reverse.php + * @return HttpMessage the most parent HttpMessage object. + */ + public function reverse() {} } /** * @link https://php.net/manual/en/class.httpquerystring.php */ -class HttpQueryString implements Serializable, ArrayAccess { - const TYPE_BOOL = 3; - const TYPE_INT = 1; - const TYPE_FLOAT = 2; - const TYPE_STRING = 6; - const TYPE_ARRAY = 4; - const TYPE_OBJECT = 5; - - private static $instance; - private $queryArray; - private $queryString; - - - /** - * (PECL pecl_http >= 0.22.0)
    - * HttpQueryString constructor - * @link https://php.net/manual/en/function.httpquerystring-construct.php - * @param bool $global [optional]

    - * whether to operate on $_GET and - * $_SERVER['QUERY_STRING'] - *

    - * @param mixed $add [optional]

    - * additional/initial query string parameters - *

    - */ - final public function __construct ($global = null, $add = null) {} - - /** - * (PECL pecl_http >= 0.22.0)
    - * Get query string as array - * @link https://php.net/manual/en/function.httpquerystring-toarray.php - * @return array the array representation of the query string. - */ - public function toArray () {} - - /** - * (PECL pecl_http >= 0.22.0)
    - * Get query string - * @link https://php.net/manual/en/function.httpquerystring-tostring.php - * @return string the string representation of the query string. - */ - public function toString () {} - - /** - * @return string - */ - public function __toString () {} - - /** - * (PECL pecl_http >= 0.22.0)
    - * Get (part of) query string - * @link https://php.net/manual/en/function.httpquerystring-get.php - * @param string $key [optional]

    - * key of the query string param to retrieve - *

    - * @param mixed $type [optional]

    - * which variable type to enforce - *

    - * @param mixed $defval [optional]

    - * default value if key does not exist - *

    - * @param bool $delete [optional]

    - * whether to remove the key/value pair from the query string - *

    - * @return mixed the value of the query string param or the whole query string if no key was specified on success or defval if key does not exist. - */ +class HttpQueryString implements Serializable, ArrayAccess +{ + public const TYPE_BOOL = 3; + public const TYPE_INT = 1; + public const TYPE_FLOAT = 2; + public const TYPE_STRING = 6; + public const TYPE_ARRAY = 4; + public const TYPE_OBJECT = 5; + + private static $instance; + private $queryArray; + private $queryString; + + /** + * (PECL pecl_http >= 0.22.0)
    + * HttpQueryString constructor + * @link https://php.net/manual/en/function.httpquerystring-construct.php + * @param bool $global [optional]

    + * whether to operate on $_GET and + * $_SERVER['QUERY_STRING'] + *

    + * @param mixed $add [optional]

    + * additional/initial query string parameters + *

    + */ + final public function __construct($global = null, $add = null) {} + + /** + * (PECL pecl_http >= 0.22.0)
    + * Get query string as array + * @link https://php.net/manual/en/function.httpquerystring-toarray.php + * @return array the array representation of the query string. + */ + public function toArray() {} + + /** + * (PECL pecl_http >= 0.22.0)
    + * Get query string + * @link https://php.net/manual/en/function.httpquerystring-tostring.php + * @return string the string representation of the query string. + */ + public function toString() {} + + /** + * @return string + */ + public function __toString() {} + + /** + * (PECL pecl_http >= 0.22.0)
    + * Get (part of) query string + * @link https://php.net/manual/en/function.httpquerystring-get.php + * @param string $key [optional]

    + * key of the query string param to retrieve + *

    + * @param mixed $type [optional]

    + * which variable type to enforce + *

    + * @param mixed $defval [optional]

    + * default value if key does not exist + *

    + * @param bool $delete [optional]

    + * whether to remove the key/value pair from the query string + *

    + * @return mixed the value of the query string param or the whole query string if no key was specified on success or defval if key does not exist. + */ #[Pure] - public function get ($key = null, $type = null, $defval = null, $delete = null) {} - - /** - * (PECL pecl_http >= 0.22.0)
    - * Set query string params - * @link https://php.net/manual/en/function.httpquerystring-set.php - * @param mixed $params

    - * query string params to add - *

    - * @return string the current query string. - */ - public function set ($params) {} - - /** - * (PECL pecl_http >= 1.1.0)
    - * Modifiy query string copy - * @link https://php.net/manual/en/function.httpquerystring-mod.php - * @param mixed $params

    - * query string params to add - *

    - * @return HttpQueryString a new HttpQueryString object - */ - public function mod ($params) {} - - /** - * @param $name - * @param $defval [optional] - * @param $delete [optional] - */ + public function get($key = null, $type = null, $defval = null, $delete = null) {} + + /** + * (PECL pecl_http >= 0.22.0)
    + * Set query string params + * @link https://php.net/manual/en/function.httpquerystring-set.php + * @param mixed $params

    + * query string params to add + *

    + * @return string the current query string. + */ + public function set($params) {} + + /** + * (PECL pecl_http >= 1.1.0)
    + * Modifiy query string copy + * @link https://php.net/manual/en/function.httpquerystring-mod.php + * @param mixed $params

    + * query string params to add + *

    + * @return HttpQueryString a new HttpQueryString object + */ + public function mod($params) {} + + /** + * @param $name + * @param $defval [optional] + * @param $delete [optional] + */ #[Pure] - public function getBool ($name, $defval, $delete) {} + public function getBool($name, $defval, $delete) {} - /** - * @param $name - * @param $defval [optional] - * @param $delete [optional] - */ + /** + * @param $name + * @param $defval [optional] + * @param $delete [optional] + */ #[Pure] - public function getInt ($name, $defval, $delete) {} + public function getInt($name, $defval, $delete) {} - /** - * @param $name - * @param $defval [optional] - * @param $delete [optional] - */ + /** + * @param $name + * @param $defval [optional] + * @param $delete [optional] + */ #[Pure] - public function getFloat ($name, $defval, $delete) {} + public function getFloat($name, $defval, $delete) {} - /** - * @param $name - * @param $defval [optional] - * @param $delete [optional] - */ + /** + * @param $name + * @param $defval [optional] + * @param $delete [optional] + */ #[Pure] - public function getString ($name, $defval, $delete) {} + public function getString($name, $defval, $delete) {} - /** - * @param $name - * @param $defval [optional] - * @param $delete [optional] - */ + /** + * @param $name + * @param $defval [optional] + * @param $delete [optional] + */ #[Pure] - public function getArray ($name, $defval, $delete) {} + public function getArray($name, $defval, $delete) {} - /** - * @param $name - * @param $defval [optional] - * @param $delete [optional] - */ + /** + * @param $name + * @param $defval [optional] + * @param $delete [optional] + */ #[Pure] - public function getObject ($name, $defval, $delete) {} - - /** - * @param $global [optional] - * @param $params [optional] - * @param $class_name [optional] - */ - public static function factory ($global, $params, $class_name) {} - - /** - * (PECL pecl_http >= 0.25.0)
    - * HttpQueryString singleton - * @link https://php.net/manual/en/function.httpquerystring-singleton.php - * @param bool $global [optional]

    - * whether to operate on $_GET and - * $_SERVER['QUERY_STRING'] - *

    - * @return HttpQueryString always the same HttpQueryString instance regarding the global setting. - */ - public static function singleton ($global = null) {} - - /** - * (PECL pecl_http >= 0.25.0)
    - * Change query strings charset - * @link https://php.net/manual/en/function.httpquerystring-xlate.php - * @param string $ie

    - * input encoding - *

    - * @param string $oe

    - * output encoding - *

    - * @return bool true on success or false on failure. - */ - public function xlate ($ie, $oe) {} - - /** - * String representation of object - * @link https://php.net/manual/en/serializable.serialize.php - * @return string the string representation of the object or null - * @since 5.1.0 - */ - public function serialize() - {} - - /** - * Offset to retrieve - * @link https://php.net/manual/en/arrayaccess.offsetget.php - * @param mixed $offset

    - * The offset to retrieve. - *

    - * @return mixed Can return all value types. - * @since 5.0.0 - */ - public function offsetGet($offset) - {} - - /** - * Constructs the object - * @link https://php.net/manual/en/serializable.unserialize.php - * @param string $serialized

    - * The string representation of the object. - *

    - * @return void - * @since 5.1.0 - */ - public function unserialize($serialized) - {} - - /** - * Whether a offset exists - * @link https://php.net/manual/en/arrayaccess.offsetexists.php - * @param mixed $offset

    - * An offset to check for. - *

    - * @return bool true on success or false on failure. - *

    - *

    - * The return value will be casted to boolean if non-boolean was returned. - * @since 5.0.0 - */ - public function offsetExists($offset) - {} - - /** - * Offset to set - * @link https://php.net/manual/en/arrayaccess.offsetset.php - * @param mixed $offset

    - * The offset to assign the value to. - *

    - * @param mixed $value

    - * The value to set. - *

    - * @return void - * @since 5.0.0 - */ - public function offsetSet($offset, $value) - {} - - /** - * Offset to unset - * @link https://php.net/manual/en/arrayaccess.offsetunset.php - * @param mixed $offset

    - * The offset to unset. - *

    - * @return void - * @since 5.0.0 - */ - public function offsetUnset($offset) - {} + public function getObject($name, $defval, $delete) {} + + /** + * @param $global [optional] + * @param $params [optional] + * @param $class_name [optional] + */ + public static function factory($global, $params, $class_name) {} + + /** + * (PECL pecl_http >= 0.25.0)
    + * HttpQueryString singleton + * @link https://php.net/manual/en/function.httpquerystring-singleton.php + * @param bool $global [optional]

    + * whether to operate on $_GET and + * $_SERVER['QUERY_STRING'] + *

    + * @return HttpQueryString always the same HttpQueryString instance regarding the global setting. + */ + public static function singleton($global = null) {} + + /** + * (PECL pecl_http >= 0.25.0)
    + * Change query strings charset + * @link https://php.net/manual/en/function.httpquerystring-xlate.php + * @param string $ie

    + * input encoding + *

    + * @param string $oe

    + * output encoding + *

    + * @return bool true on success or false on failure. + */ + public function xlate($ie, $oe) {} + + /** + * String representation of object + * @link https://php.net/manual/en/serializable.serialize.php + * @return string the string representation of the object or null + * @since 5.1.0 + */ + public function serialize() {} + + /** + * Offset to retrieve + * @link https://php.net/manual/en/arrayaccess.offsetget.php + * @param mixed $offset

    + * The offset to retrieve. + *

    + * @return mixed Can return all value types. + * @since 5.0.0 + */ + public function offsetGet($offset) {} + + /** + * Constructs the object + * @link https://php.net/manual/en/serializable.unserialize.php + * @param string $serialized

    + * The string representation of the object. + *

    + * @return void + * @since 5.1.0 + */ + public function unserialize($serialized) {} + + /** + * Whether a offset exists + * @link https://php.net/manual/en/arrayaccess.offsetexists.php + * @param mixed $offset

    + * An offset to check for. + *

    + * @return bool true on success or false on failure. + *

    + *

    + * The return value will be casted to boolean if non-boolean was returned. + * @since 5.0.0 + */ + public function offsetExists($offset) {} + + /** + * Offset to set + * @link https://php.net/manual/en/arrayaccess.offsetset.php + * @param mixed $offset

    + * The offset to assign the value to. + *

    + * @param mixed $value

    + * The value to set. + *

    + * @return void + * @since 5.0.0 + */ + public function offsetSet($offset, $value) {} + + /** + * Offset to unset + * @link https://php.net/manual/en/arrayaccess.offsetunset.php + * @param mixed $offset

    + * The offset to unset. + *

    + * @return void + * @since 5.0.0 + */ + public function offsetUnset($offset) {} } /** * @link https://php.net/manual/en/class.httprequest.php */ -class HttpRequest { - const METH_GET = 1; - const METH_HEAD = 2; - const METH_POST = 3; - const METH_PUT = 4; - const METH_DELETE = 5; - const METH_OPTIONS = 6; - const METH_TRACE = 7; - const METH_CONNECT = 8; - const METH_PROPFIND = 9; - const METH_PROPPATCH = 10; - const METH_MKCOL = 11; - const METH_COPY = 12; - const METH_MOVE = 13; - const METH_LOCK = 14; - const METH_UNLOCK = 15; - const METH_VERSION_CONTROL = 16; - const METH_REPORT = 17; - const METH_CHECKOUT = 18; - const METH_CHECKIN = 19; - const METH_UNCHECKOUT = 20; - const METH_MKWORKSPACE = 21; - const METH_UPDATE = 22; - const METH_LABEL = 23; - const METH_MERGE = 24; - const METH_BASELINE_CONTROL = 25; - const METH_MKACTIVITY = 26; - const METH_ACL = 27; - const VERSION_1_0 = 1; - const VERSION_1_1 = 2; - const VERSION_NONE = 0; - const VERSION_ANY = 0; - const SSL_VERSION_TLSv1 = 1; - const SSL_VERSION_SSLv2 = 2; - const SSL_VERSION_SSLv3 = 3; - const SSL_VERSION_ANY = 0; - const IPRESOLVE_V4 = 1; - const IPRESOLVE_V6 = 2; - const IPRESOLVE_ANY = 0; - const AUTH_BASIC = 1; - const AUTH_DIGEST = 2; - const AUTH_NTLM = 8; - const AUTH_GSSNEG = 4; - const AUTH_ANY = -1; - const PROXY_SOCKS4 = 4; - const PROXY_SOCKS5 = 5; - const PROXY_HTTP = 0; - - private $options; - private $postFields; - private $postFiles; - private $responseInfo; - private $responseMessage; - private $responseCode; - private $responseStatus; - private $method; - private $url; - private $contentType; - private $requestBody; - private $queryData; - private $putFile; - private $putData; - private $history; - public $recordHistory; - - - /** - * (PECL pecl_http >= 0.10.0)
    - * HttpRequest constructor - * @link https://php.net/manual/en/function.httprequest-construct.php - * @param string $url [optional]

    - * the target request url - *

    - * @param int $request_method [optional]

    - * the request method to use - *

    - * @param null|array $options [optional]

    - * an associative array with request options - *

    - */ - public function __construct ($url = null, $request_method = null, ?array $options = null ) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set options - * @link https://php.net/manual/en/function.httprequest-setoptions.php - * @param null|array $options [optional]

    - * an associative array, which values will overwrite the - * currently set request options; - * if empty or omitted, the options of the HttpRequest object will be reset - *

    - * @return bool true on success or false on failure. - */ - public function setOptions (?array $options = null ) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get options - * @link https://php.net/manual/en/function.httprequest-getoptions.php - * @return array an associative array containing currently set options. - */ +class HttpRequest +{ + public const METH_GET = 1; + public const METH_HEAD = 2; + public const METH_POST = 3; + public const METH_PUT = 4; + public const METH_DELETE = 5; + public const METH_OPTIONS = 6; + public const METH_TRACE = 7; + public const METH_CONNECT = 8; + public const METH_PROPFIND = 9; + public const METH_PROPPATCH = 10; + public const METH_MKCOL = 11; + public const METH_COPY = 12; + public const METH_MOVE = 13; + public const METH_LOCK = 14; + public const METH_UNLOCK = 15; + public const METH_VERSION_CONTROL = 16; + public const METH_REPORT = 17; + public const METH_CHECKOUT = 18; + public const METH_CHECKIN = 19; + public const METH_UNCHECKOUT = 20; + public const METH_MKWORKSPACE = 21; + public const METH_UPDATE = 22; + public const METH_LABEL = 23; + public const METH_MERGE = 24; + public const METH_BASELINE_CONTROL = 25; + public const METH_MKACTIVITY = 26; + public const METH_ACL = 27; + public const VERSION_1_0 = 1; + public const VERSION_1_1 = 2; + public const VERSION_NONE = 0; + public const VERSION_ANY = 0; + public const SSL_VERSION_TLSv1 = 1; + public const SSL_VERSION_SSLv2 = 2; + public const SSL_VERSION_SSLv3 = 3; + public const SSL_VERSION_ANY = 0; + public const IPRESOLVE_V4 = 1; + public const IPRESOLVE_V6 = 2; + public const IPRESOLVE_ANY = 0; + public const AUTH_BASIC = 1; + public const AUTH_DIGEST = 2; + public const AUTH_NTLM = 8; + public const AUTH_GSSNEG = 4; + public const AUTH_ANY = -1; + public const PROXY_SOCKS4 = 4; + public const PROXY_SOCKS5 = 5; + public const PROXY_HTTP = 0; + + private $options; + private $postFields; + private $postFiles; + private $responseInfo; + private $responseMessage; + private $responseCode; + private $responseStatus; + private $method; + private $url; + private $contentType; + private $requestBody; + private $queryData; + private $putFile; + private $putData; + private $history; + public $recordHistory; + + /** + * (PECL pecl_http >= 0.10.0)
    + * HttpRequest constructor + * @link https://php.net/manual/en/function.httprequest-construct.php + * @param string $url [optional]

    + * the target request url + *

    + * @param int $request_method [optional]

    + * the request method to use + *

    + * @param null|array $options [optional]

    + * an associative array with request options + *

    + */ + public function __construct($url = null, $request_method = null, ?array $options = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set options + * @link https://php.net/manual/en/function.httprequest-setoptions.php + * @param null|array $options [optional]

    + * an associative array, which values will overwrite the + * currently set request options; + * if empty or omitted, the options of the HttpRequest object will be reset + *

    + * @return bool true on success or false on failure. + */ + public function setOptions(?array $options = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get options + * @link https://php.net/manual/en/function.httprequest-getoptions.php + * @return array an associative array containing currently set options. + */ #[Pure] - public function getOptions () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set ssl options - * @link https://php.net/manual/en/function.httprequest-setssloptions.php - * @param null|array $options [optional]

    - * an associative array containing any SSL specific options; - * if empty or omitted, the SSL options will be reset - *

    - * @return bool true on success or false on failure. - */ - public function setSslOptions (?array $options = null ) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get ssl options - * @link https://php.net/manual/en/function.httprequest-getssloptions.php - * @return array an associative array containing any previously set SSL options. - */ + public function getOptions() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set ssl options + * @link https://php.net/manual/en/function.httprequest-setssloptions.php + * @param null|array $options [optional]

    + * an associative array containing any SSL specific options; + * if empty or omitted, the SSL options will be reset + *

    + * @return bool true on success or false on failure. + */ + public function setSslOptions(?array $options = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get ssl options + * @link https://php.net/manual/en/function.httprequest-getssloptions.php + * @return array an associative array containing any previously set SSL options. + */ #[Pure] - public function getSslOptions () {} - - /** - * (PECL pecl_http >= 0.12.0)
    - * Add ssl options - * @link https://php.net/manual/en/function.httprequest-addssloptions.php - * @param array $option

    - * an associative array as parameter containing additional SSL specific options - *

    - * @return bool true on success or false on failure. - */ - public function addSslOptions (array $option) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Add headers - * @link https://php.net/manual/en/function.httprequest-addheaders.php - * @param array $headers

    - * an associative array as parameter containing additional header name/value pairs - *

    - * @return bool true on success or false on failure. - */ - public function addHeaders (array $headers) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get headers - * @link https://php.net/manual/en/function.httprequest-getheaders.php - * @return array an associative array containing all currently set headers. - */ + public function getSslOptions() {} + + /** + * (PECL pecl_http >= 0.12.0)
    + * Add ssl options + * @link https://php.net/manual/en/function.httprequest-addssloptions.php + * @param array $option

    + * an associative array as parameter containing additional SSL specific options + *

    + * @return bool true on success or false on failure. + */ + public function addSslOptions(array $option) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Add headers + * @link https://php.net/manual/en/function.httprequest-addheaders.php + * @param array $headers

    + * an associative array as parameter containing additional header name/value pairs + *

    + * @return bool true on success or false on failure. + */ + public function addHeaders(array $headers) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get headers + * @link https://php.net/manual/en/function.httprequest-getheaders.php + * @return array an associative array containing all currently set headers. + */ #[Pure] - public function getHeaders () {} - - /** - * (PECL pecl_http >= 0.12.0)
    - * Set headers - * @link https://php.net/manual/en/function.httprequest-setheaders.php - * @param null|array $headers [optional]

    - * an associative array as parameter containing header name/value pairs; - * if empty or omitted, all previously set headers will be unset - *

    - * @return bool true on success or false on failure. - */ - public function setHeaders ( ?array $headers = null ) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Add cookies - * @link https://php.net/manual/en/function.httprequest-addcookies.php - * @param array $cookies

    - * an associative array containing any cookie name/value pairs to add - *

    - * @return bool true on success or false on failure. - */ - public function addCookies (array $cookies) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get cookies - * @link https://php.net/manual/en/function.httprequest-getcookies.php - * @return array an associative array containing any previously set cookies. - */ + public function getHeaders() {} + + /** + * (PECL pecl_http >= 0.12.0)
    + * Set headers + * @link https://php.net/manual/en/function.httprequest-setheaders.php + * @param null|array $headers [optional]

    + * an associative array as parameter containing header name/value pairs; + * if empty or omitted, all previously set headers will be unset + *

    + * @return bool true on success or false on failure. + */ + public function setHeaders(?array $headers = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Add cookies + * @link https://php.net/manual/en/function.httprequest-addcookies.php + * @param array $cookies

    + * an associative array containing any cookie name/value pairs to add + *

    + * @return bool true on success or false on failure. + */ + public function addCookies(array $cookies) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get cookies + * @link https://php.net/manual/en/function.httprequest-getcookies.php + * @return array an associative array containing any previously set cookies. + */ #[Pure] - public function getCookies () {} - - /** - * (PECL pecl_http >= 0.12.0)
    - * Set cookies - * @link https://php.net/manual/en/function.httprequest-setcookies.php - * @param null|array $cookies [optional]

    - * an associative array as parameter containing cookie name/value pairs; - * if empty or omitted, all previously set cookies will be unset - *

    - * @return bool true on success or false on failure. - */ - public function setCookies ( ?array $cookies = null ) {} - - /** - * (PECL pecl_http >= 1.0.0)
    - * Enable cookies - * @link https://php.net/manual/en/function.httprequest-enablecookies.php - * @return bool true on success or false on failure. - */ - public function enableCookies () {} - - /** - * (PECL pecl_http >= 1.0.0)
    - * Reset cookies - * @link https://php.net/manual/en/function.httprequest-resetcookies.php - * @param bool $session_only [optional]

    - * whether only session cookies should be reset (needs libcurl >= v7.15.4, else libcurl >= v7.14.1) - *

    - * @return bool true on success or false on failure. - */ - public function resetCookies ($session_only = null) {} - - public function flushCookies () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set method - * @link https://php.net/manual/en/function.httprequest-setmethod.php - * @param int $request_method

    - * the request method to use - *

    - * @return bool true on success or false on failure. - */ - public function setMethod ($request_method) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get method - * @link https://php.net/manual/en/function.httprequest-getmethod.php - * @return int the currently set request method. - */ + public function getCookies() {} + + /** + * (PECL pecl_http >= 0.12.0)
    + * Set cookies + * @link https://php.net/manual/en/function.httprequest-setcookies.php + * @param null|array $cookies [optional]

    + * an associative array as parameter containing cookie name/value pairs; + * if empty or omitted, all previously set cookies will be unset + *

    + * @return bool true on success or false on failure. + */ + public function setCookies(?array $cookies = null) {} + + /** + * (PECL pecl_http >= 1.0.0)
    + * Enable cookies + * @link https://php.net/manual/en/function.httprequest-enablecookies.php + * @return bool true on success or false on failure. + */ + public function enableCookies() {} + + /** + * (PECL pecl_http >= 1.0.0)
    + * Reset cookies + * @link https://php.net/manual/en/function.httprequest-resetcookies.php + * @param bool $session_only [optional]

    + * whether only session cookies should be reset (needs libcurl >= v7.15.4, else libcurl >= v7.14.1) + *

    + * @return bool true on success or false on failure. + */ + public function resetCookies($session_only = null) {} + + public function flushCookies() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set method + * @link https://php.net/manual/en/function.httprequest-setmethod.php + * @param int $request_method

    + * the request method to use + *

    + * @return bool true on success or false on failure. + */ + public function setMethod($request_method) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get method + * @link https://php.net/manual/en/function.httprequest-getmethod.php + * @return int the currently set request method. + */ #[Pure] - public function getMethod () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set URL - * @link https://php.net/manual/en/function.httprequest-seturl.php - * @param string $url

    - * the request url - *

    - * @return bool true on success or false on failure. - */ - public function setUrl ($url) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get url - * @link https://php.net/manual/en/function.httprequest-geturl.php - * @return string the currently set request url as string. - */ + public function getMethod() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set URL + * @link https://php.net/manual/en/function.httprequest-seturl.php + * @param string $url

    + * the request url + *

    + * @return bool true on success or false on failure. + */ + public function setUrl($url) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get url + * @link https://php.net/manual/en/function.httprequest-geturl.php + * @return string the currently set request url as string. + */ #[Pure] - public function getUrl () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set content type - * @link https://php.net/manual/en/function.httprequest-setcontenttype.php - * @param string $content_type

    - * the content type of the request (primary/secondary) - *

    - * @return bool TRUE on success, or FALSE if the content type does not seem to - * contain a primary and a secondary part. - */ - public function setContentType ($content_type) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get content type - * @link https://php.net/manual/en/function.httprequest-getcontenttype.php - * @return string the previously set content type as string. - */ + public function getUrl() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set content type + * @link https://php.net/manual/en/function.httprequest-setcontenttype.php + * @param string $content_type

    + * the content type of the request (primary/secondary) + *

    + * @return bool TRUE on success, or FALSE if the content type does not seem to + * contain a primary and a secondary part. + */ + public function setContentType($content_type) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get content type + * @link https://php.net/manual/en/function.httprequest-getcontenttype.php + * @return string the previously set content type as string. + */ #[Pure] - public function getContentType () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set query data - * @link https://php.net/manual/en/function.httprequest-setquerydata.php - * @param mixed $query_data

    - * a string or associative array parameter containing the pre-encoded - * query string or to be encoded query fields; - * if empty, the query data will be unset - *

    - * @return bool true on success or false on failure. - */ - public function setQueryData ($query_data) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get query data - * @link https://php.net/manual/en/function.httprequest-getquerydata.php - * @return string a string containing the urlencoded query. - */ + public function getContentType() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set query data + * @link https://php.net/manual/en/function.httprequest-setquerydata.php + * @param mixed $query_data

    + * a string or associative array parameter containing the pre-encoded + * query string or to be encoded query fields; + * if empty, the query data will be unset + *

    + * @return bool true on success or false on failure. + */ + public function setQueryData($query_data) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get query data + * @link https://php.net/manual/en/function.httprequest-getquerydata.php + * @return string a string containing the urlencoded query. + */ #[Pure] - public function getQueryData () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Add query data - * @link https://php.net/manual/en/function.httprequest-addquerydata.php - * @param array $query_params

    - * an associative array as parameter containing the query fields to add - *

    - * @return bool true on success or false on failure. - */ - public function addQueryData (array $query_params) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set post fields - * @link https://php.net/manual/en/function.httprequest-setpostfields.php - * @param array $post_data

    - * an associative array containing the post fields; - * if empty, the post data will be unset - *

    - * @return bool true on success or false on failure. - */ - public function setPostFields (array $post_data) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get post fields - * @link https://php.net/manual/en/function.httprequest-getpostfields.php - * @return array the currently set post fields as associative array. - */ + public function getQueryData() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Add query data + * @link https://php.net/manual/en/function.httprequest-addquerydata.php + * @param array $query_params

    + * an associative array as parameter containing the query fields to add + *

    + * @return bool true on success or false on failure. + */ + public function addQueryData(array $query_params) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set post fields + * @link https://php.net/manual/en/function.httprequest-setpostfields.php + * @param array $post_data

    + * an associative array containing the post fields; + * if empty, the post data will be unset + *

    + * @return bool true on success or false on failure. + */ + public function setPostFields(array $post_data) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get post fields + * @link https://php.net/manual/en/function.httprequest-getpostfields.php + * @return array the currently set post fields as associative array. + */ #[Pure] - public function getPostFields () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Add post fields - * @link https://php.net/manual/en/function.httprequest-addpostfields.php - * @param array $post_data

    - * an associative array as parameter containing the post fields - *

    - * @return bool true on success or false on failure. - */ - public function addPostFields (array $post_data) {} - - /** - * @param $request_body_data [optional] - */ - public function setBody ($request_body_data) {} + public function getPostFields() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Add post fields + * @link https://php.net/manual/en/function.httprequest-addpostfields.php + * @param array $post_data

    + * an associative array as parameter containing the post fields + *

    + * @return bool true on success or false on failure. + */ + public function addPostFields(array $post_data) {} + + /** + * @param $request_body_data [optional] + */ + public function setBody($request_body_data) {} #[Pure] - public function getBody () {} - - /** - * @param $request_body_data - */ - public function addBody ($request_body_data) {} - - /** - * (PECL pecl_http 0.14.0-1.4.1)
    - * Set raw post data - * @link https://php.net/manual/en/function.httprequest-setrawpostdata.php - * @param string $raw_post_data [optional]

    - * raw post data - *

    - * @return bool true on success or false on failure. - */ - public function setRawPostData ($raw_post_data = null) {} - - /** - * (PECL pecl_http 0.14.0-1.4.1)
    - * Get raw post data - * @link https://php.net/manual/en/function.httprequest-getrawpostdata.php - * @return string a string containing the currently set raw post data. - */ + public function getBody() {} + + /** + * @param $request_body_data + */ + public function addBody($request_body_data) {} + + /** + * (PECL pecl_http 0.14.0-1.4.1)
    + * Set raw post data + * @link https://php.net/manual/en/function.httprequest-setrawpostdata.php + * @param string $raw_post_data [optional]

    + * raw post data + *

    + * @return bool true on success or false on failure. + */ + public function setRawPostData($raw_post_data = null) {} + + /** + * (PECL pecl_http 0.14.0-1.4.1)
    + * Get raw post data + * @link https://php.net/manual/en/function.httprequest-getrawpostdata.php + * @return string a string containing the currently set raw post data. + */ #[Pure] - public function getRawPostData () {} - - /** - * (PECL pecl_http 0.14.0-1.4.1)
    - * Add raw post data - * @link https://php.net/manual/en/function.httprequest-addrawpostdata.php - * @param string $raw_post_data

    - * the raw post data to concatenate - *

    - * @return bool true on success or false on failure. - */ - public function addRawPostData ($raw_post_data) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set post files - * @link https://php.net/manual/en/function.httprequest-setpostfiles.php - * @param array $post_files

    - * an array containing the files to post; - * if empty, the post files will be unset - *

    - * @return bool true on success or false on failure. - */ - public function setPostFiles (array $post_files) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Add post file - * @link https://php.net/manual/en/function.httprequest-addpostfile.php - * @param string $name

    - * the form element name - *

    - * @param string $file

    - * the path to the file - *

    - * @param string $content_type [optional]

    - * the content type of the file - *

    - * @return bool TRUE on success, or FALSE if the content type seems not to contain a - * primary and a secondary content type part. - */ - public function addPostFile ($name, $file, $content_type = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get post files - * @link https://php.net/manual/en/function.httprequest-getpostfiles.php - * @return array an array containing currently set post files. - */ + public function getRawPostData() {} + + /** + * (PECL pecl_http 0.14.0-1.4.1)
    + * Add raw post data + * @link https://php.net/manual/en/function.httprequest-addrawpostdata.php + * @param string $raw_post_data

    + * the raw post data to concatenate + *

    + * @return bool true on success or false on failure. + */ + public function addRawPostData($raw_post_data) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set post files + * @link https://php.net/manual/en/function.httprequest-setpostfiles.php + * @param array $post_files

    + * an array containing the files to post; + * if empty, the post files will be unset + *

    + * @return bool true on success or false on failure. + */ + public function setPostFiles(array $post_files) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Add post file + * @link https://php.net/manual/en/function.httprequest-addpostfile.php + * @param string $name

    + * the form element name + *

    + * @param string $file

    + * the path to the file + *

    + * @param string $content_type [optional]

    + * the content type of the file + *

    + * @return bool TRUE on success, or FALSE if the content type seems not to contain a + * primary and a secondary content type part. + */ + public function addPostFile($name, $file, $content_type = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get post files + * @link https://php.net/manual/en/function.httprequest-getpostfiles.php + * @return array an array containing currently set post files. + */ #[Pure] - public function getPostFiles () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set put file - * @link https://php.net/manual/en/function.httprequest-setputfile.php - * @param string $file [optional]

    - * the path to the file to send; - * if empty or omitted the put file will be unset - *

    - * @return bool true on success or false on failure. - */ - public function setPutFile ($file = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get put file - * @link https://php.net/manual/en/function.httprequest-getputfile.php - * @return string a string containing the path to the currently set put file. - */ + public function getPostFiles() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set put file + * @link https://php.net/manual/en/function.httprequest-setputfile.php + * @param string $file [optional]

    + * the path to the file to send; + * if empty or omitted the put file will be unset + *

    + * @return bool true on success or false on failure. + */ + public function setPutFile($file = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get put file + * @link https://php.net/manual/en/function.httprequest-getputfile.php + * @return string a string containing the path to the currently set put file. + */ #[Pure] - public function getPutFile () {} - - /** - * (PECL pecl_http >= 0.25.0)
    - * Set put data - * @link https://php.net/manual/en/function.httprequest-setputdata.php - * @param string $put_data [optional]

    - * the data to upload - *

    - * @return bool true on success or false on failure. - */ - public function setPutData ($put_data = null) {} - - /** - * (PECL pecl_http >= 0.25.0)
    - * Get put data - * @link https://php.net/manual/en/function.httprequest-getputdata.php - * @return string a string containing the currently set PUT data. - */ + public function getPutFile() {} + + /** + * (PECL pecl_http >= 0.25.0)
    + * Set put data + * @link https://php.net/manual/en/function.httprequest-setputdata.php + * @param string $put_data [optional]

    + * the data to upload + *

    + * @return bool true on success or false on failure. + */ + public function setPutData($put_data = null) {} + + /** + * (PECL pecl_http >= 0.25.0)
    + * Get put data + * @link https://php.net/manual/en/function.httprequest-getputdata.php + * @return string a string containing the currently set PUT data. + */ #[Pure] - public function getPutData () {} - - /** - * (PECL pecl_http >= 0.25.0)
    - * Add put data - * @link https://php.net/manual/en/function.httprequest-addputdata.php - * @param string $put_data

    - * the data to concatenate - *

    - * @return bool true on success or false on failure. - */ - public function addPutData ($put_data) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Send request - * @link https://php.net/manual/en/function.httprequest-send.php - * @return HttpMessage the received response as HttpMessage object. - */ - public function send () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get response data - * @link https://php.net/manual/en/function.httprequest-getresponsedata.php - * @return array an associative array with the key "headers" containing an associative - * array holding all response headers, as well as the key "body" containing a - * string with the response body. - */ + public function getPutData() {} + + /** + * (PECL pecl_http >= 0.25.0)
    + * Add put data + * @link https://php.net/manual/en/function.httprequest-addputdata.php + * @param string $put_data

    + * the data to concatenate + *

    + * @return bool true on success or false on failure. + */ + public function addPutData($put_data) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Send request + * @link https://php.net/manual/en/function.httprequest-send.php + * @return HttpMessage the received response as HttpMessage object. + */ + public function send() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get response data + * @link https://php.net/manual/en/function.httprequest-getresponsedata.php + * @return array an associative array with the key "headers" containing an associative + * array holding all response headers, as well as the key "body" containing a + * string with the response body. + */ #[Pure] - public function getResponseData () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get response header(s) - * @link https://php.net/manual/en/function.httprequest-getresponseheader.php - * @param string $name [optional]

    - * header to read; if empty, all response headers will be returned - *

    - * @return mixed either a string with the value of the header matching name if requested, - * FALSE on failure, or an associative array containing all response headers. - */ + public function getResponseData() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get response header(s) + * @link https://php.net/manual/en/function.httprequest-getresponseheader.php + * @param string $name [optional]

    + * header to read; if empty, all response headers will be returned + *

    + * @return mixed either a string with the value of the header matching name if requested, + * FALSE on failure, or an associative array containing all response headers. + */ #[Pure] - public function getResponseHeader ($name = null) {} - - /** - * (PECL pecl_http >= 0.23.0)
    - * Get response cookie(s) - * @link https://php.net/manual/en/function.httprequest-getresponsecookies.php - * @param int $flags [optional]

    - * http_parse_cookie flags - *

    - * @param null|array $allowed_extras [optional]

    - * allowed keys treated as extra information instead of cookie names - *

    - * @return stdClass[] an array of stdClass objects like http_parse_cookie would return. - */ + public function getResponseHeader($name = null) {} + + /** + * (PECL pecl_http >= 0.23.0)
    + * Get response cookie(s) + * @link https://php.net/manual/en/function.httprequest-getresponsecookies.php + * @param int $flags [optional]

    + * http_parse_cookie flags + *

    + * @param null|array $allowed_extras [optional]

    + * allowed keys treated as extra information instead of cookie names + *

    + * @return stdClass[] an array of stdClass objects like http_parse_cookie would return. + */ #[Pure] - public function getResponseCookies ($flags = null, ?array $allowed_extras = null ) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get response code - * @link https://php.net/manual/en/function.httprequest-getresponsecode.php - * @return int an int representing the response code. - */ + public function getResponseCookies($flags = null, ?array $allowed_extras = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get response code + * @link https://php.net/manual/en/function.httprequest-getresponsecode.php + * @return int an int representing the response code. + */ #[Pure] - public function getResponseCode () {} - - /** - * (PECL pecl_http >= 0.23.0)
    - * Get response status - * @link https://php.net/manual/en/function.httprequest-getresponsestatus.php - * @return string a string containing the response status text. - */ + public function getResponseCode() {} + + /** + * (PECL pecl_http >= 0.23.0)
    + * Get response status + * @link https://php.net/manual/en/function.httprequest-getresponsestatus.php + * @return string a string containing the response status text. + */ #[Pure] - public function getResponseStatus () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get response body - * @link https://php.net/manual/en/function.httprequest-getresponsebody.php - * @return string a string containing the response body. - */ + public function getResponseStatus() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get response body + * @link https://php.net/manual/en/function.httprequest-getresponsebody.php + * @return string a string containing the response body. + */ #[Pure] - public function getResponseBody () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get response info - * @link https://php.net/manual/en/function.httprequest-getresponseinfo.php - * @param string $name [optional]

    - * the info to read; if empty or omitted, an associative array containing - * all available info will be returned - *

    - * @return mixed either a scalar containing the value of the info matching name if - * requested, FALSE on failure, or an associative array containing all - * available info. - */ + public function getResponseBody() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get response info + * @link https://php.net/manual/en/function.httprequest-getresponseinfo.php + * @param string $name [optional]

    + * the info to read; if empty or omitted, an associative array containing + * all available info will be returned + *

    + * @return mixed either a scalar containing the value of the info matching name if + * requested, FALSE on failure, or an associative array containing all + * available info. + */ #[Pure] - public function getResponseInfo ($name = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get response message - * @link https://php.net/manual/en/function.httprequest-getresponsemessage.php - * @return HttpMessage an HttpMessage object of the response. - */ + public function getResponseInfo($name = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get response message + * @link https://php.net/manual/en/function.httprequest-getresponsemessage.php + * @return HttpMessage an HttpMessage object of the response. + */ #[Pure] - public function getResponseMessage () {} - - /** - * (PECL pecl_http >= 0.21.0)
    - * Get raw response message - * @link https://php.net/manual/en/function.httprequest-getrawresponsemessage.php - * @return string the complete web server response, including the headers in a form of a string. - */ + public function getResponseMessage() {} + + /** + * (PECL pecl_http >= 0.21.0)
    + * Get raw response message + * @link https://php.net/manual/en/function.httprequest-getrawresponsemessage.php + * @return string the complete web server response, including the headers in a form of a string. + */ #[Pure] - public function getRawResponseMessage () {} - - /** - * (PECL pecl_http >= 0.11.0)
    - * Get request message - * @link https://php.net/manual/en/function.httprequest-getrequestmessage.php - * @return HttpMessage an HttpMessage object representing the sent request. - */ + public function getRawResponseMessage() {} + + /** + * (PECL pecl_http >= 0.11.0)
    + * Get request message + * @link https://php.net/manual/en/function.httprequest-getrequestmessage.php + * @return HttpMessage an HttpMessage object representing the sent request. + */ #[Pure] - public function getRequestMessage () {} - - /** - * (PECL pecl_http >= 0.21.0)
    - * Get raw request message - * @link https://php.net/manual/en/function.httprequest-getrawrequestmessage.php - * @return string an HttpMessage in a form of a string. - */ + public function getRequestMessage() {} + + /** + * (PECL pecl_http >= 0.21.0)
    + * Get raw request message + * @link https://php.net/manual/en/function.httprequest-getrawrequestmessage.php + * @return string an HttpMessage in a form of a string. + */ #[Pure] - public function getRawRequestMessage () {} - - /** - * (PECL pecl_http >= 0.15.0)
    - * Get history - * @link https://php.net/manual/en/function.httprequest-gethistory.php - * @return HttpMessage an HttpMessage object representing the complete request/response history. - */ + public function getRawRequestMessage() {} + + /** + * (PECL pecl_http >= 0.15.0)
    + * Get history + * @link https://php.net/manual/en/function.httprequest-gethistory.php + * @return HttpMessage an HttpMessage object representing the complete request/response history. + */ #[Pure] - public function getHistory () {} - - /** - * (PECL pecl_http >= 0.15.0)
    - * Clear history - * @link https://php.net/manual/en/function.httprequest-clearhistory.php - * @return void - */ - public function clearHistory () {} - - /** - * @param $url [optional] - * @param $method [optional] - * @param $options [optional] - * @param $class_name [optional] - */ - public static function factory ($url, $method, $options, $class_name) {} - - /** - * @param $url - * @param $options [optional] - * @param &$info [optional] - */ - public static function get ($url, $options, &$info) {} - - /** - * @param $url - * @param $options [optional] - * @param &$info [optional] - */ - public static function head ($url, $options, &$info) {} - - /** - * @param $url - * @param $data - * @param $options [optional] - * @param &$info [optional] - */ - public static function postData ($url, $data, $options, &$info) {} - - /** - * @param $url - * @param $data - * @param $options [optional] - * @param &$info [optional] - */ - public static function postFields ($url, $data, $options, &$info) {} - - /** - * @param $url - * @param $data - * @param $options [optional] - * @param &$info [optional] - */ - public static function putData ($url, $data, $options, &$info) {} - - /** - * @param $url - * @param $file - * @param $options [optional] - * @param &$info [optional] - */ - public static function putFile ($url, $file, $options, &$info) {} - - /** - * @param $url - * @param $stream - * @param $options [optional] - * @param &$info [optional] - */ - public static function putStream ($url, $stream, $options, &$info) {} - - /** - * @param $method_name - */ - public static function methodRegister ($method_name) {} - - /** - * @param $method - */ - public static function methodUnregister ($method) {} - - /** - * @param $method_id - */ - public static function methodName ($method_id) {} - - /** - * @param $method - */ - public static function methodExists ($method) {} - - /** - * @param $fields - * @param $files - */ - public static function encodeBody ($fields, $files) {} - + public function getHistory() {} + + /** + * (PECL pecl_http >= 0.15.0)
    + * Clear history + * @link https://php.net/manual/en/function.httprequest-clearhistory.php + * @return void + */ + public function clearHistory() {} + + /** + * @param $url [optional] + * @param $method [optional] + * @param $options [optional] + * @param $class_name [optional] + */ + public static function factory($url, $method, $options, $class_name) {} + + /** + * @param $url + * @param $options [optional] + * @param &$info [optional] + */ + public static function get($url, $options, &$info) {} + + /** + * @param $url + * @param $options [optional] + * @param &$info [optional] + */ + public static function head($url, $options, &$info) {} + + /** + * @param $url + * @param $data + * @param $options [optional] + * @param &$info [optional] + */ + public static function postData($url, $data, $options, &$info) {} + + /** + * @param $url + * @param $data + * @param $options [optional] + * @param &$info [optional] + */ + public static function postFields($url, $data, $options, &$info) {} + + /** + * @param $url + * @param $data + * @param $options [optional] + * @param &$info [optional] + */ + public static function putData($url, $data, $options, &$info) {} + + /** + * @param $url + * @param $file + * @param $options [optional] + * @param &$info [optional] + */ + public static function putFile($url, $file, $options, &$info) {} + + /** + * @param $url + * @param $stream + * @param $options [optional] + * @param &$info [optional] + */ + public static function putStream($url, $stream, $options, &$info) {} + + /** + * @param $method_name + */ + public static function methodRegister($method_name) {} + + /** + * @param $method + */ + public static function methodUnregister($method) {} + + /** + * @param $method_id + */ + public static function methodName($method_id) {} + + /** + * @param $method + */ + public static function methodExists($method) {} + + /** + * @param $fields + * @param $files + */ + public static function encodeBody($fields, $files) {} } -class HttpRequestDataShare implements Countable { - private static $instance; - public $cookie; - public $dns; - public $ssl; - public $connect; - +class HttpRequestDataShare implements Countable +{ + private static $instance; + public $cookie; + public $dns; + public $ssl; + public $connect; - public function __destruct () {} + public function __destruct() {} - public function count () {} + public function count() {} - /** - * @param HttpRequest $request - */ - public function attach (HttpRequest $request) {} + /** + * @param HttpRequest $request + */ + public function attach(HttpRequest $request) {} - /** - * @param HttpRequest $request - */ - public function detach (HttpRequest $request) {} + /** + * @param HttpRequest $request + */ + public function detach(HttpRequest $request) {} - public function reset () {} + public function reset() {} - /** - * @param $global [optional] - * @param $class_name [optional] - */ - public static function factory ($global, $class_name) {} - - /** - * @param $global [optional] - */ - public static function singleton ($global) {} + /** + * @param $global [optional] + * @param $class_name [optional] + */ + public static function factory($global, $class_name) {} + /** + * @param $global [optional] + */ + public static function singleton($global) {} } /** * @link https://php.net/manual/en/class.httprequestpool.php */ -class HttpRequestPool implements Countable, Iterator { - - /** - * (PECL pecl_http >= 0.10.0)
    - * HttpRequestPool constructor - * @link https://php.net/manual/en/function.httprequestpool-construct.php - * @param null|HttpRequest $request [optional]

    - * HttpRequest object to attach - *

    - */ - public function __construct ( ?HttpRequest $request = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * HttpRequestPool destructor - * @link https://php.net/manual/en/function.httprequestpool-destruct.php - * @return void - */ - public function __destruct () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Attach HttpRequest - * @link https://php.net/manual/en/function.httprequestpool-attach.php - * @param HttpRequest $request

    - * an HttpRequest object not already attached to any HttpRequestPool object - *

    - * @return bool true on success or false on failure. - */ - public function attach ( HttpRequest $request) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Detach HttpRequest - * @link https://php.net/manual/en/function.httprequestpool-detach.php - * @param HttpRequest $request

    - * an HttpRequest object attached to this HttpRequestPool object - *

    - * @return bool true on success or false on failure. - */ - public function detach ( HttpRequest $request ) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Send all requests - * @link https://php.net/manual/en/function.httprequestpool-send.php - * @return bool true on success or false on failure. - */ - public function send () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Reset request pool - * @link https://php.net/manual/en/function.httprequestpool-reset.php - * @return void - */ - public function reset () {} - - /** - * (PECL pecl_http >= 0.15.0)
    - * Perform socket actions - * @link https://php.net/manual/en/function.httprequestpool-socketperform.php - * @return bool TRUE until each request has finished its transaction. - */ - protected function socketPerform () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Perform socket select - * @link https://php.net/manual/en/function.httprequestpool-socketselect.php - * @return bool true on success or false on failure. - */ - protected function socketSelect () {} - - public function valid () {} - - public function current () {} - - public function key () {} - - public function next () {} - - public function rewind () {} - - public function count () {} - - /** - * (PECL pecl_http >= 0.16.0)
    - * Get attached requests - * @link https://php.net/manual/en/function.httprequestpool-getattachedrequests.php - * @return array an array containing all currently attached HttpRequest objects. - */ +class HttpRequestPool implements Countable, Iterator +{ + /** + * (PECL pecl_http >= 0.10.0)
    + * HttpRequestPool constructor + * @link https://php.net/manual/en/function.httprequestpool-construct.php + * @param null|HttpRequest $request [optional]

    + * HttpRequest object to attach + *

    + */ + public function __construct(?HttpRequest $request = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * HttpRequestPool destructor + * @link https://php.net/manual/en/function.httprequestpool-destruct.php + * @return void + */ + public function __destruct() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Attach HttpRequest + * @link https://php.net/manual/en/function.httprequestpool-attach.php + * @param HttpRequest $request

    + * an HttpRequest object not already attached to any HttpRequestPool object + *

    + * @return bool true on success or false on failure. + */ + public function attach(HttpRequest $request) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Detach HttpRequest + * @link https://php.net/manual/en/function.httprequestpool-detach.php + * @param HttpRequest $request

    + * an HttpRequest object attached to this HttpRequestPool object + *

    + * @return bool true on success or false on failure. + */ + public function detach(HttpRequest $request) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Send all requests + * @link https://php.net/manual/en/function.httprequestpool-send.php + * @return bool true on success or false on failure. + */ + public function send() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Reset request pool + * @link https://php.net/manual/en/function.httprequestpool-reset.php + * @return void + */ + public function reset() {} + + /** + * (PECL pecl_http >= 0.15.0)
    + * Perform socket actions + * @link https://php.net/manual/en/function.httprequestpool-socketperform.php + * @return bool TRUE until each request has finished its transaction. + */ + protected function socketPerform() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Perform socket select + * @link https://php.net/manual/en/function.httprequestpool-socketselect.php + * @return bool true on success or false on failure. + */ + protected function socketSelect() {} + + public function valid() {} + + public function current() {} + + public function key() {} + + public function next() {} + + public function rewind() {} + + public function count() {} + + /** + * (PECL pecl_http >= 0.16.0)
    + * Get attached requests + * @link https://php.net/manual/en/function.httprequestpool-getattachedrequests.php + * @return array an array containing all currently attached HttpRequest objects. + */ #[Pure] - public function getAttachedRequests () {} - - /** - * (PECL pecl_http >= 0.16.0)
    - * Get finished requests - * @link https://php.net/manual/en/function.httprequestpool-getfinishedrequests.php - * @return array an array containing all attached HttpRequest objects that already have finished their work. - */ + public function getAttachedRequests() {} + + /** + * (PECL pecl_http >= 0.16.0)
    + * Get finished requests + * @link https://php.net/manual/en/function.httprequestpool-getfinishedrequests.php + * @return array an array containing all attached HttpRequest objects that already have finished their work. + */ #[Pure] - public function getFinishedRequests () {} - - /** - * @param $enable [optional] - */ - public function enablePipelining ($enable) {} + public function getFinishedRequests() {} - /** - * @param $enable [optional] - */ - public function enableEvents ($enable) {} + /** + * @param $enable [optional] + */ + public function enablePipelining($enable) {} + /** + * @param $enable [optional] + */ + public function enableEvents($enable) {} } /** * @link https://php.net/manual/en/class.httpresponse.php */ -class HttpResponse { - const REDIRECT = 0; - const REDIRECT_PERM = 301; - const REDIRECT_FOUND = 302; - const REDIRECT_POST = 303; - const REDIRECT_PROXY = 305; - const REDIRECT_TEMP = 307; - - private static $sent; - private static $catch; - private static $mode; - private static $stream; - private static $file; - private static $data; - protected static $cache; - protected static $gzip; - protected static $eTag; - protected static $lastModified; - protected static $cacheControl; - protected static $contentType; - protected static $contentDisposition; - protected static $bufferSize; - protected static $throttleDelay; - - - /** - * (PECL pecl_http >= 0.12.0)
    - * Set header - * @link https://php.net/manual/en/function.httpresponse-setheader.php - * @param string $name

    - * the name of the header - *

    - * @param mixed $value [optional]

    - * the value of the header; - * if not set, no header with this name will be sent - *

    - * @param bool $replace [optional]

    - * whether an existing header should be replaced - *

    - * @return bool true on success or false on failure. - */ - public static function setHeader ($name, $value = null, $replace = null) {} - - /** - * (PECL pecl_http >= 0.12.0)
    - * Get header - * @link https://php.net/manual/en/function.httpresponse-getheader.php - * @param string $name [optional]

    - * specifies the name of the header to read; - * if empty or omitted, an associative array with all headers will be returned - *

    - * @return mixed either a string containing the value of the header matching name, - * false on failure, or an associative array with all headers. - */ - public static function getHeader ($name = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set ETag - * @link https://php.net/manual/en/function.httpresponse-setetag.php - * @param string $etag

    - * unquoted string as parameter containing the ETag - *

    - * @return bool true on success or false on failure. - */ - public static function setETag ($etag) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get ETag - * @link https://php.net/manual/en/function.httpresponse-getetag.php - * @return string the calculated or previously set ETag as unquoted string. - */ - public static function getETag () {} - - /** - * (PECL pecl_http >= 0.12.0)
    - * Set last modified - * @link https://php.net/manual/en/function.httpresponse-setlastmodified.php - * @param int $timestamp

    - * Unix timestamp representing the last modification time of the sent entity - *

    - * @return bool true on success or false on failure. - */ - public static function setLastModified ($timestamp) {} - - /** - * (PECL pecl_http >= 0.12.0)
    - * Get last modified - * @link https://php.net/manual/en/function.httpresponse-getlastmodified.php - * @return int the calculated or previously set Unix timestamp. - */ - public static function getLastModified () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set content disposition - * @link https://php.net/manual/en/function.httpresponse-setcontentdisposition.php - * @param string $filename

    - * the file name the "Save as..." dialog should display - *

    - * @param bool $inline [optional]

    - * if set to true and the user agent knows how to handle the content type, - * it will probably not cause the popup window to be shown - *

    - * @return bool true on success or false on failure. - */ - public static function setContentDisposition ($filename, $inline = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get content disposition - * @link https://php.net/manual/en/function.httpresponse-getcontentdisposition.php - * @return string the current content disposition as string like sent in a header. - */ - public static function getContentDisposition () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set content type - * @link https://php.net/manual/en/function.httpresponse-setcontenttype.php - * @param string $content_type

    - * the content type of the sent entity (primary/secondary) - *

    - * @return bool true on success, or false if the content type does not seem to - * contain a primary and secondary content type part. - */ - public static function setContentType ($content_type) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get content type - * @link https://php.net/manual/en/function.httpresponse-getcontenttype.php - * @return string the currently set content type as string. - */ - public static function getContentType () {} - - /** - * (PECL pecl_http >= 0.13.0)
    - * Guess content type - * @link https://php.net/manual/en/function.httpresponse-guesscontenttype.php - * @param string $magic_file

    - * specifies the magic.mime database to use - *

    - * @param int $magic_mode [optional]

    - * flags for libmagic - *

    - * @return string|false the guessed content type on success or false on failure. - */ - public static function guessContentType ($magic_file, $magic_mode = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set cache - * @link https://php.net/manual/en/function.httpresponse-setcache.php - * @param bool $cache

    - * whether caching should be attempted - *

    - * @return bool true on success or false on failure. - */ - public static function setCache ($cache) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get cache - * @link https://php.net/manual/en/function.httpresponse-getcache.php - * @return bool true if caching should be attempted, else false. - */ - public static function getCache () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set cache control - * @link https://php.net/manual/en/function.httpresponse-setcachecontrol.php - * @param string $control

    - * the primary cache control setting - *

    - * @param int $max_age [optional]

    - * the max-age in seconds, suggesting how long the cache entry is valid on the client side - *

    - * @param bool $must_revalidate [optional]

    - * whether the cached entity should be revalidated by the client for every request - *

    - * @return bool true on success, or false if control does not match one of public, private or no-cache. - */ - public static function setCacheControl ($control, $max_age = null, $must_revalidate = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get cache control - * @link https://php.net/manual/en/function.httpresponse-getcachecontrol.php - * @return string the current cache control setting as a string like sent in a header. - */ - public static function getCacheControl () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set gzip - * @link https://php.net/manual/en/function.httpresponse-setgzip.php - * @param bool $gzip

    - * whether GZip compression should be enabled - *

    - * @return bool true on success or false on failure. - */ - public static function setGzip ($gzip) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get gzip - * @link https://php.net/manual/en/function.httpresponse-getgzip.php - * @return bool true if GZip compression is enabled, else false. - */ - public static function getGzip () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set throttle delay - * @link https://php.net/manual/en/function.httpresponse-setthrottledelay.php - * @param float $seconds

    - * seconds to sleep after each chunk sent - *

    - * @return bool true on success or false on failure. - */ - public static function setThrottleDelay ($seconds) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get throttle delay - * @link https://php.net/manual/en/function.httpresponse-getthrottledelay.php - * @return float a float representing the throttle delay in seconds. - */ - public static function getThrottleDelay () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set buffer size - * @link https://php.net/manual/en/function.httpresponse-setbuffersize.php - * @param int $bytes

    - * the chunk size in bytes - *

    - * @return bool true on success or false on failure. - */ - public static function setBufferSize ($bytes) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get buffer size - * @link https://php.net/manual/en/function.httpresponse-getbuffersize.php - * @return int an int representing the current buffer size in bytes. - */ - public static function getBufferSize () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set data - * @link https://php.net/manual/en/function.httpresponse-setdata.php - * @param mixed $data

    - * data to send - *

    - * @return bool true on success or false on failure. - */ - public static function setData ($data) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get data - * @link https://php.net/manual/en/function.httpresponse-getdata.php - * @return string a string containing the previously set data to send. - */ - public static function getData () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set file - * @link https://php.net/manual/en/function.httpresponse-setfile.php - * @param string $file

    - * the path to the file to send - *

    - * @return bool true on success or false on failure. - */ - public static function setFile ($file) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get file - * @link https://php.net/manual/en/function.httpresponse-getfile.php - * @return string the previously set path to the file to send as string. - */ - public static function getFile () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Set stream - * @link https://php.net/manual/en/function.httpresponse-setstream.php - * @param resource $stream

    - * already opened stream from which the data to send will be read - *

    - * @return bool true on success or false on failure. - */ - public static function setStream ($stream) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get Stream - * @link https://php.net/manual/en/function.httpresponse-getstream.php - * @return resource the previously set resource. - */ - public static function getStream () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Send response - * @link https://php.net/manual/en/function.httpresponse-send.php - * @param bool $clean_ob [optional]

    - * whether to destroy all previously started output handlers and their buffers - *

    - * @return bool true on success or false on failure. - */ - public static function send ($clean_ob = null) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Capture script output - * @link https://php.net/manual/en/function.httpresponse-capture.php - * @return void - */ - public static function capture () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Redirect - * @link https://php.net/manual/en/function.httpresponse-redirect.php - * @param null|string $url [optional] - * @param null|array $params [optional] - * @param null|bool $session [optional] - * @param null|int $status [optional] - * @return void - */ - public static function redirect ($url = null, ?array $params = null , $session = null, $status = null) {} - - /** - * (PECL pecl_http >= 0.12.0)
    - * Send HTTP response status - * @link https://php.net/manual/en/function.httpresponse-status.php - * @param int $status - * @return bool - */ - public static function status ($status) {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get request headers - * @link https://php.net/manual/en/function.httpresponse-getrequestheaders.php - * @return array - */ - public static function getRequestHeaders () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get request body - * @link https://php.net/manual/en/function.httpresponse-getrequestbody.php - * @return string - */ - public static function getRequestBody () {} - - /** - * (PECL pecl_http >= 0.10.0)
    - * Get request body stream - * @link https://php.net/manual/en/function.httpresponse-getrequestbodystream.php - * @return resource - */ - public static function getRequestBodyStream () {} - +class HttpResponse +{ + public const REDIRECT = 0; + public const REDIRECT_PERM = 301; + public const REDIRECT_FOUND = 302; + public const REDIRECT_POST = 303; + public const REDIRECT_PROXY = 305; + public const REDIRECT_TEMP = 307; + + private static $sent; + private static $catch; + private static $mode; + private static $stream; + private static $file; + private static $data; + protected static $cache; + protected static $gzip; + protected static $eTag; + protected static $lastModified; + protected static $cacheControl; + protected static $contentType; + protected static $contentDisposition; + protected static $bufferSize; + protected static $throttleDelay; + + /** + * (PECL pecl_http >= 0.12.0)
    + * Set header + * @link https://php.net/manual/en/function.httpresponse-setheader.php + * @param string $name

    + * the name of the header + *

    + * @param mixed $value [optional]

    + * the value of the header; + * if not set, no header with this name will be sent + *

    + * @param bool $replace [optional]

    + * whether an existing header should be replaced + *

    + * @return bool true on success or false on failure. + */ + public static function setHeader($name, $value = null, $replace = null) {} + + /** + * (PECL pecl_http >= 0.12.0)
    + * Get header + * @link https://php.net/manual/en/function.httpresponse-getheader.php + * @param string $name [optional]

    + * specifies the name of the header to read; + * if empty or omitted, an associative array with all headers will be returned + *

    + * @return mixed either a string containing the value of the header matching name, + * false on failure, or an associative array with all headers. + */ + public static function getHeader($name = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set ETag + * @link https://php.net/manual/en/function.httpresponse-setetag.php + * @param string $etag

    + * unquoted string as parameter containing the ETag + *

    + * @return bool true on success or false on failure. + */ + public static function setETag($etag) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get ETag + * @link https://php.net/manual/en/function.httpresponse-getetag.php + * @return string the calculated or previously set ETag as unquoted string. + */ + public static function getETag() {} + + /** + * (PECL pecl_http >= 0.12.0)
    + * Set last modified + * @link https://php.net/manual/en/function.httpresponse-setlastmodified.php + * @param int $timestamp

    + * Unix timestamp representing the last modification time of the sent entity + *

    + * @return bool true on success or false on failure. + */ + public static function setLastModified($timestamp) {} + + /** + * (PECL pecl_http >= 0.12.0)
    + * Get last modified + * @link https://php.net/manual/en/function.httpresponse-getlastmodified.php + * @return int the calculated or previously set Unix timestamp. + */ + public static function getLastModified() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set content disposition + * @link https://php.net/manual/en/function.httpresponse-setcontentdisposition.php + * @param string $filename

    + * the file name the "Save as..." dialog should display + *

    + * @param bool $inline [optional]

    + * if set to true and the user agent knows how to handle the content type, + * it will probably not cause the popup window to be shown + *

    + * @return bool true on success or false on failure. + */ + public static function setContentDisposition($filename, $inline = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get content disposition + * @link https://php.net/manual/en/function.httpresponse-getcontentdisposition.php + * @return string the current content disposition as string like sent in a header. + */ + public static function getContentDisposition() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set content type + * @link https://php.net/manual/en/function.httpresponse-setcontenttype.php + * @param string $content_type

    + * the content type of the sent entity (primary/secondary) + *

    + * @return bool true on success, or false if the content type does not seem to + * contain a primary and secondary content type part. + */ + public static function setContentType($content_type) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get content type + * @link https://php.net/manual/en/function.httpresponse-getcontenttype.php + * @return string the currently set content type as string. + */ + public static function getContentType() {} + + /** + * (PECL pecl_http >= 0.13.0)
    + * Guess content type + * @link https://php.net/manual/en/function.httpresponse-guesscontenttype.php + * @param string $magic_file

    + * specifies the magic.mime database to use + *

    + * @param int $magic_mode [optional]

    + * flags for libmagic + *

    + * @return string|false the guessed content type on success or false on failure. + */ + public static function guessContentType($magic_file, $magic_mode = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set cache + * @link https://php.net/manual/en/function.httpresponse-setcache.php + * @param bool $cache

    + * whether caching should be attempted + *

    + * @return bool true on success or false on failure. + */ + public static function setCache($cache) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get cache + * @link https://php.net/manual/en/function.httpresponse-getcache.php + * @return bool true if caching should be attempted, else false. + */ + public static function getCache() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set cache control + * @link https://php.net/manual/en/function.httpresponse-setcachecontrol.php + * @param string $control

    + * the primary cache control setting + *

    + * @param int $max_age [optional]

    + * the max-age in seconds, suggesting how long the cache entry is valid on the client side + *

    + * @param bool $must_revalidate [optional]

    + * whether the cached entity should be revalidated by the client for every request + *

    + * @return bool true on success, or false if control does not match one of public, private or no-cache. + */ + public static function setCacheControl($control, $max_age = null, $must_revalidate = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get cache control + * @link https://php.net/manual/en/function.httpresponse-getcachecontrol.php + * @return string the current cache control setting as a string like sent in a header. + */ + public static function getCacheControl() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set gzip + * @link https://php.net/manual/en/function.httpresponse-setgzip.php + * @param bool $gzip

    + * whether GZip compression should be enabled + *

    + * @return bool true on success or false on failure. + */ + public static function setGzip($gzip) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get gzip + * @link https://php.net/manual/en/function.httpresponse-getgzip.php + * @return bool true if GZip compression is enabled, else false. + */ + public static function getGzip() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set throttle delay + * @link https://php.net/manual/en/function.httpresponse-setthrottledelay.php + * @param float $seconds

    + * seconds to sleep after each chunk sent + *

    + * @return bool true on success or false on failure. + */ + public static function setThrottleDelay($seconds) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get throttle delay + * @link https://php.net/manual/en/function.httpresponse-getthrottledelay.php + * @return float a float representing the throttle delay in seconds. + */ + public static function getThrottleDelay() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set buffer size + * @link https://php.net/manual/en/function.httpresponse-setbuffersize.php + * @param int $bytes

    + * the chunk size in bytes + *

    + * @return bool true on success or false on failure. + */ + public static function setBufferSize($bytes) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get buffer size + * @link https://php.net/manual/en/function.httpresponse-getbuffersize.php + * @return int an int representing the current buffer size in bytes. + */ + public static function getBufferSize() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set data + * @link https://php.net/manual/en/function.httpresponse-setdata.php + * @param mixed $data

    + * data to send + *

    + * @return bool true on success or false on failure. + */ + public static function setData($data) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get data + * @link https://php.net/manual/en/function.httpresponse-getdata.php + * @return string a string containing the previously set data to send. + */ + public static function getData() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set file + * @link https://php.net/manual/en/function.httpresponse-setfile.php + * @param string $file

    + * the path to the file to send + *

    + * @return bool true on success or false on failure. + */ + public static function setFile($file) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get file + * @link https://php.net/manual/en/function.httpresponse-getfile.php + * @return string the previously set path to the file to send as string. + */ + public static function getFile() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Set stream + * @link https://php.net/manual/en/function.httpresponse-setstream.php + * @param resource $stream

    + * already opened stream from which the data to send will be read + *

    + * @return bool true on success or false on failure. + */ + public static function setStream($stream) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get Stream + * @link https://php.net/manual/en/function.httpresponse-getstream.php + * @return resource the previously set resource. + */ + public static function getStream() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Send response + * @link https://php.net/manual/en/function.httpresponse-send.php + * @param bool $clean_ob [optional]

    + * whether to destroy all previously started output handlers and their buffers + *

    + * @return bool true on success or false on failure. + */ + public static function send($clean_ob = null) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Capture script output + * @link https://php.net/manual/en/function.httpresponse-capture.php + * @return void + */ + public static function capture() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Redirect + * @link https://php.net/manual/en/function.httpresponse-redirect.php + * @param null|string $url [optional] + * @param null|array $params [optional] + * @param null|bool $session [optional] + * @param null|int $status [optional] + * @return void + */ + public static function redirect($url = null, ?array $params = null, $session = null, $status = null) {} + + /** + * (PECL pecl_http >= 0.12.0)
    + * Send HTTP response status + * @link https://php.net/manual/en/function.httpresponse-status.php + * @param int $status + * @return bool + */ + public static function status($status) {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get request headers + * @link https://php.net/manual/en/function.httpresponse-getrequestheaders.php + * @return array + */ + public static function getRequestHeaders() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get request body + * @link https://php.net/manual/en/function.httpresponse-getrequestbody.php + * @return string + */ + public static function getRequestBody() {} + + /** + * (PECL pecl_http >= 0.10.0)
    + * Get request body stream + * @link https://php.net/manual/en/function.httpresponse-getrequestbodystream.php + * @return resource + */ + public static function getRequestBodyStream() {} } -class HttpUtil { - - /** - * @param $timestamp [optional] - */ - public static function date ($timestamp) {} - - /** - * @param $url - * @param $parts [optional] - * @param $flags [optional] - * @param &$composed [optional] - */ - public static function buildUrl ($url, $parts, $flags, &$composed) {} - - /** - * @param $query - * @param $prefix [optional] - * @param $arg_sep [optional] - */ - public static function buildStr ($query, $prefix, $arg_sep) {} - - /** - * @param $supported - * @param &$result [optional] - */ - public static function negotiateLanguage ($supported, &$result) {} - - /** - * @param $supported - * @param &$result [optional] - */ - public static function negotiateCharset ($supported, &$result) {} - - /** - * @param $supported - * @param &$result [optional] - */ - public static function negotiateContentType ($supported, &$result) {} - - /** - * @param $last_modified - * @param $for_range [optional] - */ - public static function matchModified ($last_modified, $for_range) {} - - /** - * @param $plain_etag - * @param $for_range [optional] - */ - public static function matchEtag ($plain_etag, $for_range) {} - - /** - * @param $header_name - * @param $header_value - * @param $case_sensitive [optional] - */ - public static function matchRequestHeader ($header_name, $header_value, $case_sensitive) {} - - /** - * @param $message_string - */ - public static function parseMessage ($message_string) {} - - /** - * @param $headers_string - */ - public static function parseHeaders ($headers_string) {} - - /** - * @param $cookie_string - */ - public static function parseCookie ($cookie_string) {} - - /** - * @param $cookie_array - */ - public static function buildCookie ($cookie_array) {} - - /** - * @param $param_string - * @param $flags [optional] - */ - public static function parseParams ($param_string, $flags) {} - - /** - * @param $encoded_string - */ - public static function chunkedDecode ($encoded_string) {} - - /** - * @param $plain - * @param $flags [optional] - */ - public static function deflate ($plain, $flags) {} - - /** - * @param $encoded - */ - public static function inflate ($encoded) {} - - /** - * @param $feature [optional] - */ - public static function support ($feature) {} - +class HttpUtil +{ + /** + * @param $timestamp [optional] + */ + public static function date($timestamp) {} + + /** + * @param $url + * @param $parts [optional] + * @param $flags [optional] + * @param &$composed [optional] + */ + public static function buildUrl($url, $parts, $flags, &$composed) {} + + /** + * @param $query + * @param $prefix [optional] + * @param $arg_sep [optional] + */ + public static function buildStr($query, $prefix, $arg_sep) {} + + /** + * @param $supported + * @param &$result [optional] + */ + public static function negotiateLanguage($supported, &$result) {} + + /** + * @param $supported + * @param &$result [optional] + */ + public static function negotiateCharset($supported, &$result) {} + + /** + * @param $supported + * @param &$result [optional] + */ + public static function negotiateContentType($supported, &$result) {} + + /** + * @param $last_modified + * @param $for_range [optional] + */ + public static function matchModified($last_modified, $for_range) {} + + /** + * @param $plain_etag + * @param $for_range [optional] + */ + public static function matchEtag($plain_etag, $for_range) {} + + /** + * @param $header_name + * @param $header_value + * @param $case_sensitive [optional] + */ + public static function matchRequestHeader($header_name, $header_value, $case_sensitive) {} + + /** + * @param $message_string + */ + public static function parseMessage($message_string) {} + + /** + * @param $headers_string + */ + public static function parseHeaders($headers_string) {} + + /** + * @param $cookie_string + */ + public static function parseCookie($cookie_string) {} + + /** + * @param $cookie_array + */ + public static function buildCookie($cookie_array) {} + + /** + * @param $param_string + * @param $flags [optional] + */ + public static function parseParams($param_string, $flags) {} + + /** + * @param $encoded_string + */ + public static function chunkedDecode($encoded_string) {} + + /** + * @param $plain + * @param $flags [optional] + */ + public static function deflate($plain, $flags) {} + + /** + * @param $encoded + */ + public static function inflate($encoded) {} + + /** + * @param $feature [optional] + */ + public static function support($feature) {} } /** @@ -2181,7 +2155,7 @@ public static function support ($feature) {} * @return string the HTTP date as string. */ #[Pure] -function http_date ($timestamp = null) {} +function http_date($timestamp = null) {} /** * (PECL pecl_http >= 0.21.0)
    @@ -2202,7 +2176,7 @@ function http_date ($timestamp = null) {} *

    * @return string|false the new URL as string on success or false on failure. */ -function http_build_url ($url = null, $parts = null, $flags = null, ?array &$new_url = null ) {} +function http_build_url($url = null, $parts = null, $flags = null, ?array &$new_url = null) {} /** * (PECL pecl_http >= 0.23.0)
    @@ -2220,7 +2194,7 @@ function http_build_url ($url = null, $parts = null, $flags = null, ?array &$ne * @return string|false the built query as string on success or false on failure. */ #[Pure] -function http_build_str (array $query, $prefix = null, $arg_separator = null) {} +function http_build_str(array $query, $prefix = null, $arg_separator = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2234,7 +2208,7 @@ function http_build_str (array $query, $prefix = null, $arg_separator = null) {} *

    * @return string the negotiated language or the default language (i.e. first array entry) if none match. */ -function http_negotiate_language (array $supported, ?array &$result = null ) {} +function http_negotiate_language(array $supported, ?array &$result = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2248,7 +2222,7 @@ function http_negotiate_language (array $supported, ?array &$result = null ) {} *

    * @return string the negotiated charset or the default charset (i.e. first array entry) if none match. */ -function http_negotiate_charset (array $supported, ?array &$result = null ) {} +function http_negotiate_charset(array $supported, ?array &$result = null) {} /** * (PECL pecl_http >= 0.19.0)
    @@ -2262,7 +2236,7 @@ function http_negotiate_charset (array $supported, ?array &$result = null ) {} *

    * @return string the negotiated content type or the default content type (i.e. first array entry) if none match. */ -function http_negotiate_content_type (array $supported, ?array &$result = null ) {} +function http_negotiate_content_type(array $supported, ?array &$result = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2282,7 +2256,7 @@ function http_negotiate_content_type (array $supported, ?array &$result = null ) *

    * @return void|false returns false or exits with the specified redirection status code */ -function http_redirect ($url = null, ?array $params = null , $session = null, $status = null) {} +function http_redirect($url = null, ?array $params = null, $session = null, $status = null) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2296,7 +2270,7 @@ function http_redirect ($url = null, ?array $params = null , $session = null, $s *

    * @return void */ -function http_throttle ($sec = null, $bytes = null) {} +function http_throttle($sec = null, $bytes = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2307,7 +2281,7 @@ function http_throttle ($sec = null, $bytes = null) {} *

    * @return bool true on success or false on failure. */ -function http_send_status ($status) {} +function http_send_status($status) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2319,7 +2293,7 @@ function http_send_status ($status) {} *

    * @return bool true on success or false on failure. */ -function http_send_last_modified ($timestamp = null) {} +function http_send_last_modified($timestamp = null) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2330,7 +2304,7 @@ function http_send_last_modified ($timestamp = null) {} *

    * @return bool true on success or false on failure. */ -function http_send_content_type ($content_type = null) {} +function http_send_content_type($content_type = null) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2345,7 +2319,7 @@ function http_send_content_type ($content_type = null) {} *

    * @return bool true on success or false on failure. */ -function http_send_content_disposition ($filename, $inline = null) {} +function http_send_content_disposition($filename, $inline = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2360,7 +2334,7 @@ function http_send_content_disposition ($filename, $inline = null) {} * @return bool true if timestamp represents an earlier date than the header, else false. */ #[Pure] -function http_match_modified ($timestamp = null, $for_range = null) {} +function http_match_modified($timestamp = null, $for_range = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2375,7 +2349,7 @@ function http_match_modified ($timestamp = null, $for_range = null) {} * @return bool true if ETag matches or the header contained the asterisk ("*"), else false. */ #[Pure] -function http_match_etag ($etag, $for_range = null) {} +function http_match_etag($etag, $for_range = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2388,7 +2362,7 @@ function http_match_etag ($etag, $for_range = null) {} * &see.http.configuration.force_exit; */ #[Pure] -function http_cache_last_modified ($timestamp_or_expires = null) {} +function http_cache_last_modified($timestamp_or_expires = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2401,7 +2375,7 @@ function http_cache_last_modified ($timestamp_or_expires = null) {} * &see.http.configuration.force_exit; */ #[Pure] -function http_cache_etag ($etag = null) {} +function http_cache_etag($etag = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2412,7 +2386,7 @@ function http_cache_etag ($etag = null) {} *

    * @return bool true on success or false on failure. */ -function http_send_data ($data) {} +function http_send_data($data) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2423,7 +2397,7 @@ function http_send_data ($data) {} *

    * @return bool true on success or false on failure. */ -function http_send_file ($file) {} +function http_send_file($file) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2434,7 +2408,7 @@ function http_send_file ($file) {} *

    * @return bool true on success or false on failure. */ -function http_send_stream ($stream) {} +function http_send_stream($stream) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2446,7 +2420,7 @@ function http_send_stream ($stream) {} * @return string|false the decoded string on success or false on failure. */ #[Pure] -function http_chunked_decode ($encoded) {} +function http_chunked_decode($encoded) {} /** * (PECL pecl_http >= 0.12.0)
    @@ -2458,7 +2432,7 @@ function http_chunked_decode ($encoded) {} * @return object a hierarchical object structure of the parsed messages. */ #[Pure] -function http_parse_message ($message) {} +function http_parse_message($message) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2470,7 +2444,7 @@ function http_parse_message ($message) {} * @return array|false an array on success or false on failure. */ #[Pure] -function http_parse_headers ($header) {} +function http_parse_headers($header) {} /** * (PECL pecl_http >= 0.20.0)
    @@ -2489,7 +2463,7 @@ function http_parse_headers ($header) {} * @return stdClass|false a stdClass object on success or false on failure. */ #[Pure] -function http_parse_cookie ($cookie, $flags = null, ?array $allowed_extras = null ) {} +function http_parse_cookie($cookie, $flags = null, ?array $allowed_extras = null) {} /** * (PECL pecl_http >= 1.2.0)
    @@ -2501,7 +2475,7 @@ function http_parse_cookie ($cookie, $flags = null, ?array $allowed_extras = nul * @return string the cookie(s) as string. */ #[Pure] -function http_build_cookie (array $cookie) {} +function http_build_cookie(array $cookie) {} /** * (PECL pecl_http >= 1.0.0)
    @@ -2516,7 +2490,7 @@ function http_build_cookie (array $cookie) {} * @return stdClass parameter list as stdClass object. */ #[Pure] -function http_parse_params ($param, $flags = null) {} +function http_parse_params($param, $flags = null) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2525,7 +2499,7 @@ function http_parse_params ($param, $flags = null) {} * @return array an associative array of incoming request headers. */ #[Pure] -function http_get_request_headers () {} +function http_get_request_headers() {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2534,7 +2508,7 @@ function http_get_request_headers () {} * @return string|null the raw request body as string on success or NULL on failure. */ #[Pure] -function http_get_request_body () {} +function http_get_request_body() {} /** * (PECL pecl_http >= 0.22.0)
    @@ -2543,7 +2517,7 @@ function http_get_request_body () {} * @return resource|null the raw request body as stream on success or NULL on failure. */ #[Pure] -function http_get_request_body_stream () {} +function http_get_request_body_stream() {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2561,7 +2535,7 @@ function http_get_request_body_stream () {} * @return bool true if header value matches, else false. */ #[Pure] -function http_match_request_header ($header, $value, $match_case = null) {} +function http_match_request_header($header, $value, $match_case = null) {} /** * (PECL pecl_http >= 1.5.0)
    @@ -2569,7 +2543,7 @@ function http_match_request_header ($header, $value, $match_case = null) {} * @link https://php.net/manual/en/function.http-persistent-handles-count.php * @return stdClass|false persistent handles statistics as stdClass object on success or false on failure. */ -function http_persistent_handles_count () {} +function http_persistent_handles_count() {} /** * (PECL pecl_http >= 1.5.0)
    @@ -2578,7 +2552,7 @@ function http_persistent_handles_count () {} * @param string $ident [optional] * @return string */ -function http_persistent_handles_clean ($ident = null) {} +function http_persistent_handles_clean($ident = null) {} /** * (PECL pecl_http >= 1.5.0)
    @@ -2589,7 +2563,7 @@ function http_persistent_handles_clean ($ident = null) {} *

    * @return string|false the prior ident as string on success or false on failure. */ -function http_persistent_handles_ident ($ident) {} +function http_persistent_handles_ident($ident) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2605,7 +2579,7 @@ function http_persistent_handles_ident ($ident) {} *

    * @return string */ -function http_get ($url, ?array $options = null, ?array &$info = null) {} +function http_get($url, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2620,7 +2594,7 @@ function http_get ($url, ?array $options = null, ?array &$info = null) {} *

    * @return string */ -function http_head ($url = null, ?array $options = null, ?array &$info = null) {} +function http_head($url = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.1.0)
    @@ -2638,7 +2612,7 @@ function http_head ($url = null, ?array $options = null, ?array &$info = null) { *

    * @return string */ -function http_post_data ($url, $data = null, ?array $options = null, ?array &$info = null) {} +function http_post_data($url, $data = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2659,7 +2633,7 @@ function http_post_data ($url, $data = null, ?array $options = null, ?array &$in *

    * @return string */ -function http_post_fields ($url, ?array $data = null, ?array $files = null, ?array $options = null , ?array &$info = null) {} +function http_post_fields($url, ?array $data = null, ?array $files = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.25.0)
    @@ -2677,7 +2651,7 @@ function http_post_fields ($url, ?array $data = null, ?array $files = null, ?arr *

    * @return string */ -function http_put_data ($url, $data = null, ?array $options = null, ?array &$info = null) {} +function http_put_data($url, $data = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2695,7 +2669,7 @@ function http_put_data ($url, $data = null, ?array $options = null, ?array &$inf *

    * @return string */ -function http_put_file ($url, $file = null, ?array $options = null, ?array &$info = null) {} +function http_put_file($url, $file = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2713,7 +2687,7 @@ function http_put_file ($url, $file = null, ?array $options = null, ?array &$inf *

    * @return string */ -function http_put_stream ($url, $stream = null, ?array $options = null, ?array &$info = null) {} +function http_put_stream($url, $stream = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 1.0.0)
    @@ -2734,7 +2708,7 @@ function http_put_stream ($url, $stream = null, ?array $options = null, ?array & *

    * @return string */ -function http_request ($method, $url = null, $body = null, ?array $options = null, ?array &$info = null) {} +function http_request($method, $url = null, $body = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 1.0.0)
    @@ -2749,7 +2723,7 @@ function http_request ($method, $url = null, $body = null, ?array $options = nul * @return string|false encoded string on success or false on failure. */ #[Pure] -function http_request_body_encode (array $fields, array $files) {} +function http_request_body_encode(array $fields, array $files) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2760,7 +2734,7 @@ function http_request_body_encode (array $fields, array $files) {} *

    * @return int|false the ID of the request method on success or false on failure. */ -function http_request_method_register ($method) {} +function http_request_method_register($method) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2771,7 +2745,7 @@ function http_request_method_register ($method) {} *

    * @return bool true on success or false on failure. */ -function http_request_method_unregister ($method) {} +function http_request_method_unregister($method) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2783,7 +2757,7 @@ function http_request_method_unregister ($method) {} * @return bool true if the request method is known, else false. */ #[Pure] -function http_request_method_exists ($method) {} +function http_request_method_exists($method) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2795,7 +2769,7 @@ function http_request_method_exists ($method) {} * @return string|false the request method name as string on success or false on failure. */ #[Pure] -function http_request_method_name ($method) {} +function http_request_method_name($method) {} /** * (PECL pecl_http >= 0.10.0)
    @@ -2806,7 +2780,7 @@ function http_request_method_name ($method) {} * @return string */ #[Pure] -function ob_etaghandler ($data, $mode) {} +function ob_etaghandler($data, $mode) {} /** * (PECL pecl_http >= 0.15.0)
    @@ -2821,7 +2795,7 @@ function ob_etaghandler ($data, $mode) {} * @return string|null the encoded string on success, or NULL on failure. */ #[Pure] -function http_deflate ($data, $flags = null) {} +function http_deflate($data, $flags = null) {} /** * (PECL pecl_http >= 0.15.0)
    @@ -2833,7 +2807,7 @@ function http_deflate ($data, $flags = null) {} * @return string|null the decoded string on success, or NULL on failure. */ #[Pure] -function http_inflate ($data) {} +function http_inflate($data) {} /** * (PECL pecl_http >= 0.21.0)
    @@ -2843,7 +2817,7 @@ function http_inflate ($data) {} * @param int $mode * @return string */ -function ob_deflatehandler ($data, $mode) {} +function ob_deflatehandler($data, $mode) {} /** * (PECL pecl_http >= 0.21.0)
    @@ -2853,7 +2827,7 @@ function ob_deflatehandler ($data, $mode) {} * @param int $mode * @return string */ -function ob_inflatehandler ($data, $mode) {} +function ob_inflatehandler($data, $mode) {} /** * (PECL pecl_http >= 0.15.0)
    @@ -2866,203 +2840,202 @@ function ob_inflatehandler ($data, $mode) {} * or a bitmask with all supported features if feature was omitted. */ #[Pure] -function http_support ($feature = null) {} - +function http_support($feature = null) {} /** * don't urldecode values * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_COOKIE_PARSE_RAW', 1); +define('HTTP_COOKIE_PARSE_RAW', 1); /** * whether "secure" was found in the cookie's parameters list * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_COOKIE_SECURE', 16); +define('HTTP_COOKIE_SECURE', 16); /** * whether "httpOnly" was found in the cookie's parameter list * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_COOKIE_HTTPONLY', 32); -define ('HTTP_DEFLATE_LEVEL_DEF', 0); -define ('HTTP_DEFLATE_LEVEL_MIN', 1); -define ('HTTP_DEFLATE_LEVEL_MAX', 9); -define ('HTTP_DEFLATE_TYPE_ZLIB', 0); -define ('HTTP_DEFLATE_TYPE_GZIP', 16); -define ('HTTP_DEFLATE_TYPE_RAW', 32); -define ('HTTP_DEFLATE_STRATEGY_DEF', 0); -define ('HTTP_DEFLATE_STRATEGY_FILT', 256); -define ('HTTP_DEFLATE_STRATEGY_HUFF', 512); -define ('HTTP_DEFLATE_STRATEGY_RLE', 768); -define ('HTTP_DEFLATE_STRATEGY_FIXED', 1024); +define('HTTP_COOKIE_HTTPONLY', 32); +define('HTTP_DEFLATE_LEVEL_DEF', 0); +define('HTTP_DEFLATE_LEVEL_MIN', 1); +define('HTTP_DEFLATE_LEVEL_MAX', 9); +define('HTTP_DEFLATE_TYPE_ZLIB', 0); +define('HTTP_DEFLATE_TYPE_GZIP', 16); +define('HTTP_DEFLATE_TYPE_RAW', 32); +define('HTTP_DEFLATE_STRATEGY_DEF', 0); +define('HTTP_DEFLATE_STRATEGY_FILT', 256); +define('HTTP_DEFLATE_STRATEGY_HUFF', 512); +define('HTTP_DEFLATE_STRATEGY_RLE', 768); +define('HTTP_DEFLATE_STRATEGY_FIXED', 1024); /** * don't flush * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_ENCODING_STREAM_FLUSH_NONE', 0); +define('HTTP_ENCODING_STREAM_FLUSH_NONE', 0); /** * synchronized flush only * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_ENCODING_STREAM_FLUSH_SYNC', 1048576); +define('HTTP_ENCODING_STREAM_FLUSH_SYNC', 1048576); /** * full data flush * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_ENCODING_STREAM_FLUSH_FULL', 2097152); +define('HTTP_ENCODING_STREAM_FLUSH_FULL', 2097152); /** * use "basic" authentication * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_AUTH_BASIC', 1); +define('HTTP_AUTH_BASIC', 1); /** * use "digest" authentication * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_AUTH_DIGEST', 2); +define('HTTP_AUTH_DIGEST', 2); /** * use "NTLM" authentication * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_AUTH_NTLM', 8); +define('HTTP_AUTH_NTLM', 8); /** * use "GSS-NEGOTIATE" authentication * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_AUTH_GSSNEG', 4); +define('HTTP_AUTH_GSSNEG', 4); /** * try any authentication scheme * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_AUTH_ANY', -1); -define ('HTTP_VERSION_NONE', 0); +define('HTTP_AUTH_ANY', -1); +define('HTTP_VERSION_NONE', 0); /** * HTTP version 1.0 * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_VERSION_1_0', 1); +define('HTTP_VERSION_1_0', 1); /** * HTTP version 1.1 * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_VERSION_1_1', 2); +define('HTTP_VERSION_1_1', 2); /** * no specific HTTP protocol version * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_VERSION_ANY', 0); +define('HTTP_VERSION_ANY', 0); /** * use TLSv1 only * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_SSL_VERSION_TLSv1', 1); +define('HTTP_SSL_VERSION_TLSv1', 1); /** * use SSLv2 only * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_SSL_VERSION_SSLv2', 2); +define('HTTP_SSL_VERSION_SSLv2', 2); /** * use SSLv3 only * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_SSL_VERSION_SSLv3', 3); +define('HTTP_SSL_VERSION_SSLv3', 3); /** * no specific SSL protocol version * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_SSL_VERSION_ANY', 0); +define('HTTP_SSL_VERSION_ANY', 0); /** * use IPv4 only for name lookups * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_IPRESOLVE_V4', 1); +define('HTTP_IPRESOLVE_V4', 1); /** * use IPv6 only for name lookups * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_IPRESOLVE_V6', 2); +define('HTTP_IPRESOLVE_V6', 2); /** * use any IP mechanism only for name lookups * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_IPRESOLVE_ANY', 0); +define('HTTP_IPRESOLVE_ANY', 0); /** * the proxy is a SOCKS4 type proxy * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_PROXY_SOCKS4', 4); +define('HTTP_PROXY_SOCKS4', 4); /** * the proxy is a SOCKS5 type proxy * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_PROXY_SOCKS5', 5); +define('HTTP_PROXY_SOCKS5', 5); /** * standard HTTP proxy * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_PROXY_HTTP', 0); -define ('HTTP_METH_GET', 1); -define ('HTTP_METH_HEAD', 2); -define ('HTTP_METH_POST', 3); -define ('HTTP_METH_PUT', 4); -define ('HTTP_METH_DELETE', 5); -define ('HTTP_METH_OPTIONS', 6); -define ('HTTP_METH_TRACE', 7); -define ('HTTP_METH_CONNECT', 8); -define ('HTTP_METH_PROPFIND', 9); -define ('HTTP_METH_PROPPATCH', 10); -define ('HTTP_METH_MKCOL', 11); -define ('HTTP_METH_COPY', 12); -define ('HTTP_METH_MOVE', 13); -define ('HTTP_METH_LOCK', 14); -define ('HTTP_METH_UNLOCK', 15); -define ('HTTP_METH_VERSION_CONTROL', 16); -define ('HTTP_METH_REPORT', 17); -define ('HTTP_METH_CHECKOUT', 18); -define ('HTTP_METH_CHECKIN', 19); -define ('HTTP_METH_UNCHECKOUT', 20); -define ('HTTP_METH_MKWORKSPACE', 21); -define ('HTTP_METH_UPDATE', 22); -define ('HTTP_METH_LABEL', 23); -define ('HTTP_METH_MERGE', 24); -define ('HTTP_METH_BASELINE_CONTROL', 25); -define ('HTTP_METH_MKACTIVITY', 26); -define ('HTTP_METH_ACL', 27); +define('HTTP_PROXY_HTTP', 0); +define('HTTP_METH_GET', 1); +define('HTTP_METH_HEAD', 2); +define('HTTP_METH_POST', 3); +define('HTTP_METH_PUT', 4); +define('HTTP_METH_DELETE', 5); +define('HTTP_METH_OPTIONS', 6); +define('HTTP_METH_TRACE', 7); +define('HTTP_METH_CONNECT', 8); +define('HTTP_METH_PROPFIND', 9); +define('HTTP_METH_PROPPATCH', 10); +define('HTTP_METH_MKCOL', 11); +define('HTTP_METH_COPY', 12); +define('HTTP_METH_MOVE', 13); +define('HTTP_METH_LOCK', 14); +define('HTTP_METH_UNLOCK', 15); +define('HTTP_METH_VERSION_CONTROL', 16); +define('HTTP_METH_REPORT', 17); +define('HTTP_METH_CHECKOUT', 18); +define('HTTP_METH_CHECKIN', 19); +define('HTTP_METH_UNCHECKOUT', 20); +define('HTTP_METH_MKWORKSPACE', 21); +define('HTTP_METH_UPDATE', 22); +define('HTTP_METH_LABEL', 23); +define('HTTP_METH_MERGE', 24); +define('HTTP_METH_BASELINE_CONTROL', 25); +define('HTTP_METH_MKACTIVITY', 26); +define('HTTP_METH_ACL', 27); /** * guess applicable redirect method * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_REDIRECT', 0); +define('HTTP_REDIRECT', 0); /** * permanent redirect (301 Moved permanently) * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_REDIRECT_PERM', 301); +define('HTTP_REDIRECT_PERM', 301); /** * standard redirect (302 Found) @@ -3075,246 +3048,246 @@ function http_support ($feature = null) {} * kind of reaction is expected of the client. * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_REDIRECT_FOUND', 302); +define('HTTP_REDIRECT_FOUND', 302); /** * redirect applicable to POST requests (303 See other) * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_REDIRECT_POST', 303); +define('HTTP_REDIRECT_POST', 303); /** * proxy redirect (305 Use proxy) * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_REDIRECT_PROXY', 305); +define('HTTP_REDIRECT_PROXY', 305); /** * temporary redirect (307 Temporary Redirect) * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_REDIRECT_TEMP', 307); +define('HTTP_REDIRECT_TEMP', 307); /** * querying for this constant will always return true * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_SUPPORT', 1); +define('HTTP_SUPPORT', 1); /** * whether support to issue HTTP requests is given, ie. libcurl support was compiled in * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_SUPPORT_REQUESTS', 2); +define('HTTP_SUPPORT_REQUESTS', 2); /** * whether support to guess the Content-Type of HTTP messages is given, ie. libmagic support was compiled in * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_SUPPORT_MAGICMIME', 4); +define('HTTP_SUPPORT_MAGICMIME', 4); /** * whether support for zlib encodings is given, ie. libz support was compiled in * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_SUPPORT_ENCODINGS', 8); +define('HTTP_SUPPORT_ENCODINGS', 8); /** * whether support to issue HTTP requests over SSL is given, ie. linked libcurl was built with SSL support * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_SUPPORT_SSLREQUESTS', 32); -define ('HTTP_SUPPORT_EVENTS', 128); +define('HTTP_SUPPORT_SSLREQUESTS', 32); +define('HTTP_SUPPORT_EVENTS', 128); /** * allow commands additionally to semicolons as separator * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_PARAMS_ALLOW_COMMA', 1); +define('HTTP_PARAMS_ALLOW_COMMA', 1); /** * continue parsing after an error occurred * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_PARAMS_ALLOW_FAILURE', 2); +define('HTTP_PARAMS_ALLOW_FAILURE', 2); /** * raise PHP warnings on parse errors * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_PARAMS_RAISE_ERROR', 4); +define('HTTP_PARAMS_RAISE_ERROR', 4); /** * all three values above, bitwise or'ed * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_PARAMS_DEFAULT', 7); +define('HTTP_PARAMS_DEFAULT', 7); /** * replace every part of the first URL when there's one of the second URL * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_REPLACE', 0); +define('HTTP_URL_REPLACE', 0); /** * join relative paths * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_JOIN_PATH', 1); +define('HTTP_URL_JOIN_PATH', 1); /** * join query strings * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_JOIN_QUERY', 2); +define('HTTP_URL_JOIN_QUERY', 2); /** * strip any user authentication information * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_STRIP_USER', 4); +define('HTTP_URL_STRIP_USER', 4); /** * strip any password authentication information * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_STRIP_PASS', 8); +define('HTTP_URL_STRIP_PASS', 8); /** * strip any authentication information * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_STRIP_AUTH', 12); +define('HTTP_URL_STRIP_AUTH', 12); /** * strip explicit port numbers * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_STRIP_PORT', 32); +define('HTTP_URL_STRIP_PORT', 32); /** * strip complete path * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_STRIP_PATH', 64); +define('HTTP_URL_STRIP_PATH', 64); /** * strip query string * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_STRIP_QUERY', 128); +define('HTTP_URL_STRIP_QUERY', 128); /** * strip any fragments (#identifier) * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_STRIP_FRAGMENT', 256); +define('HTTP_URL_STRIP_FRAGMENT', 256); /** * strip anything but scheme and host * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_URL_STRIP_ALL', 492); -define ('HTTP_URL_FROM_ENV', 4096); +define('HTTP_URL_STRIP_ALL', 492); +define('HTTP_URL_FROM_ENV', 4096); /** * runtime error * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_RUNTIME', 1); +define('HTTP_E_RUNTIME', 1); /** * an invalid parameter was passed * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_INVALID_PARAM', 2); +define('HTTP_E_INVALID_PARAM', 2); /** * header() or similar operation failed * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_HEADER', 3); +define('HTTP_E_HEADER', 3); /** * HTTP header parse error * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_MALFORMED_HEADERS', 4); +define('HTTP_E_MALFORMED_HEADERS', 4); /** * unknown/invalid request method * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_REQUEST_METHOD', 5); +define('HTTP_E_REQUEST_METHOD', 5); /** * with operation incompatible message type * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_MESSAGE_TYPE', 6); +define('HTTP_E_MESSAGE_TYPE', 6); /** * encoding/decoding error * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_ENCODING', 7); +define('HTTP_E_ENCODING', 7); /** * request failure * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_REQUEST', 8); +define('HTTP_E_REQUEST', 8); /** * request pool failure * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_REQUEST_POOL', 9); +define('HTTP_E_REQUEST_POOL', 9); /** * socket exception * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_SOCKET', 10); +define('HTTP_E_SOCKET', 10); /** * response failure * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_RESPONSE', 11); +define('HTTP_E_RESPONSE', 11); /** * invalid URL * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_URL', 12); +define('HTTP_E_URL', 12); /** * querystring operation failure * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_E_QUERYSTRING', 13); +define('HTTP_E_QUERYSTRING', 13); /** * the message is of no specific type * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_MSG_NONE', 0); +define('HTTP_MSG_NONE', 0); /** * request style message * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_MSG_REQUEST', 1); +define('HTTP_MSG_REQUEST', 1); /** * response style message * @link https://php.net/manual/en/http.constants.php */ -define ('HTTP_MSG_RESPONSE', 2); -define ('HTTP_QUERYSTRING_TYPE_BOOL', 3); -define ('HTTP_QUERYSTRING_TYPE_INT', 1); -define ('HTTP_QUERYSTRING_TYPE_FLOAT', 2); -define ('HTTP_QUERYSTRING_TYPE_STRING', 6); -define ('HTTP_QUERYSTRING_TYPE_ARRAY', 4); -define ('HTTP_QUERYSTRING_TYPE_OBJECT', 5); +define('HTTP_MSG_RESPONSE', 2); +define('HTTP_QUERYSTRING_TYPE_BOOL', 3); +define('HTTP_QUERYSTRING_TYPE_INT', 1); +define('HTTP_QUERYSTRING_TYPE_FLOAT', 2); +define('HTTP_QUERYSTRING_TYPE_STRING', 6); +define('HTTP_QUERYSTRING_TYPE_ARRAY', 4); +define('HTTP_QUERYSTRING_TYPE_OBJECT', 5); diff --git a/http/http3.php b/http/http3.php index 82c90a261..0e2facdcd 100644 --- a/http/http3.php +++ b/http/http3.php @@ -7,770 +7,775 @@ * * Encapsulated env request/response. * * Modular client support. */ + namespace http; + use http; use JetBrains\PhpStorm\Deprecated; /** * The HTTP client. See http\Client\Curl's [options](http/Client/Curl#Options:) which is the only driver currently supported. */ -class Client implements \SplSubject, \Countable { - /** - * Debug callback's $data contains human readable text. - */ - const DEBUG_INFO = 0; - /** - * Debug callback's $data contains data received. - */ - const DEBUG_IN = 1; - /** - * Debug callback's $data contains data sent. - */ - const DEBUG_OUT = 2; - /** - * Debug callback's $data contains headers. - */ - const DEBUG_HEADER = 16; - /** - * Debug callback's $data contains a body part. - */ - const DEBUG_BODY = 32; - /** - * Debug callback's $data contains SSL data. - */ - const DEBUG_SSL = 64; - /** - * Attached observers. - * - * @var \SplObjectStorage - */ - private $observers = null; - /** - * Set options. - * - * @var array - */ - protected $options = null; - /** - * Request/response history. - * - * @var \http\Message - */ - protected $history = null; - /** - * Whether to record history in http\Client::$history. - * - * @var bool - */ - public $recordHistory = false; - /** - * Create a new HTTP client. - * - * Currently only "curl" is supported as a $driver, and used by default. - * Persisted resources identified by $persistent_handle_id will be re-used if available. - * - * @param string $driver The HTTP client driver to employ. Currently only the default driver, "curl", is supported. - * @param string $persistent_handle_id If supplied, created curl handles will be persisted with this identifier for later reuse. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @throws \http\Exception\RuntimeException - */ - function __construct(string $driver = null, string $persistent_handle_id = null) {} - /** - * Add custom cookies. - * See http\Client::setCookies(). - * - * @param array $cookies Custom cookies to add. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Client self. - */ - function addCookies(array $cookies = null) {} - /** - * Add specific SSL options. - * See http\Client::setSslOptions(), http\Client::setOptions() and http\Client\Curl\$ssl options. - * - * @param array $ssl_options Add this SSL options. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Client self. - */ - function addSslOptions(array $ssl_options = null) {} - /** - * Implements SplSubject. Attach another observer. - * Attached observers will be notified with progress of each transfer. - * - * @param \SplObserver $observer An implementation of SplObserver. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Client self. - */ - function attach(\SplObserver $observer) {} - /** - * Configure the client's low level options. - * - * ***NOTE:*** - * This method has been added in v2.3.0. - * - * @param array $configuration Key/value pairs of low level options. - * See f.e. the [configuration options for the Curl driver](http/Client/Curl#Configuration:). - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Client self. - */ - function configure(array $configuration) {} - /** - * Implements Countable. Retrieve the number of enqueued requests. - * - * ***NOTE:*** - * The enqueued requests are counted without regard whether they are finished or not. - * - * @return int number of enqueued requests. - */ - function count() {} - /** - * Dequeue the http\Client\Request $request. - * - * See http\Client::requeue(), if you want to requeue the request, instead of calling http\Client::dequeue() and then http\Client::enqueue(). - * - * @param \http\Client\Request $request The request to cancel. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadMethodCallException - * @throws \http\Exception\RuntimeException - * @return \http\Client self. - */ - function dequeue(\http\Client\Request $request) {} - /** - * Implements SplSubject. Detach $observer, which has been previously attached. - * - * @param \SplObserver $observer Previously attached instance of SplObserver implementation. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Client self. - */ - function detach(\SplObserver $observer) {} - /** - * Enable usage of an event library like libevent, which might improve performance with big socket sets. - * - * @param bool $enable Whether to enable libevent usage. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Client self. +class Client implements \SplSubject, \Countable +{ + /** + * Debug callback's $data contains human readable text. + */ + public const DEBUG_INFO = 0; + /** + * Debug callback's $data contains data received. + */ + public const DEBUG_IN = 1; + /** + * Debug callback's $data contains data sent. + */ + public const DEBUG_OUT = 2; + /** + * Debug callback's $data contains headers. + */ + public const DEBUG_HEADER = 16; + /** + * Debug callback's $data contains a body part. + */ + public const DEBUG_BODY = 32; + /** + * Debug callback's $data contains SSL data. + */ + public const DEBUG_SSL = 64; + /** + * Attached observers. + * + * @var \SplObjectStorage + */ + private $observers = null; + /** + * Set options. + * + * @var array + */ + protected $options = null; + /** + * Request/response history. + * + * @var \http\Message + */ + protected $history = null; + /** + * Whether to record history in http\Client::$history. + * + * @var bool + */ + public $recordHistory = false; + /** + * Create a new HTTP client. + * + * Currently only "curl" is supported as a $driver, and used by default. + * Persisted resources identified by $persistent_handle_id will be re-used if available. + * + * @param string $driver The HTTP client driver to employ. Currently only the default driver, "curl", is supported. + * @param string $persistent_handle_id If supplied, created curl handles will be persisted with this identifier for later reuse. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @throws \http\Exception\RuntimeException + */ + public function __construct(string $driver = null, string $persistent_handle_id = null) {} + /** + * Add custom cookies. + * See http\Client::setCookies(). + * + * @param array $cookies Custom cookies to add. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Client self. + */ + public function addCookies(array $cookies = null) {} + /** + * Add specific SSL options. + * See http\Client::setSslOptions(), http\Client::setOptions() and http\Client\Curl\$ssl options. + * + * @param array $ssl_options Add this SSL options. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Client self. + */ + public function addSslOptions(array $ssl_options = null) {} + /** + * Implements SplSubject. Attach another observer. + * Attached observers will be notified with progress of each transfer. + * + * @param \SplObserver $observer An implementation of SplObserver. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Client self. + */ + public function attach(\SplObserver $observer) {} + /** + * Configure the client's low level options. + * + * ***NOTE:*** + * This method has been added in v2.3.0. + * + * @param array $configuration Key/value pairs of low level options. + * See f.e. the [configuration options for the Curl driver](http/Client/Curl#Configuration:). + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Client self. + */ + public function configure(array $configuration) {} + /** + * Implements Countable. Retrieve the number of enqueued requests. + * + * ***NOTE:*** + * The enqueued requests are counted without regard whether they are finished or not. + * + * @return int number of enqueued requests. + */ + public function count() {} + /** + * Dequeue the http\Client\Request $request. + * + * See http\Client::requeue(), if you want to requeue the request, instead of calling http\Client::dequeue() and then http\Client::enqueue(). + * + * @param \http\Client\Request $request The request to cancel. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadMethodCallException + * @throws \http\Exception\RuntimeException + * @return \http\Client self. + */ + public function dequeue(http\Client\Request $request) {} + /** + * Implements SplSubject. Detach $observer, which has been previously attached. + * + * @param \SplObserver $observer Previously attached instance of SplObserver implementation. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Client self. + */ + public function detach(\SplObserver $observer) {} + /** + * Enable usage of an event library like libevent, which might improve performance with big socket sets. + * + * @param bool $enable Whether to enable libevent usage. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Client self. * @see Client::configure() - */ - #[Deprecated('This method has been deprecated in 2.3.0. Use http\Client::configure() instead')] - function enableEvents(bool $enable = true) {} - /** - * Enable sending pipelined requests to the same host if the driver supports it. - * - * @param bool $enable Whether to enable pipelining. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Client self. + */ + #[Deprecated('This method has been deprecated in 2.3.0. Use http\Client::configure() instead')] + public function enableEvents(bool $enable = true) {} + /** + * Enable sending pipelined requests to the same host if the driver supports it. + * + * @param bool $enable Whether to enable pipelining. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Client self. * @see Client::configure() - */ + */ #[Deprecated('This method has been deprecated in 2.3.0. Use http\Client::configure() instead')] - function enablePipelining(bool $enable = true) {} - /** - * Add another http\Client\Request to the request queue. - * If the optional callback $cb returns true, the request will be automatically dequeued. - * - * ***Note:*** - * The http\Client\Response object resulting from the request is always stored - * internally to be retrieved at a later time, __even__ when $cb is used. - * - * If you are about to send a lot of requests and do __not__ need the response - * after executing the callback, you can use http\Client::getResponse() within - * the callback to keep the memory usage level as low as possible. - * - * See http\Client::dequeue() and http\Client::send(). - * - * @param \http\Client\Request $request The request to enqueue. - * @param callable $cb as function(\http\Response $response) : ?bool - * A callback to automatically call when the request has finished. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadMethodCallException - * @throws \http\Exception\RuntimeException - * @return \http\Client self. - */ - function enqueue(\http\Client\Request $request, callable $cb = null) {} - /** - * Get a list of available configuration options and their default values. - * - * See f.e. the [configuration options for the Curl driver](http/Client/Curl#Configuration:). - * - * @throws \http\Exception\InvalidArgumentException - * @return array list of key/value pairs of available configuration options and their default values. - */ - function getAvailableConfiguration() {} - /** - * List available drivers. - * - * @return array list of supported drivers. - */ - function getAvailableDrivers() {} - /** - * Retrieve a list of available request options and their default values. - * - * See f.e. the [request options for the Curl driver](http/Client/Curl#Options:). - * - * @throws \http\Exception\InvalidArgumentException - * @return array list of key/value pairs of available request options and their default values. - */ - function getAvailableOptions() {} - /** - * Get priorly set custom cookies. - * See http\Client::setCookies(). - * - * @return array custom cookies. - */ - function getCookies() {} - /** - * Simply returns the http\Message chain representing the request/response history. - * - * ***NOTE:*** - * The history is only recorded while http\Client::$recordHistory is true. - * - * @throws \http\Exception\InvalidArgumentException - * @return \http\Message the request/response message chain representing the client's history. - */ - function getHistory() {} - /** - * Returns the SplObjectStorage holding attached observers. - * - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \SplObjectStorage observer storage. - */ - function getObservers() {} - /** - * Get priorly set options. - * See http\Client::setOptions(). - * - * @return array options. - */ - function getOptions() {} - /** - * Retrieve the progress information for $request. - * - * @param \http\Client\Request $request The request to retrieve the current progress information for. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return object|null object stdClass instance holding progress information. - * or NULL if $request is not enqueued. - */ - function getProgressInfo(\http\Client\Request $request) {} - /** - * Retrieve the corresponding response of an already finished request, or the last received response if $request is not set. - * - * ***NOTE:*** - * If $request is NULL, then the response is removed from the internal storage (stack-like operation). - * - * @param \http\Client\Request $request The request to fetch the stored response for. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Client\Response|null \http\Client\Response the stored response for the request, or the last that was received. - * or NULL if no more response was available to pop, when no $request was given. - */ - function getResponse(\http\Client\Request $request = null) {} - /** - * Retrieve priorly set SSL options. - * See http\Client::getOptions() and http\Client::setSslOptions(). - * - * @return array SSL options. - */ - function getSslOptions() {} - /** - * Get transfer related information for a running or finished request. - * - * @param \http\Client\Request $request The request to probe for transfer info. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return object stdClass instance holding transfer related information. - */ - function getTransferInfo(\http\Client\Request $request) {} - /** - * Implements SplSubject. Notify attached observers about progress with $request. - * - * @param \http\Client\Request $request The request to notify about. - * @param object $progress stdClass instance holding progress information. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Client self. - */ - function notify(\http\Client\Request $request = null, $progress = null) {} - /** - * Perform outstanding transfer actions. - * See http\Client::wait() for the completing interface. - * - * @return bool true if there are more transfers to complete. - */ - function once() {} - /** - * Requeue an http\Client\Request. - * - * The difference simply is, that this method, in contrast to http\Client::enqueue(), does not throw an http\Exception when the request to queue is already enqueued and dequeues it automatically prior enqueueing it again. - * - * @param \http\Client\Request $request The request to queue. - * @param callable $cb as function(\http\Response $response) : ?bool - * A callback to automatically call when the request has finished. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\RuntimeException - * @return \http\Client self. - */ - function requeue(\http\Client\Request $request, callable $cb = null) {} - /** - * Reset the client to the initial state. - * - * @return \http\Client self. - */ - function reset() {} - /** - * Send all enqueued requests. - * See http\Client::once() and http\Client::wait() for a more fine grained interface. - * - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\RuntimeException - * @return \http\Client self. - */ - function send() {} - /** - * Set custom cookies. - * See http\Client::addCookies() and http\Client::getCookies(). - * - * @param array $cookies Set the custom cookies to this array. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Client self. - */ - function setCookies(array $cookies = null) {} - /** - * Set client debugging callback. - * - * ***NOTE:*** - * This method has been added in v2.6.0, resp. v3.1.0. - * - * @param callable $callback as function(http\Client $c, http\Client\Request $r, int $type, string $data) - * The debug callback. For $type see http\Client::DEBUG_* constants. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Client self. - */ - function setDebug(callable $callback) {} - /** - * Set client options. - * See http\Client\Curl. - * - * ***NOTE:*** - * Only options specified prior enqueueing a request are applied to the request. - * - * @param array $options The options to set. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Client self. - */ - function setOptions(array $options = null) {} - /** - * Specifically set SSL options. - * See http\Client::setOptions() and http\Client\Curl\$ssl options. - * - * @param array $ssl_options Set SSL options to this array. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Client self. - */ - function setSslOptions(array $ssl_options = null) {} - /** - * Wait for $timeout seconds for transfers to provide data. - * This is the completion call to http\Client::once(). - * - * @param float $timeout Seconds to wait for data on open sockets. - * @return bool success. - */ - function wait(float $timeout = 0) {} + public function enablePipelining(bool $enable = true) {} + /** + * Add another http\Client\Request to the request queue. + * If the optional callback $cb returns true, the request will be automatically dequeued. + * + * ***Note:*** + * The http\Client\Response object resulting from the request is always stored + * internally to be retrieved at a later time, __even__ when $cb is used. + * + * If you are about to send a lot of requests and do __not__ need the response + * after executing the callback, you can use http\Client::getResponse() within + * the callback to keep the memory usage level as low as possible. + * + * See http\Client::dequeue() and http\Client::send(). + * + * @param \http\Client\Request $request The request to enqueue. + * @param callable $cb as function(\http\Response $response) : ?bool + * A callback to automatically call when the request has finished. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadMethodCallException + * @throws \http\Exception\RuntimeException + * @return \http\Client self. + */ + public function enqueue(http\Client\Request $request, callable $cb = null) {} + /** + * Get a list of available configuration options and their default values. + * + * See f.e. the [configuration options for the Curl driver](http/Client/Curl#Configuration:). + * + * @throws \http\Exception\InvalidArgumentException + * @return array list of key/value pairs of available configuration options and their default values. + */ + public function getAvailableConfiguration() {} + /** + * List available drivers. + * + * @return array list of supported drivers. + */ + public function getAvailableDrivers() {} + /** + * Retrieve a list of available request options and their default values. + * + * See f.e. the [request options for the Curl driver](http/Client/Curl#Options:). + * + * @throws \http\Exception\InvalidArgumentException + * @return array list of key/value pairs of available request options and their default values. + */ + public function getAvailableOptions() {} + /** + * Get priorly set custom cookies. + * See http\Client::setCookies(). + * + * @return array custom cookies. + */ + public function getCookies() {} + /** + * Simply returns the http\Message chain representing the request/response history. + * + * ***NOTE:*** + * The history is only recorded while http\Client::$recordHistory is true. + * + * @throws \http\Exception\InvalidArgumentException + * @return \http\Message the request/response message chain representing the client's history. + */ + public function getHistory() {} + /** + * Returns the SplObjectStorage holding attached observers. + * + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \SplObjectStorage observer storage. + */ + public function getObservers() {} + /** + * Get priorly set options. + * See http\Client::setOptions(). + * + * @return array options. + */ + public function getOptions() {} + /** + * Retrieve the progress information for $request. + * + * @param \http\Client\Request $request The request to retrieve the current progress information for. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return object|null object stdClass instance holding progress information. + * or NULL if $request is not enqueued. + */ + public function getProgressInfo(http\Client\Request $request) {} + /** + * Retrieve the corresponding response of an already finished request, or the last received response if $request is not set. + * + * ***NOTE:*** + * If $request is NULL, then the response is removed from the internal storage (stack-like operation). + * + * @param \http\Client\Request $request The request to fetch the stored response for. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Client\Response|null \http\Client\Response the stored response for the request, or the last that was received. + * or NULL if no more response was available to pop, when no $request was given. + */ + public function getResponse(http\Client\Request $request = null) {} + /** + * Retrieve priorly set SSL options. + * See http\Client::getOptions() and http\Client::setSslOptions(). + * + * @return array SSL options. + */ + public function getSslOptions() {} + /** + * Get transfer related information for a running or finished request. + * + * @param \http\Client\Request $request The request to probe for transfer info. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return object stdClass instance holding transfer related information. + */ + public function getTransferInfo(http\Client\Request $request) {} + /** + * Implements SplSubject. Notify attached observers about progress with $request. + * + * @param \http\Client\Request $request The request to notify about. + * @param object $progress stdClass instance holding progress information. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Client self. + */ + public function notify(http\Client\Request $request = null, $progress = null) {} + /** + * Perform outstanding transfer actions. + * See http\Client::wait() for the completing interface. + * + * @return bool true if there are more transfers to complete. + */ + public function once() {} + /** + * Requeue an http\Client\Request. + * + * The difference simply is, that this method, in contrast to http\Client::enqueue(), does not throw an http\Exception when the request to queue is already enqueued and dequeues it automatically prior enqueueing it again. + * + * @param \http\Client\Request $request The request to queue. + * @param callable $cb as function(\http\Response $response) : ?bool + * A callback to automatically call when the request has finished. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\RuntimeException + * @return \http\Client self. + */ + public function requeue(http\Client\Request $request, callable $cb = null) {} + /** + * Reset the client to the initial state. + * + * @return \http\Client self. + */ + public function reset() {} + /** + * Send all enqueued requests. + * See http\Client::once() and http\Client::wait() for a more fine grained interface. + * + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\RuntimeException + * @return \http\Client self. + */ + public function send() {} + /** + * Set custom cookies. + * See http\Client::addCookies() and http\Client::getCookies(). + * + * @param array $cookies Set the custom cookies to this array. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Client self. + */ + public function setCookies(array $cookies = null) {} + /** + * Set client debugging callback. + * + * ***NOTE:*** + * This method has been added in v2.6.0, resp. v3.1.0. + * + * @param callable $callback as function(http\Client $c, http\Client\Request $r, int $type, string $data) + * The debug callback. For $type see http\Client::DEBUG_* constants. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Client self. + */ + public function setDebug(callable $callback) {} + /** + * Set client options. + * See http\Client\Curl. + * + * ***NOTE:*** + * Only options specified prior enqueueing a request are applied to the request. + * + * @param array $options The options to set. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Client self. + */ + public function setOptions(array $options = null) {} + /** + * Specifically set SSL options. + * See http\Client::setOptions() and http\Client\Curl\$ssl options. + * + * @param array $ssl_options Set SSL options to this array. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Client self. + */ + public function setSslOptions(array $ssl_options = null) {} + /** + * Wait for $timeout seconds for transfers to provide data. + * This is the completion call to http\Client::once(). + * + * @param float $timeout Seconds to wait for data on open sockets. + * @return bool success. + */ + public function wait(float $timeout = 0) {} } /** * A class representing a list of cookies with specific attributes. */ -class Cookie { - /** - * Do not decode cookie contents. - */ - const PARSE_RAW = 1; - /** - * The cookies' flags have the secure attribute set. - */ - const SECURE = 16; - /** - * The cookies' flags have the httpOnly attribute set. - */ - const HTTPONLY = 32; - /** - * Create a new cookie list. - * - * @param mixed $cookies The string or list of cookies to parse or set. - * @param int $flags Parse flags. See http\Cookie::PARSE_* constants. - * @param array $allowed_extras List of extra attribute names to recognize. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\RuntimeException - */ - function __construct($cookies = null, int $flags = 0, array $allowed_extras = null) {} - /** - * String cast handler. Alias of http\Cookie::toString(). - * - * @return string the cookie(s) represented as string. - */ - function __toString() {} - /** - * Add a cookie. - * See http\Cookie::setCookie() and http\Cookie::addCookies(). - * - * @param string $cookie_name The key of the cookie. - * @param string $cookie_value The value of the cookie. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function addCookie(string $cookie_name, string $cookie_value) {} - /** - * (Re)set the cookies. - * See http\Cookie::setCookies(). - * - * @param array $cookies Add cookies of this array of form ["name" => "value"]. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function addCookies(array $cookies) {} - /** - * Add an extra attribute to the cookie list. - * See http\Cookie::setExtra(). - * - * @param string $extra_name The key of the extra attribute. - * @param string $extra_value The value of the extra attribute. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function addExtra(string $extra_name, string $extra_value) {} - /** - * Add several extra attributes. - * See http\Cookie::addExtra(). - * - * @param array $extras A list of extra attributes of the form ["key" => "value"]. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function addExtras(array $extras) {} - /** - * Retrieve a specific cookie value. - * See http\Cookie::setCookie(). - * - * @param string $cookie_name The key of the cookie to look up. - * @return string|null string the cookie value. - * or NULL if $cookie_name could not be found. - */ - function getCookie(string $cookie_name) {} - /** - * Get the list of cookies. - * See http\Cookie::setCookies(). - * - * @return array the list of cookies of form ["name" => "value"]. - */ - function getCookies() {} - /** - * Retrieve the effective domain of the cookie list. - * See http\Cookie::setDomain(). - * - * @return string the effective domain. - */ - function getDomain() {} - /** - * Get the currently set expires attribute. - * See http\Cookie::setExpires(). - * - * ***NOTE:*** - * A return value of -1 means that the attribute is not set. - * - * @return int the currently set expires attribute as seconds since the epoch. - */ - function getExpires() {} - /** - * Retrieve an extra attribute. - * See http\Cookie::setExtra(). - * - * @param string $name The key of the extra attribute. - * @return string the value of the extra attribute. - */ - function getExtra(string $name) {} - /** - * Retrieve the list of extra attributes. - * See http\Cookie::setExtras(). - * - * @return array the list of extra attributes of the form ["key" => "value"]. - */ - function getExtras() {} - /** - * Get the currently set flags. - * See http\Cookie::SECURE and http\Cookie::HTTPONLY constants. - * - * @return int the currently set flags bitmask. - */ - function getFlags() {} - /** - * Get the currently set max-age attribute of the cookie list. - * See http\Cookie::setMaxAge(). - * - * ***NOTE:*** - * A return value of -1 means that the attribute is not set. - * - * @return int the currently set max-age. - */ - function getMaxAge() {} - /** - * Retrieve the path the cookie(s) of this cookie list are effective at. - * See http\Cookie::setPath(). - * - * @return string the effective path. - */ - function getPath() {} - /** - * (Re)set a cookie. - * See http\Cookie::addCookie() and http\Cookie::setCookies(). - * - * ***NOTE:*** - * The cookie will be deleted from the list if $cookie_value is NULL. - * - * @param string $cookie_name The key of the cookie. - * @param string $cookie_value The value of the cookie. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function setCookie(string $cookie_name, string $cookie_value) {} - /** - * (Re)set the cookies. - * See http\Cookie::addCookies(). - * - * @param array $cookies Set the cookies to this array. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function setCookies(array $cookies = null) {} - /** - * Set the effective domain of the cookie list. - * See http\Cookie::setPath(). - * - * @param string $value The domain the cookie(s) belong to. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function setDomain(string $value = null) {} - /** - * Set the traditional expires timestamp. - * See http\Cookie::setMaxAge() for a safer alternative. - * - * @param int $value The expires timestamp as seconds since the epoch. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function setExpires(int $value = -1) {} - /** - * (Re)set an extra attribute. - * See http\Cookie::addExtra(). - * - * ***NOTE:*** - * The attribute will be removed from the extras list if $extra_value is NULL. - * - * @param string $extra_name The key of the extra attribute. - * @param string $extra_value The value of the extra attribute. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function setExtra(string $extra_name, string $extra_value = null) {} - /** - * (Re)set the extra attributes. - * See http\Cookie::addExtras(). - * - * @param array $extras Set the extra attributes to this array. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function setExtras(array $extras = null) {} - /** - * Set the flags to specified $value. - * See http\Cookie::SECURE and http\Cookie::HTTPONLY constants. - * - * @param int $value The new flags bitmask. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function setFlags(int $value = 0) {} - /** - * Set the maximum age the cookie may have on the client side. - * This is a client clock departure safe alternative to the "expires" attribute. - * See http\Cookie::setExpires(). - * - * @param int $value The max-age in seconds. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function setMaxAge(int $value = -1) {} - /** - * Set the path the cookie(s) of this cookie list should be effective at. - * See http\Cookie::setDomain(). - * - * @param string $path The URL path the cookie(s) should take effect within. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Cookie self. - */ - function setPath(string $path = null) {} - /** - * Get the cookie list as array. - * - * @return array the cookie list as array. - */ - function toArray() {} - /** - * Retrieve the string representation of the cookie list. - * See http\Cookie::toArray(). - * - * @return string the cookie list as string. - */ - function toString() {} +class Cookie +{ + /** + * Do not decode cookie contents. + */ + public const PARSE_RAW = 1; + /** + * The cookies' flags have the secure attribute set. + */ + public const SECURE = 16; + /** + * The cookies' flags have the httpOnly attribute set. + */ + public const HTTPONLY = 32; + /** + * Create a new cookie list. + * + * @param mixed $cookies The string or list of cookies to parse or set. + * @param int $flags Parse flags. See http\Cookie::PARSE_* constants. + * @param array $allowed_extras List of extra attribute names to recognize. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\RuntimeException + */ + public function __construct($cookies = null, int $flags = 0, array $allowed_extras = null) {} + /** + * String cast handler. Alias of http\Cookie::toString(). + * + * @return string the cookie(s) represented as string. + */ + public function __toString() {} + /** + * Add a cookie. + * See http\Cookie::setCookie() and http\Cookie::addCookies(). + * + * @param string $cookie_name The key of the cookie. + * @param string $cookie_value The value of the cookie. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function addCookie(string $cookie_name, string $cookie_value) {} + /** + * (Re)set the cookies. + * See http\Cookie::setCookies(). + * + * @param array $cookies Add cookies of this array of form ["name" => "value"]. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function addCookies(array $cookies) {} + /** + * Add an extra attribute to the cookie list. + * See http\Cookie::setExtra(). + * + * @param string $extra_name The key of the extra attribute. + * @param string $extra_value The value of the extra attribute. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function addExtra(string $extra_name, string $extra_value) {} + /** + * Add several extra attributes. + * See http\Cookie::addExtra(). + * + * @param array $extras A list of extra attributes of the form ["key" => "value"]. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function addExtras(array $extras) {} + /** + * Retrieve a specific cookie value. + * See http\Cookie::setCookie(). + * + * @param string $cookie_name The key of the cookie to look up. + * @return string|null string the cookie value. + * or NULL if $cookie_name could not be found. + */ + public function getCookie(string $cookie_name) {} + /** + * Get the list of cookies. + * See http\Cookie::setCookies(). + * + * @return array the list of cookies of form ["name" => "value"]. + */ + public function getCookies() {} + /** + * Retrieve the effective domain of the cookie list. + * See http\Cookie::setDomain(). + * + * @return string the effective domain. + */ + public function getDomain() {} + /** + * Get the currently set expires attribute. + * See http\Cookie::setExpires(). + * + * ***NOTE:*** + * A return value of -1 means that the attribute is not set. + * + * @return int the currently set expires attribute as seconds since the epoch. + */ + public function getExpires() {} + /** + * Retrieve an extra attribute. + * See http\Cookie::setExtra(). + * + * @param string $name The key of the extra attribute. + * @return string the value of the extra attribute. + */ + public function getExtra(string $name) {} + /** + * Retrieve the list of extra attributes. + * See http\Cookie::setExtras(). + * + * @return array the list of extra attributes of the form ["key" => "value"]. + */ + public function getExtras() {} + /** + * Get the currently set flags. + * See http\Cookie::SECURE and http\Cookie::HTTPONLY constants. + * + * @return int the currently set flags bitmask. + */ + public function getFlags() {} + /** + * Get the currently set max-age attribute of the cookie list. + * See http\Cookie::setMaxAge(). + * + * ***NOTE:*** + * A return value of -1 means that the attribute is not set. + * + * @return int the currently set max-age. + */ + public function getMaxAge() {} + /** + * Retrieve the path the cookie(s) of this cookie list are effective at. + * See http\Cookie::setPath(). + * + * @return string the effective path. + */ + public function getPath() {} + /** + * (Re)set a cookie. + * See http\Cookie::addCookie() and http\Cookie::setCookies(). + * + * ***NOTE:*** + * The cookie will be deleted from the list if $cookie_value is NULL. + * + * @param string $cookie_name The key of the cookie. + * @param string $cookie_value The value of the cookie. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function setCookie(string $cookie_name, string $cookie_value) {} + /** + * (Re)set the cookies. + * See http\Cookie::addCookies(). + * + * @param array $cookies Set the cookies to this array. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function setCookies(array $cookies = null) {} + /** + * Set the effective domain of the cookie list. + * See http\Cookie::setPath(). + * + * @param string $value The domain the cookie(s) belong to. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function setDomain(string $value = null) {} + /** + * Set the traditional expires timestamp. + * See http\Cookie::setMaxAge() for a safer alternative. + * + * @param int $value The expires timestamp as seconds since the epoch. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function setExpires(int $value = -1) {} + /** + * (Re)set an extra attribute. + * See http\Cookie::addExtra(). + * + * ***NOTE:*** + * The attribute will be removed from the extras list if $extra_value is NULL. + * + * @param string $extra_name The key of the extra attribute. + * @param string $extra_value The value of the extra attribute. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function setExtra(string $extra_name, string $extra_value = null) {} + /** + * (Re)set the extra attributes. + * See http\Cookie::addExtras(). + * + * @param array $extras Set the extra attributes to this array. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function setExtras(array $extras = null) {} + /** + * Set the flags to specified $value. + * See http\Cookie::SECURE and http\Cookie::HTTPONLY constants. + * + * @param int $value The new flags bitmask. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function setFlags(int $value = 0) {} + /** + * Set the maximum age the cookie may have on the client side. + * This is a client clock departure safe alternative to the "expires" attribute. + * See http\Cookie::setExpires(). + * + * @param int $value The max-age in seconds. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function setMaxAge(int $value = -1) {} + /** + * Set the path the cookie(s) of this cookie list should be effective at. + * See http\Cookie::setDomain(). + * + * @param string $path The URL path the cookie(s) should take effect within. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Cookie self. + */ + public function setPath(string $path = null) {} + /** + * Get the cookie list as array. + * + * @return array the cookie list as array. + */ + public function toArray() {} + /** + * Retrieve the string representation of the cookie list. + * See http\Cookie::toArray(). + * + * @return string the cookie list as string. + */ + public function toString() {} } -/** - * - */ + namespace http\Encoding; + namespace http; + /** * The http\Env class provides static methods to manipulate and inspect the server's current request's HTTP environment. */ -class Env { - /** - * Retrieve the current HTTP request's body. - * - * @param string $body_class_name A user class extending http\Message\Body. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Message\Body instance representing the request body - */ - function getRequestBody(string $body_class_name = null) {} - /** - * Retrieve one or all headers of the current HTTP request. - * - * @param string $header_name The key of a header to retrieve. - * @return string|null|array NULL if $header_name was not found - * or string the compound header when $header_name was found - * or array of all headers if $header_name was not specified - */ - function getRequestHeader(string $header_name = null) {} - /** - * Get the HTTP response code to send. - * - * @return int the HTTP response code. - */ - function getResponseCode() {} - /** - * Get one or all HTTP response headers to be sent. - * - * @param string $header_name The name of the response header to retrieve. - * @return string|array|null string the compound value of the response header to send - * or NULL if the header was not found - * or array of all response headers, if $header_name was not specified - */ - function getResponseHeader(string $header_name = null) {} - /** - * Retrieve a list of all known HTTP response status. - * - * @return array mapping of the form \[ - * ... - * int $code => string $status - * ... - * \] - */ - function getResponseStatusForAllCodes() {} - /** - * Retrieve the string representation of specified HTTP response code. - * - * @param int $code The HTTP response code to get the string representation for. - * @return string the HTTP response status message (may be empty, if no message for this code was found) - */ - function getResponseStatusForCode(int $code) {} - /** - * Generic negotiator. For specific client negotiation see http\Env::negotiateContentType() and related methods. - * - * ***NOTE:*** - * The first element of $supported serves as a default if no operand matches. - * - * @param string $params HTTP header parameter's value to negotiate. - * @param array $supported List of supported negotiation operands. - * @param string $prim_typ_sep A "primary type separator", i.e. that would be a hyphen for content language negotiation (en-US, de-DE, etc.). - * @param array &$result Out parameter recording negotiation results. - * @return string|null NULL if negotiation fails. - * or string the closest match negotiated, or the default (first entry of $supported). - */ - function negotiate(string $params, array $supported, string $prim_typ_sep = null, array &$result = null) {} - /** - * Negotiate the client's preferred character set. - * - * ***NOTE:*** - * The first element of $supported character sets serves as a default if no character set matches. - * - * @param array $supported List of supported content character sets. - * @param array &$result Out parameter recording negotiation results. - * @return string|null NULL if negotiation fails. - * or string the negotiated character set. - */ - function negotiateCharset(array $supported, array &$result = null) {} - /** - * Negotiate the client's preferred MIME content type. - * - * ***NOTE:*** - * The first element of $supported content types serves as a default if no content-type matches. - * - * @param array $supported List of supported MIME content types. - * @param array &$result Out parameter recording negotiation results. - * @return string|null NULL if negotiation fails. - * or string the negotiated content type. - */ - function negotiateContentType(array $supported, array &$result = null) {} - /** - * Negotiate the client's preferred encoding. - * - * ***NOTE:*** - * The first element of $supported encodings serves as a default if no encoding matches. - * - * @param array $supported List of supported content encodings. - * @param array &$result Out parameter recording negotiation results. - * @return string|null NULL if negotiation fails. - * or string the negotiated encoding. - */ - function negotiateEncoding(array $supported, array &$result = null) {} - /** - * Negotiate the client's preferred language. - * - * ***NOTE:*** - * The first element of $supported languages serves as a default if no language matches. - * - * @param array $supported List of supported content languages. - * @param array &$result Out parameter recording negotiation results. - * @return string|null NULL if negotiation fails. - * or string the negotiated language. - */ - function negotiateLanguage(array $supported, array &$result = null) {} - /** - * Set the HTTP response code to send. - * - * @param int $code The HTTP response status code. - * @return bool Success. - */ - function setResponseCode(int $code) {} - /** - * Set a response header, either replacing a prior set header, or appending the new header value, depending on $replace. - * - * If no $header_value is specified, or $header_value is NULL, then a previously set header with the same key will be deleted from the list. - * - * If $response_code is not 0, the response status code is updated accordingly. - * - * @param string $header_name - * @param mixed $header_value - * @param int $response_code - * @param bool $replace - * @return bool Success. - */ - function setResponseHeader(string $header_name, $header_value = null, int $response_code = null, bool $replace = null) {} +class Env +{ + /** + * Retrieve the current HTTP request's body. + * + * @param string $body_class_name A user class extending http\Message\Body. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Message\Body instance representing the request body + */ + public function getRequestBody(string $body_class_name = null) {} + /** + * Retrieve one or all headers of the current HTTP request. + * + * @param string $header_name The key of a header to retrieve. + * @return string|null|array NULL if $header_name was not found + * or string the compound header when $header_name was found + * or array of all headers if $header_name was not specified + */ + public function getRequestHeader(string $header_name = null) {} + /** + * Get the HTTP response code to send. + * + * @return int the HTTP response code. + */ + public function getResponseCode() {} + /** + * Get one or all HTTP response headers to be sent. + * + * @param string $header_name The name of the response header to retrieve. + * @return string|array|null string the compound value of the response header to send + * or NULL if the header was not found + * or array of all response headers, if $header_name was not specified + */ + public function getResponseHeader(string $header_name = null) {} + /** + * Retrieve a list of all known HTTP response status. + * + * @return array mapping of the form \[ + * ... + * int $code => string $status + * ... + * \] + */ + public function getResponseStatusForAllCodes() {} + /** + * Retrieve the string representation of specified HTTP response code. + * + * @param int $code The HTTP response code to get the string representation for. + * @return string the HTTP response status message (may be empty, if no message for this code was found) + */ + public function getResponseStatusForCode(int $code) {} + /** + * Generic negotiator. For specific client negotiation see http\Env::negotiateContentType() and related methods. + * + * ***NOTE:*** + * The first element of $supported serves as a default if no operand matches. + * + * @param string $params HTTP header parameter's value to negotiate. + * @param array $supported List of supported negotiation operands. + * @param string $prim_typ_sep A "primary type separator", i.e. that would be a hyphen for content language negotiation (en-US, de-DE, etc.). + * @param array &$result Out parameter recording negotiation results. + * @return string|null NULL if negotiation fails. + * or string the closest match negotiated, or the default (first entry of $supported). + */ + public function negotiate(string $params, array $supported, string $prim_typ_sep = null, array &$result = null) {} + /** + * Negotiate the client's preferred character set. + * + * ***NOTE:*** + * The first element of $supported character sets serves as a default if no character set matches. + * + * @param array $supported List of supported content character sets. + * @param array &$result Out parameter recording negotiation results. + * @return string|null NULL if negotiation fails. + * or string the negotiated character set. + */ + public function negotiateCharset(array $supported, array &$result = null) {} + /** + * Negotiate the client's preferred MIME content type. + * + * ***NOTE:*** + * The first element of $supported content types serves as a default if no content-type matches. + * + * @param array $supported List of supported MIME content types. + * @param array &$result Out parameter recording negotiation results. + * @return string|null NULL if negotiation fails. + * or string the negotiated content type. + */ + public function negotiateContentType(array $supported, array &$result = null) {} + /** + * Negotiate the client's preferred encoding. + * + * ***NOTE:*** + * The first element of $supported encodings serves as a default if no encoding matches. + * + * @param array $supported List of supported content encodings. + * @param array &$result Out parameter recording negotiation results. + * @return string|null NULL if negotiation fails. + * or string the negotiated encoding. + */ + public function negotiateEncoding(array $supported, array &$result = null) {} + /** + * Negotiate the client's preferred language. + * + * ***NOTE:*** + * The first element of $supported languages serves as a default if no language matches. + * + * @param array $supported List of supported content languages. + * @param array &$result Out parameter recording negotiation results. + * @return string|null NULL if negotiation fails. + * or string the negotiated language. + */ + public function negotiateLanguage(array $supported, array &$result = null) {} + /** + * Set the HTTP response code to send. + * + * @param int $code The HTTP response status code. + * @return bool Success. + */ + public function setResponseCode(int $code) {} + /** + * Set a response header, either replacing a prior set header, or appending the new header value, depending on $replace. + * + * If no $header_value is specified, or $header_value is NULL, then a previously set header with the same key will be deleted from the list. + * + * If $response_code is not 0, the response status code is updated accordingly. + * + * @param string $header_name + * @param mixed $header_value + * @param int $response_code + * @param bool $replace + * @return bool Success. + */ + public function setResponseHeader(string $header_name, $header_value = null, int $response_code = null, bool $replace = null) {} } /** * The http extension's Exception interface. @@ -779,1123 +784,1129 @@ function setResponseHeader(string $header_name, $header_value = null, int $respo * * The individual exception classes extend their equally named native PHP extensions, if such exist, and implement this empty interface. For example the http\Exception\BadMethodCallException extends SPL's BadMethodCallException. */ -interface Exception { -} +interface Exception {} /** * The http\Header class provides methods to manipulate, match, negotiate and serialize HTTP headers. */ -class Header implements \Serializable { - /** - * None of the following match constraints applies. - */ - const MATCH_LOOSE = 0; - /** - * Perform case sensitive matching. - */ - const MATCH_CASE = 1; - /** - * Match only on word boundaries (according by CType alpha-numeric). - */ - const MATCH_WORD = 16; - /** - * Match the complete string. - */ - const MATCH_FULL = 32; - /** - * Case sensitively match the full string (same as MATCH_CASE|MATCH_FULL). - */ - const MATCH_STRICT = 33; - /** - * The name of the HTTP header. - * - * @var string - */ - public $name = null; - /** - * The value of the HTTP header. - * - * @var mixed - */ - public $value = null; - /** - * Create an http\Header instance for use of simple matching or negotiation. If the value of the header is an array it may be compounded to a single comma separated string. - * - * @param string $name The HTTP header name. - * @param mixed $value The value of the header. - * - * # Throws: - */ - function __construct(string $name = null, $value = null) {} - /** - * String cast handler. Alias of http\Header::serialize(). - * - * @return string the serialized form of the HTTP header (i.e. "Name: value"). - */ - function __toString() {} - /** - * Create a parameter list out of the HTTP header value. - * - * @param mixed $ps The parameter separator(s). - * @param mixed $as The argument separator(s). - * @param mixed $vs The value separator(s). - * @param int $flags The modus operandi. See http\Params constants. - * @return \http\Params instance - */ - function getParams($ps = null, $as = null, $vs = null, int $flags = null) {} - /** - * Match the HTTP header's value against provided $value according to $flags. - * - * @param string $value The comparison value. - * @param int $flags The modus operandi. See http\Header constants. - * @return bool whether $value matches the header value according to $flags. - */ - function match(string $value, int $flags = null) {} - /** - * Negotiate the header's value against a list of supported values in $supported. - * Negotiation operation is adopted according to the header name, i.e. if the - * header being negotiated is Accept, then a slash is used as primary type - * separator, and if the header is Accept-Language respectively, a hyphen is - * used instead. - * - * ***NOTE:*** - * The first element of $supported serves as a default if no operand matches. - * - * @param array $supported The list of supported values to negotiate. - * @param array &$result Out parameter recording the negotiation results. - * @return string|null NULL if negotiation fails. - * or string the closest match negotiated, or the default (first entry of $supported). - */ - function negotiate(array $supported, array &$result = null) {} - /** - * Parse HTTP headers. - * See also http\Header\Parser. - * - * @param string $header The complete string of headers. - * @param string $header_class A class extending http\Header. - * @return array|false array of parsed headers, where the elements are instances of $header_class if specified. - * or false if parsing fails. - */ - function parse(string $header, string $header_class = null) {} - /** - * Implements Serializable. - * - * @return string serialized representation of HTTP header (i.e. "Name: value") - */ - function serialize() {} - /** - * Convenience method. Alias of http\Header::serialize(). - * - * @return string the serialized form of the HTTP header (i.e. "Name: value"). - */ - function toString() {} - /** - * Implements Serializable. - * - * @param string $serialized The serialized HTTP header (i.e. "Name: value") - */ - function unserialize($serialized) {} +class Header implements \Serializable +{ + /** + * None of the following match constraints applies. + */ + public const MATCH_LOOSE = 0; + /** + * Perform case sensitive matching. + */ + public const MATCH_CASE = 1; + /** + * Match only on word boundaries (according by CType alpha-numeric). + */ + public const MATCH_WORD = 16; + /** + * Match the complete string. + */ + public const MATCH_FULL = 32; + /** + * Case sensitively match the full string (same as MATCH_CASE|MATCH_FULL). + */ + public const MATCH_STRICT = 33; + /** + * The name of the HTTP header. + * + * @var string + */ + public $name = null; + /** + * The value of the HTTP header. + * + * @var mixed + */ + public $value = null; + /** + * Create an http\Header instance for use of simple matching or negotiation. If the value of the header is an array it may be compounded to a single comma separated string. + * + * @param string $name The HTTP header name. + * @param mixed $value The value of the header. + * + * # Throws: + */ + public function __construct(string $name = null, $value = null) {} + /** + * String cast handler. Alias of http\Header::serialize(). + * + * @return string the serialized form of the HTTP header (i.e. "Name: value"). + */ + public function __toString() {} + /** + * Create a parameter list out of the HTTP header value. + * + * @param mixed $ps The parameter separator(s). + * @param mixed $as The argument separator(s). + * @param mixed $vs The value separator(s). + * @param int $flags The modus operandi. See http\Params constants. + * @return \http\Params instance + */ + public function getParams($ps = null, $as = null, $vs = null, int $flags = null) {} + /** + * Match the HTTP header's value against provided $value according to $flags. + * + * @param string $value The comparison value. + * @param int $flags The modus operandi. See http\Header constants. + * @return bool whether $value matches the header value according to $flags. + */ + public function match(string $value, int $flags = null) {} + /** + * Negotiate the header's value against a list of supported values in $supported. + * Negotiation operation is adopted according to the header name, i.e. if the + * header being negotiated is Accept, then a slash is used as primary type + * separator, and if the header is Accept-Language respectively, a hyphen is + * used instead. + * + * ***NOTE:*** + * The first element of $supported serves as a default if no operand matches. + * + * @param array $supported The list of supported values to negotiate. + * @param array &$result Out parameter recording the negotiation results. + * @return string|null NULL if negotiation fails. + * or string the closest match negotiated, or the default (first entry of $supported). + */ + public function negotiate(array $supported, array &$result = null) {} + /** + * Parse HTTP headers. + * See also http\Header\Parser. + * + * @param string $header The complete string of headers. + * @param string $header_class A class extending http\Header. + * @return array|false array of parsed headers, where the elements are instances of $header_class if specified. + * or false if parsing fails. + */ + public function parse(string $header, string $header_class = null) {} + /** + * Implements Serializable. + * + * @return string serialized representation of HTTP header (i.e. "Name: value") + */ + public function serialize() {} + /** + * Convenience method. Alias of http\Header::serialize(). + * + * @return string the serialized form of the HTTP header (i.e. "Name: value"). + */ + public function toString() {} + /** + * Implements Serializable. + * + * @param string $serialized The serialized HTTP header (i.e. "Name: value") + */ + public function unserialize($serialized) {} } /** * The message class builds the foundation for any request and response message. * * See http\Client\Request and http\Client\Response, as well as http\Env\Request and http\Env\Response. */ -class Message implements \Countable, \Serializable, \Iterator { - /** - * No specific type of message. - */ - const TYPE_NONE = 0; - /** - * A request message. - */ - const TYPE_REQUEST = 1; - /** - * A response message. - */ - const TYPE_RESPONSE = 2; - /** - * The message type. See http\Message::TYPE_* constants. - * - * @var int - */ - protected $type = \http\Message::TYPE_NONE; - /** - * The message's body. - * - * @var \http\Message\Body - */ - protected $body = null; - /** - * The request method if the message is of type request. - * - * @var string - */ - protected $requestMethod = ""; - /** - * The request url if the message is of type request. - * - * @var string - */ - protected $requestUrl = ""; - /** - * The response status phrase if the message is of type response. - * - * @var string - */ - protected $responseStatus = ""; - /** - * The response code if the message is of type response. - * - * @var int - */ - protected $responseCode = 0; - /** - * A custom HTTP protocol version. - * - * @var string - */ - protected $httpVersion = null; - /** - * Any message headers. - * - * @var array - */ - protected $headers = null; - /** - * Any parent message. - * - * @var \http\Message - */ - protected $parentMessage; - /** - * Create a new HTTP message. - * - * @param mixed $message Either a resource or a string, representing the HTTP message. - * @param bool $greedy Whether to read from a $message resource until EOF. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadMessageException - */ - function __construct($message = null, bool $greedy = true) {} - /** - * Retrieve the message serialized to a string. - * Alias of http\Message::toString(). - * - * @return string the single serialized HTTP message. - */ - function __toString() {} - /** - * Append the data of $body to the message's body. - * See http\Message::setBody() and http\Message\Body::append(). - * - * @param \http\Message\Body $body The message body to add. - * @return \http\Message self. - */ - function addBody(\http\Message\Body $body) {} - /** - * Add an header, appending to already existing headers. - * See http\Message::addHeaders() and http\Message::setHeader(). - * - * @param string $name The header name. - * @param mixed $value The header value. - * @return \http\Message self. - */ - function addHeader(string $name, $value) {} - /** - * Add headers, optionally appending values, if header keys already exist. - * See http\Message::addHeader() and http\Message::setHeaders(). - * - * @param array $headers The HTTP headers to add. - * @param bool $append Whether to append values for existing headers. - * @return \http\Message self. - */ - function addHeaders(array $headers, bool $append = false) {} - /** - * Implements Countable. - * - * @return int the count of messages in the chain above the current message. - */ - function count() {} - /** - * Implements iterator. - * See http\Message::valid() and http\Message::rewind(). - * - * @return \http\Message the current message in the iterated message chain. - */ - function current() {} - /** - * Detach a clone of this message from any message chain. - * - * @throws \http\Exception\InvalidArgumentException - * @return \http\Message clone. - */ - function detach() {} - /** - * Retrieve the message's body. - * See http\Message::setBody(). - * - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Message\Body the message body. - */ - function getBody() {} - /** - * Retrieve a single header, optionally hydrated into a http\Header extending class. - * - * @param string $header The header's name. - * @param string $into_class The name of a class extending http\Header. - * @return mixed|\http\Header mixed the header value if $into_class is NULL. - * or \http\Header descendant. - */ - function getHeader(string $header, string $into_class = null) {} - /** - * Retrieve all message headers. - * See http\Message::setHeaders() and http\Message::getHeader(). - * - * @return array the message's headers. - */ - function getHeaders() {} - /** - * Retrieve the HTTP protocol version of the message. - * See http\Message::setHttpVersion(). - * - * @return string the HTTP protocol version, e.g. "1.0"; defaults to "1.1". - */ - function getHttpVersion() {} - /** - * Retrieve the first line of a request or response message. - * See http\Message::setInfo and also: - * - * * http\Message::getType() - * * http\Message::getHttpVersion() - * * http\Message::getResponseCode() - * * http\Message::getResponseStatus() - * * http\Message::getRequestMethod() - * * http\Message::getRequestUrl() - * - * @return string|null string the HTTP message information. - * or NULL if the message is neither of type request nor response. - */ - function getInfo() {} - /** - * Retrieve any parent message. - * See http\Message::reverse(). - * - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadMethodCallException - * @return \http\Message the parent message. - */ - function getParentMessage() {} - /** - * Retrieve the request method of the message. - * See http\Message::setRequestMethod() and http\Message::getRequestUrl(). - * - * @return string|false string the request method. - * or false if the message was not of type request. - */ - function getRequestMethod() {} - /** - * Retrieve the request URL of the message. - * See http\Message::setRequestUrl(). - * - * @return string|false string the request URL; usually the path and the querystring. - * or false if the message was not of type request. - */ - function getRequestUrl() {} - /** - * Retrieve the response code of the message. - * See http\Message::setResponseCode() and http\Message::getResponseStatus(). - * - * @return int|false int the response status code. - * or false if the message is not of type response. - */ - function getResponseCode() {} - /** - * Retrieve the response status of the message. - * See http\Message::setResponseStatus() and http\Message::getResponseCode(). - * - * @return string|false string the response status phrase. - * or false if the message is not of type response. - */ - function getResponseStatus() {} - /** - * Retrieve the type of the message. - * See http\Message::setType() and http\Message::getInfo(). - * - * @return int the message type. See http\Message::TYPE_* constants. - */ - function getType() {} - /** - * Check whether this message is a multipart message based on it's content type. - * If the message is a multipart message and a reference $boundary is given, the boundary string of the multipart message will be stored in $boundary. - * - * See http\Message::splitMultipartBody(). - * - * @param string &$boundary A reference where the boundary string will be stored. - * @return bool whether this is a message with a multipart "Content-Type". - */ - function isMultipart(string &$boundary = null) {} - /** - * Implements Iterator. - * See http\Message::current() and http\Message::rewind(). - * - * @return int a non-sequential integer key. - */ - function key() {} - /** - * Implements Iterator. - * See http\Message::valid() and http\Message::rewind(). - */ - function next() {} - /** - * Prepend message(s) $message to this message, or the top most message of this message chain. - * - * ***NOTE:*** - * The message chains must not overlap. - * - * @param \http\Message $message The message (chain) to prepend as parent messages. - * @param bool $top Whether to prepend to the top-most parent message. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Message self. - */ - function prepend(\http\Message $message, bool $top = true) {} - /** - * Reverse the message chain and return the former top-most message. - * - * ***NOTE:*** - * Message chains are ordered in reverse-parsed order by default, i.e. the last parsed message is the message you'll receive from any call parsing HTTP messages. - * - * This call re-orders the messages of the chain and returns the message that was parsed first with any later parsed messages re-parentized. - * - * @throws \http\Exception\InvalidArgumentException - * @return \http\Message the other end of the message chain. - */ - function reverse() {} - /** - * Implements Iterator. - */ - function rewind() {} - /** - * Implements Serializable. - * - * @return string the serialized HTTP message. - */ - function serialize() {} - /** - * Set the message's body. - * See http\Message::getBody() and http\Message::addBody(). - * - * @param \http\Message\Body $body The new message body. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Message self. - */ - function setBody(\http\Message\Body $body) {} - /** - * Set a single header. - * See http\Message::getHeader() and http\Message::addHeader(). - * - * ***NOTE:*** - * Prior to v2.5.6/v3.1.0 headers with the same name were merged into a single - * header with values concatenated by comma. - * - * @param string $header The header's name. - * @param mixed $value The header's value. Removes the header if NULL. - * @return \http\Message self. - */ - function setHeader(string $header, $value = null) {} - /** - * Set the message headers. - * See http\Message::getHeaders() and http\Message::addHeaders(). - * - * ***NOTE:*** - * Prior to v2.5.6/v3.1.0 headers with the same name were merged into a single - * header with values concatenated by comma. - * - * @param array $headers The message's headers. - * @return \http\Message null. - */ - function setHeaders(array $headers = null) {} - /** - * Set the HTTP protocol version of the message. - * See http\Message::getHttpVersion(). - * - * @param string $http_version The protocol version, e.g. "1.1", optionally prefixed by "HTTP/". - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadHeaderException - * @return \http\Message self. - */ - function setHttpVersion(string $http_version) {} - /** - * Set the complete message info, i.e. type and response resp. request information, at once. - * See http\Message::getInfo(). - * - * @param string $http_info The message info (first line of an HTTP message). - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadHeaderException - * @return \http\Message self. - */ - function setInfo(string $http_info) {} - /** - * Set the request method of the message. - * See http\Message::getRequestMethod() and http\Message::setRequestUrl(). - * - * @param string $method The request method. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadMethodCallException - * @return \http\Message self. - */ - function setRequestMethod(string $method) {} - /** - * Set the request URL of the message. - * See http\Message::getRequestUrl() and http\Message::setRequestMethod(). - * - * @param string $url The request URL. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadMethodCallException - * @return \http\Message self. - */ - function setRequestUrl(string $url) {} - /** - * Set the response status code. - * See http\Message::getResponseCode() and http\Message::setResponseStatus(). - * - * ***NOTE:*** - * This method also resets the response status phrase to the default for that code. - * - * @param int $response_code The response code. - * @param bool $strict Whether to check that the response code is between 100 and 599 inclusive. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadMethodCallException - * @return \http\Message self. - */ - function setResponseCode(int $response_code, bool $strict = true) {} - /** - * Set the response status phrase. - * See http\Message::getResponseStatus() and http\Message::setResponseCode(). - * - * @param string $response_status The status phrase. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadMethodCallException - * @return \http\Message self. - */ - function setResponseStatus(string $response_status) {} - /** - * Set the message type and reset the message info. - * See http\Message::getType() and http\Message::setInfo(). - * - * @param int $type The desired message type. See the http\Message::TYPE_* constants. - * @return \http\Message self. - */ - function setType(int $type) {} - /** - * Splits the body of a multipart message. - * See http\Message::isMultipart() and http\Message\Body::addPart(). - * - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadMethodCallException - * @throws \http\Exception\BadMessageException - * @return \http\Message a message chain of all messages of the multipart body. - */ - function splitMultipartBody() {} - /** - * Stream the message through a callback. - * - * @param callable $callback The callback of the form function(http\Message $from, string $data). - * @return \http\Message self. - */ - function toCallback(callable $callback) {} - /** - * Stream the message into stream $stream, starting from $offset, streaming $maxlen at most. - * - * @param resource $stream The resource to write to. - * @return \http\Message self. - */ - function toStream($stream) {} - /** - * Retrieve the message serialized to a string. - * - * @param bool $include_parent Whether to include all parent messages. - * @return string the HTTP message chain serialized to a string. - */ - function toString(bool $include_parent = false) {} - /** - * Implements Serializable. - * - * @param string $data The serialized message. - */ - function unserialize($data) {} - /** - * Implements Iterator. - * See http\Message::current() and http\Message::rewind(). - * - * @return bool whether http\Message::current() would not return NULL. - */ - function valid() {} +class Message implements \Countable, \Serializable, \Iterator +{ + /** + * No specific type of message. + */ + public const TYPE_NONE = 0; + /** + * A request message. + */ + public const TYPE_REQUEST = 1; + /** + * A response message. + */ + public const TYPE_RESPONSE = 2; + /** + * The message type. See http\Message::TYPE_* constants. + * + * @var int + */ + protected $type = \http\Message::TYPE_NONE; + /** + * The message's body. + * + * @var \http\Message\Body + */ + protected $body = null; + /** + * The request method if the message is of type request. + * + * @var string + */ + protected $requestMethod = ""; + /** + * The request url if the message is of type request. + * + * @var string + */ + protected $requestUrl = ""; + /** + * The response status phrase if the message is of type response. + * + * @var string + */ + protected $responseStatus = ""; + /** + * The response code if the message is of type response. + * + * @var int + */ + protected $responseCode = 0; + /** + * A custom HTTP protocol version. + * + * @var string + */ + protected $httpVersion = null; + /** + * Any message headers. + * + * @var array + */ + protected $headers = null; + /** + * Any parent message. + * + * @var \http\Message + */ + protected $parentMessage; + /** + * Create a new HTTP message. + * + * @param mixed $message Either a resource or a string, representing the HTTP message. + * @param bool $greedy Whether to read from a $message resource until EOF. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadMessageException + */ + public function __construct($message = null, bool $greedy = true) {} + /** + * Retrieve the message serialized to a string. + * Alias of http\Message::toString(). + * + * @return string the single serialized HTTP message. + */ + public function __toString() {} + /** + * Append the data of $body to the message's body. + * See http\Message::setBody() and http\Message\Body::append(). + * + * @param \http\Message\Body $body The message body to add. + * @return \http\Message self. + */ + public function addBody(http\Message\Body $body) {} + /** + * Add an header, appending to already existing headers. + * See http\Message::addHeaders() and http\Message::setHeader(). + * + * @param string $name The header name. + * @param mixed $value The header value. + * @return \http\Message self. + */ + public function addHeader(string $name, $value) {} + /** + * Add headers, optionally appending values, if header keys already exist. + * See http\Message::addHeader() and http\Message::setHeaders(). + * + * @param array $headers The HTTP headers to add. + * @param bool $append Whether to append values for existing headers. + * @return \http\Message self. + */ + public function addHeaders(array $headers, bool $append = false) {} + /** + * Implements Countable. + * + * @return int the count of messages in the chain above the current message. + */ + public function count() {} + /** + * Implements iterator. + * See http\Message::valid() and http\Message::rewind(). + * + * @return \http\Message the current message in the iterated message chain. + */ + public function current() {} + /** + * Detach a clone of this message from any message chain. + * + * @throws \http\Exception\InvalidArgumentException + * @return \http\Message clone. + */ + public function detach() {} + /** + * Retrieve the message's body. + * See http\Message::setBody(). + * + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Message\Body the message body. + */ + public function getBody() {} + /** + * Retrieve a single header, optionally hydrated into a http\Header extending class. + * + * @param string $header The header's name. + * @param string $into_class The name of a class extending http\Header. + * @return mixed|\http\Header mixed the header value if $into_class is NULL. + * or \http\Header descendant. + */ + public function getHeader(string $header, string $into_class = null) {} + /** + * Retrieve all message headers. + * See http\Message::setHeaders() and http\Message::getHeader(). + * + * @return array the message's headers. + */ + public function getHeaders() {} + /** + * Retrieve the HTTP protocol version of the message. + * See http\Message::setHttpVersion(). + * + * @return string the HTTP protocol version, e.g. "1.0"; defaults to "1.1". + */ + public function getHttpVersion() {} + /** + * Retrieve the first line of a request or response message. + * See http\Message::setInfo and also: + * + * * http\Message::getType() + * * http\Message::getHttpVersion() + * * http\Message::getResponseCode() + * * http\Message::getResponseStatus() + * * http\Message::getRequestMethod() + * * http\Message::getRequestUrl() + * + * @return string|null string the HTTP message information. + * or NULL if the message is neither of type request nor response. + */ + public function getInfo() {} + /** + * Retrieve any parent message. + * See http\Message::reverse(). + * + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadMethodCallException + * @return \http\Message the parent message. + */ + public function getParentMessage() {} + /** + * Retrieve the request method of the message. + * See http\Message::setRequestMethod() and http\Message::getRequestUrl(). + * + * @return string|false string the request method. + * or false if the message was not of type request. + */ + public function getRequestMethod() {} + /** + * Retrieve the request URL of the message. + * See http\Message::setRequestUrl(). + * + * @return string|false string the request URL; usually the path and the querystring. + * or false if the message was not of type request. + */ + public function getRequestUrl() {} + /** + * Retrieve the response code of the message. + * See http\Message::setResponseCode() and http\Message::getResponseStatus(). + * + * @return int|false int the response status code. + * or false if the message is not of type response. + */ + public function getResponseCode() {} + /** + * Retrieve the response status of the message. + * See http\Message::setResponseStatus() and http\Message::getResponseCode(). + * + * @return string|false string the response status phrase. + * or false if the message is not of type response. + */ + public function getResponseStatus() {} + /** + * Retrieve the type of the message. + * See http\Message::setType() and http\Message::getInfo(). + * + * @return int the message type. See http\Message::TYPE_* constants. + */ + public function getType() {} + /** + * Check whether this message is a multipart message based on it's content type. + * If the message is a multipart message and a reference $boundary is given, the boundary string of the multipart message will be stored in $boundary. + * + * See http\Message::splitMultipartBody(). + * + * @param string &$boundary A reference where the boundary string will be stored. + * @return bool whether this is a message with a multipart "Content-Type". + */ + public function isMultipart(string &$boundary = null) {} + /** + * Implements Iterator. + * See http\Message::current() and http\Message::rewind(). + * + * @return int a non-sequential integer key. + */ + public function key() {} + /** + * Implements Iterator. + * See http\Message::valid() and http\Message::rewind(). + */ + public function next() {} + /** + * Prepend message(s) $message to this message, or the top most message of this message chain. + * + * ***NOTE:*** + * The message chains must not overlap. + * + * @param \http\Message $message The message (chain) to prepend as parent messages. + * @param bool $top Whether to prepend to the top-most parent message. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Message self. + */ + public function prepend(http\Message $message, bool $top = true) {} + /** + * Reverse the message chain and return the former top-most message. + * + * ***NOTE:*** + * Message chains are ordered in reverse-parsed order by default, i.e. the last parsed message is the message you'll receive from any call parsing HTTP messages. + * + * This call re-orders the messages of the chain and returns the message that was parsed first with any later parsed messages re-parentized. + * + * @throws \http\Exception\InvalidArgumentException + * @return \http\Message the other end of the message chain. + */ + public function reverse() {} + /** + * Implements Iterator. + */ + public function rewind() {} + /** + * Implements Serializable. + * + * @return string the serialized HTTP message. + */ + public function serialize() {} + /** + * Set the message's body. + * See http\Message::getBody() and http\Message::addBody(). + * + * @param \http\Message\Body $body The new message body. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Message self. + */ + public function setBody(http\Message\Body $body) {} + /** + * Set a single header. + * See http\Message::getHeader() and http\Message::addHeader(). + * + * ***NOTE:*** + * Prior to v2.5.6/v3.1.0 headers with the same name were merged into a single + * header with values concatenated by comma. + * + * @param string $header The header's name. + * @param mixed $value The header's value. Removes the header if NULL. + * @return \http\Message self. + */ + public function setHeader(string $header, $value = null) {} + /** + * Set the message headers. + * See http\Message::getHeaders() and http\Message::addHeaders(). + * + * ***NOTE:*** + * Prior to v2.5.6/v3.1.0 headers with the same name were merged into a single + * header with values concatenated by comma. + * + * @param array $headers The message's headers. + * @return \http\Message null. + */ + public function setHeaders(array $headers = null) {} + /** + * Set the HTTP protocol version of the message. + * See http\Message::getHttpVersion(). + * + * @param string $http_version The protocol version, e.g. "1.1", optionally prefixed by "HTTP/". + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadHeaderException + * @return \http\Message self. + */ + public function setHttpVersion(string $http_version) {} + /** + * Set the complete message info, i.e. type and response resp. request information, at once. + * See http\Message::getInfo(). + * + * @param string $http_info The message info (first line of an HTTP message). + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadHeaderException + * @return \http\Message self. + */ + public function setInfo(string $http_info) {} + /** + * Set the request method of the message. + * See http\Message::getRequestMethod() and http\Message::setRequestUrl(). + * + * @param string $method The request method. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadMethodCallException + * @return \http\Message self. + */ + public function setRequestMethod(string $method) {} + /** + * Set the request URL of the message. + * See http\Message::getRequestUrl() and http\Message::setRequestMethod(). + * + * @param string $url The request URL. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadMethodCallException + * @return \http\Message self. + */ + public function setRequestUrl(string $url) {} + /** + * Set the response status code. + * See http\Message::getResponseCode() and http\Message::setResponseStatus(). + * + * ***NOTE:*** + * This method also resets the response status phrase to the default for that code. + * + * @param int $response_code The response code. + * @param bool $strict Whether to check that the response code is between 100 and 599 inclusive. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadMethodCallException + * @return \http\Message self. + */ + public function setResponseCode(int $response_code, bool $strict = true) {} + /** + * Set the response status phrase. + * See http\Message::getResponseStatus() and http\Message::setResponseCode(). + * + * @param string $response_status The status phrase. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadMethodCallException + * @return \http\Message self. + */ + public function setResponseStatus(string $response_status) {} + /** + * Set the message type and reset the message info. + * See http\Message::getType() and http\Message::setInfo(). + * + * @param int $type The desired message type. See the http\Message::TYPE_* constants. + * @return \http\Message self. + */ + public function setType(int $type) {} + /** + * Splits the body of a multipart message. + * See http\Message::isMultipart() and http\Message\Body::addPart(). + * + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadMethodCallException + * @throws \http\Exception\BadMessageException + * @return \http\Message a message chain of all messages of the multipart body. + */ + public function splitMultipartBody() {} + /** + * Stream the message through a callback. + * + * @param callable $callback The callback of the form function(http\Message $from, string $data). + * @return \http\Message self. + */ + public function toCallback(callable $callback) {} + /** + * Stream the message into stream $stream, starting from $offset, streaming $maxlen at most. + * + * @param resource $stream The resource to write to. + * @return \http\Message self. + */ + public function toStream($stream) {} + /** + * Retrieve the message serialized to a string. + * + * @param bool $include_parent Whether to include all parent messages. + * @return string the HTTP message chain serialized to a string. + */ + public function toString(bool $include_parent = false) {} + /** + * Implements Serializable. + * + * @param string $data The serialized message. + */ + public function unserialize($data) {} + /** + * Implements Iterator. + * See http\Message::current() and http\Message::rewind(). + * + * @return bool whether http\Message::current() would not return NULL. + */ + public function valid() {} } /** * Parse, interpret and compose HTTP (header) parameters. */ -class Params implements \ArrayAccess { - /** - * The default parameter separator (","). - */ - const DEF_PARAM_SEP = ','; - /** - * The default argument separator (";"). - */ - const DEF_ARG_SEP = ';'; - /** - * The default value separator ("="). - */ - const DEF_VAL_SEP = '='; - /** - * Empty param separator to parse cookies. - */ - const COOKIE_PARAM_SEP = ''; - /** - * Do not interpret the parsed parameters. - */ - const PARSE_RAW = 0; - /** - * Interpret input as default formatted parameters. - */ - const PARSE_DEFAULT = 17; - /** - * Parse backslash escaped (quoted) strings. - */ - const PARSE_ESCAPED = 1; - /** - * Urldecode single units of parameters, arguments and values. - */ - const PARSE_URLENCODED = 4; - /** - * Parse sub dimensions indicated by square brackets. - */ - const PARSE_DIMENSION = 8; - /** - * Parse URL querystring (same as http\Params::PARSE_URLENCODED|http\Params::PARSE_DIMENSION). - */ - const PARSE_QUERY = 12; - /** - * Parse [RFC5987](http://tools.ietf.org/html/rfc5987) style encoded character set and language information embedded in HTTP header params. - */ - const PARSE_RFC5987 = 16; - /** - * Parse [RFC5988](http://tools.ietf.org/html/rfc5988) (Web Linking) tags of Link headers. - */ - const PARSE_RFC5988 = 32; - /** - * The (parsed) parameters. - * - * @var array - */ - public $params = null; - /** - * The parameter separator(s). - * - * @var array - */ - public $param_sep = \http\Params::DEF_PARAM_SEP; - /** - * The argument separator(s). - * - * @var array - */ - public $arg_sep = \http\Params::DEF_ARG_SEP; - /** - * The value separator(s). - * - * @var array - */ - public $val_sep = \http\Params::DEF_VAL_SEP; - /** - * The modus operandi of the parser. See http\Params::PARSE_* constants. - * - * @var int - */ - public $flags = \http\Params::PARSE_DEFAULT; - /** - * Instantiate a new HTTP (header) parameter set. - * - * @param mixed $params Pre-parsed parameters or a string to be parsed. - * @param mixed $ps The parameter separator(s). - * @param mixed $as The argument separator(s). - * @param mixed $vs The value separator(s). - * @param int $flags The modus operandi. See http\Params::PARSE_* constants. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\RuntimeException - */ - function __construct($params = null, $ps = null, $as = null, $vs = null, int $flags = null) {} - /** - * String cast handler. Alias of http\Params::toString(). - * Returns a stringified version of the parameters. - * - * @return string version of the parameters. - */ - function __toString() {} - /** - * Implements ArrayAccess. - * - * @param string $name The offset to look after. - * @return bool Existence. - */ - function offsetExists($name) {} - /** - * Implements ArrayAccess. - * - * @param string $name The offset to retrieve. - * @return mixed contents at offset. - */ - function offsetGet($name) {} - /** - * Implements ArrayAccess. - * - * @param string $name The offset to modify. - * @param mixed $value The value to set. - */ - function offsetSet($name, $value) {} - /** - * Implements ArrayAccess. - * - * @param string $name The offset to delete. - */ - function offsetUnset($name) {} - /** - * Convenience method that simply returns http\Params::$params. - * - * @return array of parameters. - */ - function toArray() {} - /** - * Returns a stringified version of the parameters. - * - * @return string version of the parameters. - */ - function toString() {} +class Params implements \ArrayAccess +{ + /** + * The default parameter separator (","). + */ + public const DEF_PARAM_SEP = ','; + /** + * The default argument separator (";"). + */ + public const DEF_ARG_SEP = ';'; + /** + * The default value separator ("="). + */ + public const DEF_VAL_SEP = '='; + /** + * Empty param separator to parse cookies. + */ + public const COOKIE_PARAM_SEP = ''; + /** + * Do not interpret the parsed parameters. + */ + public const PARSE_RAW = 0; + /** + * Interpret input as default formatted parameters. + */ + public const PARSE_DEFAULT = 17; + /** + * Parse backslash escaped (quoted) strings. + */ + public const PARSE_ESCAPED = 1; + /** + * Urldecode single units of parameters, arguments and values. + */ + public const PARSE_URLENCODED = 4; + /** + * Parse sub dimensions indicated by square brackets. + */ + public const PARSE_DIMENSION = 8; + /** + * Parse URL querystring (same as http\Params::PARSE_URLENCODED|http\Params::PARSE_DIMENSION). + */ + public const PARSE_QUERY = 12; + /** + * Parse [RFC5987](http://tools.ietf.org/html/rfc5987) style encoded character set and language information embedded in HTTP header params. + */ + public const PARSE_RFC5987 = 16; + /** + * Parse [RFC5988](http://tools.ietf.org/html/rfc5988) (Web Linking) tags of Link headers. + */ + public const PARSE_RFC5988 = 32; + /** + * The (parsed) parameters. + * + * @var array + */ + public $params = null; + /** + * The parameter separator(s). + * + * @var array + */ + public $param_sep = \http\Params::DEF_PARAM_SEP; + /** + * The argument separator(s). + * + * @var array + */ + public $arg_sep = \http\Params::DEF_ARG_SEP; + /** + * The value separator(s). + * + * @var array + */ + public $val_sep = \http\Params::DEF_VAL_SEP; + /** + * The modus operandi of the parser. See http\Params::PARSE_* constants. + * + * @var int + */ + public $flags = \http\Params::PARSE_DEFAULT; + /** + * Instantiate a new HTTP (header) parameter set. + * + * @param mixed $params Pre-parsed parameters or a string to be parsed. + * @param mixed $ps The parameter separator(s). + * @param mixed $as The argument separator(s). + * @param mixed $vs The value separator(s). + * @param int $flags The modus operandi. See http\Params::PARSE_* constants. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\RuntimeException + */ + public function __construct($params = null, $ps = null, $as = null, $vs = null, int $flags = null) {} + /** + * String cast handler. Alias of http\Params::toString(). + * Returns a stringified version of the parameters. + * + * @return string version of the parameters. + */ + public function __toString() {} + /** + * Implements ArrayAccess. + * + * @param string $name The offset to look after. + * @return bool Existence. + */ + public function offsetExists($name) {} + /** + * Implements ArrayAccess. + * + * @param string $name The offset to retrieve. + * @return mixed contents at offset. + */ + public function offsetGet($name) {} + /** + * Implements ArrayAccess. + * + * @param string $name The offset to modify. + * @param mixed $value The value to set. + */ + public function offsetSet($name, $value) {} + /** + * Implements ArrayAccess. + * + * @param string $name The offset to delete. + */ + public function offsetUnset($name) {} + /** + * Convenience method that simply returns http\Params::$params. + * + * @return array of parameters. + */ + public function toArray() {} + /** + * Returns a stringified version of the parameters. + * + * @return string version of the parameters. + */ + public function toString() {} } /** * The http\QueryString class provides versatile facilities to retrieve, use and manipulate query strings and form data. */ -class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate { - /** - * Cast requested value to bool. - */ - const TYPE_BOOL = 16; - /** - * Cast requested value to int. - */ - const TYPE_INT = 4; - /** - * Cast requested value to float. - */ - const TYPE_FLOAT = 5; - /** - * Cast requested value to string. - */ - const TYPE_STRING = 6; - /** - * Cast requested value to an array. - */ - const TYPE_ARRAY = 7; - /** - * Cast requested value to an object. - */ - const TYPE_OBJECT = 8; - /** - * The global instance. See http\QueryString::getGlobalInstance(). - * - * @var \http\QueryString - */ - private $instance = null; - /** - * The data. - * - * @var array - */ - private $queryArray = null; - /** - * Create an independent querystring instance. - * - * @param mixed $params The query parameters to use or parse. - * @throws \http\Exception\BadQueryStringException - */ - function __construct($params = null) {} - /** - * Get the string representation of the querystring (x-www-form-urlencoded). - * - * @return string the x-www-form-urlencoded querystring. - */ - function __toString() {} - /** - * Retrieve an querystring value. - * - * See http\QueryString::TYPE_* constants. - * - * @param string $name The key to retrieve the value for. - * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants. - * @param mixed $defval The default value to return if the key $name does not exist. - * @param bool $delete Whether to delete the entry from the querystring after retrieval. - * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments. - * or string the whole querystring if $name is of zero length. - * or mixed $defval if the key $name does not exist. - * or mixed the querystring value cast to $type if $type was specified and the key $name exists. - * or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING. - */ - function get(string $name = null, $type = null, $defval = null, bool $delete = false) {} - /** - * Retrieve an array value with at offset $name. - * - * @param string $name The key to look up. - * @param mixed $defval The default value to return if the offset $name does not exist. - * @param bool $delete Whether to remove the key and value from the querystring after retrieval. - * @return array|mixed array the (casted) value. - * or mixed $defval if offset $name does not exist. - */ - function getArray(string $name, $defval = null, bool $delete = false) {} - /** - * Retrieve a boolean value at offset $name. - * - * @param string $name The key to look up. - * @param mixed $defval The default value to return if the offset $name does not exist. - * @param bool $delete Whether to remove the key and value from the querystring after retrieval. - * @return bool|mixed bool the (casted) value. - * or mixed $defval if offset $name does not exist. - */ - function getBool(string $name, $defval = null, bool $delete = false) {} - /** - * Retrieve a float value at offset $name. - * - * @param string $name The key to look up. - * @param mixed $defval The default value to return if the offset $name does not exist. - * @param bool $delete Whether to remove the key and value from the querystring after retrieval. - * @return float|mixed float the (casted) value. - * or mixed $defval if offset $name does not exist. - */ - function getFloat(string $name, $defval = null, bool $delete = false) {} - /** - * Retrieve the global querystring instance referencing $_GET. - * - * @throws \http\Exception\UnexpectedValueException - * @return \http\QueryString the http\QueryString::$instance - */ - function getGlobalInstance() {} - /** - * Retrieve a int value at offset $name. - * - * @param string $name The key to look up. - * @param mixed $defval The default value to return if the offset $name does not exist. - * @param bool $delete Whether to remove the key and value from the querystring after retrieval. - * @return int|mixed int the (casted) value. - * or mixed $defval if offset $name does not exist. - */ - function getInt(string $name, $defval = null, bool $delete = false) {} - /** - * Implements IteratorAggregate. - * - * @throws \http\Exception\InvalidArgumentException - * @throws \InvalidArgumentException - */ - function getIterator() {} - /** - * Retrieve a object value with at offset $name. - * - * @param string $name The key to look up. - * @param mixed $defval The default value to return if the offset $name does not exist. - * @param bool $delete Whether to remove the key and value from the querystring after retrieval. - * @return object|mixed object the (casted) value. - * or mixed $defval if offset $name does not exist. - */ - function getObject(string $name, $defval = null, bool $delete = false) {} - /** - * Retrieve a string value with at offset $name. - * - * @param string $name The key to look up. - * @param mixed $defval The default value to return if the offset $name does not exist. - * @param bool $delete Whether to remove the key and value from the querystring after retrieval. - * @return string|mixed string the (casted) value. - * or mixed $defval if offset $name does not exist. - */ - function getString(string $name, $defval = null, bool $delete = false) {} - /** - * Set additional $params to a clone of this instance. - * See http\QueryString::set(). - * - * ***NOTE:*** - * This method returns a clone (copy) of this instance. - * - * @param mixed $params Additional params as object, array or string to parse. - * @throws \http\Exception\BadQueryStringException - * @return \http\QueryString clone. - */ - function mod($params = null) {} - /** - * Implements ArrayAccess. - * - * @param string $name The offset to look up. - * @return bool whether the key $name isset. - */ - function offsetExists($name) {} - /** - * Implements ArrayAccess. - * - * @param mixed $offset The offset to look up. - * @return mixed|null mixed the value locate at offset $name. - * or NULL if key $name could not be found. - */ - function offsetGet($offset) {} - /** - * Implements ArrayAccess. - * - * @param string $name The key to set the value for. - * @param mixed $data The data to place at offset $name. - */ - function offsetSet($name, $data) {} - /** - * Implements ArrayAccess. - * - * @param string $name The offset to look up. - */ - function offsetUnset($name) {} - /** - * Implements Serializable. - * See http\QueryString::toString(). - * - * @return string the x-www-form-urlencoded querystring. - */ - function serialize() {} - /** - * Set additional querystring entries. - * - * @param mixed $params Additional params as object, array or string to parse. - * @return \http\QueryString self. - */ - function set($params) {} - /** - * Simply returns http\QueryString::$queryArray. - * - * @return array the $queryArray property. - */ - function toArray() {} - /** - * Get the string representation of the querystring (x-www-form-urlencoded). - * - * @return string the x-www-form-urlencoded querystring. - */ - function toString() {} - /** - * Implements Serializable. - * - * @param string $serialized The x-www-form-urlencoded querystring. - * @throws \http\Exception - */ - function unserialize($serialized) {} - /** - * Translate character encodings of the querystring with ext/iconv. - * - * ***NOTE:*** - * This method is only available when ext/iconv support was enabled at build time. - * - * @param string $from_enc The encoding to convert from. - * @param string $to_enc The encoding to convert to. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadConversionException - * @return \http\QueryString self. - */ - function xlate(string $from_enc, string $to_enc) {} +class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate +{ + /** + * Cast requested value to bool. + */ + public const TYPE_BOOL = 16; + /** + * Cast requested value to int. + */ + public const TYPE_INT = 4; + /** + * Cast requested value to float. + */ + public const TYPE_FLOAT = 5; + /** + * Cast requested value to string. + */ + public const TYPE_STRING = 6; + /** + * Cast requested value to an array. + */ + public const TYPE_ARRAY = 7; + /** + * Cast requested value to an object. + */ + public const TYPE_OBJECT = 8; + /** + * The global instance. See http\QueryString::getGlobalInstance(). + * + * @var \http\QueryString + */ + private $instance = null; + /** + * The data. + * + * @var array + */ + private $queryArray = null; + /** + * Create an independent querystring instance. + * + * @param mixed $params The query parameters to use or parse. + * @throws \http\Exception\BadQueryStringException + */ + public function __construct($params = null) {} + /** + * Get the string representation of the querystring (x-www-form-urlencoded). + * + * @return string the x-www-form-urlencoded querystring. + */ + public function __toString() {} + /** + * Retrieve an querystring value. + * + * See http\QueryString::TYPE_* constants. + * + * @param string $name The key to retrieve the value for. + * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants. + * @param mixed $defval The default value to return if the key $name does not exist. + * @param bool $delete Whether to delete the entry from the querystring after retrieval. + * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments. + * or string the whole querystring if $name is of zero length. + * or mixed $defval if the key $name does not exist. + * or mixed the querystring value cast to $type if $type was specified and the key $name exists. + * or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING. + */ + public function get(string $name = null, $type = null, $defval = null, bool $delete = false) {} + /** + * Retrieve an array value with at offset $name. + * + * @param string $name The key to look up. + * @param mixed $defval The default value to return if the offset $name does not exist. + * @param bool $delete Whether to remove the key and value from the querystring after retrieval. + * @return array|mixed array the (casted) value. + * or mixed $defval if offset $name does not exist. + */ + public function getArray(string $name, $defval = null, bool $delete = false) {} + /** + * Retrieve a boolean value at offset $name. + * + * @param string $name The key to look up. + * @param mixed $defval The default value to return if the offset $name does not exist. + * @param bool $delete Whether to remove the key and value from the querystring after retrieval. + * @return bool|mixed bool the (casted) value. + * or mixed $defval if offset $name does not exist. + */ + public function getBool(string $name, $defval = null, bool $delete = false) {} + /** + * Retrieve a float value at offset $name. + * + * @param string $name The key to look up. + * @param mixed $defval The default value to return if the offset $name does not exist. + * @param bool $delete Whether to remove the key and value from the querystring after retrieval. + * @return float|mixed float the (casted) value. + * or mixed $defval if offset $name does not exist. + */ + public function getFloat(string $name, $defval = null, bool $delete = false) {} + /** + * Retrieve the global querystring instance referencing $_GET. + * + * @throws \http\Exception\UnexpectedValueException + * @return \http\QueryString the http\QueryString::$instance + */ + public function getGlobalInstance() {} + /** + * Retrieve a int value at offset $name. + * + * @param string $name The key to look up. + * @param mixed $defval The default value to return if the offset $name does not exist. + * @param bool $delete Whether to remove the key and value from the querystring after retrieval. + * @return int|mixed int the (casted) value. + * or mixed $defval if offset $name does not exist. + */ + public function getInt(string $name, $defval = null, bool $delete = false) {} + /** + * Implements IteratorAggregate. + * + * @throws \http\Exception\InvalidArgumentException + * @throws \InvalidArgumentException + */ + public function getIterator() {} + /** + * Retrieve a object value with at offset $name. + * + * @param string $name The key to look up. + * @param mixed $defval The default value to return if the offset $name does not exist. + * @param bool $delete Whether to remove the key and value from the querystring after retrieval. + * @return object|mixed object the (casted) value. + * or mixed $defval if offset $name does not exist. + */ + public function getObject(string $name, $defval = null, bool $delete = false) {} + /** + * Retrieve a string value with at offset $name. + * + * @param string $name The key to look up. + * @param mixed $defval The default value to return if the offset $name does not exist. + * @param bool $delete Whether to remove the key and value from the querystring after retrieval. + * @return string|mixed string the (casted) value. + * or mixed $defval if offset $name does not exist. + */ + public function getString(string $name, $defval = null, bool $delete = false) {} + /** + * Set additional $params to a clone of this instance. + * See http\QueryString::set(). + * + * ***NOTE:*** + * This method returns a clone (copy) of this instance. + * + * @param mixed $params Additional params as object, array or string to parse. + * @throws \http\Exception\BadQueryStringException + * @return \http\QueryString clone. + */ + public function mod($params = null) {} + /** + * Implements ArrayAccess. + * + * @param string $name The offset to look up. + * @return bool whether the key $name isset. + */ + public function offsetExists($name) {} + /** + * Implements ArrayAccess. + * + * @param mixed $offset The offset to look up. + * @return mixed|null mixed the value locate at offset $name. + * or NULL if key $name could not be found. + */ + public function offsetGet($offset) {} + /** + * Implements ArrayAccess. + * + * @param string $name The key to set the value for. + * @param mixed $data The data to place at offset $name. + */ + public function offsetSet($name, $data) {} + /** + * Implements ArrayAccess. + * + * @param string $name The offset to look up. + */ + public function offsetUnset($name) {} + /** + * Implements Serializable. + * See http\QueryString::toString(). + * + * @return string the x-www-form-urlencoded querystring. + */ + public function serialize() {} + /** + * Set additional querystring entries. + * + * @param mixed $params Additional params as object, array or string to parse. + * @return \http\QueryString self. + */ + public function set($params) {} + /** + * Simply returns http\QueryString::$queryArray. + * + * @return array the $queryArray property. + */ + public function toArray() {} + /** + * Get the string representation of the querystring (x-www-form-urlencoded). + * + * @return string the x-www-form-urlencoded querystring. + */ + public function toString() {} + /** + * Implements Serializable. + * + * @param string $serialized The x-www-form-urlencoded querystring. + * @throws \http\Exception + */ + public function unserialize($serialized) {} + /** + * Translate character encodings of the querystring with ext/iconv. + * + * ***NOTE:*** + * This method is only available when ext/iconv support was enabled at build time. + * + * @param string $from_enc The encoding to convert from. + * @param string $to_enc The encoding to convert to. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadConversionException + * @return \http\QueryString self. + */ + public function xlate(string $from_enc, string $to_enc) {} } /** * The http\Url class provides versatile means to parse, construct and manipulate URLs. */ -class Url { - /** - * Replace parts of the old URL with parts of the new. - */ - const REPLACE = 0; - /** - * Whether a relative path should be joined into the old path. - */ - const JOIN_PATH = 1; - /** - * Whether the querystrings should be joined. - */ - const JOIN_QUERY = 2; - /** - * Strip the user information from the URL. - */ - const STRIP_USER = 4; - /** - * Strip the password from the URL. - */ - const STRIP_PASS = 8; - /** - * Strip user and password information from URL (same as STRIP_USER|STRIP_PASS). - */ - const STRIP_AUTH = 12; - /** - * Do not include the port. - */ - const STRIP_PORT = 32; - /** - * Do not include the URL path. - */ - const STRIP_PATH = 64; - /** - * Do not include the URL querystring. - */ - const STRIP_QUERY = 128; - /** - * Strip the fragment (hash) from the URL. - */ - const STRIP_FRAGMENT = 256; - /** - * Strip everything except scheme and host information. - */ - const STRIP_ALL = 492; - /** - * Import initial URL parts from the SAPI environment. - */ - const FROM_ENV = 4096; - /** - * Whether to sanitize the URL path (consolidate double slashes, directory jumps etc.) - */ - const SANITIZE_PATH = 8192; - /** - * Parse UTF-8 encoded multibyte sequences. - */ - const PARSE_MBUTF8 = 131072; - /** - * Parse locale encoded multibyte sequences (on systems with wide character support). - */ - const PARSE_MBLOC = 65536; - /** - * Parse and convert multibyte hostnames according to IDNA (with IDNA support). - */ - const PARSE_TOIDN = 1048576; - /** - * Explicitly request IDNA2003 implementation if available (libidn, idnkit or ICU). - */ - const PARSE_TOIDN_2003 = 9437184; - /** - * Explicitly request IDNA2008 implementation if available (libidn2, idnkit2 or ICU). - */ - const PARSE_TOIDN_2008 = 5242880; - /** - * Percent encode multibyte sequences in the userinfo, path, query and fragment parts of the URL. - */ - const PARSE_TOPCT = 2097152; - /** - * Continue parsing when encountering errors. - */ - const IGNORE_ERRORS = 268435456; - /** - * Suppress errors/exceptions. - */ - const SILENT_ERRORS = 536870912; - /** - * Standard flags used by default internally for e.g. http\Message::setRequestUrl(). - * Enables joining path and query, sanitizing path, multibyte/unicode, international domain names and transient percent encoding. - */ - const STDFLAGS = 3350531; - /** - * The URL's scheme. - * - * @var string - */ - public $scheme = null; - /** - * Authenticating user. - * - * @var string - */ - public $user = null; - /** - * Authentication password. - * - * @var string - */ - public $pass = null; - /** - * Hostname/domain. - * - * @var string - */ - public $host = null; - /** - * Port. - * - * @var string - */ - public $port = null; - /** - * URL path. - * - * @var string - */ - public $path = null; - /** - * URL querystring. - * - * @var string - */ - public $query = null; - /** - * URL fragment (hash). - * - * @var string - */ - public $fragment = null; - /** - * Create an instance of an http\Url. - * - * ***NOTE:*** - * Prior to v3.0.0, the default for the $flags parameter was http\Url::FROM_ENV. - * - * See also http\Env\Url. - * - * @param mixed $old_url Initial URL parts. Either an array, object, http\Url instance or string to parse. - * @param mixed $new_url Overriding URL parts. Either an array, object, http\Url instance or string to parse. - * @param int $flags The modus operandi of constructing the url. See http\Url constants. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadUrlException - */ - function __construct($old_url = null, $new_url = null, int $flags = 0) {} - /** - * String cast handler. Alias of http\Url::toString(). - * - * @return string the URL as string. - */ - function __toString() {} - /** - * Clone this URL and apply $parts to the cloned URL. - * - * ***NOTE:*** - * This method returns a clone (copy) of this instance. - * - * @param mixed $parts New URL parts. - * @param int $flags Modus operandi of URL construction. See http\Url constants. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadUrlException - * @return \http\Url clone. - */ - function mod($parts, int $flags = \http\Url::JOIN_PATH|\http\Url::JOIN_QUERY|\http\Url::SANITIZE_PATH) {} - /** - * Retrieve the URL parts as array. - * - * @return array the URL parts. - */ - function toArray() {} - /** - * Get the string prepresentation of the URL. - * - * @return string the URL as string. - */ - function toString() {} +class Url +{ + /** + * Replace parts of the old URL with parts of the new. + */ + public const REPLACE = 0; + /** + * Whether a relative path should be joined into the old path. + */ + public const JOIN_PATH = 1; + /** + * Whether the querystrings should be joined. + */ + public const JOIN_QUERY = 2; + /** + * Strip the user information from the URL. + */ + public const STRIP_USER = 4; + /** + * Strip the password from the URL. + */ + public const STRIP_PASS = 8; + /** + * Strip user and password information from URL (same as STRIP_USER|STRIP_PASS). + */ + public const STRIP_AUTH = 12; + /** + * Do not include the port. + */ + public const STRIP_PORT = 32; + /** + * Do not include the URL path. + */ + public const STRIP_PATH = 64; + /** + * Do not include the URL querystring. + */ + public const STRIP_QUERY = 128; + /** + * Strip the fragment (hash) from the URL. + */ + public const STRIP_FRAGMENT = 256; + /** + * Strip everything except scheme and host information. + */ + public const STRIP_ALL = 492; + /** + * Import initial URL parts from the SAPI environment. + */ + public const FROM_ENV = 4096; + /** + * Whether to sanitize the URL path (consolidate double slashes, directory jumps etc.) + */ + public const SANITIZE_PATH = 8192; + /** + * Parse UTF-8 encoded multibyte sequences. + */ + public const PARSE_MBUTF8 = 131072; + /** + * Parse locale encoded multibyte sequences (on systems with wide character support). + */ + public const PARSE_MBLOC = 65536; + /** + * Parse and convert multibyte hostnames according to IDNA (with IDNA support). + */ + public const PARSE_TOIDN = 1048576; + /** + * Explicitly request IDNA2003 implementation if available (libidn, idnkit or ICU). + */ + public const PARSE_TOIDN_2003 = 9437184; + /** + * Explicitly request IDNA2008 implementation if available (libidn2, idnkit2 or ICU). + */ + public const PARSE_TOIDN_2008 = 5242880; + /** + * Percent encode multibyte sequences in the userinfo, path, query and fragment parts of the URL. + */ + public const PARSE_TOPCT = 2097152; + /** + * Continue parsing when encountering errors. + */ + public const IGNORE_ERRORS = 268435456; + /** + * Suppress errors/exceptions. + */ + public const SILENT_ERRORS = 536870912; + /** + * Standard flags used by default internally for e.g. http\Message::setRequestUrl(). + * Enables joining path and query, sanitizing path, multibyte/unicode, international domain names and transient percent encoding. + */ + public const STDFLAGS = 3350531; + /** + * The URL's scheme. + * + * @var string + */ + public $scheme = null; + /** + * Authenticating user. + * + * @var string + */ + public $user = null; + /** + * Authentication password. + * + * @var string + */ + public $pass = null; + /** + * Hostname/domain. + * + * @var string + */ + public $host = null; + /** + * Port. + * + * @var string + */ + public $port = null; + /** + * URL path. + * + * @var string + */ + public $path = null; + /** + * URL querystring. + * + * @var string + */ + public $query = null; + /** + * URL fragment (hash). + * + * @var string + */ + public $fragment = null; + /** + * Create an instance of an http\Url. + * + * ***NOTE:*** + * Prior to v3.0.0, the default for the $flags parameter was http\Url::FROM_ENV. + * + * See also http\Env\Url. + * + * @param mixed $old_url Initial URL parts. Either an array, object, http\Url instance or string to parse. + * @param mixed $new_url Overriding URL parts. Either an array, object, http\Url instance or string to parse. + * @param int $flags The modus operandi of constructing the url. See http\Url constants. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadUrlException + */ + public function __construct($old_url = null, $new_url = null, int $flags = 0) {} + /** + * String cast handler. Alias of http\Url::toString(). + * + * @return string the URL as string. + */ + public function __toString() {} + /** + * Clone this URL and apply $parts to the cloned URL. + * + * ***NOTE:*** + * This method returns a clone (copy) of this instance. + * + * @param mixed $parts New URL parts. + * @param int $flags Modus operandi of URL construction. See http\Url constants. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadUrlException + * @return \http\Url clone. + */ + public function mod($parts, int $flags = \http\Url::JOIN_PATH|\http\Url::JOIN_QUERY|\http\Url::SANITIZE_PATH) {} + /** + * Retrieve the URL parts as array. + * + * @return array the URL parts. + */ + public function toArray() {} + /** + * Get the string prepresentation of the URL. + * + * @return string the URL as string. + */ + public function toString() {} } /** * The http\Client\Curl namespace holds option value constants specific to the curl driver of the http\Client. */ + namespace http\Client\Curl; + /** * Bitmask of available libcurl features. * See http\Client\Curl\Features namespace. @@ -2039,222 +2050,229 @@ function toString() {} * Keep POSTing on any redirect. Available if libcurl is v7.19.1 or more recent. */ const POSTREDIR_ALL = 7; + namespace http\Client; + /** * The http\Client\Request class provides an HTTP message implementation tailored to represent a request message to be sent by the client. * * See http\Client::enqueue(). */ -class Request extends \http\Message { - /** - * Array of options for this request, which override client options. - * - * @var array - */ - protected $options = null; - /** - * Create a new client request message to be enqueued and sent by http\Client. - * - * @param string $meth The request method. - * @param string $url The request URL. - * @param array $headers HTTP headers. - * @param \http\Message\Body $body Request body. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - */ - function __construct(string $meth = null, string $url = null, array $headers = null, \http\Message\Body $body = null) {} - /** - * Add querystring data. - * See http\Client\Request::setQuery() and http\Message::setRequestUrl(). - * - * @param mixed $query_data Additional querystring data. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadQueryStringException - * @return \http\Client\Request self. - */ - function addQuery($query_data) {} - /** - * Add specific SSL options. - * See http\Client\Request::setSslOptions(), http\Client\Request::setOptions() and http\Client\Curl\$ssl options. - * - * @param array $ssl_options Add this SSL options. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Client\Request self. - */ - function addSslOptions(array $ssl_options = null) {} - /** - * Extract the currently set "Content-Type" header. - * See http\Client\Request::setContentType(). - * - * @return string|null string the currently set content type. - * or NULL if no "Content-Type" header is set. - */ - function getContentType() {} - /** - * Get priorly set options. - * See http\Client\Request::setOptions(). - * - * @return array options. - */ - function getOptions() {} - /** - * Retrieve the currently set querystring. - * - * @return string|null string the currently set querystring. - * or NULL if no querystring is set. - */ - function getQuery() {} - /** - * Retrieve priorly set SSL options. - * See http\Client\Request::getOptions() and http\Client\Request::setSslOptions(). - * - * @return array SSL options. - */ - function getSslOptions() {} - /** - * Set the MIME content type of the request message. - * - * @param string $content_type The MIME type used as "Content-Type". - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Client\Request self. - */ - function setContentType(string $content_type) {} - /** - * Set client options. - * See http\Client::setOptions() and http\Client\Curl. - * - * Request specific options override general options which were set in the client. - * - * ***NOTE:*** - * Only options specified prior enqueueing a request are applied to the request. - * - * @param array $options The options to set. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Client\Request self. - */ - function setOptions(array $options = null) {} - /** - * (Re)set the querystring. - * See http\Client\Request::addQuery() and http\Message::setRequestUrl(). - * - * @param mixed $query_data - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadQueryStringException - * @return \http\Client\Request self. - */ - function setQuery($query_data) {} - /** - * Specifically set SSL options. - * See http\Client\Request::setOptions() and http\Client\Curl\$ssl options. - * - * @param array $ssl_options Set SSL options to this array. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Client\Request self. - */ - function setSslOptions(array $ssl_options = null) {} +class Request extends \http\Message +{ + /** + * Array of options for this request, which override client options. + * + * @var array + */ + protected $options = null; + /** + * Create a new client request message to be enqueued and sent by http\Client. + * + * @param string $meth The request method. + * @param string $url The request URL. + * @param array $headers HTTP headers. + * @param \http\Message\Body $body Request body. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + */ + public function __construct(string $meth = null, string $url = null, array $headers = null, http\Message\Body $body = null) {} + /** + * Add querystring data. + * See http\Client\Request::setQuery() and http\Message::setRequestUrl(). + * + * @param mixed $query_data Additional querystring data. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadQueryStringException + * @return \http\Client\Request self. + */ + public function addQuery($query_data) {} + /** + * Add specific SSL options. + * See http\Client\Request::setSslOptions(), http\Client\Request::setOptions() and http\Client\Curl\$ssl options. + * + * @param array $ssl_options Add this SSL options. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Client\Request self. + */ + public function addSslOptions(array $ssl_options = null) {} + /** + * Extract the currently set "Content-Type" header. + * See http\Client\Request::setContentType(). + * + * @return string|null string the currently set content type. + * or NULL if no "Content-Type" header is set. + */ + public function getContentType() {} + /** + * Get priorly set options. + * See http\Client\Request::setOptions(). + * + * @return array options. + */ + public function getOptions() {} + /** + * Retrieve the currently set querystring. + * + * @return string|null string the currently set querystring. + * or NULL if no querystring is set. + */ + public function getQuery() {} + /** + * Retrieve priorly set SSL options. + * See http\Client\Request::getOptions() and http\Client\Request::setSslOptions(). + * + * @return array SSL options. + */ + public function getSslOptions() {} + /** + * Set the MIME content type of the request message. + * + * @param string $content_type The MIME type used as "Content-Type". + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Client\Request self. + */ + public function setContentType(string $content_type) {} + /** + * Set client options. + * See http\Client::setOptions() and http\Client\Curl. + * + * Request specific options override general options which were set in the client. + * + * ***NOTE:*** + * Only options specified prior enqueueing a request are applied to the request. + * + * @param array $options The options to set. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Client\Request self. + */ + public function setOptions(array $options = null) {} + /** + * (Re)set the querystring. + * See http\Client\Request::addQuery() and http\Message::setRequestUrl(). + * + * @param mixed $query_data + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadQueryStringException + * @return \http\Client\Request self. + */ + public function setQuery($query_data) {} + /** + * Specifically set SSL options. + * See http\Client\Request::setOptions() and http\Client\Curl\$ssl options. + * + * @param array $ssl_options Set SSL options to this array. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Client\Request self. + */ + public function setSslOptions(array $ssl_options = null) {} } /** * The http\Client\Response class represents an HTTP message the client returns as answer from a server to an http\Client\Request. */ -class Response extends \http\Message { - /** - * Extract response cookies. - * Parses any "Set-Cookie" response headers into an http\Cookie list. See http\Cookie::__construct(). - * - * @param int $flags Cookie parser flags. - * @param array $allowed_extras List of keys treated as extras. - * @return array list of http\Cookie instances. - */ - function getCookies(int $flags = 0, array $allowed_extras = null) {} - /** - * Retrieve transfer related information after the request has completed. - * See http\Client::getTransferInfo(). - * - * @param string $name A key to retrieve out of the transfer info. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\BadMethodCallException - * @throws \http\Exception\UnexpectedValueException - * @return object|mixed object stdClass instance with all transfer info if $name was not given. - * or mixed the specific transfer info for $name. - */ - function getTransferInfo(string $name = null) {} +class Response extends \http\Message +{ + /** + * Extract response cookies. + * Parses any "Set-Cookie" response headers into an http\Cookie list. See http\Cookie::__construct(). + * + * @param int $flags Cookie parser flags. + * @param array $allowed_extras List of keys treated as extras. + * @return array list of http\Cookie instances. + */ + public function getCookies(int $flags = 0, array $allowed_extras = null) {} + /** + * Retrieve transfer related information after the request has completed. + * See http\Client::getTransferInfo(). + * + * @param string $name A key to retrieve out of the transfer info. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\BadMethodCallException + * @throws \http\Exception\UnexpectedValueException + * @return object|mixed object stdClass instance with all transfer info if $name was not given. + * or mixed the specific transfer info for $name. + */ + public function getTransferInfo(string $name = null) {} } + namespace http\Client\Curl; + /** * Interface to an user event loop implementation for http\Client::configure()'s $use_eventloop option. * * ***NOTE:*** * This interface was added in v2.6.0, resp. v3.1.0. */ -interface User { - /** - * No action. - */ - const POLL_NONE = 0; - /** - * Poll for read readiness. - */ - const POLL_IN = 1; - /** - * Poll for write readiness. - */ - const POLL_OUT = 2; - /** - * Poll for read/write readiness. - */ - const POLL_INOUT = 3; - /** - * Stop polling for activity on this descriptor. - */ - const POLL_REMOVE = 4; - /** - * Initialize the event loop. - * - * @param callable $run as function(http\Client $c, resource $s = null, int $action = http\Client\Curl\User::POLL_NONE) : int - * Internal callback returning the number of unfinished requests pending. - * - * - * ***NOTE***: - * The callback should be run when a timeout occurs or a watched socket needs action. - */ - function init(callable $run); - /** - * Run the loop as long as it does not block. - * - * ***NOTE:*** - * This method is called by http\Client::once(), so it does not need to have an actual implementation if http\Client::once() is never called. - */ - function once(); - /** - * Run the loop. - * - * ***NOTE:*** - * This method is called by http\Client::send(), so it does not need to have an actual implementation if http\Client::send() is never called. - */ - function send(); - /** - * Register (or deregister) a socket watcher. - * - * @param resource $socket The socket descriptor to watch. - * @param int $poll http\Client\Curl\User::POLL_* constant. - */ - function socket($socket, int $poll); - /** - * Register a timeout watcher. - * - * @param int $timeout_ms Desired maximum timeout in milliseconds. - */ - function timer(int $timeout_ms); - /** - * Wait/poll/select (block the loop) until events fire. - * - * ***NOTE:*** - * This method is called by http\Client::wait(), so it does not need to have an actual implementation if http\Client::wait() is never called. - * - * @param int $timeout_ms Block for at most this milliseconds. - */ - function wait(int $timeout_ms = null); +interface User +{ + /** + * No action. + */ + public const POLL_NONE = 0; + /** + * Poll for read readiness. + */ + public const POLL_IN = 1; + /** + * Poll for write readiness. + */ + public const POLL_OUT = 2; + /** + * Poll for read/write readiness. + */ + public const POLL_INOUT = 3; + /** + * Stop polling for activity on this descriptor. + */ + public const POLL_REMOVE = 4; + /** + * Initialize the event loop. + * + * @param callable $run as function(http\Client $c, resource $s = null, int $action = http\Client\Curl\User::POLL_NONE) : int + * Internal callback returning the number of unfinished requests pending. + * + * + * ***NOTE***: + * The callback should be run when a timeout occurs or a watched socket needs action. + */ + public function init(callable $run); + /** + * Run the loop as long as it does not block. + * + * ***NOTE:*** + * This method is called by http\Client::once(), so it does not need to have an actual implementation if http\Client::once() is never called. + */ + public function once(); + /** + * Run the loop. + * + * ***NOTE:*** + * This method is called by http\Client::send(), so it does not need to have an actual implementation if http\Client::send() is never called. + */ + public function send(); + /** + * Register (or deregister) a socket watcher. + * + * @param resource $socket The socket descriptor to watch. + * @param int $poll http\Client\Curl\User::POLL_* constant. + */ + public function socket($socket, int $poll); + /** + * Register a timeout watcher. + * + * @param int $timeout_ms Desired maximum timeout in milliseconds. + */ + public function timer(int $timeout_ms); + /** + * Wait/poll/select (block the loop) until events fire. + * + * ***NOTE:*** + * This method is called by http\Client::wait(), so it does not need to have an actual implementation if http\Client::wait() is never called. + * + * @param int $timeout_ms Block for at most this milliseconds. + */ + public function wait(int $timeout_ms = null); } /** * CURL feature constants. @@ -2262,7 +2280,9 @@ function wait(int $timeout_ms = null); * ***NOTE:*** * These constants have been added in v2.6.0, resp. v3.1.0. */ + namespace http\Client\Curl\Features; + /** * Whether libcurl supports asynchronous domain name resolution. */ @@ -2341,7 +2361,9 @@ function wait(int $timeout_ms = null); * ***NOTE:*** * These constants have been added in v2.6.0, resp. v3.1.0. */ + namespace http\Client\Curl\Versions; + /** * Version string of libcurl, e.g. "7.50.0". */ @@ -2362,164 +2384,172 @@ function wait(int $timeout_ms = null); * Version string of the IDN library, e.g. "1.32". */ const IDN = null; + namespace http\Encoding; + /** * Base class for encoding stream implementations. */ -abstract class Stream { - /** - * Do no intermittent flushes. - */ - const FLUSH_NONE = 0; - /** - * Flush at appropriate transfer points. - */ - const FLUSH_SYNC = 1048576; - /** - * Flush at each IO operation. - */ - const FLUSH_FULL = 2097152; - /** - * Base constructor for encoding stream implementations. - * - * @param int $flags See http\Encoding\Stream and implementation specific constants. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\RuntimeException - */ - function __construct(int $flags = 0) {} - /** - * Check whether the encoding stream is already done. - * - * @return bool whether the encoding stream is completed. - */ - function done() {} - /** - * Finish and reset the encoding stream. - * Returns any pending data. - * - * @return string any pending data. - */ - function finish() {} - /** - * Flush the encoding stream. - * Returns any pending data. - * - * @return string any pending data. - */ - function flush() {} - /** - * Update the encoding stream with more input. - * - * @param string $data The data to pass through the stream. - * @return string processed data. - */ - function update(string $data) {} +abstract class Stream +{ + /** + * Do no intermittent flushes. + */ + public const FLUSH_NONE = 0; + /** + * Flush at appropriate transfer points. + */ + public const FLUSH_SYNC = 1048576; + /** + * Flush at each IO operation. + */ + public const FLUSH_FULL = 2097152; + /** + * Base constructor for encoding stream implementations. + * + * @param int $flags See http\Encoding\Stream and implementation specific constants. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\RuntimeException + */ + public function __construct(int $flags = 0) {} + /** + * Check whether the encoding stream is already done. + * + * @return bool whether the encoding stream is completed. + */ + public function done() {} + /** + * Finish and reset the encoding stream. + * Returns any pending data. + * + * @return string any pending data. + */ + public function finish() {} + /** + * Flush the encoding stream. + * Returns any pending data. + * + * @return string any pending data. + */ + public function flush() {} + /** + * Update the encoding stream with more input. + * + * @param string $data The data to pass through the stream. + * @return string processed data. + */ + public function update(string $data) {} } + namespace http\Encoding\Stream; + /** * A [brotli](https://brotli.org) decoding stream. * * ***NOTE:*** * This class has been added in v3.2.0. */ -class Debrotli extends \http\Encoding\Stream { - /** - * Decode brotli encoded data. - * - * @param string $data The data to uncompress. - * @return string the uncompressed data. - */ - function decode(string $data) {} +class Debrotli extends \http\Encoding\Stream +{ + /** + * Decode brotli encoded data. + * + * @param string $data The data to uncompress. + * @return string the uncompressed data. + */ + public function decode(string $data) {} } /** * A stream decoding data encoded with chunked transfer encoding. */ -class Dechunk extends \http\Encoding\Stream { - /** - * Decode chunked encoded data. - * - * @param string $data The data to decode. - * @param int &$decoded_len Out parameter with the length of $data that's been decoded. - * Should be ```strlen($data)``` if not truncated. - * @return string|string|string|false string the decoded data. - * or string the unencoded data. - * or string the truncated decoded data. - * or false if $data cannot be decoded. - */ - function decode(string $data, int &$decoded_len = 0) {} +class Dechunk extends \http\Encoding\Stream +{ + /** + * Decode chunked encoded data. + * + * @param string $data The data to decode. + * @param int &$decoded_len Out parameter with the length of $data that's been decoded. + * Should be ```strlen($data)``` if not truncated. + * @return string|string|string|false string the decoded data. + * or string the unencoded data. + * or string the truncated decoded data. + * or false if $data cannot be decoded. + */ + public function decode(string $data, int &$decoded_len = 0) {} } /** * A deflate stream supporting deflate, zlib and gzip encodings. */ -class Deflate extends \http\Encoding\Stream { - /** - * Gzip encoding. RFC1952 - */ - const TYPE_GZIP = 16; - /** - * Zlib encoding. RFC1950 - */ - const TYPE_ZLIB = 0; - /** - * Deflate encoding. RFC1951 - */ - const TYPE_RAW = 32; - /** - * Default compression level. - */ - const LEVEL_DEF = 0; - /** - * Least compression level. - */ - const LEVEL_MIN = 1; - /** - * Greatest compression level. - */ - const LEVEL_MAX = 9; - /** - * Default compression strategy. - */ - const STRATEGY_DEF = 0; - /** - * Filtered compression strategy. - */ - const STRATEGY_FILT = 256; - /** - * Huffman strategy only. - */ - const STRATEGY_HUFF = 512; - /** - * Run-length encoding strategy. - */ - const STRATEGY_RLE = 768; - /** - * Encoding with fixed Huffman codes only. - * - * > **A note on the compression strategy:** - * > - * > The strategy parameter is used to tune the compression algorithm. - * > - * > Use the value DEFAULT_STRATEGY for normal data, FILTERED for data produced by a filter (or predictor), HUFFMAN_ONLY to force Huffman encoding only (no string match), or RLE to limit match distances to one (run-length encoding). - * > - * > Filtered data consists mostly of small values with a somewhat random distribution. In this case, the compression algorithm is tuned to compress them better. The effect of FILTERED is to force more Huffman coding and less string matching; it is somewhat intermediate between DEFAULT_STRATEGY and HUFFMAN_ONLY. - * > - * > RLE is designed to be almost as fast as HUFFMAN_ONLY, but give better compression for PNG image data. - * > - * > FIXED prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications. - * > - * > The strategy parameter only affects the compression ratio but not the correctness of the compressed output even if it is not set appropriately. - * > - * >_Source: [zlib Manual](http://www.zlib.net/manual.html)_ - */ - const STRATEGY_FIXED = 1024; - /** - * Encode data with deflate/zlib/gzip encoding. - * - * @param string $data The data to compress. - * @param int $flags Any compression tuning flags. See http\Encoding\Stream\Deflate and http\Encoding\Stream constants. - * @return string the compressed data. - */ - function encode(string $data, int $flags = 0) {} +class Deflate extends \http\Encoding\Stream +{ + /** + * Gzip encoding. RFC1952 + */ + public const TYPE_GZIP = 16; + /** + * Zlib encoding. RFC1950 + */ + public const TYPE_ZLIB = 0; + /** + * Deflate encoding. RFC1951 + */ + public const TYPE_RAW = 32; + /** + * Default compression level. + */ + public const LEVEL_DEF = 0; + /** + * Least compression level. + */ + public const LEVEL_MIN = 1; + /** + * Greatest compression level. + */ + public const LEVEL_MAX = 9; + /** + * Default compression strategy. + */ + public const STRATEGY_DEF = 0; + /** + * Filtered compression strategy. + */ + public const STRATEGY_FILT = 256; + /** + * Huffman strategy only. + */ + public const STRATEGY_HUFF = 512; + /** + * Run-length encoding strategy. + */ + public const STRATEGY_RLE = 768; + /** + * Encoding with fixed Huffman codes only. + * + * > **A note on the compression strategy:** + * > + * > The strategy parameter is used to tune the compression algorithm. + * > + * > Use the value DEFAULT_STRATEGY for normal data, FILTERED for data produced by a filter (or predictor), HUFFMAN_ONLY to force Huffman encoding only (no string match), or RLE to limit match distances to one (run-length encoding). + * > + * > Filtered data consists mostly of small values with a somewhat random distribution. In this case, the compression algorithm is tuned to compress them better. The effect of FILTERED is to force more Huffman coding and less string matching; it is somewhat intermediate between DEFAULT_STRATEGY and HUFFMAN_ONLY. + * > + * > RLE is designed to be almost as fast as HUFFMAN_ONLY, but give better compression for PNG image data. + * > + * > FIXED prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications. + * > + * > The strategy parameter only affects the compression ratio but not the correctness of the compressed output even if it is not set appropriately. + * > + * >_Source: [zlib Manual](http://www.zlib.net/manual.html)_ + */ + public const STRATEGY_FIXED = 1024; + /** + * Encode data with deflate/zlib/gzip encoding. + * + * @param string $data The data to compress. + * @param int $flags Any compression tuning flags. See http\Encoding\Stream\Deflate and http\Encoding\Stream constants. + * @return string the compressed data. + */ + public function encode(string $data, int $flags = 0) {} } /** * A [brotli](https://brotli.org) encoding stream. @@ -2527,371 +2557,377 @@ function encode(string $data, int $flags = 0) {} * ***NOTE:*** * This class has been added in v3.2.0. */ -class Enbrotli extends \http\Encoding\Stream { - /** - * Default compression level. - */ - const LEVEL_DEF = null; - /** - * Least compression level. - */ - const LEVEL_MIN = null; - /** - * Greatest compression level. - */ - const LEVEL_MAX = null; - /** - * Default window bits. - */ - const WBITS_DEF = null; - /** - * Minimum window bits. - */ - const WBITS_MIN = null; - /** - * Maximum window bits. - */ - const WBITS_MAX = null; - /** - * Default compression mode. - */ - const MODE_GENERIC = null; - /** - * Compression mode for UTF-8 formatted text. - */ - const MODE_TEXT = null; - /** - * Compression mode used in WOFF 2.0. - */ - const MODE_FONT = null; - /** - * Encode data with brotli encoding. - * - * @param string $data The data to compress. - * @param int $flags Any compression tuning flags. See http\Encoding\Stream\Enbrotli and http\Encoding\Stream constants. - * @return string the compressed data. - */ - function encode(string $data, int $flags = 0) {} +class Enbrotli extends \http\Encoding\Stream +{ + /** + * Default compression level. + */ + public const LEVEL_DEF = null; + /** + * Least compression level. + */ + public const LEVEL_MIN = null; + /** + * Greatest compression level. + */ + public const LEVEL_MAX = null; + /** + * Default window bits. + */ + public const WBITS_DEF = null; + /** + * Minimum window bits. + */ + public const WBITS_MIN = null; + /** + * Maximum window bits. + */ + public const WBITS_MAX = null; + /** + * Default compression mode. + */ + public const MODE_GENERIC = null; + /** + * Compression mode for UTF-8 formatted text. + */ + public const MODE_TEXT = null; + /** + * Compression mode used in WOFF 2.0. + */ + public const MODE_FONT = null; + /** + * Encode data with brotli encoding. + * + * @param string $data The data to compress. + * @param int $flags Any compression tuning flags. See http\Encoding\Stream\Enbrotli and http\Encoding\Stream constants. + * @return string the compressed data. + */ + public function encode(string $data, int $flags = 0) {} } /** * A inflate stream supporting deflate, zlib and gzip encodings. */ -class Inflate extends \http\Encoding\Stream { - /** - * Decode deflate/zlib/gzip encoded data. - * - * @param string $data The data to uncompress. - * @return string the uncompressed data. - */ - function decode(string $data) {} +class Inflate extends \http\Encoding\Stream +{ + /** + * Decode deflate/zlib/gzip encoded data. + * + * @param string $data The data to uncompress. + * @return string the uncompressed data. + */ + public function decode(string $data) {} } + namespace http\Env; + /** * The http\Env\Request class' instances represent the server's current HTTP request. * * See http\Message for inherited members. */ -class Request extends \http\Message { - /** - * The request's query parameters. ($_GET) - * - * @var \http\QueryString - */ - protected $query = null; - /** - * The request's form parameters. ($_POST) - * - * @var \http\QueryString - */ - protected $form = null; - /** - * The request's form uploads. ($_FILES) - * - * @var array - */ - protected $files = null; - /** - * The request's cookies. ($_COOKIE) - * - * @var array - */ - protected $cookie = null; - /** - * Create an instance of the server's current HTTP request. - * - * Upon construction, the http\Env\Request acquires http\QueryString instances of query parameters ($\_GET) and form parameters ($\_POST). - * - * It also compiles an array of uploaded files ($\_FILES) more comprehensive than the original $\_FILES array, see http\Env\Request::getFiles() for that matter. - * - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - */ - function __construct() {} - /** - * Retrieve an URL query value ($_GET). - * - * See http\QueryString::get() and http\QueryString::TYPE_* constants. - * - * @param string $name The key to retrieve the value for. - * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants. - * @param mixed $defval The default value to return if the key $name does not exist. - * @param bool $delete Whether to delete the entry from the querystring after retrieval. - * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments. - * or string the whole querystring if $name is of zero length. - * or mixed $defval if the key $name does not exist. - * or mixed the querystring value cast to $type if $type was specified and the key $name exists. - * or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING. - */ - function getCookie(string $name = null, $type = null, $defval = null, bool $delete = false) {} - /** - * Retrieve the uploaded files list ($_FILES). - * - * @return array the consolidated upload files array. - */ - function getFiles() {} - /** - * Retrieve a form value ($_POST). - * - * See http\QueryString::get() and http\QueryString::TYPE_* constants. - * - * @param string $name The key to retrieve the value for. - * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants. - * @param mixed $defval The default value to return if the key $name does not exist. - * @param bool $delete Whether to delete the entry from the querystring after retrieval. - * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments. - * or string the whole querystring if $name is of zero length. - * or mixed $defval if the key $name does not exist. - * or mixed the querystring value cast to $type if $type was specified and the key $name exists. - * or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING. - */ - function getForm(string $name = null, $type = null, $defval = null, bool $delete = false) {} - /** - * Retrieve an URL query value ($_GET). - * - * See http\QueryString::get() and http\QueryString::TYPE_* constants. - * - * @param string $name The key to retrieve the value for. - * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants. - * @param mixed $defval The default value to return if the key $name does not exist. - * @param bool $delete Whether to delete the entry from the querystring after retrieval. - * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments. - * or string the whole querystring if $name is of zero length. - * or mixed $defval if the key $name does not exist. - * or mixed the querystring value cast to $type if $type was specified and the key $name exists. - * or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING. - */ - function getQuery(string $name = null, $type = null, $defval = null, bool $delete = false) {} +class Request extends \http\Message +{ + /** + * The request's query parameters. ($_GET) + * + * @var \http\QueryString + */ + protected $query = null; + /** + * The request's form parameters. ($_POST) + * + * @var \http\QueryString + */ + protected $form = null; + /** + * The request's form uploads. ($_FILES) + * + * @var array + */ + protected $files = null; + /** + * The request's cookies. ($_COOKIE) + * + * @var array + */ + protected $cookie = null; + /** + * Create an instance of the server's current HTTP request. + * + * Upon construction, the http\Env\Request acquires http\QueryString instances of query parameters ($\_GET) and form parameters ($\_POST). + * + * It also compiles an array of uploaded files ($\_FILES) more comprehensive than the original $\_FILES array, see http\Env\Request::getFiles() for that matter. + * + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + */ + public function __construct() {} + /** + * Retrieve an URL query value ($_GET). + * + * See http\QueryString::get() and http\QueryString::TYPE_* constants. + * + * @param string $name The key to retrieve the value for. + * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants. + * @param mixed $defval The default value to return if the key $name does not exist. + * @param bool $delete Whether to delete the entry from the querystring after retrieval. + * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments. + * or string the whole querystring if $name is of zero length. + * or mixed $defval if the key $name does not exist. + * or mixed the querystring value cast to $type if $type was specified and the key $name exists. + * or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING. + */ + public function getCookie(string $name = null, $type = null, $defval = null, bool $delete = false) {} + /** + * Retrieve the uploaded files list ($_FILES). + * + * @return array the consolidated upload files array. + */ + public function getFiles() {} + /** + * Retrieve a form value ($_POST). + * + * See http\QueryString::get() and http\QueryString::TYPE_* constants. + * + * @param string $name The key to retrieve the value for. + * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants. + * @param mixed $defval The default value to return if the key $name does not exist. + * @param bool $delete Whether to delete the entry from the querystring after retrieval. + * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments. + * or string the whole querystring if $name is of zero length. + * or mixed $defval if the key $name does not exist. + * or mixed the querystring value cast to $type if $type was specified and the key $name exists. + * or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING. + */ + public function getForm(string $name = null, $type = null, $defval = null, bool $delete = false) {} + /** + * Retrieve an URL query value ($_GET). + * + * See http\QueryString::get() and http\QueryString::TYPE_* constants. + * + * @param string $name The key to retrieve the value for. + * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants. + * @param mixed $defval The default value to return if the key $name does not exist. + * @param bool $delete Whether to delete the entry from the querystring after retrieval. + * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments. + * or string the whole querystring if $name is of zero length. + * or mixed $defval if the key $name does not exist. + * or mixed the querystring value cast to $type if $type was specified and the key $name exists. + * or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING. + */ + public function getQuery(string $name = null, $type = null, $defval = null, bool $delete = false) {} } /** * The http\Env\Response class' instances represent the server's current HTTP response. * * See http\Message for inherited members. */ -class Response extends \http\Message { - /** - * Do not use content encoding. - */ - const CONTENT_ENCODING_NONE = 0; - /** - * Support "Accept-Encoding" requests with gzip and deflate encoding. - */ - const CONTENT_ENCODING_GZIP = 1; - /** - * No caching info available. - */ - const CACHE_NO = 0; - /** - * The cache was hit. - */ - const CACHE_HIT = 1; - /** - * The cache was missed. - */ - const CACHE_MISS = 2; - /** - * A request instance which overrides the environments default request. - * - * @var \http\Env\Request - */ - protected $request = null; - /** - * The response's MIME content type. - * - * @var string - */ - protected $contentType = null; - /** - * The response's MIME content disposition. - * - * @var string - */ - protected $contentDisposition = null; - /** - * See http\Env\Response::CONTENT_ENCODING_* constants. - * - * @var int - */ - protected $contentEncoding = null; - /** - * How the client should treat this response in regards to caching. - * - * @var string - */ - protected $cacheControl = null; - /** - * A custom ETag. - * - * @var string - */ - protected $etag = null; - /** - * A "Last-Modified" time stamp. - * - * @var int - */ - protected $lastModified = null; - /** - * Any throttling delay. - * - * @var int - */ - protected $throttleDelay = null; - /** - * The chunk to send every $throttleDelay seconds. - * - * @var int - */ - protected $throttleChunk = null; - /** - * The response's cookies. - * - * @var array - */ - protected $cookies = null; - /** - * Create a new env response message instance. - * - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - */ - function __construct() {} - /** - * Output buffer handler. - * Appends output data to the body. - * - * @param string $data The data output. - * @param int $ob_flags Output buffering flags passed from the output buffering control layer. - * @return bool success. - */ - function __invoke(string $data, int $ob_flags = 0) {} - /** - * Manually test the header $header_name of the environment's request for a cache hit. - * http\Env\Response::send() checks that itself, though. - * - * @param string $header_name The request header to test. - * @return int a http\Env\Response::CACHE_* constant. - */ - function isCachedByEtag(string $header_name = "If-None-Match") {} - /** - * Manually test the header $header_name of the environment's request for a cache hit. - * http\Env\Response::send() checks that itself, though. - * - * @param string $header_name The request header to test. - * @return int a http\Env\Response::CACHE_* constant. - */ - function isCachedByLastModified(string $header_name = "If-Modified-Since") {} - /** - * Send the response through the SAPI or $stream. - * Flushes all output buffers. - * - * @param resource $stream A writable stream to send the response through. - * @return bool success. - */ - function send($stream = null) {} - /** - * Make suggestions to the client how it should cache the response. - * - * @param string $cache_control (A) "Cache-Control" header value(s). - * @throws \http\Exception\InvalidArgumentException - * @return \http\Env\Response self. - */ - function setCacheControl(string $cache_control) {} - /** - * Set the response's content disposition parameters. - * - * @param array $disposition_params MIME content disposition as http\Params array. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Env\Response self. - */ - function setContentDisposition(array $disposition_params) {} - /** - * Enable support for "Accept-Encoding" requests with deflate or gzip. - * The response will be compressed if the client indicates support and wishes that. - * - * @param int $content_encoding See http\Env\Response::CONTENT_ENCODING_* constants. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Env\Response self. - */ - function setContentEncoding(int $content_encoding) {} - /** - * Set the MIME content type of the response. - * - * @param string $content_type The response's content type. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Env\Response self. - */ - function setContentType(string $content_type) {} - /** - * Add cookies to the response to send. - * - * @param mixed $cookie The cookie to send. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return \http\Env\Response self. - */ - function setCookie($cookie) {} - /** - * Override the environment's request. - * - * @param \http\Message $env_request The overriding request message. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Env\Response self. - */ - function setEnvRequest(\http\Message $env_request) {} - /** - * Set a custom ETag. - * - * ***NOTE:*** - * This will be used for caching and pre-condition checks. - * - * @param string $etag A ETag. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Env\Response self. - */ - function setEtag(string $etag) {} - /** - * Set a custom last modified time stamp. - * - * ***NOTE:*** - * This will be used for caching and pre-condition checks. - * - * @param int $last_modified A unix timestamp. - * @throws \http\Exception\InvalidArgumentException - * @return \http\Env\Response self. - */ - function setLastModified(int $last_modified) {} - /** - * Enable throttling. - * Send $chunk_size bytes every $delay seconds. - * - * ***NOTE:*** - * If you need throttling by regular means, check for other options in your stack, because this method blocks the executing process/thread until the response has completely been sent. - * - * @param int $chunk_size Bytes to send. - * @param float $delay Seconds to sleep. - * @return \http\Env\Response self. - */ - function setThrottleRate(int $chunk_size, float $delay = 1) {} +class Response extends \http\Message +{ + /** + * Do not use content encoding. + */ + public const CONTENT_ENCODING_NONE = 0; + /** + * Support "Accept-Encoding" requests with gzip and deflate encoding. + */ + public const CONTENT_ENCODING_GZIP = 1; + /** + * No caching info available. + */ + public const CACHE_NO = 0; + /** + * The cache was hit. + */ + public const CACHE_HIT = 1; + /** + * The cache was missed. + */ + public const CACHE_MISS = 2; + /** + * A request instance which overrides the environments default request. + * + * @var \http\Env\Request + */ + protected $request = null; + /** + * The response's MIME content type. + * + * @var string + */ + protected $contentType = null; + /** + * The response's MIME content disposition. + * + * @var string + */ + protected $contentDisposition = null; + /** + * See http\Env\Response::CONTENT_ENCODING_* constants. + * + * @var int + */ + protected $contentEncoding = null; + /** + * How the client should treat this response in regards to caching. + * + * @var string + */ + protected $cacheControl = null; + /** + * A custom ETag. + * + * @var string + */ + protected $etag = null; + /** + * A "Last-Modified" time stamp. + * + * @var int + */ + protected $lastModified = null; + /** + * Any throttling delay. + * + * @var int + */ + protected $throttleDelay = null; + /** + * The chunk to send every $throttleDelay seconds. + * + * @var int + */ + protected $throttleChunk = null; + /** + * The response's cookies. + * + * @var array + */ + protected $cookies = null; + /** + * Create a new env response message instance. + * + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + */ + public function __construct() {} + /** + * Output buffer handler. + * Appends output data to the body. + * + * @param string $data The data output. + * @param int $ob_flags Output buffering flags passed from the output buffering control layer. + * @return bool success. + */ + public function __invoke(string $data, int $ob_flags = 0) {} + /** + * Manually test the header $header_name of the environment's request for a cache hit. + * http\Env\Response::send() checks that itself, though. + * + * @param string $header_name The request header to test. + * @return int a http\Env\Response::CACHE_* constant. + */ + public function isCachedByEtag(string $header_name = "If-None-Match") {} + /** + * Manually test the header $header_name of the environment's request for a cache hit. + * http\Env\Response::send() checks that itself, though. + * + * @param string $header_name The request header to test. + * @return int a http\Env\Response::CACHE_* constant. + */ + public function isCachedByLastModified(string $header_name = "If-Modified-Since") {} + /** + * Send the response through the SAPI or $stream. + * Flushes all output buffers. + * + * @param resource $stream A writable stream to send the response through. + * @return bool success. + */ + public function send($stream = null) {} + /** + * Make suggestions to the client how it should cache the response. + * + * @param string $cache_control (A) "Cache-Control" header value(s). + * @throws \http\Exception\InvalidArgumentException + * @return \http\Env\Response self. + */ + public function setCacheControl(string $cache_control) {} + /** + * Set the response's content disposition parameters. + * + * @param array $disposition_params MIME content disposition as http\Params array. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Env\Response self. + */ + public function setContentDisposition(array $disposition_params) {} + /** + * Enable support for "Accept-Encoding" requests with deflate or gzip. + * The response will be compressed if the client indicates support and wishes that. + * + * @param int $content_encoding See http\Env\Response::CONTENT_ENCODING_* constants. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Env\Response self. + */ + public function setContentEncoding(int $content_encoding) {} + /** + * Set the MIME content type of the response. + * + * @param string $content_type The response's content type. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Env\Response self. + */ + public function setContentType(string $content_type) {} + /** + * Add cookies to the response to send. + * + * @param mixed $cookie The cookie to send. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return \http\Env\Response self. + */ + public function setCookie($cookie) {} + /** + * Override the environment's request. + * + * @param \http\Message $env_request The overriding request message. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Env\Response self. + */ + public function setEnvRequest(http\Message $env_request) {} + /** + * Set a custom ETag. + * + * ***NOTE:*** + * This will be used for caching and pre-condition checks. + * + * @param string $etag A ETag. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Env\Response self. + */ + public function setEtag(string $etag) {} + /** + * Set a custom last modified time stamp. + * + * ***NOTE:*** + * This will be used for caching and pre-condition checks. + * + * @param int $last_modified A unix timestamp. + * @throws \http\Exception\InvalidArgumentException + * @return \http\Env\Response self. + */ + public function setLastModified(int $last_modified) {} + /** + * Enable throttling. + * Send $chunk_size bytes every $delay seconds. + * + * ***NOTE:*** + * If you need throttling by regular means, check for other options in your stack, because this method blocks the executing process/thread until the response has completely been sent. + * + * @param int $chunk_size Bytes to send. + * @param float $delay Seconds to sleep. + * @return \http\Env\Response self. + */ + public function setThrottleRate(int $chunk_size, float $delay = 1) {} } /** * URL class using the HTTP environment by default. @@ -2901,279 +2937,277 @@ function setThrottleRate(int $chunk_size, float $delay = 1) {} * * Always adds http\Url::FROM_ENV to the $flags constructor argument. See also http\Url. */ -class Url extends \http\Url { -} +class Url extends \http\Url {} + namespace http\Exception; + /** * A bad conversion (e.g. character conversion) was encountered. */ -class BadConversionException extends \DomainException implements \http\Exception { -} +class BadConversionException extends \DomainException implements \http\Exception {} /** * A bad HTTP header was encountered. */ -class BadHeaderException extends \DomainException implements \http\Exception { -} +class BadHeaderException extends \DomainException implements \http\Exception {} /** * A bad HTTP message was encountered. */ -class BadMessageException extends \DomainException implements \http\Exception { -} +class BadMessageException extends \DomainException implements \http\Exception {} /** * A method was called on an object, which was in an invalid or unexpected state. */ -class BadMethodCallException extends \BadMethodCallException implements \http\Exception { -} +class BadMethodCallException extends \BadMethodCallException implements \http\Exception {} /** * A bad querystring was encountered. */ -class BadQueryStringException extends \DomainException implements \http\Exception { -} +class BadQueryStringException extends \DomainException implements \http\Exception {} /** * A bad HTTP URL was encountered. */ -class BadUrlException extends \DomainException implements \http\Exception { -} +class BadUrlException extends \DomainException implements \http\Exception {} /** * One or more invalid arguments were passed to a method. */ -class InvalidArgumentException extends \InvalidArgumentException implements \http\Exception { -} +class InvalidArgumentException extends \InvalidArgumentException implements \http\Exception {} /** * A generic runtime exception. */ -class RuntimeException extends \RuntimeException implements \http\Exception { -} +class RuntimeException extends \RuntimeException implements \http\Exception {} /** * An unexpected value was encountered. */ -class UnexpectedValueException extends \UnexpectedValueException implements \http\Exception { -} +class UnexpectedValueException extends \UnexpectedValueException implements \http\Exception {} + namespace http\Header; + /** * The parser which is underlying http\Header and http\Message. * * ***NOTE:*** * This class has been added in v2.3.0. */ -class Parser { - /** - * Finish up parser at end of (incomplete) input. - */ - const CLEANUP = 1; - /** - * Parse failure. - */ - const STATE_FAILURE = -1; - /** - * Expecting HTTP info (request/response line) or headers. - */ - const STATE_START = 0; - /** - * Expecting a key or already parsing a key. - */ - const STATE_KEY = 1; - /** - * Expecting a value or already parsing the value. - */ - const STATE_VALUE = 2; - /** - * At EOL of an header, checking whether a folded header line follows. - */ - const STATE_VALUE_EX = 3; - /** - * A header was completed. - */ - const STATE_HEADER_DONE = 4; - /** - * Finished parsing the headers. - * - * ***NOTE:*** - * Most of this states won't be returned to the user, because the parser immediately jumps to the next expected state. - */ - const STATE_DONE = 5; - /** - * Retrieve the current state of the parser. - * See http\Header\Parser::STATE_* constants. - * - * @throws \http\Exception\InvalidArgumentException - * @return int http\Header\Parser::STATE_* constant. - */ - function getState() {} - /** - * Parse a string. - * - * @param string $data The (part of the) header to parse. - * @param int $flags Any combination of [parser flags](http/Header/Parser#Parser.flags:). - * @param array &$header Successfully parsed headers. - * @throws \http\Exception\InvalidArgumentException - * @return int http\Header\Parser::STATE_* constant. - */ - function parse(string $data, int $flags, array &$header = null) {} - /** - * Parse a stream. - * - * @param resource $stream The header stream to parse from. - * @param int $flags Any combination of [parser flags](http/Header/Parser#Parser.flags:). - * @param array &$headers The headers parsed. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return int http\Header\Parser::STATE_* constant. - */ - function stream($stream, int $flags, array &$headers) {} +class Parser +{ + /** + * Finish up parser at end of (incomplete) input. + */ + public const CLEANUP = 1; + /** + * Parse failure. + */ + public const STATE_FAILURE = -1; + /** + * Expecting HTTP info (request/response line) or headers. + */ + public const STATE_START = 0; + /** + * Expecting a key or already parsing a key. + */ + public const STATE_KEY = 1; + /** + * Expecting a value or already parsing the value. + */ + public const STATE_VALUE = 2; + /** + * At EOL of an header, checking whether a folded header line follows. + */ + public const STATE_VALUE_EX = 3; + /** + * A header was completed. + */ + public const STATE_HEADER_DONE = 4; + /** + * Finished parsing the headers. + * + * ***NOTE:*** + * Most of this states won't be returned to the user, because the parser immediately jumps to the next expected state. + */ + public const STATE_DONE = 5; + /** + * Retrieve the current state of the parser. + * See http\Header\Parser::STATE_* constants. + * + * @throws \http\Exception\InvalidArgumentException + * @return int http\Header\Parser::STATE_* constant. + */ + public function getState() {} + /** + * Parse a string. + * + * @param string $data The (part of the) header to parse. + * @param int $flags Any combination of [parser flags](http/Header/Parser#Parser.flags:). + * @param array &$header Successfully parsed headers. + * @throws \http\Exception\InvalidArgumentException + * @return int http\Header\Parser::STATE_* constant. + */ + public function parse(string $data, int $flags, array &$header = null) {} + /** + * Parse a stream. + * + * @param resource $stream The header stream to parse from. + * @param int $flags Any combination of [parser flags](http/Header/Parser#Parser.flags:). + * @param array &$headers The headers parsed. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return int http\Header\Parser::STATE_* constant. + */ + public function stream($stream, int $flags, array &$headers) {} } + namespace http\Message; + /** * The message body, represented as a PHP (temporary) stream. * * ***NOTE:*** * Currently, http\Message\Body::addForm() creates multipart/form-data bodies. */ -class Body implements \Serializable { - /** - * Create a new message body, optionally referencing $stream. - * - * @param resource $stream A stream to be used as message body. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - */ - function __construct($stream = null) {} - /** - * String cast handler. - * - * @return string the message body. - */ - function __toString() {} - /** - * Add form fields and files to the message body. - * - * ***NOTE:*** - * Currently, http\Message\Body::addForm() creates "multipart/form-data" bodies. - * - * @param array $fields List of form fields to add. - * @param array $files List of form files to add. - * - * $fields must look like: - * - * [ - * "field_name" => "value", - * "multi_field" => [ - * "value1", - * "value2" - * ] - * ] - * - * $files must look like: - * - * [ - * [ - * "name" => "field_name", - * "type" => "content/type", - * "file" => "/path/to/file.ext" - * ], [ - * "name" => "field_name2", - * "type" => "text/plain", - * "file" => "file.ext", - * "data" => "string" - * ], [ - * "name" => "field_name3", - * "type" => "image/jpeg", - * "file" => "file.ext", - * "data" => fopen("/home/mike/Pictures/mike.jpg","r") - * ] - * - * As you can see, a file structure must contain a "file" entry, which holds a file path, and an optional "data" entry, which may either contain a resource to read from or the actual data as string. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\RuntimeException - * @return \http\Message\Body self. - */ - function addForm(array $fields = null, array $files = null) {} - /** - * Add a part to a multipart body. - * - * @param \http\Message $part The message part. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\RuntimeException - * @return \http\Message\Body self. - */ - function addPart(\http\Message $part) {} - /** - * Append plain bytes to the message body. - * - * @param string $data The data to append to the body. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\RuntimeException - * @return \http\Message\Body self. - */ - function append(string $data) {} - /** - * Retrieve the ETag of the body. - * - * @return string|string|false string an Apache style ETag of inode, mtime and size in hex concatenated by hyphens if the message body stream is stat-able. - * or string a content hash (which algorithm is determined by INI http.etag.mode) if the stream is not stat-able. - * or false if http.etag.mode is not a known hash algorithm. - */ - function etag() {} - /** - * Retrieve any boundary of the message body. - * See http\Message::splitMultipartBody(). - * - * @return string|null string the message body boundary. - * or NULL if this message body has no boundary. - */ - function getBoundary() {} - /** - * Retrieve the underlying stream resource. - * - * @return resource the underlying stream. - */ - function getResource() {} - /** - * Implements Serializable. - * Alias of http\Message\Body::__toString(). - * - * @return string serialized message body. - */ - function serialize() {} - /** - * Stat size, atime, mtime and/or ctime. - * - * @param string $field A single stat field to retrieve. - * @return int|object int the requested stat field. - * or object stdClass instance holding all four stat fields. - */ - function stat(string $field = null) {} - /** - * Stream the message body through a callback. - * - * @param callable $callback The callback of the form function(http\Message\Body $from, string $data). - * @param int $offset Start to stream from this offset. - * @param int $maxlen Stream at most $maxlen bytes, or all if $maxlen is less than 1. - * @return \http\Message\Body self. - */ - function toCallback(callable $callback, int $offset = 0, int $maxlen = 0) {} - /** - * Stream the message body into another stream $stream, starting from $offset, streaming $maxlen at most. - * - * @param resource $stream The resource to write to. - * @param int $offset The starting offset. - * @param int $maxlen The maximum amount of data to stream. All content if less than 1. - * @return \http\Message\Body self. - */ - function toStream($stream, int $offset = 0, int $maxlen = 0) {} - /** - * Retrieve the message body serialized to a string. - * Alias of http\Message\Body::__toString(). - * - * @return string message body. - */ - function toString() {} - /** - * Implements Serializable. - * - * @param string $serialized The serialized message body. - */ - function unserialize($serialized) {} +class Body implements \Serializable +{ + /** + * Create a new message body, optionally referencing $stream. + * + * @param resource $stream A stream to be used as message body. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + */ + public function __construct($stream = null) {} + /** + * String cast handler. + * + * @return string the message body. + */ + public function __toString() {} + /** + * Add form fields and files to the message body. + * + * ***NOTE:*** + * Currently, http\Message\Body::addForm() creates "multipart/form-data" bodies. + * + * @param array $fields List of form fields to add. + * @param array $files List of form files to add. + * + * $fields must look like: + * + * [ + * "field_name" => "value", + * "multi_field" => [ + * "value1", + * "value2" + * ] + * ] + * + * $files must look like: + * + * [ + * [ + * "name" => "field_name", + * "type" => "content/type", + * "file" => "/path/to/file.ext" + * ], [ + * "name" => "field_name2", + * "type" => "text/plain", + * "file" => "file.ext", + * "data" => "string" + * ], [ + * "name" => "field_name3", + * "type" => "image/jpeg", + * "file" => "file.ext", + * "data" => fopen("/home/mike/Pictures/mike.jpg","r") + * ] + * + * As you can see, a file structure must contain a "file" entry, which holds a file path, and an optional "data" entry, which may either contain a resource to read from or the actual data as string. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\RuntimeException + * @return \http\Message\Body self. + */ + public function addForm(array $fields = null, array $files = null) {} + /** + * Add a part to a multipart body. + * + * @param \http\Message $part The message part. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\RuntimeException + * @return \http\Message\Body self. + */ + public function addPart(http\Message $part) {} + /** + * Append plain bytes to the message body. + * + * @param string $data The data to append to the body. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\RuntimeException + * @return \http\Message\Body self. + */ + public function append(string $data) {} + /** + * Retrieve the ETag of the body. + * + * @return string|string|false string an Apache style ETag of inode, mtime and size in hex concatenated by hyphens if the message body stream is stat-able. + * or string a content hash (which algorithm is determined by INI http.etag.mode) if the stream is not stat-able. + * or false if http.etag.mode is not a known hash algorithm. + */ + public function etag() {} + /** + * Retrieve any boundary of the message body. + * See http\Message::splitMultipartBody(). + * + * @return string|null string the message body boundary. + * or NULL if this message body has no boundary. + */ + public function getBoundary() {} + /** + * Retrieve the underlying stream resource. + * + * @return resource the underlying stream. + */ + public function getResource() {} + /** + * Implements Serializable. + * Alias of http\Message\Body::__toString(). + * + * @return string serialized message body. + */ + public function serialize() {} + /** + * Stat size, atime, mtime and/or ctime. + * + * @param string $field A single stat field to retrieve. + * @return int|object int the requested stat field. + * or object stdClass instance holding all four stat fields. + */ + public function stat(string $field = null) {} + /** + * Stream the message body through a callback. + * + * @param callable $callback The callback of the form function(http\Message\Body $from, string $data). + * @param int $offset Start to stream from this offset. + * @param int $maxlen Stream at most $maxlen bytes, or all if $maxlen is less than 1. + * @return \http\Message\Body self. + */ + public function toCallback(callable $callback, int $offset = 0, int $maxlen = 0) {} + /** + * Stream the message body into another stream $stream, starting from $offset, streaming $maxlen at most. + * + * @param resource $stream The resource to write to. + * @param int $offset The starting offset. + * @param int $maxlen The maximum amount of data to stream. All content if less than 1. + * @return \http\Message\Body self. + */ + public function toStream($stream, int $offset = 0, int $maxlen = 0) {} + /** + * Retrieve the message body serialized to a string. + * Alias of http\Message\Body::__toString(). + * + * @return string message body. + */ + public function toString() {} + /** + * Implements Serializable. + * + * @param string $serialized The serialized message body. + */ + public function unserialize($serialized) {} } /** * The parser which is underlying http\Message. @@ -3181,97 +3215,98 @@ function unserialize($serialized) {} * ***NOTE:*** * This class was added in v2.2.0. */ -class Parser { - /** - * Finish up parser at end of (incomplete) input. - */ - const CLEANUP = 1; - /** - * Soak up the rest of input if no entity length is deducible. - */ - const DUMB_BODIES = 2; - /** - * Redirect messages do not contain any body despite of indication of such. - */ - const EMPTY_REDIRECTS = 4; - /** - * Continue parsing while input is available. - */ - const GREEDY = 8; - /** - * Parse failure. - */ - const STATE_FAILURE = -1; - /** - * Expecting HTTP info (request/response line) or headers. - */ - const STATE_START = 0; - /** - * Parsing headers. - */ - const STATE_HEADER = 1; - /** - * Completed parsing headers. - */ - const STATE_HEADER_DONE = 2; - /** - * Parsing the body. - */ - const STATE_BODY = 3; - /** - * Soaking up all input as body. - */ - const STATE_BODY_DUMB = 4; - /** - * Reading body as indicated by `Content-Length` or `Content-Range`. - */ - const STATE_BODY_LENGTH = 5; - /** - * Parsing `chunked` encoded body. - */ - const STATE_BODY_CHUNKED = 6; - /** - * Finished parsing the body. - */ - const STATE_BODY_DONE = 7; - /** - * Updating Content-Length based on body size. - */ - const STATE_UPDATE_CL = 8; - /** - * Finished parsing the message. - * - * ***NOTE:*** - * Most of this states won't be returned to the user, because the parser immediately jumps to the next expected state. - */ - const STATE_DONE = 9; - /** - * Retrieve the current state of the parser. - * See http\Message\Parser::STATE_* constants. - * - * @throws \http\Exception\InvalidArgumentException - * @return int http\Message\Parser::STATE_* constant. - */ - function getState() {} - /** - * Parse a string. - * - * @param string $data The (part of the) message to parse. - * @param int $flags Any combination of [parser flags](http/Message/Parser#Parser.flags:). - * @param \http\Message $message The current state of the message parsed. - * @throws \http\Exception\InvalidArgumentException - * @return int http\Message\Parser::STATE_* constant. - */ - function parse(string $data, int $flags, \http\Message $message) {} - /** - * Parse a stream. - * - * @param resource $stream The message stream to parse from. - * @param int $flags Any combination of [parser flags](http/Message/Parser#Parser.flags:). - * @param \http\Message $message The current state of the message parsed. - * @throws \http\Exception\InvalidArgumentException - * @throws \http\Exception\UnexpectedValueException - * @return int http\Message\Parser::STATE_* constant. - */ - function stream($stream, int $flags, \http\Message $message) {} +class Parser +{ + /** + * Finish up parser at end of (incomplete) input. + */ + public const CLEANUP = 1; + /** + * Soak up the rest of input if no entity length is deducible. + */ + public const DUMB_BODIES = 2; + /** + * Redirect messages do not contain any body despite of indication of such. + */ + public const EMPTY_REDIRECTS = 4; + /** + * Continue parsing while input is available. + */ + public const GREEDY = 8; + /** + * Parse failure. + */ + public const STATE_FAILURE = -1; + /** + * Expecting HTTP info (request/response line) or headers. + */ + public const STATE_START = 0; + /** + * Parsing headers. + */ + public const STATE_HEADER = 1; + /** + * Completed parsing headers. + */ + public const STATE_HEADER_DONE = 2; + /** + * Parsing the body. + */ + public const STATE_BODY = 3; + /** + * Soaking up all input as body. + */ + public const STATE_BODY_DUMB = 4; + /** + * Reading body as indicated by `Content-Length` or `Content-Range`. + */ + public const STATE_BODY_LENGTH = 5; + /** + * Parsing `chunked` encoded body. + */ + public const STATE_BODY_CHUNKED = 6; + /** + * Finished parsing the body. + */ + public const STATE_BODY_DONE = 7; + /** + * Updating Content-Length based on body size. + */ + public const STATE_UPDATE_CL = 8; + /** + * Finished parsing the message. + * + * ***NOTE:*** + * Most of this states won't be returned to the user, because the parser immediately jumps to the next expected state. + */ + public const STATE_DONE = 9; + /** + * Retrieve the current state of the parser. + * See http\Message\Parser::STATE_* constants. + * + * @throws \http\Exception\InvalidArgumentException + * @return int http\Message\Parser::STATE_* constant. + */ + public function getState() {} + /** + * Parse a string. + * + * @param string $data The (part of the) message to parse. + * @param int $flags Any combination of [parser flags](http/Message/Parser#Parser.flags:). + * @param \http\Message $message The current state of the message parsed. + * @throws \http\Exception\InvalidArgumentException + * @return int http\Message\Parser::STATE_* constant. + */ + public function parse(string $data, int $flags, http\Message $message) {} + /** + * Parse a stream. + * + * @param resource $stream The message stream to parse from. + * @param int $flags Any combination of [parser flags](http/Message/Parser#Parser.flags:). + * @param \http\Message $message The current state of the message parsed. + * @throws \http\Exception\InvalidArgumentException + * @throws \http\Exception\UnexpectedValueException + * @return int http\Message\Parser::STATE_* constant. + */ + public function stream($stream, int $flags, http\Message $message) {} } diff --git a/ibm_db2/ibm_db2.php b/ibm_db2/ibm_db2.php index b39f33b4c..49fdbdc4c 100644 --- a/ibm_db2/ibm_db2.php +++ b/ibm_db2/ibm_db2.php @@ -49,7 +49,7 @@ * successful. If the connection attempt fails, db2_connect * returns false. */ -function db2_connect ($database, $username, $password, array $options = null) {} +function db2_connect($database, $username, $password, array $options = null) {} /** * Commits a transaction @@ -60,7 +60,7 @@ function db2_connect ($database, $username, $password, array $options = null) {} *

    * @return bool true on success or false on failure. */ -function db2_commit ($connection) {} +function db2_commit($connection) {} /** * Returns a persistent connection to a database @@ -94,7 +94,7 @@ function db2_commit ($connection) {} * password parameters. If the connection attempt fails, * db2_pconnect returns false. */ -function db2_pconnect ($database, $username, $password, array $options = null) {} +function db2_pconnect($database, $username, $password, array $options = null) {} /** * Returns or sets the AUTOCOMMIT state for a database connection @@ -126,7 +126,7 @@ function db2_pconnect ($database, $username, $password, array $options = null) { * AUTOCOMMIT state of the requested connection to the corresponding state. * true on success or false on failure.

    */ -function db2_autocommit ($connection, $value = null) {} +function db2_autocommit($connection, $value = null) {} /** * Binds a PHP variable to an SQL statement parameter @@ -152,7 +152,7 @@ function db2_autocommit ($connection, $value = null) {} *

    * @return bool true on success or false on failure. */ -function db2_bind_param ($stmt, $parameter_number, $variable_name, $parameter_type = null, $data_type = null, $precision = null, $scale = null) {} +function db2_bind_param($stmt, $parameter_number, $variable_name, $parameter_type = null, $data_type = null, $precision = null, $scale = null) {} /** * Closes a database connection @@ -162,7 +162,7 @@ function db2_bind_param ($stmt, $parameter_number, $variable_name, $parameter_ty *

    * @return bool true on success or false on failure. */ -function db2_close ($connection) {} +function db2_close($connection) {} /** * Returns a result set listing the columns and associated privileges for a table @@ -223,9 +223,9 @@ function db2_close ($connection) {} * other users. * */ -function db2_column_privileges ($connection, $qualifier = null, $schema = null, $table_name = null, $column_name = null) {} +function db2_column_privileges($connection, $qualifier = null, $schema = null, $table_name = null, $column_name = null) {} -function db2_columnprivileges () {} +function db2_columnprivileges() {} /** * Returns a result set listing the columns and associated metadata for a table @@ -344,7 +344,7 @@ function db2_columnprivileges () {} * * */ -function db2_columns ($connection, $qualifier = null, $schema = null, $table_name = null, $column_name = null) {} +function db2_columns($connection, $qualifier = null, $schema = null, $table_name = null, $column_name = null) {} /** * Returns a result set listing the foreign keys for a table @@ -446,9 +446,9 @@ function db2_columns ($connection, $qualifier = null, $schema = null, $table_nam * * */ -function db2_foreign_keys ($connection, $qualifier, $schema, $table_name) {} +function db2_foreign_keys($connection, $qualifier, $schema, $table_name) {} -function db2_foreignkeys () {} +function db2_foreignkeys() {} /** * Returns a result set listing primary keys for a table @@ -503,9 +503,9 @@ function db2_foreignkeys () {} * The name of the primary key. * */ -function db2_primary_keys ($connection, $qualifier, $schema, $table_name) {} +function db2_primary_keys($connection, $qualifier, $schema, $table_name) {} -function db2_primarykeys () {} +function db2_primarykeys() {} /** * Returns a result set listing stored procedure parameters @@ -661,9 +661,9 @@ function db2_primarykeys () {} * * */ -function db2_procedure_columns ($connection, $qualifier, $schema, $procedure, $parameter) {} +function db2_procedure_columns($connection, $qualifier, $schema, $procedure, $parameter) {} -function db2_procedurecolumns () {} +function db2_procedurecolumns() {} /** * Returns a result set listing the stored procedures registered in a database @@ -727,7 +727,7 @@ function db2_procedurecolumns () {} * procedure does not return a return value. * */ -function db2_procedures ($connection, $qualifier, $schema, $procedure) {} +function db2_procedures($connection, $qualifier, $schema, $procedure) {} /** * Returns a result set listing the unique row identifier columns for a table @@ -853,9 +853,9 @@ function db2_procedures ($connection, $qualifier, $schema, $procedure) {} * Always returns 1. * */ -function db2_special_columns ($connection, $qualifier, $schema, $table_name, $scope) {} +function db2_special_columns($connection, $qualifier, $schema, $table_name, $scope) {} -function db2_specialcolumns () {} +function db2_specialcolumns() {} /** * Returns a result set listing the index and statistics for a table @@ -1024,7 +1024,7 @@ function db2_specialcolumns () {} * * */ -function db2_statistics ($connection, $qualifier, $schema, $table_name, $unique) {} +function db2_statistics($connection, $qualifier, $schema, $table_name, $unique) {} /** * Returns a result set listing the tables and associated privileges in a database @@ -1089,9 +1089,9 @@ function db2_statistics ($connection, $qualifier, $schema, $table_name, $unique) * * */ -function db2_table_privileges ($connection, $qualifier = null, $schema = null, $table_name = null) {} +function db2_table_privileges($connection, $qualifier = null, $schema = null, $table_name = null) {} -function db2_tableprivileges () {} +function db2_tableprivileges() {} /** * Returns a result set listing the tables and associated metadata in a database @@ -1139,7 +1139,7 @@ function db2_tableprivileges () {} * Description of the table. * */ -function db2_tables ($connection, $qualifier = null, $schema = null, $table_name = null, $table_type = null) {} +function db2_tables($connection, $qualifier = null, $schema = null, $table_name = null, $table_type = null) {} /** * Executes an SQL statement directly @@ -1173,7 +1173,7 @@ function db2_tables ($connection, $qualifier = null, $schema = null, $table_name * @return resource|false A statement resource if the SQL statement was issued successfully, * or false if the database failed to execute the SQL statement. */ -function db2_exec ($connection, $statement, array $options = null) {} +function db2_exec($connection, $statement, array $options = null) {} /** * Prepares an SQL statement to be executed @@ -1209,7 +1209,7 @@ function db2_exec ($connection, $statement, array $options = null) {} * returned an error. You can determine which error was returned by calling * db2_stmt_error or db2_stmt_errormsg. */ -function db2_prepare ($connection, $statement, array $options = null) {} +function db2_prepare($connection, $statement, array $options = null) {} /** * Executes a prepared SQL statement @@ -1223,7 +1223,7 @@ function db2_prepare ($connection, $statement, array $options = null) {} *

    * @return bool true on success or false on failure. */ -function db2_execute ($stmt, array $parameters = null) {} +function db2_execute($stmt, array $parameters = null) {} /** * Returns a string containing the last SQL statement error message @@ -1234,7 +1234,7 @@ function db2_execute ($stmt, array $parameters = null) {} * @return string a string containing the error message and SQLCODE value for the * last error that occurred issuing an SQL statement. */ -function db2_stmt_errormsg ($stmt = null) {} +function db2_stmt_errormsg($stmt = null) {} /** * Returns the last connection error message and SQLCODE value @@ -1248,7 +1248,7 @@ function db2_stmt_errormsg ($stmt = null) {} * connection attempt, db2_conn_errormsg returns an empty * string. */ -function db2_conn_errormsg ($connection = null) {} +function db2_conn_errormsg($connection = null) {} /** * Returns a string containing the SQLSTATE returned by the last connection attempt @@ -1261,7 +1261,7 @@ function db2_conn_errormsg ($connection = null) {} * Returns an empty string if there is no error associated with the last * connection attempt. */ -function db2_conn_error ($connection = null) {} +function db2_conn_error($connection = null) {} /** * Returns a string containing the SQLSTATE returned by an SQL statement @@ -1271,7 +1271,7 @@ function db2_conn_error ($connection = null) {} *

    * @return string a string containing an SQLSTATE value. */ -function db2_stmt_error ($stmt = null) {} +function db2_stmt_error($stmt = null) {} /** * Requests the next result set from a stored procedure @@ -1284,7 +1284,7 @@ function db2_stmt_error ($stmt = null) {} * stored procedure returned another result set. Returns false if the stored * procedure did not return another result set. */ -function db2_next_result ($stmt) {} +function db2_next_result($stmt) {} /** * Returns the number of fields contained in a result set @@ -1296,7 +1296,7 @@ function db2_next_result ($stmt) {} * set associated with the specified statement resource. Returns false if * the statement resource is not a valid input value. */ -function db2_num_fields ($stmt) {} +function db2_num_fields($stmt) {} /** * Returns the number of rows affected by an SQL statement @@ -1307,7 +1307,7 @@ function db2_num_fields ($stmt) {} * @return int the number of rows affected by the last SQL statement issued by * the specified statement handle. */ -function db2_num_rows ($stmt) {} +function db2_num_rows($stmt) {} /** * Returns the name of the column in the result set @@ -1324,7 +1324,7 @@ function db2_num_rows ($stmt) {} * specified column does not exist in the result * set, db2_field_name returns false. */ -function db2_field_name ($stmt, $column) {} +function db2_field_name($stmt, $column) {} /** * Returns the maximum number of bytes required to display a column @@ -1341,7 +1341,7 @@ function db2_field_name ($stmt, $column) {} * display the specified column. If the column does not exist in the result * set, db2_field_display_size returns false. */ -function db2_field_display_size ($stmt, $column) {} +function db2_field_display_size($stmt, $column) {} /** * Returns the position of the named column in a result set @@ -1358,7 +1358,7 @@ function db2_field_display_size ($stmt, $column) {} * the result set. If the specified column does not exist in the result set, * db2_field_num returns false. */ -function db2_field_num ($stmt, $column) {} +function db2_field_num($stmt, $column) {} /** * Returns the precision of the indicated column in a result set @@ -1375,7 +1375,7 @@ function db2_field_num ($stmt, $column) {} * specified column does not exist in the result set, * db2_field_precision returns false. */ -function db2_field_precision ($stmt, $column) {} +function db2_field_precision($stmt, $column) {} /** * Returns the scale of the indicated column in a result set @@ -1392,7 +1392,7 @@ function db2_field_precision ($stmt, $column) {} * specified column does not exist in the result set, * db2_field_scale returns false. */ -function db2_field_scale ($stmt, $column) {} +function db2_field_scale($stmt, $column) {} /** * Returns the data type of the indicated column in a result set @@ -1409,7 +1409,7 @@ function db2_field_scale ($stmt, $column) {} * If the specified column does not exist in the result set, * db2_field_type returns false. */ -function db2_field_type ($stmt, $column) {} +function db2_field_type($stmt, $column) {} /** * Returns the width of the current value of the indicated column in a result set @@ -1427,7 +1427,7 @@ function db2_field_type ($stmt, $column) {} * exist in the result set, db2_field_width returns * false. */ -function db2_field_width ($stmt, $column) {} +function db2_field_width($stmt, $column) {} /** * Returns the cursor type used by a statement resource @@ -1439,7 +1439,7 @@ function db2_field_width ($stmt, $column) {} * resource uses a forward-only cursor or DB2_SCROLLABLE if * the statement resource uses a scrollable cursor. */ -function db2_cursor_type ($stmt) {} +function db2_cursor_type($stmt) {} /** * Rolls back a transaction @@ -1450,7 +1450,7 @@ function db2_cursor_type ($stmt) {} *

    * @return bool true on success or false on failure. */ -function db2_rollback ($connection) {} +function db2_rollback($connection) {} /** * Frees resources associated with the indicated statement resource @@ -1460,7 +1460,7 @@ function db2_rollback ($connection) {} *

    * @return bool true on success or false on failure. */ -function db2_free_stmt ($stmt) {} +function db2_free_stmt($stmt) {} /** * Returns a single column from a row in the result set @@ -1475,7 +1475,7 @@ function db2_free_stmt ($stmt) {} * @return mixed the value of the requested field if the field exists in the result * set. Returns NULL if the field does not exist, and issues a warning. */ -function db2_result ($stmt, $column) {} +function db2_result($stmt, $column) {} /** * Sets the result set pointer to the next row or requested row @@ -1490,7 +1490,7 @@ function db2_result ($stmt, $column) {} * @return bool true if the requested row exists in the result set. Returns * false if the requested row does not exist in the result set. */ -function db2_fetch_row ($stmt, $row_number = null) {} +function db2_fetch_row($stmt, $row_number = null) {} /** * Returns an array, indexed by column name, representing a row in a result set @@ -1508,7 +1508,7 @@ function db2_fetch_row ($stmt, $row_number = null) {} * there are no rows left in the result set, or if the row requested by * row_number does not exist in the result set. */ -function db2_fetch_assoc ($stmt, $row_number = null) {} +function db2_fetch_assoc($stmt, $row_number = null) {} /** * Returns an array, indexed by column position, representing a row in a result set @@ -1526,7 +1526,7 @@ function db2_fetch_assoc ($stmt, $row_number = null) {} * there are no rows left in the result set, or if the row requested by * row_number does not exist in the result set. */ -function db2_fetch_array ($stmt, $row_number = null) {} +function db2_fetch_array($stmt, $row_number = null) {} /** * Returns an array, indexed by both column name and position, representing a row in a result set @@ -1545,7 +1545,7 @@ function db2_fetch_array ($stmt, $row_number = null) {} * in the result set, or if the row requested by * row_number does not exist in the result set. */ -function db2_fetch_both ($stmt, $row_number = null) {} +function db2_fetch_both($stmt, $row_number = null) {} /** * Frees resources associated with a result set @@ -1555,7 +1555,7 @@ function db2_fetch_both ($stmt, $row_number = null) {} *

    * @return bool true on success or false on failure. */ -function db2_free_result ($stmt) {} +function db2_free_result($stmt) {} /** * Set options for connection or statement resources @@ -1596,9 +1596,9 @@ function db2_free_result ($stmt) {} *

    * @return bool true on success or false on failure. */ -function db2_set_option ($resource, array $options, $type) {} +function db2_set_option($resource, array $options, $type) {} -function db2_setoption () {} +function db2_setoption() {} /** * Returns an object with properties representing columns in the fetched row @@ -1628,7 +1628,7 @@ function db2_setoption () {} *

    * Returns false if no row was retrieved. */ -function db2_fetch_object ($stmt, $row_number = null) {} +function db2_fetch_object($stmt, $row_number = null) {} /** * Returns an object with properties that describe the DB2 database server @@ -1638,7 +1638,7 @@ function db2_fetch_object ($stmt, $row_number = null) {} *

    * @return object|false An object on a successful call. Returns false on failure. */ -function db2_server_info ($connection) {} +function db2_server_info($connection) {} /** * Returns an object with properties that describe the DB2 database client @@ -1648,7 +1648,7 @@ function db2_server_info ($connection) {} *

    * @return object|false An object on a successful call. Returns false on failure. */ -function db2_client_info ($connection) {} +function db2_client_info($connection) {} /** * Used to escape certain characters @@ -1662,7 +1662,7 @@ function db2_client_info ($connection) {} * @return string string_literal with the special characters * noted above prepended with backslashes. */ -function db2_escape_string ($string_literal) {} +function db2_escape_string($string_literal) {} /** * Gets a user defined size of LOB files with each invocation @@ -1679,7 +1679,7 @@ function db2_escape_string ($string_literal) {} * @return string|false The amount of data the user specifies. Returns * false if the data cannot be retrieved. */ -function db2_lob_read ($stmt, $colnum, $length) {} +function db2_lob_read($stmt, $colnum, $length) {} /** * Retrieves an option value for a statement resource or a connection resource @@ -1720,7 +1720,7 @@ function db2_lob_read ($stmt, $colnum, $length) {} * @return string|false The current setting of the connection attribute provided on success * or false on failure. */ -function db2_get_option ($resource, $option) {} +function db2_get_option($resource, $option) {} /** * Returns the auto generated ID of the last insert query that successfully executed on this connection. @@ -1735,28 +1735,27 @@ function db2_get_option ($resource, $option) {} * The value of this parameter cannot be a statement resource or result set resource. * @return string Returns the auto generated ID of last insert query that successfully executed on this connection. */ -function db2_last_insert_id ($resource) {} - +function db2_last_insert_id($resource) {} /** * Specifies that binary data shall be returned as is. This is the default * mode. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_BINARY', 1); +define('DB2_BINARY', 1); /** * Specifies that binary data shall be converted to a hexadecimal encoding * and returned as an ASCII string. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_CONVERT', 2); +define('DB2_CONVERT', 2); /** * Specifies that binary data shall be converted to a null value. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_PASSTHRU', 3); +define('DB2_PASSTHRU', 3); /** * Specifies a scrollable cursor for a statement resource. This mode enables @@ -1764,103 +1763,103 @@ function db2_last_insert_id ($resource) {} * IBM DB2 Universal Database. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_SCROLLABLE', 1); +define('DB2_SCROLLABLE', 1); /** * Specifies a forward-only cursor for a statement resource. This is the * default cursor type and is supported on all database servers. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_FORWARD_ONLY', 0); +define('DB2_FORWARD_ONLY', 0); /** * Specifies the PHP variable should be bound as an IN parameter for a * stored procedure. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_PARAM_IN', 1); +define('DB2_PARAM_IN', 1); /** * Specifies the PHP variable should be bound as an OUT parameter for a * stored procedure. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_PARAM_OUT', 4); +define('DB2_PARAM_OUT', 4); /** * Specifies the PHP variable should be bound as an INOUT parameter for a * stored procedure. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_PARAM_INOUT', 2); +define('DB2_PARAM_INOUT', 2); /** * Specifies that the column should be bound directly to a file for input. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_PARAM_FILE', 11); +define('DB2_PARAM_FILE', 11); /** * Specifies that autocommit should be turned on. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_AUTOCOMMIT_ON', 1); +define('DB2_AUTOCOMMIT_ON', 1); /** * Specifies that autocommit should be turned off. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_AUTOCOMMIT_OFF', 0); +define('DB2_AUTOCOMMIT_OFF', 0); /** * Specifies that deferred prepare should be turned on for the specified statement resource. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_DEFERRED_PREPARE_ON', 1); +define('DB2_DEFERRED_PREPARE_ON', 1); /** * Specifies that deferred prepare should be turned off for the specified statement resource. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_DEFERRED_PREPARE_OFF', 0); +define('DB2_DEFERRED_PREPARE_OFF', 0); /** * Specifies that the variable should be bound as a DOUBLE, FLOAT, or REAL * data type. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_DOUBLE', 8); +define('DB2_DOUBLE', 8); /** * Specifies that the variable should be bound as a SMALLINT, INTEGER, or * BIGINT data type. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_LONG', 4); +define('DB2_LONG', 4); /** * Specifies that the variable should be bound as a CHAR or VARCHAR data type. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_CHAR', 1); -define ('DB2_XML', -370); +define('DB2_CHAR', 1); +define('DB2_XML', -370); /** * Specifies that column names will be returned in their natural case. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_CASE_NATURAL', 0); +define('DB2_CASE_NATURAL', 0); /** * Specifies that column names will be returned in lower case. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_CASE_LOWER', 1); +define('DB2_CASE_LOWER', 1); /** * Specifies that column names will be returned in upper case. * @link https://php.net/manual/en/ibm-db2.constants.php */ -define ('DB2_CASE_UPPER', 2); +define('DB2_CASE_UPPER', 2); // End of ibm_db2 v.1.6.0 diff --git a/iconv/iconv.php b/iconv/iconv.php index f3e8dc235..3f59cd1fa 100644 --- a/iconv/iconv.php +++ b/iconv/iconv.php @@ -28,8 +28,7 @@ * @return string|false the converted string or FALSE on failure. */ #[Pure] -function iconv (string $from_encoding, string $to_encoding, string $string): string|false -{} +function iconv(string $from_encoding, string $to_encoding, string $string): string|false {} /** * Convert character encoding as output buffer handler @@ -40,8 +39,7 @@ function iconv (string $from_encoding, string $to_encoding, string $string): str * return values. */ #[Pure] -function ob_iconv_handler (string $contents, int $status): string -{} +function ob_iconv_handler(string $contents, int $status): string {} /** * Retrieve internal configuration variables of iconv extension @@ -62,8 +60,7 @@ function ob_iconv_handler (string $contents, int $status): string *

    */ #[Pure] -function iconv_get_encoding (string $type = "all"): array|string|false -{} +function iconv_get_encoding(string $type = "all"): array|string|false {} /** * Set current setting for character encoding conversion @@ -79,8 +76,7 @@ function iconv_get_encoding (string $type = "all"): array|string|false *

    * @return bool TRUE on success or FALSE on failure. */ -function iconv_set_encoding (string $type, string $encoding): bool -{} +function iconv_set_encoding(string $type, string $encoding): bool {} /** * Returns the character count of string @@ -96,8 +92,7 @@ function iconv_set_encoding (string $type, string $encoding): bool * @return int|false the character count of str, as an integer. False on error. */ #[Pure] -function iconv_strlen (string $string, ?string $encoding = 'ini_get("iconv.internal_encoding")'): int|false -{} +function iconv_strlen(string $string, ?string $encoding = 'ini_get("iconv.internal_encoding")'): int|false {} /** * Cut out part of a string @@ -152,8 +147,7 @@ function iconv_strlen (string $string, ?string $encoding = 'ini_get("iconv.inter *

    */ #[Pure] -function iconv_substr (string $string, int $offset, ?int $length, ?string $encoding = 'ini_get("iconv.internal_encoding")'): string|false -{} +function iconv_substr(string $string, int $offset, ?int $length, ?string $encoding = 'ini_get("iconv.internal_encoding")'): string|false {} /** * Finds position of first occurrence of a needle within a haystack @@ -181,8 +175,7 @@ function iconv_substr (string $string, int $offset, ?int $length, ?string $encod *

    */ #[Pure] -function iconv_strpos (string $haystack, string $needle, int $offset = 0, ?string $encoding = 'ini_get("iconv.internal_encoding")'): int|false -{} +function iconv_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = 'ini_get("iconv.internal_encoding")'): int|false {} /** * Finds the last occurrence of a needle within a haystack @@ -206,8 +199,7 @@ function iconv_strpos (string $haystack, string $needle, int $offset = 0, ?strin *

    */ #[Pure] -function iconv_strrpos (string $haystack, string $needle, ?string $encoding = 'ini_get("iconv.internal_encoding")'): int|false -{} +function iconv_strrpos(string $haystack, string $needle, ?string $encoding = 'ini_get("iconv.internal_encoding")'): int|false {} /** * Composes a MIME header field @@ -308,8 +300,7 @@ function iconv_strrpos (string $haystack, string $needle, ?string $encoding = 'i * or FALSE if an error occurs during the encoding. */ #[Pure] -function iconv_mime_encode (string $field_name, string $field_value, array $options): string|false -{} +function iconv_mime_encode(string $field_name, string $field_value, array $options): string|false {} /** * Decodes a MIME header field @@ -361,8 +352,7 @@ function iconv_mime_encode (string $field_name, string $field_value, array $opti * or FALSE if an error occurs during the decoding. */ #[Pure] -function iconv_mime_decode (string $string, int $mode = 0, ?string $encoding = 'ini_get("iconv.internal_encoding")'): string|false -{} +function iconv_mime_decode(string $string, int $mode = 0, ?string $encoding = 'ini_get("iconv.internal_encoding")'): string|false {} /** * Decodes multiple MIME header fields at once @@ -423,33 +413,30 @@ function iconv_mime_decode (string $string, int $mode = 0, ?string $encoding = ' *

    */ #[Pure] -function iconv_mime_decode_headers (string $headers, int $mode = 0, ?string $encoding = 'ini_get("iconv.internal_encoding")'): array|false -{} - +function iconv_mime_decode_headers(string $headers, int $mode = 0, ?string $encoding = 'ini_get("iconv.internal_encoding")'): array|false {} /** * string * @link https://php.net/manual/en/iconv.constants.php */ -define ('ICONV_IMPL', "unknown"); +define('ICONV_IMPL', "unknown"); /** * string * @link https://php.net/manual/en/iconv.constants.php */ -define ('ICONV_VERSION', 2.17); +define('ICONV_VERSION', 2.17); /** * integer * @link https://php.net/manual/en/iconv.constants.php */ -define ('ICONV_MIME_DECODE_STRICT', 1); +define('ICONV_MIME_DECODE_STRICT', 1); /** * integer * @link https://php.net/manual/en/iconv.constants.php */ -define ('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2); +define('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2); // End of iconv v. -?> diff --git a/igbinary/igbinary.php b/igbinary/igbinary.php index bf9c84905..c0c39c43b 100644 --- a/igbinary/igbinary.php +++ b/igbinary/igbinary.php @@ -38,4 +38,3 @@ function igbinary_serialize($value) {} function igbinary_unserialize($str) {} // End of igbinary v.1.0.0 -?> diff --git a/imagick/imagick.php b/imagick/imagick.php index 14374f122..f3110ca95 100644 --- a/imagick/imagick.php +++ b/imagick/imagick.php @@ -6,6773 +6,6769 @@ use JetBrains\PhpStorm\Deprecated; use JetBrains\PhpStorm\Pure; -class ImagickException extends Exception { -} +class ImagickException extends Exception {} -class ImagickDrawException extends Exception { -} +class ImagickDrawException extends Exception {} -class ImagickPixelIteratorException extends Exception { -} +class ImagickPixelIteratorException extends Exception {} -class ImagickPixelException extends Exception { -} +class ImagickPixelException extends Exception {} -class ImagickKernelException extends Exception { -} +class ImagickKernelException extends Exception {} /** * @method Imagick clone() (PECL imagick 2.0.0)
    Makes an exact copy of the Imagick object * @link https://php.net/manual/en/class.imagick.php */ -class Imagick implements Iterator, Countable { - const COLOR_BLACK = 11; - const COLOR_BLUE = 12; - const COLOR_CYAN = 13; - const COLOR_GREEN = 14; - const COLOR_RED = 15; - const COLOR_YELLOW = 16; - const COLOR_MAGENTA = 17; - const COLOR_OPACITY = 18; - const COLOR_ALPHA = 19; - const COLOR_FUZZ = 20; - const IMAGICK_EXTNUM = 30403; - const IMAGICK_EXTVER = "3.4.3"; - const QUANTUM_RANGE = 65535; - const USE_ZEND_MM = 0; - const COMPOSITE_DEFAULT = 40; - const COMPOSITE_UNDEFINED = 0; - const COMPOSITE_NO = 1; - const COMPOSITE_ADD = 2; - const COMPOSITE_ATOP = 3; - const COMPOSITE_BLEND = 4; - const COMPOSITE_BUMPMAP = 5; - const COMPOSITE_CLEAR = 7; - const COMPOSITE_COLORBURN = 8; - const COMPOSITE_COLORDODGE = 9; - const COMPOSITE_COLORIZE = 10; - const COMPOSITE_COPYBLACK = 11; - const COMPOSITE_COPYBLUE = 12; - const COMPOSITE_COPY = 13; - const COMPOSITE_COPYCYAN = 14; - const COMPOSITE_COPYGREEN = 15; - const COMPOSITE_COPYMAGENTA = 16; - const COMPOSITE_COPYOPACITY = 17; - const COMPOSITE_COPYRED = 18; - const COMPOSITE_COPYYELLOW = 19; - const COMPOSITE_DARKEN = 20; - const COMPOSITE_DSTATOP = 21; - const COMPOSITE_DST = 22; - const COMPOSITE_DSTIN = 23; - const COMPOSITE_DSTOUT = 24; - const COMPOSITE_DSTOVER = 25; - const COMPOSITE_DIFFERENCE = 26; - const COMPOSITE_DISPLACE = 27; - const COMPOSITE_DISSOLVE = 28; - const COMPOSITE_EXCLUSION = 29; - const COMPOSITE_HARDLIGHT = 30; - const COMPOSITE_HUE = 31; - const COMPOSITE_IN = 32; - const COMPOSITE_LIGHTEN = 33; - const COMPOSITE_LUMINIZE = 35; - const COMPOSITE_MINUS = 36; - const COMPOSITE_MODULATE = 37; - const COMPOSITE_MULTIPLY = 38; - const COMPOSITE_OUT = 39; - const COMPOSITE_OVER = 40; - const COMPOSITE_OVERLAY = 41; - const COMPOSITE_PLUS = 42; - const COMPOSITE_REPLACE = 43; - const COMPOSITE_SATURATE = 44; - const COMPOSITE_SCREEN = 45; - const COMPOSITE_SOFTLIGHT = 46; - const COMPOSITE_SRCATOP = 47; - const COMPOSITE_SRC = 48; - const COMPOSITE_SRCIN = 49; - const COMPOSITE_SRCOUT = 50; - const COMPOSITE_SRCOVER = 51; - const COMPOSITE_SUBTRACT = 52; - const COMPOSITE_THRESHOLD = 53; - const COMPOSITE_XOR = 54; - const COMPOSITE_CHANGEMASK = 6; - const COMPOSITE_LINEARLIGHT = 34; - const COMPOSITE_DIVIDE = 55; - const COMPOSITE_DISTORT = 56; - const COMPOSITE_BLUR = 57; - const COMPOSITE_PEGTOPLIGHT = 58; - const COMPOSITE_VIVIDLIGHT = 59; - const COMPOSITE_PINLIGHT = 60; - const COMPOSITE_LINEARDODGE = 61; - const COMPOSITE_LINEARBURN = 62; - const COMPOSITE_MATHEMATICS = 63; - const COMPOSITE_MODULUSADD = 2; - const COMPOSITE_MODULUSSUBTRACT = 52; - const COMPOSITE_MINUSDST = 36; - const COMPOSITE_DIVIDEDST = 55; - const COMPOSITE_DIVIDESRC = 64; - const COMPOSITE_MINUSSRC = 65; - const COMPOSITE_DARKENINTENSITY = 66; - const COMPOSITE_LIGHTENINTENSITY = 67; - const MONTAGEMODE_FRAME = 1; - const MONTAGEMODE_UNFRAME = 2; - const MONTAGEMODE_CONCATENATE = 3; - const STYLE_NORMAL = 1; - const STYLE_ITALIC = 2; - const STYLE_OBLIQUE = 3; - const STYLE_ANY = 4; - const FILTER_UNDEFINED = 0; - const FILTER_POINT = 1; - const FILTER_BOX = 2; - const FILTER_TRIANGLE = 3; - const FILTER_HERMITE = 4; - const FILTER_HANNING = 5; - const FILTER_HAMMING = 6; - const FILTER_BLACKMAN = 7; - const FILTER_GAUSSIAN = 8; - const FILTER_QUADRATIC = 9; - const FILTER_CUBIC = 10; - const FILTER_CATROM = 11; - const FILTER_MITCHELL = 12; - const FILTER_LANCZOS = 22; - const FILTER_BESSEL = 13; - const FILTER_SINC = 14; - const FILTER_KAISER = 16; - const FILTER_WELSH = 17; - const FILTER_PARZEN = 18; - const FILTER_LAGRANGE = 21; - const FILTER_SENTINEL = 31; - const FILTER_BOHMAN = 19; - const FILTER_BARTLETT = 20; - const FILTER_JINC = 13; - const FILTER_SINCFAST = 15; - const FILTER_ROBIDOUX = 26; - const FILTER_LANCZOSSHARP = 23; - const FILTER_LANCZOS2 = 24; - const FILTER_LANCZOS2SHARP = 25; - const FILTER_ROBIDOUXSHARP = 27; - const FILTER_COSINE = 28; - const FILTER_SPLINE = 29; - const FILTER_LANCZOSRADIUS = 30; - const IMGTYPE_UNDEFINED = 0; - const IMGTYPE_BILEVEL = 1; - const IMGTYPE_GRAYSCALE = 2; - const IMGTYPE_GRAYSCALEMATTE = 3; - const IMGTYPE_PALETTE = 4; - const IMGTYPE_PALETTEMATTE = 5; - const IMGTYPE_TRUECOLOR = 6; - const IMGTYPE_TRUECOLORMATTE = 7; - const IMGTYPE_COLORSEPARATION = 8; - const IMGTYPE_COLORSEPARATIONMATTE = 9; - const IMGTYPE_OPTIMIZE = 10; - const IMGTYPE_PALETTEBILEVELMATTE = 11; - const RESOLUTION_UNDEFINED = 0; - const RESOLUTION_PIXELSPERINCH = 1; - const RESOLUTION_PIXELSPERCENTIMETER = 2; - const COMPRESSION_UNDEFINED = 0; - const COMPRESSION_NO = 1; - const COMPRESSION_BZIP = 2; - const COMPRESSION_FAX = 6; - const COMPRESSION_GROUP4 = 7; - const COMPRESSION_JPEG = 8; - const COMPRESSION_JPEG2000 = 9; - const COMPRESSION_LOSSLESSJPEG = 10; - const COMPRESSION_LZW = 11; - const COMPRESSION_RLE = 12; - const COMPRESSION_ZIP = 13; - const COMPRESSION_DXT1 = 3; - const COMPRESSION_DXT3 = 4; - const COMPRESSION_DXT5 = 5; - const COMPRESSION_ZIPS = 14; - const COMPRESSION_PIZ = 15; - const COMPRESSION_PXR24 = 16; - const COMPRESSION_B44 = 17; - const COMPRESSION_B44A = 18; - const COMPRESSION_LZMA = 19; - const COMPRESSION_JBIG1 = 20; - const COMPRESSION_JBIG2 = 21; - const PAINT_POINT = 1; - const PAINT_REPLACE = 2; - const PAINT_FLOODFILL = 3; - const PAINT_FILLTOBORDER = 4; - const PAINT_RESET = 5; - const GRAVITY_NORTHWEST = 1; - const GRAVITY_NORTH = 2; - const GRAVITY_NORTHEAST = 3; - const GRAVITY_WEST = 4; - const GRAVITY_CENTER = 5; - const GRAVITY_EAST = 6; - const GRAVITY_SOUTHWEST = 7; - const GRAVITY_SOUTH = 8; - const GRAVITY_SOUTHEAST = 9; - const GRAVITY_FORGET = 0; - const GRAVITY_STATIC = 10; - const STRETCH_NORMAL = 1; - const STRETCH_ULTRACONDENSED = 2; - const STRETCH_EXTRACONDENSED = 3; - const STRETCH_CONDENSED = 4; - const STRETCH_SEMICONDENSED = 5; - const STRETCH_SEMIEXPANDED = 6; - const STRETCH_EXPANDED = 7; - const STRETCH_EXTRAEXPANDED = 8; - const STRETCH_ULTRAEXPANDED = 9; - const STRETCH_ANY = 10; - const ALIGN_UNDEFINED = 0; - const ALIGN_LEFT = 1; - const ALIGN_CENTER = 2; - const ALIGN_RIGHT = 3; - const DECORATION_NO = 1; - const DECORATION_UNDERLINE = 2; - const DECORATION_OVERLINE = 3; - const DECORATION_LINETROUGH = 4; - const DECORATION_LINETHROUGH = 4; - const NOISE_UNIFORM = 1; - const NOISE_GAUSSIAN = 2; - const NOISE_MULTIPLICATIVEGAUSSIAN = 3; - const NOISE_IMPULSE = 4; - const NOISE_LAPLACIAN = 5; - const NOISE_POISSON = 6; - const NOISE_RANDOM = 7; - const CHANNEL_UNDEFINED = 0; - const CHANNEL_RED = 1; - const CHANNEL_GRAY = 1; - const CHANNEL_CYAN = 1; - const CHANNEL_GREEN = 2; - const CHANNEL_MAGENTA = 2; - const CHANNEL_BLUE = 4; - const CHANNEL_YELLOW = 4; - const CHANNEL_ALPHA = 8; - const CHANNEL_OPACITY = 8; - const CHANNEL_MATTE = 8; - const CHANNEL_BLACK = 32; - const CHANNEL_INDEX = 32; - const CHANNEL_ALL = 134217727; - const CHANNEL_DEFAULT = 134217719; - const CHANNEL_RGBA = 15; - const CHANNEL_TRUEALPHA = 64; - const CHANNEL_RGBS = 128; - const CHANNEL_GRAY_CHANNELS = 128; - const CHANNEL_SYNC = 256; - const CHANNEL_COMPOSITES = 47; - const METRIC_UNDEFINED = 0; - const METRIC_ABSOLUTEERRORMETRIC = 1; - const METRIC_MEANABSOLUTEERROR = 2; - const METRIC_MEANERRORPERPIXELMETRIC = 3; - const METRIC_MEANSQUAREERROR = 4; - const METRIC_PEAKABSOLUTEERROR = 5; - const METRIC_PEAKSIGNALTONOISERATIO = 6; - const METRIC_ROOTMEANSQUAREDERROR = 7; - const METRIC_NORMALIZEDCROSSCORRELATIONERRORMETRIC = 8; - const METRIC_FUZZERROR = 9; - const PIXEL_CHAR = 1; - const PIXEL_DOUBLE = 2; - const PIXEL_FLOAT = 3; - const PIXEL_INTEGER = 4; - const PIXEL_LONG = 5; - const PIXEL_QUANTUM = 6; - const PIXEL_SHORT = 7; - const EVALUATE_UNDEFINED = 0; - const EVALUATE_ADD = 1; - const EVALUATE_AND = 2; - const EVALUATE_DIVIDE = 3; - const EVALUATE_LEFTSHIFT = 4; - const EVALUATE_MAX = 5; - const EVALUATE_MIN = 6; - const EVALUATE_MULTIPLY = 7; - const EVALUATE_OR = 8; - const EVALUATE_RIGHTSHIFT = 9; - const EVALUATE_SET = 10; - const EVALUATE_SUBTRACT = 11; - const EVALUATE_XOR = 12; - const EVALUATE_POW = 13; - const EVALUATE_LOG = 14; - const EVALUATE_THRESHOLD = 15; - const EVALUATE_THRESHOLDBLACK = 16; - const EVALUATE_THRESHOLDWHITE = 17; - const EVALUATE_GAUSSIANNOISE = 18; - const EVALUATE_IMPULSENOISE = 19; - const EVALUATE_LAPLACIANNOISE = 20; - const EVALUATE_MULTIPLICATIVENOISE = 21; - const EVALUATE_POISSONNOISE = 22; - const EVALUATE_UNIFORMNOISE = 23; - const EVALUATE_COSINE = 24; - const EVALUATE_SINE = 25; - const EVALUATE_ADDMODULUS = 26; - const EVALUATE_MEAN = 27; - const EVALUATE_ABS = 28; - const EVALUATE_EXPONENTIAL = 29; - const EVALUATE_MEDIAN = 30; - const EVALUATE_SUM = 31; - const COLORSPACE_UNDEFINED = 0; - const COLORSPACE_RGB = 1; - const COLORSPACE_GRAY = 2; - const COLORSPACE_TRANSPARENT = 3; - const COLORSPACE_OHTA = 4; - const COLORSPACE_LAB = 5; - const COLORSPACE_XYZ = 6; - const COLORSPACE_YCBCR = 7; - const COLORSPACE_YCC = 8; - const COLORSPACE_YIQ = 9; - const COLORSPACE_YPBPR = 10; - const COLORSPACE_YUV = 11; - const COLORSPACE_CMYK = 12; - const COLORSPACE_SRGB = 13; - const COLORSPACE_HSB = 14; - const COLORSPACE_HSL = 15; - const COLORSPACE_HWB = 16; - const COLORSPACE_REC601LUMA = 17; - const COLORSPACE_REC709LUMA = 19; - const COLORSPACE_LOG = 21; - const COLORSPACE_CMY = 22; - const COLORSPACE_LUV = 23; - const COLORSPACE_HCL = 24; - const COLORSPACE_LCH = 25; - const COLORSPACE_LMS = 26; - const COLORSPACE_LCHAB = 27; - const COLORSPACE_LCHUV = 28; - const COLORSPACE_SCRGB = 29; - const COLORSPACE_HSI = 30; - const COLORSPACE_HSV = 31; - const COLORSPACE_HCLP = 32; - const COLORSPACE_YDBDR = 33; - const COLORSPACE_REC601YCBCR = 18; - const COLORSPACE_REC709YCBCR = 20; - const VIRTUALPIXELMETHOD_UNDEFINED = 0; - const VIRTUALPIXELMETHOD_BACKGROUND = 1; - const VIRTUALPIXELMETHOD_CONSTANT = 2; - const VIRTUALPIXELMETHOD_EDGE = 4; - const VIRTUALPIXELMETHOD_MIRROR = 5; - const VIRTUALPIXELMETHOD_TILE = 7; - const VIRTUALPIXELMETHOD_TRANSPARENT = 8; - const VIRTUALPIXELMETHOD_MASK = 9; - const VIRTUALPIXELMETHOD_BLACK = 10; - const VIRTUALPIXELMETHOD_GRAY = 11; - const VIRTUALPIXELMETHOD_WHITE = 12; - const VIRTUALPIXELMETHOD_HORIZONTALTILE = 13; - const VIRTUALPIXELMETHOD_VERTICALTILE = 14; - const VIRTUALPIXELMETHOD_HORIZONTALTILEEDGE = 15; - const VIRTUALPIXELMETHOD_VERTICALTILEEDGE = 16; - const VIRTUALPIXELMETHOD_CHECKERTILE = 17; - const PREVIEW_UNDEFINED = 0; - const PREVIEW_ROTATE = 1; - const PREVIEW_SHEAR = 2; - const PREVIEW_ROLL = 3; - const PREVIEW_HUE = 4; - const PREVIEW_SATURATION = 5; - const PREVIEW_BRIGHTNESS = 6; - const PREVIEW_GAMMA = 7; - const PREVIEW_SPIFF = 8; - const PREVIEW_DULL = 9; - const PREVIEW_GRAYSCALE = 10; - const PREVIEW_QUANTIZE = 11; - const PREVIEW_DESPECKLE = 12; - const PREVIEW_REDUCENOISE = 13; - const PREVIEW_ADDNOISE = 14; - const PREVIEW_SHARPEN = 15; - const PREVIEW_BLUR = 16; - const PREVIEW_THRESHOLD = 17; - const PREVIEW_EDGEDETECT = 18; - const PREVIEW_SPREAD = 19; - const PREVIEW_SOLARIZE = 20; - const PREVIEW_SHADE = 21; - const PREVIEW_RAISE = 22; - const PREVIEW_SEGMENT = 23; - const PREVIEW_SWIRL = 24; - const PREVIEW_IMPLODE = 25; - const PREVIEW_WAVE = 26; - const PREVIEW_OILPAINT = 27; - const PREVIEW_CHARCOALDRAWING = 28; - const PREVIEW_JPEG = 29; - const RENDERINGINTENT_UNDEFINED = 0; - const RENDERINGINTENT_SATURATION = 1; - const RENDERINGINTENT_PERCEPTUAL = 2; - const RENDERINGINTENT_ABSOLUTE = 3; - const RENDERINGINTENT_RELATIVE = 4; - const INTERLACE_UNDEFINED = 0; - const INTERLACE_NO = 1; - const INTERLACE_LINE = 2; - const INTERLACE_PLANE = 3; - const INTERLACE_PARTITION = 4; - const INTERLACE_GIF = 5; - const INTERLACE_JPEG = 6; - const INTERLACE_PNG = 7; - const FILLRULE_UNDEFINED = 0; - const FILLRULE_EVENODD = 1; - const FILLRULE_NONZERO = 2; - const PATHUNITS_UNDEFINED = 0; - const PATHUNITS_USERSPACE = 1; - const PATHUNITS_USERSPACEONUSE = 2; - const PATHUNITS_OBJECTBOUNDINGBOX = 3; - const LINECAP_UNDEFINED = 0; - const LINECAP_BUTT = 1; - const LINECAP_ROUND = 2; - const LINECAP_SQUARE = 3; - const LINEJOIN_UNDEFINED = 0; - const LINEJOIN_MITER = 1; - const LINEJOIN_ROUND = 2; - const LINEJOIN_BEVEL = 3; - const RESOURCETYPE_UNDEFINED = 0; - const RESOURCETYPE_AREA = 1; - const RESOURCETYPE_DISK = 2; - const RESOURCETYPE_FILE = 3; - const RESOURCETYPE_MAP = 4; - const RESOURCETYPE_MEMORY = 5; - const RESOURCETYPE_TIME = 7; - const RESOURCETYPE_THROTTLE = 8; - const RESOURCETYPE_THREAD = 6; - const DISPOSE_UNRECOGNIZED = 0; - const DISPOSE_UNDEFINED = 0; - const DISPOSE_NONE = 1; - const DISPOSE_BACKGROUND = 2; - const DISPOSE_PREVIOUS = 3; - const INTERPOLATE_UNDEFINED = 0; - const INTERPOLATE_AVERAGE = 1; - const INTERPOLATE_BICUBIC = 2; - const INTERPOLATE_BILINEAR = 3; - const INTERPOLATE_FILTER = 4; - const INTERPOLATE_INTEGER = 5; - const INTERPOLATE_MESH = 6; - const INTERPOLATE_NEARESTNEIGHBOR = 7; - const INTERPOLATE_SPLINE = 8; - const LAYERMETHOD_UNDEFINED = 0; - const LAYERMETHOD_COALESCE = 1; - const LAYERMETHOD_COMPAREANY = 2; - const LAYERMETHOD_COMPARECLEAR = 3; - const LAYERMETHOD_COMPAREOVERLAY = 4; - const LAYERMETHOD_DISPOSE = 5; - const LAYERMETHOD_OPTIMIZE = 6; - const LAYERMETHOD_OPTIMIZEPLUS = 8; - const LAYERMETHOD_OPTIMIZETRANS = 9; - const LAYERMETHOD_COMPOSITE = 12; - const LAYERMETHOD_OPTIMIZEIMAGE = 7; - const LAYERMETHOD_REMOVEDUPS = 10; - const LAYERMETHOD_REMOVEZERO = 11; - const LAYERMETHOD_TRIMBOUNDS = 16; - const ORIENTATION_UNDEFINED = 0; - const ORIENTATION_TOPLEFT = 1; - const ORIENTATION_TOPRIGHT = 2; - const ORIENTATION_BOTTOMRIGHT = 3; - const ORIENTATION_BOTTOMLEFT = 4; - const ORIENTATION_LEFTTOP = 5; - const ORIENTATION_RIGHTTOP = 6; - const ORIENTATION_RIGHTBOTTOM = 7; - const ORIENTATION_LEFTBOTTOM = 8; - const DISTORTION_UNDEFINED = 0; - const DISTORTION_AFFINE = 1; - const DISTORTION_AFFINEPROJECTION = 2; - const DISTORTION_ARC = 9; - const DISTORTION_BILINEAR = 6; - const DISTORTION_PERSPECTIVE = 4; - const DISTORTION_PERSPECTIVEPROJECTION = 5; - const DISTORTION_SCALEROTATETRANSLATE = 3; - const DISTORTION_POLYNOMIAL = 8; - const DISTORTION_POLAR = 10; - const DISTORTION_DEPOLAR = 11; - const DISTORTION_BARREL = 14; - const DISTORTION_SHEPARDS = 16; - const DISTORTION_SENTINEL = 18; - const DISTORTION_BARRELINVERSE = 15; - const DISTORTION_BILINEARFORWARD = 6; - const DISTORTION_BILINEARREVERSE = 7; - const DISTORTION_RESIZE = 17; - const DISTORTION_CYLINDER2PLANE = 12; - const DISTORTION_PLANE2CYLINDER = 13; - const LAYERMETHOD_MERGE = 13; - const LAYERMETHOD_FLATTEN = 14; - const LAYERMETHOD_MOSAIC = 15; - const ALPHACHANNEL_ACTIVATE = 1; - const ALPHACHANNEL_RESET = 7; - const ALPHACHANNEL_SET = 8; - const ALPHACHANNEL_UNDEFINED = 0; - const ALPHACHANNEL_COPY = 3; - const ALPHACHANNEL_DEACTIVATE = 4; - const ALPHACHANNEL_EXTRACT = 5; - const ALPHACHANNEL_OPAQUE = 6; - const ALPHACHANNEL_SHAPE = 9; - const ALPHACHANNEL_TRANSPARENT = 10; - const SPARSECOLORMETHOD_UNDEFINED = 0; - const SPARSECOLORMETHOD_BARYCENTRIC = 1; - const SPARSECOLORMETHOD_BILINEAR = 7; - const SPARSECOLORMETHOD_POLYNOMIAL = 8; - const SPARSECOLORMETHOD_SPEPARDS = 16; - const SPARSECOLORMETHOD_VORONOI = 18; - const SPARSECOLORMETHOD_INVERSE = 19; - const DITHERMETHOD_UNDEFINED = 0; - const DITHERMETHOD_NO = 1; - const DITHERMETHOD_RIEMERSMA = 2; - const DITHERMETHOD_FLOYDSTEINBERG = 3; - const FUNCTION_UNDEFINED = 0; - const FUNCTION_POLYNOMIAL = 1; - const FUNCTION_SINUSOID = 2; - const ALPHACHANNEL_BACKGROUND = 2; - const FUNCTION_ARCSIN = 3; - const FUNCTION_ARCTAN = 4; - const ALPHACHANNEL_FLATTEN = 11; - const ALPHACHANNEL_REMOVE = 12; - const STATISTIC_GRADIENT = 1; - const STATISTIC_MAXIMUM = 2; - const STATISTIC_MEAN = 3; - const STATISTIC_MEDIAN = 4; - const STATISTIC_MINIMUM = 5; - const STATISTIC_MODE = 6; - const STATISTIC_NONPEAK = 7; - const STATISTIC_STANDARD_DEVIATION = 8; - const MORPHOLOGY_CONVOLVE = 1; - const MORPHOLOGY_CORRELATE = 2; - const MORPHOLOGY_ERODE = 3; - const MORPHOLOGY_DILATE = 4; - const MORPHOLOGY_ERODE_INTENSITY = 5; - const MORPHOLOGY_DILATE_INTENSITY = 6; - const MORPHOLOGY_DISTANCE = 7; - const MORPHOLOGY_OPEN = 8; - const MORPHOLOGY_CLOSE = 9; - const MORPHOLOGY_OPEN_INTENSITY = 10; - const MORPHOLOGY_CLOSE_INTENSITY = 11; - const MORPHOLOGY_SMOOTH = 12; - const MORPHOLOGY_EDGE_IN = 13; - const MORPHOLOGY_EDGE_OUT = 14; - const MORPHOLOGY_EDGE = 15; - const MORPHOLOGY_TOP_HAT = 16; - const MORPHOLOGY_BOTTOM_HAT = 17; - const MORPHOLOGY_HIT_AND_MISS = 18; - const MORPHOLOGY_THINNING = 19; - const MORPHOLOGY_THICKEN = 20; - const MORPHOLOGY_VORONOI = 21; - const MORPHOLOGY_ITERATIVE = 22; - const KERNEL_UNITY = 1; - const KERNEL_GAUSSIAN = 2; - const KERNEL_DIFFERENCE_OF_GAUSSIANS = 3; - const KERNEL_LAPLACIAN_OF_GAUSSIANS = 4; - const KERNEL_BLUR = 5; - const KERNEL_COMET = 6; - const KERNEL_LAPLACIAN = 7; - const KERNEL_SOBEL = 8; - const KERNEL_FREI_CHEN = 9; - const KERNEL_ROBERTS = 10; - const KERNEL_PREWITT = 11; - const KERNEL_COMPASS = 12; - const KERNEL_KIRSCH = 13; - const KERNEL_DIAMOND = 14; - const KERNEL_SQUARE = 15; - const KERNEL_RECTANGLE = 16; - const KERNEL_OCTAGON = 17; - const KERNEL_DISK = 18; - const KERNEL_PLUS = 19; - const KERNEL_CROSS = 20; - const KERNEL_RING = 21; - const KERNEL_PEAKS = 22; - const KERNEL_EDGES = 23; - const KERNEL_CORNERS = 24; - const KERNEL_DIAGONALS = 25; - const KERNEL_LINE_ENDS = 26; - const KERNEL_LINE_JUNCTIONS = 27; - const KERNEL_RIDGES = 28; - const KERNEL_CONVEX_HULL = 29; - const KERNEL_THIN_SE = 30; - const KERNEL_SKELETON = 31; - const KERNEL_CHEBYSHEV = 32; - const KERNEL_MANHATTAN = 33; - const KERNEL_OCTAGONAL = 34; - const KERNEL_EUCLIDEAN = 35; - const KERNEL_USER_DEFINED = 36; - const KERNEL_BINOMIAL = 37; - const DIRECTION_LEFT_TO_RIGHT = 2; - const DIRECTION_RIGHT_TO_LEFT = 1; - const NORMALIZE_KERNEL_NONE = 0; - const NORMALIZE_KERNEL_VALUE = 8192; - const NORMALIZE_KERNEL_CORRELATE = 65536; - const NORMALIZE_KERNEL_PERCENT = 4096; - - /** - * (PECL imagick 2.0.0)
    - * Removes repeated portions of images to optimize - * @link https://php.net/manual/en/imagick.optimizeimagelayers.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function optimizeImageLayers () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the maximum bounding region between images - * @link https://php.net/manual/en/imagick.compareimagelayers.php - * @param int $method

    - * One of the layer method constants. - *

    - * @return Imagick TRUE on success. - * @throws ImagickException on error. - */ - public function compareImageLayers ($method) {} - - /** - * (PECL imagick 2.0.0)
    - * Quickly fetch attributes - * @link https://php.net/manual/en/imagick.pingimageblob.php - * @param string $image

    - * A string containing the image. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function pingImageBlob ($image) {} - - /** - * (PECL imagick 2.0.0)
    - * Get basic image attributes in a lightweight manner - * @link https://php.net/manual/en/imagick.pingimagefile.php - * @param resource $filehandle

    - * An open filehandle to the image. - *

    - * @param string $fileName [optional]

    - * Optional filename for this image. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function pingImageFile ($filehandle, $fileName = null) {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a vertical mirror image - * @link https://php.net/manual/en/imagick.transposeimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function transposeImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a horizontal mirror image - * @link https://php.net/manual/en/imagick.transverseimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function transverseImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Remove edges from the image - * @link https://php.net/manual/en/imagick.trimimage.php - * @param float $fuzz

    - * By default target must match a particular pixel color exactly. - * However, in many cases two colors may differ by a small amount. - * The fuzz member of image defines how much tolerance is acceptable - * to consider two colors as the same. This parameter represents the variation - * on the quantum range. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function trimImage ($fuzz) {} - - /** - * (PECL imagick 2.0.0)
    - * Applies wave filter to the image - * @link https://php.net/manual/en/imagick.waveimage.php - * @param float $amplitude

    - * The amplitude of the wave. - *

    - * @param float $length

    - * The length of the wave. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function waveImage ($amplitude, $length) {} - - /** - * (PECL imagick 2.0.0)
    - * Adds vignette filter to the image - * @link https://php.net/manual/en/imagick.vignetteimage.php - * @param float $blackPoint

    - * The black point. - *

    - * @param float $whitePoint

    - * The white point - *

    - * @param int $x

    - * X offset of the ellipse - *

    - * @param int $y

    - * Y offset of the ellipse - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function vignetteImage ($blackPoint, $whitePoint, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Discards all but one of any pixel color - * @link https://php.net/manual/en/imagick.uniqueimagecolors.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function uniqueImageColors () {} - - /** - * (PECL imagick 2.0.0)
    - * Return if the image has a matte channel - * @link https://php.net/manual/en/imagick.getimagematte.php - * @return bool TRUE on success or FALSE on failure. - * @throws ImagickException on error. - */ - #[Deprecated] - #[Pure] - public function getImageMatte () {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image matte channel - * @link https://php.net/manual/en/imagick.setimagematte.php - * @param bool $matte

    - * True activates the matte channel and false disables it. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageMatte ($matte) {} - - /** - * Adaptively resize image with data dependent triangulation - * - * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.
    - * If false, the calculations should produce the same results as ImageMagick CLI does.
    - *
    - * Note: The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. - * In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. - * @link https://php.net/manual/en/imagick.adaptiveresizeimage.php - * @param int $columns The number of columns in the scaled image. - * @param int $rows The number of rows in the scaled image. - * @param bool $bestfit [optional] Whether to fit the image inside a bounding box.
    - * The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. - * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE - * @return bool TRUE on success - * @throws ImagickException Throws ImagickException on error - * @since 2.0.0 - */ - public function adaptiveResizeImage ($columns, $rows, $bestfit = false, $legacy = false) {} - - /** - * (PECL imagick 2.0.0)
    - * Simulates a pencil sketch - * @link https://php.net/manual/en/imagick.sketchimage.php - * @param float $radius

    - * The radius of the Gaussian, in pixels, not counting the center pixel - *

    - * @param float $sigma

    - * The standard deviation of the Gaussian, in pixels. - *

    - * @param float $angle

    - * Apply the effect along this angle. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function sketchImage ($radius, $sigma, $angle) {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a 3D effect - * @link https://php.net/manual/en/imagick.shadeimage.php - * @param bool $gray

    - * A value other than zero shades the intensity of each pixel. - *

    - * @param float $azimuth

    - * Defines the light source direction. - *

    - * @param float $elevation

    - * Defines the light source direction. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function shadeImage ($gray, $azimuth, $elevation) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the size offset - * @link https://php.net/manual/en/imagick.getsizeoffset.php - * @return int the size offset associated with the Imagick object. - * @throws ImagickException on error. - */ - #[Pure] - public function getSizeOffset () {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the size and offset of the Imagick object - * @link https://php.net/manual/en/imagick.setsizeoffset.php - * @param int $columns

    - * The width in pixels. - *

    - * @param int $rows

    - * The height in pixels. - *

    - * @param int $offset

    - * The image offset. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setSizeOffset ($columns, $rows, $offset) {} - - /** - * (PECL imagick 2.0.0)
    - * Adds adaptive blur filter to image - * @link https://php.net/manual/en/imagick.adaptiveblurimage.php - * @param float $radius

    - * The radius of the Gaussian, in pixels, not counting the center pixel. - * Provide a value of 0 and the radius will be chosen automagically. - *

    - * @param float $sigma

    - * The standard deviation of the Gaussian, in pixels. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function adaptiveBlurImage ($radius, $sigma, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * (PECL imagick 2.0.0)
    - * Enhances the contrast of a color image - * @link https://php.net/manual/en/imagick.contraststretchimage.php - * @param float $black_point

    - * The black point. - *

    - * @param float $white_point

    - * The white point. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Imagick::CHANNEL_ALL. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function contrastStretchImage ($black_point, $white_point, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Adaptively sharpen the image - * @link https://php.net/manual/en/imagick.adaptivesharpenimage.php - * @param float $radius

    - * The radius of the Gaussian, in pixels, not counting the center pixel. Use 0 for auto-select. - *

    - * @param float $sigma

    - * The standard deviation of the Gaussian, in pixels. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function adaptiveSharpenImage ($radius, $sigma, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a high-contrast, two-color image - * @link https://php.net/manual/en/imagick.randomthresholdimage.php - * @param float $low

    - * The low point - *

    - * @param float $high

    - * The high point - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function randomThresholdImage ($low, $high, $channel = Imagick::CHANNEL_ALL) {} - - /** - * @param $xRounding - * @param $yRounding - * @param $strokeWidth [optional] - * @param $displace [optional] - * @param $sizeCorrection [optional] - * @throws ImagickException on error. - */ - public function roundCornersImage ($xRounding, $yRounding, $strokeWidth, $displace, $sizeCorrection) {} - - /** - * (PECL imagick 2.0.0)
    - * Rounds image corners - * Alias to {@see Imagick::roundCornersImage} - * @link https://php.net/manual/en/imagick.roundcorners.php - * @param float $x_rounding

    - * x rounding - *

    - * @param float $y_rounding

    - * y rounding - *

    - * @param float $stroke_width [optional]

    - * stroke width - *

    - * @param float $displace [optional]

    - * image displace - *

    - * @param float $size_correction [optional]

    - * size correction - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated(replacement: "%class%->roundCornersImage(%parametersList%)")] - public function roundCorners ($x_rounding, $y_rounding, $stroke_width = 10.0, $displace = 5.0, $size_correction = -6.0) {} - - /** - * (PECL imagick 2.0.0)
    - * Set the iterator position - * @link https://php.net/manual/en/imagick.setiteratorindex.php - * @param int $index

    - * The position to set the iterator to - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setIteratorIndex ($index) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the index of the current active image - * @link https://php.net/manual/en/imagick.getiteratorindex.php - * @return int an integer containing the index of the image in the stack. - */ - #[Pure] - public function getIteratorIndex () {} - - /** - * (PECL imagick 2.0.0)
    - * Convenience method for setting crop size and the image geometry - * @link https://php.net/manual/en/imagick.transformimage.php - * @param string $crop

    - * A crop geometry string. This geometry defines a subregion of the image to crop. - *

    - * @param string $geometry

    - * An image geometry string. This geometry defines the final size of the image. - *

    - * @return Imagick TRUE on success. - * @throws ImagickException on error. - */ - public function transformImage ($crop, $geometry) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image opacity level - * @link https://php.net/manual/en/imagick.setimageopacity.php - * @param float $opacity

    - * The level of transparency: 1.0 is fully opaque and 0.0 is fully - * transparent. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageOpacity ($opacity) {} - - /** - * (PECL imagick 2.2.2)
    - * Performs an ordered dither - * @link https://php.net/manual/en/imagick.orderedposterizeimage.php - * @param string $threshold_map

    - * A string containing the name of the threshold dither map to use - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function orderedPosterizeImage ($threshold_map, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Simulates a Polaroid picture - * @link https://php.net/manual/en/imagick.polaroidimage.php - * @param ImagickDraw $properties

    - * The polaroid properties - *

    - * @param float $angle

    - * The polaroid angle - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function polaroidImage (ImagickDraw $properties, $angle) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the named image property - * @link https://php.net/manual/en/imagick.getimageproperty.php - * @param string $name

    - * name of the property (for example Exif:DateTime) - *

    - * @return string|false a string containing the image property, false if a - * property with the given name does not exist. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageProperty ($name) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets an image property - * @link https://php.net/manual/en/imagick.setimageproperty.php - * @param string $name - * @param string $value - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageProperty ($name, $value) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image interpolate pixel method - * @link https://php.net/manual/en/imagick.setimageinterpolatemethod.php - * @param int $method

    - * The method is one of the Imagick::INTERPOLATE_* constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageInterpolateMethod ($method) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the interpolation method - * @link https://php.net/manual/en/imagick.getimageinterpolatemethod.php - * @return int the interpolate method on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageInterpolateMethod () {} - - /** - * (PECL imagick 2.0.0)
    - * Stretches with saturation the image intensity - * @link https://php.net/manual/en/imagick.linearstretchimage.php - * @param float $blackPoint

    - * The image black point - *

    - * @param float $whitePoint

    - * The image white point - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function linearStretchImage ($blackPoint, $whitePoint) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the image length in bytes - * @link https://php.net/manual/en/imagick.getimagelength.php - * @return int an int containing the current image size. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageLength () {} - - /** - * (No version information available, might only be in SVN)
    - * Set image size - * @link https://php.net/manual/en/imagick.extentimage.php - * @param int $width

    - * The new width - *

    - * @param int $height

    - * The new height - *

    - * @param int $x

    - * X position for the new size - *

    - * @param int $y

    - * Y position for the new size - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function extentImage ($width, $height, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image orientation - * @link https://php.net/manual/en/imagick.getimageorientation.php - * @return int an int on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageOrientation () {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image orientation - * @link https://php.net/manual/en/imagick.setimageorientation.php - * @param int $orientation

    - * One of the orientation constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageOrientation ($orientation) {} - - /** - * (PECL imagick 2.1.0)
    - * Changes the color value of any pixel that matches target - * @link https://php.net/manual/en/imagick.paintfloodfillimage.php - * @param mixed $fill

    - * ImagickPixel object or a string containing the fill color - *

    - * @param float $fuzz

    - * The amount of fuzz. For example, set fuzz to 10 and the color red at - * intensities of 100 and 102 respectively are now interpreted as the - * same color for the purposes of the floodfill. - *

    - * @param mixed $bordercolor

    - * ImagickPixel object or a string containing the border color - *

    - * @param int $x

    - * X start position of the floodfill - *

    - * @param int $y

    - * Y start position of the floodfill - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function paintFloodfillImage ($fill, $fuzz, $bordercolor, $x, $y, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Replaces colors in the image from a color lookup table. Optional second parameter to replace colors in a specific channel. This method is available if Imagick has been compiled against ImageMagick version 6.3.6 or newer. - * @link https://php.net/manual/en/imagick.clutimage.php - * @param Imagick $lookup_table

    - * Imagick object containing the color lookup table - *

    - * @param int $channel [optional]

    - * The Channeltype - * constant. When not supplied, default channels are replaced. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - * @since 2.0.0 - */ - public function clutImage (Imagick $lookup_table, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the image properties - * @link https://php.net/manual/en/imagick.getimageproperties.php - * @param string $pattern [optional]

    - * The pattern for property names. - *

    - * @param bool $only_names [optional]

    - * Whether to return only property names. If FALSE then also the values are returned - *

    - * @return array an array containing the image properties or property names. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageProperties ($pattern = "*", $only_names = true) {} - - /** - * (PECL imagick 2.2.0)
    - * Returns the image profiles - * @link https://php.net/manual/en/imagick.getimageprofiles.php - * @param string $pattern [optional]

    - * The pattern for profile names. - *

    - * @param bool $include_values [optional]

    - * Whether to return only profile names. If FALSE then only profile names will be returned. - *

    - * @return array an array containing the image profiles or profile names. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageProfiles ($pattern = "*", $include_values = true) {} - - /** - * (PECL imagick 2.0.1)
    - * Distorts an image using various distortion methods - * @link https://php.net/manual/en/imagick.distortimage.php - * @param int $method

    - * The method of image distortion. See distortion constants - *

    - * @param array $arguments

    - * The arguments for this distortion method - *

    - * @param bool $bestfit

    - * Attempt to resize destination to fit distorted source - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function distortImage ($method, array $arguments, $bestfit) {} - - /** - * (No version information available, might only be in SVN)
    - * Writes an image to a filehandle - * @link https://php.net/manual/en/imagick.writeimagefile.php - * @param resource $filehandle

    - * Filehandle where to write the image - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function writeImageFile ($filehandle) {} - - /** - * (No version information available, might only be in SVN)
    - * Writes frames to a filehandle - * @link https://php.net/manual/en/imagick.writeimagesfile.php - * @param resource $filehandle

    - * Filehandle where to write the images - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function writeImagesFile ($filehandle) {} - - /** - * (No version information available, might only be in SVN)
    - * Reset image page - * @link https://php.net/manual/en/imagick.resetimagepage.php - * @param string $page

    - * The page definition. For example 7168x5147+0+0 - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function resetImagePage ($page) {} - - /** - * (No version information available, might only be in SVN)
    - * Sets image clip mask - * @link https://php.net/manual/en/imagick.setimageclipmask.php - * @param Imagick $clip_mask

    - * The Imagick object containing the clip mask - *

    - * @return bool TRUE on success. - */ - public function setImageClipMask (Imagick $clip_mask) {} - - /** - * (No version information available, might only be in SVN)
    - * Gets image clip mask - * @link https://php.net/manual/en/imagick.getimageclipmask.php - * @return Imagick an Imagick object containing the clip mask. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageClipMask () {} - - /** - * (No version information available, might only be in SVN)
    - * Animates an image or images - * @link https://php.net/manual/en/imagick.animateimages.php - * @param string $x_server

    - * X server address - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function animateImages ($x_server) {} - - /** - * (No version information available, might only be in SVN)
    - * Recolors image - * @link https://php.net/manual/en/imagick.recolorimage.php - * @param array $matrix

    - * The matrix containing the color values - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function recolorImage (array $matrix) {} - - /** - * (PECL imagick 2.1.0)
    - * Sets font - * @link https://php.net/manual/en/imagick.setfont.php - * @param string $font

    - * Font name or a filename - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setFont ($font) {} - - /** - * (PECL imagick 2.1.0)
    - * Gets font - * @link https://php.net/manual/en/imagick.getfont.php - * @return string|false the string containing the font name or FALSE if not font is set. - */ - #[Pure] - public function getFont () {} - - /** - * (PECL imagick 2.1.0)
    - * Sets point size - * @link https://php.net/manual/en/imagick.setpointsize.php - * @param float $point_size

    - * Point size - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setPointSize ($point_size) {} - - /** - * (No version information available, might only be in SVN)
    - * Gets point size - * @link https://php.net/manual/en/imagick.getpointsize.php - * @return float a float containing the point size. - */ - #[Pure] - public function getPointSize () {} - - /** - * (PECL imagick 2.1.0)
    - * Merges image layers - * @link https://php.net/manual/en/imagick.mergeimagelayers.php - * @param int $layer_method

    - * One of the Imagick::LAYERMETHOD_* constants - *

    - * @return Imagick Returns an Imagick object containing the merged image. - * @throws ImagickException - */ - public function mergeImageLayers ($layer_method) {} - - /** - * (No version information available, might only be in SVN)
    - * Sets image alpha channel - * @link https://php.net/manual/en/imagick.setimagealphachannel.php - * @param int $mode

    - * One of the Imagick::ALPHACHANNEL_* constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageAlphaChannel ($mode) {} - - /** - * (No version information available, might only be in SVN)
    - * Changes the color value of any pixel that matches target - * @link https://php.net/manual/en/imagick.floodfillpaintimage.php - * @param mixed $fill

    - * ImagickPixel object or a string containing the fill color - *

    - * @param float $fuzz

    - * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. - *

    - * @param mixed $target

    - * ImagickPixel object or a string containing the target color to paint - *

    - * @param int $x

    - * X start position of the floodfill - *

    - * @param int $y

    - * Y start position of the floodfill - *

    - * @param bool $invert

    - * If TRUE paints any pixel that does not match the target color. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function floodFillPaintImage ($fill, $fuzz, $target, $x, $y, $invert, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * (No version information available, might only be in SVN)
    - * Changes the color value of any pixel that matches target - * @link https://php.net/manual/en/imagick.opaquepaintimage.php - * @param mixed $target

    - * ImagickPixel object or a string containing the color to change - *

    - * @param mixed $fill

    - * The replacement color - *

    - * @param float $fuzz

    - * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. - *

    - * @param bool $invert

    - * If TRUE paints any pixel that does not match the target color. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function opaquePaintImage ($target, $fill, $fuzz, $invert, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * (No version information available, might only be in SVN)
    - * Paints pixels transparent - * @link https://php.net/manual/en/imagick.transparentpaintimage.php - * @param mixed $target

    - * The target color to paint - *

    - * @param float $alpha

    - * The level of transparency: 1.0 is fully opaque and 0.0 is fully transparent. - *

    - * @param float $fuzz

    - * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. - *

    - * @param bool $invert

    - * If TRUE paints any pixel that does not match the target color. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function transparentPaintImage ($target, $alpha, $fuzz, $invert) {} - - /** - * (No version information available, might only be in SVN)
    - * Animates an image or images - * @link https://php.net/manual/en/imagick.liquidrescaleimage.php - * @param int $width

    - * The width of the target size - *

    - * @param int $height

    - * The height of the target size - *

    - * @param float $delta_x

    - * How much the seam can traverse on x-axis. - * Passing 0 causes the seams to be straight. - *

    - * @param float $rigidity

    - * Introduces a bias for non-straight seams. This parameter is - * typically 0. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function liquidRescaleImage ($width, $height, $delta_x, $rigidity) {} - - /** - * (No version information available, might only be in SVN)
    - * Enciphers an image - * @link https://php.net/manual/en/imagick.encipherimage.php - * @param string $passphrase

    - * The passphrase - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function encipherImage ($passphrase) {} - - /** - * (No version information available, might only be in SVN)
    - * Deciphers an image - * @link https://php.net/manual/en/imagick.decipherimage.php - * @param string $passphrase

    - * The passphrase - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function decipherImage ($passphrase) {} - - /** - * (No version information available, might only be in SVN)
    - * Sets the gravity - * @link https://php.net/manual/en/imagick.setgravity.php - * @param int $gravity

    - * The gravity property. Refer to the list of - * gravity constants. - *

    - * @return bool No value is returned. - * @throws ImagickException on error. - */ - public function setGravity ($gravity) {} - - /** - * (No version information available, might only be in SVN)
    - * Gets the gravity - * @link https://php.net/manual/en/imagick.getgravity.php - * @return int the gravity property. Refer to the list of - * gravity constants. - */ - #[Pure] - public function getGravity () {} - - /** - * (PECL imagick 2.2.1)
    - * Gets channel range - * @link https://php.net/manual/en/imagick.getimagechannelrange.php - * @param int $channel

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return float[] an array containing minima and maxima values of the channel(s). - * @throws ImagickException on error. - */ +class Imagick implements Iterator, Countable +{ + public const COLOR_BLACK = 11; + public const COLOR_BLUE = 12; + public const COLOR_CYAN = 13; + public const COLOR_GREEN = 14; + public const COLOR_RED = 15; + public const COLOR_YELLOW = 16; + public const COLOR_MAGENTA = 17; + public const COLOR_OPACITY = 18; + public const COLOR_ALPHA = 19; + public const COLOR_FUZZ = 20; + public const IMAGICK_EXTNUM = 30403; + public const IMAGICK_EXTVER = "3.4.3"; + public const QUANTUM_RANGE = 65535; + public const USE_ZEND_MM = 0; + public const COMPOSITE_DEFAULT = 40; + public const COMPOSITE_UNDEFINED = 0; + public const COMPOSITE_NO = 1; + public const COMPOSITE_ADD = 2; + public const COMPOSITE_ATOP = 3; + public const COMPOSITE_BLEND = 4; + public const COMPOSITE_BUMPMAP = 5; + public const COMPOSITE_CLEAR = 7; + public const COMPOSITE_COLORBURN = 8; + public const COMPOSITE_COLORDODGE = 9; + public const COMPOSITE_COLORIZE = 10; + public const COMPOSITE_COPYBLACK = 11; + public const COMPOSITE_COPYBLUE = 12; + public const COMPOSITE_COPY = 13; + public const COMPOSITE_COPYCYAN = 14; + public const COMPOSITE_COPYGREEN = 15; + public const COMPOSITE_COPYMAGENTA = 16; + public const COMPOSITE_COPYOPACITY = 17; + public const COMPOSITE_COPYRED = 18; + public const COMPOSITE_COPYYELLOW = 19; + public const COMPOSITE_DARKEN = 20; + public const COMPOSITE_DSTATOP = 21; + public const COMPOSITE_DST = 22; + public const COMPOSITE_DSTIN = 23; + public const COMPOSITE_DSTOUT = 24; + public const COMPOSITE_DSTOVER = 25; + public const COMPOSITE_DIFFERENCE = 26; + public const COMPOSITE_DISPLACE = 27; + public const COMPOSITE_DISSOLVE = 28; + public const COMPOSITE_EXCLUSION = 29; + public const COMPOSITE_HARDLIGHT = 30; + public const COMPOSITE_HUE = 31; + public const COMPOSITE_IN = 32; + public const COMPOSITE_LIGHTEN = 33; + public const COMPOSITE_LUMINIZE = 35; + public const COMPOSITE_MINUS = 36; + public const COMPOSITE_MODULATE = 37; + public const COMPOSITE_MULTIPLY = 38; + public const COMPOSITE_OUT = 39; + public const COMPOSITE_OVER = 40; + public const COMPOSITE_OVERLAY = 41; + public const COMPOSITE_PLUS = 42; + public const COMPOSITE_REPLACE = 43; + public const COMPOSITE_SATURATE = 44; + public const COMPOSITE_SCREEN = 45; + public const COMPOSITE_SOFTLIGHT = 46; + public const COMPOSITE_SRCATOP = 47; + public const COMPOSITE_SRC = 48; + public const COMPOSITE_SRCIN = 49; + public const COMPOSITE_SRCOUT = 50; + public const COMPOSITE_SRCOVER = 51; + public const COMPOSITE_SUBTRACT = 52; + public const COMPOSITE_THRESHOLD = 53; + public const COMPOSITE_XOR = 54; + public const COMPOSITE_CHANGEMASK = 6; + public const COMPOSITE_LINEARLIGHT = 34; + public const COMPOSITE_DIVIDE = 55; + public const COMPOSITE_DISTORT = 56; + public const COMPOSITE_BLUR = 57; + public const COMPOSITE_PEGTOPLIGHT = 58; + public const COMPOSITE_VIVIDLIGHT = 59; + public const COMPOSITE_PINLIGHT = 60; + public const COMPOSITE_LINEARDODGE = 61; + public const COMPOSITE_LINEARBURN = 62; + public const COMPOSITE_MATHEMATICS = 63; + public const COMPOSITE_MODULUSADD = 2; + public const COMPOSITE_MODULUSSUBTRACT = 52; + public const COMPOSITE_MINUSDST = 36; + public const COMPOSITE_DIVIDEDST = 55; + public const COMPOSITE_DIVIDESRC = 64; + public const COMPOSITE_MINUSSRC = 65; + public const COMPOSITE_DARKENINTENSITY = 66; + public const COMPOSITE_LIGHTENINTENSITY = 67; + public const MONTAGEMODE_FRAME = 1; + public const MONTAGEMODE_UNFRAME = 2; + public const MONTAGEMODE_CONCATENATE = 3; + public const STYLE_NORMAL = 1; + public const STYLE_ITALIC = 2; + public const STYLE_OBLIQUE = 3; + public const STYLE_ANY = 4; + public const FILTER_UNDEFINED = 0; + public const FILTER_POINT = 1; + public const FILTER_BOX = 2; + public const FILTER_TRIANGLE = 3; + public const FILTER_HERMITE = 4; + public const FILTER_HANNING = 5; + public const FILTER_HAMMING = 6; + public const FILTER_BLACKMAN = 7; + public const FILTER_GAUSSIAN = 8; + public const FILTER_QUADRATIC = 9; + public const FILTER_CUBIC = 10; + public const FILTER_CATROM = 11; + public const FILTER_MITCHELL = 12; + public const FILTER_LANCZOS = 22; + public const FILTER_BESSEL = 13; + public const FILTER_SINC = 14; + public const FILTER_KAISER = 16; + public const FILTER_WELSH = 17; + public const FILTER_PARZEN = 18; + public const FILTER_LAGRANGE = 21; + public const FILTER_SENTINEL = 31; + public const FILTER_BOHMAN = 19; + public const FILTER_BARTLETT = 20; + public const FILTER_JINC = 13; + public const FILTER_SINCFAST = 15; + public const FILTER_ROBIDOUX = 26; + public const FILTER_LANCZOSSHARP = 23; + public const FILTER_LANCZOS2 = 24; + public const FILTER_LANCZOS2SHARP = 25; + public const FILTER_ROBIDOUXSHARP = 27; + public const FILTER_COSINE = 28; + public const FILTER_SPLINE = 29; + public const FILTER_LANCZOSRADIUS = 30; + public const IMGTYPE_UNDEFINED = 0; + public const IMGTYPE_BILEVEL = 1; + public const IMGTYPE_GRAYSCALE = 2; + public const IMGTYPE_GRAYSCALEMATTE = 3; + public const IMGTYPE_PALETTE = 4; + public const IMGTYPE_PALETTEMATTE = 5; + public const IMGTYPE_TRUECOLOR = 6; + public const IMGTYPE_TRUECOLORMATTE = 7; + public const IMGTYPE_COLORSEPARATION = 8; + public const IMGTYPE_COLORSEPARATIONMATTE = 9; + public const IMGTYPE_OPTIMIZE = 10; + public const IMGTYPE_PALETTEBILEVELMATTE = 11; + public const RESOLUTION_UNDEFINED = 0; + public const RESOLUTION_PIXELSPERINCH = 1; + public const RESOLUTION_PIXELSPERCENTIMETER = 2; + public const COMPRESSION_UNDEFINED = 0; + public const COMPRESSION_NO = 1; + public const COMPRESSION_BZIP = 2; + public const COMPRESSION_FAX = 6; + public const COMPRESSION_GROUP4 = 7; + public const COMPRESSION_JPEG = 8; + public const COMPRESSION_JPEG2000 = 9; + public const COMPRESSION_LOSSLESSJPEG = 10; + public const COMPRESSION_LZW = 11; + public const COMPRESSION_RLE = 12; + public const COMPRESSION_ZIP = 13; + public const COMPRESSION_DXT1 = 3; + public const COMPRESSION_DXT3 = 4; + public const COMPRESSION_DXT5 = 5; + public const COMPRESSION_ZIPS = 14; + public const COMPRESSION_PIZ = 15; + public const COMPRESSION_PXR24 = 16; + public const COMPRESSION_B44 = 17; + public const COMPRESSION_B44A = 18; + public const COMPRESSION_LZMA = 19; + public const COMPRESSION_JBIG1 = 20; + public const COMPRESSION_JBIG2 = 21; + public const PAINT_POINT = 1; + public const PAINT_REPLACE = 2; + public const PAINT_FLOODFILL = 3; + public const PAINT_FILLTOBORDER = 4; + public const PAINT_RESET = 5; + public const GRAVITY_NORTHWEST = 1; + public const GRAVITY_NORTH = 2; + public const GRAVITY_NORTHEAST = 3; + public const GRAVITY_WEST = 4; + public const GRAVITY_CENTER = 5; + public const GRAVITY_EAST = 6; + public const GRAVITY_SOUTHWEST = 7; + public const GRAVITY_SOUTH = 8; + public const GRAVITY_SOUTHEAST = 9; + public const GRAVITY_FORGET = 0; + public const GRAVITY_STATIC = 10; + public const STRETCH_NORMAL = 1; + public const STRETCH_ULTRACONDENSED = 2; + public const STRETCH_EXTRACONDENSED = 3; + public const STRETCH_CONDENSED = 4; + public const STRETCH_SEMICONDENSED = 5; + public const STRETCH_SEMIEXPANDED = 6; + public const STRETCH_EXPANDED = 7; + public const STRETCH_EXTRAEXPANDED = 8; + public const STRETCH_ULTRAEXPANDED = 9; + public const STRETCH_ANY = 10; + public const ALIGN_UNDEFINED = 0; + public const ALIGN_LEFT = 1; + public const ALIGN_CENTER = 2; + public const ALIGN_RIGHT = 3; + public const DECORATION_NO = 1; + public const DECORATION_UNDERLINE = 2; + public const DECORATION_OVERLINE = 3; + public const DECORATION_LINETROUGH = 4; + public const DECORATION_LINETHROUGH = 4; + public const NOISE_UNIFORM = 1; + public const NOISE_GAUSSIAN = 2; + public const NOISE_MULTIPLICATIVEGAUSSIAN = 3; + public const NOISE_IMPULSE = 4; + public const NOISE_LAPLACIAN = 5; + public const NOISE_POISSON = 6; + public const NOISE_RANDOM = 7; + public const CHANNEL_UNDEFINED = 0; + public const CHANNEL_RED = 1; + public const CHANNEL_GRAY = 1; + public const CHANNEL_CYAN = 1; + public const CHANNEL_GREEN = 2; + public const CHANNEL_MAGENTA = 2; + public const CHANNEL_BLUE = 4; + public const CHANNEL_YELLOW = 4; + public const CHANNEL_ALPHA = 8; + public const CHANNEL_OPACITY = 8; + public const CHANNEL_MATTE = 8; + public const CHANNEL_BLACK = 32; + public const CHANNEL_INDEX = 32; + public const CHANNEL_ALL = 134217727; + public const CHANNEL_DEFAULT = 134217719; + public const CHANNEL_RGBA = 15; + public const CHANNEL_TRUEALPHA = 64; + public const CHANNEL_RGBS = 128; + public const CHANNEL_GRAY_CHANNELS = 128; + public const CHANNEL_SYNC = 256; + public const CHANNEL_COMPOSITES = 47; + public const METRIC_UNDEFINED = 0; + public const METRIC_ABSOLUTEERRORMETRIC = 1; + public const METRIC_MEANABSOLUTEERROR = 2; + public const METRIC_MEANERRORPERPIXELMETRIC = 3; + public const METRIC_MEANSQUAREERROR = 4; + public const METRIC_PEAKABSOLUTEERROR = 5; + public const METRIC_PEAKSIGNALTONOISERATIO = 6; + public const METRIC_ROOTMEANSQUAREDERROR = 7; + public const METRIC_NORMALIZEDCROSSCORRELATIONERRORMETRIC = 8; + public const METRIC_FUZZERROR = 9; + public const PIXEL_CHAR = 1; + public const PIXEL_DOUBLE = 2; + public const PIXEL_FLOAT = 3; + public const PIXEL_INTEGER = 4; + public const PIXEL_LONG = 5; + public const PIXEL_QUANTUM = 6; + public const PIXEL_SHORT = 7; + public const EVALUATE_UNDEFINED = 0; + public const EVALUATE_ADD = 1; + public const EVALUATE_AND = 2; + public const EVALUATE_DIVIDE = 3; + public const EVALUATE_LEFTSHIFT = 4; + public const EVALUATE_MAX = 5; + public const EVALUATE_MIN = 6; + public const EVALUATE_MULTIPLY = 7; + public const EVALUATE_OR = 8; + public const EVALUATE_RIGHTSHIFT = 9; + public const EVALUATE_SET = 10; + public const EVALUATE_SUBTRACT = 11; + public const EVALUATE_XOR = 12; + public const EVALUATE_POW = 13; + public const EVALUATE_LOG = 14; + public const EVALUATE_THRESHOLD = 15; + public const EVALUATE_THRESHOLDBLACK = 16; + public const EVALUATE_THRESHOLDWHITE = 17; + public const EVALUATE_GAUSSIANNOISE = 18; + public const EVALUATE_IMPULSENOISE = 19; + public const EVALUATE_LAPLACIANNOISE = 20; + public const EVALUATE_MULTIPLICATIVENOISE = 21; + public const EVALUATE_POISSONNOISE = 22; + public const EVALUATE_UNIFORMNOISE = 23; + public const EVALUATE_COSINE = 24; + public const EVALUATE_SINE = 25; + public const EVALUATE_ADDMODULUS = 26; + public const EVALUATE_MEAN = 27; + public const EVALUATE_ABS = 28; + public const EVALUATE_EXPONENTIAL = 29; + public const EVALUATE_MEDIAN = 30; + public const EVALUATE_SUM = 31; + public const COLORSPACE_UNDEFINED = 0; + public const COLORSPACE_RGB = 1; + public const COLORSPACE_GRAY = 2; + public const COLORSPACE_TRANSPARENT = 3; + public const COLORSPACE_OHTA = 4; + public const COLORSPACE_LAB = 5; + public const COLORSPACE_XYZ = 6; + public const COLORSPACE_YCBCR = 7; + public const COLORSPACE_YCC = 8; + public const COLORSPACE_YIQ = 9; + public const COLORSPACE_YPBPR = 10; + public const COLORSPACE_YUV = 11; + public const COLORSPACE_CMYK = 12; + public const COLORSPACE_SRGB = 13; + public const COLORSPACE_HSB = 14; + public const COLORSPACE_HSL = 15; + public const COLORSPACE_HWB = 16; + public const COLORSPACE_REC601LUMA = 17; + public const COLORSPACE_REC709LUMA = 19; + public const COLORSPACE_LOG = 21; + public const COLORSPACE_CMY = 22; + public const COLORSPACE_LUV = 23; + public const COLORSPACE_HCL = 24; + public const COLORSPACE_LCH = 25; + public const COLORSPACE_LMS = 26; + public const COLORSPACE_LCHAB = 27; + public const COLORSPACE_LCHUV = 28; + public const COLORSPACE_SCRGB = 29; + public const COLORSPACE_HSI = 30; + public const COLORSPACE_HSV = 31; + public const COLORSPACE_HCLP = 32; + public const COLORSPACE_YDBDR = 33; + public const COLORSPACE_REC601YCBCR = 18; + public const COLORSPACE_REC709YCBCR = 20; + public const VIRTUALPIXELMETHOD_UNDEFINED = 0; + public const VIRTUALPIXELMETHOD_BACKGROUND = 1; + public const VIRTUALPIXELMETHOD_CONSTANT = 2; + public const VIRTUALPIXELMETHOD_EDGE = 4; + public const VIRTUALPIXELMETHOD_MIRROR = 5; + public const VIRTUALPIXELMETHOD_TILE = 7; + public const VIRTUALPIXELMETHOD_TRANSPARENT = 8; + public const VIRTUALPIXELMETHOD_MASK = 9; + public const VIRTUALPIXELMETHOD_BLACK = 10; + public const VIRTUALPIXELMETHOD_GRAY = 11; + public const VIRTUALPIXELMETHOD_WHITE = 12; + public const VIRTUALPIXELMETHOD_HORIZONTALTILE = 13; + public const VIRTUALPIXELMETHOD_VERTICALTILE = 14; + public const VIRTUALPIXELMETHOD_HORIZONTALTILEEDGE = 15; + public const VIRTUALPIXELMETHOD_VERTICALTILEEDGE = 16; + public const VIRTUALPIXELMETHOD_CHECKERTILE = 17; + public const PREVIEW_UNDEFINED = 0; + public const PREVIEW_ROTATE = 1; + public const PREVIEW_SHEAR = 2; + public const PREVIEW_ROLL = 3; + public const PREVIEW_HUE = 4; + public const PREVIEW_SATURATION = 5; + public const PREVIEW_BRIGHTNESS = 6; + public const PREVIEW_GAMMA = 7; + public const PREVIEW_SPIFF = 8; + public const PREVIEW_DULL = 9; + public const PREVIEW_GRAYSCALE = 10; + public const PREVIEW_QUANTIZE = 11; + public const PREVIEW_DESPECKLE = 12; + public const PREVIEW_REDUCENOISE = 13; + public const PREVIEW_ADDNOISE = 14; + public const PREVIEW_SHARPEN = 15; + public const PREVIEW_BLUR = 16; + public const PREVIEW_THRESHOLD = 17; + public const PREVIEW_EDGEDETECT = 18; + public const PREVIEW_SPREAD = 19; + public const PREVIEW_SOLARIZE = 20; + public const PREVIEW_SHADE = 21; + public const PREVIEW_RAISE = 22; + public const PREVIEW_SEGMENT = 23; + public const PREVIEW_SWIRL = 24; + public const PREVIEW_IMPLODE = 25; + public const PREVIEW_WAVE = 26; + public const PREVIEW_OILPAINT = 27; + public const PREVIEW_CHARCOALDRAWING = 28; + public const PREVIEW_JPEG = 29; + public const RENDERINGINTENT_UNDEFINED = 0; + public const RENDERINGINTENT_SATURATION = 1; + public const RENDERINGINTENT_PERCEPTUAL = 2; + public const RENDERINGINTENT_ABSOLUTE = 3; + public const RENDERINGINTENT_RELATIVE = 4; + public const INTERLACE_UNDEFINED = 0; + public const INTERLACE_NO = 1; + public const INTERLACE_LINE = 2; + public const INTERLACE_PLANE = 3; + public const INTERLACE_PARTITION = 4; + public const INTERLACE_GIF = 5; + public const INTERLACE_JPEG = 6; + public const INTERLACE_PNG = 7; + public const FILLRULE_UNDEFINED = 0; + public const FILLRULE_EVENODD = 1; + public const FILLRULE_NONZERO = 2; + public const PATHUNITS_UNDEFINED = 0; + public const PATHUNITS_USERSPACE = 1; + public const PATHUNITS_USERSPACEONUSE = 2; + public const PATHUNITS_OBJECTBOUNDINGBOX = 3; + public const LINECAP_UNDEFINED = 0; + public const LINECAP_BUTT = 1; + public const LINECAP_ROUND = 2; + public const LINECAP_SQUARE = 3; + public const LINEJOIN_UNDEFINED = 0; + public const LINEJOIN_MITER = 1; + public const LINEJOIN_ROUND = 2; + public const LINEJOIN_BEVEL = 3; + public const RESOURCETYPE_UNDEFINED = 0; + public const RESOURCETYPE_AREA = 1; + public const RESOURCETYPE_DISK = 2; + public const RESOURCETYPE_FILE = 3; + public const RESOURCETYPE_MAP = 4; + public const RESOURCETYPE_MEMORY = 5; + public const RESOURCETYPE_TIME = 7; + public const RESOURCETYPE_THROTTLE = 8; + public const RESOURCETYPE_THREAD = 6; + public const DISPOSE_UNRECOGNIZED = 0; + public const DISPOSE_UNDEFINED = 0; + public const DISPOSE_NONE = 1; + public const DISPOSE_BACKGROUND = 2; + public const DISPOSE_PREVIOUS = 3; + public const INTERPOLATE_UNDEFINED = 0; + public const INTERPOLATE_AVERAGE = 1; + public const INTERPOLATE_BICUBIC = 2; + public const INTERPOLATE_BILINEAR = 3; + public const INTERPOLATE_FILTER = 4; + public const INTERPOLATE_INTEGER = 5; + public const INTERPOLATE_MESH = 6; + public const INTERPOLATE_NEARESTNEIGHBOR = 7; + public const INTERPOLATE_SPLINE = 8; + public const LAYERMETHOD_UNDEFINED = 0; + public const LAYERMETHOD_COALESCE = 1; + public const LAYERMETHOD_COMPAREANY = 2; + public const LAYERMETHOD_COMPARECLEAR = 3; + public const LAYERMETHOD_COMPAREOVERLAY = 4; + public const LAYERMETHOD_DISPOSE = 5; + public const LAYERMETHOD_OPTIMIZE = 6; + public const LAYERMETHOD_OPTIMIZEPLUS = 8; + public const LAYERMETHOD_OPTIMIZETRANS = 9; + public const LAYERMETHOD_COMPOSITE = 12; + public const LAYERMETHOD_OPTIMIZEIMAGE = 7; + public const LAYERMETHOD_REMOVEDUPS = 10; + public const LAYERMETHOD_REMOVEZERO = 11; + public const LAYERMETHOD_TRIMBOUNDS = 16; + public const ORIENTATION_UNDEFINED = 0; + public const ORIENTATION_TOPLEFT = 1; + public const ORIENTATION_TOPRIGHT = 2; + public const ORIENTATION_BOTTOMRIGHT = 3; + public const ORIENTATION_BOTTOMLEFT = 4; + public const ORIENTATION_LEFTTOP = 5; + public const ORIENTATION_RIGHTTOP = 6; + public const ORIENTATION_RIGHTBOTTOM = 7; + public const ORIENTATION_LEFTBOTTOM = 8; + public const DISTORTION_UNDEFINED = 0; + public const DISTORTION_AFFINE = 1; + public const DISTORTION_AFFINEPROJECTION = 2; + public const DISTORTION_ARC = 9; + public const DISTORTION_BILINEAR = 6; + public const DISTORTION_PERSPECTIVE = 4; + public const DISTORTION_PERSPECTIVEPROJECTION = 5; + public const DISTORTION_SCALEROTATETRANSLATE = 3; + public const DISTORTION_POLYNOMIAL = 8; + public const DISTORTION_POLAR = 10; + public const DISTORTION_DEPOLAR = 11; + public const DISTORTION_BARREL = 14; + public const DISTORTION_SHEPARDS = 16; + public const DISTORTION_SENTINEL = 18; + public const DISTORTION_BARRELINVERSE = 15; + public const DISTORTION_BILINEARFORWARD = 6; + public const DISTORTION_BILINEARREVERSE = 7; + public const DISTORTION_RESIZE = 17; + public const DISTORTION_CYLINDER2PLANE = 12; + public const DISTORTION_PLANE2CYLINDER = 13; + public const LAYERMETHOD_MERGE = 13; + public const LAYERMETHOD_FLATTEN = 14; + public const LAYERMETHOD_MOSAIC = 15; + public const ALPHACHANNEL_ACTIVATE = 1; + public const ALPHACHANNEL_RESET = 7; + public const ALPHACHANNEL_SET = 8; + public const ALPHACHANNEL_UNDEFINED = 0; + public const ALPHACHANNEL_COPY = 3; + public const ALPHACHANNEL_DEACTIVATE = 4; + public const ALPHACHANNEL_EXTRACT = 5; + public const ALPHACHANNEL_OPAQUE = 6; + public const ALPHACHANNEL_SHAPE = 9; + public const ALPHACHANNEL_TRANSPARENT = 10; + public const SPARSECOLORMETHOD_UNDEFINED = 0; + public const SPARSECOLORMETHOD_BARYCENTRIC = 1; + public const SPARSECOLORMETHOD_BILINEAR = 7; + public const SPARSECOLORMETHOD_POLYNOMIAL = 8; + public const SPARSECOLORMETHOD_SPEPARDS = 16; + public const SPARSECOLORMETHOD_VORONOI = 18; + public const SPARSECOLORMETHOD_INVERSE = 19; + public const DITHERMETHOD_UNDEFINED = 0; + public const DITHERMETHOD_NO = 1; + public const DITHERMETHOD_RIEMERSMA = 2; + public const DITHERMETHOD_FLOYDSTEINBERG = 3; + public const FUNCTION_UNDEFINED = 0; + public const FUNCTION_POLYNOMIAL = 1; + public const FUNCTION_SINUSOID = 2; + public const ALPHACHANNEL_BACKGROUND = 2; + public const FUNCTION_ARCSIN = 3; + public const FUNCTION_ARCTAN = 4; + public const ALPHACHANNEL_FLATTEN = 11; + public const ALPHACHANNEL_REMOVE = 12; + public const STATISTIC_GRADIENT = 1; + public const STATISTIC_MAXIMUM = 2; + public const STATISTIC_MEAN = 3; + public const STATISTIC_MEDIAN = 4; + public const STATISTIC_MINIMUM = 5; + public const STATISTIC_MODE = 6; + public const STATISTIC_NONPEAK = 7; + public const STATISTIC_STANDARD_DEVIATION = 8; + public const MORPHOLOGY_CONVOLVE = 1; + public const MORPHOLOGY_CORRELATE = 2; + public const MORPHOLOGY_ERODE = 3; + public const MORPHOLOGY_DILATE = 4; + public const MORPHOLOGY_ERODE_INTENSITY = 5; + public const MORPHOLOGY_DILATE_INTENSITY = 6; + public const MORPHOLOGY_DISTANCE = 7; + public const MORPHOLOGY_OPEN = 8; + public const MORPHOLOGY_CLOSE = 9; + public const MORPHOLOGY_OPEN_INTENSITY = 10; + public const MORPHOLOGY_CLOSE_INTENSITY = 11; + public const MORPHOLOGY_SMOOTH = 12; + public const MORPHOLOGY_EDGE_IN = 13; + public const MORPHOLOGY_EDGE_OUT = 14; + public const MORPHOLOGY_EDGE = 15; + public const MORPHOLOGY_TOP_HAT = 16; + public const MORPHOLOGY_BOTTOM_HAT = 17; + public const MORPHOLOGY_HIT_AND_MISS = 18; + public const MORPHOLOGY_THINNING = 19; + public const MORPHOLOGY_THICKEN = 20; + public const MORPHOLOGY_VORONOI = 21; + public const MORPHOLOGY_ITERATIVE = 22; + public const KERNEL_UNITY = 1; + public const KERNEL_GAUSSIAN = 2; + public const KERNEL_DIFFERENCE_OF_GAUSSIANS = 3; + public const KERNEL_LAPLACIAN_OF_GAUSSIANS = 4; + public const KERNEL_BLUR = 5; + public const KERNEL_COMET = 6; + public const KERNEL_LAPLACIAN = 7; + public const KERNEL_SOBEL = 8; + public const KERNEL_FREI_CHEN = 9; + public const KERNEL_ROBERTS = 10; + public const KERNEL_PREWITT = 11; + public const KERNEL_COMPASS = 12; + public const KERNEL_KIRSCH = 13; + public const KERNEL_DIAMOND = 14; + public const KERNEL_SQUARE = 15; + public const KERNEL_RECTANGLE = 16; + public const KERNEL_OCTAGON = 17; + public const KERNEL_DISK = 18; + public const KERNEL_PLUS = 19; + public const KERNEL_CROSS = 20; + public const KERNEL_RING = 21; + public const KERNEL_PEAKS = 22; + public const KERNEL_EDGES = 23; + public const KERNEL_CORNERS = 24; + public const KERNEL_DIAGONALS = 25; + public const KERNEL_LINE_ENDS = 26; + public const KERNEL_LINE_JUNCTIONS = 27; + public const KERNEL_RIDGES = 28; + public const KERNEL_CONVEX_HULL = 29; + public const KERNEL_THIN_SE = 30; + public const KERNEL_SKELETON = 31; + public const KERNEL_CHEBYSHEV = 32; + public const KERNEL_MANHATTAN = 33; + public const KERNEL_OCTAGONAL = 34; + public const KERNEL_EUCLIDEAN = 35; + public const KERNEL_USER_DEFINED = 36; + public const KERNEL_BINOMIAL = 37; + public const DIRECTION_LEFT_TO_RIGHT = 2; + public const DIRECTION_RIGHT_TO_LEFT = 1; + public const NORMALIZE_KERNEL_NONE = 0; + public const NORMALIZE_KERNEL_VALUE = 8192; + public const NORMALIZE_KERNEL_CORRELATE = 65536; + public const NORMALIZE_KERNEL_PERCENT = 4096; + + /** + * (PECL imagick 2.0.0)
    + * Removes repeated portions of images to optimize + * @link https://php.net/manual/en/imagick.optimizeimagelayers.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function optimizeImageLayers() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the maximum bounding region between images + * @link https://php.net/manual/en/imagick.compareimagelayers.php + * @param int $method

    + * One of the layer method constants. + *

    + * @return Imagick TRUE on success. + * @throws ImagickException on error. + */ + public function compareImageLayers($method) {} + + /** + * (PECL imagick 2.0.0)
    + * Quickly fetch attributes + * @link https://php.net/manual/en/imagick.pingimageblob.php + * @param string $image

    + * A string containing the image. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function pingImageBlob($image) {} + + /** + * (PECL imagick 2.0.0)
    + * Get basic image attributes in a lightweight manner + * @link https://php.net/manual/en/imagick.pingimagefile.php + * @param resource $filehandle

    + * An open filehandle to the image. + *

    + * @param string $fileName [optional]

    + * Optional filename for this image. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function pingImageFile($filehandle, $fileName = null) {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a vertical mirror image + * @link https://php.net/manual/en/imagick.transposeimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function transposeImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a horizontal mirror image + * @link https://php.net/manual/en/imagick.transverseimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function transverseImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Remove edges from the image + * @link https://php.net/manual/en/imagick.trimimage.php + * @param float $fuzz

    + * By default target must match a particular pixel color exactly. + * However, in many cases two colors may differ by a small amount. + * The fuzz member of image defines how much tolerance is acceptable + * to consider two colors as the same. This parameter represents the variation + * on the quantum range. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function trimImage($fuzz) {} + + /** + * (PECL imagick 2.0.0)
    + * Applies wave filter to the image + * @link https://php.net/manual/en/imagick.waveimage.php + * @param float $amplitude

    + * The amplitude of the wave. + *

    + * @param float $length

    + * The length of the wave. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function waveImage($amplitude, $length) {} + + /** + * (PECL imagick 2.0.0)
    + * Adds vignette filter to the image + * @link https://php.net/manual/en/imagick.vignetteimage.php + * @param float $blackPoint

    + * The black point. + *

    + * @param float $whitePoint

    + * The white point + *

    + * @param int $x

    + * X offset of the ellipse + *

    + * @param int $y

    + * Y offset of the ellipse + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function vignetteImage($blackPoint, $whitePoint, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Discards all but one of any pixel color + * @link https://php.net/manual/en/imagick.uniqueimagecolors.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function uniqueImageColors() {} + + /** + * (PECL imagick 2.0.0)
    + * Return if the image has a matte channel + * @link https://php.net/manual/en/imagick.getimagematte.php + * @return bool TRUE on success or FALSE on failure. + * @throws ImagickException on error. + */ + #[Deprecated] + #[Pure] + public function getImageMatte() {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image matte channel + * @link https://php.net/manual/en/imagick.setimagematte.php + * @param bool $matte

    + * True activates the matte channel and false disables it. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageMatte($matte) {} + + /** + * Adaptively resize image with data dependent triangulation + * + * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.
    + * If false, the calculations should produce the same results as ImageMagick CLI does.
    + *
    + * Note: The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. + * In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. + * @link https://php.net/manual/en/imagick.adaptiveresizeimage.php + * @param int $columns The number of columns in the scaled image. + * @param int $rows The number of rows in the scaled image. + * @param bool $bestfit [optional] Whether to fit the image inside a bounding box.
    + * The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. + * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE + * @return bool TRUE on success + * @throws ImagickException Throws ImagickException on error + * @since 2.0.0 + */ + public function adaptiveResizeImage($columns, $rows, $bestfit = false, $legacy = false) {} + + /** + * (PECL imagick 2.0.0)
    + * Simulates a pencil sketch + * @link https://php.net/manual/en/imagick.sketchimage.php + * @param float $radius

    + * The radius of the Gaussian, in pixels, not counting the center pixel + *

    + * @param float $sigma

    + * The standard deviation of the Gaussian, in pixels. + *

    + * @param float $angle

    + * Apply the effect along this angle. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function sketchImage($radius, $sigma, $angle) {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a 3D effect + * @link https://php.net/manual/en/imagick.shadeimage.php + * @param bool $gray

    + * A value other than zero shades the intensity of each pixel. + *

    + * @param float $azimuth

    + * Defines the light source direction. + *

    + * @param float $elevation

    + * Defines the light source direction. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function shadeImage($gray, $azimuth, $elevation) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the size offset + * @link https://php.net/manual/en/imagick.getsizeoffset.php + * @return int the size offset associated with the Imagick object. + * @throws ImagickException on error. + */ + #[Pure] + public function getSizeOffset() {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the size and offset of the Imagick object + * @link https://php.net/manual/en/imagick.setsizeoffset.php + * @param int $columns

    + * The width in pixels. + *

    + * @param int $rows

    + * The height in pixels. + *

    + * @param int $offset

    + * The image offset. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setSizeOffset($columns, $rows, $offset) {} + + /** + * (PECL imagick 2.0.0)
    + * Adds adaptive blur filter to image + * @link https://php.net/manual/en/imagick.adaptiveblurimage.php + * @param float $radius

    + * The radius of the Gaussian, in pixels, not counting the center pixel. + * Provide a value of 0 and the radius will be chosen automagically. + *

    + * @param float $sigma

    + * The standard deviation of the Gaussian, in pixels. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function adaptiveBlurImage($radius, $sigma, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * (PECL imagick 2.0.0)
    + * Enhances the contrast of a color image + * @link https://php.net/manual/en/imagick.contraststretchimage.php + * @param float $black_point

    + * The black point. + *

    + * @param float $white_point

    + * The white point. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Imagick::CHANNEL_ALL. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function contrastStretchImage($black_point, $white_point, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Adaptively sharpen the image + * @link https://php.net/manual/en/imagick.adaptivesharpenimage.php + * @param float $radius

    + * The radius of the Gaussian, in pixels, not counting the center pixel. Use 0 for auto-select. + *

    + * @param float $sigma

    + * The standard deviation of the Gaussian, in pixels. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function adaptiveSharpenImage($radius, $sigma, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a high-contrast, two-color image + * @link https://php.net/manual/en/imagick.randomthresholdimage.php + * @param float $low

    + * The low point + *

    + * @param float $high

    + * The high point + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function randomThresholdImage($low, $high, $channel = Imagick::CHANNEL_ALL) {} + + /** + * @param $xRounding + * @param $yRounding + * @param $strokeWidth [optional] + * @param $displace [optional] + * @param $sizeCorrection [optional] + * @throws ImagickException on error. + */ + public function roundCornersImage($xRounding, $yRounding, $strokeWidth, $displace, $sizeCorrection) {} + + /** + * (PECL imagick 2.0.0)
    + * Rounds image corners + * Alias to {@see Imagick::roundCornersImage} + * @link https://php.net/manual/en/imagick.roundcorners.php + * @param float $x_rounding

    + * x rounding + *

    + * @param float $y_rounding

    + * y rounding + *

    + * @param float $stroke_width [optional]

    + * stroke width + *

    + * @param float $displace [optional]

    + * image displace + *

    + * @param float $size_correction [optional]

    + * size correction + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated(replacement: "%class%->roundCornersImage(%parametersList%)")] + public function roundCorners($x_rounding, $y_rounding, $stroke_width = 10.0, $displace = 5.0, $size_correction = -6.0) {} + + /** + * (PECL imagick 2.0.0)
    + * Set the iterator position + * @link https://php.net/manual/en/imagick.setiteratorindex.php + * @param int $index

    + * The position to set the iterator to + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setIteratorIndex($index) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the index of the current active image + * @link https://php.net/manual/en/imagick.getiteratorindex.php + * @return int an integer containing the index of the image in the stack. + */ + #[Pure] + public function getIteratorIndex() {} + + /** + * (PECL imagick 2.0.0)
    + * Convenience method for setting crop size and the image geometry + * @link https://php.net/manual/en/imagick.transformimage.php + * @param string $crop

    + * A crop geometry string. This geometry defines a subregion of the image to crop. + *

    + * @param string $geometry

    + * An image geometry string. This geometry defines the final size of the image. + *

    + * @return Imagick TRUE on success. + * @throws ImagickException on error. + */ + public function transformImage($crop, $geometry) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image opacity level + * @link https://php.net/manual/en/imagick.setimageopacity.php + * @param float $opacity

    + * The level of transparency: 1.0 is fully opaque and 0.0 is fully + * transparent. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageOpacity($opacity) {} + + /** + * (PECL imagick 2.2.2)
    + * Performs an ordered dither + * @link https://php.net/manual/en/imagick.orderedposterizeimage.php + * @param string $threshold_map

    + * A string containing the name of the threshold dither map to use + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function orderedPosterizeImage($threshold_map, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Simulates a Polaroid picture + * @link https://php.net/manual/en/imagick.polaroidimage.php + * @param ImagickDraw $properties

    + * The polaroid properties + *

    + * @param float $angle

    + * The polaroid angle + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function polaroidImage(ImagickDraw $properties, $angle) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the named image property + * @link https://php.net/manual/en/imagick.getimageproperty.php + * @param string $name

    + * name of the property (for example Exif:DateTime) + *

    + * @return string|false a string containing the image property, false if a + * property with the given name does not exist. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageProperty($name) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets an image property + * @link https://php.net/manual/en/imagick.setimageproperty.php + * @param string $name + * @param string $value + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageProperty($name, $value) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image interpolate pixel method + * @link https://php.net/manual/en/imagick.setimageinterpolatemethod.php + * @param int $method

    + * The method is one of the Imagick::INTERPOLATE_* constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageInterpolateMethod($method) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the interpolation method + * @link https://php.net/manual/en/imagick.getimageinterpolatemethod.php + * @return int the interpolate method on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageInterpolateMethod() {} + + /** + * (PECL imagick 2.0.0)
    + * Stretches with saturation the image intensity + * @link https://php.net/manual/en/imagick.linearstretchimage.php + * @param float $blackPoint

    + * The image black point + *

    + * @param float $whitePoint

    + * The image white point + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function linearStretchImage($blackPoint, $whitePoint) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the image length in bytes + * @link https://php.net/manual/en/imagick.getimagelength.php + * @return int an int containing the current image size. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageLength() {} + + /** + * (No version information available, might only be in SVN)
    + * Set image size + * @link https://php.net/manual/en/imagick.extentimage.php + * @param int $width

    + * The new width + *

    + * @param int $height

    + * The new height + *

    + * @param int $x

    + * X position for the new size + *

    + * @param int $y

    + * Y position for the new size + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function extentImage($width, $height, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image orientation + * @link https://php.net/manual/en/imagick.getimageorientation.php + * @return int an int on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageOrientation() {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image orientation + * @link https://php.net/manual/en/imagick.setimageorientation.php + * @param int $orientation

    + * One of the orientation constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageOrientation($orientation) {} + + /** + * (PECL imagick 2.1.0)
    + * Changes the color value of any pixel that matches target + * @link https://php.net/manual/en/imagick.paintfloodfillimage.php + * @param mixed $fill

    + * ImagickPixel object or a string containing the fill color + *

    + * @param float $fuzz

    + * The amount of fuzz. For example, set fuzz to 10 and the color red at + * intensities of 100 and 102 respectively are now interpreted as the + * same color for the purposes of the floodfill. + *

    + * @param mixed $bordercolor

    + * ImagickPixel object or a string containing the border color + *

    + * @param int $x

    + * X start position of the floodfill + *

    + * @param int $y

    + * Y start position of the floodfill + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function paintFloodfillImage($fill, $fuzz, $bordercolor, $x, $y, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Replaces colors in the image from a color lookup table. Optional second parameter to replace colors in a specific channel. This method is available if Imagick has been compiled against ImageMagick version 6.3.6 or newer. + * @link https://php.net/manual/en/imagick.clutimage.php + * @param Imagick $lookup_table

    + * Imagick object containing the color lookup table + *

    + * @param int $channel [optional]

    + * The Channeltype + * constant. When not supplied, default channels are replaced. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + * @since 2.0.0 + */ + public function clutImage(Imagick $lookup_table, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the image properties + * @link https://php.net/manual/en/imagick.getimageproperties.php + * @param string $pattern [optional]

    + * The pattern for property names. + *

    + * @param bool $only_names [optional]

    + * Whether to return only property names. If FALSE then also the values are returned + *

    + * @return array an array containing the image properties or property names. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageProperties($pattern = "*", $only_names = true) {} + + /** + * (PECL imagick 2.2.0)
    + * Returns the image profiles + * @link https://php.net/manual/en/imagick.getimageprofiles.php + * @param string $pattern [optional]

    + * The pattern for profile names. + *

    + * @param bool $include_values [optional]

    + * Whether to return only profile names. If FALSE then only profile names will be returned. + *

    + * @return array an array containing the image profiles or profile names. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageProfiles($pattern = "*", $include_values = true) {} + + /** + * (PECL imagick 2.0.1)
    + * Distorts an image using various distortion methods + * @link https://php.net/manual/en/imagick.distortimage.php + * @param int $method

    + * The method of image distortion. See distortion constants + *

    + * @param array $arguments

    + * The arguments for this distortion method + *

    + * @param bool $bestfit

    + * Attempt to resize destination to fit distorted source + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function distortImage($method, array $arguments, $bestfit) {} + + /** + * (No version information available, might only be in SVN)
    + * Writes an image to a filehandle + * @link https://php.net/manual/en/imagick.writeimagefile.php + * @param resource $filehandle

    + * Filehandle where to write the image + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function writeImageFile($filehandle) {} + + /** + * (No version information available, might only be in SVN)
    + * Writes frames to a filehandle + * @link https://php.net/manual/en/imagick.writeimagesfile.php + * @param resource $filehandle

    + * Filehandle where to write the images + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function writeImagesFile($filehandle) {} + + /** + * (No version information available, might only be in SVN)
    + * Reset image page + * @link https://php.net/manual/en/imagick.resetimagepage.php + * @param string $page

    + * The page definition. For example 7168x5147+0+0 + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function resetImagePage($page) {} + + /** + * (No version information available, might only be in SVN)
    + * Sets image clip mask + * @link https://php.net/manual/en/imagick.setimageclipmask.php + * @param Imagick $clip_mask

    + * The Imagick object containing the clip mask + *

    + * @return bool TRUE on success. + */ + public function setImageClipMask(Imagick $clip_mask) {} + + /** + * (No version information available, might only be in SVN)
    + * Gets image clip mask + * @link https://php.net/manual/en/imagick.getimageclipmask.php + * @return Imagick an Imagick object containing the clip mask. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageClipMask() {} + + /** + * (No version information available, might only be in SVN)
    + * Animates an image or images + * @link https://php.net/manual/en/imagick.animateimages.php + * @param string $x_server

    + * X server address + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function animateImages($x_server) {} + + /** + * (No version information available, might only be in SVN)
    + * Recolors image + * @link https://php.net/manual/en/imagick.recolorimage.php + * @param array $matrix

    + * The matrix containing the color values + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function recolorImage(array $matrix) {} + + /** + * (PECL imagick 2.1.0)
    + * Sets font + * @link https://php.net/manual/en/imagick.setfont.php + * @param string $font

    + * Font name or a filename + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setFont($font) {} + + /** + * (PECL imagick 2.1.0)
    + * Gets font + * @link https://php.net/manual/en/imagick.getfont.php + * @return string|false the string containing the font name or FALSE if not font is set. + */ + #[Pure] + public function getFont() {} + + /** + * (PECL imagick 2.1.0)
    + * Sets point size + * @link https://php.net/manual/en/imagick.setpointsize.php + * @param float $point_size

    + * Point size + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setPointSize($point_size) {} + + /** + * (No version information available, might only be in SVN)
    + * Gets point size + * @link https://php.net/manual/en/imagick.getpointsize.php + * @return float a float containing the point size. + */ + #[Pure] + public function getPointSize() {} + + /** + * (PECL imagick 2.1.0)
    + * Merges image layers + * @link https://php.net/manual/en/imagick.mergeimagelayers.php + * @param int $layer_method

    + * One of the Imagick::LAYERMETHOD_* constants + *

    + * @return Imagick Returns an Imagick object containing the merged image. + * @throws ImagickException + */ + public function mergeImageLayers($layer_method) {} + + /** + * (No version information available, might only be in SVN)
    + * Sets image alpha channel + * @link https://php.net/manual/en/imagick.setimagealphachannel.php + * @param int $mode

    + * One of the Imagick::ALPHACHANNEL_* constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageAlphaChannel($mode) {} + + /** + * (No version information available, might only be in SVN)
    + * Changes the color value of any pixel that matches target + * @link https://php.net/manual/en/imagick.floodfillpaintimage.php + * @param mixed $fill

    + * ImagickPixel object or a string containing the fill color + *

    + * @param float $fuzz

    + * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. + *

    + * @param mixed $target

    + * ImagickPixel object or a string containing the target color to paint + *

    + * @param int $x

    + * X start position of the floodfill + *

    + * @param int $y

    + * Y start position of the floodfill + *

    + * @param bool $invert

    + * If TRUE paints any pixel that does not match the target color. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function floodFillPaintImage($fill, $fuzz, $target, $x, $y, $invert, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * (No version information available, might only be in SVN)
    + * Changes the color value of any pixel that matches target + * @link https://php.net/manual/en/imagick.opaquepaintimage.php + * @param mixed $target

    + * ImagickPixel object or a string containing the color to change + *

    + * @param mixed $fill

    + * The replacement color + *

    + * @param float $fuzz

    + * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. + *

    + * @param bool $invert

    + * If TRUE paints any pixel that does not match the target color. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function opaquePaintImage($target, $fill, $fuzz, $invert, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * (No version information available, might only be in SVN)
    + * Paints pixels transparent + * @link https://php.net/manual/en/imagick.transparentpaintimage.php + * @param mixed $target

    + * The target color to paint + *

    + * @param float $alpha

    + * The level of transparency: 1.0 is fully opaque and 0.0 is fully transparent. + *

    + * @param float $fuzz

    + * The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. + *

    + * @param bool $invert

    + * If TRUE paints any pixel that does not match the target color. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function transparentPaintImage($target, $alpha, $fuzz, $invert) {} + + /** + * (No version information available, might only be in SVN)
    + * Animates an image or images + * @link https://php.net/manual/en/imagick.liquidrescaleimage.php + * @param int $width

    + * The width of the target size + *

    + * @param int $height

    + * The height of the target size + *

    + * @param float $delta_x

    + * How much the seam can traverse on x-axis. + * Passing 0 causes the seams to be straight. + *

    + * @param float $rigidity

    + * Introduces a bias for non-straight seams. This parameter is + * typically 0. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function liquidRescaleImage($width, $height, $delta_x, $rigidity) {} + + /** + * (No version information available, might only be in SVN)
    + * Enciphers an image + * @link https://php.net/manual/en/imagick.encipherimage.php + * @param string $passphrase

    + * The passphrase + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function encipherImage($passphrase) {} + + /** + * (No version information available, might only be in SVN)
    + * Deciphers an image + * @link https://php.net/manual/en/imagick.decipherimage.php + * @param string $passphrase

    + * The passphrase + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function decipherImage($passphrase) {} + + /** + * (No version information available, might only be in SVN)
    + * Sets the gravity + * @link https://php.net/manual/en/imagick.setgravity.php + * @param int $gravity

    + * The gravity property. Refer to the list of + * gravity constants. + *

    + * @return bool No value is returned. + * @throws ImagickException on error. + */ + public function setGravity($gravity) {} + + /** + * (No version information available, might only be in SVN)
    + * Gets the gravity + * @link https://php.net/manual/en/imagick.getgravity.php + * @return int the gravity property. Refer to the list of + * gravity constants. + */ + #[Pure] + public function getGravity() {} + + /** + * (PECL imagick 2.2.1)
    + * Gets channel range + * @link https://php.net/manual/en/imagick.getimagechannelrange.php + * @param int $channel

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return float[] an array containing minima and maxima values of the channel(s). + * @throws ImagickException on error. + */ #[ArrayShape([ "minima" => "float", "maxima" => "float" ])] - #[Pure] - public function getImageChannelRange ($channel) {} - - /** - * (No version information available, might only be in SVN)
    - * Gets the image alpha channel - * @link https://php.net/manual/en/imagick.getimagealphachannel.php - * @return int a constant defining the current alpha channel value. Refer to this - * list of alpha channel constants. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageAlphaChannel () {} - - /** - * (No version information available, might only be in SVN)
    - * Gets channel distortions - * @link https://php.net/manual/en/imagick.getimagechanneldistortions.php - * @param Imagick $reference

    - * Imagick object containing the reference image - *

    - * @param int $metric

    - * Refer to this list of metric type constants. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return float a float describing the channel distortion. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageChannelDistortions (Imagick $reference, $metric, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * (No version information available, might only be in SVN)
    - * Sets the image gravity - * @link https://php.net/manual/en/imagick.setimagegravity.php - * @param int $gravity

    - * The gravity property. Refer to the list of - * gravity constants. - *

    - * @return bool No value is returned. - * @throws ImagickException on error. - */ - public function setImageGravity ($gravity) {} - - /** - * (No version information available, might only be in SVN)
    - * Gets the image gravity - * @link https://php.net/manual/en/imagick.getimagegravity.php - * @return int the images gravity property. Refer to the list of - * gravity constants. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageGravity () {} - - /** - * (No version information available, might only be in SVN)
    - * Imports image pixels - * @link https://php.net/manual/en/imagick.importimagepixels.php - * @param int $x

    - * The image x position - *

    - * @param int $y

    - * The image y position - *

    - * @param int $width

    - * The image width - *

    - * @param int $height

    - * The image height - *

    - * @param string $map

    - * Map of pixel ordering as a string. This can be for example RGB. - * The value can be any combination or order of R = red, G = green, B = blue, A = alpha (0 is transparent), - * O = opacity (0 is opaque), C = cyan, Y = yellow, M = magenta, K = black, I = intensity (for grayscale), P = pad. - *

    - * @param int $storage

    - * The pixel storage method. - * Refer to this list of pixel constants. - *

    - * @param array $pixels

    - * The array of pixels - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function importImagePixels ($x, $y, $width, $height, $map, $storage, array $pixels) {} - - /** - * (No version information available, might only be in SVN)
    - * Removes skew from the image - * @link https://php.net/manual/en/imagick.deskewimage.php - * @param float $threshold

    - * Deskew threshold - *

    - * @return bool - * @throws ImagickException on error. - */ - public function deskewImage ($threshold) {} - - /** - * (No version information available, might only be in SVN)
    - * Segments an image - * @link https://php.net/manual/en/imagick.segmentimage.php - * @param int $COLORSPACE

    - * One of the COLORSPACE constants. - *

    - * @param float $cluster_threshold

    - * A percentage describing minimum number of pixels - * contained in hexedra before it is considered valid. - *

    - * @param float $smooth_threshold

    - * Eliminates noise from the histogram. - *

    - * @param bool $verbose [optional]

    - * Whether to output detailed information about recognised classes. - *

    - * @return bool - * @throws ImagickException on error. - */ - public function segmentImage ($COLORSPACE, $cluster_threshold, $smooth_threshold, $verbose = false) {} - - /** - * (No version information available, might only be in SVN)
    - * Interpolates colors - * @link https://php.net/manual/en/imagick.sparsecolorimage.php - * @param int $SPARSE_METHOD

    - * Refer to this list of sparse method constants - *

    - * @param array $arguments

    - * An array containing the coordinates. - * The array is in format array(1,1, 2,45) - *

    - * @param int $channel [optional] - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function sparseColorImage ($SPARSE_METHOD, array $arguments, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * (No version information available, might only be in SVN)
    - * Remaps image colors - * @link https://php.net/manual/en/imagick.remapimage.php - * @param Imagick $replacement

    - * An Imagick object containing the replacement colors - *

    - * @param int $DITHER

    - * Refer to this list of dither method constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function remapImage (Imagick $replacement, $DITHER) {} - - /** - * (No version information available, might only be in SVN)
    - * Exports raw image pixels - * @link https://php.net/manual/en/imagick.exportimagepixels.php - * @param int $x

    - * X-coordinate of the exported area - *

    - * @param int $y

    - * Y-coordinate of the exported area - *

    - * @param int $width

    - * Width of the exported aread - *

    - * @param int $height

    - * Height of the exported area - *

    - * @param string $map

    - * Ordering of the exported pixels. For example "RGB". - * Valid characters for the map are R, G, B, A, O, C, Y, M, K, I and P. - *

    - * @param int $STORAGE

    - * Refer to this list of pixel type constants - *

    - * @return int[] an array containing the pixels values. - * @throws ImagickException on error. - */ - public function exportImagePixels ($x, $y, $width, $height, $map, $STORAGE) {} - - /** - * (No version information available, might only be in SVN)
    - * The getImageChannelKurtosis purpose - * @link https://php.net/manual/en/imagick.getimagechannelkurtosis.php - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return float[] an array with kurtosis and skewness - * members. - * @throws ImagickException on error. - */ + #[Pure] + public function getImageChannelRange($channel) {} + + /** + * (No version information available, might only be in SVN)
    + * Gets the image alpha channel + * @link https://php.net/manual/en/imagick.getimagealphachannel.php + * @return int a constant defining the current alpha channel value. Refer to this + * list of alpha channel constants. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageAlphaChannel() {} + + /** + * (No version information available, might only be in SVN)
    + * Gets channel distortions + * @link https://php.net/manual/en/imagick.getimagechanneldistortions.php + * @param Imagick $reference

    + * Imagick object containing the reference image + *

    + * @param int $metric

    + * Refer to this list of metric type constants. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return float a float describing the channel distortion. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageChannelDistortions(Imagick $reference, $metric, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * (No version information available, might only be in SVN)
    + * Sets the image gravity + * @link https://php.net/manual/en/imagick.setimagegravity.php + * @param int $gravity

    + * The gravity property. Refer to the list of + * gravity constants. + *

    + * @return bool No value is returned. + * @throws ImagickException on error. + */ + public function setImageGravity($gravity) {} + + /** + * (No version information available, might only be in SVN)
    + * Gets the image gravity + * @link https://php.net/manual/en/imagick.getimagegravity.php + * @return int the images gravity property. Refer to the list of + * gravity constants. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageGravity() {} + + /** + * (No version information available, might only be in SVN)
    + * Imports image pixels + * @link https://php.net/manual/en/imagick.importimagepixels.php + * @param int $x

    + * The image x position + *

    + * @param int $y

    + * The image y position + *

    + * @param int $width

    + * The image width + *

    + * @param int $height

    + * The image height + *

    + * @param string $map

    + * Map of pixel ordering as a string. This can be for example RGB. + * The value can be any combination or order of R = red, G = green, B = blue, A = alpha (0 is transparent), + * O = opacity (0 is opaque), C = cyan, Y = yellow, M = magenta, K = black, I = intensity (for grayscale), P = pad. + *

    + * @param int $storage

    + * The pixel storage method. + * Refer to this list of pixel constants. + *

    + * @param array $pixels

    + * The array of pixels + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function importImagePixels($x, $y, $width, $height, $map, $storage, array $pixels) {} + + /** + * (No version information available, might only be in SVN)
    + * Removes skew from the image + * @link https://php.net/manual/en/imagick.deskewimage.php + * @param float $threshold

    + * Deskew threshold + *

    + * @return bool + * @throws ImagickException on error. + */ + public function deskewImage($threshold) {} + + /** + * (No version information available, might only be in SVN)
    + * Segments an image + * @link https://php.net/manual/en/imagick.segmentimage.php + * @param int $COLORSPACE

    + * One of the COLORSPACE constants. + *

    + * @param float $cluster_threshold

    + * A percentage describing minimum number of pixels + * contained in hexedra before it is considered valid. + *

    + * @param float $smooth_threshold

    + * Eliminates noise from the histogram. + *

    + * @param bool $verbose [optional]

    + * Whether to output detailed information about recognised classes. + *

    + * @return bool + * @throws ImagickException on error. + */ + public function segmentImage($COLORSPACE, $cluster_threshold, $smooth_threshold, $verbose = false) {} + + /** + * (No version information available, might only be in SVN)
    + * Interpolates colors + * @link https://php.net/manual/en/imagick.sparsecolorimage.php + * @param int $SPARSE_METHOD

    + * Refer to this list of sparse method constants + *

    + * @param array $arguments

    + * An array containing the coordinates. + * The array is in format array(1,1, 2,45) + *

    + * @param int $channel [optional] + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function sparseColorImage($SPARSE_METHOD, array $arguments, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * (No version information available, might only be in SVN)
    + * Remaps image colors + * @link https://php.net/manual/en/imagick.remapimage.php + * @param Imagick $replacement

    + * An Imagick object containing the replacement colors + *

    + * @param int $DITHER

    + * Refer to this list of dither method constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function remapImage(Imagick $replacement, $DITHER) {} + + /** + * (No version information available, might only be in SVN)
    + * Exports raw image pixels + * @link https://php.net/manual/en/imagick.exportimagepixels.php + * @param int $x

    + * X-coordinate of the exported area + *

    + * @param int $y

    + * Y-coordinate of the exported area + *

    + * @param int $width

    + * Width of the exported aread + *

    + * @param int $height

    + * Height of the exported area + *

    + * @param string $map

    + * Ordering of the exported pixels. For example "RGB". + * Valid characters for the map are R, G, B, A, O, C, Y, M, K, I and P. + *

    + * @param int $STORAGE

    + * Refer to this list of pixel type constants + *

    + * @return int[] an array containing the pixels values. + * @throws ImagickException on error. + */ + public function exportImagePixels($x, $y, $width, $height, $map, $STORAGE) {} + + /** + * (No version information available, might only be in SVN)
    + * The getImageChannelKurtosis purpose + * @link https://php.net/manual/en/imagick.getimagechannelkurtosis.php + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return float[] an array with kurtosis and skewness + * members. + * @throws ImagickException on error. + */ #[ArrayShape([ "kurtosis" => "float", "skewness" => "float" ])] - #[Pure] - public function getImageChannelKurtosis ($channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * (No version information available, might only be in SVN)
    - * Applies a function on the image - * @link https://php.net/manual/en/imagick.functionimage.php - * @param int $function

    - * Refer to this list of function constants - *

    - * @param array $arguments

    - * Array of arguments to pass to this function. - *

    - * @param int $channel [optional] - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function functionImage ($function, array $arguments, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * Transform image colorspace - * @param $COLORSPACE - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function transformImageColorspace ($COLORSPACE) {} - - /** - * (No version information available, might only be in SVN)
    - * Replaces colors in the image - * @link https://php.net/manual/en/imagick.haldclutimage.php - * @param Imagick $clut

    - * Imagick object containing the Hald lookup image. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function haldClutImage (Imagick $clut, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * Adjusts the levels of a particular image channel by scaling the minimum and maximum values to the full quantum range. - * @param $CHANNEL [optional] - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function autoLevelImage ($CHANNEL) {} - - /** - * @link https://www.php.net/manual/en/imagick.blueshiftimage.php - * @param float $factor [optional] - * @return bool - * @throws ImagickException on error. - */ - public function blueShiftImage ($factor) {} - - /** - * (No version information available, might only be in SVN)
    - * Get image artifact - * @link https://php.net/manual/en/imagick.getimageartifact.php - * @param string $artifact

    - * The name of the artifact - *

    - * @return string the artifact value on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageArtifact ($artifact) {} - - /** - * (No version information available, might only be in SVN)
    - * Set image artifact - * @link https://php.net/manual/en/imagick.setimageartifact.php - * @param string $artifact

    - * The name of the artifact - *

    - * @param string $value

    - * The value of the artifact - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageArtifact ($artifact, $value) {} - - /** - * (No version information available, might only be in SVN)
    - * Delete image artifact - * @link https://php.net/manual/en/imagick.deleteimageartifact.php - * @param string $artifact

    - * The name of the artifact to delete - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function deleteImageArtifact ($artifact) {} - - /** - * (PECL imagick 0.9.10-0.9.9)
    - * Gets the colorspace - * @link https://php.net/manual/en/imagick.getcolorspace.php - * @return int an integer which can be compared against COLORSPACE constants. - */ - #[Pure] - public function getColorspace () {} - - /** - * (No version information available, might only be in SVN)
    - * Set colorspace - * @link https://php.net/manual/en/imagick.setcolorspace.php - * @param int $COLORSPACE

    - * One of the COLORSPACE constants - *

    - * @return bool TRUE on success. - */ - public function setColorspace ($COLORSPACE) {} - - /** - * @param $CHANNEL [optional] - * @throws ImagickException on error. - */ - public function clampImage ($CHANNEL) {} - - /** - * @param bool $stack - * @param int $offset - * @return Imagick - * @throws ImagickException on error. - */ - public function smushImages ($stack, $offset) {} - - /** - * (PECL imagick 2.0.0)
    - * The Imagick constructor - * @link https://php.net/manual/en/imagick.construct.php - * @param mixed $files

    - * The path to an image to load or an array of paths. Paths can include - * wildcards for file names, or can be URLs. - *

    - * @throws ImagickException Throws ImagickException on error. - */ - public function __construct ($files = null) {} - - /** - * @return string - */ - public function __toString () {} - - public function count () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns a MagickPixelIterator - * @link https://php.net/manual/en/imagick.getpixeliterator.php - * @return ImagickPixelIterator an ImagickPixelIterator on success. - * @throws ImagickException on error. - * @throws ImagickPixelIteratorException on error. - */ - #[Pure] - public function getPixelIterator () {} - - /** - * (PECL imagick 2.0.0)
    - * Get an ImagickPixelIterator for an image section - * @link https://php.net/manual/en/imagick.getpixelregioniterator.php - * @param int $x

    - * The x-coordinate of the region. - *

    - * @param int $y

    - * The y-coordinate of the region. - *

    - * @param int $columns

    - * The width of the region. - *

    - * @param int $rows

    - * The height of the region. - *

    - * @return ImagickPixelIterator an ImagickPixelIterator for an image section. - * @throws ImagickException on error. - * @throws ImagickPixelIteratorException on error. - */ - #[Pure] - public function getPixelRegionIterator ($x, $y, $columns, $rows) {} - - /** - * (PECL imagick 0.9.0-0.9.9)
    - * Reads image from filename - * @link https://php.net/manual/en/imagick.readimage.php - * @param string $filename - * @return bool TRUE on success. - * @throws ImagickException Throws ImagickException on error. - */ - public function readImage ($filename) {} - - /** - * @param $filenames - * @throws ImagickException Throws ImagickException on error. - */ - public function readImages ($filenames) {} - - /** - * (PECL imagick 2.0.0)
    - * Reads image from a binary string - * @link https://php.net/manual/en/imagick.readimageblob.php - * @param string $image - * @param string $filename [optional] - * @return bool TRUE on success. - * @throws ImagickException Throws ImagickException on error. - */ - public function readImageBlob ($image, $filename = null) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the format of a particular image - * @link https://php.net/manual/en/imagick.setimageformat.php - * @param string $format

    - * String presentation of the image format. Format support - * depends on the ImageMagick installation. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageFormat ($format) {} - - /** - * Scales the size of an image to the given dimensions. Passing zero as either of the arguments will preserve dimension while scaling.
    - * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.
    - * If false, the calculations should produce the same results as ImageMagick CLI does. - * @link https://php.net/manual/en/imagick.scaleimage.php - * @param int $cols - * @param int $rows - * @param bool $bestfit [optional] The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. - * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE - * @return bool TRUE on success. - * @throws ImagickException Throws ImagickException on error - * @since 2.0.0 - */ - public function scaleImage ($cols, $rows, $bestfit = false, $legacy = false) {} - - /** - * (PECL imagick 0.9.0-0.9.9)
    - * Writes an image to the specified filename - * @link https://php.net/manual/en/imagick.writeimage.php - * @param string $filename [optional]

    - * Filename where to write the image. The extension of the filename - * defines the type of the file. - * Format can be forced regardless of file extension using format: prefix, - * for example "jpg:test.png". - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function writeImage ($filename = null) {} - - /** - * (PECL imagick 0.9.0-0.9.9)
    - * Writes an image or image sequence - * @link https://php.net/manual/en/imagick.writeimages.php - * @param string $filename - * @param bool $adjoin - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function writeImages ($filename, $adjoin) {} - - /** - * (PECL imagick 2.0.0)
    - * Adds blur filter to image - * @link https://php.net/manual/en/imagick.blurimage.php - * @param float $radius

    - * Blur radius - *

    - * @param float $sigma

    - * Standard deviation - *

    - * @param int $channel [optional]

    - * The Channeltype - * constant. When not supplied, all channels are blurred. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function blurImage ($radius, $sigma, $channel = null) {} - - /** - * Changes the size of an image to the given dimensions and removes any associated profiles.
    - * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.
    - * If false, the calculations should produce the same results as ImageMagick CLI does.
    - *
    - * Note: The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. - * @link https://php.net/manual/en/imagick.thumbnailimage.php - * @param int $columns

    - * Image width - *

    - * @param int $rows

    - * Image height - *

    - * @param bool $bestfit [optional]

    - * Whether to force maximum values - *

    - * The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. - * @param bool $fill [optional] - * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE - * @return bool TRUE on success. - * @throws ImagickException on error. - * @since 2.0.0 - */ - public function thumbnailImage ($columns, $rows, $bestfit = false, $fill = false, $legacy = false) {} - - /** - * Creates a cropped thumbnail at the requested size. - * If legacy is true, uses the incorrect behaviour that was present until Imagick 3.4.0. - * If false it uses the correct behaviour. - * @link https://php.net/manual/en/imagick.cropthumbnailimage.php - * @param int $width The width of the thumbnail - * @param int $height The Height of the thumbnail - * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE - * @return bool TRUE on succes - * @throws ImagickException Throws ImagickException on error - * @since 2.0.0 - */ - public function cropThumbnailImage ($width, $height, $legacy = false) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the filename of a particular image in a sequence - * @link https://php.net/manual/en/imagick.getimagefilename.php - * @return string a string with the filename of the image. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageFilename () {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the filename of a particular image - * @link https://php.net/manual/en/imagick.setimagefilename.php - * @param string $filename - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageFilename ($filename) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the format of a particular image in a sequence - * @link https://php.net/manual/en/imagick.getimageformat.php - * @return string a string containing the image format on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageFormat () {} - - /** - * @link https://secure.php.net/manual/en/imagick.getimagemimetype.php - * @return string Returns the image mime-type. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageMimeType () {} - - /** - * (PECL imagick 2.0.0)
    - * Removes an image from the image list - * @link https://php.net/manual/en/imagick.removeimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function removeImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Destroys the Imagick object - * @link https://php.net/manual/en/imagick.destroy.php - * @return bool TRUE on success. - */ - public function destroy () {} - - /** - * (PECL imagick 2.0.0)
    - * Clears all resources associated to Imagick object - * @link https://php.net/manual/en/imagick.clear.php - * @return bool TRUE on success. - */ - public function clear () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the image length in bytes - * @link https://php.net/manual/en/imagick.getimagesize.php - * @return int an int containing the current image size. - * @throws ImagickException on error. - */ - #[Deprecated(replacement: "%class%->getImageLength()")] - #[Pure] - public function getImageSize () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the image sequence as a blob - * @link https://php.net/manual/en/imagick.getimageblob.php - * @return string a string containing the image. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageBlob () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns all image sequences as a blob - * @link https://php.net/manual/en/imagick.getimagesblob.php - * @return string a string containing the images. On failure, throws ImagickException on failure - * @throws ImagickException on failure - */ - #[Pure] - public function getImagesBlob () {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the Imagick iterator to the first image - * @link https://php.net/manual/en/imagick.setfirstiterator.php - * @return bool TRUE on success. - */ - public function setFirstIterator () {} - - /** - * (PECL imagick 2.0.1)
    - * Sets the Imagick iterator to the last image - * @link https://php.net/manual/en/imagick.setlastiterator.php - * @return bool TRUE on success. - */ - public function setLastIterator () {} - - public function resetIterator () {} - - /** - * (PECL imagick 2.0.0)
    - * Move to the previous image in the object - * @link https://php.net/manual/en/imagick.previousimage.php - * @return bool TRUE on success. - */ - public function previousImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Moves to the next image - * @link https://php.net/manual/en/imagick.nextimage.php - * @return bool TRUE on success. - */ - public function nextImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Checks if the object has a previous image - * @link https://php.net/manual/en/imagick.haspreviousimage.php - * @return bool TRUE if the object has more images when traversing the list in the - * reverse direction, returns FALSE if there are none. - */ - public function hasPreviousImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Checks if the object has more images - * @link https://php.net/manual/en/imagick.hasnextimage.php - * @return bool TRUE if the object has more images when traversing the list in the - * forward direction, returns FALSE if there are none. - */ - public function hasNextImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Set the iterator position - * @link https://php.net/manual/en/imagick.setimageindex.php - * @param int $index

    - * The position to set the iterator to - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function setImageIndex ($index) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the index of the current active image - * @link https://php.net/manual/en/imagick.getimageindex.php - * @return int an integer containing the index of the image in the stack. - */ - #[Deprecated] - #[Pure] - public function getImageIndex () {} - - /** - * (PECL imagick 2.0.0)
    - * Adds a comment to your image - * @link https://php.net/manual/en/imagick.commentimage.php - * @param string $comment

    - * The comment to add - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function commentImage ($comment) {} - - /** - * (PECL imagick 2.0.0)
    - * Extracts a region of the image - * @link https://php.net/manual/en/imagick.cropimage.php - * @param int $width

    - * The width of the crop - *

    - * @param int $height

    - * The height of the crop - *

    - * @param int $x

    - * The X coordinate of the cropped region's top left corner - *

    - * @param int $y

    - * The Y coordinate of the cropped region's top left corner - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function cropImage ($width, $height, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Adds a label to an image - * @link https://php.net/manual/en/imagick.labelimage.php - * @param string $label

    - * The label to add - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function labelImage ($label) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the width and height as an associative array - * @link https://php.net/manual/en/imagick.getimagegeometry.php - * @return int[] an array with the width/height of the image. - * @throws ImagickException on error. - */ - #[ArrayShape([ - "width" => "int", - "height" => "int" - ])] - #[Pure] - public function getImageGeometry () {} - - /** - * (PECL imagick 2.0.0)
    - * Renders the ImagickDraw object on the current image - * @link https://php.net/manual/en/imagick.drawimage.php - * @param ImagickDraw $draw

    - * The drawing operations to render on the image. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function drawImage (ImagickDraw $draw) {} - - /** - * (No version information available, might only be in SVN)
    - * Sets the image compression quality - * @link https://php.net/manual/en/imagick.setimagecompressionquality.php - * @param int $quality

    - * The image compression quality as an integer - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageCompressionQuality ($quality) {} - - /** - * (PECL imagick 2.2.2)
    - * Gets the current image's compression quality - * @link https://php.net/manual/en/imagick.getimagecompressionquality.php - * @return int integer describing the images compression quality - */ - #[Pure] - public function getImageCompressionQuality () {} - - /** - * (PECL imagick 2.0.0)
    - * Annotates an image with text - * @link https://php.net/manual/en/imagick.annotateimage.php - * @param ImagickDraw $draw_settings

    - * The ImagickDraw object that contains settings for drawing the text - *

    - * @param float $x

    - * Horizontal offset in pixels to the left of text - *

    - * @param float $y

    - * Vertical offset in pixels to the baseline of text - *

    - * @param float $angle

    - * The angle at which to write the text - *

    - * @param string $text

    - * The string to draw - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function annotateImage (ImagickDraw $draw_settings, $x, $y, $angle, $text) {} - - /** - * (PECL imagick 2.0.0)
    - * Composite one image onto another - * @link https://php.net/manual/en/imagick.compositeimage.php - * @param Imagick $composite_object

    - * Imagick object which holds the composite image - *

    - * @param int $composite Composite operator - * @param int $x

    - * The column offset of the composited image - *

    - * @param int $y

    - * The row offset of the composited image - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function compositeImage (Imagick $composite_object, $composite, $x, $y, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Control the brightness, saturation, and hue - * @link https://php.net/manual/en/imagick.modulateimage.php - * @param float $brightness - * @param float $saturation - * @param float $hue - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function modulateImage ($brightness, $saturation, $hue) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the number of unique colors in the image - * @link https://php.net/manual/en/imagick.getimagecolors.php - * @return int TRUE on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageColors () {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a composite image - * @link https://php.net/manual/en/imagick.montageimage.php - * @param ImagickDraw $draw

    - * The font name, size, and color are obtained from this object. - *

    - * @param string $tile_geometry

    - * The number of tiles per row and page (e.g. 6x4+0+0). - *

    - * @param string $thumbnail_geometry

    - * Preferred image size and border size of each thumbnail - * (e.g. 120x120+4+3>). - *

    - * @param int $mode

    - * Thumbnail framing mode, see Montage Mode constants. - *

    - * @param string $frame

    - * Surround the image with an ornamental border (e.g. 15x15+3+3). The - * frame color is that of the thumbnail's matte color. - *

    - * @return Imagick TRUE on success. - * @throws ImagickException on error. - */ - public function montageImage (ImagickDraw $draw, $tile_geometry, $thumbnail_geometry, $mode, $frame) {} - - /** - * (PECL imagick 2.0.0)
    - * Identifies an image and fetches attributes - * @link https://php.net/manual/en/imagick.identifyimage.php - * @param bool $appendRawOutput [optional] - * @return array Identifies an image and returns the attributes. Attributes include - * the image width, height, size, and others. - * @throws ImagickException on error. - */ - public function identifyImage ($appendRawOutput = false) {} - - /** - * (PECL imagick 2.0.0)
    - * Changes the value of individual pixels based on a threshold - * @link https://php.net/manual/en/imagick.thresholdimage.php - * @param float $threshold - * @param int $channel [optional] - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function thresholdImage ($threshold, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Selects a threshold for each pixel based on a range of intensity - * @link https://php.net/manual/en/imagick.adaptivethresholdimage.php - * @param int $width

    - * Width of the local neighborhood. - *

    - * @param int $height

    - * Height of the local neighborhood. - *

    - * @param int $offset

    - * The mean offset - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function adaptiveThresholdImage ($width, $height, $offset) {} - - /** - * (PECL imagick 2.0.0)
    - * Forces all pixels below the threshold into black - * @link https://php.net/manual/en/imagick.blackthresholdimage.php - * @param mixed $threshold

    - * The threshold below which everything turns black - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function blackThresholdImage ($threshold) {} - - /** - * (PECL imagick 2.0.0)
    - * Force all pixels above the threshold into white - * @link https://php.net/manual/en/imagick.whitethresholdimage.php - * @param mixed $threshold - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function whiteThresholdImage ($threshold) {} - - /** - * (PECL imagick 2.0.0)
    - * Append a set of images - * @link https://php.net/manual/en/imagick.appendimages.php - * @param bool $stack [optional]

    - * Whether to stack the images vertically. - * By default (or if FALSE is specified) images are stacked left-to-right. - * If stack is TRUE, images are stacked top-to-bottom. - *

    - * @return Imagick Imagick instance on success. - * @throws ImagickException on error. - */ - public function appendImages ($stack = false) {} - - /** - * (PECL imagick 2.0.0)
    - * Simulates a charcoal drawing - * @link https://php.net/manual/en/imagick.charcoalimage.php - * @param float $radius

    - * The radius of the Gaussian, in pixels, not counting the center pixel - *

    - * @param float $sigma

    - * The standard deviation of the Gaussian, in pixels - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function charcoalImage ($radius, $sigma) {} - - /** - * (PECL imagick 2.0.0)
    - * Enhances the contrast of a color image - * @link https://php.net/manual/en/imagick.normalizeimage.php - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function normalizeImage ($channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Simulates an oil painting - * @link https://php.net/manual/en/imagick.oilpaintimage.php - * @param float $radius

    - * The radius of the circular neighborhood. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function oilPaintImage ($radius) {} - - /** - * (PECL imagick 2.0.0)
    - * Reduces the image to a limited number of color level - * @link https://php.net/manual/en/imagick.posterizeimage.php - * @param int $levels - * @param bool $dither - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function posterizeImage ($levels, $dither) {} - - /** - * (PECL imagick 2.0.0)
    - * Radial blurs an image - * @link https://php.net/manual/en/imagick.radialblurimage.php - * @param float $angle - * @param int $channel [optional] - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function radialBlurImage ($angle, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a simulated 3d button-like effect - * @link https://php.net/manual/en/imagick.raiseimage.php - * @param int $width - * @param int $height - * @param int $x - * @param int $y - * @param bool $raise - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function raiseImage ($width, $height, $x, $y, $raise) {} - - /** - * (PECL imagick 2.0.0)
    - * Resample image to desired resolution - * @link https://php.net/manual/en/imagick.resampleimage.php - * @param float $x_resolution - * @param float $y_resolution - * @param int $filter - * @param float $blur - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function resampleImage ($x_resolution, $y_resolution, $filter, $blur) {} - - /** - * Scales an image to the desired dimensions with one of these filters:
    - * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.
    - * If false, the calculations should produce the same results as ImageMagick CLI does.
    - *
    - * Note: The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched.
    - * In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. - * @link https://php.net/manual/en/imagick.resizeimage.php - * @param int $columns Width of the image - * @param int $rows Height of the image - * @param int $filter Refer to the list of filter constants. - * @param float $blur The blur factor where > 1 is blurry, < 1 is sharp. - * @param bool $bestfit [optional] Added since 2.1.0. Added optional fit parameter. This method now supports proportional scaling. Pass zero as either parameter for proportional scaling - * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE - * @return bool TRUE on success - * @throws ImagickException on error. - * @since 2.0.0 - */ - public function resizeImage ($columns, $rows, $filter, $blur, $bestfit = false, $legacy = false) {} - - /** - * (PECL imagick 2.0.0)
    - * Offsets an image - * @link https://php.net/manual/en/imagick.rollimage.php - * @param int $x

    - * The X offset. - *

    - * @param int $y

    - * The Y offset. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function rollImage ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Rotates an image - * @link https://php.net/manual/en/imagick.rotateimage.php - * @param mixed $background

    - * The background color - *

    - * @param float $degrees

    - * The number of degrees to rotate the image - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function rotateImage ($background, $degrees) {} - - /** - * (PECL imagick 2.0.0)
    - * Scales an image with pixel sampling - * @link https://php.net/manual/en/imagick.sampleimage.php - * @param int $columns - * @param int $rows - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function sampleImage ($columns, $rows) {} - - /** - * (PECL imagick 2.0.0)
    - * Applies a solarizing effect to the image - * @link https://php.net/manual/en/imagick.solarizeimage.php - * @param int $threshold - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function solarizeImage ($threshold) {} - - /** - * (PECL imagick 2.0.0)
    - * Simulates an image shadow - * @link https://php.net/manual/en/imagick.shadowimage.php - * @param float $opacity - * @param float $sigma - * @param int $x - * @param int $y - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function shadowImage ($opacity, $sigma, $x, $y) {} - - /** - * @param string $key - * @param string $value - * @return bool - * @throws ImagickException on error. - */ - #[Deprecated] - public function setImageAttribute ($key, $value) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image background color - * @link https://php.net/manual/en/imagick.setimagebackgroundcolor.php - * @param mixed $background - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageBackgroundColor ($background) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image composite operator - * @link https://php.net/manual/en/imagick.setimagecompose.php - * @param int $compose - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageCompose ($compose) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image compression - * @link https://php.net/manual/en/imagick.setimagecompression.php - * @param int $compression

    - * One of the COMPRESSION constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageCompression ($compression) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image delay - * @link https://php.net/manual/en/imagick.setimagedelay.php - * @param int $delay

    - * The amount of time expressed in 'ticks' that the image should be - * displayed for. For animated GIFs there are 100 ticks per second, so a - * value of 20 would be 20/100 of a second aka 1/5th of a second. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageDelay ($delay) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image depth - * @link https://php.net/manual/en/imagick.setimagedepth.php - * @param int $depth - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageDepth ($depth) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image gamma - * @link https://php.net/manual/en/imagick.setimagegamma.php - * @param float $gamma - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageGamma ($gamma) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image iterations - * @link https://php.net/manual/en/imagick.setimageiterations.php - * @param int $iterations

    - * The number of iterations the image should loop over. Set to '0' to loop - * continuously. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageIterations ($iterations) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image matte color - * @link https://php.net/manual/en/imagick.setimagemattecolor.php - * @param mixed $matte - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageMatteColor ($matte) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the page geometry of the image - * @link https://php.net/manual/en/imagick.setimagepage.php - * @param int $width - * @param int $height - * @param int $x - * @param int $y - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImagePage ($width, $height, $x, $y) {} - - /** - * @param $filename - * @throws ImagickException on error. - */ - public function setImageProgressMonitor ($filename) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image resolution - * @link https://php.net/manual/en/imagick.setimageresolution.php - * @param float $x_resolution - * @param float $y_resolution - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageResolution ($x_resolution, $y_resolution) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image scene - * @link https://php.net/manual/en/imagick.setimagescene.php - * @param int $scene - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageScene ($scene) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image ticks-per-second - * @link https://php.net/manual/en/imagick.setimagetickspersecond.php - * @param int $ticks_per_second

    - * The duration for which an image should be displayed expressed in ticks - * per second. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageTicksPerSecond ($ticks_per_second) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image type - * @link https://php.net/manual/en/imagick.setimagetype.php - * @param int $image_type - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageType ($image_type) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image units of resolution - * @link https://php.net/manual/en/imagick.setimageunits.php - * @param int $units - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageUnits ($units) {} - - /** - * (PECL imagick 2.0.0)
    - * Sharpens an image - * @link https://php.net/manual/en/imagick.sharpenimage.php - * @param float $radius - * @param float $sigma - * @param int $channel [optional] - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function sharpenImage ($radius, $sigma, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Shaves pixels from the image edges - * @link https://php.net/manual/en/imagick.shaveimage.php - * @param int $columns - * @param int $rows - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function shaveImage ($columns, $rows) {} - - /** - * (PECL imagick 2.0.0)
    - * Creating a parallelogram - * @link https://php.net/manual/en/imagick.shearimage.php - * @param mixed $background

    - * The background color - *

    - * @param float $x_shear

    - * The number of degrees to shear on the x axis - *

    - * @param float $y_shear

    - * The number of degrees to shear on the y axis - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function shearImage ($background, $x_shear, $y_shear) {} - - /** - * (PECL imagick 2.0.0)
    - * Splices a solid color into the image - * @link https://php.net/manual/en/imagick.spliceimage.php - * @param int $width - * @param int $height - * @param int $x - * @param int $y - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function spliceImage ($width, $height, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Fetch basic attributes about the image - * @link https://php.net/manual/en/imagick.pingimage.php - * @param string $filename

    - * The filename to read the information from. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function pingImage ($filename) {} - - /** - * (PECL imagick 2.0.0)
    - * Reads image from open filehandle - * @link https://php.net/manual/en/imagick.readimagefile.php - * @param resource $filehandle - * @param string $fileName [optional] - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function readImageFile ($filehandle, $fileName = null) {} - - /** - * (PECL imagick 2.0.0)
    - * Displays an image - * @link https://php.net/manual/en/imagick.displayimage.php - * @param string $servername

    - * The X server name - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function displayImage ($servername) {} - - /** - * (PECL imagick 2.0.0)
    - * Displays an image or image sequence - * @link https://php.net/manual/en/imagick.displayimages.php - * @param string $servername

    - * The X server name - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function displayImages ($servername) {} - - /** - * (PECL imagick 2.0.0)
    - * Randomly displaces each pixel in a block - * @link https://php.net/manual/en/imagick.spreadimage.php - * @param float $radius - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function spreadImage ($radius) {} - - /** - * (PECL imagick 2.0.0)
    - * Swirls the pixels about the center of the image - * @link https://php.net/manual/en/imagick.swirlimage.php - * @param float $degrees - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function swirlImage ($degrees) {} - - /** - * (PECL imagick 2.0.0)
    - * Strips an image of all profiles and comments - * @link https://php.net/manual/en/imagick.stripimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function stripImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns formats supported by Imagick - * @link https://php.net/manual/en/imagick.queryformats.php - * @param string $pattern [optional] - * @return array an array containing the formats supported by Imagick. - */ - public static function queryFormats ($pattern = "*") {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the configured fonts - * @link https://php.net/manual/en/imagick.queryfonts.php - * @param string $pattern [optional]

    - * The query pattern - *

    - * @return array an array containing the configured fonts. - */ - public static function queryFonts ($pattern = "*") {} - - /** - * (PECL imagick 2.0.0)
    - * Returns an array representing the font metrics - * @link https://php.net/manual/en/imagick.queryfontmetrics.php - * @param ImagickDraw $properties

    - * ImagickDraw object containing font properties - *

    - * @param string $text

    - * The text - *

    - * @param bool $multiline [optional]

    - * Multiline parameter. If left empty it is autodetected - *

    - * @return array a multi-dimensional array representing the font metrics. - * @throws ImagickException on error. - */ - public function queryFontMetrics (ImagickDraw $properties, $text, $multiline = null) {} - - /** - * (PECL imagick 2.0.0)
    - * Hides a digital watermark within the image - * @link https://php.net/manual/en/imagick.steganoimage.php - * @param Imagick $watermark_wand - * @param int $offset - * @return Imagick TRUE on success. - * @throws ImagickException on error. - */ - public function steganoImage (Imagick $watermark_wand, $offset) {} - - /** - * (PECL imagick 2.0.0)
    - * Adds random noise to the image - * @link https://php.net/manual/en/imagick.addnoiseimage.php - * @param int $noise_type

    - * The type of the noise. Refer to this list of - * noise constants. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function addNoiseImage ($noise_type, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * (PECL imagick 2.0.0)
    - * Simulates motion blur - * @link https://php.net/manual/en/imagick.motionblurimage.php - * @param float $radius

    - * The radius of the Gaussian, in pixels, not counting the center pixel. - *

    - * @param float $sigma

    - * The standard deviation of the Gaussian, in pixels. - *

    - * @param float $angle

    - * Apply the effect along this angle. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - * The channel argument affects only if Imagick is compiled against ImageMagick version - * 6.4.4 or greater. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function motionBlurImage ($radius, $sigma, $angle, $channel = Imagick::CHANNEL_DEFAULT) {} - - /** - * (PECL imagick 2.0.0)
    - * Forms a mosaic from images - * @link https://php.net/manual/en/imagick.mosaicimages.php - * @return Imagick TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function mosaicImages () {} - - /** - * (PECL imagick 2.0.0)
    - * Method morphs a set of images - * @link https://php.net/manual/en/imagick.morphimages.php - * @param int $number_frames

    - * The number of in-between images to generate. - *

    - * @return Imagick This method returns a new Imagick object on success. - * Throw an ImagickException on error. - * @throws ImagickException on error - * @throws ImagickException on error. - */ - public function morphImages ($number_frames) {} - - /** - * (PECL imagick 2.0.0)
    - * Scales an image proportionally to half its size - * @link https://php.net/manual/en/imagick.minifyimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function minifyImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Transforms an image - * @link https://php.net/manual/en/imagick.affinetransformimage.php - * @param ImagickDraw $matrix

    - * The affine matrix - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function affineTransformImage (ImagickDraw $matrix) {} - - /** - * (PECL imagick 2.0.0)
    - * Average a set of images - * @link https://php.net/manual/en/imagick.averageimages.php - * @return Imagick a new Imagick object on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function averageImages () {} - - /** - * (PECL imagick 2.0.0)
    - * Surrounds the image with a border - * @link https://php.net/manual/en/imagick.borderimage.php - * @param mixed $bordercolor

    - * ImagickPixel object or a string containing the border color - *

    - * @param int $width

    - * Border width - *

    - * @param int $height

    - * Border height - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function borderImage ($bordercolor, $width, $height) {} - - /** - * (PECL imagick 2.0.0)
    - * Removes a region of an image and trims - * @link https://php.net/manual/en/imagick.chopimage.php - * @param int $width

    - * Width of the chopped area - *

    - * @param int $height

    - * Height of the chopped area - *

    - * @param int $x

    - * X origo of the chopped area - *

    - * @param int $y

    - * Y origo of the chopped area - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function chopImage ($width, $height, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Clips along the first path from the 8BIM profile - * @link https://php.net/manual/en/imagick.clipimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function clipImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Clips along the named paths from the 8BIM profile - * @link https://php.net/manual/en/imagick.clippathimage.php - * @param string $pathname

    - * The name of the path - *

    - * @param bool $inside

    - * If TRUE later operations take effect inside clipping path. - * Otherwise later operations take effect outside clipping path. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function clipPathImage ($pathname, $inside) {} - - /** - * Alias to {@see Imagick::clipPathImage} - * @param string $pathname - * @param string $inside - * @throws ImagickException on error. - */ - public function clipImagePath ($pathname, $inside) {} - - /** - * (PECL imagick 2.0.0)
    - * Composites a set of images - * @link https://php.net/manual/en/imagick.coalesceimages.php - * @return Imagick a new Imagick object on success. - * @throws ImagickException on error. - */ - public function coalesceImages () {} - - /** - * (PECL imagick 2.0.0)
    - * Changes the color value of any pixel that matches target - * @link https://php.net/manual/en/imagick.colorfloodfillimage.php - * @param mixed $fill

    - * ImagickPixel object containing the fill color - *

    - * @param float $fuzz

    - * The amount of fuzz. For example, set fuzz to 10 and the color red at - * intensities of 100 and 102 respectively are now interpreted as the - * same color for the purposes of the floodfill. - *

    - * @param mixed $bordercolor

    - * ImagickPixel object containing the border color - *

    - * @param int $x

    - * X start position of the floodfill - *

    - * @param int $y

    - * Y start position of the floodfill - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function colorFloodfillImage ($fill, $fuzz, $bordercolor, $x, $y) {} - - /** - * Blends the fill color with each pixel in the image. The 'opacity' color is a per channel strength factor for how strongly the color should be applied.
    - * If legacy is true, the behaviour of this function is incorrect, but consistent with how it behaved before Imagick version 3.4.0 - * @link https://php.net/manual/en/imagick.colorizeimage.php - * @param mixed $colorize

    - * ImagickPixel object or a string containing the colorize color - *

    - * @param mixed $opacity

    - * ImagickPixel object or an float containing the opacity value. - * 1.0 is fully opaque and 0.0 is fully transparent. - *

    - * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE - * @return bool TRUE on success. - * @throws ImagickException Throws ImagickException on error - * @since 2.0.0 - */ - public function colorizeImage ($colorize, $opacity, $legacy = false) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the difference in one or more images - * @link https://php.net/manual/en/imagick.compareimagechannels.php - * @param Imagick $image

    - * Imagick object containing the image to compare. - *

    - * @param int $channelType

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @param int $metricType

    - * One of the metric type constants. - *

    - * @return array Array consisting of new_wand and - * distortion. - * @throws ImagickException on error. - */ - public function compareImageChannels (Imagick $image, $channelType, $metricType) {} - - /** - * (PECL imagick 2.0.0)
    - * Compares an image to a reconstructed image - * @link https://php.net/manual/en/imagick.compareimages.php - * @param Imagick $compare

    - * An image to compare to. - *

    - * @param int $metric

    - * Provide a valid metric type constant. Refer to this - * list of metric constants. - *

    - * @return array Array consisting of an Imagick object of the - * reconstructed image and a float representing the difference. - * @throws ImagickException Throws ImagickException on error. - */ - public function compareImages (Imagick $compare, $metric) {} - - /** - * (PECL imagick 2.0.0)
    - * Change the contrast of the image - * @link https://php.net/manual/en/imagick.contrastimage.php - * @param bool $sharpen

    - * The sharpen value - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function contrastImage ($sharpen) {} - - /** - * (PECL imagick 2.0.0)
    - * Combines one or more images into a single image - * @link https://php.net/manual/en/imagick.combineimages.php - * @param int $channelType

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return Imagick TRUE on success. - * @throws ImagickException on error. - */ - public function combineImages ($channelType) {} - - /** - * (PECL imagick 2.0.0)
    - * Applies a custom convolution kernel to the image - * @link https://php.net/manual/en/imagick.convolveimage.php - * @param array $kernel

    - * The convolution kernel - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function convolveImage (array $kernel, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Displaces an image's colormap - * @link https://php.net/manual/en/imagick.cyclecolormapimage.php - * @param int $displace

    - * The amount to displace the colormap. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function cycleColormapImage ($displace) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns certain pixel differences between images - * @link https://php.net/manual/en/imagick.deconstructimages.php - * @return Imagick a new Imagick object on success. - * @throws ImagickException on error. - */ - public function deconstructImages () {} - - /** - * (PECL imagick 2.0.0)
    - * Reduces the speckle noise in an image - * @link https://php.net/manual/en/imagick.despeckleimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function despeckleImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Enhance edges within the image - * @link https://php.net/manual/en/imagick.edgeimage.php - * @param float $radius

    - * The radius of the operation. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function edgeImage ($radius) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns a grayscale image with a three-dimensional effect - * @link https://php.net/manual/en/imagick.embossimage.php - * @param float $radius

    - * The radius of the effect - *

    - * @param float $sigma

    - * The sigma of the effect - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function embossImage ($radius, $sigma) {} - - /** - * (PECL imagick 2.0.0)
    - * Improves the quality of a noisy image - * @link https://php.net/manual/en/imagick.enhanceimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function enhanceImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Equalizes the image histogram - * @link https://php.net/manual/en/imagick.equalizeimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function equalizeImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Applies an expression to an image - * @link https://php.net/manual/en/imagick.evaluateimage.php - * @param int $op

    - * The evaluation operator - *

    - * @param float $constant

    - * The value of the operator - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function evaluateImage ($op, $constant, $channel = Imagick::CHANNEL_ALL) {} - - /** - * Merges a sequence of images. This is useful for combining Photoshop layers into a single image. - * This is replaced by: - *
    -	 * $im = $im->mergeImageLayers(\Imagick::LAYERMETHOD_FLATTEN)
    -	 * 
    - * @link https://php.net/manual/en/imagick.flattenimages.php - * @return Imagick Returns an Imagick object containing the merged image. - * @throws ImagickException Throws ImagickException on error. - * @since 2.0.0 - */ - #[Deprecated] - public function flattenImages () {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a vertical mirror image - * @link https://php.net/manual/en/imagick.flipimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function flipImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a horizontal mirror image - * @link https://php.net/manual/en/imagick.flopimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function flopImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Adds a simulated three-dimensional border - * @link https://php.net/manual/en/imagick.frameimage.php - * @param mixed $matte_color

    - * ImagickPixel object or a string representing the matte color - *

    - * @param int $width

    - * The width of the border - *

    - * @param int $height

    - * The height of the border - *

    - * @param int $inner_bevel

    - * The inner bevel width - *

    - * @param int $outer_bevel

    - * The outer bevel width - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function frameImage ($matte_color, $width, $height, $inner_bevel, $outer_bevel) {} - - /** - * (PECL imagick 2.0.0)
    - * Evaluate expression for each pixel in the image - * @link https://php.net/manual/en/imagick.fximage.php - * @param string $expression

    - * The expression. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return Imagick TRUE on success. - * @throws ImagickException on error. - */ - public function fxImage ($expression, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Gamma-corrects an image - * @link https://php.net/manual/en/imagick.gammaimage.php - * @param float $gamma

    - * The amount of gamma-correction. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function gammaImage ($gamma, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Blurs an image - * @link https://php.net/manual/en/imagick.gaussianblurimage.php - * @param float $radius

    - * The radius of the Gaussian, in pixels, not counting the center pixel. - *

    - * @param float $sigma

    - * The standard deviation of the Gaussian, in pixels. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function gaussianBlurImage ($radius, $sigma, $channel = Imagick::CHANNEL_ALL) {} - - /** - * @link https://www.php.net/manual/en/imagick.getimageattribute.php - * @param string $key

    The key of the attribute to get.

    - * @return string - */ - #[Deprecated] - #[Pure] - public function getImageAttribute ($key) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the image background color - * @link https://php.net/manual/en/imagick.getimagebackgroundcolor.php - * @return ImagickPixel an ImagickPixel set to the background color of the image. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageBackgroundColor () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the chromaticy blue primary point - * @link https://php.net/manual/en/imagick.getimageblueprimary.php - * @return float[] Array consisting of "x" and "y" coordinates of point. - * @throws ImagickException on error. - */ - #[ArrayShape([ - "x" => "float", - "y" => "float" - ])] - #[Pure] - public function getImageBluePrimary () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the image border color - * @link https://php.net/manual/en/imagick.getimagebordercolor.php - * @return ImagickPixel TRUE on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageBorderColor () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the depth for a particular image channel - * @link https://php.net/manual/en/imagick.getimagechanneldepth.php - * @param int $channel

    - * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - *

    - * @return int TRUE on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageChannelDepth ($channel) {} - - /** - * (PECL imagick 2.0.0)
    - * Compares image channels of an image to a reconstructed image - * @link https://php.net/manual/en/imagick.getimagechanneldistortion.php - * @param Imagick $reference

    - * Imagick object to compare to. - *

    - * @param int $channel

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @param int $metric

    - * One of the metric type constants. - *

    - * @return float TRUE on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageChannelDistortion (Imagick $reference, $channel, $metric) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the extrema for one or more image channels - * @link https://php.net/manual/en/imagick.getimagechannelextrema.php - * @param int $channel

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return int[] - * @throws ImagickException on error. - */ - #[ArrayShape([ - "minima" => "int", - "maxima" => "int" - ])] - #[Deprecated] - #[Pure] - public function getImageChannelExtrema ($channel) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the mean and standard deviation - * @link https://php.net/manual/en/imagick.getimagechannelmean.php - * @param int $channel

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return float[] - * @throws ImagickException on error. - */ - #[ArrayShape([ - "mean" => "float", - "standardDeviation" => "float" - ])] - #[Pure] - public function getImageChannelMean ($channel) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns statistics for each channel in the image - * @link https://php.net/manual/en/imagick.getimagechannelstatistics.php - * @return array - * @throws ImagickException on error. - */ - #[Pure] - public function getImageChannelStatistics () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the color of the specified colormap index - * @link https://php.net/manual/en/imagick.getimagecolormapcolor.php - * @param int $index

    - * The offset into the image colormap. - *

    - * @return ImagickPixel TRUE on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageColormapColor ($index) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image colorspace - * @link https://php.net/manual/en/imagick.getimagecolorspace.php - * @return int TRUE on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageColorspace () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the composite operator associated with the image - * @link https://php.net/manual/en/imagick.getimagecompose.php - * @return int TRUE on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageCompose () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image delay - * @link https://php.net/manual/en/imagick.getimagedelay.php - * @return int the image delay. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageDelay () {} - - /** - * (PECL imagick 0.9.1-0.9.9)
    - * Gets the image depth - * @link https://php.net/manual/en/imagick.getimagedepth.php - * @return int The image depth. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageDepth () {} - - /** - * (PECL imagick 2.0.0)
    - * Compares an image to a reconstructed image - * @link https://php.net/manual/en/imagick.getimagedistortion.php - * @param Imagick $reference

    - * Imagick object to compare to. - *

    - * @param int $metric

    - * One of the metric type constants. - *

    - * @return float the distortion metric used on the image (or the best guess - * thereof). - * @throws ImagickException on error. - */ - #[Pure] - public function getImageDistortion (Imagick $reference, $metric) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the extrema for the image - * @link https://php.net/manual/en/imagick.getimageextrema.php - * @return int[] an associative array with the keys "min" and "max". - * @throws ImagickException on error. - */ - #[ArrayShape([ - "min" => "int", - "max" => "int" - ])] - #[Deprecated] - #[Pure] - public function getImageExtrema () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image disposal method - * @link https://php.net/manual/en/imagick.getimagedispose.php - * @return int the dispose method on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageDispose () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image gamma - * @link https://php.net/manual/en/imagick.getimagegamma.php - * @return float the image gamma on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageGamma () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the chromaticy green primary point - * @link https://php.net/manual/en/imagick.getimagegreenprimary.php - * @return float[] an array with the keys "x" and "y" on success, throws an ImagickException on failure. - * @throws ImagickException on failure - * @throws ImagickException on error. - */ - #[ArrayShape([ - "x" => "float", - "y" => "float" - ])] - #[Pure] - public function getImageGreenPrimary () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the image height - * @link https://php.net/manual/en/imagick.getimageheight.php - * @return int the image height in pixels. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageHeight () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image histogram - * @link https://php.net/manual/en/imagick.getimagehistogram.php - * @return array the image histogram as an array of ImagickPixel objects. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageHistogram () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image interlace scheme - * @link https://php.net/manual/en/imagick.getimageinterlacescheme.php - * @return int the interlace scheme as an integer on success. - * Trhow an ImagickException on error. - * @throws ImagickException on error - */ - #[Deprecated] - #[Pure] - public function getImageInterlaceScheme () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image iterations - * @link https://php.net/manual/en/imagick.getimageiterations.php - * @return int the image iterations as an integer. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageIterations () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the image matte color - * @link https://php.net/manual/en/imagick.getimagemattecolor.php - * @return ImagickPixel ImagickPixel object on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageMatteColor () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the page geometry - * @link https://php.net/manual/en/imagick.getimagepage.php - * @return int[] the page geometry associated with the image in an array with the - * keys "width", "height", "x", and "y". - * @throws ImagickException on error. - */ - #[ArrayShape([ - "width" => "int", - "height" => "int", - "x" => "int", - "y" => "int" - ])] - #[Pure] - public function getImagePage () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the color of the specified pixel - * @link https://php.net/manual/en/imagick.getimagepixelcolor.php - * @param int $x

    - * The x-coordinate of the pixel - *

    - * @param int $y

    - * The y-coordinate of the pixel - *

    - * @return ImagickPixel an ImagickPixel instance for the color at the coordinates given. - * @throws ImagickException on error. - */ - #[Pure] - public function getImagePixelColor ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the named image profile - * @link https://php.net/manual/en/imagick.getimageprofile.php - * @param string $name

    - * The name of the profile to return. - *

    - * @return string a string containing the image profile. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageProfile ($name) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the chromaticity red primary point - * @link https://php.net/manual/en/imagick.getimageredprimary.php - * @return float[] the chromaticity red primary point as an array with the keys "x" - * and "y". - * Throw an ImagickException on error. - * @throws ImagickException on error - */ - #[ArrayShape([ - "x" => "float", - "y" => "float" - ])] - #[Pure] - public function getImageRedPrimary () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image rendering intent - * @link https://php.net/manual/en/imagick.getimagerenderingintent.php - * @return int the image rendering intent. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageRenderingIntent () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image X and Y resolution - * @link https://php.net/manual/en/imagick.getimageresolution.php - * @return float[] the resolution as an array. - * @throws ImagickException on error. - */ - #[ArrayShape([ - "x" => "float", - "y" => "float" - ])] - #[Pure] - public function getImageResolution () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image scene - * @link https://php.net/manual/en/imagick.getimagescene.php - * @return int the image scene. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageScene () {} - - /** - * (PECL imagick 2.0.0)
    - * Generates an SHA-256 message digest - * @link https://php.net/manual/en/imagick.getimagesignature.php - * @return string a string containing the SHA-256 hash of the file. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageSignature () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image ticks-per-second - * @link https://php.net/manual/en/imagick.getimagetickspersecond.php - * @return int the image ticks-per-second. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageTicksPerSecond () {} - - /** - * (PECL imagick 0.9.10-0.9.9)
    - * Gets the potential image type - * @link https://php.net/manual/en/imagick.getimagetype.php - * @return int the potential image type. - * imagick::IMGTYPE_UNDEFINED - * imagick::IMGTYPE_BILEVEL - * imagick::IMGTYPE_GRAYSCALE - * imagick::IMGTYPE_GRAYSCALEMATTE - * imagick::IMGTYPE_PALETTE - * imagick::IMGTYPE_PALETTEMATTE - * imagick::IMGTYPE_TRUECOLOR - * imagick::IMGTYPE_TRUECOLORMATTE - * imagick::IMGTYPE_COLORSEPARATION - * imagick::IMGTYPE_COLORSEPARATIONMATTE - * imagick::IMGTYPE_OPTIMIZE - * @throws ImagickException on error. - */ - #[Pure] - public function getImageType () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image units of resolution - * @link https://php.net/manual/en/imagick.getimageunits.php - * @return int the image units of resolution. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageUnits () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the virtual pixel method - * @link https://php.net/manual/en/imagick.getimagevirtualpixelmethod.php - * @return int the virtual pixel method on success. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageVirtualPixelMethod () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the chromaticity white point - * @link https://php.net/manual/en/imagick.getimagewhitepoint.php - * @return float[] the chromaticity white point as an associative array with the keys - * "x" and "y". - * @throws ImagickException on error. - */ - #[ArrayShape([ - "x" => "float", - "y" => "float" - ])] - #[Pure] - public function getImageWhitePoint () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the image width - * @link https://php.net/manual/en/imagick.getimagewidth.php - * @return int the image width. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageWidth () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the number of images in the object - * @link https://php.net/manual/en/imagick.getnumberimages.php - * @return int the number of images associated with Imagick object. - */ - #[Pure] - public function getNumberImages () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the image total ink density - * @link https://php.net/manual/en/imagick.getimagetotalinkdensity.php - * @return float the image total ink density of the image. - * Throw an ImagickException on error. - * @throws ImagickException on error - * @throws ImagickException on error. - */ - #[Pure] - public function getImageTotalInkDensity () {} - - /** - * (PECL imagick 2.0.0)
    - * Extracts a region of the image - * @link https://php.net/manual/en/imagick.getimageregion.php - * @param int $width

    - * The width of the extracted region. - *

    - * @param int $height

    - * The height of the extracted region. - *

    - * @param int $x

    - * X-coordinate of the top-left corner of the extracted region. - *

    - * @param int $y

    - * Y-coordinate of the top-left corner of the extracted region. - *

    - * @return Imagick Extracts a region of the image and returns it as a new wand. - * @throws ImagickException on error. - */ - #[Pure] - public function getImageRegion ($width, $height, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a new image as a copy - * @link https://php.net/manual/en/imagick.implodeimage.php - * @param float $radius

    - * The radius of the implode - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function implodeImage ($radius) {} - - /** - * (PECL imagick 2.0.0)
    - * Adjusts the levels of an image - * @link https://php.net/manual/en/imagick.levelimage.php - * @param float $blackPoint

    - * The image black point - *

    - * @param float $gamma

    - * The gamma value - *

    - * @param float $whitePoint

    - * The image white point - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function levelImage ($blackPoint, $gamma, $whitePoint, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Scales an image proportionally 2x - * @link https://php.net/manual/en/imagick.magnifyimage.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function magnifyImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Replaces the colors of an image with the closest color from a reference image. - * @link https://php.net/manual/en/imagick.mapimage.php - * @param Imagick $map - * @param bool $dither - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function mapImage (Imagick $map, $dither) {} - - /** - * (PECL imagick 2.0.0)
    - * Changes the transparency value of a color - * @link https://php.net/manual/en/imagick.mattefloodfillimage.php - * @param float $alpha

    - * The level of transparency: 1.0 is fully opaque and 0.0 is fully - * transparent. - *

    - * @param float $fuzz

    - * The fuzz member of image defines how much tolerance is acceptable to - * consider two colors as the same. - *

    - * @param mixed $bordercolor

    - * An ImagickPixel object or string representing the border color. - *

    - * @param int $x

    - * The starting x coordinate of the operation. - *

    - * @param int $y

    - * The starting y coordinate of the operation. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function matteFloodfillImage ($alpha, $fuzz, $bordercolor, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Applies a digital filter - * @link https://php.net/manual/en/imagick.medianfilterimage.php - * @param float $radius

    - * The radius of the pixel neighborhood. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function medianFilterImage ($radius) {} - - /** - * (PECL imagick 2.0.0)
    - * Negates the colors in the reference image - * @link https://php.net/manual/en/imagick.negateimage.php - * @param bool $gray

    - * Whether to only negate grayscale pixels within the image. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function negateImage ($gray, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Change any pixel that matches color - * @link https://php.net/manual/en/imagick.paintopaqueimage.php - * @param mixed $target

    - * Change this target color to the fill color within the image. An - * ImagickPixel object or a string representing the target color. - *

    - * @param mixed $fill

    - * An ImagickPixel object or a string representing the fill color. - *

    - * @param float $fuzz

    - * The fuzz member of image defines how much tolerance is acceptable to - * consider two colors as the same. - *

    - * @param int $channel [optional]

    - * Provide any channel constant that is valid for your channel mode. To - * apply to more than one channel, combine channeltype constants using - * bitwise operators. Refer to this - * list of channel constants. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function paintOpaqueImage ($target, $fill, $fuzz, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Changes any pixel that matches color with the color defined by fill - * @link https://php.net/manual/en/imagick.painttransparentimage.php - * @param mixed $target

    - * Change this target color to specified opacity value within the image. - *

    - * @param float $alpha

    - * The level of transparency: 1.0 is fully opaque and 0.0 is fully - * transparent. - *

    - * @param float $fuzz

    - * The fuzz member of image defines how much tolerance is acceptable to - * consider two colors as the same. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function paintTransparentImage ($target, $alpha, $fuzz) {} - - /** - * (PECL imagick 2.0.0)
    - * Quickly pin-point appropriate parameters for image processing - * @link https://php.net/manual/en/imagick.previewimages.php - * @param int $preview

    - * Preview type. See Preview type constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function previewImages ($preview) {} - - /** - * (PECL imagick 2.0.0)
    - * Adds or removes a profile from an image - * @link https://php.net/manual/en/imagick.profileimage.php - * @param string $name - * @param string $profile - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function profileImage ($name, $profile) {} - - /** - * (PECL imagick 2.0.0)
    - * Analyzes the colors within a reference image - * @link https://php.net/manual/en/imagick.quantizeimage.php - * @param int $numberColors - * @param int $colorspace - * @param int $treedepth - * @param bool $dither - * @param bool $measureError - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function quantizeImage ($numberColors, $colorspace, $treedepth, $dither, $measureError) {} - - /** - * (PECL imagick 2.0.0)
    - * Analyzes the colors within a sequence of images - * @link https://php.net/manual/en/imagick.quantizeimages.php - * @param int $numberColors - * @param int $colorspace - * @param int $treedepth - * @param bool $dither - * @param bool $measureError - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function quantizeImages ($numberColors, $colorspace, $treedepth, $dither, $measureError) {} - - /** - * (PECL imagick 2.0.0)
    - * Smooths the contours of an image - * @link https://php.net/manual/en/imagick.reducenoiseimage.php - * @param float $radius - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - #[Deprecated] - public function reduceNoiseImage ($radius) {} - - /** - * (PECL imagick 2.0.0)
    - * Removes the named image profile and returns it - * @link https://php.net/manual/en/imagick.removeimageprofile.php - * @param string $name - * @return string a string containing the profile of the image. - * @throws ImagickException on error. - */ - public function removeImageProfile ($name) {} - - /** - * (PECL imagick 2.0.0)
    - * Separates a channel from the image - * @link https://php.net/manual/en/imagick.separateimagechannel.php - * @param int $channel - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function separateImageChannel ($channel) {} - - /** - * (PECL imagick 2.0.0)
    - * Sepia tones an image - * @link https://php.net/manual/en/imagick.sepiatoneimage.php - * @param float $threshold - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function sepiaToneImage ($threshold) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image bias for any method that convolves an image - * @link https://php.net/manual/en/imagick.setimagebias.php - * @param float $bias - * @return bool TRUE on success. - */ - public function setImageBias ($bias) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image chromaticity blue primary point - * @link https://php.net/manual/en/imagick.setimageblueprimary.php - * @param float $x - * @param float $y - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageBluePrimary ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image border color - * @link https://php.net/manual/en/imagick.setimagebordercolor.php - * @param mixed $border

    - * The border color - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageBorderColor ($border) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the depth of a particular image channel - * @link https://php.net/manual/en/imagick.setimagechanneldepth.php - * @param int $channel - * @param int $depth - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageChannelDepth ($channel, $depth) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the color of the specified colormap index - * @link https://php.net/manual/en/imagick.setimagecolormapcolor.php - * @param int $index - * @param ImagickPixel $color - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageColormapColor ($index, ImagickPixel $color) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image colorspace - * @link https://php.net/manual/en/imagick.setimagecolorspace.php - * @param int $colorspace

    - * One of the COLORSPACE constants - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageColorspace ($colorspace) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image disposal method - * @link https://php.net/manual/en/imagick.setimagedispose.php - * @param int $dispose - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageDispose ($dispose) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image size - * @link https://php.net/manual/en/imagick.setimageextent.php - * @param int $columns - * @param int $rows - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageExtent ($columns, $rows) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image chromaticity green primary point - * @link https://php.net/manual/en/imagick.setimagegreenprimary.php - * @param float $x - * @param float $y - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageGreenPrimary ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image compression - * @link https://php.net/manual/en/imagick.setimageinterlacescheme.php - * @param int $interlace_scheme - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageInterlaceScheme ($interlace_scheme) {} - - /** - * (PECL imagick 2.0.0)
    - * Adds a named profile to the Imagick object - * @link https://php.net/manual/en/imagick.setimageprofile.php - * @param string $name - * @param string $profile - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageProfile ($name, $profile) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image chromaticity red primary point - * @link https://php.net/manual/en/imagick.setimageredprimary.php - * @param float $x - * @param float $y - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageRedPrimary ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image rendering intent - * @link https://php.net/manual/en/imagick.setimagerenderingintent.php - * @param int $rendering_intent - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageRenderingIntent ($rendering_intent) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image virtual pixel method - * @link https://php.net/manual/en/imagick.setimagevirtualpixelmethod.php - * @param int $method - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageVirtualPixelMethod ($method) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image chromaticity white point - * @link https://php.net/manual/en/imagick.setimagewhitepoint.php - * @param float $x - * @param float $y - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImageWhitePoint ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Adjusts the contrast of an image - * @link https://php.net/manual/en/imagick.sigmoidalcontrastimage.php - * @param bool $sharpen - * @param float $alpha - * @param float $beta - * @param int $channel [optional] - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function sigmoidalContrastImage ($sharpen, $alpha, $beta, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Composites two images - * @link https://php.net/manual/en/imagick.stereoimage.php - * @param Imagick $offset_wand - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function stereoImage (Imagick $offset_wand) {} - - /** - * (PECL imagick 2.0.0)
    - * Repeatedly tiles the texture image - * @link https://php.net/manual/en/imagick.textureimage.php - * @param Imagick $texture_wand - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function textureImage (Imagick $texture_wand) {} - - /** - * pplies a color vector to each pixel in the image. The 'opacity' color is a per channel strength factor for how strongly the color should be applied. - * If legacy is true, the behaviour of this function is incorrect, but consistent with how it behaved before Imagick version 3.4.0 - * @link https://php.net/manual/en/imagick.tintimage.php - * @param mixed $tint - * @param mixed $opacity - * @param bool $legacy [optional] - * @return bool TRUE on success. - * @throws ImagickException Throws ImagickException on error - * @since 2.0.0 - */ - public function tintImage ($tint, $opacity, $legacy = false) {} - - /** - * (PECL imagick 2.0.0)
    - * Sharpens an image - * @link https://php.net/manual/en/imagick.unsharpmaskimage.php - * @param float $radius - * @param float $sigma - * @param float $amount - * @param float $threshold - * @param int $channel [optional] - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function unsharpMaskImage ($radius, $sigma, $amount, $threshold, $channel = Imagick::CHANNEL_ALL) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns a new Imagick object - * @link https://php.net/manual/en/imagick.getimage.php - * @return Imagick a new Imagick object with the current image sequence. - * @throws ImagickException on error. - */ - #[Pure] - public function getImage () {} - - /** - * (PECL imagick 2.0.0)
    - * Adds new image to Imagick object image list - * @link https://php.net/manual/en/imagick.addimage.php - * @param Imagick $source

    - * The source Imagick object - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function addImage (Imagick $source) {} - - /** - * (PECL imagick 2.0.0)
    - * Replaces image in the object - * @link https://php.net/manual/en/imagick.setimage.php - * @param Imagick $replace

    - * The replace Imagick object - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setImage (Imagick $replace) {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a new image - * @link https://php.net/manual/en/imagick.newimage.php - * @param int $cols

    - * Columns in the new image - *

    - * @param int $rows

    - * Rows in the new image - *

    - * @param mixed $background

    - * The background color used for this image - *

    - * @param string $format [optional]

    - * Image format. This parameter was added in Imagick version 2.0.1. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function newImage ($cols, $rows, $background, $format = null) {} - - /** - * (PECL imagick 2.0.0)
    - * Creates a new image - * @link https://php.net/manual/en/imagick.newpseudoimage.php - * @param int $columns

    - * columns in the new image - *

    - * @param int $rows

    - * rows in the new image - *

    - * @param string $pseudoString

    - * string containing pseudo image definition. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function newPseudoImage ($columns, $rows, $pseudoString) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the object compression type - * @link https://php.net/manual/en/imagick.getcompression.php - * @return int the compression constant - */ - #[Pure] - public function getCompression () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the object compression quality - * @link https://php.net/manual/en/imagick.getcompressionquality.php - * @return int integer describing the compression quality - */ - #[Pure] - public function getCompressionQuality () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the ImageMagick API copyright as a string - * @link https://php.net/manual/en/imagick.getcopyright.php - * @return string a string containing the copyright notice of Imagemagick and - * Magickwand C API. - */ - public static function getCopyright () {} - - /** - * (PECL imagick 2.0.0)
    - * The filename associated with an image sequence - * @link https://php.net/manual/en/imagick.getfilename.php - * @return string a string on success. - */ - #[Pure] - public function getFilename () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the format of the Imagick object - * @link https://php.net/manual/en/imagick.getformat.php - * @return string the format of the image. - */ - #[Pure] - public function getFormat () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the ImageMagick home URL - * @link https://php.net/manual/en/imagick.gethomeurl.php - * @return string a link to the imagemagick homepage. - */ - public static function getHomeURL () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the object interlace scheme - * @link https://php.net/manual/en/imagick.getinterlacescheme.php - * @return int Gets the wand interlace - * scheme. - */ - #[Pure] - public function getInterlaceScheme () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns a value associated with the specified key - * @link https://php.net/manual/en/imagick.getoption.php - * @param string $key

    - * The name of the option - *

    - * @return string a value associated with a wand and the specified key. - */ - #[Pure] - public function getOption ($key) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the ImageMagick package name - * @link https://php.net/manual/en/imagick.getpackagename.php - * @return string the ImageMagick package name as a string. - */ - public static function getPackageName () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the page geometry - * @link https://php.net/manual/en/imagick.getpage.php - * @return int[] the page geometry associated with the Imagick object in - * an associative array with the keys "width", "height", "x", and "y", - * throwing ImagickException on error. - * @throws ImagickException on error - */ - //width:int, height:int, x:int, y:int + #[Pure] + public function getImageChannelKurtosis($channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * (No version information available, might only be in SVN)
    + * Applies a function on the image + * @link https://php.net/manual/en/imagick.functionimage.php + * @param int $function

    + * Refer to this list of function constants + *

    + * @param array $arguments

    + * Array of arguments to pass to this function. + *

    + * @param int $channel [optional] + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function functionImage($function, array $arguments, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * Transform image colorspace + * @param $COLORSPACE + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function transformImageColorspace($COLORSPACE) {} + + /** + * (No version information available, might only be in SVN)
    + * Replaces colors in the image + * @link https://php.net/manual/en/imagick.haldclutimage.php + * @param Imagick $clut

    + * Imagick object containing the Hald lookup image. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function haldClutImage(Imagick $clut, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * Adjusts the levels of a particular image channel by scaling the minimum and maximum values to the full quantum range. + * @param $CHANNEL [optional] + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function autoLevelImage($CHANNEL) {} + + /** + * @link https://www.php.net/manual/en/imagick.blueshiftimage.php + * @param float $factor [optional] + * @return bool + * @throws ImagickException on error. + */ + public function blueShiftImage($factor) {} + + /** + * (No version information available, might only be in SVN)
    + * Get image artifact + * @link https://php.net/manual/en/imagick.getimageartifact.php + * @param string $artifact

    + * The name of the artifact + *

    + * @return string the artifact value on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageArtifact($artifact) {} + + /** + * (No version information available, might only be in SVN)
    + * Set image artifact + * @link https://php.net/manual/en/imagick.setimageartifact.php + * @param string $artifact

    + * The name of the artifact + *

    + * @param string $value

    + * The value of the artifact + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageArtifact($artifact, $value) {} + + /** + * (No version information available, might only be in SVN)
    + * Delete image artifact + * @link https://php.net/manual/en/imagick.deleteimageartifact.php + * @param string $artifact

    + * The name of the artifact to delete + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function deleteImageArtifact($artifact) {} + + /** + * (PECL imagick 0.9.10-0.9.9)
    + * Gets the colorspace + * @link https://php.net/manual/en/imagick.getcolorspace.php + * @return int an integer which can be compared against COLORSPACE constants. + */ + #[Pure] + public function getColorspace() {} + + /** + * (No version information available, might only be in SVN)
    + * Set colorspace + * @link https://php.net/manual/en/imagick.setcolorspace.php + * @param int $COLORSPACE

    + * One of the COLORSPACE constants + *

    + * @return bool TRUE on success. + */ + public function setColorspace($COLORSPACE) {} + + /** + * @param $CHANNEL [optional] + * @throws ImagickException on error. + */ + public function clampImage($CHANNEL) {} + + /** + * @param bool $stack + * @param int $offset + * @return Imagick + * @throws ImagickException on error. + */ + public function smushImages($stack, $offset) {} + + /** + * (PECL imagick 2.0.0)
    + * The Imagick constructor + * @link https://php.net/manual/en/imagick.construct.php + * @param mixed $files

    + * The path to an image to load or an array of paths. Paths can include + * wildcards for file names, or can be URLs. + *

    + * @throws ImagickException Throws ImagickException on error. + */ + public function __construct($files = null) {} + + /** + * @return string + */ + public function __toString() {} + + public function count() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns a MagickPixelIterator + * @link https://php.net/manual/en/imagick.getpixeliterator.php + * @return ImagickPixelIterator an ImagickPixelIterator on success. + * @throws ImagickException on error. + * @throws ImagickPixelIteratorException on error. + */ + #[Pure] + public function getPixelIterator() {} + + /** + * (PECL imagick 2.0.0)
    + * Get an ImagickPixelIterator for an image section + * @link https://php.net/manual/en/imagick.getpixelregioniterator.php + * @param int $x

    + * The x-coordinate of the region. + *

    + * @param int $y

    + * The y-coordinate of the region. + *

    + * @param int $columns

    + * The width of the region. + *

    + * @param int $rows

    + * The height of the region. + *

    + * @return ImagickPixelIterator an ImagickPixelIterator for an image section. + * @throws ImagickException on error. + * @throws ImagickPixelIteratorException on error. + */ + #[Pure] + public function getPixelRegionIterator($x, $y, $columns, $rows) {} + + /** + * (PECL imagick 0.9.0-0.9.9)
    + * Reads image from filename + * @link https://php.net/manual/en/imagick.readimage.php + * @param string $filename + * @return bool TRUE on success. + * @throws ImagickException Throws ImagickException on error. + */ + public function readImage($filename) {} + + /** + * @param $filenames + * @throws ImagickException Throws ImagickException on error. + */ + public function readImages($filenames) {} + + /** + * (PECL imagick 2.0.0)
    + * Reads image from a binary string + * @link https://php.net/manual/en/imagick.readimageblob.php + * @param string $image + * @param string $filename [optional] + * @return bool TRUE on success. + * @throws ImagickException Throws ImagickException on error. + */ + public function readImageBlob($image, $filename = null) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the format of a particular image + * @link https://php.net/manual/en/imagick.setimageformat.php + * @param string $format

    + * String presentation of the image format. Format support + * depends on the ImageMagick installation. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageFormat($format) {} + + /** + * Scales the size of an image to the given dimensions. Passing zero as either of the arguments will preserve dimension while scaling.
    + * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.
    + * If false, the calculations should produce the same results as ImageMagick CLI does. + * @link https://php.net/manual/en/imagick.scaleimage.php + * @param int $cols + * @param int $rows + * @param bool $bestfit [optional] The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. + * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE + * @return bool TRUE on success. + * @throws ImagickException Throws ImagickException on error + * @since 2.0.0 + */ + public function scaleImage($cols, $rows, $bestfit = false, $legacy = false) {} + + /** + * (PECL imagick 0.9.0-0.9.9)
    + * Writes an image to the specified filename + * @link https://php.net/manual/en/imagick.writeimage.php + * @param string $filename [optional]

    + * Filename where to write the image. The extension of the filename + * defines the type of the file. + * Format can be forced regardless of file extension using format: prefix, + * for example "jpg:test.png". + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function writeImage($filename = null) {} + + /** + * (PECL imagick 0.9.0-0.9.9)
    + * Writes an image or image sequence + * @link https://php.net/manual/en/imagick.writeimages.php + * @param string $filename + * @param bool $adjoin + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function writeImages($filename, $adjoin) {} + + /** + * (PECL imagick 2.0.0)
    + * Adds blur filter to image + * @link https://php.net/manual/en/imagick.blurimage.php + * @param float $radius

    + * Blur radius + *

    + * @param float $sigma

    + * Standard deviation + *

    + * @param int $channel [optional]

    + * The Channeltype + * constant. When not supplied, all channels are blurred. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function blurImage($radius, $sigma, $channel = null) {} + + /** + * Changes the size of an image to the given dimensions and removes any associated profiles.
    + * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.
    + * If false, the calculations should produce the same results as ImageMagick CLI does.
    + *
    + * Note: The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. + * @link https://php.net/manual/en/imagick.thumbnailimage.php + * @param int $columns

    + * Image width + *

    + * @param int $rows

    + * Image height + *

    + * @param bool $bestfit [optional]

    + * Whether to force maximum values + *

    + * The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. + * @param bool $fill [optional] + * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE + * @return bool TRUE on success. + * @throws ImagickException on error. + * @since 2.0.0 + */ + public function thumbnailImage($columns, $rows, $bestfit = false, $fill = false, $legacy = false) {} + + /** + * Creates a cropped thumbnail at the requested size. + * If legacy is true, uses the incorrect behaviour that was present until Imagick 3.4.0. + * If false it uses the correct behaviour. + * @link https://php.net/manual/en/imagick.cropthumbnailimage.php + * @param int $width The width of the thumbnail + * @param int $height The Height of the thumbnail + * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE + * @return bool TRUE on succes + * @throws ImagickException Throws ImagickException on error + * @since 2.0.0 + */ + public function cropThumbnailImage($width, $height, $legacy = false) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the filename of a particular image in a sequence + * @link https://php.net/manual/en/imagick.getimagefilename.php + * @return string a string with the filename of the image. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageFilename() {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the filename of a particular image + * @link https://php.net/manual/en/imagick.setimagefilename.php + * @param string $filename + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageFilename($filename) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the format of a particular image in a sequence + * @link https://php.net/manual/en/imagick.getimageformat.php + * @return string a string containing the image format on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageFormat() {} + + /** + * @link https://secure.php.net/manual/en/imagick.getimagemimetype.php + * @return string Returns the image mime-type. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageMimeType() {} + + /** + * (PECL imagick 2.0.0)
    + * Removes an image from the image list + * @link https://php.net/manual/en/imagick.removeimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function removeImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Destroys the Imagick object + * @link https://php.net/manual/en/imagick.destroy.php + * @return bool TRUE on success. + */ + public function destroy() {} + + /** + * (PECL imagick 2.0.0)
    + * Clears all resources associated to Imagick object + * @link https://php.net/manual/en/imagick.clear.php + * @return bool TRUE on success. + */ + public function clear() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the image length in bytes + * @link https://php.net/manual/en/imagick.getimagesize.php + * @return int an int containing the current image size. + * @throws ImagickException on error. + */ + #[Deprecated(replacement: "%class%->getImageLength()")] + #[Pure] + public function getImageSize() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the image sequence as a blob + * @link https://php.net/manual/en/imagick.getimageblob.php + * @return string a string containing the image. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageBlob() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns all image sequences as a blob + * @link https://php.net/manual/en/imagick.getimagesblob.php + * @return string a string containing the images. On failure, throws ImagickException on failure + * @throws ImagickException on failure + */ + #[Pure] + public function getImagesBlob() {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the Imagick iterator to the first image + * @link https://php.net/manual/en/imagick.setfirstiterator.php + * @return bool TRUE on success. + */ + public function setFirstIterator() {} + + /** + * (PECL imagick 2.0.1)
    + * Sets the Imagick iterator to the last image + * @link https://php.net/manual/en/imagick.setlastiterator.php + * @return bool TRUE on success. + */ + public function setLastIterator() {} + + public function resetIterator() {} + + /** + * (PECL imagick 2.0.0)
    + * Move to the previous image in the object + * @link https://php.net/manual/en/imagick.previousimage.php + * @return bool TRUE on success. + */ + public function previousImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Moves to the next image + * @link https://php.net/manual/en/imagick.nextimage.php + * @return bool TRUE on success. + */ + public function nextImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Checks if the object has a previous image + * @link https://php.net/manual/en/imagick.haspreviousimage.php + * @return bool TRUE if the object has more images when traversing the list in the + * reverse direction, returns FALSE if there are none. + */ + public function hasPreviousImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Checks if the object has more images + * @link https://php.net/manual/en/imagick.hasnextimage.php + * @return bool TRUE if the object has more images when traversing the list in the + * forward direction, returns FALSE if there are none. + */ + public function hasNextImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Set the iterator position + * @link https://php.net/manual/en/imagick.setimageindex.php + * @param int $index

    + * The position to set the iterator to + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function setImageIndex($index) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the index of the current active image + * @link https://php.net/manual/en/imagick.getimageindex.php + * @return int an integer containing the index of the image in the stack. + */ + #[Deprecated] + #[Pure] + public function getImageIndex() {} + + /** + * (PECL imagick 2.0.0)
    + * Adds a comment to your image + * @link https://php.net/manual/en/imagick.commentimage.php + * @param string $comment

    + * The comment to add + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function commentImage($comment) {} + + /** + * (PECL imagick 2.0.0)
    + * Extracts a region of the image + * @link https://php.net/manual/en/imagick.cropimage.php + * @param int $width

    + * The width of the crop + *

    + * @param int $height

    + * The height of the crop + *

    + * @param int $x

    + * The X coordinate of the cropped region's top left corner + *

    + * @param int $y

    + * The Y coordinate of the cropped region's top left corner + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function cropImage($width, $height, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Adds a label to an image + * @link https://php.net/manual/en/imagick.labelimage.php + * @param string $label

    + * The label to add + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function labelImage($label) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the width and height as an associative array + * @link https://php.net/manual/en/imagick.getimagegeometry.php + * @return int[] an array with the width/height of the image. + * @throws ImagickException on error. + */ #[ArrayShape([ "width" => "int", - "height" => "int", - "x" => "int", - "y" => "int" - ])] - #[Pure] - public function getPage () {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the quantum depth - * @link https://php.net/manual/en/imagick.getquantumdepth.php - * @return array the Imagick quantum depth as a string. - */ - // quantumDepthLong:int, quantumDepthString:string - #[ArrayShape([ - "quantumDepthLong" => "int", - "quantumDepthString" => "string", - ])] - public static function getQuantumDepth () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the Imagick quantum range - * @link https://php.net/manual/en/imagick.getquantumrange.php - * @return array the Imagick quantum range as a string. - */ - #[ArrayShape([ - "quantumDepthLong" => "int", - "quantumDepthString" => "string", - ])] - public static function getQuantumRange () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the ImageMagick release date - * @link https://php.net/manual/en/imagick.getreleasedate.php - * @return string the ImageMagick release date as a string. - */ - public static function getReleaseDate () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the specified resource's memory usage - * @link https://php.net/manual/en/imagick.getresource.php - * @param int $type

    - * Refer to the list of resourcetype constants. - *

    - * @return int the specified resource's memory usage in megabytes. - */ - public static function getResource ($type) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the specified resource limit - * @link https://php.net/manual/en/imagick.getresourcelimit.php - * @param int $type

    - * Refer to the list of resourcetype constants. - *

    - * @return int the specified resource limit in megabytes. - */ - public static function getResourceLimit ($type) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the horizontal and vertical sampling factor - * @link https://php.net/manual/en/imagick.getsamplingfactors.php - * @return array an associative array with the horizontal and vertical sampling - * factors of the image. - */ - #[Pure] - public function getSamplingFactors () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the size associated with the Imagick object - * @link https://php.net/manual/en/imagick.getsize.php - * @return int[] the size associated with the Imagick object as an array with the - * keys "columns" and "rows". - * @throws ImagickException on error. - */ - #[ArrayShape([ - "columns" => "int", - "rows" => "int" - ])] - #[Pure] - public function getSize () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the ImageMagick API version - * @link https://php.net/manual/en/imagick.getversion.php - * @return array the ImageMagick API version as a string and as a number. - */ - #[ArrayShape([ - "versionNumber" => "int", - "versionString" => "string", + "height" => "int" ])] - public static function getVersion () {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the object's default background color - * @link https://php.net/manual/en/imagick.setbackgroundcolor.php - * @param mixed $background - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setBackgroundColor ($background) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the object's default compression type - * @link https://php.net/manual/en/imagick.setcompression.php - * @param int $compression - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setCompression ($compression) {} - - /** - * (PECL imagick 0.9.10-0.9.9)
    - * Sets the object's default compression quality - * @link https://php.net/manual/en/imagick.setcompressionquality.php - * @param int $quality - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setCompressionQuality ($quality) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the filename before you read or write the image - * @link https://php.net/manual/en/imagick.setfilename.php - * @param string $filename - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setFilename ($filename) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the format of the Imagick object - * @link https://php.net/manual/en/imagick.setformat.php - * @param string $format - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setFormat ($format) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image compression - * @link https://php.net/manual/en/imagick.setinterlacescheme.php - * @param int $interlace_scheme - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setInterlaceScheme ($interlace_scheme) {} - - /** - * (PECL imagick 2.0.0)
    - * Set an option - * @link https://php.net/manual/en/imagick.setoption.php - * @param string $key - * @param string $value - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setOption ($key, $value) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the page geometry of the Imagick object - * @link https://php.net/manual/en/imagick.setpage.php - * @param int $width - * @param int $height - * @param int $x - * @param int $y - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setPage ($width, $height, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the limit for a particular resource in megabytes - * @link https://php.net/manual/en/imagick.setresourcelimit.php - * @param int $type

    - * Refer to the list of resourcetype constants. - *

    - * @param int $limit

    - * The resource limit. The unit depends on the type of the resource being limited. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public static function setResourceLimit ($type, $limit) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image resolution - * @link https://php.net/manual/en/imagick.setresolution.php - * @param float $x_resolution

    - * The horizontal resolution. - *

    - * @param float $y_resolution

    - * The vertical resolution. - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setResolution ($x_resolution, $y_resolution) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image sampling factors - * @link https://php.net/manual/en/imagick.setsamplingfactors.php - * @param array $factors - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setSamplingFactors (array $factors) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the size of the Imagick object - * @link https://php.net/manual/en/imagick.setsize.php - * @param int $columns - * @param int $rows - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setSize ($columns, $rows) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the image type attribute - * @link https://php.net/manual/en/imagick.settype.php - * @param int $image_type - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function setType ($image_type) {} - - public function key () {} - - public function next () {} - - public function rewind () {} - - /** - * (PECL imagick 2.0.0)
    - * Checks if the current item is valid - * @link https://php.net/manual/en/imagick.valid.php - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function valid () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns a reference to the current Imagick object - * @link https://php.net/manual/en/imagick.current.php - * @return Imagick self on success. - */ - public function current () {} - - /** - * Change the brightness and/or contrast of an image. It converts the brightness and contrast parameters into slope and intercept and calls a polynomical function to apply to the image. - * @link https://php.net/manual/en/imagick.brightnesscontrastimage.php - * @param float $brightness - * @param float $contrast - * @param int $CHANNEL [optional] - * @return void - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function brightnessContrastImage ($brightness, $contrast, $CHANNEL = Imagick::CHANNEL_DEFAULT) { } - - /** - * Applies a user supplied kernel to the image according to the given morphology method. - * @link https://php.net/manual/en/imagick.morphology.php - * @param int $morphologyMethod Which morphology method to use one of the \Imagick::MORPHOLOGY_* constants. - * @param int $iterations The number of iteration to apply the morphology function. A value of -1 means loop until no change found. How this is applied may depend on the morphology method. Typically this is a value of 1. - * @param ImagickKernel $ImagickKernel - * @param int $CHANNEL [optional] - * @return void - * @throws ImagickException on error. - * @throws ImagickKernelException on error. - * @since 3.3.0 - */ - public function morphology ($morphologyMethod, $iterations, ImagickKernel $ImagickKernel, $CHANNEL = Imagick::CHANNEL_DEFAULT) { } - - /** - * Applies a custom convolution kernel to the image. - * @link https://php.net/manual/en/imagick.filter.php - * @param ImagickKernel $ImagickKernel An instance of ImagickKernel that represents either a single kernel or a linked series of kernels. - * @param int $CHANNEL [optional] Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - * @return void - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function filter (ImagickKernel $ImagickKernel , $CHANNEL = Imagick::CHANNEL_DEFAULT) { } - - /** - * Apply color transformation to an image. The method permits saturation changes, hue rotation, luminance to alpha, and various other effects. Although variable-sized transformation matrices can be used, typically one uses a 5x5 matrix for an RGBA image and a 6x6 for CMYKA (or RGBA with offsets). - * The matrix is similar to those used by Adobe Flash except offsets are in column 6 rather than 5 (in support of CMYKA images) and offsets are normalized (divide Flash offset by 255) - * @link https://php.net/manual/en/imagick.colormatriximage.php - * @param array $color_matrix - * @return void - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function colorMatrixImage ($color_matrix = Imagick::CHANNEL_DEFAULT) { } - - /** - * Deletes an image property. - * @link https://php.net/manual/en/imagick.deleteimageproperty.php - * @param string $name The name of the property to delete. - * @return void - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function deleteImageProperty ($name) { } - - /** - * Implements the discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair. - * @link https://php.net/manual/en/imagick.forwardfouriertransformimage.php - * @param bool $magnitude If true, return as magnitude / phase pair otherwise a real / imaginary image pair. - * @return void - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function forwardFourierTransformimage ($magnitude) { } - - /** - * Gets the current image's compression type. - * @link https://php.net/manual/en/imagick.getimagecompression.php - * @return int - * @since 3.3.0 - */ - #[Pure] - public function getImageCompression () { } - - /** - * Get the StringRegistry entry for the named key or false if not set. - * @link https://php.net/manual/en/imagick.getregistry.php - * @param string $key - * @return string|false - * @throws ImagickException Since version >= 3.4.3. Throws an exception if the key does not exist, rather than terminating the program. - * @since 3.3.0 - */ - public static function getRegistry ($key) { } - - /** - * Returns the ImageMagick quantum range as an integer. - * @link https://php.net/manual/en/imagick.getquantum.php - * @return int - * @since 3.3.0 - */ - public static function getQuantum () { } - - /** - * Replaces any embedded formatting characters with the appropriate image property and returns the interpreted text. See https://www.imagemagick.org/script/escape.php for escape sequences. - * @link https://php.net/manual/en/imagick.identifyformat.php - * @see https://www.imagemagick.org/script/escape.php - * @param string $embedText A string containing formatting sequences e.g. "Trim box: %@ number of unique colors: %k". - * @return bool - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function identifyFormat ($embedText) { } - - /** - * Implements the inverse discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair. - * @link https://php.net/manual/en/imagick.inversefouriertransformimage.php - * @param Imagick $complement The second image to combine with this one to form either the magnitude / phase or real / imaginary image pair. - * @param bool $magnitude If true, combine as magnitude / phase pair otherwise a real / imaginary image pair. - * @return void - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function inverseFourierTransformImage ($complement, $magnitude) { } - - /** - * List all the registry settings. Returns an array of all the key/value pairs in the registry - * @link https://php.net/manual/en/imagick.listregistry.php - * @return array An array containing the key/values from the registry. - * @since 3.3.0 - */ - public static function listRegistry () { } - - /** - * Rotational blurs an image. - * @link https://php.net/manual/en/imagick.rotationalblurimage.php - * @param float $angle - * @param int $CHANNEL - * @return void - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function rotationalBlurImage ($angle, $CHANNEL = Imagick::CHANNEL_DEFAULT) { } - - /** - * Selectively blur an image within a contrast threshold. It is similar to the unsharpen mask that sharpens everything with contrast above a certain threshold. - * @link https://php.net/manual/en/imagick.selectiveblurimage.php - * @param float $radius - * @param float $sigma - * @param float $threshold - * @param int $CHANNEL Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants - * @return void - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function selectiveBlurImage ($radius, $sigma, $threshold, $CHANNEL = Imagick::CHANNEL_DEFAULT) { } - - /** - * Set whether antialiasing should be used for operations. On by default. - * @param bool $antialias - * @return int - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function setAntiAlias ($antialias) { } - - /** - * @link https://php.net/manual/en/imagick.setimagebiasquantum.php - * @param string $bias - * @return void - * @since 3.3.0 - */ - public function setImageBiasQuantum ($bias) { } - - /** - * Set a callback that will be called during the processing of the Imagick image. - * @link https://php.net/manual/en/imagick.setprogressmonitor.php - * @param callable $callback The progress function to call. It should return true if image processing should continue, or false if it should be cancelled. - * The offset parameter indicates the progress and the span parameter indicates the total amount of work needed to be done. - *
     bool callback ( mixed $offset , mixed $span ) 
    - * Caution - * The values passed to the callback function are not consistent. In particular the span parameter can increase during image processing. Because of this calculating the percentage complete of an image operation is not trivial. - * @return void - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function setProgressMonitor ($callback) { } - - /** - * Sets the ImageMagick registry entry named key to value. This is most useful for setting "temporary-path" which controls where ImageMagick creates temporary images e.g. while processing PDFs. - * @link https://php.net/manual/en/imagick.setregistry.php - * @param string $key - * @param string $value - * @return void - * @since 3.3.0 - */ - public static function setRegistry ($key, $value) { } - - /** - * Replace each pixel with corresponding statistic from the neighborhood of the specified width and height. - * @link https://php.net/manual/en/imagick.statisticimage.php - * @param int $type - * @param int $width - * @param int $height - * @param int $channel [optional] - * @return void - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function statisticImage ($type, $width, $height, $channel = Imagick::CHANNEL_DEFAULT ) { } - - /** - * Searches for a subimage in the current image and returns a similarity image such that an exact match location is - * completely white and if none of the pixels match, black, otherwise some gray level in-between. - * You can also pass in the optional parameters bestMatch and similarity. After calling the function similarity will - * be set to the 'score' of the similarity between the subimage and the matching position in the larger image, - * bestMatch will contain an associative array with elements x, y, width, height that describe the matching region. - * - * @link https://php.net/manual/en/imagick.subimagematch.php - * @param Imagick $imagick - * @param array &$bestMatch [optional] - * @param float &$similarity [optional] A new image that displays the amount of similarity at each pixel. - * @param float $similarity_threshold [optional] Only used if compiled with ImageMagick (library) > 7 - * @param int $metric [optional] Only used if compiled with ImageMagick (library) > 7 - * @return Imagick - * @throws ImagickException on error. - * @since 3.3.0 - */ - public function subImageMatch (Imagick $imagick, array &$bestMatch, &$similarity, $similarity_threshold, $metric) { } - - /** - * Is an alias of Imagick::subImageMatch - * - * @param Imagick $imagick - * @param array &$bestMatch [optional] - * @param float &$similarity [optional] A new image that displays the amount of similarity at each pixel. - * @param float $similarity_threshold [optional] - * @param int $metric [optional] - * @return Imagick - * @throws ImagickException on error. - * @see Imagick::subImageMatch() This function is an alias of subImageMatch() - * @since 3.4.0 - */ - public function similarityImage (Imagick $imagick, array &$bestMatch, &$similarity, $similarity_threshold, $metric) { } - - /** - * Returns any ImageMagick configure options that match the specified pattern (e.g. "*" for all). Options include NAME, VERSION, LIB_VERSION, etc. - * @return string - * @since 3.4.0 - */ - #[Pure] - public function getConfigureOptions () { } - - /** - * GetFeatures() returns the ImageMagick features that have been compiled into the runtime. - * @return string - * @since 3.4.0 - */ - #[Pure] - public function getFeatures () { } - - /** - * @return int - * @since 3.4.0 - */ - #[Pure] - public function getHDRIEnabled () { } - - /** - * Sets the image channel mask. Returns the previous set channel mask. - * Only works with Imagick >= 7 - * @param int $channel - * @throws ImagickException on error. - * @since 3.4.0 - */ - public function setImageChannelMask ($channel) {} - - /** - * Merge multiple images of the same size together with the selected operator. https://www.imagemagick.org/Usage/layers/#evaluate-sequence - * @param int $EVALUATE_CONSTANT - * @return bool - * @see https://www.imagemagick.org/Usage/layers/#evaluate-sequence - * @throws ImagickException on error. - * @since 3.4.0 - */ - public function evaluateImages ($EVALUATE_CONSTANT) { } - - /** - * Extracts the 'mean' from the image and adjust the image to try make set its gamma appropriately. - * @param int $channel [optional] Default value Imagick::CHANNEL_ALL - * @return bool - * @throws ImagickException on error. - * @since 3.4.1 - */ - public function autoGammaImage ($channel = Imagick::CHANNEL_ALL) { } - - /** - * Adjusts an image so that its orientation is suitable $ for viewing (i.e. top-left orientation). - * @return bool - * @throws ImagickException on error. - * @since 3.4.1 - */ - public function autoOrient () { } - - /** - * Composite one image onto another using the specified gravity. - * - * @param Imagick $imagick - * @param int $COMPOSITE_CONSTANT - * @param int $GRAVITY_CONSTANT - * @return bool - * @throws ImagickException on error. - * @since 3.4.1 - */ - public function compositeImageGravity(Imagick $imagick, $COMPOSITE_CONSTANT, $GRAVITY_CONSTANT) { } - - /** - * Attempts to increase the appearance of large-scale light-dark transitions. - * - * @param float $radius - * @param float $strength - * @return bool - * @throws ImagickException on error. - * @since 3.4.1 - */ - public function localContrastImage($radius, $strength) { } - - /** - * Identifies the potential image type, returns one of the Imagick::IMGTYPE_* constants - * @return int - * @throws ImagickException on error. - * @since 3.4.3 - */ - public function identifyImageType() { } - - /** - * Sets the image to the specified alpha level. Will replace ImagickDraw::setOpacity() - * - * @param float $alpha - * @return bool - * @throws ImagickException on error. - * @since 3.4.3 - */ - public function setImageAlpha($alpha) { } -} + #[Pure] + public function getImageGeometry() {} + + /** + * (PECL imagick 2.0.0)
    + * Renders the ImagickDraw object on the current image + * @link https://php.net/manual/en/imagick.drawimage.php + * @param ImagickDraw $draw

    + * The drawing operations to render on the image. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function drawImage(ImagickDraw $draw) {} + + /** + * (No version information available, might only be in SVN)
    + * Sets the image compression quality + * @link https://php.net/manual/en/imagick.setimagecompressionquality.php + * @param int $quality

    + * The image compression quality as an integer + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageCompressionQuality($quality) {} + + /** + * (PECL imagick 2.2.2)
    + * Gets the current image's compression quality + * @link https://php.net/manual/en/imagick.getimagecompressionquality.php + * @return int integer describing the images compression quality + */ + #[Pure] + public function getImageCompressionQuality() {} + + /** + * (PECL imagick 2.0.0)
    + * Annotates an image with text + * @link https://php.net/manual/en/imagick.annotateimage.php + * @param ImagickDraw $draw_settings

    + * The ImagickDraw object that contains settings for drawing the text + *

    + * @param float $x

    + * Horizontal offset in pixels to the left of text + *

    + * @param float $y

    + * Vertical offset in pixels to the baseline of text + *

    + * @param float $angle

    + * The angle at which to write the text + *

    + * @param string $text

    + * The string to draw + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function annotateImage(ImagickDraw $draw_settings, $x, $y, $angle, $text) {} + + /** + * (PECL imagick 2.0.0)
    + * Composite one image onto another + * @link https://php.net/manual/en/imagick.compositeimage.php + * @param Imagick $composite_object

    + * Imagick object which holds the composite image + *

    + * @param int $composite Composite operator + * @param int $x

    + * The column offset of the composited image + *

    + * @param int $y

    + * The row offset of the composited image + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function compositeImage(Imagick $composite_object, $composite, $x, $y, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Control the brightness, saturation, and hue + * @link https://php.net/manual/en/imagick.modulateimage.php + * @param float $brightness + * @param float $saturation + * @param float $hue + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function modulateImage($brightness, $saturation, $hue) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the number of unique colors in the image + * @link https://php.net/manual/en/imagick.getimagecolors.php + * @return int TRUE on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageColors() {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a composite image + * @link https://php.net/manual/en/imagick.montageimage.php + * @param ImagickDraw $draw

    + * The font name, size, and color are obtained from this object. + *

    + * @param string $tile_geometry

    + * The number of tiles per row and page (e.g. 6x4+0+0). + *

    + * @param string $thumbnail_geometry

    + * Preferred image size and border size of each thumbnail + * (e.g. 120x120+4+3>). + *

    + * @param int $mode

    + * Thumbnail framing mode, see Montage Mode constants. + *

    + * @param string $frame

    + * Surround the image with an ornamental border (e.g. 15x15+3+3). The + * frame color is that of the thumbnail's matte color. + *

    + * @return Imagick TRUE on success. + * @throws ImagickException on error. + */ + public function montageImage(ImagickDraw $draw, $tile_geometry, $thumbnail_geometry, $mode, $frame) {} + + /** + * (PECL imagick 2.0.0)
    + * Identifies an image and fetches attributes + * @link https://php.net/manual/en/imagick.identifyimage.php + * @param bool $appendRawOutput [optional] + * @return array Identifies an image and returns the attributes. Attributes include + * the image width, height, size, and others. + * @throws ImagickException on error. + */ + public function identifyImage($appendRawOutput = false) {} + + /** + * (PECL imagick 2.0.0)
    + * Changes the value of individual pixels based on a threshold + * @link https://php.net/manual/en/imagick.thresholdimage.php + * @param float $threshold + * @param int $channel [optional] + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function thresholdImage($threshold, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Selects a threshold for each pixel based on a range of intensity + * @link https://php.net/manual/en/imagick.adaptivethresholdimage.php + * @param int $width

    + * Width of the local neighborhood. + *

    + * @param int $height

    + * Height of the local neighborhood. + *

    + * @param int $offset

    + * The mean offset + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function adaptiveThresholdImage($width, $height, $offset) {} + + /** + * (PECL imagick 2.0.0)
    + * Forces all pixels below the threshold into black + * @link https://php.net/manual/en/imagick.blackthresholdimage.php + * @param mixed $threshold

    + * The threshold below which everything turns black + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function blackThresholdImage($threshold) {} + + /** + * (PECL imagick 2.0.0)
    + * Force all pixels above the threshold into white + * @link https://php.net/manual/en/imagick.whitethresholdimage.php + * @param mixed $threshold + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function whiteThresholdImage($threshold) {} + + /** + * (PECL imagick 2.0.0)
    + * Append a set of images + * @link https://php.net/manual/en/imagick.appendimages.php + * @param bool $stack [optional]

    + * Whether to stack the images vertically. + * By default (or if FALSE is specified) images are stacked left-to-right. + * If stack is TRUE, images are stacked top-to-bottom. + *

    + * @return Imagick Imagick instance on success. + * @throws ImagickException on error. + */ + public function appendImages($stack = false) {} + + /** + * (PECL imagick 2.0.0)
    + * Simulates a charcoal drawing + * @link https://php.net/manual/en/imagick.charcoalimage.php + * @param float $radius

    + * The radius of the Gaussian, in pixels, not counting the center pixel + *

    + * @param float $sigma

    + * The standard deviation of the Gaussian, in pixels + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function charcoalImage($radius, $sigma) {} + + /** + * (PECL imagick 2.0.0)
    + * Enhances the contrast of a color image + * @link https://php.net/manual/en/imagick.normalizeimage.php + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function normalizeImage($channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Simulates an oil painting + * @link https://php.net/manual/en/imagick.oilpaintimage.php + * @param float $radius

    + * The radius of the circular neighborhood. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function oilPaintImage($radius) {} + + /** + * (PECL imagick 2.0.0)
    + * Reduces the image to a limited number of color level + * @link https://php.net/manual/en/imagick.posterizeimage.php + * @param int $levels + * @param bool $dither + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function posterizeImage($levels, $dither) {} + + /** + * (PECL imagick 2.0.0)
    + * Radial blurs an image + * @link https://php.net/manual/en/imagick.radialblurimage.php + * @param float $angle + * @param int $channel [optional] + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function radialBlurImage($angle, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a simulated 3d button-like effect + * @link https://php.net/manual/en/imagick.raiseimage.php + * @param int $width + * @param int $height + * @param int $x + * @param int $y + * @param bool $raise + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function raiseImage($width, $height, $x, $y, $raise) {} + + /** + * (PECL imagick 2.0.0)
    + * Resample image to desired resolution + * @link https://php.net/manual/en/imagick.resampleimage.php + * @param float $x_resolution + * @param float $y_resolution + * @param int $filter + * @param float $blur + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function resampleImage($x_resolution, $y_resolution, $filter, $blur) {} + + /** + * Scales an image to the desired dimensions with one of these filters:
    + * If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.
    + * If false, the calculations should produce the same results as ImageMagick CLI does.
    + *
    + * Note: The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched.
    + * In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given. + * @link https://php.net/manual/en/imagick.resizeimage.php + * @param int $columns Width of the image + * @param int $rows Height of the image + * @param int $filter Refer to the list of filter constants. + * @param float $blur The blur factor where > 1 is blurry, < 1 is sharp. + * @param bool $bestfit [optional] Added since 2.1.0. Added optional fit parameter. This method now supports proportional scaling. Pass zero as either parameter for proportional scaling + * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE + * @return bool TRUE on success + * @throws ImagickException on error. + * @since 2.0.0 + */ + public function resizeImage($columns, $rows, $filter, $blur, $bestfit = false, $legacy = false) {} + + /** + * (PECL imagick 2.0.0)
    + * Offsets an image + * @link https://php.net/manual/en/imagick.rollimage.php + * @param int $x

    + * The X offset. + *

    + * @param int $y

    + * The Y offset. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function rollImage($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Rotates an image + * @link https://php.net/manual/en/imagick.rotateimage.php + * @param mixed $background

    + * The background color + *

    + * @param float $degrees

    + * The number of degrees to rotate the image + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function rotateImage($background, $degrees) {} + + /** + * (PECL imagick 2.0.0)
    + * Scales an image with pixel sampling + * @link https://php.net/manual/en/imagick.sampleimage.php + * @param int $columns + * @param int $rows + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function sampleImage($columns, $rows) {} + + /** + * (PECL imagick 2.0.0)
    + * Applies a solarizing effect to the image + * @link https://php.net/manual/en/imagick.solarizeimage.php + * @param int $threshold + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function solarizeImage($threshold) {} + + /** + * (PECL imagick 2.0.0)
    + * Simulates an image shadow + * @link https://php.net/manual/en/imagick.shadowimage.php + * @param float $opacity + * @param float $sigma + * @param int $x + * @param int $y + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function shadowImage($opacity, $sigma, $x, $y) {} + + /** + * @param string $key + * @param string $value + * @return bool + * @throws ImagickException on error. + */ + #[Deprecated] + public function setImageAttribute($key, $value) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image background color + * @link https://php.net/manual/en/imagick.setimagebackgroundcolor.php + * @param mixed $background + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageBackgroundColor($background) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image composite operator + * @link https://php.net/manual/en/imagick.setimagecompose.php + * @param int $compose + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageCompose($compose) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image compression + * @link https://php.net/manual/en/imagick.setimagecompression.php + * @param int $compression

    + * One of the COMPRESSION constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageCompression($compression) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image delay + * @link https://php.net/manual/en/imagick.setimagedelay.php + * @param int $delay

    + * The amount of time expressed in 'ticks' that the image should be + * displayed for. For animated GIFs there are 100 ticks per second, so a + * value of 20 would be 20/100 of a second aka 1/5th of a second. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageDelay($delay) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image depth + * @link https://php.net/manual/en/imagick.setimagedepth.php + * @param int $depth + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageDepth($depth) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image gamma + * @link https://php.net/manual/en/imagick.setimagegamma.php + * @param float $gamma + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageGamma($gamma) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image iterations + * @link https://php.net/manual/en/imagick.setimageiterations.php + * @param int $iterations

    + * The number of iterations the image should loop over. Set to '0' to loop + * continuously. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageIterations($iterations) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image matte color + * @link https://php.net/manual/en/imagick.setimagemattecolor.php + * @param mixed $matte + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageMatteColor($matte) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the page geometry of the image + * @link https://php.net/manual/en/imagick.setimagepage.php + * @param int $width + * @param int $height + * @param int $x + * @param int $y + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImagePage($width, $height, $x, $y) {} + + /** + * @param $filename + * @throws ImagickException on error. + */ + public function setImageProgressMonitor($filename) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image resolution + * @link https://php.net/manual/en/imagick.setimageresolution.php + * @param float $x_resolution + * @param float $y_resolution + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageResolution($x_resolution, $y_resolution) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image scene + * @link https://php.net/manual/en/imagick.setimagescene.php + * @param int $scene + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageScene($scene) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image ticks-per-second + * @link https://php.net/manual/en/imagick.setimagetickspersecond.php + * @param int $ticks_per_second

    + * The duration for which an image should be displayed expressed in ticks + * per second. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageTicksPerSecond($ticks_per_second) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image type + * @link https://php.net/manual/en/imagick.setimagetype.php + * @param int $image_type + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageType($image_type) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image units of resolution + * @link https://php.net/manual/en/imagick.setimageunits.php + * @param int $units + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageUnits($units) {} + + /** + * (PECL imagick 2.0.0)
    + * Sharpens an image + * @link https://php.net/manual/en/imagick.sharpenimage.php + * @param float $radius + * @param float $sigma + * @param int $channel [optional] + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function sharpenImage($radius, $sigma, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Shaves pixels from the image edges + * @link https://php.net/manual/en/imagick.shaveimage.php + * @param int $columns + * @param int $rows + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function shaveImage($columns, $rows) {} + + /** + * (PECL imagick 2.0.0)
    + * Creating a parallelogram + * @link https://php.net/manual/en/imagick.shearimage.php + * @param mixed $background

    + * The background color + *

    + * @param float $x_shear

    + * The number of degrees to shear on the x axis + *

    + * @param float $y_shear

    + * The number of degrees to shear on the y axis + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function shearImage($background, $x_shear, $y_shear) {} + + /** + * (PECL imagick 2.0.0)
    + * Splices a solid color into the image + * @link https://php.net/manual/en/imagick.spliceimage.php + * @param int $width + * @param int $height + * @param int $x + * @param int $y + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function spliceImage($width, $height, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Fetch basic attributes about the image + * @link https://php.net/manual/en/imagick.pingimage.php + * @param string $filename

    + * The filename to read the information from. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function pingImage($filename) {} + + /** + * (PECL imagick 2.0.0)
    + * Reads image from open filehandle + * @link https://php.net/manual/en/imagick.readimagefile.php + * @param resource $filehandle + * @param string $fileName [optional] + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function readImageFile($filehandle, $fileName = null) {} + + /** + * (PECL imagick 2.0.0)
    + * Displays an image + * @link https://php.net/manual/en/imagick.displayimage.php + * @param string $servername

    + * The X server name + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function displayImage($servername) {} + + /** + * (PECL imagick 2.0.0)
    + * Displays an image or image sequence + * @link https://php.net/manual/en/imagick.displayimages.php + * @param string $servername

    + * The X server name + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function displayImages($servername) {} + + /** + * (PECL imagick 2.0.0)
    + * Randomly displaces each pixel in a block + * @link https://php.net/manual/en/imagick.spreadimage.php + * @param float $radius + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function spreadImage($radius) {} + + /** + * (PECL imagick 2.0.0)
    + * Swirls the pixels about the center of the image + * @link https://php.net/manual/en/imagick.swirlimage.php + * @param float $degrees + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function swirlImage($degrees) {} + + /** + * (PECL imagick 2.0.0)
    + * Strips an image of all profiles and comments + * @link https://php.net/manual/en/imagick.stripimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function stripImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns formats supported by Imagick + * @link https://php.net/manual/en/imagick.queryformats.php + * @param string $pattern [optional] + * @return array an array containing the formats supported by Imagick. + */ + public static function queryFormats($pattern = "*") {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the configured fonts + * @link https://php.net/manual/en/imagick.queryfonts.php + * @param string $pattern [optional]

    + * The query pattern + *

    + * @return array an array containing the configured fonts. + */ + public static function queryFonts($pattern = "*") {} + + /** + * (PECL imagick 2.0.0)
    + * Returns an array representing the font metrics + * @link https://php.net/manual/en/imagick.queryfontmetrics.php + * @param ImagickDraw $properties

    + * ImagickDraw object containing font properties + *

    + * @param string $text

    + * The text + *

    + * @param bool $multiline [optional]

    + * Multiline parameter. If left empty it is autodetected + *

    + * @return array a multi-dimensional array representing the font metrics. + * @throws ImagickException on error. + */ + public function queryFontMetrics(ImagickDraw $properties, $text, $multiline = null) {} + + /** + * (PECL imagick 2.0.0)
    + * Hides a digital watermark within the image + * @link https://php.net/manual/en/imagick.steganoimage.php + * @param Imagick $watermark_wand + * @param int $offset + * @return Imagick TRUE on success. + * @throws ImagickException on error. + */ + public function steganoImage(Imagick $watermark_wand, $offset) {} + + /** + * (PECL imagick 2.0.0)
    + * Adds random noise to the image + * @link https://php.net/manual/en/imagick.addnoiseimage.php + * @param int $noise_type

    + * The type of the noise. Refer to this list of + * noise constants. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function addNoiseImage($noise_type, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * (PECL imagick 2.0.0)
    + * Simulates motion blur + * @link https://php.net/manual/en/imagick.motionblurimage.php + * @param float $radius

    + * The radius of the Gaussian, in pixels, not counting the center pixel. + *

    + * @param float $sigma

    + * The standard deviation of the Gaussian, in pixels. + *

    + * @param float $angle

    + * Apply the effect along this angle. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + * The channel argument affects only if Imagick is compiled against ImageMagick version + * 6.4.4 or greater. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function motionBlurImage($radius, $sigma, $angle, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * (PECL imagick 2.0.0)
    + * Forms a mosaic from images + * @link https://php.net/manual/en/imagick.mosaicimages.php + * @return Imagick TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function mosaicImages() {} + + /** + * (PECL imagick 2.0.0)
    + * Method morphs a set of images + * @link https://php.net/manual/en/imagick.morphimages.php + * @param int $number_frames

    + * The number of in-between images to generate. + *

    + * @return Imagick This method returns a new Imagick object on success. + * Throw an ImagickException on error. + * @throws ImagickException on error + * @throws ImagickException on error. + */ + public function morphImages($number_frames) {} + + /** + * (PECL imagick 2.0.0)
    + * Scales an image proportionally to half its size + * @link https://php.net/manual/en/imagick.minifyimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function minifyImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Transforms an image + * @link https://php.net/manual/en/imagick.affinetransformimage.php + * @param ImagickDraw $matrix

    + * The affine matrix + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function affineTransformImage(ImagickDraw $matrix) {} + + /** + * (PECL imagick 2.0.0)
    + * Average a set of images + * @link https://php.net/manual/en/imagick.averageimages.php + * @return Imagick a new Imagick object on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function averageImages() {} + + /** + * (PECL imagick 2.0.0)
    + * Surrounds the image with a border + * @link https://php.net/manual/en/imagick.borderimage.php + * @param mixed $bordercolor

    + * ImagickPixel object or a string containing the border color + *

    + * @param int $width

    + * Border width + *

    + * @param int $height

    + * Border height + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function borderImage($bordercolor, $width, $height) {} + + /** + * (PECL imagick 2.0.0)
    + * Removes a region of an image and trims + * @link https://php.net/manual/en/imagick.chopimage.php + * @param int $width

    + * Width of the chopped area + *

    + * @param int $height

    + * Height of the chopped area + *

    + * @param int $x

    + * X origo of the chopped area + *

    + * @param int $y

    + * Y origo of the chopped area + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function chopImage($width, $height, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Clips along the first path from the 8BIM profile + * @link https://php.net/manual/en/imagick.clipimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function clipImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Clips along the named paths from the 8BIM profile + * @link https://php.net/manual/en/imagick.clippathimage.php + * @param string $pathname

    + * The name of the path + *

    + * @param bool $inside

    + * If TRUE later operations take effect inside clipping path. + * Otherwise later operations take effect outside clipping path. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function clipPathImage($pathname, $inside) {} + + /** + * Alias to {@see Imagick::clipPathImage} + * @param string $pathname + * @param string $inside + * @throws ImagickException on error. + */ + public function clipImagePath($pathname, $inside) {} + + /** + * (PECL imagick 2.0.0)
    + * Composites a set of images + * @link https://php.net/manual/en/imagick.coalesceimages.php + * @return Imagick a new Imagick object on success. + * @throws ImagickException on error. + */ + public function coalesceImages() {} + + /** + * (PECL imagick 2.0.0)
    + * Changes the color value of any pixel that matches target + * @link https://php.net/manual/en/imagick.colorfloodfillimage.php + * @param mixed $fill

    + * ImagickPixel object containing the fill color + *

    + * @param float $fuzz

    + * The amount of fuzz. For example, set fuzz to 10 and the color red at + * intensities of 100 and 102 respectively are now interpreted as the + * same color for the purposes of the floodfill. + *

    + * @param mixed $bordercolor

    + * ImagickPixel object containing the border color + *

    + * @param int $x

    + * X start position of the floodfill + *

    + * @param int $y

    + * Y start position of the floodfill + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function colorFloodfillImage($fill, $fuzz, $bordercolor, $x, $y) {} + + /** + * Blends the fill color with each pixel in the image. The 'opacity' color is a per channel strength factor for how strongly the color should be applied.
    + * If legacy is true, the behaviour of this function is incorrect, but consistent with how it behaved before Imagick version 3.4.0 + * @link https://php.net/manual/en/imagick.colorizeimage.php + * @param mixed $colorize

    + * ImagickPixel object or a string containing the colorize color + *

    + * @param mixed $opacity

    + * ImagickPixel object or an float containing the opacity value. + * 1.0 is fully opaque and 0.0 is fully transparent. + *

    + * @param bool $legacy [optional] Added since 3.4.0. Default value FALSE + * @return bool TRUE on success. + * @throws ImagickException Throws ImagickException on error + * @since 2.0.0 + */ + public function colorizeImage($colorize, $opacity, $legacy = false) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the difference in one or more images + * @link https://php.net/manual/en/imagick.compareimagechannels.php + * @param Imagick $image

    + * Imagick object containing the image to compare. + *

    + * @param int $channelType

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @param int $metricType

    + * One of the metric type constants. + *

    + * @return array Array consisting of new_wand and + * distortion. + * @throws ImagickException on error. + */ + public function compareImageChannels(Imagick $image, $channelType, $metricType) {} + + /** + * (PECL imagick 2.0.0)
    + * Compares an image to a reconstructed image + * @link https://php.net/manual/en/imagick.compareimages.php + * @param Imagick $compare

    + * An image to compare to. + *

    + * @param int $metric

    + * Provide a valid metric type constant. Refer to this + * list of metric constants. + *

    + * @return array Array consisting of an Imagick object of the + * reconstructed image and a float representing the difference. + * @throws ImagickException Throws ImagickException on error. + */ + public function compareImages(Imagick $compare, $metric) {} + + /** + * (PECL imagick 2.0.0)
    + * Change the contrast of the image + * @link https://php.net/manual/en/imagick.contrastimage.php + * @param bool $sharpen

    + * The sharpen value + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function contrastImage($sharpen) {} + + /** + * (PECL imagick 2.0.0)
    + * Combines one or more images into a single image + * @link https://php.net/manual/en/imagick.combineimages.php + * @param int $channelType

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return Imagick TRUE on success. + * @throws ImagickException on error. + */ + public function combineImages($channelType) {} + + /** + * (PECL imagick 2.0.0)
    + * Applies a custom convolution kernel to the image + * @link https://php.net/manual/en/imagick.convolveimage.php + * @param array $kernel

    + * The convolution kernel + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function convolveImage(array $kernel, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Displaces an image's colormap + * @link https://php.net/manual/en/imagick.cyclecolormapimage.php + * @param int $displace

    + * The amount to displace the colormap. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function cycleColormapImage($displace) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns certain pixel differences between images + * @link https://php.net/manual/en/imagick.deconstructimages.php + * @return Imagick a new Imagick object on success. + * @throws ImagickException on error. + */ + public function deconstructImages() {} + + /** + * (PECL imagick 2.0.0)
    + * Reduces the speckle noise in an image + * @link https://php.net/manual/en/imagick.despeckleimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function despeckleImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Enhance edges within the image + * @link https://php.net/manual/en/imagick.edgeimage.php + * @param float $radius

    + * The radius of the operation. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function edgeImage($radius) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns a grayscale image with a three-dimensional effect + * @link https://php.net/manual/en/imagick.embossimage.php + * @param float $radius

    + * The radius of the effect + *

    + * @param float $sigma

    + * The sigma of the effect + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function embossImage($radius, $sigma) {} + + /** + * (PECL imagick 2.0.0)
    + * Improves the quality of a noisy image + * @link https://php.net/manual/en/imagick.enhanceimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function enhanceImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Equalizes the image histogram + * @link https://php.net/manual/en/imagick.equalizeimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function equalizeImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Applies an expression to an image + * @link https://php.net/manual/en/imagick.evaluateimage.php + * @param int $op

    + * The evaluation operator + *

    + * @param float $constant

    + * The value of the operator + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function evaluateImage($op, $constant, $channel = Imagick::CHANNEL_ALL) {} + + /** + * Merges a sequence of images. This is useful for combining Photoshop layers into a single image. + * This is replaced by: + *
    +     * $im = $im->mergeImageLayers(\Imagick::LAYERMETHOD_FLATTEN)
    +     * 
    + * @link https://php.net/manual/en/imagick.flattenimages.php + * @return Imagick Returns an Imagick object containing the merged image. + * @throws ImagickException Throws ImagickException on error. + * @since 2.0.0 + */ + #[Deprecated] + public function flattenImages() {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a vertical mirror image + * @link https://php.net/manual/en/imagick.flipimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function flipImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a horizontal mirror image + * @link https://php.net/manual/en/imagick.flopimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function flopImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Adds a simulated three-dimensional border + * @link https://php.net/manual/en/imagick.frameimage.php + * @param mixed $matte_color

    + * ImagickPixel object or a string representing the matte color + *

    + * @param int $width

    + * The width of the border + *

    + * @param int $height

    + * The height of the border + *

    + * @param int $inner_bevel

    + * The inner bevel width + *

    + * @param int $outer_bevel

    + * The outer bevel width + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function frameImage($matte_color, $width, $height, $inner_bevel, $outer_bevel) {} + + /** + * (PECL imagick 2.0.0)
    + * Evaluate expression for each pixel in the image + * @link https://php.net/manual/en/imagick.fximage.php + * @param string $expression

    + * The expression. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return Imagick TRUE on success. + * @throws ImagickException on error. + */ + public function fxImage($expression, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Gamma-corrects an image + * @link https://php.net/manual/en/imagick.gammaimage.php + * @param float $gamma

    + * The amount of gamma-correction. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function gammaImage($gamma, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Blurs an image + * @link https://php.net/manual/en/imagick.gaussianblurimage.php + * @param float $radius

    + * The radius of the Gaussian, in pixels, not counting the center pixel. + *

    + * @param float $sigma

    + * The standard deviation of the Gaussian, in pixels. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function gaussianBlurImage($radius, $sigma, $channel = Imagick::CHANNEL_ALL) {} + + /** + * @link https://www.php.net/manual/en/imagick.getimageattribute.php + * @param string $key

    The key of the attribute to get.

    + * @return string + */ + #[Deprecated] + #[Pure] + public function getImageAttribute($key) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the image background color + * @link https://php.net/manual/en/imagick.getimagebackgroundcolor.php + * @return ImagickPixel an ImagickPixel set to the background color of the image. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageBackgroundColor() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the chromaticy blue primary point + * @link https://php.net/manual/en/imagick.getimageblueprimary.php + * @return float[] Array consisting of "x" and "y" coordinates of point. + * @throws ImagickException on error. + */ + #[ArrayShape([ + "x" => "float", + "y" => "float" + ])] + #[Pure] + public function getImageBluePrimary() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the image border color + * @link https://php.net/manual/en/imagick.getimagebordercolor.php + * @return ImagickPixel TRUE on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageBorderColor() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the depth for a particular image channel + * @link https://php.net/manual/en/imagick.getimagechanneldepth.php + * @param int $channel

    + * Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + *

    + * @return int TRUE on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageChannelDepth($channel) {} + + /** + * (PECL imagick 2.0.0)
    + * Compares image channels of an image to a reconstructed image + * @link https://php.net/manual/en/imagick.getimagechanneldistortion.php + * @param Imagick $reference

    + * Imagick object to compare to. + *

    + * @param int $channel

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @param int $metric

    + * One of the metric type constants. + *

    + * @return float TRUE on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageChannelDistortion(Imagick $reference, $channel, $metric) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the extrema for one or more image channels + * @link https://php.net/manual/en/imagick.getimagechannelextrema.php + * @param int $channel

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return int[] + * @throws ImagickException on error. + */ + #[ArrayShape([ + "minima" => "int", + "maxima" => "int" + ])] + #[Deprecated] + #[Pure] + public function getImageChannelExtrema($channel) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the mean and standard deviation + * @link https://php.net/manual/en/imagick.getimagechannelmean.php + * @param int $channel

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return float[] + * @throws ImagickException on error. + */ + #[ArrayShape([ + "mean" => "float", + "standardDeviation" => "float" + ])] + #[Pure] + public function getImageChannelMean($channel) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns statistics for each channel in the image + * @link https://php.net/manual/en/imagick.getimagechannelstatistics.php + * @return array + * @throws ImagickException on error. + */ + #[Pure] + public function getImageChannelStatistics() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the color of the specified colormap index + * @link https://php.net/manual/en/imagick.getimagecolormapcolor.php + * @param int $index

    + * The offset into the image colormap. + *

    + * @return ImagickPixel TRUE on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageColormapColor($index) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image colorspace + * @link https://php.net/manual/en/imagick.getimagecolorspace.php + * @return int TRUE on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageColorspace() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the composite operator associated with the image + * @link https://php.net/manual/en/imagick.getimagecompose.php + * @return int TRUE on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageCompose() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image delay + * @link https://php.net/manual/en/imagick.getimagedelay.php + * @return int the image delay. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageDelay() {} + + /** + * (PECL imagick 0.9.1-0.9.9)
    + * Gets the image depth + * @link https://php.net/manual/en/imagick.getimagedepth.php + * @return int The image depth. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageDepth() {} + + /** + * (PECL imagick 2.0.0)
    + * Compares an image to a reconstructed image + * @link https://php.net/manual/en/imagick.getimagedistortion.php + * @param Imagick $reference

    + * Imagick object to compare to. + *

    + * @param int $metric

    + * One of the metric type constants. + *

    + * @return float the distortion metric used on the image (or the best guess + * thereof). + * @throws ImagickException on error. + */ + #[Pure] + public function getImageDistortion(Imagick $reference, $metric) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the extrema for the image + * @link https://php.net/manual/en/imagick.getimageextrema.php + * @return int[] an associative array with the keys "min" and "max". + * @throws ImagickException on error. + */ + #[ArrayShape([ + "min" => "int", + "max" => "int" + ])] + #[Deprecated] + #[Pure] + public function getImageExtrema() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image disposal method + * @link https://php.net/manual/en/imagick.getimagedispose.php + * @return int the dispose method on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageDispose() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image gamma + * @link https://php.net/manual/en/imagick.getimagegamma.php + * @return float the image gamma on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageGamma() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the chromaticy green primary point + * @link https://php.net/manual/en/imagick.getimagegreenprimary.php + * @return float[] an array with the keys "x" and "y" on success, throws an ImagickException on failure. + * @throws ImagickException on failure + * @throws ImagickException on error. + */ + #[ArrayShape([ + "x" => "float", + "y" => "float" + ])] + #[Pure] + public function getImageGreenPrimary() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the image height + * @link https://php.net/manual/en/imagick.getimageheight.php + * @return int the image height in pixels. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageHeight() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image histogram + * @link https://php.net/manual/en/imagick.getimagehistogram.php + * @return array the image histogram as an array of ImagickPixel objects. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageHistogram() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image interlace scheme + * @link https://php.net/manual/en/imagick.getimageinterlacescheme.php + * @return int the interlace scheme as an integer on success. + * Trhow an ImagickException on error. + * @throws ImagickException on error + */ + #[Deprecated] + #[Pure] + public function getImageInterlaceScheme() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image iterations + * @link https://php.net/manual/en/imagick.getimageiterations.php + * @return int the image iterations as an integer. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageIterations() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the image matte color + * @link https://php.net/manual/en/imagick.getimagemattecolor.php + * @return ImagickPixel ImagickPixel object on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageMatteColor() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the page geometry + * @link https://php.net/manual/en/imagick.getimagepage.php + * @return int[] the page geometry associated with the image in an array with the + * keys "width", "height", "x", and "y". + * @throws ImagickException on error. + */ + #[ArrayShape([ + "width" => "int", + "height" => "int", + "x" => "int", + "y" => "int" + ])] + #[Pure] + public function getImagePage() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the color of the specified pixel + * @link https://php.net/manual/en/imagick.getimagepixelcolor.php + * @param int $x

    + * The x-coordinate of the pixel + *

    + * @param int $y

    + * The y-coordinate of the pixel + *

    + * @return ImagickPixel an ImagickPixel instance for the color at the coordinates given. + * @throws ImagickException on error. + */ + #[Pure] + public function getImagePixelColor($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the named image profile + * @link https://php.net/manual/en/imagick.getimageprofile.php + * @param string $name

    + * The name of the profile to return. + *

    + * @return string a string containing the image profile. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageProfile($name) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the chromaticity red primary point + * @link https://php.net/manual/en/imagick.getimageredprimary.php + * @return float[] the chromaticity red primary point as an array with the keys "x" + * and "y". + * Throw an ImagickException on error. + * @throws ImagickException on error + */ + #[ArrayShape([ + "x" => "float", + "y" => "float" + ])] + #[Pure] + public function getImageRedPrimary() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image rendering intent + * @link https://php.net/manual/en/imagick.getimagerenderingintent.php + * @return int the image rendering intent. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageRenderingIntent() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image X and Y resolution + * @link https://php.net/manual/en/imagick.getimageresolution.php + * @return float[] the resolution as an array. + * @throws ImagickException on error. + */ + #[ArrayShape([ + "x" => "float", + "y" => "float" + ])] + #[Pure] + public function getImageResolution() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image scene + * @link https://php.net/manual/en/imagick.getimagescene.php + * @return int the image scene. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageScene() {} + + /** + * (PECL imagick 2.0.0)
    + * Generates an SHA-256 message digest + * @link https://php.net/manual/en/imagick.getimagesignature.php + * @return string a string containing the SHA-256 hash of the file. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageSignature() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image ticks-per-second + * @link https://php.net/manual/en/imagick.getimagetickspersecond.php + * @return int the image ticks-per-second. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageTicksPerSecond() {} + + /** + * (PECL imagick 0.9.10-0.9.9)
    + * Gets the potential image type + * @link https://php.net/manual/en/imagick.getimagetype.php + * @return int the potential image type. + * imagick::IMGTYPE_UNDEFINED + * imagick::IMGTYPE_BILEVEL + * imagick::IMGTYPE_GRAYSCALE + * imagick::IMGTYPE_GRAYSCALEMATTE + * imagick::IMGTYPE_PALETTE + * imagick::IMGTYPE_PALETTEMATTE + * imagick::IMGTYPE_TRUECOLOR + * imagick::IMGTYPE_TRUECOLORMATTE + * imagick::IMGTYPE_COLORSEPARATION + * imagick::IMGTYPE_COLORSEPARATIONMATTE + * imagick::IMGTYPE_OPTIMIZE + * @throws ImagickException on error. + */ + #[Pure] + public function getImageType() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image units of resolution + * @link https://php.net/manual/en/imagick.getimageunits.php + * @return int the image units of resolution. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageUnits() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the virtual pixel method + * @link https://php.net/manual/en/imagick.getimagevirtualpixelmethod.php + * @return int the virtual pixel method on success. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageVirtualPixelMethod() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the chromaticity white point + * @link https://php.net/manual/en/imagick.getimagewhitepoint.php + * @return float[] the chromaticity white point as an associative array with the keys + * "x" and "y". + * @throws ImagickException on error. + */ + #[ArrayShape([ + "x" => "float", + "y" => "float" + ])] + #[Pure] + public function getImageWhitePoint() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the image width + * @link https://php.net/manual/en/imagick.getimagewidth.php + * @return int the image width. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageWidth() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the number of images in the object + * @link https://php.net/manual/en/imagick.getnumberimages.php + * @return int the number of images associated with Imagick object. + */ + #[Pure] + public function getNumberImages() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the image total ink density + * @link https://php.net/manual/en/imagick.getimagetotalinkdensity.php + * @return float the image total ink density of the image. + * Throw an ImagickException on error. + * @throws ImagickException on error + * @throws ImagickException on error. + */ + #[Pure] + public function getImageTotalInkDensity() {} + + /** + * (PECL imagick 2.0.0)
    + * Extracts a region of the image + * @link https://php.net/manual/en/imagick.getimageregion.php + * @param int $width

    + * The width of the extracted region. + *

    + * @param int $height

    + * The height of the extracted region. + *

    + * @param int $x

    + * X-coordinate of the top-left corner of the extracted region. + *

    + * @param int $y

    + * Y-coordinate of the top-left corner of the extracted region. + *

    + * @return Imagick Extracts a region of the image and returns it as a new wand. + * @throws ImagickException on error. + */ + #[Pure] + public function getImageRegion($width, $height, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a new image as a copy + * @link https://php.net/manual/en/imagick.implodeimage.php + * @param float $radius

    + * The radius of the implode + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function implodeImage($radius) {} + + /** + * (PECL imagick 2.0.0)
    + * Adjusts the levels of an image + * @link https://php.net/manual/en/imagick.levelimage.php + * @param float $blackPoint

    + * The image black point + *

    + * @param float $gamma

    + * The gamma value + *

    + * @param float $whitePoint

    + * The image white point + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function levelImage($blackPoint, $gamma, $whitePoint, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Scales an image proportionally 2x + * @link https://php.net/manual/en/imagick.magnifyimage.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function magnifyImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Replaces the colors of an image with the closest color from a reference image. + * @link https://php.net/manual/en/imagick.mapimage.php + * @param Imagick $map + * @param bool $dither + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function mapImage(Imagick $map, $dither) {} + + /** + * (PECL imagick 2.0.0)
    + * Changes the transparency value of a color + * @link https://php.net/manual/en/imagick.mattefloodfillimage.php + * @param float $alpha

    + * The level of transparency: 1.0 is fully opaque and 0.0 is fully + * transparent. + *

    + * @param float $fuzz

    + * The fuzz member of image defines how much tolerance is acceptable to + * consider two colors as the same. + *

    + * @param mixed $bordercolor

    + * An ImagickPixel object or string representing the border color. + *

    + * @param int $x

    + * The starting x coordinate of the operation. + *

    + * @param int $y

    + * The starting y coordinate of the operation. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function matteFloodfillImage($alpha, $fuzz, $bordercolor, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Applies a digital filter + * @link https://php.net/manual/en/imagick.medianfilterimage.php + * @param float $radius

    + * The radius of the pixel neighborhood. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function medianFilterImage($radius) {} + + /** + * (PECL imagick 2.0.0)
    + * Negates the colors in the reference image + * @link https://php.net/manual/en/imagick.negateimage.php + * @param bool $gray

    + * Whether to only negate grayscale pixels within the image. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function negateImage($gray, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Change any pixel that matches color + * @link https://php.net/manual/en/imagick.paintopaqueimage.php + * @param mixed $target

    + * Change this target color to the fill color within the image. An + * ImagickPixel object or a string representing the target color. + *

    + * @param mixed $fill

    + * An ImagickPixel object or a string representing the fill color. + *

    + * @param float $fuzz

    + * The fuzz member of image defines how much tolerance is acceptable to + * consider two colors as the same. + *

    + * @param int $channel [optional]

    + * Provide any channel constant that is valid for your channel mode. To + * apply to more than one channel, combine channeltype constants using + * bitwise operators. Refer to this + * list of channel constants. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function paintOpaqueImage($target, $fill, $fuzz, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Changes any pixel that matches color with the color defined by fill + * @link https://php.net/manual/en/imagick.painttransparentimage.php + * @param mixed $target

    + * Change this target color to specified opacity value within the image. + *

    + * @param float $alpha

    + * The level of transparency: 1.0 is fully opaque and 0.0 is fully + * transparent. + *

    + * @param float $fuzz

    + * The fuzz member of image defines how much tolerance is acceptable to + * consider two colors as the same. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function paintTransparentImage($target, $alpha, $fuzz) {} + + /** + * (PECL imagick 2.0.0)
    + * Quickly pin-point appropriate parameters for image processing + * @link https://php.net/manual/en/imagick.previewimages.php + * @param int $preview

    + * Preview type. See Preview type constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function previewImages($preview) {} + + /** + * (PECL imagick 2.0.0)
    + * Adds or removes a profile from an image + * @link https://php.net/manual/en/imagick.profileimage.php + * @param string $name + * @param string $profile + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function profileImage($name, $profile) {} + + /** + * (PECL imagick 2.0.0)
    + * Analyzes the colors within a reference image + * @link https://php.net/manual/en/imagick.quantizeimage.php + * @param int $numberColors + * @param int $colorspace + * @param int $treedepth + * @param bool $dither + * @param bool $measureError + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function quantizeImage($numberColors, $colorspace, $treedepth, $dither, $measureError) {} + + /** + * (PECL imagick 2.0.0)
    + * Analyzes the colors within a sequence of images + * @link https://php.net/manual/en/imagick.quantizeimages.php + * @param int $numberColors + * @param int $colorspace + * @param int $treedepth + * @param bool $dither + * @param bool $measureError + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function quantizeImages($numberColors, $colorspace, $treedepth, $dither, $measureError) {} + + /** + * (PECL imagick 2.0.0)
    + * Smooths the contours of an image + * @link https://php.net/manual/en/imagick.reducenoiseimage.php + * @param float $radius + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + #[Deprecated] + public function reduceNoiseImage($radius) {} + + /** + * (PECL imagick 2.0.0)
    + * Removes the named image profile and returns it + * @link https://php.net/manual/en/imagick.removeimageprofile.php + * @param string $name + * @return string a string containing the profile of the image. + * @throws ImagickException on error. + */ + public function removeImageProfile($name) {} + + /** + * (PECL imagick 2.0.0)
    + * Separates a channel from the image + * @link https://php.net/manual/en/imagick.separateimagechannel.php + * @param int $channel + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function separateImageChannel($channel) {} + + /** + * (PECL imagick 2.0.0)
    + * Sepia tones an image + * @link https://php.net/manual/en/imagick.sepiatoneimage.php + * @param float $threshold + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function sepiaToneImage($threshold) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image bias for any method that convolves an image + * @link https://php.net/manual/en/imagick.setimagebias.php + * @param float $bias + * @return bool TRUE on success. + */ + public function setImageBias($bias) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image chromaticity blue primary point + * @link https://php.net/manual/en/imagick.setimageblueprimary.php + * @param float $x + * @param float $y + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageBluePrimary($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image border color + * @link https://php.net/manual/en/imagick.setimagebordercolor.php + * @param mixed $border

    + * The border color + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageBorderColor($border) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the depth of a particular image channel + * @link https://php.net/manual/en/imagick.setimagechanneldepth.php + * @param int $channel + * @param int $depth + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageChannelDepth($channel, $depth) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the color of the specified colormap index + * @link https://php.net/manual/en/imagick.setimagecolormapcolor.php + * @param int $index + * @param ImagickPixel $color + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageColormapColor($index, ImagickPixel $color) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image colorspace + * @link https://php.net/manual/en/imagick.setimagecolorspace.php + * @param int $colorspace

    + * One of the COLORSPACE constants + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageColorspace($colorspace) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image disposal method + * @link https://php.net/manual/en/imagick.setimagedispose.php + * @param int $dispose + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageDispose($dispose) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image size + * @link https://php.net/manual/en/imagick.setimageextent.php + * @param int $columns + * @param int $rows + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageExtent($columns, $rows) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image chromaticity green primary point + * @link https://php.net/manual/en/imagick.setimagegreenprimary.php + * @param float $x + * @param float $y + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageGreenPrimary($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image compression + * @link https://php.net/manual/en/imagick.setimageinterlacescheme.php + * @param int $interlace_scheme + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageInterlaceScheme($interlace_scheme) {} + + /** + * (PECL imagick 2.0.0)
    + * Adds a named profile to the Imagick object + * @link https://php.net/manual/en/imagick.setimageprofile.php + * @param string $name + * @param string $profile + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageProfile($name, $profile) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image chromaticity red primary point + * @link https://php.net/manual/en/imagick.setimageredprimary.php + * @param float $x + * @param float $y + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageRedPrimary($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image rendering intent + * @link https://php.net/manual/en/imagick.setimagerenderingintent.php + * @param int $rendering_intent + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageRenderingIntent($rendering_intent) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image virtual pixel method + * @link https://php.net/manual/en/imagick.setimagevirtualpixelmethod.php + * @param int $method + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageVirtualPixelMethod($method) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image chromaticity white point + * @link https://php.net/manual/en/imagick.setimagewhitepoint.php + * @param float $x + * @param float $y + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImageWhitePoint($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Adjusts the contrast of an image + * @link https://php.net/manual/en/imagick.sigmoidalcontrastimage.php + * @param bool $sharpen + * @param float $alpha + * @param float $beta + * @param int $channel [optional] + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function sigmoidalContrastImage($sharpen, $alpha, $beta, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Composites two images + * @link https://php.net/manual/en/imagick.stereoimage.php + * @param Imagick $offset_wand + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function stereoImage(Imagick $offset_wand) {} + + /** + * (PECL imagick 2.0.0)
    + * Repeatedly tiles the texture image + * @link https://php.net/manual/en/imagick.textureimage.php + * @param Imagick $texture_wand + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function textureImage(Imagick $texture_wand) {} + + /** + * pplies a color vector to each pixel in the image. The 'opacity' color is a per channel strength factor for how strongly the color should be applied. + * If legacy is true, the behaviour of this function is incorrect, but consistent with how it behaved before Imagick version 3.4.0 + * @link https://php.net/manual/en/imagick.tintimage.php + * @param mixed $tint + * @param mixed $opacity + * @param bool $legacy [optional] + * @return bool TRUE on success. + * @throws ImagickException Throws ImagickException on error + * @since 2.0.0 + */ + public function tintImage($tint, $opacity, $legacy = false) {} + + /** + * (PECL imagick 2.0.0)
    + * Sharpens an image + * @link https://php.net/manual/en/imagick.unsharpmaskimage.php + * @param float $radius + * @param float $sigma + * @param float $amount + * @param float $threshold + * @param int $channel [optional] + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function unsharpMaskImage($radius, $sigma, $amount, $threshold, $channel = Imagick::CHANNEL_ALL) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns a new Imagick object + * @link https://php.net/manual/en/imagick.getimage.php + * @return Imagick a new Imagick object with the current image sequence. + * @throws ImagickException on error. + */ + #[Pure] + public function getImage() {} + + /** + * (PECL imagick 2.0.0)
    + * Adds new image to Imagick object image list + * @link https://php.net/manual/en/imagick.addimage.php + * @param Imagick $source

    + * The source Imagick object + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function addImage(Imagick $source) {} + + /** + * (PECL imagick 2.0.0)
    + * Replaces image in the object + * @link https://php.net/manual/en/imagick.setimage.php + * @param Imagick $replace

    + * The replace Imagick object + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setImage(Imagick $replace) {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a new image + * @link https://php.net/manual/en/imagick.newimage.php + * @param int $cols

    + * Columns in the new image + *

    + * @param int $rows

    + * Rows in the new image + *

    + * @param mixed $background

    + * The background color used for this image + *

    + * @param string $format [optional]

    + * Image format. This parameter was added in Imagick version 2.0.1. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function newImage($cols, $rows, $background, $format = null) {} + + /** + * (PECL imagick 2.0.0)
    + * Creates a new image + * @link https://php.net/manual/en/imagick.newpseudoimage.php + * @param int $columns

    + * columns in the new image + *

    + * @param int $rows

    + * rows in the new image + *

    + * @param string $pseudoString

    + * string containing pseudo image definition. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function newPseudoImage($columns, $rows, $pseudoString) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the object compression type + * @link https://php.net/manual/en/imagick.getcompression.php + * @return int the compression constant + */ + #[Pure] + public function getCompression() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the object compression quality + * @link https://php.net/manual/en/imagick.getcompressionquality.php + * @return int integer describing the compression quality + */ + #[Pure] + public function getCompressionQuality() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the ImageMagick API copyright as a string + * @link https://php.net/manual/en/imagick.getcopyright.php + * @return string a string containing the copyright notice of Imagemagick and + * Magickwand C API. + */ + public static function getCopyright() {} + + /** + * (PECL imagick 2.0.0)
    + * The filename associated with an image sequence + * @link https://php.net/manual/en/imagick.getfilename.php + * @return string a string on success. + */ + #[Pure] + public function getFilename() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the format of the Imagick object + * @link https://php.net/manual/en/imagick.getformat.php + * @return string the format of the image. + */ + #[Pure] + public function getFormat() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the ImageMagick home URL + * @link https://php.net/manual/en/imagick.gethomeurl.php + * @return string a link to the imagemagick homepage. + */ + public static function getHomeURL() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the object interlace scheme + * @link https://php.net/manual/en/imagick.getinterlacescheme.php + * @return int Gets the wand interlace + * scheme. + */ + #[Pure] + public function getInterlaceScheme() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns a value associated with the specified key + * @link https://php.net/manual/en/imagick.getoption.php + * @param string $key

    + * The name of the option + *

    + * @return string a value associated with a wand and the specified key. + */ + #[Pure] + public function getOption($key) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the ImageMagick package name + * @link https://php.net/manual/en/imagick.getpackagename.php + * @return string the ImageMagick package name as a string. + */ + public static function getPackageName() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the page geometry + * @link https://php.net/manual/en/imagick.getpage.php + * @return int[] the page geometry associated with the Imagick object in + * an associative array with the keys "width", "height", "x", and "y", + * throwing ImagickException on error. + * @throws ImagickException on error + */ + //width:int, height:int, x:int, y:int + #[ArrayShape([ + "width" => "int", + "height" => "int", + "x" => "int", + "y" => "int" + ])] + #[Pure] + public function getPage() {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the quantum depth + * @link https://php.net/manual/en/imagick.getquantumdepth.php + * @return array the Imagick quantum depth as a string. + */ + // quantumDepthLong:int, quantumDepthString:string + #[ArrayShape([ + "quantumDepthLong" => "int", + "quantumDepthString" => "string", + ])] + public static function getQuantumDepth() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the Imagick quantum range + * @link https://php.net/manual/en/imagick.getquantumrange.php + * @return array the Imagick quantum range as a string. + */ + #[ArrayShape([ + "quantumDepthLong" => "int", + "quantumDepthString" => "string", + ])] + public static function getQuantumRange() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the ImageMagick release date + * @link https://php.net/manual/en/imagick.getreleasedate.php + * @return string the ImageMagick release date as a string. + */ + public static function getReleaseDate() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the specified resource's memory usage + * @link https://php.net/manual/en/imagick.getresource.php + * @param int $type

    + * Refer to the list of resourcetype constants. + *

    + * @return int the specified resource's memory usage in megabytes. + */ + public static function getResource($type) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the specified resource limit + * @link https://php.net/manual/en/imagick.getresourcelimit.php + * @param int $type

    + * Refer to the list of resourcetype constants. + *

    + * @return int the specified resource limit in megabytes. + */ + public static function getResourceLimit($type) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the horizontal and vertical sampling factor + * @link https://php.net/manual/en/imagick.getsamplingfactors.php + * @return array an associative array with the horizontal and vertical sampling + * factors of the image. + */ + #[Pure] + public function getSamplingFactors() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the size associated with the Imagick object + * @link https://php.net/manual/en/imagick.getsize.php + * @return int[] the size associated with the Imagick object as an array with the + * keys "columns" and "rows". + * @throws ImagickException on error. + */ + #[ArrayShape([ + "columns" => "int", + "rows" => "int" + ])] + #[Pure] + public function getSize() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the ImageMagick API version + * @link https://php.net/manual/en/imagick.getversion.php + * @return array the ImageMagick API version as a string and as a number. + */ + #[ArrayShape([ + "versionNumber" => "int", + "versionString" => "string", + ])] + public static function getVersion() {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the object's default background color + * @link https://php.net/manual/en/imagick.setbackgroundcolor.php + * @param mixed $background + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setBackgroundColor($background) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the object's default compression type + * @link https://php.net/manual/en/imagick.setcompression.php + * @param int $compression + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setCompression($compression) {} + + /** + * (PECL imagick 0.9.10-0.9.9)
    + * Sets the object's default compression quality + * @link https://php.net/manual/en/imagick.setcompressionquality.php + * @param int $quality + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setCompressionQuality($quality) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the filename before you read or write the image + * @link https://php.net/manual/en/imagick.setfilename.php + * @param string $filename + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setFilename($filename) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the format of the Imagick object + * @link https://php.net/manual/en/imagick.setformat.php + * @param string $format + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setFormat($format) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image compression + * @link https://php.net/manual/en/imagick.setinterlacescheme.php + * @param int $interlace_scheme + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setInterlaceScheme($interlace_scheme) {} + + /** + * (PECL imagick 2.0.0)
    + * Set an option + * @link https://php.net/manual/en/imagick.setoption.php + * @param string $key + * @param string $value + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setOption($key, $value) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the page geometry of the Imagick object + * @link https://php.net/manual/en/imagick.setpage.php + * @param int $width + * @param int $height + * @param int $x + * @param int $y + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setPage($width, $height, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the limit for a particular resource in megabytes + * @link https://php.net/manual/en/imagick.setresourcelimit.php + * @param int $type

    + * Refer to the list of resourcetype constants. + *

    + * @param int $limit

    + * The resource limit. The unit depends on the type of the resource being limited. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public static function setResourceLimit($type, $limit) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image resolution + * @link https://php.net/manual/en/imagick.setresolution.php + * @param float $x_resolution

    + * The horizontal resolution. + *

    + * @param float $y_resolution

    + * The vertical resolution. + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setResolution($x_resolution, $y_resolution) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image sampling factors + * @link https://php.net/manual/en/imagick.setsamplingfactors.php + * @param array $factors + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setSamplingFactors(array $factors) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the size of the Imagick object + * @link https://php.net/manual/en/imagick.setsize.php + * @param int $columns + * @param int $rows + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setSize($columns, $rows) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the image type attribute + * @link https://php.net/manual/en/imagick.settype.php + * @param int $image_type + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function setType($image_type) {} + + public function key() {} + + public function next() {} + + public function rewind() {} + + /** + * (PECL imagick 2.0.0)
    + * Checks if the current item is valid + * @link https://php.net/manual/en/imagick.valid.php + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function valid() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns a reference to the current Imagick object + * @link https://php.net/manual/en/imagick.current.php + * @return Imagick self on success. + */ + public function current() {} + + /** + * Change the brightness and/or contrast of an image. It converts the brightness and contrast parameters into slope and intercept and calls a polynomical function to apply to the image. + * @link https://php.net/manual/en/imagick.brightnesscontrastimage.php + * @param float $brightness + * @param float $contrast + * @param int $CHANNEL [optional] + * @return void + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function brightnessContrastImage($brightness, $contrast, $CHANNEL = Imagick::CHANNEL_DEFAULT) {} + + /** + * Applies a user supplied kernel to the image according to the given morphology method. + * @link https://php.net/manual/en/imagick.morphology.php + * @param int $morphologyMethod Which morphology method to use one of the \Imagick::MORPHOLOGY_* constants. + * @param int $iterations The number of iteration to apply the morphology function. A value of -1 means loop until no change found. How this is applied may depend on the morphology method. Typically this is a value of 1. + * @param ImagickKernel $ImagickKernel + * @param int $CHANNEL [optional] + * @return void + * @throws ImagickException on error. + * @throws ImagickKernelException on error. + * @since 3.3.0 + */ + public function morphology($morphologyMethod, $iterations, ImagickKernel $ImagickKernel, $CHANNEL = Imagick::CHANNEL_DEFAULT) {} + + /** + * Applies a custom convolution kernel to the image. + * @link https://php.net/manual/en/imagick.filter.php + * @param ImagickKernel $ImagickKernel An instance of ImagickKernel that represents either a single kernel or a linked series of kernels. + * @param int $CHANNEL [optional] Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + * @return void + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function filter(ImagickKernel $ImagickKernel, $CHANNEL = Imagick::CHANNEL_DEFAULT) {} + + /** + * Apply color transformation to an image. The method permits saturation changes, hue rotation, luminance to alpha, and various other effects. Although variable-sized transformation matrices can be used, typically one uses a 5x5 matrix for an RGBA image and a 6x6 for CMYKA (or RGBA with offsets). + * The matrix is similar to those used by Adobe Flash except offsets are in column 6 rather than 5 (in support of CMYKA images) and offsets are normalized (divide Flash offset by 255) + * @link https://php.net/manual/en/imagick.colormatriximage.php + * @param array $color_matrix + * @return void + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function colorMatrixImage($color_matrix = Imagick::CHANNEL_DEFAULT) {} + + /** + * Deletes an image property. + * @link https://php.net/manual/en/imagick.deleteimageproperty.php + * @param string $name The name of the property to delete. + * @return void + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function deleteImageProperty($name) {} + + /** + * Implements the discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair. + * @link https://php.net/manual/en/imagick.forwardfouriertransformimage.php + * @param bool $magnitude If true, return as magnitude / phase pair otherwise a real / imaginary image pair. + * @return void + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function forwardFourierTransformimage($magnitude) {} + + /** + * Gets the current image's compression type. + * @link https://php.net/manual/en/imagick.getimagecompression.php + * @return int + * @since 3.3.0 + */ + #[Pure] + public function getImageCompression() {} + + /** + * Get the StringRegistry entry for the named key or false if not set. + * @link https://php.net/manual/en/imagick.getregistry.php + * @param string $key + * @return string|false + * @throws ImagickException Since version >= 3.4.3. Throws an exception if the key does not exist, rather than terminating the program. + * @since 3.3.0 + */ + public static function getRegistry($key) {} + + /** + * Returns the ImageMagick quantum range as an integer. + * @link https://php.net/manual/en/imagick.getquantum.php + * @return int + * @since 3.3.0 + */ + public static function getQuantum() {} + + /** + * Replaces any embedded formatting characters with the appropriate image property and returns the interpreted text. See https://www.imagemagick.org/script/escape.php for escape sequences. + * @link https://php.net/manual/en/imagick.identifyformat.php + * @see https://www.imagemagick.org/script/escape.php + * @param string $embedText A string containing formatting sequences e.g. "Trim box: %@ number of unique colors: %k". + * @return bool + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function identifyFormat($embedText) {} + + /** + * Implements the inverse discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair. + * @link https://php.net/manual/en/imagick.inversefouriertransformimage.php + * @param Imagick $complement The second image to combine with this one to form either the magnitude / phase or real / imaginary image pair. + * @param bool $magnitude If true, combine as magnitude / phase pair otherwise a real / imaginary image pair. + * @return void + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function inverseFourierTransformImage($complement, $magnitude) {} + + /** + * List all the registry settings. Returns an array of all the key/value pairs in the registry + * @link https://php.net/manual/en/imagick.listregistry.php + * @return array An array containing the key/values from the registry. + * @since 3.3.0 + */ + public static function listRegistry() {} + + /** + * Rotational blurs an image. + * @link https://php.net/manual/en/imagick.rotationalblurimage.php + * @param float $angle + * @param int $CHANNEL + * @return void + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function rotationalBlurImage($angle, $CHANNEL = Imagick::CHANNEL_DEFAULT) {} + + /** + * Selectively blur an image within a contrast threshold. It is similar to the unsharpen mask that sharpens everything with contrast above a certain threshold. + * @link https://php.net/manual/en/imagick.selectiveblurimage.php + * @param float $radius + * @param float $sigma + * @param float $threshold + * @param int $CHANNEL Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants + * @return void + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function selectiveBlurImage($radius, $sigma, $threshold, $CHANNEL = Imagick::CHANNEL_DEFAULT) {} + + /** + * Set whether antialiasing should be used for operations. On by default. + * @param bool $antialias + * @return int + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function setAntiAlias($antialias) {} + + /** + * @link https://php.net/manual/en/imagick.setimagebiasquantum.php + * @param string $bias + * @return void + * @since 3.3.0 + */ + public function setImageBiasQuantum($bias) {} + + /** + * Set a callback that will be called during the processing of the Imagick image. + * @link https://php.net/manual/en/imagick.setprogressmonitor.php + * @param callable $callback The progress function to call. It should return true if image processing should continue, or false if it should be cancelled. + * The offset parameter indicates the progress and the span parameter indicates the total amount of work needed to be done. + *
     bool callback ( mixed $offset , mixed $span ) 
    + * Caution + * The values passed to the callback function are not consistent. In particular the span parameter can increase during image processing. Because of this calculating the percentage complete of an image operation is not trivial. + * @return void + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function setProgressMonitor($callback) {} + + /** + * Sets the ImageMagick registry entry named key to value. This is most useful for setting "temporary-path" which controls where ImageMagick creates temporary images e.g. while processing PDFs. + * @link https://php.net/manual/en/imagick.setregistry.php + * @param string $key + * @param string $value + * @return void + * @since 3.3.0 + */ + public static function setRegistry($key, $value) {} + + /** + * Replace each pixel with corresponding statistic from the neighborhood of the specified width and height. + * @link https://php.net/manual/en/imagick.statisticimage.php + * @param int $type + * @param int $width + * @param int $height + * @param int $channel [optional] + * @return void + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function statisticImage($type, $width, $height, $channel = Imagick::CHANNEL_DEFAULT) {} + + /** + * Searches for a subimage in the current image and returns a similarity image such that an exact match location is + * completely white and if none of the pixels match, black, otherwise some gray level in-between. + * You can also pass in the optional parameters bestMatch and similarity. After calling the function similarity will + * be set to the 'score' of the similarity between the subimage and the matching position in the larger image, + * bestMatch will contain an associative array with elements x, y, width, height that describe the matching region. + * + * @link https://php.net/manual/en/imagick.subimagematch.php + * @param Imagick $imagick + * @param array &$bestMatch [optional] + * @param float &$similarity [optional] A new image that displays the amount of similarity at each pixel. + * @param float $similarity_threshold [optional] Only used if compiled with ImageMagick (library) > 7 + * @param int $metric [optional] Only used if compiled with ImageMagick (library) > 7 + * @return Imagick + * @throws ImagickException on error. + * @since 3.3.0 + */ + public function subImageMatch(Imagick $imagick, array &$bestMatch, &$similarity, $similarity_threshold, $metric) {} + + /** + * Is an alias of Imagick::subImageMatch + * + * @param Imagick $imagick + * @param array &$bestMatch [optional] + * @param float &$similarity [optional] A new image that displays the amount of similarity at each pixel. + * @param float $similarity_threshold [optional] + * @param int $metric [optional] + * @return Imagick + * @throws ImagickException on error. + * @see Imagick::subImageMatch() This function is an alias of subImageMatch() + * @since 3.4.0 + */ + public function similarityImage(Imagick $imagick, array &$bestMatch, &$similarity, $similarity_threshold, $metric) {} + + /** + * Returns any ImageMagick configure options that match the specified pattern (e.g. "*" for all). Options include NAME, VERSION, LIB_VERSION, etc. + * @return string + * @since 3.4.0 + */ + #[Pure] + public function getConfigureOptions() {} + + /** + * GetFeatures() returns the ImageMagick features that have been compiled into the runtime. + * @return string + * @since 3.4.0 + */ + #[Pure] + public function getFeatures() {} + + /** + * @return int + * @since 3.4.0 + */ + #[Pure] + public function getHDRIEnabled() {} + + /** + * Sets the image channel mask. Returns the previous set channel mask. + * Only works with Imagick >= 7 + * @param int $channel + * @throws ImagickException on error. + * @since 3.4.0 + */ + public function setImageChannelMask($channel) {} + + /** + * Merge multiple images of the same size together with the selected operator. https://www.imagemagick.org/Usage/layers/#evaluate-sequence + * @param int $EVALUATE_CONSTANT + * @return bool + * @see https://www.imagemagick.org/Usage/layers/#evaluate-sequence + * @throws ImagickException on error. + * @since 3.4.0 + */ + public function evaluateImages($EVALUATE_CONSTANT) {} + + /** + * Extracts the 'mean' from the image and adjust the image to try make set its gamma appropriately. + * @param int $channel [optional] Default value Imagick::CHANNEL_ALL + * @return bool + * @throws ImagickException on error. + * @since 3.4.1 + */ + public function autoGammaImage($channel = Imagick::CHANNEL_ALL) {} + + /** + * Adjusts an image so that its orientation is suitable $ for viewing (i.e. top-left orientation). + * @return bool + * @throws ImagickException on error. + * @since 3.4.1 + */ + public function autoOrient() {} + + /** + * Composite one image onto another using the specified gravity. + * + * @param Imagick $imagick + * @param int $COMPOSITE_CONSTANT + * @param int $GRAVITY_CONSTANT + * @return bool + * @throws ImagickException on error. + * @since 3.4.1 + */ + public function compositeImageGravity(Imagick $imagick, $COMPOSITE_CONSTANT, $GRAVITY_CONSTANT) {} + + /** + * Attempts to increase the appearance of large-scale light-dark transitions. + * + * @param float $radius + * @param float $strength + * @return bool + * @throws ImagickException on error. + * @since 3.4.1 + */ + public function localContrastImage($radius, $strength) {} + + /** + * Identifies the potential image type, returns one of the Imagick::IMGTYPE_* constants + * @return int + * @throws ImagickException on error. + * @since 3.4.3 + */ + public function identifyImageType() {} + + /** + * Sets the image to the specified alpha level. Will replace ImagickDraw::setOpacity() + * + * @param float $alpha + * @return bool + * @throws ImagickException on error. + * @since 3.4.3 + */ + public function setImageAlpha($alpha) {} +} + +/** + * @method ImagickDraw clone() (PECL imagick 2.0.0)
    Makes an exact copy of the specified ImagickDraw object + * @link https://php.net/manual/en/class.imagickdraw.php + */ +class ImagickDraw +{ + public function resetVectorGraphics() {} + + #[Pure] + public function getTextKerning() {} + + /** + * @param float $kerning + */ + public function setTextKerning($kerning) {} + + #[Pure] + public function getTextInterWordSpacing() {} + + /** + * @param $spacing + */ + public function setTextInterWordSpacing($spacing) {} + + #[Pure] + public function getTextInterLineSpacing() {} + + /** + * @param $spacing + */ + public function setTextInterLineSpacing($spacing) {} + + /** + * (PECL imagick 2.0.0)
    + * The ImagickDraw constructor + * @link https://php.net/manual/en/imagickdraw.construct.php + */ + public function __construct() {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the fill color to be used for drawing filled objects + * @link https://php.net/manual/en/imagickdraw.setfillcolor.php + * @param ImagickPixel $fill_pixel

    + * ImagickPixel to use to set the color + *

    + * @return bool No value is returned. + * @throws ImagickDrawException on error. + */ + public function setFillColor(ImagickPixel $fill_pixel) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the opacity to use when drawing using the fill color or fill texture + * @link https://php.net/manual/en/imagickdraw.setfillalpha.php + * @param float $opacity

    + * fill alpha + *

    + * @return bool No value is returned. + */ + #[Deprecated] + public function setFillAlpha($opacity) {} + + /** + * Sets the image resolution + * @param float $x_resolution

    The horizontal resolution.

    + * @param float $y_resolution

    The vertical resolution.

    + * @return bool + * @throws ImagickDrawException on error. + */ + public function setResolution($x_resolution, $y_resolution) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the color used for stroking object outlines + * @link https://php.net/manual/en/imagickdraw.setstrokecolor.php + * @param ImagickPixel $stroke_pixel

    + * the stroke color + *

    + * @return bool No value is returned. + * @throws ImagickDrawException on error. + */ + public function setStrokeColor(ImagickPixel $stroke_pixel) {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies the opacity of stroked object outlines + * @link https://php.net/manual/en/imagickdraw.setstrokealpha.php + * @param float $opacity

    + * opacity + *

    + * @return bool No value is returned. + */ + #[Deprecated] + public function setStrokeAlpha($opacity) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the width of the stroke used to draw object outlines + * @link https://php.net/manual/en/imagickdraw.setstrokewidth.php + * @param float $stroke_width

    + * stroke width + *

    + * @return bool No value is returned. + */ + public function setStrokeWidth($stroke_width) {} + + /** + * (PECL imagick 2.0.0)
    + * Clears the ImagickDraw + * @link https://php.net/manual/en/imagickdraw.clear.php + * @return bool an ImagickDraw object. + */ + public function clear() {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a circle + * @link https://php.net/manual/en/imagickdraw.circle.php + * @param float $ox

    + * origin x coordinate + *

    + * @param float $oy

    + * origin y coordinate + *

    + * @param float $px

    + * perimeter x coordinate + *

    + * @param float $py

    + * perimeter y coordinate + *

    + * @return bool No value is returned. + */ + public function circle($ox, $oy, $px, $py) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws text on the image + * @link https://php.net/manual/en/imagickdraw.annotation.php + * @param float $x

    + * The x coordinate where text is drawn + *

    + * @param float $y

    + * The y coordinate where text is drawn + *

    + * @param string $text

    + * The text to draw on the image + *

    + * @return bool No value is returned. + * @throws ImagickDrawException on error. + */ + public function annotation($x, $y, $text) {} + + /** + * (PECL imagick 2.0.0)
    + * Controls whether text is antialiased + * @link https://php.net/manual/en/imagickdraw.settextantialias.php + * @param bool $antiAlias + * @return bool No value is returned. + */ + public function setTextAntialias($antiAlias) {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies specifies the text code set + * @link https://php.net/manual/en/imagickdraw.settextencoding.php + * @param string $encoding

    + * the encoding name + *

    + * @return bool No value is returned. + */ + public function setTextEncoding($encoding) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the fully-specified font to use when annotating with text + * @link https://php.net/manual/en/imagickdraw.setfont.php + * @param string $font_name + * @return bool TRUE on success. + * @throws ImagickDrawException on error. + * @throws ImagickException on error. + */ + public function setFont($font_name) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the font family to use when annotating with text + * @link https://php.net/manual/en/imagickdraw.setfontfamily.php + * @param string $font_family

    + * the font family + *

    + * @return bool TRUE on success. + * @throws ImagickDrawException on error. + * @throws ImagickException on error. + */ + public function setFontFamily($font_family) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the font pointsize to use when annotating with text + * @link https://php.net/manual/en/imagickdraw.setfontsize.php + * @param float $pointsize

    + * the point size + *

    + * @return bool No value is returned. + */ + public function setFontSize($pointsize) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the font style to use when annotating with text + * @link https://php.net/manual/en/imagickdraw.setfontstyle.php + * @param int $style

    + * STYLETYPE_ constant + *

    + * @return bool No value is returned. + */ + public function setFontStyle($style) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the font weight + * @link https://php.net/manual/en/imagickdraw.setfontweight.php + * @param int $font_weight + * @return bool + * @throws ImagickDrawException on error. + */ + public function setFontWeight($font_weight) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the font + * @link https://php.net/manual/en/imagickdraw.getfont.php + * @return string|false a string on success and false if no font is set. + */ + #[Pure] + public function getFont() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the font family + * @link https://php.net/manual/en/imagickdraw.getfontfamily.php + * @return string|false the font family currently selected or false if font family is not set. + */ + #[Pure] + public function getFontFamily() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the font pointsize + * @link https://php.net/manual/en/imagickdraw.getfontsize.php + * @return float the font size associated with the current ImagickDraw object. + */ + #[Pure] + public function getFontSize() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the font style + * @link https://php.net/manual/en/imagickdraw.getfontstyle.php + * @return int the font style constant (STYLE_) associated with the ImagickDraw object + * or 0 if no style is set. + */ + #[Pure] + public function getFontStyle() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the font weight + * @link https://php.net/manual/en/imagickdraw.getfontweight.php + * @return int an int on success and 0 if no weight is set. + */ + #[Pure] + public function getFontWeight() {} + + /** + * (PECL imagick 2.0.0)
    + * Frees all associated resources + * @link https://php.net/manual/en/imagickdraw.destroy.php + * @return bool No value is returned. + */ + public function destroy() {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a rectangle + * @link https://php.net/manual/en/imagickdraw.rectangle.php + * @param float $x1

    + * x coordinate of the top left corner + *

    + * @param float $y1

    + * y coordinate of the top left corner + *

    + * @param float $x2

    + * x coordinate of the bottom right corner + *

    + * @param float $y2

    + * y coordinate of the bottom right corner + *

    + * @return bool No value is returned. + */ + public function rectangle($x1, $y1, $x2, $y2) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a rounded rectangle + * @link https://php.net/manual/en/imagickdraw.roundrectangle.php + * @param float $x1

    + * x coordinate of the top left corner + *

    + * @param float $y1

    + * y coordinate of the top left corner + *

    + * @param float $x2

    + * x coordinate of the bottom right + *

    + * @param float $y2

    + * y coordinate of the bottom right + *

    + * @param float $rx

    + * x rounding + *

    + * @param float $ry

    + * y rounding + *

    + * @return bool No value is returned. + */ + public function roundRectangle($x1, $y1, $x2, $y2, $rx, $ry) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws an ellipse on the image + * @link https://php.net/manual/en/imagickdraw.ellipse.php + * @param float $ox + * @param float $oy + * @param float $rx + * @param float $ry + * @param float $start + * @param float $end + * @return bool No value is returned. + */ + public function ellipse($ox, $oy, $rx, $ry, $start, $end) {} + + /** + * (PECL imagick 2.0.0)
    + * Skews the current coordinate system in the horizontal direction + * @link https://php.net/manual/en/imagickdraw.skewx.php + * @param float $degrees

    + * degrees to skew + *

    + * @return bool No value is returned. + */ + public function skewX($degrees) {} + + /** + * (PECL imagick 2.0.0)
    + * Skews the current coordinate system in the vertical direction + * @link https://php.net/manual/en/imagickdraw.skewy.php + * @param float $degrees

    + * degrees to skew + *

    + * @return bool No value is returned. + */ + public function skewY($degrees) {} + + /** + * (PECL imagick 2.0.0)
    + * Applies a translation to the current coordinate system + * @link https://php.net/manual/en/imagickdraw.translate.php + * @param float $x

    + * horizontal translation + *

    + * @param float $y

    + * vertical translation + *

    + * @return bool No value is returned. + */ + public function translate($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a line + * @link https://php.net/manual/en/imagickdraw.line.php + * @param float $sx

    + * starting x coordinate + *

    + * @param float $sy

    + * starting y coordinate + *

    + * @param float $ex

    + * ending x coordinate + *

    + * @param float $ey

    + * ending y coordinate + *

    + * @return bool No value is returned. + */ + public function line($sx, $sy, $ex, $ey) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws an arc + * @link https://php.net/manual/en/imagickdraw.arc.php + * @param float $sx

    + * Starting x ordinate of bounding rectangle + *

    + * @param float $sy

    + * starting y ordinate of bounding rectangle + *

    + * @param float $ex

    + * ending x ordinate of bounding rectangle + *

    + * @param float $ey

    + * ending y ordinate of bounding rectangle + *

    + * @param float $sd

    + * starting degrees of rotation + *

    + * @param float $ed

    + * ending degrees of rotation + *

    + * @return bool No value is returned. + */ + public function arc($sx, $sy, $ex, $ey, $sd, $ed) {} + + /** + * (PECL imagick 2.0.0)
    + * Paints on the image's opacity channel + * @link https://php.net/manual/en/imagickdraw.matte.php + * @param float $x

    + * x coordinate of the matte + *

    + * @param float $y

    + * y coordinate of the matte + *

    + * @param int $paintMethod

    + * PAINT_ constant + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function matte($x, $y, $paintMethod) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a polygon + * @link https://php.net/manual/en/imagickdraw.polygon.php + * @param array $coordinates

    + * multidimensional array like array( array( 'x' => 3, 'y' => 4 ), array( 'x' => 2, 'y' => 6 ) ); + *

    + * @return bool TRUE on success. + * @throws ImagickDrawException on error. + */ + public function polygon(array $coordinates) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a point + * @link https://php.net/manual/en/imagickdraw.point.php + * @param float $x

    + * point's x coordinate + *

    + * @param float $y

    + * point's y coordinate + *

    + * @return bool No value is returned. + */ + public function point($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the text decoration + * @link https://php.net/manual/en/imagickdraw.gettextdecoration.php + * @return int one of the DECORATION_ constants + * and 0 if no decoration is set. + */ + #[Pure] + public function getTextDecoration() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the code set used for text annotations + * @link https://php.net/manual/en/imagickdraw.gettextencoding.php + * @return string a string specifying the code set + * or false if text encoding is not set. + */ + #[Pure] + public function getTextEncoding() {} + + #[Pure] + public function getFontStretch() {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the font stretch to use when annotating with text + * @link https://php.net/manual/en/imagickdraw.setfontstretch.php + * @param int $fontStretch

    + * STRETCH_ constant + *

    + * @return bool No value is returned. + */ + public function setFontStretch($fontStretch) {} + + /** + * (PECL imagick 2.0.0)
    + * Controls whether stroked outlines are antialiased + * @link https://php.net/manual/en/imagickdraw.setstrokeantialias.php + * @param bool $stroke_antialias

    + * the antialias setting + *

    + * @return bool No value is returned. + */ + public function setStrokeAntialias($stroke_antialias) {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies a text alignment + * @link https://php.net/manual/en/imagickdraw.settextalignment.php + * @param int $alignment

    + * ALIGN_ constant + *

    + * @return bool No value is returned. + */ + public function setTextAlignment($alignment) {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies a decoration + * @link https://php.net/manual/en/imagickdraw.settextdecoration.php + * @param int $decoration

    + * DECORATION_ constant + *

    + * @return bool No value is returned. + */ + public function setTextDecoration($decoration) {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies the color of a background rectangle + * @link https://php.net/manual/en/imagickdraw.settextundercolor.php + * @param ImagickPixel $under_color

    + * the under color + *

    + * @return bool No value is returned. + * @throws ImagickDrawException on error. + */ + public function setTextUnderColor(ImagickPixel $under_color) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the overall canvas size + * @link https://php.net/manual/en/imagickdraw.setviewbox.php + * @param int $x1

    + * left x coordinate + *

    + * @param int $y1

    + * left y coordinate + *

    + * @param int $x2

    + * right x coordinate + *

    + * @param int $y2

    + * right y coordinate + *

    + * @return bool No value is returned. + */ + public function setViewbox($x1, $y1, $x2, $y2) {} + + /** + * (PECL imagick 2.0.0)
    + * Adjusts the current affine transformation matrix + * @link https://php.net/manual/en/imagickdraw.affine.php + * @param array $affine

    + * Affine matrix parameters + *

    + * @return bool No value is returned. + * @throws ImagickDrawException on error. + */ + public function affine(array $affine) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a bezier curve + * @link https://php.net/manual/en/imagickdraw.bezier.php + * @param array $coordinates

    + * Multidimensional array like array( array( 'x' => 1, 'y' => 2 ), + * array( 'x' => 3, 'y' => 4 ) ) + *

    + * @return bool No value is returned. + * @throws ImagickDrawException on error. + */ + public function bezier(array $coordinates) {} + + /** + * (PECL imagick 2.0.0)
    + * Composites an image onto the current image + * @link https://php.net/manual/en/imagickdraw.composite.php + * @param int $compose

    + * composition operator. One of COMPOSITE_ constants + *

    + * @param float $x

    + * x coordinate of the top left corner + *

    + * @param float $y

    + * y coordinate of the top left corner + *

    + * @param float $width

    + * width of the composition image + *

    + * @param float $height

    + * height of the composition image + *

    + * @param Imagick $compositeWand

    + * the Imagick object where composition image is taken from + *

    + * @return bool TRUE on success. + * @throws ImagickException on error. + */ + public function composite($compose, $x, $y, $width, $height, Imagick $compositeWand) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws color on image + * @link https://php.net/manual/en/imagickdraw.color.php + * @param float $x

    + * x coordinate of the paint + *

    + * @param float $y

    + * y coordinate of the paint + *

    + * @param int $paintMethod

    + * one of the PAINT_ constants + *

    + * @return bool No value is returned. + */ + public function color($x, $y, $paintMethod) {} + + /** + * (PECL imagick 2.0.0)
    + * Adds a comment + * @link https://php.net/manual/en/imagickdraw.comment.php + * @param string $comment

    + * The comment string to add to vector output stream + *

    + * @return bool No value is returned. + */ + public function comment($comment) {} + + /** + * (PECL imagick 2.0.0)
    + * Obtains the current clipping path ID + * @link https://php.net/manual/en/imagickdraw.getclippath.php + * @return string|false a string containing the clip path ID or false if no clip path exists. + */ + #[Pure] + public function getClipPath() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the current polygon fill rule + * @link https://php.net/manual/en/imagickdraw.getcliprule.php + * @return int one of the FILLRULE_ constants. + */ + #[Pure] + public function getClipRule() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the interpretation of clip path units + * @link https://php.net/manual/en/imagickdraw.getclipunits.php + * @return int an int on success. + */ + #[Pure] + public function getClipUnits() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the fill color + * @link https://php.net/manual/en/imagickdraw.getfillcolor.php + * @return ImagickPixel an ImagickPixel object. + */ + #[Pure] + public function getFillColor() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the opacity used when drawing + * @link https://php.net/manual/en/imagickdraw.getfillopacity.php + * @return float The opacity. + */ + #[Pure] + public function getFillOpacity() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the fill rule + * @link https://php.net/manual/en/imagickdraw.getfillrule.php + * @return int a FILLRULE_ constant + */ + #[Pure] + public function getFillRule() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the text placement gravity + * @link https://php.net/manual/en/imagickdraw.getgravity.php + * @return int a GRAVITY_ constant on success and 0 if no gravity is set. + */ + #[Pure] + public function getGravity() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the current stroke antialias setting + * @link https://php.net/manual/en/imagickdraw.getstrokeantialias.php + * @return bool TRUE if antialiasing is on and false if it is off. + */ + #[Pure] + public function getStrokeAntialias() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the color used for stroking object outlines + * @link https://php.net/manual/en/imagickdraw.getstrokecolor.php + * @return ImagickPixel an ImagickPixel object which describes the color. + */ + #[Pure] + public function getStrokeColor() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns an array representing the pattern of dashes and gaps used to stroke paths + * @link https://php.net/manual/en/imagickdraw.getstrokedasharray.php + * @return array an array on success and empty array if not set. + */ + #[Pure] + public function getStrokeDashArray() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the offset into the dash pattern to start the dash + * @link https://php.net/manual/en/imagickdraw.getstrokedashoffset.php + * @return float a float representing the offset and 0 if it's not set. + */ + #[Pure] + public function getStrokeDashOffset() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the shape to be used at the end of open subpaths when they are stroked + * @link https://php.net/manual/en/imagickdraw.getstrokelinecap.php + * @return int one of the LINECAP_ constants or 0 if stroke linecap is not set. + */ + #[Pure] + public function getStrokeLineCap() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the shape to be used at the corners of paths when they are stroked + * @link https://php.net/manual/en/imagickdraw.getstrokelinejoin.php + * @return int one of the LINEJOIN_ constants or 0 if stroke line join is not set. + */ + #[Pure] + public function getStrokeLineJoin() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the stroke miter limit + * @link https://php.net/manual/en/imagickdraw.getstrokemiterlimit.php + * @return int an int describing the miter limit + * and 0 if no miter limit is set. + */ + #[Pure] + public function getStrokeMiterLimit() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the opacity of stroked object outlines + * @link https://php.net/manual/en/imagickdraw.getstrokeopacity.php + * @return float a float describing the opacity. + */ + #[Pure] + public function getStrokeOpacity() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the width of the stroke used to draw object outlines + * @link https://php.net/manual/en/imagickdraw.getstrokewidth.php + * @return float a float describing the stroke width. + */ + #[Pure] + public function getStrokeWidth() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the text alignment + * @link https://php.net/manual/en/imagickdraw.gettextalignment.php + * @return int one of the ALIGN_ constants and 0 if no align is set. + */ + #[Pure] + public function getTextAlignment() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the current text antialias setting + * @link https://php.net/manual/en/imagickdraw.gettextantialias.php + * @return bool TRUE if text is antialiased and false if not. + */ + #[Pure] + public function getTextAntialias() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns a string containing vector graphics + * @link https://php.net/manual/en/imagickdraw.getvectorgraphics.php + * @return string a string containing the vector graphics. + */ + #[Pure] + public function getVectorGraphics() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the text under color + * @link https://php.net/manual/en/imagickdraw.gettextundercolor.php + * @return ImagickPixel an ImagickPixel object describing the color. + * @throws ImagickDrawException on error. + */ + #[Pure] + public function getTextUnderColor() {} + + /** + * (PECL imagick 2.0.0)
    + * Adds a path element to the current path + * @link https://php.net/manual/en/imagickdraw.pathclose.php + * @return bool No value is returned. + */ + public function pathClose() {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a cubic Bezier curve + * @link https://php.net/manual/en/imagickdraw.pathcurvetoabsolute.php + * @param float $x1

    + * x coordinate of the first control point + *

    + * @param float $y1

    + * y coordinate of the first control point + *

    + * @param float $x2

    + * x coordinate of the second control point + *

    + * @param float $y2

    + * y coordinate of the first control point + *

    + * @param float $x

    + * x coordinate of the curve end + *

    + * @param float $y

    + * y coordinate of the curve end + *

    + * @return bool No value is returned. + */ + public function pathCurveToAbsolute($x1, $y1, $x2, $y2, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a cubic Bezier curve + * @link https://php.net/manual/en/imagickdraw.pathcurvetorelative.php + * @param float $x1

    + * x coordinate of starting control point + *

    + * @param float $y1

    + * y coordinate of starting control point + *

    + * @param float $x2

    + * x coordinate of ending control point + *

    + * @param float $y2

    + * y coordinate of ending control point + *

    + * @param float $x

    + * ending x coordinate + *

    + * @param float $y

    + * ending y coordinate + *

    + * @return bool No value is returned. + */ + public function pathCurveToRelative($x1, $y1, $x2, $y2, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a quadratic Bezier curve + * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbezierabsolute.php + * @param float $x1

    + * x coordinate of the control point + *

    + * @param float $y1

    + * y coordinate of the control point + *

    + * @param float $x

    + * x coordinate of the end point + *

    + * @param float $y

    + * y coordinate of the end point + *

    + * @return bool No value is returned. + */ + public function pathCurveToQuadraticBezierAbsolute($x1, $y1, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a quadratic Bezier curve + * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbezierrelative.php + * @param float $x1

    + * starting x coordinate + *

    + * @param float $y1

    + * starting y coordinate + *

    + * @param float $x

    + * ending x coordinate + *

    + * @param float $y

    + * ending y coordinate + *

    + * @return bool No value is returned. + */ + public function pathCurveToQuadraticBezierRelative($x1, $y1, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a quadratic Bezier curve + * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbeziersmoothabsolute.php + * @param float $x

    + * ending x coordinate + *

    + * @param float $y

    + * ending y coordinate + *

    + * @return bool No value is returned. + */ + public function pathCurveToQuadraticBezierSmoothAbsolute($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a quadratic Bezier curve + * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbeziersmoothrelative.php + * @param float $x

    + * ending x coordinate + *

    + * @param float $y

    + * ending y coordinate + *

    + * @return bool No value is returned. + */ + public function pathCurveToQuadraticBezierSmoothRelative($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a cubic Bezier curve + * @link https://php.net/manual/en/imagickdraw.pathcurvetosmoothabsolute.php + * @param float $x2

    + * x coordinate of the second control point + *

    + * @param float $y2

    + * y coordinate of the second control point + *

    + * @param float $x

    + * x coordinate of the ending point + *

    + * @param float $y

    + * y coordinate of the ending point + *

    + * @return bool No value is returned. + */ + public function pathCurveToSmoothAbsolute($x2, $y2, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a cubic Bezier curve + * @link https://php.net/manual/en/imagickdraw.pathcurvetosmoothrelative.php + * @param float $x2

    + * x coordinate of the second control point + *

    + * @param float $y2

    + * y coordinate of the second control point + *

    + * @param float $x

    + * x coordinate of the ending point + *

    + * @param float $y

    + * y coordinate of the ending point + *

    + * @return bool No value is returned. + */ + public function pathCurveToSmoothRelative($x2, $y2, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws an elliptical arc + * @link https://php.net/manual/en/imagickdraw.pathellipticarcabsolute.php + * @param float $rx

    + * x radius + *

    + * @param float $ry

    + * y radius + *

    + * @param float $x_axis_rotation

    + * x axis rotation + *

    + * @param bool $large_arc_flag

    + * large arc flag + *

    + * @param bool $sweep_flag

    + * sweep flag + *

    + * @param float $x

    + * x coordinate + *

    + * @param float $y

    + * y coordinate + *

    + * @return bool No value is returned. + */ + public function pathEllipticArcAbsolute($rx, $ry, $x_axis_rotation, $large_arc_flag, $sweep_flag, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws an elliptical arc + * @link https://php.net/manual/en/imagickdraw.pathellipticarcrelative.php + * @param float $rx

    + * x radius + *

    + * @param float $ry

    + * y radius + *

    + * @param float $x_axis_rotation

    + * x axis rotation + *

    + * @param bool $large_arc_flag

    + * large arc flag + *

    + * @param bool $sweep_flag

    + * sweep flag + *

    + * @param float $x

    + * x coordinate + *

    + * @param float $y

    + * y coordinate + *

    + * @return bool No value is returned. + */ + public function pathEllipticArcRelative($rx, $ry, $x_axis_rotation, $large_arc_flag, $sweep_flag, $x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Terminates the current path + * @link https://php.net/manual/en/imagickdraw.pathfinish.php + * @return bool No value is returned. + */ + public function pathFinish() {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a line path + * @link https://php.net/manual/en/imagickdraw.pathlinetoabsolute.php + * @param float $x

    + * starting x coordinate + *

    + * @param float $y

    + * ending x coordinate + *

    + * @return bool No value is returned. + */ + public function pathLineToAbsolute($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a line path + * @link https://php.net/manual/en/imagickdraw.pathlinetorelative.php + * @param float $x

    + * starting x coordinate + *

    + * @param float $y

    + * starting y coordinate + *

    + * @return bool No value is returned. + */ + public function pathLineToRelative($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a horizontal line path + * @link https://php.net/manual/en/imagickdraw.pathlinetohorizontalabsolute.php + * @param float $x

    + * x coordinate + *

    + * @return bool No value is returned. + */ + public function pathLineToHorizontalAbsolute($x) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a horizontal line + * @link https://php.net/manual/en/imagickdraw.pathlinetohorizontalrelative.php + * @param float $x

    + * x coordinate + *

    + * @return bool No value is returned. + */ + public function pathLineToHorizontalRelative($x) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a vertical line + * @link https://php.net/manual/en/imagickdraw.pathlinetoverticalabsolute.php + * @param float $y

    + * y coordinate + *

    + * @return bool No value is returned. + */ + public function pathLineToVerticalAbsolute($y) {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a vertical line path + * @link https://php.net/manual/en/imagickdraw.pathlinetoverticalrelative.php + * @param float $y

    + * y coordinate + *

    + * @return bool No value is returned. + */ + public function pathLineToVerticalRelative($y) {} + + /** + * (PECL imagick 2.0.0)
    + * Starts a new sub-path + * @link https://php.net/manual/en/imagickdraw.pathmovetoabsolute.php + * @param float $x

    + * x coordinate of the starting point + *

    + * @param float $y

    + * y coordinate of the starting point + *

    + * @return bool No value is returned. + */ + public function pathMoveToAbsolute($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Starts a new sub-path + * @link https://php.net/manual/en/imagickdraw.pathmovetorelative.php + * @param float $x

    + * target x coordinate + *

    + * @param float $y

    + * target y coordinate + *

    + * @return bool No value is returned. + */ + public function pathMoveToRelative($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Declares the start of a path drawing list + * @link https://php.net/manual/en/imagickdraw.pathstart.php + * @return bool No value is returned. + */ + public function pathStart() {} + + /** + * (PECL imagick 2.0.0)
    + * Draws a polyline + * @link https://php.net/manual/en/imagickdraw.polyline.php + * @param array $coordinates

    + * array of x and y coordinates: array( array( 'x' => 4, 'y' => 6 ), array( 'x' => 8, 'y' => 10 ) ) + *

    + * @return bool TRUE on success. + * @throws ImagickDrawException on error. + */ + public function polyline(array $coordinates) {} + + /** + * (PECL imagick 2.0.0)
    + * Terminates a clip path definition + * @link https://php.net/manual/en/imagickdraw.popclippath.php + * @return bool No value is returned. + */ + public function popClipPath() {} + + /** + * (PECL imagick 2.0.0)
    + * Terminates a definition list + * @link https://php.net/manual/en/imagickdraw.popdefs.php + * @return bool No value is returned. + */ + public function popDefs() {} + + /** + * (PECL imagick 2.0.0)
    + * Terminates a pattern definition + * @link https://php.net/manual/en/imagickdraw.poppattern.php + * @return bool TRUE on success or FALSE on failure. + * @throws ImagickException on error. + */ + public function popPattern() {} + + /** + * (PECL imagick 2.0.0)
    + * Starts a clip path definition + * @link https://php.net/manual/en/imagickdraw.pushclippath.php + * @param string $clip_mask_id

    + * Clip mask Id + *

    + * @return bool No value is returned. + */ + public function pushClipPath($clip_mask_id) {} + + /** + * (PECL imagick 2.0.0)
    + * Indicates that following commands create named elements for early processing + * @link https://php.net/manual/en/imagickdraw.pushdefs.php + * @return bool No value is returned. + */ + public function pushDefs() {} + + /** + * (PECL imagick 2.0.0)
    + * Indicates that subsequent commands up to a ImagickDraw::opPattern() command comprise the definition of a named pattern + * @link https://php.net/manual/en/imagickdraw.pushpattern.php + * @param string $pattern_id

    + * the pattern Id + *

    + * @param float $x

    + * x coordinate of the top-left corner + *

    + * @param float $y

    + * y coordinate of the top-left corner + *

    + * @param float $width

    + * width of the pattern + *

    + * @param float $height

    + * height of the pattern + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function pushPattern($pattern_id, $x, $y, $width, $height) {} -/** - * @method ImagickDraw clone() (PECL imagick 2.0.0)
    Makes an exact copy of the specified ImagickDraw object - * @link https://php.net/manual/en/class.imagickdraw.php - */ -class ImagickDraw { - - public function resetVectorGraphics () {} - - #[Pure] - public function getTextKerning () {} - - /** - * @param float $kerning - */ - public function setTextKerning ($kerning) {} - - #[Pure] - public function getTextInterWordSpacing () {} - - /** - * @param $spacing - */ - public function setTextInterWordSpacing ($spacing) {} - - #[Pure] - public function getTextInterLineSpacing () {} - - /** - * @param $spacing - */ - public function setTextInterLineSpacing ($spacing) {} - - /** - * (PECL imagick 2.0.0)
    - * The ImagickDraw constructor - * @link https://php.net/manual/en/imagickdraw.construct.php - */ - public function __construct () {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the fill color to be used for drawing filled objects - * @link https://php.net/manual/en/imagickdraw.setfillcolor.php - * @param ImagickPixel $fill_pixel

    - * ImagickPixel to use to set the color - *

    - * @return bool No value is returned. - * @throws ImagickDrawException on error. - */ - public function setFillColor (ImagickPixel $fill_pixel) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the opacity to use when drawing using the fill color or fill texture - * @link https://php.net/manual/en/imagickdraw.setfillalpha.php - * @param float $opacity

    - * fill alpha - *

    - * @return bool No value is returned. - */ - #[Deprecated] - public function setFillAlpha ($opacity) {} - - /** - * Sets the image resolution - * @param float $x_resolution

    The horizontal resolution.

    - * @param float $y_resolution

    The vertical resolution.

    - * @return bool - * @throws ImagickDrawException on error. - */ - public function setResolution ($x_resolution, $y_resolution) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the color used for stroking object outlines - * @link https://php.net/manual/en/imagickdraw.setstrokecolor.php - * @param ImagickPixel $stroke_pixel

    - * the stroke color - *

    - * @return bool No value is returned. - * @throws ImagickDrawException on error. - */ - public function setStrokeColor (ImagickPixel $stroke_pixel) {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies the opacity of stroked object outlines - * @link https://php.net/manual/en/imagickdraw.setstrokealpha.php - * @param float $opacity

    - * opacity - *

    - * @return bool No value is returned. - */ - #[Deprecated] - public function setStrokeAlpha ($opacity) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the width of the stroke used to draw object outlines - * @link https://php.net/manual/en/imagickdraw.setstrokewidth.php - * @param float $stroke_width

    - * stroke width - *

    - * @return bool No value is returned. - */ - public function setStrokeWidth ($stroke_width) {} - - /** - * (PECL imagick 2.0.0)
    - * Clears the ImagickDraw - * @link https://php.net/manual/en/imagickdraw.clear.php - * @return bool an ImagickDraw object. - */ - public function clear () {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a circle - * @link https://php.net/manual/en/imagickdraw.circle.php - * @param float $ox

    - * origin x coordinate - *

    - * @param float $oy

    - * origin y coordinate - *

    - * @param float $px

    - * perimeter x coordinate - *

    - * @param float $py

    - * perimeter y coordinate - *

    - * @return bool No value is returned. - */ - public function circle ($ox, $oy, $px, $py) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws text on the image - * @link https://php.net/manual/en/imagickdraw.annotation.php - * @param float $x

    - * The x coordinate where text is drawn - *

    - * @param float $y

    - * The y coordinate where text is drawn - *

    - * @param string $text

    - * The text to draw on the image - *

    - * @return bool No value is returned. - * @throws ImagickDrawException on error. - */ - public function annotation ($x, $y, $text) {} - - /** - * (PECL imagick 2.0.0)
    - * Controls whether text is antialiased - * @link https://php.net/manual/en/imagickdraw.settextantialias.php - * @param bool $antiAlias - * @return bool No value is returned. - */ - public function setTextAntialias ($antiAlias) {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies specifies the text code set - * @link https://php.net/manual/en/imagickdraw.settextencoding.php - * @param string $encoding

    - * the encoding name - *

    - * @return bool No value is returned. - */ - public function setTextEncoding ($encoding) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the fully-specified font to use when annotating with text - * @link https://php.net/manual/en/imagickdraw.setfont.php - * @param string $font_name - * @return bool TRUE on success. - * @throws ImagickDrawException on error. - * @throws ImagickException on error. - */ - public function setFont ($font_name) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the font family to use when annotating with text - * @link https://php.net/manual/en/imagickdraw.setfontfamily.php - * @param string $font_family

    - * the font family - *

    - * @return bool TRUE on success. - * @throws ImagickDrawException on error. - * @throws ImagickException on error. - */ - public function setFontFamily ($font_family) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the font pointsize to use when annotating with text - * @link https://php.net/manual/en/imagickdraw.setfontsize.php - * @param float $pointsize

    - * the point size - *

    - * @return bool No value is returned. - */ - public function setFontSize ($pointsize) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the font style to use when annotating with text - * @link https://php.net/manual/en/imagickdraw.setfontstyle.php - * @param int $style

    - * STYLETYPE_ constant - *

    - * @return bool No value is returned. - */ - public function setFontStyle ($style) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the font weight - * @link https://php.net/manual/en/imagickdraw.setfontweight.php - * @param int $font_weight - * @return bool - * @throws ImagickDrawException on error. - */ - public function setFontWeight ($font_weight) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the font - * @link https://php.net/manual/en/imagickdraw.getfont.php - * @return string|false a string on success and false if no font is set. - */ - #[Pure] - public function getFont () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the font family - * @link https://php.net/manual/en/imagickdraw.getfontfamily.php - * @return string|false the font family currently selected or false if font family is not set. - */ - #[Pure] - public function getFontFamily () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the font pointsize - * @link https://php.net/manual/en/imagickdraw.getfontsize.php - * @return float the font size associated with the current ImagickDraw object. - */ - #[Pure] - public function getFontSize () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the font style - * @link https://php.net/manual/en/imagickdraw.getfontstyle.php - * @return int the font style constant (STYLE_) associated with the ImagickDraw object - * or 0 if no style is set. - */ - #[Pure] - public function getFontStyle () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the font weight - * @link https://php.net/manual/en/imagickdraw.getfontweight.php - * @return int an int on success and 0 if no weight is set. - */ - #[Pure] - public function getFontWeight () {} - - /** - * (PECL imagick 2.0.0)
    - * Frees all associated resources - * @link https://php.net/manual/en/imagickdraw.destroy.php - * @return bool No value is returned. - */ - public function destroy () {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a rectangle - * @link https://php.net/manual/en/imagickdraw.rectangle.php - * @param float $x1

    - * x coordinate of the top left corner - *

    - * @param float $y1

    - * y coordinate of the top left corner - *

    - * @param float $x2

    - * x coordinate of the bottom right corner - *

    - * @param float $y2

    - * y coordinate of the bottom right corner - *

    - * @return bool No value is returned. - */ - public function rectangle ($x1, $y1, $x2, $y2) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a rounded rectangle - * @link https://php.net/manual/en/imagickdraw.roundrectangle.php - * @param float $x1

    - * x coordinate of the top left corner - *

    - * @param float $y1

    - * y coordinate of the top left corner - *

    - * @param float $x2

    - * x coordinate of the bottom right - *

    - * @param float $y2

    - * y coordinate of the bottom right - *

    - * @param float $rx

    - * x rounding - *

    - * @param float $ry

    - * y rounding - *

    - * @return bool No value is returned. - */ - public function roundRectangle ($x1, $y1, $x2, $y2, $rx, $ry) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws an ellipse on the image - * @link https://php.net/manual/en/imagickdraw.ellipse.php - * @param float $ox - * @param float $oy - * @param float $rx - * @param float $ry - * @param float $start - * @param float $end - * @return bool No value is returned. - */ - public function ellipse ($ox, $oy, $rx, $ry, $start, $end) {} - - /** - * (PECL imagick 2.0.0)
    - * Skews the current coordinate system in the horizontal direction - * @link https://php.net/manual/en/imagickdraw.skewx.php - * @param float $degrees

    - * degrees to skew - *

    - * @return bool No value is returned. - */ - public function skewX ($degrees) {} - - /** - * (PECL imagick 2.0.0)
    - * Skews the current coordinate system in the vertical direction - * @link https://php.net/manual/en/imagickdraw.skewy.php - * @param float $degrees

    - * degrees to skew - *

    - * @return bool No value is returned. - */ - public function skewY ($degrees) {} - - /** - * (PECL imagick 2.0.0)
    - * Applies a translation to the current coordinate system - * @link https://php.net/manual/en/imagickdraw.translate.php - * @param float $x

    - * horizontal translation - *

    - * @param float $y

    - * vertical translation - *

    - * @return bool No value is returned. - */ - public function translate ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a line - * @link https://php.net/manual/en/imagickdraw.line.php - * @param float $sx

    - * starting x coordinate - *

    - * @param float $sy

    - * starting y coordinate - *

    - * @param float $ex

    - * ending x coordinate - *

    - * @param float $ey

    - * ending y coordinate - *

    - * @return bool No value is returned. - */ - public function line ($sx, $sy, $ex, $ey) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws an arc - * @link https://php.net/manual/en/imagickdraw.arc.php - * @param float $sx

    - * Starting x ordinate of bounding rectangle - *

    - * @param float $sy

    - * starting y ordinate of bounding rectangle - *

    - * @param float $ex

    - * ending x ordinate of bounding rectangle - *

    - * @param float $ey

    - * ending y ordinate of bounding rectangle - *

    - * @param float $sd

    - * starting degrees of rotation - *

    - * @param float $ed

    - * ending degrees of rotation - *

    - * @return bool No value is returned. - */ - public function arc ($sx, $sy, $ex, $ey, $sd, $ed) {} - - /** - * (PECL imagick 2.0.0)
    - * Paints on the image's opacity channel - * @link https://php.net/manual/en/imagickdraw.matte.php - * @param float $x

    - * x coordinate of the matte - *

    - * @param float $y

    - * y coordinate of the matte - *

    - * @param int $paintMethod

    - * PAINT_ constant - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function matte ($x, $y, $paintMethod) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a polygon - * @link https://php.net/manual/en/imagickdraw.polygon.php - * @param array $coordinates

    - * multidimensional array like array( array( 'x' => 3, 'y' => 4 ), array( 'x' => 2, 'y' => 6 ) ); - *

    - * @return bool TRUE on success. - * @throws ImagickDrawException on error. - */ - public function polygon (array $coordinates) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a point - * @link https://php.net/manual/en/imagickdraw.point.php - * @param float $x

    - * point's x coordinate - *

    - * @param float $y

    - * point's y coordinate - *

    - * @return bool No value is returned. - */ - public function point ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the text decoration - * @link https://php.net/manual/en/imagickdraw.gettextdecoration.php - * @return int one of the DECORATION_ constants - * and 0 if no decoration is set. - */ - #[Pure] - public function getTextDecoration () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the code set used for text annotations - * @link https://php.net/manual/en/imagickdraw.gettextencoding.php - * @return string a string specifying the code set - * or false if text encoding is not set. - */ - #[Pure] - public function getTextEncoding () {} - - #[Pure] - public function getFontStretch () {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the font stretch to use when annotating with text - * @link https://php.net/manual/en/imagickdraw.setfontstretch.php - * @param int $fontStretch

    - * STRETCH_ constant - *

    - * @return bool No value is returned. - */ - public function setFontStretch ($fontStretch) {} - - /** - * (PECL imagick 2.0.0)
    - * Controls whether stroked outlines are antialiased - * @link https://php.net/manual/en/imagickdraw.setstrokeantialias.php - * @param bool $stroke_antialias

    - * the antialias setting - *

    - * @return bool No value is returned. - */ - public function setStrokeAntialias ($stroke_antialias) {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies a text alignment - * @link https://php.net/manual/en/imagickdraw.settextalignment.php - * @param int $alignment

    - * ALIGN_ constant - *

    - * @return bool No value is returned. - */ - public function setTextAlignment ($alignment) {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies a decoration - * @link https://php.net/manual/en/imagickdraw.settextdecoration.php - * @param int $decoration

    - * DECORATION_ constant - *

    - * @return bool No value is returned. - */ - public function setTextDecoration ($decoration) {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies the color of a background rectangle - * @link https://php.net/manual/en/imagickdraw.settextundercolor.php - * @param ImagickPixel $under_color

    - * the under color - *

    - * @return bool No value is returned. - * @throws ImagickDrawException on error. - */ - public function setTextUnderColor (ImagickPixel $under_color) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the overall canvas size - * @link https://php.net/manual/en/imagickdraw.setviewbox.php - * @param int $x1

    - * left x coordinate - *

    - * @param int $y1

    - * left y coordinate - *

    - * @param int $x2

    - * right x coordinate - *

    - * @param int $y2

    - * right y coordinate - *

    - * @return bool No value is returned. - */ - public function setViewbox ($x1, $y1, $x2, $y2) {} - - /** - * (PECL imagick 2.0.0)
    - * Adjusts the current affine transformation matrix - * @link https://php.net/manual/en/imagickdraw.affine.php - * @param array $affine

    - * Affine matrix parameters - *

    - * @return bool No value is returned. - * @throws ImagickDrawException on error. - */ - public function affine (array $affine) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a bezier curve - * @link https://php.net/manual/en/imagickdraw.bezier.php - * @param array $coordinates

    - * Multidimensional array like array( array( 'x' => 1, 'y' => 2 ), - * array( 'x' => 3, 'y' => 4 ) ) - *

    - * @return bool No value is returned. - * @throws ImagickDrawException on error. - */ - public function bezier (array $coordinates) {} - - /** - * (PECL imagick 2.0.0)
    - * Composites an image onto the current image - * @link https://php.net/manual/en/imagickdraw.composite.php - * @param int $compose

    - * composition operator. One of COMPOSITE_ constants - *

    - * @param float $x

    - * x coordinate of the top left corner - *

    - * @param float $y

    - * y coordinate of the top left corner - *

    - * @param float $width

    - * width of the composition image - *

    - * @param float $height

    - * height of the composition image - *

    - * @param Imagick $compositeWand

    - * the Imagick object where composition image is taken from - *

    - * @return bool TRUE on success. - * @throws ImagickException on error. - */ - public function composite ($compose, $x, $y, $width, $height, Imagick $compositeWand) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws color on image - * @link https://php.net/manual/en/imagickdraw.color.php - * @param float $x

    - * x coordinate of the paint - *

    - * @param float $y

    - * y coordinate of the paint - *

    - * @param int $paintMethod

    - * one of the PAINT_ constants - *

    - * @return bool No value is returned. - */ - public function color ($x, $y, $paintMethod) {} - - /** - * (PECL imagick 2.0.0)
    - * Adds a comment - * @link https://php.net/manual/en/imagickdraw.comment.php - * @param string $comment

    - * The comment string to add to vector output stream - *

    - * @return bool No value is returned. - */ - public function comment ($comment) {} - - /** - * (PECL imagick 2.0.0)
    - * Obtains the current clipping path ID - * @link https://php.net/manual/en/imagickdraw.getclippath.php - * @return string|false a string containing the clip path ID or false if no clip path exists. - */ - #[Pure] - public function getClipPath () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the current polygon fill rule - * @link https://php.net/manual/en/imagickdraw.getcliprule.php - * @return int one of the FILLRULE_ constants. - */ - #[Pure] - public function getClipRule () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the interpretation of clip path units - * @link https://php.net/manual/en/imagickdraw.getclipunits.php - * @return int an int on success. - */ - #[Pure] - public function getClipUnits () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the fill color - * @link https://php.net/manual/en/imagickdraw.getfillcolor.php - * @return ImagickPixel an ImagickPixel object. - */ - #[Pure] - public function getFillColor () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the opacity used when drawing - * @link https://php.net/manual/en/imagickdraw.getfillopacity.php - * @return float The opacity. - */ - #[Pure] - public function getFillOpacity () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the fill rule - * @link https://php.net/manual/en/imagickdraw.getfillrule.php - * @return int a FILLRULE_ constant - */ - #[Pure] - public function getFillRule () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the text placement gravity - * @link https://php.net/manual/en/imagickdraw.getgravity.php - * @return int a GRAVITY_ constant on success and 0 if no gravity is set. - */ - #[Pure] - public function getGravity () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the current stroke antialias setting - * @link https://php.net/manual/en/imagickdraw.getstrokeantialias.php - * @return bool TRUE if antialiasing is on and false if it is off. - */ - #[Pure] - public function getStrokeAntialias () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the color used for stroking object outlines - * @link https://php.net/manual/en/imagickdraw.getstrokecolor.php - * @return ImagickPixel an ImagickPixel object which describes the color. - */ - #[Pure] - public function getStrokeColor () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns an array representing the pattern of dashes and gaps used to stroke paths - * @link https://php.net/manual/en/imagickdraw.getstrokedasharray.php - * @return array an array on success and empty array if not set. - */ - #[Pure] - public function getStrokeDashArray () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the offset into the dash pattern to start the dash - * @link https://php.net/manual/en/imagickdraw.getstrokedashoffset.php - * @return float a float representing the offset and 0 if it's not set. - */ - #[Pure] - public function getStrokeDashOffset () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the shape to be used at the end of open subpaths when they are stroked - * @link https://php.net/manual/en/imagickdraw.getstrokelinecap.php - * @return int one of the LINECAP_ constants or 0 if stroke linecap is not set. - */ - #[Pure] - public function getStrokeLineCap () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the shape to be used at the corners of paths when they are stroked - * @link https://php.net/manual/en/imagickdraw.getstrokelinejoin.php - * @return int one of the LINEJOIN_ constants or 0 if stroke line join is not set. - */ - #[Pure] - public function getStrokeLineJoin () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the stroke miter limit - * @link https://php.net/manual/en/imagickdraw.getstrokemiterlimit.php - * @return int an int describing the miter limit - * and 0 if no miter limit is set. - */ - #[Pure] - public function getStrokeMiterLimit () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the opacity of stroked object outlines - * @link https://php.net/manual/en/imagickdraw.getstrokeopacity.php - * @return float a float describing the opacity. - */ - #[Pure] - public function getStrokeOpacity () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the width of the stroke used to draw object outlines - * @link https://php.net/manual/en/imagickdraw.getstrokewidth.php - * @return float a float describing the stroke width. - */ - #[Pure] - public function getStrokeWidth () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the text alignment - * @link https://php.net/manual/en/imagickdraw.gettextalignment.php - * @return int one of the ALIGN_ constants and 0 if no align is set. - */ - #[Pure] - public function getTextAlignment () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the current text antialias setting - * @link https://php.net/manual/en/imagickdraw.gettextantialias.php - * @return bool TRUE if text is antialiased and false if not. - */ - #[Pure] - public function getTextAntialias () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns a string containing vector graphics - * @link https://php.net/manual/en/imagickdraw.getvectorgraphics.php - * @return string a string containing the vector graphics. - */ - #[Pure] - public function getVectorGraphics () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the text under color - * @link https://php.net/manual/en/imagickdraw.gettextundercolor.php - * @return ImagickPixel an ImagickPixel object describing the color. - * @throws ImagickDrawException on error. - */ - #[Pure] - public function getTextUnderColor () {} - - /** - * (PECL imagick 2.0.0)
    - * Adds a path element to the current path - * @link https://php.net/manual/en/imagickdraw.pathclose.php - * @return bool No value is returned. - */ - public function pathClose () {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a cubic Bezier curve - * @link https://php.net/manual/en/imagickdraw.pathcurvetoabsolute.php - * @param float $x1

    - * x coordinate of the first control point - *

    - * @param float $y1

    - * y coordinate of the first control point - *

    - * @param float $x2

    - * x coordinate of the second control point - *

    - * @param float $y2

    - * y coordinate of the first control point - *

    - * @param float $x

    - * x coordinate of the curve end - *

    - * @param float $y

    - * y coordinate of the curve end - *

    - * @return bool No value is returned. - */ - public function pathCurveToAbsolute ($x1, $y1, $x2, $y2, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a cubic Bezier curve - * @link https://php.net/manual/en/imagickdraw.pathcurvetorelative.php - * @param float $x1

    - * x coordinate of starting control point - *

    - * @param float $y1

    - * y coordinate of starting control point - *

    - * @param float $x2

    - * x coordinate of ending control point - *

    - * @param float $y2

    - * y coordinate of ending control point - *

    - * @param float $x

    - * ending x coordinate - *

    - * @param float $y

    - * ending y coordinate - *

    - * @return bool No value is returned. - */ - public function pathCurveToRelative ($x1, $y1, $x2, $y2, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a quadratic Bezier curve - * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbezierabsolute.php - * @param float $x1

    - * x coordinate of the control point - *

    - * @param float $y1

    - * y coordinate of the control point - *

    - * @param float $x

    - * x coordinate of the end point - *

    - * @param float $y

    - * y coordinate of the end point - *

    - * @return bool No value is returned. - */ - public function pathCurveToQuadraticBezierAbsolute ($x1, $y1, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a quadratic Bezier curve - * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbezierrelative.php - * @param float $x1

    - * starting x coordinate - *

    - * @param float $y1

    - * starting y coordinate - *

    - * @param float $x

    - * ending x coordinate - *

    - * @param float $y

    - * ending y coordinate - *

    - * @return bool No value is returned. - */ - public function pathCurveToQuadraticBezierRelative ($x1, $y1, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a quadratic Bezier curve - * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbeziersmoothabsolute.php - * @param float $x

    - * ending x coordinate - *

    - * @param float $y

    - * ending y coordinate - *

    - * @return bool No value is returned. - */ - public function pathCurveToQuadraticBezierSmoothAbsolute ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a quadratic Bezier curve - * @link https://php.net/manual/en/imagickdraw.pathcurvetoquadraticbeziersmoothrelative.php - * @param float $x

    - * ending x coordinate - *

    - * @param float $y

    - * ending y coordinate - *

    - * @return bool No value is returned. - */ - public function pathCurveToQuadraticBezierSmoothRelative ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a cubic Bezier curve - * @link https://php.net/manual/en/imagickdraw.pathcurvetosmoothabsolute.php - * @param float $x2

    - * x coordinate of the second control point - *

    - * @param float $y2

    - * y coordinate of the second control point - *

    - * @param float $x

    - * x coordinate of the ending point - *

    - * @param float $y

    - * y coordinate of the ending point - *

    - * @return bool No value is returned. - */ - public function pathCurveToSmoothAbsolute ($x2, $y2, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a cubic Bezier curve - * @link https://php.net/manual/en/imagickdraw.pathcurvetosmoothrelative.php - * @param float $x2

    - * x coordinate of the second control point - *

    - * @param float $y2

    - * y coordinate of the second control point - *

    - * @param float $x

    - * x coordinate of the ending point - *

    - * @param float $y

    - * y coordinate of the ending point - *

    - * @return bool No value is returned. - */ - public function pathCurveToSmoothRelative ($x2, $y2, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws an elliptical arc - * @link https://php.net/manual/en/imagickdraw.pathellipticarcabsolute.php - * @param float $rx

    - * x radius - *

    - * @param float $ry

    - * y radius - *

    - * @param float $x_axis_rotation

    - * x axis rotation - *

    - * @param bool $large_arc_flag

    - * large arc flag - *

    - * @param bool $sweep_flag

    - * sweep flag - *

    - * @param float $x

    - * x coordinate - *

    - * @param float $y

    - * y coordinate - *

    - * @return bool No value is returned. - */ - public function pathEllipticArcAbsolute ($rx, $ry, $x_axis_rotation, $large_arc_flag, $sweep_flag, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws an elliptical arc - * @link https://php.net/manual/en/imagickdraw.pathellipticarcrelative.php - * @param float $rx

    - * x radius - *

    - * @param float $ry

    - * y radius - *

    - * @param float $x_axis_rotation

    - * x axis rotation - *

    - * @param bool $large_arc_flag

    - * large arc flag - *

    - * @param bool $sweep_flag

    - * sweep flag - *

    - * @param float $x

    - * x coordinate - *

    - * @param float $y

    - * y coordinate - *

    - * @return bool No value is returned. - */ - public function pathEllipticArcRelative ($rx, $ry, $x_axis_rotation, $large_arc_flag, $sweep_flag, $x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Terminates the current path - * @link https://php.net/manual/en/imagickdraw.pathfinish.php - * @return bool No value is returned. - */ - public function pathFinish () {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a line path - * @link https://php.net/manual/en/imagickdraw.pathlinetoabsolute.php - * @param float $x

    - * starting x coordinate - *

    - * @param float $y

    - * ending x coordinate - *

    - * @return bool No value is returned. - */ - public function pathLineToAbsolute ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a line path - * @link https://php.net/manual/en/imagickdraw.pathlinetorelative.php - * @param float $x

    - * starting x coordinate - *

    - * @param float $y

    - * starting y coordinate - *

    - * @return bool No value is returned. - */ - public function pathLineToRelative ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a horizontal line path - * @link https://php.net/manual/en/imagickdraw.pathlinetohorizontalabsolute.php - * @param float $x

    - * x coordinate - *

    - * @return bool No value is returned. - */ - public function pathLineToHorizontalAbsolute ($x) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a horizontal line - * @link https://php.net/manual/en/imagickdraw.pathlinetohorizontalrelative.php - * @param float $x

    - * x coordinate - *

    - * @return bool No value is returned. - */ - public function pathLineToHorizontalRelative ($x) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a vertical line - * @link https://php.net/manual/en/imagickdraw.pathlinetoverticalabsolute.php - * @param float $y

    - * y coordinate - *

    - * @return bool No value is returned. - */ - public function pathLineToVerticalAbsolute ($y) {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a vertical line path - * @link https://php.net/manual/en/imagickdraw.pathlinetoverticalrelative.php - * @param float $y

    - * y coordinate - *

    - * @return bool No value is returned. - */ - public function pathLineToVerticalRelative ($y) {} - - /** - * (PECL imagick 2.0.0)
    - * Starts a new sub-path - * @link https://php.net/manual/en/imagickdraw.pathmovetoabsolute.php - * @param float $x

    - * x coordinate of the starting point - *

    - * @param float $y

    - * y coordinate of the starting point - *

    - * @return bool No value is returned. - */ - public function pathMoveToAbsolute ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Starts a new sub-path - * @link https://php.net/manual/en/imagickdraw.pathmovetorelative.php - * @param float $x

    - * target x coordinate - *

    - * @param float $y

    - * target y coordinate - *

    - * @return bool No value is returned. - */ - public function pathMoveToRelative ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Declares the start of a path drawing list - * @link https://php.net/manual/en/imagickdraw.pathstart.php - * @return bool No value is returned. - */ - public function pathStart () {} - - /** - * (PECL imagick 2.0.0)
    - * Draws a polyline - * @link https://php.net/manual/en/imagickdraw.polyline.php - * @param array $coordinates

    - * array of x and y coordinates: array( array( 'x' => 4, 'y' => 6 ), array( 'x' => 8, 'y' => 10 ) ) - *

    - * @return bool TRUE on success. - * @throws ImagickDrawException on error. - */ - public function polyline (array $coordinates) {} - - /** - * (PECL imagick 2.0.0)
    - * Terminates a clip path definition - * @link https://php.net/manual/en/imagickdraw.popclippath.php - * @return bool No value is returned. - */ - public function popClipPath () {} - - /** - * (PECL imagick 2.0.0)
    - * Terminates a definition list - * @link https://php.net/manual/en/imagickdraw.popdefs.php - * @return bool No value is returned. - */ - public function popDefs () {} - - /** - * (PECL imagick 2.0.0)
    - * Terminates a pattern definition - * @link https://php.net/manual/en/imagickdraw.poppattern.php - * @return bool TRUE on success or FALSE on failure. - * @throws ImagickException on error. - */ - public function popPattern () {} - - /** - * (PECL imagick 2.0.0)
    - * Starts a clip path definition - * @link https://php.net/manual/en/imagickdraw.pushclippath.php - * @param string $clip_mask_id

    - * Clip mask Id - *

    - * @return bool No value is returned. - */ - public function pushClipPath ($clip_mask_id) {} - - /** - * (PECL imagick 2.0.0)
    - * Indicates that following commands create named elements for early processing - * @link https://php.net/manual/en/imagickdraw.pushdefs.php - * @return bool No value is returned. - */ - public function pushDefs () {} - - /** - * (PECL imagick 2.0.0)
    - * Indicates that subsequent commands up to a ImagickDraw::opPattern() command comprise the definition of a named pattern - * @link https://php.net/manual/en/imagickdraw.pushpattern.php - * @param string $pattern_id

    - * the pattern Id - *

    - * @param float $x

    - * x coordinate of the top-left corner - *

    - * @param float $y

    - * y coordinate of the top-left corner - *

    - * @param float $width

    - * width of the pattern - *

    - * @param float $height

    - * height of the pattern - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function pushPattern ($pattern_id, $x, $y, $width, $height) {} - - /** - * (PECL imagick 2.0.0)
    - * Renders all preceding drawing commands onto the image - * @link https://php.net/manual/en/imagickdraw.render.php - * @return bool TRUE on success or FALSE on failure. - * @throws ImagickException on error. - */ - public function render () {} - - /** - * (PECL imagick 2.0.0)
    - * Applies the specified rotation to the current coordinate space - * @link https://php.net/manual/en/imagickdraw.rotate.php - * @param float $degrees

    - * degrees to rotate - *

    - * @return bool No value is returned. - */ - public function rotate ($degrees) {} - - /** - * (PECL imagick 2.0.0)
    - * Adjusts the scaling factor - * @link https://php.net/manual/en/imagickdraw.scale.php - * @param float $x

    - * horizontal factor - *

    - * @param float $y

    - * vertical factor - *

    - * @return bool No value is returned. - */ - public function scale ($x, $y) {} - - /** - * (PECL imagick 2.0.0)
    - * Associates a named clipping path with the image - * @link https://php.net/manual/en/imagickdraw.setclippath.php - * @param string $clip_mask

    - * the clipping path name - *

    - * @return bool No value is returned. - * @throws ImagickException on error. - */ - public function setClipPath ($clip_mask) {} - - /** - * (PECL imagick 2.0.0)
    - * Set the polygon fill rule to be used by the clipping path - * @link https://php.net/manual/en/imagickdraw.setcliprule.php - * @param int $fill_rule

    - * FILLRULE_ constant - *

    - * @return bool No value is returned. - */ - public function setClipRule ($fill_rule) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the interpretation of clip path units - * @link https://php.net/manual/en/imagickdraw.setclipunits.php - * @param int $clip_units

    - * the number of clip units - *

    - * @return bool No value is returned. - */ - public function setClipUnits ($clip_units) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the opacity to use when drawing using the fill color or fill texture - * @link https://php.net/manual/en/imagickdraw.setfillopacity.php - * @param float $fillOpacity

    - * the fill opacity - *

    - * @return bool No value is returned. - */ - public function setFillOpacity ($fillOpacity) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the URL to use as a fill pattern for filling objects - * @link https://php.net/manual/en/imagickdraw.setfillpatternurl.php - * @param string $fill_url

    - * URL to use to obtain fill pattern. - *

    - * @return bool TRUE on success or FALSE on failure. - * @throws ImagickException on error. - */ - public function setFillPatternURL ($fill_url) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the fill rule to use while drawing polygons - * @link https://php.net/manual/en/imagickdraw.setfillrule.php - * @param int $fill_rule

    - * FILLRULE_ constant - *

    - * @return bool No value is returned. - */ - public function setFillRule ($fill_rule) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the text placement gravity - * @link https://php.net/manual/en/imagickdraw.setgravity.php - * @param int $gravity

    - * GRAVITY_ constant - *

    - * @return bool No value is returned. - */ - public function setGravity ($gravity) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the pattern used for stroking object outlines - * @link https://php.net/manual/en/imagickdraw.setstrokepatternurl.php - * @param string $stroke_url

    - * stroke URL - *

    - * @return bool imagick.imagickdraw.return.success; - * @throws ImagickException on error. - */ - public function setStrokePatternURL ($stroke_url) {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies the offset into the dash pattern to start the dash - * @link https://php.net/manual/en/imagickdraw.setstrokedashoffset.php - * @param float $dash_offset

    - * dash offset - *

    - * @return bool No value is returned. - */ - public function setStrokeDashOffset ($dash_offset) {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies the shape to be used at the end of open subpaths when they are stroked - * @link https://php.net/manual/en/imagickdraw.setstrokelinecap.php - * @param int $linecap

    - * LINECAP_ constant - *

    - * @return bool No value is returned. - */ - public function setStrokeLineCap ($linecap) {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies the shape to be used at the corners of paths when they are stroked - * @link https://php.net/manual/en/imagickdraw.setstrokelinejoin.php - * @param int $linejoin

    - * LINEJOIN_ constant - *

    - * @return bool No value is returned. - */ - public function setStrokeLineJoin ($linejoin) {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies the miter limit - * @link https://php.net/manual/en/imagickdraw.setstrokemiterlimit.php - * @param int $miterlimit

    - * the miter limit - *

    - * @return bool No value is returned. - */ - public function setStrokeMiterLimit ($miterlimit) {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies the opacity of stroked object outlines - * @link https://php.net/manual/en/imagickdraw.setstrokeopacity.php - * @param float $stroke_opacity

    - * stroke opacity. 1.0 is fully opaque - *

    - * @return bool No value is returned. - */ - public function setStrokeOpacity ($stroke_opacity) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the vector graphics - * @link https://php.net/manual/en/imagickdraw.setvectorgraphics.php - * @param string $xml

    - * xml containing the vector graphics - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setVectorGraphics ($xml) {} - - /** - * (PECL imagick 2.0.0)
    - * Destroys the current ImagickDraw in the stack, and returns to the previously pushed ImagickDraw - * @link https://php.net/manual/en/imagickdraw.pop.php - * @return bool TRUE on success and false on failure. - * @throws ImagickException on error. - */ - public function pop () {} - - /** - * (PECL imagick 2.0.0)
    - * Clones the current ImagickDraw and pushes it to the stack - * @link https://php.net/manual/en/imagickdraw.push.php - * @return bool TRUE on success or FALSE on failure. - * @throws ImagickException on error. - */ - public function push () {} - - /** - * (PECL imagick 2.0.0)
    - * Specifies the pattern of dashes and gaps used to stroke paths - * @link https://php.net/manual/en/imagickdraw.setstrokedasharray.php - * @param array $dashArray

    - * array of floats - *

    - * @return bool TRUE on success. - */ - public function setStrokeDashArray (array $dashArray) {} + /** + * (PECL imagick 2.0.0)
    + * Renders all preceding drawing commands onto the image + * @link https://php.net/manual/en/imagickdraw.render.php + * @return bool TRUE on success or FALSE on failure. + * @throws ImagickException on error. + */ + public function render() {} + + /** + * (PECL imagick 2.0.0)
    + * Applies the specified rotation to the current coordinate space + * @link https://php.net/manual/en/imagickdraw.rotate.php + * @param float $degrees

    + * degrees to rotate + *

    + * @return bool No value is returned. + */ + public function rotate($degrees) {} + + /** + * (PECL imagick 2.0.0)
    + * Adjusts the scaling factor + * @link https://php.net/manual/en/imagickdraw.scale.php + * @param float $x

    + * horizontal factor + *

    + * @param float $y

    + * vertical factor + *

    + * @return bool No value is returned. + */ + public function scale($x, $y) {} + + /** + * (PECL imagick 2.0.0)
    + * Associates a named clipping path with the image + * @link https://php.net/manual/en/imagickdraw.setclippath.php + * @param string $clip_mask

    + * the clipping path name + *

    + * @return bool No value is returned. + * @throws ImagickException on error. + */ + public function setClipPath($clip_mask) {} + + /** + * (PECL imagick 2.0.0)
    + * Set the polygon fill rule to be used by the clipping path + * @link https://php.net/manual/en/imagickdraw.setcliprule.php + * @param int $fill_rule

    + * FILLRULE_ constant + *

    + * @return bool No value is returned. + */ + public function setClipRule($fill_rule) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the interpretation of clip path units + * @link https://php.net/manual/en/imagickdraw.setclipunits.php + * @param int $clip_units

    + * the number of clip units + *

    + * @return bool No value is returned. + */ + public function setClipUnits($clip_units) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the opacity to use when drawing using the fill color or fill texture + * @link https://php.net/manual/en/imagickdraw.setfillopacity.php + * @param float $fillOpacity

    + * the fill opacity + *

    + * @return bool No value is returned. + */ + public function setFillOpacity($fillOpacity) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the URL to use as a fill pattern for filling objects + * @link https://php.net/manual/en/imagickdraw.setfillpatternurl.php + * @param string $fill_url

    + * URL to use to obtain fill pattern. + *

    + * @return bool TRUE on success or FALSE on failure. + * @throws ImagickException on error. + */ + public function setFillPatternURL($fill_url) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the fill rule to use while drawing polygons + * @link https://php.net/manual/en/imagickdraw.setfillrule.php + * @param int $fill_rule

    + * FILLRULE_ constant + *

    + * @return bool No value is returned. + */ + public function setFillRule($fill_rule) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the text placement gravity + * @link https://php.net/manual/en/imagickdraw.setgravity.php + * @param int $gravity

    + * GRAVITY_ constant + *

    + * @return bool No value is returned. + */ + public function setGravity($gravity) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the pattern used for stroking object outlines + * @link https://php.net/manual/en/imagickdraw.setstrokepatternurl.php + * @param string $stroke_url

    + * stroke URL + *

    + * @return bool imagick.imagickdraw.return.success; + * @throws ImagickException on error. + */ + public function setStrokePatternURL($stroke_url) {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies the offset into the dash pattern to start the dash + * @link https://php.net/manual/en/imagickdraw.setstrokedashoffset.php + * @param float $dash_offset

    + * dash offset + *

    + * @return bool No value is returned. + */ + public function setStrokeDashOffset($dash_offset) {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies the shape to be used at the end of open subpaths when they are stroked + * @link https://php.net/manual/en/imagickdraw.setstrokelinecap.php + * @param int $linecap

    + * LINECAP_ constant + *

    + * @return bool No value is returned. + */ + public function setStrokeLineCap($linecap) {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies the shape to be used at the corners of paths when they are stroked + * @link https://php.net/manual/en/imagickdraw.setstrokelinejoin.php + * @param int $linejoin

    + * LINEJOIN_ constant + *

    + * @return bool No value is returned. + */ + public function setStrokeLineJoin($linejoin) {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies the miter limit + * @link https://php.net/manual/en/imagickdraw.setstrokemiterlimit.php + * @param int $miterlimit

    + * the miter limit + *

    + * @return bool No value is returned. + */ + public function setStrokeMiterLimit($miterlimit) {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies the opacity of stroked object outlines + * @link https://php.net/manual/en/imagickdraw.setstrokeopacity.php + * @param float $stroke_opacity

    + * stroke opacity. 1.0 is fully opaque + *

    + * @return bool No value is returned. + */ + public function setStrokeOpacity($stroke_opacity) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the vector graphics + * @link https://php.net/manual/en/imagickdraw.setvectorgraphics.php + * @param string $xml

    + * xml containing the vector graphics + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setVectorGraphics($xml) {} + + /** + * (PECL imagick 2.0.0)
    + * Destroys the current ImagickDraw in the stack, and returns to the previously pushed ImagickDraw + * @link https://php.net/manual/en/imagickdraw.pop.php + * @return bool TRUE on success and false on failure. + * @throws ImagickException on error. + */ + public function pop() {} + + /** + * (PECL imagick 2.0.0)
    + * Clones the current ImagickDraw and pushes it to the stack + * @link https://php.net/manual/en/imagickdraw.push.php + * @return bool TRUE on success or FALSE on failure. + * @throws ImagickException on error. + */ + public function push() {} + + /** + * (PECL imagick 2.0.0)
    + * Specifies the pattern of dashes and gaps used to stroke paths + * @link https://php.net/manual/en/imagickdraw.setstrokedasharray.php + * @param array $dashArray

    + * array of floats + *

    + * @return bool TRUE on success. + */ + public function setStrokeDashArray(array $dashArray) {} /** * Sets the opacity to use when drawing using the fill or stroke color or texture. Fully opaque is 1.0. @@ -6781,540 +6777,538 @@ public function setStrokeDashArray (array $dashArray) {} * @return void * @since 3.4.1 */ - public function setOpacity($opacity) { } - - /** - * Returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0. - * - * @return float - * @since 3.4.1 - */ - #[Pure] - public function getOpacity() { } - - /** - * Sets the image font resolution. - * - * @param float $x - * @param float $y - * @return bool - * @throws ImagickException on error. - * @since 3.4.1 - */ - public function setFontResolution($x, $y) { } - - /** - * Gets the image X and Y resolution. - * - * @return array - * @throws ImagickException on error. - * @since 3.4.1 - */ - #[Pure] - public function getFontResolution() { } - - /** - * Returns the direction that will be used when annotating with text. - * @return bool - * @since 3.4.1 - */ - #[Pure] - public function getTextDirection() { } - - /** - * Sets the font style to use when annotating with text. The AnyStyle enumeration acts as a wild-card "don't care" option. - * - * @param int $direction - * @return bool - * @since 3.4.1 - */ - public function setTextDirection($direction) { } - - /** - * Returns the border color used for drawing bordered objects. - * - * @return ImagickPixel - * @since 3.4.1 - */ - #[Pure] - public function getBorderColor() { } - - /** - * Sets the border color to be used for drawing bordered objects. - * @param ImagickPixel $color - * @return bool - * @throws ImagickDrawException on error. - * @since 3.4.1 - */ - public function setBorderColor(ImagickPixel $color) { } - - /** - * Obtains the vertical and horizontal resolution. - * - * @return string|null - * @since 3.4.1 - */ - #[Pure] - public function getDensity() { } - - /** - * Sets the vertical and horizontal resolution. - * @param string $density_string - * @return bool - * @throws ImagickException on error. - * @since 3.4.1 - */ - public function setDensity($density_string) { } + public function setOpacity($opacity) {} + + /** + * Returns the opacity used when drawing with the fill or stroke color or texture. Fully opaque is 1.0. + * + * @return float + * @since 3.4.1 + */ + #[Pure] + public function getOpacity() {} + + /** + * Sets the image font resolution. + * + * @param float $x + * @param float $y + * @return bool + * @throws ImagickException on error. + * @since 3.4.1 + */ + public function setFontResolution($x, $y) {} + + /** + * Gets the image X and Y resolution. + * + * @return array + * @throws ImagickException on error. + * @since 3.4.1 + */ + #[Pure] + public function getFontResolution() {} + + /** + * Returns the direction that will be used when annotating with text. + * @return bool + * @since 3.4.1 + */ + #[Pure] + public function getTextDirection() {} + + /** + * Sets the font style to use when annotating with text. The AnyStyle enumeration acts as a wild-card "don't care" option. + * + * @param int $direction + * @return bool + * @since 3.4.1 + */ + public function setTextDirection($direction) {} + + /** + * Returns the border color used for drawing bordered objects. + * + * @return ImagickPixel + * @since 3.4.1 + */ + #[Pure] + public function getBorderColor() {} + + /** + * Sets the border color to be used for drawing bordered objects. + * @param ImagickPixel $color + * @return bool + * @throws ImagickDrawException on error. + * @since 3.4.1 + */ + public function setBorderColor(ImagickPixel $color) {} + + /** + * Obtains the vertical and horizontal resolution. + * + * @return string|null + * @since 3.4.1 + */ + #[Pure] + public function getDensity() {} + + /** + * Sets the vertical and horizontal resolution. + * @param string $density_string + * @return bool + * @throws ImagickException on error. + * @since 3.4.1 + */ + public function setDensity($density_string) {} } /** * @link https://php.net/manual/en/class.imagickpixeliterator.php */ -class ImagickPixelIterator implements Iterator { - - /** - * (PECL imagick 2.0.0)
    - * The ImagickPixelIterator constructor - * @link https://php.net/manual/en/imagickpixeliterator.construct.php - * @param Imagick $wand - * @throws ImagickPixelIteratorException on error. - * @throws ImagickException on error. - */ - public function __construct (Imagick $wand) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns a new pixel iterator - * @link https://php.net/manual/en/imagickpixeliterator.newpixeliterator.php - * @param Imagick $wand - * @return bool TRUE on success. Throwing ImagickPixelIteratorException. - * @throws ImagickPixelIteratorException - * @throws ImagickException - */ - #[Deprecated(replacement: "%class%->getPixelIterator(%parametersList%)")] - public function newPixelIterator (Imagick $wand) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns a new pixel iterator - * @link https://php.net/manual/en/imagickpixeliterator.newpixelregioniterator.php - * @param Imagick $wand - * @param int $x - * @param int $y - * @param int $columns - * @param int $rows - * @return bool a new ImagickPixelIterator on success; on failure, throws ImagickPixelIteratorException - * @throws ImagickPixelIteratorException - * @throws ImagickException - */ - #[Deprecated(replacement: "%class%->getPixelRegionIterator(%parametersList%)")] - public function newPixelRegionIterator (Imagick $wand, $x, $y, $columns, $rows) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the current pixel iterator row - * @link https://php.net/manual/en/imagickpixeliterator.getiteratorrow.php - * @return int the integer offset of the row, throwing ImagickPixelIteratorException on error. - * @throws ImagickPixelIteratorException on error - */ - #[Pure] - public function getIteratorRow () {} - - /** - * (PECL imagick 2.0.0)
    - * Set the pixel iterator row - * @link https://php.net/manual/en/imagickpixeliterator.setiteratorrow.php - * @param int $row - * @return bool TRUE on success. - * @throws ImagickPixelIteratorException on error. - */ - public function setIteratorRow ($row) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the pixel iterator to the first pixel row - * @link https://php.net/manual/en/imagickpixeliterator.setiteratorfirstrow.php - * @return bool TRUE on success. - * @throws ImagickPixelIteratorException on error. - */ - public function setIteratorFirstRow () {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the pixel iterator to the last pixel row - * @link https://php.net/manual/en/imagickpixeliterator.setiteratorlastrow.php - * @return bool TRUE on success. - * @throws ImagickPixelIteratorException on error. - */ - public function setIteratorLastRow () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the previous row - * @link https://php.net/manual/en/imagickpixeliterator.getpreviousiteratorrow.php - * @return array the previous row as an array of ImagickPixelWand objects from the - * ImagickPixelIterator, throwing ImagickPixelIteratorException on error. - * @throws ImagickPixelIteratorException on error - */ - #[Pure] - public function getPreviousIteratorRow () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the current row of ImagickPixel objects - * @link https://php.net/manual/en/imagickpixeliterator.getcurrentiteratorrow.php - * @return array a row as an array of ImagickPixel objects that can themselves be iterated. - * @throws ImagickPixelIteratorException on error. - */ - #[Pure] - public function getCurrentIteratorRow () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the next row of the pixel iterator - * @link https://php.net/manual/en/imagickpixeliterator.getnextiteratorrow.php - * @return array the next row as an array of ImagickPixel objects, throwing - * ImagickPixelIteratorException on error. - * @throws ImagickPixelIteratorException on error - */ - #[Pure] - public function getNextIteratorRow () {} - - /** - * (PECL imagick 2.0.0)
    - * Resets the pixel iterator - * @link https://php.net/manual/en/imagickpixeliterator.resetiterator.php - * @return bool TRUE on success. - * @throws ImagickPixelIteratorException on error. - */ - public function resetIterator () {} - - /** - * (PECL imagick 2.0.0)
    - * Syncs the pixel iterator - * @link https://php.net/manual/en/imagickpixeliterator.synciterator.php - * @return bool TRUE on success. - * @throws ImagickPixelIteratorException on error. - */ - public function syncIterator () {} - - /** - * (PECL imagick 2.0.0)
    - * Deallocates resources associated with a PixelIterator - * @link https://php.net/manual/en/imagickpixeliterator.destroy.php - * @return bool TRUE on success. - * @throws ImagickPixelIteratorException on error. - */ - public function destroy () {} - - /** - * (PECL imagick 2.0.0)
    - * Clear resources associated with a PixelIterator - * @link https://php.net/manual/en/imagickpixeliterator.clear.php - * @return bool TRUE on success. - * @throws ImagickPixelIteratorException on error. - */ - public function clear () {} - - /** - * @param Imagick $Imagick - * @throws ImagickPixelIteratorException on error. - * @throws ImagickException on error. - */ - public static function getpixeliterator (Imagick $Imagick) {} - - /** - * @param Imagick $Imagick - * @param $x - * @param $y - * @param $columns - * @param $rows - * @throws ImagickPixelIteratorException on error. - * @throws ImagickException on error. - */ - public static function getpixelregioniterator (Imagick $Imagick, $x, $y, $columns, $rows) {} - - /** - * @throws ImagickPixelIteratorException on error. - */ - public function key () {} - - /** - * @throws ImagickPixelIteratorException on error. - */ - public function next () {} - - /** - * @throws ImagickPixelIteratorException on error. - */ - public function rewind () {} - - /** - * @throws ImagickPixelIteratorException on error. - */ - public function current () {} - - /** - * @throws ImagickPixelIteratorException on error. - */ - public function valid () {} +class ImagickPixelIterator implements Iterator +{ + /** + * (PECL imagick 2.0.0)
    + * The ImagickPixelIterator constructor + * @link https://php.net/manual/en/imagickpixeliterator.construct.php + * @param Imagick $wand + * @throws ImagickPixelIteratorException on error. + * @throws ImagickException on error. + */ + public function __construct(Imagick $wand) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns a new pixel iterator + * @link https://php.net/manual/en/imagickpixeliterator.newpixeliterator.php + * @param Imagick $wand + * @return bool TRUE on success. Throwing ImagickPixelIteratorException. + * @throws ImagickPixelIteratorException + * @throws ImagickException + */ + #[Deprecated(replacement: "%class%->getPixelIterator(%parametersList%)")] + public function newPixelIterator(Imagick $wand) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns a new pixel iterator + * @link https://php.net/manual/en/imagickpixeliterator.newpixelregioniterator.php + * @param Imagick $wand + * @param int $x + * @param int $y + * @param int $columns + * @param int $rows + * @return bool a new ImagickPixelIterator on success; on failure, throws ImagickPixelIteratorException + * @throws ImagickPixelIteratorException + * @throws ImagickException + */ + #[Deprecated(replacement: "%class%->getPixelRegionIterator(%parametersList%)")] + public function newPixelRegionIterator(Imagick $wand, $x, $y, $columns, $rows) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the current pixel iterator row + * @link https://php.net/manual/en/imagickpixeliterator.getiteratorrow.php + * @return int the integer offset of the row, throwing ImagickPixelIteratorException on error. + * @throws ImagickPixelIteratorException on error + */ + #[Pure] + public function getIteratorRow() {} + + /** + * (PECL imagick 2.0.0)
    + * Set the pixel iterator row + * @link https://php.net/manual/en/imagickpixeliterator.setiteratorrow.php + * @param int $row + * @return bool TRUE on success. + * @throws ImagickPixelIteratorException on error. + */ + public function setIteratorRow($row) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the pixel iterator to the first pixel row + * @link https://php.net/manual/en/imagickpixeliterator.setiteratorfirstrow.php + * @return bool TRUE on success. + * @throws ImagickPixelIteratorException on error. + */ + public function setIteratorFirstRow() {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the pixel iterator to the last pixel row + * @link https://php.net/manual/en/imagickpixeliterator.setiteratorlastrow.php + * @return bool TRUE on success. + * @throws ImagickPixelIteratorException on error. + */ + public function setIteratorLastRow() {} + /** + * (PECL imagick 2.0.0)
    + * Returns the previous row + * @link https://php.net/manual/en/imagickpixeliterator.getpreviousiteratorrow.php + * @return array the previous row as an array of ImagickPixelWand objects from the + * ImagickPixelIterator, throwing ImagickPixelIteratorException on error. + * @throws ImagickPixelIteratorException on error + */ + #[Pure] + public function getPreviousIteratorRow() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the current row of ImagickPixel objects + * @link https://php.net/manual/en/imagickpixeliterator.getcurrentiteratorrow.php + * @return array a row as an array of ImagickPixel objects that can themselves be iterated. + * @throws ImagickPixelIteratorException on error. + */ + #[Pure] + public function getCurrentIteratorRow() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the next row of the pixel iterator + * @link https://php.net/manual/en/imagickpixeliterator.getnextiteratorrow.php + * @return array the next row as an array of ImagickPixel objects, throwing + * ImagickPixelIteratorException on error. + * @throws ImagickPixelIteratorException on error + */ + #[Pure] + public function getNextIteratorRow() {} + + /** + * (PECL imagick 2.0.0)
    + * Resets the pixel iterator + * @link https://php.net/manual/en/imagickpixeliterator.resetiterator.php + * @return bool TRUE on success. + * @throws ImagickPixelIteratorException on error. + */ + public function resetIterator() {} + + /** + * (PECL imagick 2.0.0)
    + * Syncs the pixel iterator + * @link https://php.net/manual/en/imagickpixeliterator.synciterator.php + * @return bool TRUE on success. + * @throws ImagickPixelIteratorException on error. + */ + public function syncIterator() {} + + /** + * (PECL imagick 2.0.0)
    + * Deallocates resources associated with a PixelIterator + * @link https://php.net/manual/en/imagickpixeliterator.destroy.php + * @return bool TRUE on success. + * @throws ImagickPixelIteratorException on error. + */ + public function destroy() {} + + /** + * (PECL imagick 2.0.0)
    + * Clear resources associated with a PixelIterator + * @link https://php.net/manual/en/imagickpixeliterator.clear.php + * @return bool TRUE on success. + * @throws ImagickPixelIteratorException on error. + */ + public function clear() {} + + /** + * @param Imagick $Imagick + * @throws ImagickPixelIteratorException on error. + * @throws ImagickException on error. + */ + public static function getpixeliterator(Imagick $Imagick) {} + + /** + * @param Imagick $Imagick + * @param $x + * @param $y + * @param $columns + * @param $rows + * @throws ImagickPixelIteratorException on error. + * @throws ImagickException on error. + */ + public static function getpixelregioniterator(Imagick $Imagick, $x, $y, $columns, $rows) {} + + /** + * @throws ImagickPixelIteratorException on error. + */ + public function key() {} + + /** + * @throws ImagickPixelIteratorException on error. + */ + public function next() {} + + /** + * @throws ImagickPixelIteratorException on error. + */ + public function rewind() {} + + /** + * @throws ImagickPixelIteratorException on error. + */ + public function current() {} + + /** + * @throws ImagickPixelIteratorException on error. + */ + public function valid() {} } /** * @method clone() * @link https://php.net/manual/en/class.imagickpixel.php */ -class ImagickPixel { - - /** - * (PECL imagick 2.0.0)
    - * Returns the normalized HSL color of the ImagickPixel object - * @link https://php.net/manual/en/imagickpixel.gethsl.php - * @return float[] the HSL value in an array with the keys "hue", - * "saturation", and "luminosity". Throws ImagickPixelException on failure. - * @throws ImagickPixelException on failure - */ +class ImagickPixel +{ + /** + * (PECL imagick 2.0.0)
    + * Returns the normalized HSL color of the ImagickPixel object + * @link https://php.net/manual/en/imagickpixel.gethsl.php + * @return float[] the HSL value in an array with the keys "hue", + * "saturation", and "luminosity". Throws ImagickPixelException on failure. + * @throws ImagickPixelException on failure + */ #[ArrayShape([ "hue" => "float", "saturation" => "float", "luminosity" => "float" ])] - #[Pure] - public function getHSL () {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the normalized HSL color - * @link https://php.net/manual/en/imagickpixel.sethsl.php - * @param float $hue

    - * The normalized value for hue, described as a fractional arc - * (between 0 and 1) of the hue circle, where the zero value is - * red. - *

    - * @param float $saturation

    - * The normalized value for saturation, with 1 as full saturation. - *

    - * @param float $luminosity

    - * The normalized value for luminosity, on a scale from black at - * 0 to white at 1, with the full HS value at 0.5 luminosity. - *

    - * @return bool TRUE on success. - * @throws ImagickPixelException on failure - */ - public function setHSL ($hue, $saturation, $luminosity) {} - - /** - * @throws ImagickPixelException on failure - */ - #[Pure] - public function getColorValueQuantum () {} - - /** - * @param $color_value - * @throws ImagickPixelException on failure - */ - public function setColorValueQuantum ($color_value) {} + #[Pure] + public function getHSL() {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the normalized HSL color + * @link https://php.net/manual/en/imagickpixel.sethsl.php + * @param float $hue

    + * The normalized value for hue, described as a fractional arc + * (between 0 and 1) of the hue circle, where the zero value is + * red. + *

    + * @param float $saturation

    + * The normalized value for saturation, with 1 as full saturation. + *

    + * @param float $luminosity

    + * The normalized value for luminosity, on a scale from black at + * 0 to white at 1, with the full HS value at 0.5 luminosity. + *

    + * @return bool TRUE on success. + * @throws ImagickPixelException on failure + */ + public function setHSL($hue, $saturation, $luminosity) {} + + /** + * @throws ImagickPixelException on failure + */ + #[Pure] + public function getColorValueQuantum() {} + + /** + * @param $color_value + * @throws ImagickPixelException on failure + */ + public function setColorValueQuantum($color_value) {} /** * Gets the colormap index of the pixel wand. - * @throws ImagickPixelException on failure - */ - #[Pure] - public function getIndex () {} - - /** - * @param int $index - * @throws ImagickPixelException on failure - */ - public function setIndex ($index) {} - - /** - * (PECL imagick 2.0.0)
    - * The ImagickPixel constructor - * @link https://php.net/manual/en/imagickpixel.construct.php - * @param string $color [optional]

    - * The optional color string to use as the initial value of this object. - *

    - * @throws ImagickPixelException on failure - */ - public function __construct ($color = null) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the color - * @link https://php.net/manual/en/imagickpixel.setcolor.php - * @param string $color

    - * The color definition to use in order to initialise the - * ImagickPixel object. - *

    - * @return bool TRUE if the specified color was set, FALSE otherwise. - * @throws ImagickPixelException on failure - */ - public function setColor ($color) {} - - /** - * (PECL imagick 2.0.0)
    - * Sets the normalized value of one of the channels - * @link https://php.net/manual/en/imagickpixel.setcolorvalue.php - * @param int $color

    - * One of the Imagick color constants e.g. \Imagick::COLOR_GREEN or \Imagick::COLOR_ALPHA. - *

    - * @param float $value

    - * The value to set this channel to, ranging from 0 to 1. - *

    - * @return bool TRUE on success. - * @throws ImagickPixelException on failure - */ - public function setColorValue ($color, $value) {} - - /** - * (PECL imagick 2.0.0)
    - * Gets the normalized value of the provided color channel - * @link https://php.net/manual/en/imagickpixel.getcolorvalue.php - * @param int $color

    - * The color to get the value of, specified as one of the Imagick color - * constants. This can be one of the RGB colors, CMYK colors, alpha and - * opacity e.g (Imagick::COLOR_BLUE, Imagick::COLOR_MAGENTA). - *

    - * @return float The value of the channel, as a normalized floating-point number, throwing - * ImagickPixelException on error. - * @throws ImagickPixelException on error - */ - #[Pure] - public function getColorValue ($color) {} - - /** - * (PECL imagick 2.0.0)
    - * Clears resources associated with this object - * @link https://php.net/manual/en/imagickpixel.clear.php - * @return bool TRUE on success. - * @throws ImagickPixelException on failure - */ - public function clear () {} - - /** - * (PECL imagick 2.0.0)
    - * Deallocates resources associated with this object - * @link https://php.net/manual/en/imagickpixel.destroy.php - * @return bool TRUE on success. - * @throws ImagickPixelException on failure - */ - public function destroy () {} - - /** - * (PECL imagick 2.0.0)
    - * Check the distance between this color and another - * @link https://php.net/manual/en/imagickpixel.issimilar.php - * @param ImagickPixel $color

    - * The ImagickPixel object to compare this object against. - *

    - * @param float $fuzz

    - * The maximum distance within which to consider these colors as similar. - * The theoretical maximum for this value is the square root of three - * (1.732). - *

    - * @return bool TRUE on success. - * @throws ImagickPixelException on failure - */ - public function isSimilar (ImagickPixel $color, $fuzz) {} - - /** - * (No version information available, might only be in SVN)
    - * Check the distance between this color and another - * @link https://php.net/manual/en/imagickpixel.ispixelsimilar.php - * @param ImagickPixel $color

    - * The ImagickPixel object to compare this object against. - *

    - * @param float $fuzz

    - * The maximum distance within which to consider these colors as similar. - * The theoretical maximum for this value is the square root of three - * (1.732). - *

    - * @return bool TRUE on success. - * @throws ImagickPixelException on failure - */ - public function isPixelSimilar (ImagickPixel $color, $fuzz) {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the color - * @link https://php.net/manual/en/imagickpixel.getcolor.php - * @param int $normalized [optional]

    - * Normalize the color values - *

    - * @return array An array of channel values, each normalized if TRUE is given as param. Throws - * ImagickPixelException on error. - * @throws ImagickPixelException on error. - */ + * @throws ImagickPixelException on failure + */ + #[Pure] + public function getIndex() {} + + /** + * @param int $index + * @throws ImagickPixelException on failure + */ + public function setIndex($index) {} + + /** + * (PECL imagick 2.0.0)
    + * The ImagickPixel constructor + * @link https://php.net/manual/en/imagickpixel.construct.php + * @param string $color [optional]

    + * The optional color string to use as the initial value of this object. + *

    + * @throws ImagickPixelException on failure + */ + public function __construct($color = null) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the color + * @link https://php.net/manual/en/imagickpixel.setcolor.php + * @param string $color

    + * The color definition to use in order to initialise the + * ImagickPixel object. + *

    + * @return bool TRUE if the specified color was set, FALSE otherwise. + * @throws ImagickPixelException on failure + */ + public function setColor($color) {} + + /** + * (PECL imagick 2.0.0)
    + * Sets the normalized value of one of the channels + * @link https://php.net/manual/en/imagickpixel.setcolorvalue.php + * @param int $color

    + * One of the Imagick color constants e.g. \Imagick::COLOR_GREEN or \Imagick::COLOR_ALPHA. + *

    + * @param float $value

    + * The value to set this channel to, ranging from 0 to 1. + *

    + * @return bool TRUE on success. + * @throws ImagickPixelException on failure + */ + public function setColorValue($color, $value) {} + + /** + * (PECL imagick 2.0.0)
    + * Gets the normalized value of the provided color channel + * @link https://php.net/manual/en/imagickpixel.getcolorvalue.php + * @param int $color

    + * The color to get the value of, specified as one of the Imagick color + * constants. This can be one of the RGB colors, CMYK colors, alpha and + * opacity e.g (Imagick::COLOR_BLUE, Imagick::COLOR_MAGENTA). + *

    + * @return float The value of the channel, as a normalized floating-point number, throwing + * ImagickPixelException on error. + * @throws ImagickPixelException on error + */ + #[Pure] + public function getColorValue($color) {} + + /** + * (PECL imagick 2.0.0)
    + * Clears resources associated with this object + * @link https://php.net/manual/en/imagickpixel.clear.php + * @return bool TRUE on success. + * @throws ImagickPixelException on failure + */ + public function clear() {} + + /** + * (PECL imagick 2.0.0)
    + * Deallocates resources associated with this object + * @link https://php.net/manual/en/imagickpixel.destroy.php + * @return bool TRUE on success. + * @throws ImagickPixelException on failure + */ + public function destroy() {} + + /** + * (PECL imagick 2.0.0)
    + * Check the distance between this color and another + * @link https://php.net/manual/en/imagickpixel.issimilar.php + * @param ImagickPixel $color

    + * The ImagickPixel object to compare this object against. + *

    + * @param float $fuzz

    + * The maximum distance within which to consider these colors as similar. + * The theoretical maximum for this value is the square root of three + * (1.732). + *

    + * @return bool TRUE on success. + * @throws ImagickPixelException on failure + */ + public function isSimilar(ImagickPixel $color, $fuzz) {} + + /** + * (No version information available, might only be in SVN)
    + * Check the distance between this color and another + * @link https://php.net/manual/en/imagickpixel.ispixelsimilar.php + * @param ImagickPixel $color

    + * The ImagickPixel object to compare this object against. + *

    + * @param float $fuzz

    + * The maximum distance within which to consider these colors as similar. + * The theoretical maximum for this value is the square root of three + * (1.732). + *

    + * @return bool TRUE on success. + * @throws ImagickPixelException on failure + */ + public function isPixelSimilar(ImagickPixel $color, $fuzz) {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the color + * @link https://php.net/manual/en/imagickpixel.getcolor.php + * @param int $normalized [optional]

    + * Normalize the color values + *

    + * @return array An array of channel values, each normalized if TRUE is given as param. Throws + * ImagickPixelException on error. + * @throws ImagickPixelException on error. + */ #[ArrayShape([ "r" => "int|float", "g" => "int|float", "b" => "int|float", "a" => "int|float" ])] - #[Pure] - public function getColor ($normalized = 0) {} - - /** - * (PECL imagick 2.1.0)
    - * Returns the color as a string - * @link https://php.net/manual/en/imagickpixel.getcolorasstring.php - * @return string the color of the ImagickPixel object as a string. - * @throws ImagickPixelException on failure - */ - #[Pure] - public function getColorAsString () {} - - /** - * (PECL imagick 2.0.0)
    - * Returns the color count associated with this color - * @link https://php.net/manual/en/imagickpixel.getcolorcount.php - * @return int the color count as an integer on success, throws - * ImagickPixelException on failure. - * @throws ImagickPixelException on failure. - */ - #[Pure] - public function getColorCount () {} - - /** - * @param int $colorCount - * @throws ImagickPixelException on failure - */ - public function setColorCount ($colorCount) {} - - - /** - * Returns true if the distance between two colors is less than the specified distance. The fuzz value should be in the range 0-QuantumRange.
    - * The maximum value represents the longest possible distance in the colorspace. e.g. from RGB(0, 0, 0) to RGB(255, 255, 255) for the RGB colorspace - * @link https://php.net/manual/en/imagickpixel.ispixelsimilarquantum.php - * @param string $color - * @param string $fuzz - * @return bool - * @throws ImagickPixelException on failure - * @since 3.3.0 - */ - public function isPixelSimilarQuantum($color, $fuzz) { } - - /** - * Returns the color of the pixel in an array as Quantum values. If ImageMagick was compiled as HDRI these will be floats, otherwise they will be integers. - * @link https://php.net/manual/en/imagickpixel.getcolorquantum.php - * @return mixed The quantum value of the color element. Float if ImageMagick was compiled with HDRI, otherwise an int. - * @throws ImagickPixelException on failure - * @since 3.3.0 - */ - #[Pure] - public function getColorQuantum() { } - - /** - * Sets the color count associated with this color from another ImagickPixel object. - * - * @param ImagickPixel $srcPixel - * @return bool - * @throws ImagickPixelException on failure - * @since 3.4.1 - */ - public function setColorFromPixel(ImagickPixel $srcPixel) { } + #[Pure] + public function getColor($normalized = 0) {} + + /** + * (PECL imagick 2.1.0)
    + * Returns the color as a string + * @link https://php.net/manual/en/imagickpixel.getcolorasstring.php + * @return string the color of the ImagickPixel object as a string. + * @throws ImagickPixelException on failure + */ + #[Pure] + public function getColorAsString() {} + + /** + * (PECL imagick 2.0.0)
    + * Returns the color count associated with this color + * @link https://php.net/manual/en/imagickpixel.getcolorcount.php + * @return int the color count as an integer on success, throws + * ImagickPixelException on failure. + * @throws ImagickPixelException on failure. + */ + #[Pure] + public function getColorCount() {} + + /** + * @param int $colorCount + * @throws ImagickPixelException on failure + */ + public function setColorCount($colorCount) {} + + /** + * Returns true if the distance between two colors is less than the specified distance. The fuzz value should be in the range 0-QuantumRange.
    + * The maximum value represents the longest possible distance in the colorspace. e.g. from RGB(0, 0, 0) to RGB(255, 255, 255) for the RGB colorspace + * @link https://php.net/manual/en/imagickpixel.ispixelsimilarquantum.php + * @param string $color + * @param string $fuzz + * @return bool + * @throws ImagickPixelException on failure + * @since 3.3.0 + */ + public function isPixelSimilarQuantum($color, $fuzz) {} + + /** + * Returns the color of the pixel in an array as Quantum values. If ImageMagick was compiled as HDRI these will be floats, otherwise they will be integers. + * @link https://php.net/manual/en/imagickpixel.getcolorquantum.php + * @return mixed The quantum value of the color element. Float if ImageMagick was compiled with HDRI, otherwise an int. + * @throws ImagickPixelException on failure + * @since 3.3.0 + */ + #[Pure] + public function getColorQuantum() {} + + /** + * Sets the color count associated with this color from another ImagickPixel object. + * + * @param ImagickPixel $srcPixel + * @return bool + * @throws ImagickPixelException on failure + * @since 3.4.1 + */ + public function setColorFromPixel(ImagickPixel $srcPixel) {} } // End of imagick v.3.2.0RC1 @@ -7323,78 +7317,79 @@ public function setColorFromPixel(ImagickPixel $srcPixel) { } /** * @link https://php.net/manual/en/class.imagickkernel.php */ -class ImagickKernel { - /** - * Attach another kernel to this kernel to allow them to both be applied in a single morphology or filter function. Returns the new combined kernel. - * @link https://php.net/manual/en/imagickkernel.addkernel.php - * @param ImagickKernel $imagickKernel - * @return void - * @throws ImagickKernelException on error - * @since 3.3.0 - */ - public function addKernel(ImagickKernel $imagickKernel) { } - - /** - * Adds a given amount of the 'Unity' Convolution Kernel to the given pre-scaled and normalized Kernel. This in effect adds that amount of the original image into the resulting convolution kernel. The resulting effect is to convert the defined kernels into blended soft-blurs, unsharp kernels or into sharpening kernels. - * @link https://php.net/manual/en/imagickkernel.addunitykernel.php - * @return void - * @throws ImagickKernelException on error - * @since 3.3.0 - */ - public function addUnityKernel() { } - - /** - * Create a kernel from a builtin in kernel. See https://www.imagemagick.org/Usage/morphology/#kernel for examples.
    - * Currently the 'rotation' symbols are not supported. Example: $diamondKernel = ImagickKernel::fromBuiltIn(\Imagick::KERNEL_DIAMOND, "2"); - * @link https://php.net/manual/en/imagickkernel.frombuiltin.php - * @param string $kernelType The type of kernel to build e.g. \Imagick::KERNEL_DIAMOND - * @param string $kernelString A string that describes the parameters e.g. "4,2.5" - * @return void - * @since 3.3.0 - */ - public static function fromBuiltin($kernelType, $kernelString) { } - - /** - * Create a kernel from a builtin in kernel. See https://www.imagemagick.org/Usage/morphology/#kernel for examples.
    - * Currently the 'rotation' symbols are not supported. Example: $diamondKernel = ImagickKernel::fromBuiltIn(\Imagick::KERNEL_DIAMOND, "2"); - * @link https://php.net/manual/en/imagickkernel.frombuiltin.php - * @see https://www.imagemagick.org/Usage/morphology/#kernel - * @param array $matrix A matrix (i.e. 2d array) of values that define the kernel. Each element should be either a float value, or FALSE if that element shouldn't be used by the kernel. - * @param array $origin [optional] Which element of the kernel should be used as the origin pixel. e.g. For a 3x3 matrix specifying the origin as [2, 2] would specify that the bottom right element should be the origin pixel. - * @return ImagickKernel - * @throws ImagickKernelException on error - * @since 3.3.0 - */ - public static function fromMatrix($matrix, $origin) { } - - /** - * Get the 2d matrix of values used in this kernel. The elements are either float for elements that are used or 'false' if the element should be skipped. - * @link https://php.net/manual/en/imagickkernel.getmatrix.php - * @return array A matrix (2d array) of the values that represent the kernel. - * @throws ImagickKernelException on error - * @since 3.3.0 - */ - #[Pure] - public function getMatrix() { } - - /** - * ScaleKernelInfo() scales the given kernel list by the given amount, with or without normalization of the sum of the kernel values (as per given flags).
    - * The exact behaviour of this function depends on the normalization type being used please see https://www.imagemagick.org/api/morphology.php#ScaleKernelInfo for details.
    - * Flag should be one of Imagick::NORMALIZE_KERNEL_VALUE, Imagick::NORMALIZE_KERNEL_CORRELATE, Imagick::NORMALIZE_KERNEL_PERCENT or not set. - * @link https://php.net/manual/en/imagickkernel.scale.php - * @see https://www.imagemagick.org/api/morphology.php#ScaleKernelInfo - * @return void - * @throws ImagickKernelException on error - * @since 3.3.0 - */ - public function scale() { } - - /** - * Separates a linked set of kernels and returns an array of ImagickKernels. - * @link https://php.net/manual/en/imagickkernel.separate.php - * @return void - * @throws ImagickKernelException on error - * @since 3.3.0 - */ - public function seperate() { } +class ImagickKernel +{ + /** + * Attach another kernel to this kernel to allow them to both be applied in a single morphology or filter function. Returns the new combined kernel. + * @link https://php.net/manual/en/imagickkernel.addkernel.php + * @param ImagickKernel $imagickKernel + * @return void + * @throws ImagickKernelException on error + * @since 3.3.0 + */ + public function addKernel(ImagickKernel $imagickKernel) {} + + /** + * Adds a given amount of the 'Unity' Convolution Kernel to the given pre-scaled and normalized Kernel. This in effect adds that amount of the original image into the resulting convolution kernel. The resulting effect is to convert the defined kernels into blended soft-blurs, unsharp kernels or into sharpening kernels. + * @link https://php.net/manual/en/imagickkernel.addunitykernel.php + * @return void + * @throws ImagickKernelException on error + * @since 3.3.0 + */ + public function addUnityKernel() {} + + /** + * Create a kernel from a builtin in kernel. See https://www.imagemagick.org/Usage/morphology/#kernel for examples.
    + * Currently the 'rotation' symbols are not supported. Example: $diamondKernel = ImagickKernel::fromBuiltIn(\Imagick::KERNEL_DIAMOND, "2"); + * @link https://php.net/manual/en/imagickkernel.frombuiltin.php + * @param string $kernelType The type of kernel to build e.g. \Imagick::KERNEL_DIAMOND + * @param string $kernelString A string that describes the parameters e.g. "4,2.5" + * @return void + * @since 3.3.0 + */ + public static function fromBuiltin($kernelType, $kernelString) {} + + /** + * Create a kernel from a builtin in kernel. See https://www.imagemagick.org/Usage/morphology/#kernel for examples.
    + * Currently the 'rotation' symbols are not supported. Example: $diamondKernel = ImagickKernel::fromBuiltIn(\Imagick::KERNEL_DIAMOND, "2"); + * @link https://php.net/manual/en/imagickkernel.frombuiltin.php + * @see https://www.imagemagick.org/Usage/morphology/#kernel + * @param array $matrix A matrix (i.e. 2d array) of values that define the kernel. Each element should be either a float value, or FALSE if that element shouldn't be used by the kernel. + * @param array $origin [optional] Which element of the kernel should be used as the origin pixel. e.g. For a 3x3 matrix specifying the origin as [2, 2] would specify that the bottom right element should be the origin pixel. + * @return ImagickKernel + * @throws ImagickKernelException on error + * @since 3.3.0 + */ + public static function fromMatrix($matrix, $origin) {} + + /** + * Get the 2d matrix of values used in this kernel. The elements are either float for elements that are used or 'false' if the element should be skipped. + * @link https://php.net/manual/en/imagickkernel.getmatrix.php + * @return array A matrix (2d array) of the values that represent the kernel. + * @throws ImagickKernelException on error + * @since 3.3.0 + */ + #[Pure] + public function getMatrix() {} + + /** + * ScaleKernelInfo() scales the given kernel list by the given amount, with or without normalization of the sum of the kernel values (as per given flags).
    + * The exact behaviour of this function depends on the normalization type being used please see https://www.imagemagick.org/api/morphology.php#ScaleKernelInfo for details.
    + * Flag should be one of Imagick::NORMALIZE_KERNEL_VALUE, Imagick::NORMALIZE_KERNEL_CORRELATE, Imagick::NORMALIZE_KERNEL_PERCENT or not set. + * @link https://php.net/manual/en/imagickkernel.scale.php + * @see https://www.imagemagick.org/api/morphology.php#ScaleKernelInfo + * @return void + * @throws ImagickKernelException on error + * @since 3.3.0 + */ + public function scale() {} + + /** + * Separates a linked set of kernels and returns an array of ImagickKernels. + * @link https://php.net/manual/en/imagickkernel.separate.php + * @return void + * @throws ImagickKernelException on error + * @since 3.3.0 + */ + public function seperate() {} } diff --git a/imap/imap.php b/imap/imap.php index ce86e3292..ac27c77ea 100644 --- a/imap/imap.php +++ b/imap/imap.php @@ -47,7 +47,7 @@ * DISABLE_AUTHENTICATOR - Disable authentication properties

    * @return resource|false an IMAP stream on success or FALSE on error. */ -function imap_open ($mailbox, $username, $password, $options = 0, $n_retries = 0, ?array $params = null) {} +function imap_open($mailbox, $username, $password, $options = 0, $n_retries = 0, ?array $params = null) {} /** * Reopen IMAP stream to new mailbox @@ -66,7 +66,7 @@ function imap_open ($mailbox, $username, $password, $options = 0, $n_retries = 0 *

    * @return bool TRUE if the stream is reopened, FALSE otherwise. */ -function imap_reopen ($imap_stream, $mailbox, $options = 0, $n_retries = 0) {} +function imap_reopen($imap_stream, $mailbox, $options = 0, $n_retries = 0) {} /** * Close an IMAP stream @@ -80,7 +80,7 @@ function imap_reopen ($imap_stream, $mailbox, $options = 0, $n_retries = 0) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_close ($imap_stream, $flag = 0) {} +function imap_close($imap_stream, $flag = 0) {} /** * Gets the number of messages in the current mailbox @@ -88,7 +88,7 @@ function imap_close ($imap_stream, $flag = 0) {} * @param resource $imap_stream * @return int Return the number of messages in the current mailbox, as an integer. */ -function imap_num_msg ($imap_stream) {} +function imap_num_msg($imap_stream) {} /** * Gets the number of recent messages in current mailbox @@ -97,7 +97,7 @@ function imap_num_msg ($imap_stream) {} * @return int the number of recent messages in the current mailbox, as an * integer. */ -function imap_num_recent ($imap_stream) {} +function imap_num_recent($imap_stream) {} /** * Returns headers for all messages in a mailbox @@ -106,7 +106,7 @@ function imap_num_recent ($imap_stream) {} * @return array|false an array of string formatted with header info. One * element per mail message. */ -function imap_headers ($imap_stream) {} +function imap_headers($imap_stream) {} /** * Read the header of the message @@ -157,7 +157,7 @@ function imap_headers ($imap_stream) {} * */ #[PhpStormStubsElementAvailable(to: '7.4')] -function imap_headerinfo ($stream_id, $msg_no, $from_length = 0, $subject_length = 0, $default_host = null) {} +function imap_headerinfo($stream_id, $msg_no, $from_length = 0, $subject_length = 0, $default_host = null) {} /** * Read the header of the message @@ -207,7 +207,7 @@ function imap_headerinfo ($stream_id, $msg_no, $from_length = 0, $subject_length * */ #[PhpStormStubsElementAvailable('8.0')] -function imap_headerinfo ($stream_id, $msg_no, $from_length = 0, $subject_length = 0) {} +function imap_headerinfo($stream_id, $msg_no, $from_length = 0, $subject_length = 0) {} /** * Parse mail headers from a string @@ -222,7 +222,7 @@ function imap_headerinfo ($stream_id, $msg_no, $from_length = 0, $subject_length * imap_header, except for the flags and other * properties that come from the IMAP server. */ -function imap_rfc822_parse_headers ($headers, $defaulthost = "UNKNOWN") {} +function imap_rfc822_parse_headers($headers, $defaulthost = "UNKNOWN") {} /** * Returns a properly formatted email address given the mailbox, host, and personal info @@ -239,7 +239,7 @@ function imap_rfc822_parse_headers ($headers, $defaulthost = "UNKNOWN") {} *

    * @return string a string properly formatted email address as defined in RFC2822. */ -function imap_rfc822_write_address ($mailbox, $host, $personal) {} +function imap_rfc822_write_address($mailbox, $host, $personal) {} /** * Parses an address string @@ -258,7 +258,7 @@ function imap_rfc822_write_address ($mailbox, $host, $personal) {} * adl - at domain source route *

    */ -function imap_rfc822_parse_adrlist ($address, $default_host) {} +function imap_rfc822_parse_adrlist($address, $default_host) {} /** * Read the message body @@ -273,7 +273,7 @@ function imap_rfc822_parse_adrlist ($address, $default_host) {} * FT_UID - The msg_number is a UID

    * @return string the body of the specified message, as a string. */ -function imap_body ($imap_stream, $msg_number, $options = 0) {} +function imap_body($imap_stream, $msg_number, $options = 0) {} /** * Read the structure of a specified body section of a specific message @@ -289,7 +289,7 @@ function imap_body ($imap_stream, $msg_number, $options = 0) {} * of the object structure and properties see * imap_fetchstructure. */ -function imap_bodystruct ($imap_stream, $msg_number, $section) {} +function imap_bodystruct($imap_stream, $msg_number, $section) {} /** * Fetch a particular section of the body of the message @@ -308,7 +308,7 @@ function imap_bodystruct ($imap_stream, $msg_number, $section) {} * @return string a particular section of the body of the specified messages as a * text string. */ -function imap_fetchbody ($imap_stream, $msg_number, $section, $options = 0) {} +function imap_fetchbody($imap_stream, $msg_number, $section, $options = 0) {} /** * Fetch MIME headers for a particular section of the message @@ -328,7 +328,7 @@ function imap_fetchbody ($imap_stream, $msg_number, $section, $options = 0) {} * text string. * @since 5.3.6 */ -function imap_fetchmime ($imap_stream, $msg_number, $section, $options = 0) {} +function imap_fetchmime($imap_stream, $msg_number, $section, $options = 0) {} /** * Save a specific body section to a file @@ -351,7 +351,7 @@ function imap_fetchmime ($imap_stream, $msg_number, $section, $options = 0) {} * @return bool TRUE on success or FALSE on failure. * @since 5.1.3 */ -function imap_savebody ($imap_stream, $file, $msg_number, $part_number = "", $options = 0) {} +function imap_savebody($imap_stream, $file, $msg_number, $part_number = "", $options = 0) {} /** * Returns header for a message @@ -366,7 +366,7 @@ function imap_savebody ($imap_stream, $file, $msg_number, $part_number = "", $op * argument is a UID

    * @return string the header of the specified message as a text string. */ -function imap_fetchheader ($imap_stream, $msg_number, $options = 0) {} +function imap_fetchheader($imap_stream, $msg_number, $options = 0) {} /** * Read the structure of a particular message @@ -490,7 +490,7 @@ function imap_fetchheader ($imap_stream, $msg_number, $options = 0) {} * 5OTHER * */ -function imap_fetchstructure ($imap_stream, $msg_number, $options = 0) {} +function imap_fetchstructure($imap_stream, $msg_number, $options = 0) {} /** * Clears IMAP cache @@ -505,7 +505,7 @@ function imap_fetchstructure ($imap_stream, $msg_number, $options = 0) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_gc ($imap_stream, $caches) {} +function imap_gc($imap_stream, $caches) {} /** * Delete all messages marked for deletion @@ -513,7 +513,7 @@ function imap_gc ($imap_stream, $caches) {} * @param resource $imap_stream * @return bool TRUE. */ -function imap_expunge ($imap_stream) {} +function imap_expunge($imap_stream) {} /** * Mark a message for deletion from current mailbox @@ -529,7 +529,7 @@ function imap_expunge ($imap_stream) {} *

    * @return bool TRUE. */ -function imap_delete ($imap_stream, $msg_number, $options = 0) {} +function imap_delete($imap_stream, $msg_number, $options = 0) {} /** * Unmark the message which is marked deleted @@ -541,7 +541,7 @@ function imap_delete ($imap_stream, $msg_number, $options = 0) {} * @param int $flags [optional] * @return bool TRUE on success or FALSE on failure. */ -function imap_undelete ($imap_stream, $msg_number, $flags = 0) {} +function imap_undelete($imap_stream, $msg_number, $flags = 0) {} /** * Check current mailbox @@ -558,7 +558,7 @@ function imap_undelete ($imap_stream, $msg_number, $flags = 0) {} *

    * Returns FALSE on failure. */ -function imap_check ($imap_stream) {} +function imap_check($imap_stream) {} /** * Returns the list of mailboxes that matches the given text @@ -586,7 +586,7 @@ function imap_check ($imap_stream) {} * @return array|false an array containing the names of the mailboxes that have * content in the text of the mailbox. */ -function imap_listscan ($imap_stream, $ref, $pattern, $content) {} +function imap_listscan($imap_stream, $ref, $pattern, $content) {} /** * Copy specified messages to a mailbox @@ -605,7 +605,7 @@ function imap_listscan ($imap_stream, $ref, $pattern, $content) {} * CP_UID - the sequence numbers contain UIDS

    * @return bool TRUE on success or FALSE on failure. */ -function imap_mail_copy ($imap_stream, $msglist, $mailbox, $options = 0) {} +function imap_mail_copy($imap_stream, $msglist, $mailbox, $options = 0) {} /** * Move specified messages to a mailbox @@ -624,7 +624,7 @@ function imap_mail_copy ($imap_stream, $msglist, $mailbox, $options = 0) {} * CP_UID - the sequence numbers contain UIDS

    * @return bool TRUE on success or FALSE on failure. */ -function imap_mail_move ($imap_stream, $msglist, $mailbox, $options = 0) {} +function imap_mail_move($imap_stream, $msglist, $mailbox, $options = 0) {} /** * Create a MIME message based on given envelope and body sections @@ -646,7 +646,7 @@ function imap_mail_move ($imap_stream, $msglist, $mailbox, $options = 0) {} *

    * @return string the MIME message. */ -function imap_mail_compose (array $envelope, array $body) {} +function imap_mail_compose(array $envelope, array $body) {} /** * Create a new mailbox @@ -659,7 +659,7 @@ function imap_mail_compose (array $envelope, array $body) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_createmailbox ($imap_stream, $mailbox) {} +function imap_createmailbox($imap_stream, $mailbox) {} /** * Rename an old mailbox to new mailbox @@ -675,7 +675,7 @@ function imap_createmailbox ($imap_stream, $mailbox) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_renamemailbox ($imap_stream, $old_mbox, $new_mbox) {} +function imap_renamemailbox($imap_stream, $old_mbox, $new_mbox) {} /** * Delete a mailbox @@ -687,7 +687,7 @@ function imap_renamemailbox ($imap_stream, $old_mbox, $new_mbox) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_deletemailbox ($imap_stream, $mailbox) {} +function imap_deletemailbox($imap_stream, $mailbox) {} /** * Subscribe to a mailbox @@ -699,7 +699,7 @@ function imap_deletemailbox ($imap_stream, $mailbox) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_subscribe ($imap_stream, $mailbox) {} +function imap_subscribe($imap_stream, $mailbox) {} /** * Unsubscribe from a mailbox @@ -711,7 +711,7 @@ function imap_subscribe ($imap_stream, $mailbox) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_unsubscribe ($imap_stream, $mailbox) {} +function imap_unsubscribe($imap_stream, $mailbox) {} /** * Append a string message to a specified mailbox @@ -738,7 +738,7 @@ function imap_unsubscribe ($imap_stream, $mailbox) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_append ($imap_stream, $mailbox, $message, $options = null, $internal_date = null) {} +function imap_append($imap_stream, $mailbox, $message, $options = null, $internal_date = null) {} /** * Check if the IMAP stream is still active @@ -746,7 +746,7 @@ function imap_append ($imap_stream, $mailbox, $message, $options = null, $intern * @param resource $imap_stream * @return bool TRUE if the stream is still alive, FALSE otherwise. */ -function imap_ping ($imap_stream) {} +function imap_ping($imap_stream) {} /** * Decode BASE64 encoded text @@ -756,7 +756,7 @@ function imap_ping ($imap_stream) {} *

    * @return string the decoded message as a string. */ -function imap_base64 ($text) {} +function imap_base64($text) {} /** * Convert a quoted-printable string to an 8 bit string @@ -766,7 +766,7 @@ function imap_base64 ($text) {} *

    * @return string an 8 bits string. */ -function imap_qprint ($string) {} +function imap_qprint($string) {} /** * Convert an 8bit string to a quoted-printable string @@ -776,7 +776,7 @@ function imap_qprint ($string) {} *

    * @return string a quoted-printable string. */ -function imap_8bit ($string) {} +function imap_8bit($string) {} /** * Convert an 8bit string to a base64 string @@ -786,7 +786,7 @@ function imap_8bit ($string) {} *

    * @return string a base64 encoded string. */ -function imap_binary ($string) {} +function imap_binary($string) {} /** * Converts MIME-encoded text to UTF-8 @@ -797,7 +797,7 @@ function imap_binary ($string) {} *

    * @return string an UTF-8 encoded string. */ -function imap_utf8 ($mime_encoded_text) {} +function imap_utf8($mime_encoded_text) {} /** * Returns status information on a mailbox @@ -820,13 +820,13 @@ function imap_utf8 ($mime_encoded_text) {} * flags is also set, which contains a bitmask which can * be checked against any of the above constants.

    */ -function imap_status ($imap_stream, $mailbox, $options) {} +function imap_status($imap_stream, $mailbox, $options) {} /** * @param $stream_id * @param $options */ -function imap_status_current ($stream_id, $options) {} +function imap_status_current($stream_id, $options) {} /** * Get information about the current mailbox @@ -872,7 +872,7 @@ function imap_status_current ($stream_id, $options) {} *

    * Returns FALSE on failure. */ -function imap_mailboxmsginfo ($imap_stream) {} +function imap_mailboxmsginfo($imap_stream) {} /** * Sets flags on messages @@ -895,7 +895,7 @@ function imap_mailboxmsginfo ($imap_stream) {} * instead of sequence numbers

    * @return bool TRUE on success or FALSE on failure. */ -function imap_setflag_full ($imap_stream, $sequence, $flag, $options = NIL) {} +function imap_setflag_full($imap_stream, $sequence, $flag, $options = NIL) {} /** * Clears flags on messages @@ -917,7 +917,7 @@ function imap_setflag_full ($imap_stream, $sequence, $flag, $options = NIL) {} * instead of sequence numbers

    * @return bool TRUE on success or FALSE on failure. */ -function imap_clearflag_full ($imap_stream, $sequence, $flag, $options = 0) {} +function imap_clearflag_full($imap_stream, $sequence, $flag, $options = 0) {} /** * Gets and sort messages @@ -938,7 +938,7 @@ function imap_clearflag_full ($imap_stream, $sequence, $flag, $options = 0) {} * @return array an array of message numbers sorted by the given * parameters. */ -function imap_sort ($imap_stream, $criteria, $reverse, $options = 0, $search_criteria = null, $charset = 'NIL') {} +function imap_sort($imap_stream, $criteria, $reverse, $options = 0, $search_criteria = null, $charset = 'NIL') {} /** * This function returns the UID for the given message sequence number @@ -949,7 +949,7 @@ function imap_sort ($imap_stream, $criteria, $reverse, $options = 0, $search_cri *

    * @return int The UID of the given message. */ -function imap_uid ($imap_stream, $msg_number) {} +function imap_uid($imap_stream, $msg_number) {} /** * Gets the message sequence number for the given UID @@ -961,7 +961,7 @@ function imap_uid ($imap_stream, $msg_number) {} * @return int the message sequence number for the given * uid. */ -function imap_msgno ($imap_stream, $uid) {} +function imap_msgno($imap_stream, $uid) {} /** * Read the list of mailboxes @@ -985,7 +985,7 @@ function imap_msgno ($imap_stream, $uid) {} * mailboxes; '~/mail/%' on UW_IMAPD will return every mailbox in the ~/mail directory, but none in subfolders of that directory.

    * @return array|false an array containing the names of the mailboxes. */ -function imap_list ($imap_stream, $ref, $pattern) {} +function imap_list($imap_stream, $ref, $pattern) {} /** * List all the subscribed mailboxes @@ -1009,7 +1009,7 @@ function imap_list ($imap_stream, $ref, $pattern) {} * mailboxes; '~/mail/%' on UW_IMAPD will return every mailbox in the ~/mail directory, but none in subfolders of that directory.

    * @return array an array of all the subscribed mailboxes. */ -function imap_lsub ($imap_stream, $ref, $pattern) {} +function imap_lsub($imap_stream, $ref, $pattern) {} /** * Read an overview of the information in the headers of the given message @@ -1045,7 +1045,7 @@ function imap_lsub ($imap_stream, $ref, $pattern) {} * seen - this message is flagged as already read * draft - this message is flagged as being a draft */ -function imap_fetch_overview ($imap_stream, $sequence, $options = 0) {} +function imap_fetch_overview($imap_stream, $sequence, $options = 0) {} /** * Returns all IMAP alert messages that have occurred @@ -1053,7 +1053,7 @@ function imap_fetch_overview ($imap_stream, $sequence, $options = 0) {} * @return array|false an array of all of the IMAP alert messages generated or FALSE if * no alert messages are available. */ -function imap_alerts () {} +function imap_alerts() {} /** * Returns all of the IMAP errors that have occurred @@ -1063,7 +1063,7 @@ function imap_alerts () {} * or the beginning of the page. Returns FALSE if no error messages are * available. */ -function imap_errors () {} +function imap_errors() {} /** * Gets the last IMAP error that occurred during this page request @@ -1071,7 +1071,7 @@ function imap_errors () {} * @return string|false the full text of the last IMAP error message that occurred on the * current page. Returns FALSE if no error messages are available. */ -function imap_last_error () {} +function imap_last_error() {} /** * This function returns an array of messages matching the given search criteria @@ -1095,7 +1095,7 @@ function imap_last_error () {} * criteria or no messages have been found. *

    */ -function imap_search ($imap_stream, $criteria, $options = SE_FREE, $charset = NIL) {} +function imap_search($imap_stream, $criteria, $options = SE_FREE, $charset = NIL) {} /** * Decodes a modified UTF-7 encoded string @@ -1110,7 +1110,7 @@ function imap_search ($imap_stream, $criteria, $options = SE_FREE, $charset = NI * or text contains a character that is not part of * ISO-8859-1 character set. */ -function imap_utf7_decode ($text) {} +function imap_utf7_decode($text) {} /** * Converts ISO-8859-1 string to modified UTF-7 text @@ -1122,7 +1122,7 @@ function imap_utf7_decode ($text) {} * encoding as defined in RFC 2060, * section 5.1.3 (original UTF-7 was defined in RFC1642). */ -function imap_utf7_encode ($data) {} +function imap_utf7_encode($data) {} /** * Decode MIME header elements @@ -1139,7 +1139,7 @@ function imap_utf7_encode ($data) {} * plain US-ASCII, the charset property of that element is * set to default. */ -function imap_mime_header_decode ($text) {} +function imap_mime_header_decode($text) {} /** * Returns a tree of threaded message @@ -1163,7 +1163,7 @@ function imap_mime_header_decode ($text) {} * $thread["XX.branch"] *

    */ -function imap_thread ($imap_stream, $options = SE_FREE) {} +function imap_thread($imap_stream, $options = SE_FREE) {} /** * Set or fetch imap timeout @@ -1186,7 +1186,7 @@ function imap_thread ($imap_stream, $options = SE_FREE) {} * the current timeout value of timeout_type is * returned as an integer. */ -function imap_timeout ($timeout_type, $timeout = -1) {} +function imap_timeout($timeout_type, $timeout = -1) {} /** * Retrieve the quota level settings, and usage statics per mailbox @@ -1214,7 +1214,7 @@ function imap_timeout ($timeout_type, $timeout = -1) {} * For backwards compatibility reasons, the original access methods are * still available for use, although it is suggested to update. */ -function imap_get_quota ($imap_stream, $quota_root) {} +function imap_get_quota($imap_stream, $quota_root) {} /** * Retrieve the quota settings per user @@ -1233,7 +1233,7 @@ function imap_get_quota ($imap_stream, $quota_root) {} * array of information about the connection upon an un-parsable response * from the server. */ -function imap_get_quotaroot ($imap_stream, $quota_root) {} +function imap_get_quotaroot($imap_stream, $quota_root) {} /** * Sets a quota for a given mailbox @@ -1248,7 +1248,7 @@ function imap_get_quotaroot ($imap_stream, $quota_root) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_set_quota ($imap_stream, $quota_root, $quota_limit) {} +function imap_set_quota($imap_stream, $quota_root, $quota_limit) {} /** * Sets the ACL for a given mailbox @@ -1267,7 +1267,7 @@ function imap_set_quota ($imap_stream, $quota_root, $quota_limit) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_setacl ($imap_stream, $mailbox, $id, $rights) {} +function imap_setacl($imap_stream, $mailbox, $id, $rights) {} /** * Gets the ACL for a given mailbox @@ -1279,13 +1279,13 @@ function imap_setacl ($imap_stream, $mailbox, $id, $rights) {} *

    * @return array an associative array of "folder" => "acl" pairs. */ -function imap_getacl ($imap_stream, $mailbox) {} +function imap_getacl($imap_stream, $mailbox) {} /** * @param $stream_id * @param $mailbox */ -function imap_myrights ($stream_id, $mailbox) {} +function imap_myrights($stream_id, $mailbox) {} /** * @param $stream_id @@ -1294,7 +1294,7 @@ function imap_myrights ($stream_id, $mailbox) {} * @param $attr * @param $value */ -function imap_setannotation ($stream_id, $mailbox, $entry, $attr, $value) {} +function imap_setannotation($stream_id, $mailbox, $entry, $attr, $value) {} /** * @param $stream_id @@ -1302,7 +1302,7 @@ function imap_setannotation ($stream_id, $mailbox, $entry, $attr, $value) {} * @param $entry * @param $attr */ -function imap_getannotation ($stream_id, $mailbox, $entry, $attr) {} +function imap_getannotation($stream_id, $mailbox, $entry, $attr) {} /** * Send an email message @@ -1330,7 +1330,7 @@ function imap_getannotation ($stream_id, $mailbox, $entry, $attr) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function imap_mail ($to, $subject, $message, $additional_headers = null, $cc = null, $bcc = null, $rpath = null) {} +function imap_mail($to, $subject, $message, $additional_headers = null, $cc = null, $bcc = null, $rpath = null) {} /** * Alias of imap_headerinfo @@ -1380,7 +1380,7 @@ function imap_mail ($to, $subject, $message, $additional_headers = null, $cc = n *
    fetchsubject
    subject line formatted to fit subjectlength characters
    * */ -function imap_header ($stream_id, $msg_no, $from_length = 0, $subject_length = 0, $default_host = null) {} +function imap_header($stream_id, $msg_no, $from_length = 0, $subject_length = 0, $default_host = null) {} /** * Alias of imap_list @@ -1390,7 +1390,7 @@ function imap_header ($stream_id, $msg_no, $from_length = 0, $subject_length = 0 * @param string $pattern * @return array|false */ -function imap_listmailbox ($stream_id, $ref, $pattern) {} +function imap_listmailbox($stream_id, $ref, $pattern) {} /** * Read the list of mailboxes, returning detailed information on each one @@ -1439,7 +1439,7 @@ function imap_listmailbox ($stream_id, $ref, $pattern) {} * provided, you can assume the IMAP server supports this feature for this mailbox. *

    */ -function imap_getmailboxes ($imap_stream, $ref, $pattern) {} +function imap_getmailboxes($imap_stream, $ref, $pattern) {} /** * Alias of imap_listscan @@ -1449,7 +1449,7 @@ function imap_getmailboxes ($imap_stream, $ref, $pattern) {} * @param $pattern * @param $content */ -function imap_scanmailbox ($stream_id, $ref, $pattern, $content) {} +function imap_scanmailbox($stream_id, $ref, $pattern, $content) {} /** * Alias of imap_lsub @@ -1459,7 +1459,7 @@ function imap_scanmailbox ($stream_id, $ref, $pattern, $content) {} * @param string $pattern * @return array|false */ -function imap_listsubscribed ($stream_id, $ref, $pattern) {} +function imap_listsubscribed($stream_id, $ref, $pattern) {} /** * List all the subscribed mailboxes @@ -1497,7 +1497,7 @@ function imap_listsubscribed ($stream_id, $ref, $pattern) {} * LATT_UNMARKED - This mailbox is not marked. * Only used by UW-IMAPD. */ -function imap_getsubscribed ($imap_stream, $ref, $pattern) {} +function imap_getsubscribed($imap_stream, $ref, $pattern) {} /** * (PHP 4, PHP 5)
    @@ -1510,7 +1510,7 @@ function imap_getsubscribed ($imap_stream, $ref, $pattern) {} *
  • FT_INTERNAL - The return string is in internal format, will not canonicalize to CRLF.

    * @return string body of the specified message */ -function imap_fetchtext ($stream, $msg_no, $options = 0) {} +function imap_fetchtext($stream, $msg_no, $options = 0) {} /** * Alias of imap_listscan @@ -1520,7 +1520,7 @@ function imap_fetchtext ($stream, $msg_no, $options = 0) {} * @param $pattern * @param $content */ -function imap_scan ($stream_id, $ref, $pattern, $content) {} +function imap_scan($stream_id, $ref, $pattern, $content) {} /** * Alias of imap_createmailbox @@ -1528,7 +1528,7 @@ function imap_scan ($stream_id, $ref, $pattern, $content) {} * @param $stream_id * @param $mailbox */ -function imap_create ($stream_id, $mailbox) {} +function imap_create($stream_id, $mailbox) {} /** * Alias of imap_renamemailbox @@ -1537,7 +1537,7 @@ function imap_create ($stream_id, $mailbox) {} * @param $old_name * @param $new_name */ -function imap_rename ($stream_id, $old_name, $new_name) {} +function imap_rename($stream_id, $old_name, $new_name) {} /** * Decode a modified UTF-7 string to UTF-8 @@ -1559,215 +1559,215 @@ function imap_mutf7_to_utf8($in) {} */ function imap_utf8_to_mutf7($in) {} -define ('NIL', 0); -define ('IMAP_OPENTIMEOUT', 1); -define ('IMAP_READTIMEOUT', 2); -define ('IMAP_WRITETIMEOUT', 3); -define ('IMAP_CLOSETIMEOUT', 4); -define ('OP_DEBUG', 1); +define('NIL', 0); +define('IMAP_OPENTIMEOUT', 1); +define('IMAP_READTIMEOUT', 2); +define('IMAP_WRITETIMEOUT', 3); +define('IMAP_CLOSETIMEOUT', 4); +define('OP_DEBUG', 1); /** * Open mailbox read-only * @link https://php.net/manual/en/imap.constants.php */ -define ('OP_READONLY', 2); +define('OP_READONLY', 2); /** * Don't use or update a .newsrc for news * (NNTP only) * @link https://php.net/manual/en/imap.constants.php */ -define ('OP_ANONYMOUS', 4); -define ('OP_SHORTCACHE', 8); -define ('OP_SILENT', 16); -define ('OP_PROTOTYPE', 32); +define('OP_ANONYMOUS', 4); +define('OP_SHORTCACHE', 8); +define('OP_SILENT', 16); +define('OP_PROTOTYPE', 32); /** * For IMAP and NNTP * names, open a connection but don't open a mailbox. * @link https://php.net/manual/en/imap.constants.php */ -define ('OP_HALFOPEN', 64); -define ('OP_EXPUNGE', 128); -define ('OP_SECURE', 256); +define('OP_HALFOPEN', 64); +define('OP_EXPUNGE', 128); +define('OP_SECURE', 256); /** * silently expunge the mailbox before closing when * calling imap_close * @link https://php.net/manual/en/imap.constants.php */ -define ('CL_EXPUNGE', 32768); +define('CL_EXPUNGE', 32768); /** * The parameter is a UID * @link https://php.net/manual/en/imap.constants.php */ -define ('FT_UID', 1); +define('FT_UID', 1); /** * Do not set the \Seen flag if not already set * @link https://php.net/manual/en/imap.constants.php */ -define ('FT_PEEK', 2); -define ('FT_NOT', 4); +define('FT_PEEK', 2); +define('FT_NOT', 4); /** * The return string is in internal format, will not canonicalize to CRLF. * @link https://php.net/manual/en/imap.constants.php */ -define ('FT_INTERNAL', 8); -define ('FT_PREFETCHTEXT', 32); +define('FT_INTERNAL', 8); +define('FT_PREFETCHTEXT', 32); /** * The sequence argument contains UIDs instead of sequence numbers * @link https://php.net/manual/en/imap.constants.php */ -define ('ST_UID', 1); -define ('ST_SILENT', 2); -define ('ST_SET', 4); +define('ST_UID', 1); +define('ST_SILENT', 2); +define('ST_SET', 4); /** * the sequence numbers contain UIDS * @link https://php.net/manual/en/imap.constants.php */ -define ('CP_UID', 1); +define('CP_UID', 1); /** * Delete the messages from the current mailbox after copying * with imap_mail_copy * @link https://php.net/manual/en/imap.constants.php */ -define ('CP_MOVE', 2); +define('CP_MOVE', 2); /** * Return UIDs instead of sequence numbers * @link https://php.net/manual/en/imap.constants.php */ -define ('SE_UID', 1); -define ('SE_FREE', 2); +define('SE_UID', 1); +define('SE_FREE', 2); /** * Don't prefetch searched messages * @link https://php.net/manual/en/imap.constants.php */ -define ('SE_NOPREFETCH', 4); -define ('SO_FREE', 8); -define ('SO_NOSERVER', 16); -define ('SA_MESSAGES', 1); -define ('SA_RECENT', 2); -define ('SA_UNSEEN', 4); -define ('SA_UIDNEXT', 8); -define ('SA_UIDVALIDITY', 16); -define ('SA_ALL', 31); +define('SE_NOPREFETCH', 4); +define('SO_FREE', 8); +define('SO_NOSERVER', 16); +define('SA_MESSAGES', 1); +define('SA_RECENT', 2); +define('SA_UNSEEN', 4); +define('SA_UIDNEXT', 8); +define('SA_UIDVALIDITY', 16); +define('SA_ALL', 31); /** * This mailbox has no "children" (there are no * mailboxes below this one). * @link https://php.net/manual/en/imap.constants.php */ -define ('LATT_NOINFERIORS', 1); +define('LATT_NOINFERIORS', 1); /** * This is only a container, not a mailbox - you * cannot open it. * @link https://php.net/manual/en/imap.constants.php */ -define ('LATT_NOSELECT', 2); +define('LATT_NOSELECT', 2); /** * This mailbox is marked. Only used by UW-IMAPD. * @link https://php.net/manual/en/imap.constants.php */ -define ('LATT_MARKED', 4); +define('LATT_MARKED', 4); /** * This mailbox is not marked. Only used by * UW-IMAPD. * @link https://php.net/manual/en/imap.constants.php */ -define ('LATT_UNMARKED', 8); -define ('LATT_REFERRAL', 16); -define ('LATT_HASCHILDREN', 32); -define ('LATT_HASNOCHILDREN', 64); +define('LATT_UNMARKED', 8); +define('LATT_REFERRAL', 16); +define('LATT_HASCHILDREN', 32); +define('LATT_HASNOCHILDREN', 64); /** * Sort criteria for imap_sort: * message Date * @link https://php.net/manual/en/imap.constants.php */ -define ('SORTDATE', 0); +define('SORTDATE', 0); /** * Sort criteria for imap_sort: * arrival date * @link https://php.net/manual/en/imap.constants.php */ -define ('SORTARRIVAL', 1); +define('SORTARRIVAL', 1); /** * Sort criteria for imap_sort: * mailbox in first From address * @link https://php.net/manual/en/imap.constants.php */ -define ('SORTFROM', 2); +define('SORTFROM', 2); /** * Sort criteria for imap_sort: * message subject * @link https://php.net/manual/en/imap.constants.php */ -define ('SORTSUBJECT', 3); +define('SORTSUBJECT', 3); /** * Sort criteria for imap_sort: * mailbox in first To address * @link https://php.net/manual/en/imap.constants.php */ -define ('SORTTO', 4); +define('SORTTO', 4); /** * Sort criteria for imap_sort: * mailbox in first cc address * @link https://php.net/manual/en/imap.constants.php */ -define ('SORTCC', 5); +define('SORTCC', 5); /** * Sort criteria for imap_sort: * size of message in octets * @link https://php.net/manual/en/imap.constants.php */ -define ('SORTSIZE', 6); -define ('TYPETEXT', 0); -define ('TYPEMULTIPART', 1); -define ('TYPEMESSAGE', 2); -define ('TYPEAPPLICATION', 3); -define ('TYPEAUDIO', 4); -define ('TYPEIMAGE', 5); -define ('TYPEVIDEO', 6); -define ('TYPEMODEL', 7); -define ('TYPEOTHER', 8); -define ('ENC7BIT', 0); -define ('ENC8BIT', 1); -define ('ENCBINARY', 2); -define ('ENCBASE64', 3); -define ('ENCQUOTEDPRINTABLE', 4); -define ('ENCOTHER', 5); +define('SORTSIZE', 6); +define('TYPETEXT', 0); +define('TYPEMULTIPART', 1); +define('TYPEMESSAGE', 2); +define('TYPEAPPLICATION', 3); +define('TYPEAUDIO', 4); +define('TYPEIMAGE', 5); +define('TYPEVIDEO', 6); +define('TYPEMODEL', 7); +define('TYPEOTHER', 8); +define('ENC7BIT', 0); +define('ENC8BIT', 1); +define('ENCBINARY', 2); +define('ENCBASE64', 3); +define('ENCQUOTEDPRINTABLE', 4); +define('ENCOTHER', 5); /** * Garbage collector, clear message cache elements. * @link https://php.net/manual/en/imap.constants.php */ -define ('IMAP_GC_ELT', 1); +define('IMAP_GC_ELT', 1); /** * Garbage collector, clear envelopes and bodies. * @link https://php.net/manual/en/imap.constants.php */ -define ('IMAP_GC_ENV', 2); +define('IMAP_GC_ENV', 2); /** * Garbage collector, clear texts. * @link https://php.net/manual/en/imap.constants.php */ -define ('IMAP_GC_TEXTS', 4); +define('IMAP_GC_TEXTS', 4); diff --git a/inotify/inotify.php b/inotify/inotify.php index 829ec4b7e..dfcfbd2e3 100644 --- a/inotify/inotify.php +++ b/inotify/inotify.php @@ -14,9 +14,7 @@ * * @return int a unique (inotify instance-wide) watch descriptor. */ -function inotify_add_watch( $inotify_instance, $pathname, $mask ) -{ -} +function inotify_add_watch($inotify_instance, $pathname, $mask) {} /** * (PHP >= 5.2.0, PECL inotify >= 0.1.2)
    @@ -25,9 +23,7 @@ function inotify_add_watch( $inotify_instance, $pathname, $mask ) * @link https://php.net/manual/en/function.inotify-init.php * @return resource|false a stream resource or FALSE on error. */ -function inotify_init() -{ -} +function inotify_init() {} /** * (PHP >= 5.2.0, PECL inotify >= 0.1.2)
    @@ -41,9 +37,7 @@ function inotify_init() * * @return int a number greater than zero if events are pending, otherwise zero. */ -function inotify_queue_len( $inotify_instance ) -{ -} +function inotify_queue_len($inotify_instance) {} /** * (PHP >= 5.2.0, PECL inotify >= 0.1.2)
    @@ -64,9 +58,7 @@ function inotify_queue_len( $inotify_instance ) *

  • name is the name of a file (e.g. if a file was modified in a watched directory)
  • * */ -function inotify_read( $inotify_instance ) -{ -} +function inotify_read($inotify_instance) {} /** * (PHP >= 5.2.0, PECL inotify >= 0.1.2)
    @@ -79,9 +71,7 @@ function inotify_read( $inotify_instance ) * * @return bool TRUE on success or FALSE on failure. */ -function inotify_rm_watch( $inotify_instance, $watch_descriptor ) -{ -} +function inotify_rm_watch($inotify_instance, $watch_descriptor) {} /** * @link https://php.net/manual/en/inotify.constants.php diff --git a/interbase/interbase.php b/interbase/interbase.php index 5edecbdcd..33f2fff4c 100644 --- a/interbase/interbase.php +++ b/interbase/interbase.php @@ -42,7 +42,7 @@ *

    * @return resource|false an InterBase link identifier on success, or false on error. */ -function ibase_connect ($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {} +function ibase_connect($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {} /** * Open a persistent connection to an InterBase database @@ -84,7 +84,7 @@ function ibase_connect ($database = null, $username = null, $password = null, $c *

    * @return resource|false an InterBase link identifier on success, or false on error. */ -function ibase_pconnect ($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {} +function ibase_pconnect($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {} /** * Close a connection to an InterBase database @@ -96,7 +96,7 @@ function ibase_pconnect ($database = null, $username = null, $password = null, $ *

    * @return bool true on success or false on failure. */ -function ibase_close ($connection_id = null) {} +function ibase_close($connection_id = null) {} /** * Drops a database @@ -107,7 +107,7 @@ function ibase_close ($connection_id = null) {} *

    * @return bool true on success or false on failure. */ -function ibase_drop_db ($connection = null) {} +function ibase_drop_db($connection = null) {} /** * Execute a query on an InterBase database @@ -132,7 +132,7 @@ function ibase_drop_db ($connection = null) {} * to retain backward compatibility, it will return true for these * statements if the query succeeded without affecting any rows. */ -function ibase_query ($link_identifier = null, $query, $bind_args = null) {} +function ibase_query($link_identifier = null, $query, $bind_args = null) {} /** * Fetch a row from an InterBase database @@ -152,7 +152,7 @@ function ibase_query ($link_identifier = null, $query, $bind_args = null) {} * are no more rows. Each result column is stored in an array offset, * starting at offset 0. */ -function ibase_fetch_row ($result_identifier, $fetch_flag = null) {} +function ibase_fetch_row($result_identifier, $fetch_flag = null) {} /** * Fetch a result row from a query as an associative array @@ -172,7 +172,7 @@ function ibase_fetch_row ($result_identifier, $fetch_flag = null) {} * Subsequent calls will return the next row in the result set, or false if * there are no more rows. */ -function ibase_fetch_assoc ($result, $fetch_flag = null) {} +function ibase_fetch_assoc($result, $fetch_flag = null) {} /** * Get an object from a InterBase database @@ -192,7 +192,7 @@ function ibase_fetch_assoc ($result, $fetch_flag = null) {} * @return object|false an object with the next row information, or false if there are * no more rows. */ -function ibase_fetch_object ($result_id, $fetch_flag = null) {} +function ibase_fetch_object($result_id, $fetch_flag = null) {} /** * Free a result set @@ -203,7 +203,7 @@ function ibase_fetch_object ($result_id, $fetch_flag = null) {} *

    * @return bool true on success or false on failure. */ -function ibase_free_result ($result_identifier) {} +function ibase_free_result($result_identifier) {} /** * Assigns a name to a result set @@ -216,7 +216,7 @@ function ibase_free_result ($result_identifier) {} *

    * @return bool true on success or false on failure. */ -function ibase_name_result ($result, $name) {} +function ibase_name_result($result, $name) {} /** * Prepare a query for later binding of parameter placeholders and execution @@ -226,7 +226,7 @@ function ibase_name_result ($result, $name) {} *

    * @return resource|false a prepared query handle, or false on error. */ -function ibase_prepare ($query) {} +function ibase_prepare($query) {} /** * Execute a previously prepared query @@ -247,7 +247,7 @@ function ibase_prepare ($query) {} * succeeded, but did not affect any rows (e.g. an UPDATE of a non-existent * record) will return true. */ -function ibase_execute ($query, ...$bind_arg) {} +function ibase_execute($query, ...$bind_arg) {} /** * Free memory allocated by a prepared query @@ -257,7 +257,7 @@ function ibase_execute ($query, ...$bind_arg) {} *

    * @return bool true on success or false on failure. */ -function ibase_free_query ($query) {} +function ibase_free_query($query) {} /** * Increments the named generator and returns its new value @@ -267,7 +267,7 @@ function ibase_free_query ($query) {} * @param resource $link_identifier [optional] * @return mixed new generator value as integer, or as string if the value is too big. */ -function ibase_gen_id ($generator, $increment = null, $link_identifier = null) {} +function ibase_gen_id($generator, $increment = null, $link_identifier = null) {} /** * Get the number of fields in a result set @@ -277,7 +277,7 @@ function ibase_gen_id ($generator, $increment = null, $link_identifier = null) { *

    * @return int the number of fields as an integer. */ -function ibase_num_fields ($result_id) {} +function ibase_num_fields($result_id) {} /** * Return the number of parameters in a prepared query @@ -287,7 +287,7 @@ function ibase_num_fields ($result_id) {} *

    * @return int the number of parameters as an integer. */ -function ibase_num_params ($query) {} +function ibase_num_params($query) {} /** * Return the number of rows that were affected by the previous query @@ -298,7 +298,7 @@ function ibase_num_params ($query) {} *

    * @return int the number of rows as an integer. */ -function ibase_affected_rows ($link_identifier = null) {} +function ibase_affected_rows($link_identifier = null) {} /** * Get information about a field @@ -313,7 +313,7 @@ function ibase_affected_rows ($link_identifier = null) {} * alias, relation, * length and type. */ -function ibase_field_info ($result, $field_number) {} +function ibase_field_info($result, $field_number) {} /** * Return information about a parameter in a prepared query @@ -328,7 +328,7 @@ function ibase_field_info ($result, $field_number) {} * alias, relation, * length and type. */ -function ibase_param_info ($query, $param_number) {} +function ibase_param_info($query, $param_number) {} /** * Begin a transaction @@ -351,7 +351,7 @@ function ibase_param_info ($query, $param_number) {} *

    * @return resource|false a transaction handle, or false on error. */ -function ibase_trans ($trans_args = null, $link_identifier = null) {} +function ibase_trans($trans_args = null, $link_identifier = null) {} /** * Commit a transaction @@ -365,7 +365,7 @@ function ibase_trans ($trans_args = null, $link_identifier = null) {} *

    * @return bool true on success or false on failure. */ -function ibase_commit ($link_or_trans_identifier = null) {} +function ibase_commit($link_or_trans_identifier = null) {} /** * Roll back a transaction @@ -379,7 +379,7 @@ function ibase_commit ($link_or_trans_identifier = null) {} *

    * @return bool true on success or false on failure. */ -function ibase_rollback ($link_or_trans_identifier = null) {} +function ibase_rollback($link_or_trans_identifier = null) {} /** * Commit a transaction without closing it @@ -395,7 +395,7 @@ function ibase_rollback ($link_or_trans_identifier = null) {} *

    * @return bool true on success or false on failure. */ -function ibase_commit_ret ($link_or_trans_identifier = null) {} +function ibase_commit_ret($link_or_trans_identifier = null) {} /** * Roll back a transaction without closing it @@ -411,7 +411,7 @@ function ibase_commit_ret ($link_or_trans_identifier = null) {} *

    * @return bool true on success or false on failure. */ -function ibase_rollback_ret ($link_or_trans_identifier = null) {} +function ibase_rollback_ret($link_or_trans_identifier = null) {} /** * Return blob length and other useful info @@ -427,7 +427,7 @@ function ibase_rollback_ret ($link_or_trans_identifier = null) {} * consists of the length of the BLOB, the number of segments it contains, the size * of the largest segment, and whether it is a stream BLOB or a segmented BLOB. */ -function ibase_blob_info ($link_identifier, $blob_id) {} +function ibase_blob_info($link_identifier, $blob_id) {} /** * Create a new blob for adding data @@ -439,7 +439,7 @@ function ibase_blob_info ($link_identifier, $blob_id) {} * @return resource|false a BLOB handle for later use with * ibase_blob_add or false on failure. */ -function ibase_blob_create ($link_identifier = null) {} +function ibase_blob_create($link_identifier = null) {} /** * Add data into a newly created blob @@ -452,7 +452,7 @@ function ibase_blob_create ($link_identifier = null) {} *

    * @return void */ -function ibase_blob_add ($blob_handle, $data) {} +function ibase_blob_add($blob_handle, $data) {} /** * Cancel creating blob @@ -462,7 +462,7 @@ function ibase_blob_add ($blob_handle, $data) {} *

    * @return bool true on success or false on failure. */ -function ibase_blob_cancel ($blob_handle) {} +function ibase_blob_cancel($blob_handle) {} /** * Close blob @@ -476,7 +476,7 @@ function ibase_blob_cancel ($blob_handle) {} * the BLOB id that has been assigned to it by the database. On failure, this * function returns false. */ -function ibase_blob_close ($blob_handle) {} +function ibase_blob_close($blob_handle) {} /** * Open blob for retrieving data parts @@ -491,7 +491,7 @@ function ibase_blob_close ($blob_handle) {} * @return resource|false a BLOB handle for later use with * ibase_blob_get or false on failure. */ -function ibase_blob_open ($link_identifier, $blob_id) {} +function ibase_blob_open($link_identifier, $blob_id) {} /** * Get len bytes data from open blob @@ -505,7 +505,7 @@ function ibase_blob_open ($link_identifier, $blob_id) {} * @return string|false at most len bytes from the BLOB, or false * on failure. */ -function ibase_blob_get ($blob_handle, $len) {} +function ibase_blob_get($blob_handle, $len) {} /** * Output blob contents to browser @@ -514,7 +514,7 @@ function ibase_blob_get ($blob_handle, $len) {} *

    * @return bool true on success or false on failure. */ -function ibase_blob_echo ($blob_id) {} +function ibase_blob_echo($blob_id) {} /** * Create blob, copy file in it, and close it @@ -528,21 +528,21 @@ function ibase_blob_echo ($blob_id) {} *

    * @return string|false the BLOB id on success, or false on error. */ -function ibase_blob_import ($link_identifier, $file_handle) {} +function ibase_blob_import($link_identifier, $file_handle) {} /** * Return error messages * @link https://php.net/manual/en/function.ibase-errmsg.php * @return string|false the error message as a string, or false if no error occurred. */ -function ibase_errmsg () {} +function ibase_errmsg() {} /** * Return an error code * @link https://php.net/manual/en/function.ibase-errcode.php * @return int|false the error code as an integer, or false if no error occurred. */ -function ibase_errcode () {} +function ibase_errcode() {} /** * Add a user to a security database (only for IB6 or later) @@ -555,7 +555,7 @@ function ibase_errcode () {} * @param string $last_name [optional] * @return bool true on success or false on failure. */ -function ibase_add_user ($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {} +function ibase_add_user($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {} /** * Modify a user to a security database (only for IB6 or later) @@ -568,7 +568,7 @@ function ibase_add_user ($service_handle, $user_name, $password, $first_name = n * @param string $last_name [optional] * @return bool true on success or false on failure. */ -function ibase_modify_user ($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {} +function ibase_modify_user($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {} /** * Delete a user from a security database (only for IB6 or later) @@ -577,7 +577,7 @@ function ibase_modify_user ($service_handle, $user_name, $password, $first_name * @param string $user_name * @return bool true on success or false on failure. */ -function ibase_delete_user ($service_handle, $user_name) {} +function ibase_delete_user($service_handle, $user_name) {} /** * Connect to the service manager @@ -587,7 +587,7 @@ function ibase_delete_user ($service_handle, $user_name) {} * @param string $dba_password * @return resource|false */ -function ibase_service_attach ($host, $dba_username, $dba_password) {} +function ibase_service_attach($host, $dba_username, $dba_password) {} /** * Disconnect from the service manager @@ -595,7 +595,7 @@ function ibase_service_attach ($host, $dba_username, $dba_password) {} * @param resource $service_handle * @return bool true on success or false on failure. */ -function ibase_service_detach ($service_handle) {} +function ibase_service_detach($service_handle) {} /** * Initiates a backup task in the service manager and returns immediately @@ -607,7 +607,7 @@ function ibase_service_detach ($service_handle) {} * @param bool $verbose [optional] * @return mixed */ -function ibase_backup ($service_handle, $source_db, $dest_file, $options = null, $verbose = null) {} +function ibase_backup($service_handle, $source_db, $dest_file, $options = null, $verbose = null) {} /** * Initiates a restore task in the service manager and returns immediately @@ -619,7 +619,7 @@ function ibase_backup ($service_handle, $source_db, $dest_file, $options = null, * @param bool $verbose [optional] * @return mixed */ -function ibase_restore ($service_handle, $source_file, $dest_db, $options = null, $verbose = null) {} +function ibase_restore($service_handle, $source_file, $dest_db, $options = null, $verbose = null) {} /** * Execute a maintenance command on the database server @@ -630,7 +630,7 @@ function ibase_restore ($service_handle, $source_file, $dest_db, $options = null * @param int $argument [optional] * @return bool true on success or false on failure. */ -function ibase_maintain_db ($service_handle, $db, $action, $argument = null) {} +function ibase_maintain_db($service_handle, $db, $action, $argument = null) {} /** * Request statistics about a database @@ -641,7 +641,7 @@ function ibase_maintain_db ($service_handle, $db, $action, $argument = null) {} * @param int $argument [optional] * @return string */ -function ibase_db_info ($service_handle, $db, $action, $argument = null) {} +function ibase_db_info($service_handle, $db, $action, $argument = null) {} /** * Request information about a database server @@ -650,7 +650,7 @@ function ibase_db_info ($service_handle, $db, $action, $argument = null) {} * @param int $action * @return string */ -function ibase_server_info ($service_handle, $action) {} +function ibase_server_info($service_handle, $action) {} /** * Wait for an event to be posted by the database @@ -663,7 +663,7 @@ function ibase_server_info ($service_handle, $action) {} * @param string ...$_ [optional] * @return string the name of the event that was posted. */ -function ibase_wait_event ($event_name1, $event_name2 = null, ...$_) {} +function ibase_wait_event($event_name1, $event_name2 = null, ...$_) {} /** * Register a callback function to be called when events are posted @@ -688,7 +688,7 @@ function ibase_wait_event ($event_name1, $event_name2 = null, ...$_) {} * @return resource The return value is an event resource. This resource can be used to free * the event handler using ibase_free_event_handler. */ -function ibase_set_event_handler ($event_handler, $event_name1, $event_name2 = null, ...$_) {} +function ibase_set_event_handler($event_handler, $event_name1, $event_name2 = null, ...$_) {} /** * Cancels a registered event handler @@ -699,7 +699,7 @@ function ibase_set_event_handler ($event_handler, $event_name1, $event_name2 = n *

    * @return bool true on success or false on failure. */ -function ibase_free_event_handler ($event) {} +function ibase_free_event_handler($event) {} /** * This is an alias of ibase_connect @@ -742,7 +742,7 @@ function ibase_free_event_handler ($event) {} *

    * @return resource|false an InterBase link identifier on success, or false on error. */ -function fbird_connect ($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {} +function fbird_connect($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {} /** * This is an alias of ibase_pconnect @@ -785,7 +785,7 @@ function fbird_connect ($database = null, $username = null, $password = null, $c *

    * @return resource|false an InterBase link identifier on success, or false on error. */ -function fbird_pconnect ($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {} +function fbird_pconnect($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {} /** * This is an alias of ibase_close @@ -798,7 +798,7 @@ function fbird_pconnect ($database = null, $username = null, $password = null, $ *

    * @return bool true on success or false on failure. */ -function fbird_close ($connection_id = null) {} +function fbird_close($connection_id = null) {} /** * This is an alias of ibase_drop_db @@ -810,7 +810,7 @@ function fbird_close ($connection_id = null) {} *

    * @return bool true on success or false on failure. */ -function fbird_drop_db ($connection = null) {} +function fbird_drop_db($connection = null) {} /** * This is an alias of ibase_query @@ -836,7 +836,7 @@ function fbird_drop_db ($connection = null) {} * to retain backward compatibility, it will return true for these * statements if the query succeeded without affecting any rows. */ -function fbird_query ($link_identifier = null, $query, $bind_args = null) {} +function fbird_query($link_identifier = null, $query, $bind_args = null) {} /** * This is an alias of ibase_fetch_row @@ -857,7 +857,7 @@ function fbird_query ($link_identifier = null, $query, $bind_args = null) {} * are no more rows. Each result column is stored in an array offset, * starting at offset 0. */ -function fbird_fetch_row ($result_identifier, $fetch_flag = null) {} +function fbird_fetch_row($result_identifier, $fetch_flag = null) {} /** * This is an alias of ibase_fetch_assoc @@ -878,7 +878,7 @@ function fbird_fetch_row ($result_identifier, $fetch_flag = null) {} * Subsequent calls will return the next row in the result set, or false if * there are no more rows. */ -function fbird_fetch_assoc ($result, $fetch_flag = null) {} +function fbird_fetch_assoc($result, $fetch_flag = null) {} /** * This is an alias of ibase_fetch_object @@ -899,7 +899,7 @@ function fbird_fetch_assoc ($result, $fetch_flag = null) {} * @return object|false an object with the next row information, or false if there are * no more rows. */ -function fbird_fetch_object ($result_id, $fetch_flag = null) {} +function fbird_fetch_object($result_id, $fetch_flag = null) {} /** * This is an alias of ibase_free_result @@ -911,7 +911,7 @@ function fbird_fetch_object ($result_id, $fetch_flag = null) {} *

    * @return bool true on success or false on failure. */ -function fbird_free_result ($result_identifier) {} +function fbird_free_result($result_identifier) {} /** * This is an alias of ibase_name_result @@ -925,7 +925,7 @@ function fbird_free_result ($result_identifier) {} *

    * @return bool true on success or false on failure. */ -function fbird_name_result ($result, $name) {} +function fbird_name_result($result, $name) {} /** * This is an alias of ibase_prepare @@ -936,7 +936,7 @@ function fbird_name_result ($result, $name) {} *

    * @return resource|false a prepared query handle, or false on error. */ -function fbird_prepare ($query) {} +function fbird_prepare($query) {} /** * This is an alias of ibase_execute @@ -957,7 +957,7 @@ function fbird_prepare ($query) {} * succeeded, but did not affect any rows (e.g. an UPDATE of a non-existent * record) will return true.

    */ -function fbird_execute ($query, ...$bind_arg) {} +function fbird_execute($query, ...$bind_arg) {} /** * This is an alias of ibase_free_query @@ -968,7 +968,7 @@ function fbird_execute ($query, ...$bind_arg) {} *

    * @return bool true on success or false on failure. */ -function fbird_free_query ($query) {} +function fbird_free_query($query) {} /** * This is an alias of ibase_gen_id @@ -979,7 +979,7 @@ function fbird_free_query ($query) {} * @param resource $link_identifier [optional] * @return mixed new generator value as integer, or as string if the value is too big. */ -function fbird_gen_id ($generator, $increment = null, $link_identifier = null) {} +function fbird_gen_id($generator, $increment = null, $link_identifier = null) {} /** * This is an alias of ibase_num_fields @@ -990,7 +990,7 @@ function fbird_gen_id ($generator, $increment = null, $link_identifier = null) { *

    * @return int the number of fields as an integer. */ -function fbird_num_fields ($result_id) {} +function fbird_num_fields($result_id) {} /** * This is an alias of ibase_num_params @@ -1001,7 +1001,7 @@ function fbird_num_fields ($result_id) {} *

    * @return int the number of parameters as an integer. */ -function fbird_num_params ($query) {} +function fbird_num_params($query) {} /** * This is an alias of ibase_affected_rows @@ -1013,7 +1013,7 @@ function fbird_num_params ($query) {} *

    * @return int the number of rows as an integer. */ -function fbird_affected_rows ($link_identifier = null) {} +function fbird_affected_rows($link_identifier = null) {} /** * This is an alias of ibase_field_info @@ -1029,7 +1029,7 @@ function fbird_affected_rows ($link_identifier = null) {} * alias, relation, * length and type. */ -function fbird_field_info ($result, $field_number) {} +function fbird_field_info($result, $field_number) {} /** * This is an alias of ibase_param_info @@ -1045,7 +1045,7 @@ function fbird_field_info ($result, $field_number) {} * alias, relation, * length and type. */ -function fbird_param_info ($query, $param_number) {} +function fbird_param_info($query, $param_number) {} /** * This is an alias of ibase_trans @@ -1069,7 +1069,7 @@ function fbird_param_info ($query, $param_number) {} *

    * @return resource|false a transaction handle, or false on error. */ -function fbird_trans ($trans_args = null, $link_identifier = null) {} +function fbird_trans($trans_args = null, $link_identifier = null) {} /** * This is an alias of ibase_commit @@ -1084,7 +1084,7 @@ function fbird_trans ($trans_args = null, $link_identifier = null) {} *

    * @return bool true on success or false on failure. */ -function fbird_commit ($link_or_trans_identifier = null) {} +function fbird_commit($link_or_trans_identifier = null) {} /** * This is an alias of ibase_rollback @@ -1099,7 +1099,7 @@ function fbird_commit ($link_or_trans_identifier = null) {} *

    * @return bool true on success or false on failure. */ -function fbird_rollback ($link_or_trans_identifier = null) {} +function fbird_rollback($link_or_trans_identifier = null) {} /** * This is an alias of ibase_commit_ret @@ -1116,7 +1116,7 @@ function fbird_rollback ($link_or_trans_identifier = null) {} *

    * @return bool true on success or false on failure. */ -function fbird_commit_ret ($link_or_trans_identifier = null) {} +function fbird_commit_ret($link_or_trans_identifier = null) {} /** * This is an alias of ibase_rollback_ret @@ -1133,7 +1133,7 @@ function fbird_commit_ret ($link_or_trans_identifier = null) {} *

    * @return bool true on success or false on failure. */ -function fbird_rollback_ret ($link_or_trans_identifier = null) {} +function fbird_rollback_ret($link_or_trans_identifier = null) {} /** * This is an alias of ibase_blob_info @@ -1150,7 +1150,7 @@ function fbird_rollback_ret ($link_or_trans_identifier = null) {} * consists of the length of the BLOB, the number of segments it contains, the size * of the largest segment, and whether it is a stream BLOB or a segmented BLOB. */ -function fbird_blob_info ($link_identifier, $blob_id) {} +function fbird_blob_info($link_identifier, $blob_id) {} /** * This is an alias of ibase_blob_create @@ -1163,7 +1163,7 @@ function fbird_blob_info ($link_identifier, $blob_id) {} * @return resource|false a BLOB handle for later use with * fbird_blob_add or false on failure. */ -function fbird_blob_create ($link_identifier = null) {} +function fbird_blob_create($link_identifier = null) {} /** * This is an alias of ibase_blob_add @@ -1177,7 +1177,7 @@ function fbird_blob_create ($link_identifier = null) {} *

    * @return void */ -function fbird_blob_add ($blob_handle, $data) {} +function fbird_blob_add($blob_handle, $data) {} /** * This is an alias of ibase_blob_cancel @@ -1188,7 +1188,7 @@ function fbird_blob_add ($blob_handle, $data) {} *

    * @return bool true on success or false on failure. */ -function fbird_blob_cancel ($blob_handle) {} +function fbird_blob_cancel($blob_handle) {} /** * This is an alias of ibase_blob_close @@ -1203,7 +1203,7 @@ function fbird_blob_cancel ($blob_handle) {} * the BLOB id that has been assigned to it by the database. On failure, this * function returns false. */ -function fbird_blob_close ($blob_handle) {} +function fbird_blob_close($blob_handle) {} /** * This is an alias of ibase_blob_open @@ -1219,7 +1219,7 @@ function fbird_blob_close ($blob_handle) {} * @return resource|false a BLOB handle for later use with * fbird_blob_get or false on failure. */ -function fbird_blob_open ($link_identifier, $blob_id) {} +function fbird_blob_open($link_identifier, $blob_id) {} /** * This is an alias of ibase_blob_get @@ -1234,7 +1234,7 @@ function fbird_blob_open ($link_identifier, $blob_id) {} * @return string|false at most len bytes from the BLOB, or false * on failure. */ -function fbird_blob_get ($blob_handle, $len) {} +function fbird_blob_get($blob_handle, $len) {} /** * This is an alias of ibase_blob_echo @@ -1244,7 +1244,7 @@ function fbird_blob_get ($blob_handle, $len) {} *

    * @return bool true on success or false on failure. */ -function fbird_blob_echo ($blob_id) {} +function fbird_blob_echo($blob_id) {} /** * This is an alias of ibase_blob_import @@ -1259,7 +1259,7 @@ function fbird_blob_echo ($blob_id) {} *

    * @return string|false the BLOB id on success, or false on error. */ -function fbird_blob_import ($link_identifier, $file_handle) {} +function fbird_blob_import($link_identifier, $file_handle) {} /** * This is an alias of ibase_errmsg @@ -1267,7 +1267,7 @@ function fbird_blob_import ($link_identifier, $file_handle) {} * @link https://php.net/manual/en/function.fbird-errmsg.php * @return string|false the error message as a string, or false if no error occurred. */ -function fbird_errmsg () {} +function fbird_errmsg() {} /** * This is an alias of ibase_errcode @@ -1275,7 +1275,7 @@ function fbird_errmsg () {} * @link https://php.net/manual/en/function.fbird-errcode.php * @return int|false the error code as an integer, or false if no error occurred. */ -function fbird_errcode () {} +function fbird_errcode() {} /** * This is an alias of ibase_add_user @@ -1289,7 +1289,7 @@ function fbird_errcode () {} * @param string $last_name [optional] * @return bool true on success or false on failure. */ -function fbird_add_user ($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {} +function fbird_add_user($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {} /** * This is an alias of ibase_modify_user @@ -1303,7 +1303,7 @@ function fbird_add_user ($service_handle, $user_name, $password, $first_name = n * @param string $last_name [optional] * @return bool true on success or false on failure. */ -function fbird_modify_user ($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {} +function fbird_modify_user($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {} /** * This is an alias of ibase_delete_user @@ -1313,7 +1313,7 @@ function fbird_modify_user ($service_handle, $user_name, $password, $first_name * @param string $user_name * @return bool true on success or false on failure. */ -function fbird_delete_user ($service_handle, $user_name) {} +function fbird_delete_user($service_handle, $user_name) {} /** * This is an alias of ibase_service_attach @@ -1324,7 +1324,7 @@ function fbird_delete_user ($service_handle, $user_name) {} * @param string $dba_password * @return resource|false */ -function fbird_service_attach ($host, $dba_username, $dba_password) {} +function fbird_service_attach($host, $dba_username, $dba_password) {} /** * This is an alias of ibase_service_detach @@ -1333,7 +1333,7 @@ function fbird_service_attach ($host, $dba_username, $dba_password) {} * @param resource $service_handle * @return bool true on success or false on failure. */ -function fbird_service_detach ($service_handle) {} +function fbird_service_detach($service_handle) {} /** * This is an alias of ibase_backup @@ -1346,7 +1346,7 @@ function fbird_service_detach ($service_handle) {} * @param bool $verbose [optional] * @return mixed */ -function fbird_backup ($service_handle, $source_db, $dest_file, $options = null, $verbose = null) {} +function fbird_backup($service_handle, $source_db, $dest_file, $options = null, $verbose = null) {} /** * This is an alias of ibase_restore @@ -1359,7 +1359,7 @@ function fbird_backup ($service_handle, $source_db, $dest_file, $options = null, * @param bool $verbose [optional] * @return mixed */ -function fbird_restore ($service_handle, $source_file, $dest_db, $options = null, $verbose = null) {} +function fbird_restore($service_handle, $source_file, $dest_db, $options = null, $verbose = null) {} /** * This is an alias of ibase_maintain_db @@ -1371,7 +1371,7 @@ function fbird_restore ($service_handle, $source_file, $dest_db, $options = null * @param int $argument [optional] * @return bool true on success or false on failure. */ -function fbird_maintain_db ($service_handle, $db, $action, $argument = null) {} +function fbird_maintain_db($service_handle, $db, $action, $argument = null) {} /** * This is an alias of ibase_db_info @@ -1383,7 +1383,7 @@ function fbird_maintain_db ($service_handle, $db, $action, $argument = null) {} * @param int $argument [optional] * @return string */ -function fbird_db_info ($service_handle, $db, $action, $argument = null) {} +function fbird_db_info($service_handle, $db, $action, $argument = null) {} /** * This is an alias of ibase_server_info @@ -1393,7 +1393,7 @@ function fbird_db_info ($service_handle, $db, $action, $argument = null) {} * @param int $action * @return string */ -function fbird_server_info ($service_handle, $action) {} +function fbird_server_info($service_handle, $action) {} /** * This is an alias of ibase_wait_event @@ -1407,7 +1407,7 @@ function fbird_server_info ($service_handle, $action) {} * @param string ...$_ [optional] * @return string the name of the event that was posted. */ -function fbird_wait_event ($event_name1, $event_name2 = null, ...$_) {} +function fbird_wait_event($event_name1, $event_name2 = null, ...$_) {} /** * This is an alias of ibase_set_event_handler @@ -1433,7 +1433,7 @@ function fbird_wait_event ($event_name1, $event_name2 = null, ...$_) {} * @return resource The return value is an event resource. This resource can be used to free * the event handler using fbird_free_event_handler. */ -function fbird_set_event_handler ($event_handler, $event_name1, $event_name2 = null, ...$_) {} +function fbird_set_event_handler($event_handler, $event_name1, $event_name2 = null, ...$_) {} /** * This is an alias of ibase_free_event_handler @@ -1445,51 +1445,51 @@ function fbird_set_event_handler ($event_handler, $event_name1, $event_name2 = n *

    * @return bool true on success or false on failure. */ -function fbird_free_event_handler ($event) {} +function fbird_free_event_handler($event) {} /** * The default transaction settings are to be used. * This default is determined by the client library, which defines it as IBASE_WRITE|IBASE_CONCURRENCY|IBASE_WAIT in most cases. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_DEFAULT', 0); +define('IBASE_DEFAULT', 0); /** * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_CREATE', 0); +define('IBASE_CREATE', 0); /** * Causes BLOB contents to be fetched inline, instead of being fetched as BLOB identifiers. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_TEXT', 1); +define('IBASE_TEXT', 1); /** * Also available as IBASE_TEXT for backward compatibility. * Causes BLOB contents to be fetched inline, instead of being fetched as BLOB identifiers. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_FETCH_BLOBS', 1); +define('IBASE_FETCH_BLOBS', 1); /** * Causes arrays to be fetched inline. Otherwise, array identifiers are returned. * Array identifiers can only be used as arguments to INSERT operations, as no functions to handle array identifiers are currently available. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_FETCH_ARRAYS', 2); +define('IBASE_FETCH_ARRAYS', 2); /** * Causes date and time fields not to be returned as strings, but as UNIX timestamps (the number of seconds since the epoch, which is 1-Jan-1970 0:00 UTC). * Might be problematic if used with dates before 1970 on some systems. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_UNIXTIME', 4); +define('IBASE_UNIXTIME', 4); /** * Starts a read-write transaction. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_WRITE', 1); +define('IBASE_WRITE', 1); /** * Starts a read-only transaction. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_READ', 2); +define('IBASE_READ', 2); /** * Starts a transaction with the isolation level set to 'read committed'. * This flag should be combined with either IBASE_REC_VERSION or IBASE_REC_NO_VERSION. @@ -1498,116 +1498,115 @@ function fbird_free_event_handler ($event) {} * If IBASE_REC_VERSION was specified, a row can even be read when a modification to it is pending in a concurrent transaction. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_COMMITTED', 8); +define('IBASE_COMMITTED', 8); /** * Starts a transaction with the isolation level set to 'consistency', * which means the transaction cannot read from tables that are being modified by other concurrent transactions. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_CONSISTENCY', 16); +define('IBASE_CONSISTENCY', 16); /** * Starts a transaction with the isolation level set to 'concurrency' (or 'snapshot'), * which means the transaction has access to all tables, * but cannot see changes that were committed by other transactions after the transaction was started. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_CONCURRENCY', 4); +define('IBASE_CONCURRENCY', 4); /** * Row can even be read when a modification to it is pending in a concurrent transaction. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_REC_VERSION', 64); +define('IBASE_REC_VERSION', 64); /** * Only the latest version of a row can be read * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_REC_NO_VERSION', 32); +define('IBASE_REC_NO_VERSION', 32); /** * Indicated that a transaction should fail immediately when a conflict occurs. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_NOWAIT', 256); +define('IBASE_NOWAIT', 256); /** * Indicated that a transaction should wait and retry when a conflict occurs. * @link https://www.php.net/manual/en/ibase.constants.php */ -define ('IBASE_WAIT', 128); -define ('IBASE_BKP_IGNORE_CHECKSUMS', 1); -define ('IBASE_BKP_IGNORE_LIMBO', 2); -define ('IBASE_BKP_METADATA_ONLY', 4); -define ('IBASE_BKP_NO_GARBAGE_COLLECT', 8); -define ('IBASE_BKP_OLD_DESCRIPTIONS', 16); -define ('IBASE_BKP_NON_TRANSPORTABLE', 32); +define('IBASE_WAIT', 128); +define('IBASE_BKP_IGNORE_CHECKSUMS', 1); +define('IBASE_BKP_IGNORE_LIMBO', 2); +define('IBASE_BKP_METADATA_ONLY', 4); +define('IBASE_BKP_NO_GARBAGE_COLLECT', 8); +define('IBASE_BKP_OLD_DESCRIPTIONS', 16); +define('IBASE_BKP_NON_TRANSPORTABLE', 32); /** * Options to ibase_backup * @link https://php.net/manual/en/ibase.constants.php */ -define ('IBASE_BKP_CONVERT', 64); -define ('IBASE_RES_DEACTIVATE_IDX', 256); -define ('IBASE_RES_NO_SHADOW', 512); -define ('IBASE_RES_NO_VALIDITY', 1024); -define ('IBASE_RES_ONE_AT_A_TIME', 2048); -define ('IBASE_RES_REPLACE', 4096); -define ('IBASE_RES_CREATE', 8192); +define('IBASE_BKP_CONVERT', 64); +define('IBASE_RES_DEACTIVATE_IDX', 256); +define('IBASE_RES_NO_SHADOW', 512); +define('IBASE_RES_NO_VALIDITY', 1024); +define('IBASE_RES_ONE_AT_A_TIME', 2048); +define('IBASE_RES_REPLACE', 4096); +define('IBASE_RES_CREATE', 8192); /** * Options to ibase_restore * @link https://php.net/manual/en/ibase.constants.php */ -define ('IBASE_RES_USE_ALL_SPACE', 16384); -define ('IBASE_PRP_PAGE_BUFFERS', 5); -define ('IBASE_PRP_SWEEP_INTERVAL', 6); -define ('IBASE_PRP_SHUTDOWN_DB', 7); -define ('IBASE_PRP_DENY_NEW_TRANSACTIONS', 10); -define ('IBASE_PRP_DENY_NEW_ATTACHMENTS', 9); -define ('IBASE_PRP_RESERVE_SPACE', 11); -define ('IBASE_PRP_RES_USE_FULL', 35); -define ('IBASE_PRP_RES', 36); -define ('IBASE_PRP_WRITE_MODE', 12); -define ('IBASE_PRP_WM_ASYNC', 37); -define ('IBASE_PRP_WM_SYNC', 38); -define ('IBASE_PRP_ACCESS_MODE', 13); -define ('IBASE_PRP_AM_READONLY', 39); -define ('IBASE_PRP_AM_READWRITE', 40); -define ('IBASE_PRP_SET_SQL_DIALECT', 14); -define ('IBASE_PRP_ACTIVATE', 256); -define ('IBASE_PRP_DB_ONLINE', 512); -define ('IBASE_RPR_CHECK_DB', 16); -define ('IBASE_RPR_IGNORE_CHECKSUM', 32); -define ('IBASE_RPR_KILL_SHADOWS', 64); -define ('IBASE_RPR_MEND_DB', 4); -define ('IBASE_RPR_VALIDATE_DB', 1); -define ('IBASE_RPR_FULL', 128); +define('IBASE_RES_USE_ALL_SPACE', 16384); +define('IBASE_PRP_PAGE_BUFFERS', 5); +define('IBASE_PRP_SWEEP_INTERVAL', 6); +define('IBASE_PRP_SHUTDOWN_DB', 7); +define('IBASE_PRP_DENY_NEW_TRANSACTIONS', 10); +define('IBASE_PRP_DENY_NEW_ATTACHMENTS', 9); +define('IBASE_PRP_RESERVE_SPACE', 11); +define('IBASE_PRP_RES_USE_FULL', 35); +define('IBASE_PRP_RES', 36); +define('IBASE_PRP_WRITE_MODE', 12); +define('IBASE_PRP_WM_ASYNC', 37); +define('IBASE_PRP_WM_SYNC', 38); +define('IBASE_PRP_ACCESS_MODE', 13); +define('IBASE_PRP_AM_READONLY', 39); +define('IBASE_PRP_AM_READWRITE', 40); +define('IBASE_PRP_SET_SQL_DIALECT', 14); +define('IBASE_PRP_ACTIVATE', 256); +define('IBASE_PRP_DB_ONLINE', 512); +define('IBASE_RPR_CHECK_DB', 16); +define('IBASE_RPR_IGNORE_CHECKSUM', 32); +define('IBASE_RPR_KILL_SHADOWS', 64); +define('IBASE_RPR_MEND_DB', 4); +define('IBASE_RPR_VALIDATE_DB', 1); +define('IBASE_RPR_FULL', 128); /** * Options to ibase_maintain_db * @link https://php.net/manual/en/ibase.constants.php */ -define ('IBASE_RPR_SWEEP_DB', 2); -define ('IBASE_STS_DATA_PAGES', 1); -define ('IBASE_STS_DB_LOG', 2); -define ('IBASE_STS_HDR_PAGES', 4); -define ('IBASE_STS_IDX_PAGES', 8); +define('IBASE_RPR_SWEEP_DB', 2); +define('IBASE_STS_DATA_PAGES', 1); +define('IBASE_STS_DB_LOG', 2); +define('IBASE_STS_HDR_PAGES', 4); +define('IBASE_STS_IDX_PAGES', 8); /** * Options to ibase_db_info * @link https://php.net/manual/en/ibase.constants.php */ -define ('IBASE_STS_SYS_RELATIONS', 16); -define ('IBASE_SVC_SERVER_VERSION', 55); -define ('IBASE_SVC_IMPLEMENTATION', 56); -define ('IBASE_SVC_GET_ENV', 59); -define ('IBASE_SVC_GET_ENV_LOCK', 60); -define ('IBASE_SVC_GET_ENV_MSG', 61); -define ('IBASE_SVC_USER_DBPATH', 58); -define ('IBASE_SVC_SVR_DB_INFO', 50); +define('IBASE_STS_SYS_RELATIONS', 16); +define('IBASE_SVC_SERVER_VERSION', 55); +define('IBASE_SVC_IMPLEMENTATION', 56); +define('IBASE_SVC_GET_ENV', 59); +define('IBASE_SVC_GET_ENV_LOCK', 60); +define('IBASE_SVC_GET_ENV_MSG', 61); +define('IBASE_SVC_USER_DBPATH', 58); +define('IBASE_SVC_SVR_DB_INFO', 50); /** * Options to ibase_server_info * @link https://php.net/manual/en/ibase.constants.php */ -define ('IBASE_SVC_GET_USERS', 68); +define('IBASE_SVC_GET_USERS', 68); // End of interbase v. -?> diff --git a/intl/IntlChar.php b/intl/IntlChar.php index 6d4d54aa3..db7186627 100644 --- a/intl/IntlChar.php +++ b/intl/IntlChar.php @@ -7,670 +7,671 @@ *

    The methods and constants adhere closely to the names and behavior used by the underlying ICU library.

    * @since 7.0 */ -class IntlChar { - const UNICODE_VERSION = 13.0; - const CODEPOINT_MIN = 0; - const CODEPOINT_MAX = 1114111; - const FOLD_CASE_DEFAULT = 0; - const FOLD_CASE_EXCLUDE_SPECIAL_I = 1; - const PROPERTY_ALPHABETIC = 0; - const PROPERTY_BINARY_START = 0; - const PROPERTY_ASCII_HEX_DIGIT = 1; - const PROPERTY_BIDI_CONTROL = 2; - const PROPERTY_BIDI_MIRRORED = 3; - const PROPERTY_DASH = 4; - const PROPERTY_DEFAULT_IGNORABLE_CODE_POINT = 5; - const PROPERTY_DEPRECATED = 6; - const PROPERTY_DIACRITIC = 7; - const PROPERTY_EXTENDER = 8; - const PROPERTY_FULL_COMPOSITION_EXCLUSION = 9; - const PROPERTY_GRAPHEME_BASE = 10; - const PROPERTY_GRAPHEME_EXTEND = 11; - const PROPERTY_GRAPHEME_LINK = 12; - const PROPERTY_HEX_DIGIT = 13; - const PROPERTY_HYPHEN = 14; - const PROPERTY_ID_CONTINUE = 15; - const PROPERTY_ID_START = 16; - const PROPERTY_IDEOGRAPHIC = 17; - const PROPERTY_IDS_BINARY_OPERATOR = 18; - const PROPERTY_IDS_TRINARY_OPERATOR = 19; - const PROPERTY_JOIN_CONTROL = 20; - const PROPERTY_LOGICAL_ORDER_EXCEPTION = 21; - const PROPERTY_LOWERCASE = 22; - const PROPERTY_MATH = 23; - const PROPERTY_NONCHARACTER_CODE_POINT = 24; - const PROPERTY_QUOTATION_MARK = 25; - const PROPERTY_RADICAL = 26; - const PROPERTY_SOFT_DOTTED = 27; - const PROPERTY_TERMINAL_PUNCTUATION = 28; - const PROPERTY_UNIFIED_IDEOGRAPH = 29; - const PROPERTY_UPPERCASE = 30; - const PROPERTY_WHITE_SPACE = 31; - const PROPERTY_XID_CONTINUE = 32; - const PROPERTY_XID_START = 33; - const PROPERTY_CASE_SENSITIVE = 34; - const PROPERTY_S_TERM = 35; - const PROPERTY_VARIATION_SELECTOR = 36; - const PROPERTY_NFD_INERT = 37; - const PROPERTY_NFKD_INERT = 38; - const PROPERTY_NFC_INERT = 39; - const PROPERTY_NFKC_INERT = 40; - const PROPERTY_SEGMENT_STARTER = 41; - const PROPERTY_PATTERN_SYNTAX = 42; - const PROPERTY_PATTERN_WHITE_SPACE = 43; - const PROPERTY_POSIX_ALNUM = 44; - const PROPERTY_POSIX_BLANK = 45; - const PROPERTY_POSIX_GRAPH = 46; - const PROPERTY_POSIX_PRINT = 47; - const PROPERTY_POSIX_XDIGIT = 48; - const PROPERTY_CASED = 49; - const PROPERTY_CASE_IGNORABLE = 50; - const PROPERTY_CHANGES_WHEN_LOWERCASED = 51; - const PROPERTY_CHANGES_WHEN_UPPERCASED = 52; - const PROPERTY_CHANGES_WHEN_TITLECASED = 53; - const PROPERTY_CHANGES_WHEN_CASEFOLDED = 54; - const PROPERTY_CHANGES_WHEN_CASEMAPPED = 55; - const PROPERTY_CHANGES_WHEN_NFKC_CASEFOLDED = 56; - const PROPERTY_BINARY_LIMIT = 65; - const PROPERTY_BIDI_CLASS = 4096; - const PROPERTY_INT_START = 4096; - const PROPERTY_BLOCK = 4097; - const PROPERTY_CANONICAL_COMBINING_CLASS = 4098; - const PROPERTY_DECOMPOSITION_TYPE = 4099; - const PROPERTY_EAST_ASIAN_WIDTH = 4100; - const PROPERTY_GENERAL_CATEGORY = 4101; - const PROPERTY_JOINING_GROUP = 4102; - const PROPERTY_JOINING_TYPE = 4103; - const PROPERTY_LINE_BREAK = 4104; - const PROPERTY_NUMERIC_TYPE = 4105; - const PROPERTY_SCRIPT = 4106; - const PROPERTY_HANGUL_SYLLABLE_TYPE = 4107; - const PROPERTY_NFD_QUICK_CHECK = 4108; - const PROPERTY_NFKD_QUICK_CHECK = 4109; - const PROPERTY_NFC_QUICK_CHECK = 4110; - const PROPERTY_NFKC_QUICK_CHECK = 4111; - const PROPERTY_LEAD_CANONICAL_COMBINING_CLASS = 4112; - const PROPERTY_TRAIL_CANONICAL_COMBINING_CLASS = 4113; - const PROPERTY_GRAPHEME_CLUSTER_BREAK = 4114; - const PROPERTY_SENTENCE_BREAK = 4115; - const PROPERTY_WORD_BREAK = 4116; - const PROPERTY_BIDI_PAIRED_BRACKET_TYPE = 4117; - const PROPERTY_INT_LIMIT = 4121; - const PROPERTY_GENERAL_CATEGORY_MASK = 8192; - const PROPERTY_MASK_START = 8192; - const PROPERTY_MASK_LIMIT = 8193; - const PROPERTY_NUMERIC_VALUE = 12288; - const PROPERTY_DOUBLE_START = 12288; - const PROPERTY_DOUBLE_LIMIT = 12289; - const PROPERTY_AGE = 16384; - const PROPERTY_STRING_START = 16384; - const PROPERTY_BIDI_MIRRORING_GLYPH = 16385; - const PROPERTY_CASE_FOLDING = 16386; - const PROPERTY_ISO_COMMENT = 16387; - const PROPERTY_LOWERCASE_MAPPING = 16388; - const PROPERTY_NAME = 16389; - const PROPERTY_SIMPLE_CASE_FOLDING = 16390; - const PROPERTY_SIMPLE_LOWERCASE_MAPPING = 16391; - const PROPERTY_SIMPLE_TITLECASE_MAPPING = 16392; - const PROPERTY_SIMPLE_UPPERCASE_MAPPING = 16393; - const PROPERTY_TITLECASE_MAPPING = 16394; - const PROPERTY_UNICODE_1_NAME = 16395; - const PROPERTY_UPPERCASE_MAPPING = 16396; - const PROPERTY_BIDI_PAIRED_BRACKET = 16397; - const PROPERTY_STRING_LIMIT = 16398; - const PROPERTY_SCRIPT_EXTENSIONS = 28672; - const PROPERTY_OTHER_PROPERTY_START = 28672; - const PROPERTY_OTHER_PROPERTY_LIMIT = 28673; - const PROPERTY_INVALID_CODE = -1; - const CHAR_CATEGORY_UNASSIGNED = 0; - const CHAR_CATEGORY_GENERAL_OTHER_TYPES = 0; - const CHAR_CATEGORY_UPPERCASE_LETTER = 1; - const CHAR_CATEGORY_LOWERCASE_LETTER = 2; - const CHAR_CATEGORY_TITLECASE_LETTER = 3; - const CHAR_CATEGORY_MODIFIER_LETTER = 4; - const CHAR_CATEGORY_OTHER_LETTER = 5; - const CHAR_CATEGORY_NON_SPACING_MARK = 6; - const CHAR_CATEGORY_ENCLOSING_MARK = 7; - const CHAR_CATEGORY_COMBINING_SPACING_MARK = 8; - const CHAR_CATEGORY_DECIMAL_DIGIT_NUMBER = 9; - const CHAR_CATEGORY_LETTER_NUMBER = 10; - const CHAR_CATEGORY_OTHER_NUMBER = 11; - const CHAR_CATEGORY_SPACE_SEPARATOR = 12; - const CHAR_CATEGORY_LINE_SEPARATOR = 13; - const CHAR_CATEGORY_PARAGRAPH_SEPARATOR = 14; - const CHAR_CATEGORY_CONTROL_CHAR = 15; - const CHAR_CATEGORY_FORMAT_CHAR = 16; - const CHAR_CATEGORY_PRIVATE_USE_CHAR = 17; - const CHAR_CATEGORY_SURROGATE = 18; - const CHAR_CATEGORY_DASH_PUNCTUATION = 19; - const CHAR_CATEGORY_START_PUNCTUATION = 20; - const CHAR_CATEGORY_END_PUNCTUATION = 21; - const CHAR_CATEGORY_CONNECTOR_PUNCTUATION = 22; - const CHAR_CATEGORY_OTHER_PUNCTUATION = 23; - const CHAR_CATEGORY_MATH_SYMBOL = 24; - const CHAR_CATEGORY_CURRENCY_SYMBOL = 25; - const CHAR_CATEGORY_MODIFIER_SYMBOL = 26; - const CHAR_CATEGORY_OTHER_SYMBOL = 27; - const CHAR_CATEGORY_INITIAL_PUNCTUATION = 28; - const CHAR_CATEGORY_FINAL_PUNCTUATION = 29; - const CHAR_CATEGORY_CHAR_CATEGORY_COUNT = 30; - const CHAR_DIRECTION_LEFT_TO_RIGHT = 0; - const CHAR_DIRECTION_RIGHT_TO_LEFT = 1; - const CHAR_DIRECTION_EUROPEAN_NUMBER = 2; - const CHAR_DIRECTION_EUROPEAN_NUMBER_SEPARATOR = 3; - const CHAR_DIRECTION_EUROPEAN_NUMBER_TERMINATOR = 4; - const CHAR_DIRECTION_ARABIC_NUMBER = 5; - const CHAR_DIRECTION_COMMON_NUMBER_SEPARATOR = 6; - const CHAR_DIRECTION_BLOCK_SEPARATOR = 7; - const CHAR_DIRECTION_SEGMENT_SEPARATOR = 8; - const CHAR_DIRECTION_WHITE_SPACE_NEUTRAL = 9; - const CHAR_DIRECTION_OTHER_NEUTRAL = 10; - const CHAR_DIRECTION_LEFT_TO_RIGHT_EMBEDDING = 11; - const CHAR_DIRECTION_LEFT_TO_RIGHT_OVERRIDE = 12; - const CHAR_DIRECTION_RIGHT_TO_LEFT_ARABIC = 13; - const CHAR_DIRECTION_RIGHT_TO_LEFT_EMBEDDING = 14; - const CHAR_DIRECTION_RIGHT_TO_LEFT_OVERRIDE = 15; - const CHAR_DIRECTION_POP_DIRECTIONAL_FORMAT = 16; - const CHAR_DIRECTION_DIR_NON_SPACING_MARK = 17; - const CHAR_DIRECTION_BOUNDARY_NEUTRAL = 18; - const CHAR_DIRECTION_FIRST_STRONG_ISOLATE = 19; - const CHAR_DIRECTION_LEFT_TO_RIGHT_ISOLATE = 20; - const CHAR_DIRECTION_RIGHT_TO_LEFT_ISOLATE = 21; - const CHAR_DIRECTION_POP_DIRECTIONAL_ISOLATE = 22; - const CHAR_DIRECTION_CHAR_DIRECTION_COUNT = 23; - const BLOCK_CODE_NO_BLOCK = 0; - const BLOCK_CODE_BASIC_LATIN = 1; - const BLOCK_CODE_LATIN_1_SUPPLEMENT = 2; - const BLOCK_CODE_LATIN_EXTENDED_A = 3; - const BLOCK_CODE_LATIN_EXTENDED_B = 4; - const BLOCK_CODE_IPA_EXTENSIONS = 5; - const BLOCK_CODE_SPACING_MODIFIER_LETTERS = 6; - const BLOCK_CODE_COMBINING_DIACRITICAL_MARKS = 7; - const BLOCK_CODE_GREEK = 8; - const BLOCK_CODE_CYRILLIC = 9; - const BLOCK_CODE_ARMENIAN = 10; - const BLOCK_CODE_HEBREW = 11; - const BLOCK_CODE_ARABIC = 12; - const BLOCK_CODE_SYRIAC = 13; - const BLOCK_CODE_THAANA = 14; - const BLOCK_CODE_DEVANAGARI = 15; - const BLOCK_CODE_BENGALI = 16; - const BLOCK_CODE_GURMUKHI = 17; - const BLOCK_CODE_GUJARATI = 18; - const BLOCK_CODE_ORIYA = 19; - const BLOCK_CODE_TAMIL = 20; - const BLOCK_CODE_TELUGU = 21; - const BLOCK_CODE_KANNADA = 22; - const BLOCK_CODE_MALAYALAM = 23; - const BLOCK_CODE_SINHALA = 24; - const BLOCK_CODE_THAI = 25; - const BLOCK_CODE_LAO = 26; - const BLOCK_CODE_TIBETAN = 27; - const BLOCK_CODE_MYANMAR = 28; - const BLOCK_CODE_GEORGIAN = 29; - const BLOCK_CODE_HANGUL_JAMO = 30; - const BLOCK_CODE_ETHIOPIC = 31; - const BLOCK_CODE_CHEROKEE = 32; - const BLOCK_CODE_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS = 33; - const BLOCK_CODE_OGHAM = 34; - const BLOCK_CODE_RUNIC = 35; - const BLOCK_CODE_KHMER = 36; - const BLOCK_CODE_MONGOLIAN = 37; - const BLOCK_CODE_LATIN_EXTENDED_ADDITIONAL = 38; - const BLOCK_CODE_GREEK_EXTENDED = 39; - const BLOCK_CODE_GENERAL_PUNCTUATION = 40; - const BLOCK_CODE_SUPERSCRIPTS_AND_SUBSCRIPTS = 41; - const BLOCK_CODE_CURRENCY_SYMBOLS = 42; - const BLOCK_CODE_COMBINING_MARKS_FOR_SYMBOLS = 43; - const BLOCK_CODE_LETTERLIKE_SYMBOLS = 44; - const BLOCK_CODE_NUMBER_FORMS = 45; - const BLOCK_CODE_ARROWS = 46; - const BLOCK_CODE_MATHEMATICAL_OPERATORS = 47; - const BLOCK_CODE_MISCELLANEOUS_TECHNICAL = 48; - const BLOCK_CODE_CONTROL_PICTURES = 49; - const BLOCK_CODE_OPTICAL_CHARACTER_RECOGNITION = 50; - const BLOCK_CODE_ENCLOSED_ALPHANUMERICS = 51; - const BLOCK_CODE_BOX_DRAWING = 52; - const BLOCK_CODE_BLOCK_ELEMENTS = 53; - const BLOCK_CODE_GEOMETRIC_SHAPES = 54; - const BLOCK_CODE_MISCELLANEOUS_SYMBOLS = 55; - const BLOCK_CODE_DINGBATS = 56; - const BLOCK_CODE_BRAILLE_PATTERNS = 57; - const BLOCK_CODE_CJK_RADICALS_SUPPLEMENT = 58; - const BLOCK_CODE_KANGXI_RADICALS = 59; - const BLOCK_CODE_IDEOGRAPHIC_DESCRIPTION_CHARACTERS = 60; - const BLOCK_CODE_CJK_SYMBOLS_AND_PUNCTUATION = 61; - const BLOCK_CODE_HIRAGANA = 62; - const BLOCK_CODE_KATAKANA = 63; - const BLOCK_CODE_BOPOMOFO = 64; - const BLOCK_CODE_HANGUL_COMPATIBILITY_JAMO = 65; - const BLOCK_CODE_KANBUN = 66; - const BLOCK_CODE_BOPOMOFO_EXTENDED = 67; - const BLOCK_CODE_ENCLOSED_CJK_LETTERS_AND_MONTHS = 68; - const BLOCK_CODE_CJK_COMPATIBILITY = 69; - const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A = 70; - const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS = 71; - const BLOCK_CODE_YI_SYLLABLES = 72; - const BLOCK_CODE_YI_RADICALS = 73; - const BLOCK_CODE_HANGUL_SYLLABLES = 74; - const BLOCK_CODE_HIGH_SURROGATES = 75; - const BLOCK_CODE_HIGH_PRIVATE_USE_SURROGATES = 76; - const BLOCK_CODE_LOW_SURROGATES = 77; - const BLOCK_CODE_PRIVATE_USE_AREA = 78; - const BLOCK_CODE_PRIVATE_USE = 78; - const BLOCK_CODE_CJK_COMPATIBILITY_IDEOGRAPHS = 79; - const BLOCK_CODE_ALPHABETIC_PRESENTATION_FORMS = 80; - const BLOCK_CODE_ARABIC_PRESENTATION_FORMS_A = 81; - const BLOCK_CODE_COMBINING_HALF_MARKS = 82; - const BLOCK_CODE_CJK_COMPATIBILITY_FORMS = 83; - const BLOCK_CODE_SMALL_FORM_VARIANTS = 84; - const BLOCK_CODE_ARABIC_PRESENTATION_FORMS_B = 85; - const BLOCK_CODE_SPECIALS = 86; - const BLOCK_CODE_HALFWIDTH_AND_FULLWIDTH_FORMS = 87; - const BLOCK_CODE_OLD_ITALIC = 88; - const BLOCK_CODE_GOTHIC = 89; - const BLOCK_CODE_DESERET = 90; - const BLOCK_CODE_BYZANTINE_MUSICAL_SYMBOLS = 91; - const BLOCK_CODE_MUSICAL_SYMBOLS = 92; - const BLOCK_CODE_MATHEMATICAL_ALPHANUMERIC_SYMBOLS = 93; - const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B = 94; - const BLOCK_CODE_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = 95; - const BLOCK_CODE_TAGS = 96; - const BLOCK_CODE_CYRILLIC_SUPPLEMENT = 97; - const BLOCK_CODE_CYRILLIC_SUPPLEMENTARY = 97; - const BLOCK_CODE_TAGALOG = 98; - const BLOCK_CODE_HANUNOO = 99; - const BLOCK_CODE_BUHID = 100; - const BLOCK_CODE_TAGBANWA = 101; - const BLOCK_CODE_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = 102; - const BLOCK_CODE_SUPPLEMENTAL_ARROWS_A = 103; - const BLOCK_CODE_SUPPLEMENTAL_ARROWS_B = 104; - const BLOCK_CODE_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = 105; - const BLOCK_CODE_SUPPLEMENTAL_MATHEMATICAL_OPERATORS = 106; - const BLOCK_CODE_KATAKANA_PHONETIC_EXTENSIONS = 107; - const BLOCK_CODE_VARIATION_SELECTORS = 108; - const BLOCK_CODE_SUPPLEMENTARY_PRIVATE_USE_AREA_A = 109; - const BLOCK_CODE_SUPPLEMENTARY_PRIVATE_USE_AREA_B = 110; - const BLOCK_CODE_LIMBU = 111; - const BLOCK_CODE_TAI_LE = 112; - const BLOCK_CODE_KHMER_SYMBOLS = 113; - const BLOCK_CODE_PHONETIC_EXTENSIONS = 114; - const BLOCK_CODE_MISCELLANEOUS_SYMBOLS_AND_ARROWS = 115; - const BLOCK_CODE_YIJING_HEXAGRAM_SYMBOLS = 116; - const BLOCK_CODE_LINEAR_B_SYLLABARY = 117; - const BLOCK_CODE_LINEAR_B_IDEOGRAMS = 118; - const BLOCK_CODE_AEGEAN_NUMBERS = 119; - const BLOCK_CODE_UGARITIC = 120; - const BLOCK_CODE_SHAVIAN = 121; - const BLOCK_CODE_OSMANYA = 122; - const BLOCK_CODE_CYPRIOT_SYLLABARY = 123; - const BLOCK_CODE_TAI_XUAN_JING_SYMBOLS = 124; - const BLOCK_CODE_VARIATION_SELECTORS_SUPPLEMENT = 125; - const BLOCK_CODE_ANCIENT_GREEK_MUSICAL_NOTATION = 126; - const BLOCK_CODE_ANCIENT_GREEK_NUMBERS = 127; - const BLOCK_CODE_ARABIC_SUPPLEMENT = 128; - const BLOCK_CODE_BUGINESE = 129; - const BLOCK_CODE_CJK_STROKES = 130; - const BLOCK_CODE_COMBINING_DIACRITICAL_MARKS_SUPPLEMENT = 131; - const BLOCK_CODE_COPTIC = 132; - const BLOCK_CODE_ETHIOPIC_EXTENDED = 133; - const BLOCK_CODE_ETHIOPIC_SUPPLEMENT = 134; - const BLOCK_CODE_GEORGIAN_SUPPLEMENT = 135; - const BLOCK_CODE_GLAGOLITIC = 136; - const BLOCK_CODE_KHAROSHTHI = 137; - const BLOCK_CODE_MODIFIER_TONE_LETTERS = 138; - const BLOCK_CODE_NEW_TAI_LUE = 139; - const BLOCK_CODE_OLD_PERSIAN = 140; - const BLOCK_CODE_PHONETIC_EXTENSIONS_SUPPLEMENT = 141; - const BLOCK_CODE_SUPPLEMENTAL_PUNCTUATION = 142; - const BLOCK_CODE_SYLOTI_NAGRI = 143; - const BLOCK_CODE_TIFINAGH = 144; - const BLOCK_CODE_VERTICAL_FORMS = 145; - const BLOCK_CODE_NKO = 146; - const BLOCK_CODE_BALINESE = 147; - const BLOCK_CODE_LATIN_EXTENDED_C = 148; - const BLOCK_CODE_LATIN_EXTENDED_D = 149; - const BLOCK_CODE_PHAGS_PA = 150; - const BLOCK_CODE_PHOENICIAN = 151; - const BLOCK_CODE_CUNEIFORM = 152; - const BLOCK_CODE_CUNEIFORM_NUMBERS_AND_PUNCTUATION = 153; - const BLOCK_CODE_COUNTING_ROD_NUMERALS = 154; - const BLOCK_CODE_SUNDANESE = 155; - const BLOCK_CODE_LEPCHA = 156; - const BLOCK_CODE_OL_CHIKI = 157; - const BLOCK_CODE_CYRILLIC_EXTENDED_A = 158; - const BLOCK_CODE_VAI = 159; - const BLOCK_CODE_CYRILLIC_EXTENDED_B = 160; - const BLOCK_CODE_SAURASHTRA = 161; - const BLOCK_CODE_KAYAH_LI = 162; - const BLOCK_CODE_REJANG = 163; - const BLOCK_CODE_CHAM = 164; - const BLOCK_CODE_ANCIENT_SYMBOLS = 165; - const BLOCK_CODE_PHAISTOS_DISC = 166; - const BLOCK_CODE_LYCIAN = 167; - const BLOCK_CODE_CARIAN = 168; - const BLOCK_CODE_LYDIAN = 169; - const BLOCK_CODE_MAHJONG_TILES = 170; - const BLOCK_CODE_DOMINO_TILES = 171; - const BLOCK_CODE_SAMARITAN = 172; - const BLOCK_CODE_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = 173; - const BLOCK_CODE_TAI_THAM = 174; - const BLOCK_CODE_VEDIC_EXTENSIONS = 175; - const BLOCK_CODE_LISU = 176; - const BLOCK_CODE_BAMUM = 177; - const BLOCK_CODE_COMMON_INDIC_NUMBER_FORMS = 178; - const BLOCK_CODE_DEVANAGARI_EXTENDED = 179; - const BLOCK_CODE_HANGUL_JAMO_EXTENDED_A = 180; - const BLOCK_CODE_JAVANESE = 181; - const BLOCK_CODE_MYANMAR_EXTENDED_A = 182; - const BLOCK_CODE_TAI_VIET = 183; - const BLOCK_CODE_MEETEI_MAYEK = 184; - const BLOCK_CODE_HANGUL_JAMO_EXTENDED_B = 185; - const BLOCK_CODE_IMPERIAL_ARAMAIC = 186; - const BLOCK_CODE_OLD_SOUTH_ARABIAN = 187; - const BLOCK_CODE_AVESTAN = 188; - const BLOCK_CODE_INSCRIPTIONAL_PARTHIAN = 189; - const BLOCK_CODE_INSCRIPTIONAL_PAHLAVI = 190; - const BLOCK_CODE_OLD_TURKIC = 191; - const BLOCK_CODE_RUMI_NUMERAL_SYMBOLS = 192; - const BLOCK_CODE_KAITHI = 193; - const BLOCK_CODE_EGYPTIAN_HIEROGLYPHS = 194; - const BLOCK_CODE_ENCLOSED_ALPHANUMERIC_SUPPLEMENT = 195; - const BLOCK_CODE_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = 196; - const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = 197; - const BLOCK_CODE_MANDAIC = 198; - const BLOCK_CODE_BATAK = 199; - const BLOCK_CODE_ETHIOPIC_EXTENDED_A = 200; - const BLOCK_CODE_BRAHMI = 201; - const BLOCK_CODE_BAMUM_SUPPLEMENT = 202; - const BLOCK_CODE_KANA_SUPPLEMENT = 203; - const BLOCK_CODE_PLAYING_CARDS = 204; - const BLOCK_CODE_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS = 205; - const BLOCK_CODE_EMOTICONS = 206; - const BLOCK_CODE_TRANSPORT_AND_MAP_SYMBOLS = 207; - const BLOCK_CODE_ALCHEMICAL_SYMBOLS = 208; - const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D = 209; - const BLOCK_CODE_ARABIC_EXTENDED_A = 210; - const BLOCK_CODE_ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS = 211; - const BLOCK_CODE_CHAKMA = 212; - const BLOCK_CODE_MEETEI_MAYEK_EXTENSIONS = 213; - const BLOCK_CODE_MEROITIC_CURSIVE = 214; - const BLOCK_CODE_MEROITIC_HIEROGLYPHS = 215; - const BLOCK_CODE_MIAO = 216; - const BLOCK_CODE_SHARADA = 217; - const BLOCK_CODE_SORA_SOMPENG = 218; - const BLOCK_CODE_SUNDANESE_SUPPLEMENT = 219; - const BLOCK_CODE_TAKRI = 220; - const BLOCK_CODE_BASSA_VAH = 221; - const BLOCK_CODE_CAUCASIAN_ALBANIAN = 222; - const BLOCK_CODE_COPTIC_EPACT_NUMBERS = 223; - const BLOCK_CODE_COMBINING_DIACRITICAL_MARKS_EXTENDED = 224; - const BLOCK_CODE_DUPLOYAN = 225; - const BLOCK_CODE_ELBASAN = 226; - const BLOCK_CODE_GEOMETRIC_SHAPES_EXTENDED = 227; - const BLOCK_CODE_GRANTHA = 228; - const BLOCK_CODE_KHOJKI = 229; - const BLOCK_CODE_KHUDAWADI = 230; - const BLOCK_CODE_LATIN_EXTENDED_E = 231; - const BLOCK_CODE_LINEAR_A = 232; - const BLOCK_CODE_MAHAJANI = 233; - const BLOCK_CODE_MANICHAEAN = 234; - const BLOCK_CODE_MENDE_KIKAKUI = 235; - const BLOCK_CODE_MODI = 236; - const BLOCK_CODE_MRO = 237; - const BLOCK_CODE_MYANMAR_EXTENDED_B = 238; - const BLOCK_CODE_NABATAEAN = 239; - const BLOCK_CODE_OLD_NORTH_ARABIAN = 240; - const BLOCK_CODE_OLD_PERMIC = 241; - const BLOCK_CODE_ORNAMENTAL_DINGBATS = 242; - const BLOCK_CODE_PAHAWH_HMONG = 243; - const BLOCK_CODE_PALMYRENE = 244; - const BLOCK_CODE_PAU_CIN_HAU = 245; - const BLOCK_CODE_PSALTER_PAHLAVI = 246; - const BLOCK_CODE_SHORTHAND_FORMAT_CONTROLS = 247; - const BLOCK_CODE_SIDDHAM = 248; - const BLOCK_CODE_SINHALA_ARCHAIC_NUMBERS = 249; - const BLOCK_CODE_SUPPLEMENTAL_ARROWS_C = 250; - const BLOCK_CODE_TIRHUTA = 251; - const BLOCK_CODE_WARANG_CITI = 252; - const BLOCK_CODE_COUNT = 309; - const BLOCK_CODE_INVALID_CODE = -1; - const BPT_NONE = 0; - const BPT_OPEN = 1; - const BPT_CLOSE = 2; - const BPT_COUNT = 3; - const EA_NEUTRAL = 0; - const EA_AMBIGUOUS = 1; - const EA_HALFWIDTH = 2; - const EA_FULLWIDTH = 3; - const EA_NARROW = 4; - const EA_WIDE = 5; - const EA_COUNT = 6; - const UNICODE_CHAR_NAME = 0; - const UNICODE_10_CHAR_NAME = 1; - const EXTENDED_CHAR_NAME = 2; - const CHAR_NAME_ALIAS = 3; - const CHAR_NAME_CHOICE_COUNT = 4; - const SHORT_PROPERTY_NAME = 0; - const LONG_PROPERTY_NAME = 1; - const PROPERTY_NAME_CHOICE_COUNT = 2; - const DT_NONE = 0; - const DT_CANONICAL = 1; - const DT_COMPAT = 2; - const DT_CIRCLE = 3; - const DT_FINAL = 4; - const DT_FONT = 5; - const DT_FRACTION = 6; - const DT_INITIAL = 7; - const DT_ISOLATED = 8; - const DT_MEDIAL = 9; - const DT_NARROW = 10; - const DT_NOBREAK = 11; - const DT_SMALL = 12; - const DT_SQUARE = 13; - const DT_SUB = 14; - const DT_SUPER = 15; - const DT_VERTICAL = 16; - const DT_WIDE = 17; - const DT_COUNT = 18; - const JT_NON_JOINING = 0; - const JT_JOIN_CAUSING = 1; - const JT_DUAL_JOINING = 2; - const JT_LEFT_JOINING = 3; - const JT_RIGHT_JOINING = 4; - const JT_TRANSPARENT = 5; - const JT_COUNT = 6; - const JG_NO_JOINING_GROUP = 0; - const JG_AIN = 1; - const JG_ALAPH = 2; - const JG_ALEF = 3; - const JG_BEH = 4; - const JG_BETH = 5; - const JG_DAL = 6; - const JG_DALATH_RISH = 7; - const JG_E = 8; - const JG_FEH = 9; - const JG_FINAL_SEMKATH = 10; - const JG_GAF = 11; - const JG_GAMAL = 12; - const JG_HAH = 13; - const JG_TEH_MARBUTA_GOAL = 14; - const JG_HAMZA_ON_HEH_GOAL = 14; - const JG_HE = 15; - const JG_HEH = 16; - const JG_HEH_GOAL = 17; - const JG_HETH = 18; - const JG_KAF = 19; - const JG_KAPH = 20; - const JG_KNOTTED_HEH = 21; - const JG_LAM = 22; - const JG_LAMADH = 23; - const JG_MEEM = 24; - const JG_MIM = 25; - const JG_NOON = 26; - const JG_NUN = 27; - const JG_PE = 28; - const JG_QAF = 29; - const JG_QAPH = 30; - const JG_REH = 31; - const JG_REVERSED_PE = 32; - const JG_SAD = 33; - const JG_SADHE = 34; - const JG_SEEN = 35; - const JG_SEMKATH = 36; - const JG_SHIN = 37; - const JG_SWASH_KAF = 38; - const JG_SYRIAC_WAW = 39; - const JG_TAH = 40; - const JG_TAW = 41; - const JG_TEH_MARBUTA = 42; - const JG_TETH = 43; - const JG_WAW = 44; - const JG_YEH = 45; - const JG_YEH_BARREE = 46; - const JG_YEH_WITH_TAIL = 47; - const JG_YUDH = 48; - const JG_YUDH_HE = 49; - const JG_ZAIN = 50; - const JG_FE = 51; - const JG_KHAPH = 52; - const JG_ZHAIN = 53; - const JG_BURUSHASKI_YEH_BARREE = 54; - const JG_FARSI_YEH = 55; - const JG_NYA = 56; - const JG_ROHINGYA_YEH = 57; - const JG_MANICHAEAN_ALEPH = 58; - const JG_MANICHAEAN_AYIN = 59; - const JG_MANICHAEAN_BETH = 60; - const JG_MANICHAEAN_DALETH = 61; - const JG_MANICHAEAN_DHAMEDH = 62; - const JG_MANICHAEAN_FIVE = 63; - const JG_MANICHAEAN_GIMEL = 64; - const JG_MANICHAEAN_HETH = 65; - const JG_MANICHAEAN_HUNDRED = 66; - const JG_MANICHAEAN_KAPH = 67; - const JG_MANICHAEAN_LAMEDH = 68; - const JG_MANICHAEAN_MEM = 69; - const JG_MANICHAEAN_NUN = 70; - const JG_MANICHAEAN_ONE = 71; - const JG_MANICHAEAN_PE = 72; - const JG_MANICHAEAN_QOPH = 73; - const JG_MANICHAEAN_RESH = 74; - const JG_MANICHAEAN_SADHE = 75; - const JG_MANICHAEAN_SAMEKH = 76; - const JG_MANICHAEAN_TAW = 77; - const JG_MANICHAEAN_TEN = 78; - const JG_MANICHAEAN_TETH = 79; - const JG_MANICHAEAN_THAMEDH = 80; - const JG_MANICHAEAN_TWENTY = 81; - const JG_MANICHAEAN_WAW = 82; - const JG_MANICHAEAN_YODH = 83; - const JG_MANICHAEAN_ZAYIN = 84; - const JG_STRAIGHT_WAW = 85; - const JG_COUNT = 102; - const GCB_OTHER = 0; - const GCB_CONTROL = 1; - const GCB_CR = 2; - const GCB_EXTEND = 3; - const GCB_L = 4; - const GCB_LF = 5; - const GCB_LV = 6; - const GCB_LVT = 7; - const GCB_T = 8; - const GCB_V = 9; - const GCB_SPACING_MARK = 10; - const GCB_PREPEND = 11; - const GCB_REGIONAL_INDICATOR = 12; - const GCB_COUNT = 18; - const WB_OTHER = 0; - const WB_ALETTER = 1; - const WB_FORMAT = 2; - const WB_KATAKANA = 3; - const WB_MIDLETTER = 4; - const WB_MIDNUM = 5; - const WB_NUMERIC = 6; - const WB_EXTENDNUMLET = 7; - const WB_CR = 8; - const WB_EXTEND = 9; - const WB_LF = 10; - const WB_MIDNUMLET = 11; - const WB_NEWLINE = 12; - const WB_REGIONAL_INDICATOR = 13; - const WB_HEBREW_LETTER = 14; - const WB_SINGLE_QUOTE = 15; - const WB_DOUBLE_QUOTE = 16; - const WB_COUNT = 23; - const SB_OTHER = 0; - const SB_ATERM = 1; - const SB_CLOSE = 2; - const SB_FORMAT = 3; - const SB_LOWER = 4; - const SB_NUMERIC = 5; - const SB_OLETTER = 6; - const SB_SEP = 7; - const SB_SP = 8; - const SB_STERM = 9; - const SB_UPPER = 10; - const SB_CR = 11; - const SB_EXTEND = 12; - const SB_LF = 13; - const SB_SCONTINUE = 14; - const SB_COUNT = 15; - const LB_UNKNOWN = 0; - const LB_AMBIGUOUS = 1; - const LB_ALPHABETIC = 2; - const LB_BREAK_BOTH = 3; - const LB_BREAK_AFTER = 4; - const LB_BREAK_BEFORE = 5; - const LB_MANDATORY_BREAK = 6; - const LB_CONTINGENT_BREAK = 7; - const LB_CLOSE_PUNCTUATION = 8; - const LB_COMBINING_MARK = 9; - const LB_CARRIAGE_RETURN = 10; - const LB_EXCLAMATION = 11; - const LB_GLUE = 12; - const LB_HYPHEN = 13; - const LB_IDEOGRAPHIC = 14; - const LB_INSEPARABLE = 15; - const LB_INSEPERABLE = 15; - const LB_INFIX_NUMERIC = 16; - const LB_LINE_FEED = 17; - const LB_NONSTARTER = 18; - const LB_NUMERIC = 19; - const LB_OPEN_PUNCTUATION = 20; - const LB_POSTFIX_NUMERIC = 21; - const LB_PREFIX_NUMERIC = 22; - const LB_QUOTATION = 23; - const LB_COMPLEX_CONTEXT = 24; - const LB_SURROGATE = 25; - const LB_SPACE = 26; - const LB_BREAK_SYMBOLS = 27; - const LB_ZWSPACE = 28; - const LB_NEXT_LINE = 29; - const LB_WORD_JOINER = 30; - const LB_H2 = 31; - const LB_H3 = 32; - const LB_JL = 33; - const LB_JT = 34; - const LB_JV = 35; - const LB_CLOSE_PARENTHESIS = 36; - const LB_CONDITIONAL_JAPANESE_STARTER = 37; - const LB_HEBREW_LETTER = 38; - const LB_REGIONAL_INDICATOR = 39; - const LB_COUNT = 43; - const NT_NONE = 0; - const NT_DECIMAL = 1; - const NT_DIGIT = 2; - const NT_NUMERIC = 3; - const NT_COUNT = 4; - const HST_NOT_APPLICABLE = 0; - const HST_LEADING_JAMO = 1; - const HST_VOWEL_JAMO = 2; - const HST_TRAILING_JAMO = 3; - const HST_LV_SYLLABLE = 4; - const HST_LVT_SYLLABLE = 5; - const HST_COUNT = 6; - const NO_NUMERIC_VALUE = -123456789; +class IntlChar +{ + public const UNICODE_VERSION = 13.0; + public const CODEPOINT_MIN = 0; + public const CODEPOINT_MAX = 1114111; + public const FOLD_CASE_DEFAULT = 0; + public const FOLD_CASE_EXCLUDE_SPECIAL_I = 1; + public const PROPERTY_ALPHABETIC = 0; + public const PROPERTY_BINARY_START = 0; + public const PROPERTY_ASCII_HEX_DIGIT = 1; + public const PROPERTY_BIDI_CONTROL = 2; + public const PROPERTY_BIDI_MIRRORED = 3; + public const PROPERTY_DASH = 4; + public const PROPERTY_DEFAULT_IGNORABLE_CODE_POINT = 5; + public const PROPERTY_DEPRECATED = 6; + public const PROPERTY_DIACRITIC = 7; + public const PROPERTY_EXTENDER = 8; + public const PROPERTY_FULL_COMPOSITION_EXCLUSION = 9; + public const PROPERTY_GRAPHEME_BASE = 10; + public const PROPERTY_GRAPHEME_EXTEND = 11; + public const PROPERTY_GRAPHEME_LINK = 12; + public const PROPERTY_HEX_DIGIT = 13; + public const PROPERTY_HYPHEN = 14; + public const PROPERTY_ID_CONTINUE = 15; + public const PROPERTY_ID_START = 16; + public const PROPERTY_IDEOGRAPHIC = 17; + public const PROPERTY_IDS_BINARY_OPERATOR = 18; + public const PROPERTY_IDS_TRINARY_OPERATOR = 19; + public const PROPERTY_JOIN_CONTROL = 20; + public const PROPERTY_LOGICAL_ORDER_EXCEPTION = 21; + public const PROPERTY_LOWERCASE = 22; + public const PROPERTY_MATH = 23; + public const PROPERTY_NONCHARACTER_CODE_POINT = 24; + public const PROPERTY_QUOTATION_MARK = 25; + public const PROPERTY_RADICAL = 26; + public const PROPERTY_SOFT_DOTTED = 27; + public const PROPERTY_TERMINAL_PUNCTUATION = 28; + public const PROPERTY_UNIFIED_IDEOGRAPH = 29; + public const PROPERTY_UPPERCASE = 30; + public const PROPERTY_WHITE_SPACE = 31; + public const PROPERTY_XID_CONTINUE = 32; + public const PROPERTY_XID_START = 33; + public const PROPERTY_CASE_SENSITIVE = 34; + public const PROPERTY_S_TERM = 35; + public const PROPERTY_VARIATION_SELECTOR = 36; + public const PROPERTY_NFD_INERT = 37; + public const PROPERTY_NFKD_INERT = 38; + public const PROPERTY_NFC_INERT = 39; + public const PROPERTY_NFKC_INERT = 40; + public const PROPERTY_SEGMENT_STARTER = 41; + public const PROPERTY_PATTERN_SYNTAX = 42; + public const PROPERTY_PATTERN_WHITE_SPACE = 43; + public const PROPERTY_POSIX_ALNUM = 44; + public const PROPERTY_POSIX_BLANK = 45; + public const PROPERTY_POSIX_GRAPH = 46; + public const PROPERTY_POSIX_PRINT = 47; + public const PROPERTY_POSIX_XDIGIT = 48; + public const PROPERTY_CASED = 49; + public const PROPERTY_CASE_IGNORABLE = 50; + public const PROPERTY_CHANGES_WHEN_LOWERCASED = 51; + public const PROPERTY_CHANGES_WHEN_UPPERCASED = 52; + public const PROPERTY_CHANGES_WHEN_TITLECASED = 53; + public const PROPERTY_CHANGES_WHEN_CASEFOLDED = 54; + public const PROPERTY_CHANGES_WHEN_CASEMAPPED = 55; + public const PROPERTY_CHANGES_WHEN_NFKC_CASEFOLDED = 56; + public const PROPERTY_BINARY_LIMIT = 65; + public const PROPERTY_BIDI_CLASS = 4096; + public const PROPERTY_INT_START = 4096; + public const PROPERTY_BLOCK = 4097; + public const PROPERTY_CANONICAL_COMBINING_CLASS = 4098; + public const PROPERTY_DECOMPOSITION_TYPE = 4099; + public const PROPERTY_EAST_ASIAN_WIDTH = 4100; + public const PROPERTY_GENERAL_CATEGORY = 4101; + public const PROPERTY_JOINING_GROUP = 4102; + public const PROPERTY_JOINING_TYPE = 4103; + public const PROPERTY_LINE_BREAK = 4104; + public const PROPERTY_NUMERIC_TYPE = 4105; + public const PROPERTY_SCRIPT = 4106; + public const PROPERTY_HANGUL_SYLLABLE_TYPE = 4107; + public const PROPERTY_NFD_QUICK_CHECK = 4108; + public const PROPERTY_NFKD_QUICK_CHECK = 4109; + public const PROPERTY_NFC_QUICK_CHECK = 4110; + public const PROPERTY_NFKC_QUICK_CHECK = 4111; + public const PROPERTY_LEAD_CANONICAL_COMBINING_CLASS = 4112; + public const PROPERTY_TRAIL_CANONICAL_COMBINING_CLASS = 4113; + public const PROPERTY_GRAPHEME_CLUSTER_BREAK = 4114; + public const PROPERTY_SENTENCE_BREAK = 4115; + public const PROPERTY_WORD_BREAK = 4116; + public const PROPERTY_BIDI_PAIRED_BRACKET_TYPE = 4117; + public const PROPERTY_INT_LIMIT = 4121; + public const PROPERTY_GENERAL_CATEGORY_MASK = 8192; + public const PROPERTY_MASK_START = 8192; + public const PROPERTY_MASK_LIMIT = 8193; + public const PROPERTY_NUMERIC_VALUE = 12288; + public const PROPERTY_DOUBLE_START = 12288; + public const PROPERTY_DOUBLE_LIMIT = 12289; + public const PROPERTY_AGE = 16384; + public const PROPERTY_STRING_START = 16384; + public const PROPERTY_BIDI_MIRRORING_GLYPH = 16385; + public const PROPERTY_CASE_FOLDING = 16386; + public const PROPERTY_ISO_COMMENT = 16387; + public const PROPERTY_LOWERCASE_MAPPING = 16388; + public const PROPERTY_NAME = 16389; + public const PROPERTY_SIMPLE_CASE_FOLDING = 16390; + public const PROPERTY_SIMPLE_LOWERCASE_MAPPING = 16391; + public const PROPERTY_SIMPLE_TITLECASE_MAPPING = 16392; + public const PROPERTY_SIMPLE_UPPERCASE_MAPPING = 16393; + public const PROPERTY_TITLECASE_MAPPING = 16394; + public const PROPERTY_UNICODE_1_NAME = 16395; + public const PROPERTY_UPPERCASE_MAPPING = 16396; + public const PROPERTY_BIDI_PAIRED_BRACKET = 16397; + public const PROPERTY_STRING_LIMIT = 16398; + public const PROPERTY_SCRIPT_EXTENSIONS = 28672; + public const PROPERTY_OTHER_PROPERTY_START = 28672; + public const PROPERTY_OTHER_PROPERTY_LIMIT = 28673; + public const PROPERTY_INVALID_CODE = -1; + public const CHAR_CATEGORY_UNASSIGNED = 0; + public const CHAR_CATEGORY_GENERAL_OTHER_TYPES = 0; + public const CHAR_CATEGORY_UPPERCASE_LETTER = 1; + public const CHAR_CATEGORY_LOWERCASE_LETTER = 2; + public const CHAR_CATEGORY_TITLECASE_LETTER = 3; + public const CHAR_CATEGORY_MODIFIER_LETTER = 4; + public const CHAR_CATEGORY_OTHER_LETTER = 5; + public const CHAR_CATEGORY_NON_SPACING_MARK = 6; + public const CHAR_CATEGORY_ENCLOSING_MARK = 7; + public const CHAR_CATEGORY_COMBINING_SPACING_MARK = 8; + public const CHAR_CATEGORY_DECIMAL_DIGIT_NUMBER = 9; + public const CHAR_CATEGORY_LETTER_NUMBER = 10; + public const CHAR_CATEGORY_OTHER_NUMBER = 11; + public const CHAR_CATEGORY_SPACE_SEPARATOR = 12; + public const CHAR_CATEGORY_LINE_SEPARATOR = 13; + public const CHAR_CATEGORY_PARAGRAPH_SEPARATOR = 14; + public const CHAR_CATEGORY_CONTROL_CHAR = 15; + public const CHAR_CATEGORY_FORMAT_CHAR = 16; + public const CHAR_CATEGORY_PRIVATE_USE_CHAR = 17; + public const CHAR_CATEGORY_SURROGATE = 18; + public const CHAR_CATEGORY_DASH_PUNCTUATION = 19; + public const CHAR_CATEGORY_START_PUNCTUATION = 20; + public const CHAR_CATEGORY_END_PUNCTUATION = 21; + public const CHAR_CATEGORY_CONNECTOR_PUNCTUATION = 22; + public const CHAR_CATEGORY_OTHER_PUNCTUATION = 23; + public const CHAR_CATEGORY_MATH_SYMBOL = 24; + public const CHAR_CATEGORY_CURRENCY_SYMBOL = 25; + public const CHAR_CATEGORY_MODIFIER_SYMBOL = 26; + public const CHAR_CATEGORY_OTHER_SYMBOL = 27; + public const CHAR_CATEGORY_INITIAL_PUNCTUATION = 28; + public const CHAR_CATEGORY_FINAL_PUNCTUATION = 29; + public const CHAR_CATEGORY_CHAR_CATEGORY_COUNT = 30; + public const CHAR_DIRECTION_LEFT_TO_RIGHT = 0; + public const CHAR_DIRECTION_RIGHT_TO_LEFT = 1; + public const CHAR_DIRECTION_EUROPEAN_NUMBER = 2; + public const CHAR_DIRECTION_EUROPEAN_NUMBER_SEPARATOR = 3; + public const CHAR_DIRECTION_EUROPEAN_NUMBER_TERMINATOR = 4; + public const CHAR_DIRECTION_ARABIC_NUMBER = 5; + public const CHAR_DIRECTION_COMMON_NUMBER_SEPARATOR = 6; + public const CHAR_DIRECTION_BLOCK_SEPARATOR = 7; + public const CHAR_DIRECTION_SEGMENT_SEPARATOR = 8; + public const CHAR_DIRECTION_WHITE_SPACE_NEUTRAL = 9; + public const CHAR_DIRECTION_OTHER_NEUTRAL = 10; + public const CHAR_DIRECTION_LEFT_TO_RIGHT_EMBEDDING = 11; + public const CHAR_DIRECTION_LEFT_TO_RIGHT_OVERRIDE = 12; + public const CHAR_DIRECTION_RIGHT_TO_LEFT_ARABIC = 13; + public const CHAR_DIRECTION_RIGHT_TO_LEFT_EMBEDDING = 14; + public const CHAR_DIRECTION_RIGHT_TO_LEFT_OVERRIDE = 15; + public const CHAR_DIRECTION_POP_DIRECTIONAL_FORMAT = 16; + public const CHAR_DIRECTION_DIR_NON_SPACING_MARK = 17; + public const CHAR_DIRECTION_BOUNDARY_NEUTRAL = 18; + public const CHAR_DIRECTION_FIRST_STRONG_ISOLATE = 19; + public const CHAR_DIRECTION_LEFT_TO_RIGHT_ISOLATE = 20; + public const CHAR_DIRECTION_RIGHT_TO_LEFT_ISOLATE = 21; + public const CHAR_DIRECTION_POP_DIRECTIONAL_ISOLATE = 22; + public const CHAR_DIRECTION_CHAR_DIRECTION_COUNT = 23; + public const BLOCK_CODE_NO_BLOCK = 0; + public const BLOCK_CODE_BASIC_LATIN = 1; + public const BLOCK_CODE_LATIN_1_SUPPLEMENT = 2; + public const BLOCK_CODE_LATIN_EXTENDED_A = 3; + public const BLOCK_CODE_LATIN_EXTENDED_B = 4; + public const BLOCK_CODE_IPA_EXTENSIONS = 5; + public const BLOCK_CODE_SPACING_MODIFIER_LETTERS = 6; + public const BLOCK_CODE_COMBINING_DIACRITICAL_MARKS = 7; + public const BLOCK_CODE_GREEK = 8; + public const BLOCK_CODE_CYRILLIC = 9; + public const BLOCK_CODE_ARMENIAN = 10; + public const BLOCK_CODE_HEBREW = 11; + public const BLOCK_CODE_ARABIC = 12; + public const BLOCK_CODE_SYRIAC = 13; + public const BLOCK_CODE_THAANA = 14; + public const BLOCK_CODE_DEVANAGARI = 15; + public const BLOCK_CODE_BENGALI = 16; + public const BLOCK_CODE_GURMUKHI = 17; + public const BLOCK_CODE_GUJARATI = 18; + public const BLOCK_CODE_ORIYA = 19; + public const BLOCK_CODE_TAMIL = 20; + public const BLOCK_CODE_TELUGU = 21; + public const BLOCK_CODE_KANNADA = 22; + public const BLOCK_CODE_MALAYALAM = 23; + public const BLOCK_CODE_SINHALA = 24; + public const BLOCK_CODE_THAI = 25; + public const BLOCK_CODE_LAO = 26; + public const BLOCK_CODE_TIBETAN = 27; + public const BLOCK_CODE_MYANMAR = 28; + public const BLOCK_CODE_GEORGIAN = 29; + public const BLOCK_CODE_HANGUL_JAMO = 30; + public const BLOCK_CODE_ETHIOPIC = 31; + public const BLOCK_CODE_CHEROKEE = 32; + public const BLOCK_CODE_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS = 33; + public const BLOCK_CODE_OGHAM = 34; + public const BLOCK_CODE_RUNIC = 35; + public const BLOCK_CODE_KHMER = 36; + public const BLOCK_CODE_MONGOLIAN = 37; + public const BLOCK_CODE_LATIN_EXTENDED_ADDITIONAL = 38; + public const BLOCK_CODE_GREEK_EXTENDED = 39; + public const BLOCK_CODE_GENERAL_PUNCTUATION = 40; + public const BLOCK_CODE_SUPERSCRIPTS_AND_SUBSCRIPTS = 41; + public const BLOCK_CODE_CURRENCY_SYMBOLS = 42; + public const BLOCK_CODE_COMBINING_MARKS_FOR_SYMBOLS = 43; + public const BLOCK_CODE_LETTERLIKE_SYMBOLS = 44; + public const BLOCK_CODE_NUMBER_FORMS = 45; + public const BLOCK_CODE_ARROWS = 46; + public const BLOCK_CODE_MATHEMATICAL_OPERATORS = 47; + public const BLOCK_CODE_MISCELLANEOUS_TECHNICAL = 48; + public const BLOCK_CODE_CONTROL_PICTURES = 49; + public const BLOCK_CODE_OPTICAL_CHARACTER_RECOGNITION = 50; + public const BLOCK_CODE_ENCLOSED_ALPHANUMERICS = 51; + public const BLOCK_CODE_BOX_DRAWING = 52; + public const BLOCK_CODE_BLOCK_ELEMENTS = 53; + public const BLOCK_CODE_GEOMETRIC_SHAPES = 54; + public const BLOCK_CODE_MISCELLANEOUS_SYMBOLS = 55; + public const BLOCK_CODE_DINGBATS = 56; + public const BLOCK_CODE_BRAILLE_PATTERNS = 57; + public const BLOCK_CODE_CJK_RADICALS_SUPPLEMENT = 58; + public const BLOCK_CODE_KANGXI_RADICALS = 59; + public const BLOCK_CODE_IDEOGRAPHIC_DESCRIPTION_CHARACTERS = 60; + public const BLOCK_CODE_CJK_SYMBOLS_AND_PUNCTUATION = 61; + public const BLOCK_CODE_HIRAGANA = 62; + public const BLOCK_CODE_KATAKANA = 63; + public const BLOCK_CODE_BOPOMOFO = 64; + public const BLOCK_CODE_HANGUL_COMPATIBILITY_JAMO = 65; + public const BLOCK_CODE_KANBUN = 66; + public const BLOCK_CODE_BOPOMOFO_EXTENDED = 67; + public const BLOCK_CODE_ENCLOSED_CJK_LETTERS_AND_MONTHS = 68; + public const BLOCK_CODE_CJK_COMPATIBILITY = 69; + public const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A = 70; + public const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS = 71; + public const BLOCK_CODE_YI_SYLLABLES = 72; + public const BLOCK_CODE_YI_RADICALS = 73; + public const BLOCK_CODE_HANGUL_SYLLABLES = 74; + public const BLOCK_CODE_HIGH_SURROGATES = 75; + public const BLOCK_CODE_HIGH_PRIVATE_USE_SURROGATES = 76; + public const BLOCK_CODE_LOW_SURROGATES = 77; + public const BLOCK_CODE_PRIVATE_USE_AREA = 78; + public const BLOCK_CODE_PRIVATE_USE = 78; + public const BLOCK_CODE_CJK_COMPATIBILITY_IDEOGRAPHS = 79; + public const BLOCK_CODE_ALPHABETIC_PRESENTATION_FORMS = 80; + public const BLOCK_CODE_ARABIC_PRESENTATION_FORMS_A = 81; + public const BLOCK_CODE_COMBINING_HALF_MARKS = 82; + public const BLOCK_CODE_CJK_COMPATIBILITY_FORMS = 83; + public const BLOCK_CODE_SMALL_FORM_VARIANTS = 84; + public const BLOCK_CODE_ARABIC_PRESENTATION_FORMS_B = 85; + public const BLOCK_CODE_SPECIALS = 86; + public const BLOCK_CODE_HALFWIDTH_AND_FULLWIDTH_FORMS = 87; + public const BLOCK_CODE_OLD_ITALIC = 88; + public const BLOCK_CODE_GOTHIC = 89; + public const BLOCK_CODE_DESERET = 90; + public const BLOCK_CODE_BYZANTINE_MUSICAL_SYMBOLS = 91; + public const BLOCK_CODE_MUSICAL_SYMBOLS = 92; + public const BLOCK_CODE_MATHEMATICAL_ALPHANUMERIC_SYMBOLS = 93; + public const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B = 94; + public const BLOCK_CODE_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = 95; + public const BLOCK_CODE_TAGS = 96; + public const BLOCK_CODE_CYRILLIC_SUPPLEMENT = 97; + public const BLOCK_CODE_CYRILLIC_SUPPLEMENTARY = 97; + public const BLOCK_CODE_TAGALOG = 98; + public const BLOCK_CODE_HANUNOO = 99; + public const BLOCK_CODE_BUHID = 100; + public const BLOCK_CODE_TAGBANWA = 101; + public const BLOCK_CODE_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = 102; + public const BLOCK_CODE_SUPPLEMENTAL_ARROWS_A = 103; + public const BLOCK_CODE_SUPPLEMENTAL_ARROWS_B = 104; + public const BLOCK_CODE_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = 105; + public const BLOCK_CODE_SUPPLEMENTAL_MATHEMATICAL_OPERATORS = 106; + public const BLOCK_CODE_KATAKANA_PHONETIC_EXTENSIONS = 107; + public const BLOCK_CODE_VARIATION_SELECTORS = 108; + public const BLOCK_CODE_SUPPLEMENTARY_PRIVATE_USE_AREA_A = 109; + public const BLOCK_CODE_SUPPLEMENTARY_PRIVATE_USE_AREA_B = 110; + public const BLOCK_CODE_LIMBU = 111; + public const BLOCK_CODE_TAI_LE = 112; + public const BLOCK_CODE_KHMER_SYMBOLS = 113; + public const BLOCK_CODE_PHONETIC_EXTENSIONS = 114; + public const BLOCK_CODE_MISCELLANEOUS_SYMBOLS_AND_ARROWS = 115; + public const BLOCK_CODE_YIJING_HEXAGRAM_SYMBOLS = 116; + public const BLOCK_CODE_LINEAR_B_SYLLABARY = 117; + public const BLOCK_CODE_LINEAR_B_IDEOGRAMS = 118; + public const BLOCK_CODE_AEGEAN_NUMBERS = 119; + public const BLOCK_CODE_UGARITIC = 120; + public const BLOCK_CODE_SHAVIAN = 121; + public const BLOCK_CODE_OSMANYA = 122; + public const BLOCK_CODE_CYPRIOT_SYLLABARY = 123; + public const BLOCK_CODE_TAI_XUAN_JING_SYMBOLS = 124; + public const BLOCK_CODE_VARIATION_SELECTORS_SUPPLEMENT = 125; + public const BLOCK_CODE_ANCIENT_GREEK_MUSICAL_NOTATION = 126; + public const BLOCK_CODE_ANCIENT_GREEK_NUMBERS = 127; + public const BLOCK_CODE_ARABIC_SUPPLEMENT = 128; + public const BLOCK_CODE_BUGINESE = 129; + public const BLOCK_CODE_CJK_STROKES = 130; + public const BLOCK_CODE_COMBINING_DIACRITICAL_MARKS_SUPPLEMENT = 131; + public const BLOCK_CODE_COPTIC = 132; + public const BLOCK_CODE_ETHIOPIC_EXTENDED = 133; + public const BLOCK_CODE_ETHIOPIC_SUPPLEMENT = 134; + public const BLOCK_CODE_GEORGIAN_SUPPLEMENT = 135; + public const BLOCK_CODE_GLAGOLITIC = 136; + public const BLOCK_CODE_KHAROSHTHI = 137; + public const BLOCK_CODE_MODIFIER_TONE_LETTERS = 138; + public const BLOCK_CODE_NEW_TAI_LUE = 139; + public const BLOCK_CODE_OLD_PERSIAN = 140; + public const BLOCK_CODE_PHONETIC_EXTENSIONS_SUPPLEMENT = 141; + public const BLOCK_CODE_SUPPLEMENTAL_PUNCTUATION = 142; + public const BLOCK_CODE_SYLOTI_NAGRI = 143; + public const BLOCK_CODE_TIFINAGH = 144; + public const BLOCK_CODE_VERTICAL_FORMS = 145; + public const BLOCK_CODE_NKO = 146; + public const BLOCK_CODE_BALINESE = 147; + public const BLOCK_CODE_LATIN_EXTENDED_C = 148; + public const BLOCK_CODE_LATIN_EXTENDED_D = 149; + public const BLOCK_CODE_PHAGS_PA = 150; + public const BLOCK_CODE_PHOENICIAN = 151; + public const BLOCK_CODE_CUNEIFORM = 152; + public const BLOCK_CODE_CUNEIFORM_NUMBERS_AND_PUNCTUATION = 153; + public const BLOCK_CODE_COUNTING_ROD_NUMERALS = 154; + public const BLOCK_CODE_SUNDANESE = 155; + public const BLOCK_CODE_LEPCHA = 156; + public const BLOCK_CODE_OL_CHIKI = 157; + public const BLOCK_CODE_CYRILLIC_EXTENDED_A = 158; + public const BLOCK_CODE_VAI = 159; + public const BLOCK_CODE_CYRILLIC_EXTENDED_B = 160; + public const BLOCK_CODE_SAURASHTRA = 161; + public const BLOCK_CODE_KAYAH_LI = 162; + public const BLOCK_CODE_REJANG = 163; + public const BLOCK_CODE_CHAM = 164; + public const BLOCK_CODE_ANCIENT_SYMBOLS = 165; + public const BLOCK_CODE_PHAISTOS_DISC = 166; + public const BLOCK_CODE_LYCIAN = 167; + public const BLOCK_CODE_CARIAN = 168; + public const BLOCK_CODE_LYDIAN = 169; + public const BLOCK_CODE_MAHJONG_TILES = 170; + public const BLOCK_CODE_DOMINO_TILES = 171; + public const BLOCK_CODE_SAMARITAN = 172; + public const BLOCK_CODE_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = 173; + public const BLOCK_CODE_TAI_THAM = 174; + public const BLOCK_CODE_VEDIC_EXTENSIONS = 175; + public const BLOCK_CODE_LISU = 176; + public const BLOCK_CODE_BAMUM = 177; + public const BLOCK_CODE_COMMON_INDIC_NUMBER_FORMS = 178; + public const BLOCK_CODE_DEVANAGARI_EXTENDED = 179; + public const BLOCK_CODE_HANGUL_JAMO_EXTENDED_A = 180; + public const BLOCK_CODE_JAVANESE = 181; + public const BLOCK_CODE_MYANMAR_EXTENDED_A = 182; + public const BLOCK_CODE_TAI_VIET = 183; + public const BLOCK_CODE_MEETEI_MAYEK = 184; + public const BLOCK_CODE_HANGUL_JAMO_EXTENDED_B = 185; + public const BLOCK_CODE_IMPERIAL_ARAMAIC = 186; + public const BLOCK_CODE_OLD_SOUTH_ARABIAN = 187; + public const BLOCK_CODE_AVESTAN = 188; + public const BLOCK_CODE_INSCRIPTIONAL_PARTHIAN = 189; + public const BLOCK_CODE_INSCRIPTIONAL_PAHLAVI = 190; + public const BLOCK_CODE_OLD_TURKIC = 191; + public const BLOCK_CODE_RUMI_NUMERAL_SYMBOLS = 192; + public const BLOCK_CODE_KAITHI = 193; + public const BLOCK_CODE_EGYPTIAN_HIEROGLYPHS = 194; + public const BLOCK_CODE_ENCLOSED_ALPHANUMERIC_SUPPLEMENT = 195; + public const BLOCK_CODE_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = 196; + public const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = 197; + public const BLOCK_CODE_MANDAIC = 198; + public const BLOCK_CODE_BATAK = 199; + public const BLOCK_CODE_ETHIOPIC_EXTENDED_A = 200; + public const BLOCK_CODE_BRAHMI = 201; + public const BLOCK_CODE_BAMUM_SUPPLEMENT = 202; + public const BLOCK_CODE_KANA_SUPPLEMENT = 203; + public const BLOCK_CODE_PLAYING_CARDS = 204; + public const BLOCK_CODE_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS = 205; + public const BLOCK_CODE_EMOTICONS = 206; + public const BLOCK_CODE_TRANSPORT_AND_MAP_SYMBOLS = 207; + public const BLOCK_CODE_ALCHEMICAL_SYMBOLS = 208; + public const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D = 209; + public const BLOCK_CODE_ARABIC_EXTENDED_A = 210; + public const BLOCK_CODE_ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS = 211; + public const BLOCK_CODE_CHAKMA = 212; + public const BLOCK_CODE_MEETEI_MAYEK_EXTENSIONS = 213; + public const BLOCK_CODE_MEROITIC_CURSIVE = 214; + public const BLOCK_CODE_MEROITIC_HIEROGLYPHS = 215; + public const BLOCK_CODE_MIAO = 216; + public const BLOCK_CODE_SHARADA = 217; + public const BLOCK_CODE_SORA_SOMPENG = 218; + public const BLOCK_CODE_SUNDANESE_SUPPLEMENT = 219; + public const BLOCK_CODE_TAKRI = 220; + public const BLOCK_CODE_BASSA_VAH = 221; + public const BLOCK_CODE_CAUCASIAN_ALBANIAN = 222; + public const BLOCK_CODE_COPTIC_EPACT_NUMBERS = 223; + public const BLOCK_CODE_COMBINING_DIACRITICAL_MARKS_EXTENDED = 224; + public const BLOCK_CODE_DUPLOYAN = 225; + public const BLOCK_CODE_ELBASAN = 226; + public const BLOCK_CODE_GEOMETRIC_SHAPES_EXTENDED = 227; + public const BLOCK_CODE_GRANTHA = 228; + public const BLOCK_CODE_KHOJKI = 229; + public const BLOCK_CODE_KHUDAWADI = 230; + public const BLOCK_CODE_LATIN_EXTENDED_E = 231; + public const BLOCK_CODE_LINEAR_A = 232; + public const BLOCK_CODE_MAHAJANI = 233; + public const BLOCK_CODE_MANICHAEAN = 234; + public const BLOCK_CODE_MENDE_KIKAKUI = 235; + public const BLOCK_CODE_MODI = 236; + public const BLOCK_CODE_MRO = 237; + public const BLOCK_CODE_MYANMAR_EXTENDED_B = 238; + public const BLOCK_CODE_NABATAEAN = 239; + public const BLOCK_CODE_OLD_NORTH_ARABIAN = 240; + public const BLOCK_CODE_OLD_PERMIC = 241; + public const BLOCK_CODE_ORNAMENTAL_DINGBATS = 242; + public const BLOCK_CODE_PAHAWH_HMONG = 243; + public const BLOCK_CODE_PALMYRENE = 244; + public const BLOCK_CODE_PAU_CIN_HAU = 245; + public const BLOCK_CODE_PSALTER_PAHLAVI = 246; + public const BLOCK_CODE_SHORTHAND_FORMAT_CONTROLS = 247; + public const BLOCK_CODE_SIDDHAM = 248; + public const BLOCK_CODE_SINHALA_ARCHAIC_NUMBERS = 249; + public const BLOCK_CODE_SUPPLEMENTAL_ARROWS_C = 250; + public const BLOCK_CODE_TIRHUTA = 251; + public const BLOCK_CODE_WARANG_CITI = 252; + public const BLOCK_CODE_COUNT = 309; + public const BLOCK_CODE_INVALID_CODE = -1; + public const BPT_NONE = 0; + public const BPT_OPEN = 1; + public const BPT_CLOSE = 2; + public const BPT_COUNT = 3; + public const EA_NEUTRAL = 0; + public const EA_AMBIGUOUS = 1; + public const EA_HALFWIDTH = 2; + public const EA_FULLWIDTH = 3; + public const EA_NARROW = 4; + public const EA_WIDE = 5; + public const EA_COUNT = 6; + public const UNICODE_CHAR_NAME = 0; + public const UNICODE_10_CHAR_NAME = 1; + public const EXTENDED_CHAR_NAME = 2; + public const CHAR_NAME_ALIAS = 3; + public const CHAR_NAME_CHOICE_COUNT = 4; + public const SHORT_PROPERTY_NAME = 0; + public const LONG_PROPERTY_NAME = 1; + public const PROPERTY_NAME_CHOICE_COUNT = 2; + public const DT_NONE = 0; + public const DT_CANONICAL = 1; + public const DT_COMPAT = 2; + public const DT_CIRCLE = 3; + public const DT_FINAL = 4; + public const DT_FONT = 5; + public const DT_FRACTION = 6; + public const DT_INITIAL = 7; + public const DT_ISOLATED = 8; + public const DT_MEDIAL = 9; + public const DT_NARROW = 10; + public const DT_NOBREAK = 11; + public const DT_SMALL = 12; + public const DT_SQUARE = 13; + public const DT_SUB = 14; + public const DT_SUPER = 15; + public const DT_VERTICAL = 16; + public const DT_WIDE = 17; + public const DT_COUNT = 18; + public const JT_NON_JOINING = 0; + public const JT_JOIN_CAUSING = 1; + public const JT_DUAL_JOINING = 2; + public const JT_LEFT_JOINING = 3; + public const JT_RIGHT_JOINING = 4; + public const JT_TRANSPARENT = 5; + public const JT_COUNT = 6; + public const JG_NO_JOINING_GROUP = 0; + public const JG_AIN = 1; + public const JG_ALAPH = 2; + public const JG_ALEF = 3; + public const JG_BEH = 4; + public const JG_BETH = 5; + public const JG_DAL = 6; + public const JG_DALATH_RISH = 7; + public const JG_E = 8; + public const JG_FEH = 9; + public const JG_FINAL_SEMKATH = 10; + public const JG_GAF = 11; + public const JG_GAMAL = 12; + public const JG_HAH = 13; + public const JG_TEH_MARBUTA_GOAL = 14; + public const JG_HAMZA_ON_HEH_GOAL = 14; + public const JG_HE = 15; + public const JG_HEH = 16; + public const JG_HEH_GOAL = 17; + public const JG_HETH = 18; + public const JG_KAF = 19; + public const JG_KAPH = 20; + public const JG_KNOTTED_HEH = 21; + public const JG_LAM = 22; + public const JG_LAMADH = 23; + public const JG_MEEM = 24; + public const JG_MIM = 25; + public const JG_NOON = 26; + public const JG_NUN = 27; + public const JG_PE = 28; + public const JG_QAF = 29; + public const JG_QAPH = 30; + public const JG_REH = 31; + public const JG_REVERSED_PE = 32; + public const JG_SAD = 33; + public const JG_SADHE = 34; + public const JG_SEEN = 35; + public const JG_SEMKATH = 36; + public const JG_SHIN = 37; + public const JG_SWASH_KAF = 38; + public const JG_SYRIAC_WAW = 39; + public const JG_TAH = 40; + public const JG_TAW = 41; + public const JG_TEH_MARBUTA = 42; + public const JG_TETH = 43; + public const JG_WAW = 44; + public const JG_YEH = 45; + public const JG_YEH_BARREE = 46; + public const JG_YEH_WITH_TAIL = 47; + public const JG_YUDH = 48; + public const JG_YUDH_HE = 49; + public const JG_ZAIN = 50; + public const JG_FE = 51; + public const JG_KHAPH = 52; + public const JG_ZHAIN = 53; + public const JG_BURUSHASKI_YEH_BARREE = 54; + public const JG_FARSI_YEH = 55; + public const JG_NYA = 56; + public const JG_ROHINGYA_YEH = 57; + public const JG_MANICHAEAN_ALEPH = 58; + public const JG_MANICHAEAN_AYIN = 59; + public const JG_MANICHAEAN_BETH = 60; + public const JG_MANICHAEAN_DALETH = 61; + public const JG_MANICHAEAN_DHAMEDH = 62; + public const JG_MANICHAEAN_FIVE = 63; + public const JG_MANICHAEAN_GIMEL = 64; + public const JG_MANICHAEAN_HETH = 65; + public const JG_MANICHAEAN_HUNDRED = 66; + public const JG_MANICHAEAN_KAPH = 67; + public const JG_MANICHAEAN_LAMEDH = 68; + public const JG_MANICHAEAN_MEM = 69; + public const JG_MANICHAEAN_NUN = 70; + public const JG_MANICHAEAN_ONE = 71; + public const JG_MANICHAEAN_PE = 72; + public const JG_MANICHAEAN_QOPH = 73; + public const JG_MANICHAEAN_RESH = 74; + public const JG_MANICHAEAN_SADHE = 75; + public const JG_MANICHAEAN_SAMEKH = 76; + public const JG_MANICHAEAN_TAW = 77; + public const JG_MANICHAEAN_TEN = 78; + public const JG_MANICHAEAN_TETH = 79; + public const JG_MANICHAEAN_THAMEDH = 80; + public const JG_MANICHAEAN_TWENTY = 81; + public const JG_MANICHAEAN_WAW = 82; + public const JG_MANICHAEAN_YODH = 83; + public const JG_MANICHAEAN_ZAYIN = 84; + public const JG_STRAIGHT_WAW = 85; + public const JG_COUNT = 102; + public const GCB_OTHER = 0; + public const GCB_CONTROL = 1; + public const GCB_CR = 2; + public const GCB_EXTEND = 3; + public const GCB_L = 4; + public const GCB_LF = 5; + public const GCB_LV = 6; + public const GCB_LVT = 7; + public const GCB_T = 8; + public const GCB_V = 9; + public const GCB_SPACING_MARK = 10; + public const GCB_PREPEND = 11; + public const GCB_REGIONAL_INDICATOR = 12; + public const GCB_COUNT = 18; + public const WB_OTHER = 0; + public const WB_ALETTER = 1; + public const WB_FORMAT = 2; + public const WB_KATAKANA = 3; + public const WB_MIDLETTER = 4; + public const WB_MIDNUM = 5; + public const WB_NUMERIC = 6; + public const WB_EXTENDNUMLET = 7; + public const WB_CR = 8; + public const WB_EXTEND = 9; + public const WB_LF = 10; + public const WB_MIDNUMLET = 11; + public const WB_NEWLINE = 12; + public const WB_REGIONAL_INDICATOR = 13; + public const WB_HEBREW_LETTER = 14; + public const WB_SINGLE_QUOTE = 15; + public const WB_DOUBLE_QUOTE = 16; + public const WB_COUNT = 23; + public const SB_OTHER = 0; + public const SB_ATERM = 1; + public const SB_CLOSE = 2; + public const SB_FORMAT = 3; + public const SB_LOWER = 4; + public const SB_NUMERIC = 5; + public const SB_OLETTER = 6; + public const SB_SEP = 7; + public const SB_SP = 8; + public const SB_STERM = 9; + public const SB_UPPER = 10; + public const SB_CR = 11; + public const SB_EXTEND = 12; + public const SB_LF = 13; + public const SB_SCONTINUE = 14; + public const SB_COUNT = 15; + public const LB_UNKNOWN = 0; + public const LB_AMBIGUOUS = 1; + public const LB_ALPHABETIC = 2; + public const LB_BREAK_BOTH = 3; + public const LB_BREAK_AFTER = 4; + public const LB_BREAK_BEFORE = 5; + public const LB_MANDATORY_BREAK = 6; + public const LB_CONTINGENT_BREAK = 7; + public const LB_CLOSE_PUNCTUATION = 8; + public const LB_COMBINING_MARK = 9; + public const LB_CARRIAGE_RETURN = 10; + public const LB_EXCLAMATION = 11; + public const LB_GLUE = 12; + public const LB_HYPHEN = 13; + public const LB_IDEOGRAPHIC = 14; + public const LB_INSEPARABLE = 15; + public const LB_INSEPERABLE = 15; + public const LB_INFIX_NUMERIC = 16; + public const LB_LINE_FEED = 17; + public const LB_NONSTARTER = 18; + public const LB_NUMERIC = 19; + public const LB_OPEN_PUNCTUATION = 20; + public const LB_POSTFIX_NUMERIC = 21; + public const LB_PREFIX_NUMERIC = 22; + public const LB_QUOTATION = 23; + public const LB_COMPLEX_CONTEXT = 24; + public const LB_SURROGATE = 25; + public const LB_SPACE = 26; + public const LB_BREAK_SYMBOLS = 27; + public const LB_ZWSPACE = 28; + public const LB_NEXT_LINE = 29; + public const LB_WORD_JOINER = 30; + public const LB_H2 = 31; + public const LB_H3 = 32; + public const LB_JL = 33; + public const LB_JT = 34; + public const LB_JV = 35; + public const LB_CLOSE_PARENTHESIS = 36; + public const LB_CONDITIONAL_JAPANESE_STARTER = 37; + public const LB_HEBREW_LETTER = 38; + public const LB_REGIONAL_INDICATOR = 39; + public const LB_COUNT = 43; + public const NT_NONE = 0; + public const NT_DECIMAL = 1; + public const NT_DIGIT = 2; + public const NT_NUMERIC = 3; + public const NT_COUNT = 4; + public const HST_NOT_APPLICABLE = 0; + public const HST_LEADING_JAMO = 1; + public const HST_VOWEL_JAMO = 2; + public const HST_TRAILING_JAMO = 3; + public const HST_LV_SYLLABLE = 4; + public const HST_LVT_SYLLABLE = 5; + public const HST_COUNT = 6; + public const NO_NUMERIC_VALUE = -123456789; /** * Check a binary Unicode property for a code point @@ -683,7 +684,7 @@ class IntlChar { * @since 7.0 */ #[Pure] - static public function hasBinaryProperty($codepoint, $property){} + public static function hasBinaryProperty($codepoint, $property) {} /** * @link https://php.net/manual/en/intlchar.charage.php @@ -703,7 +704,7 @@ public static function charAge($codepoint) {} * Or NULL if codepoint is out of bounds. * @since 7.0 */ - public static function charDigitValue($codepoint){} + public static function charDigitValue($codepoint) {} /** * Get bidirectional category value for a code point @@ -828,9 +829,7 @@ public static function charName($codepoint, $type = IntlChar::UNICODE_CHAR_NAME) *

    Or NULL if codepoint is out of bound.

    codepoint is out of bound. * @since 7.0 */ - public static function chr ($codepoint) - { - - } + public static function chr($codepoint) {} /** * Get the decimal digit value of a code point for a given radix @@ -855,7 +851,7 @@ public static function chr ($codepoint) * or NULL if codepoint is out of bound. * @since 7.0 */ - public static function digit ($codepoint, $base = 10 ) {} + public static function digit($codepoint, $base = 10) {} /** * Enumerate all assigned Unicode characters within a range @@ -880,7 +876,7 @@ public static function digit ($codepoint, $base = 10 ) {} * * @since 7.0 */ - public static function enumCharNames ($start, $end, $callback, $type = IntlChar::UNICODE_CHAR_NAME) {} + public static function enumCharNames($start, $end, $callback, $type = IntlChar::UNICODE_CHAR_NAME) {} /** * Enumerate all code points with their Unicode general categories @@ -895,7 +891,7 @@ public static function enumCharNames ($start, $end, $callback, $type = IntlChar: * * @since 7.0 */ - public static function enumCharTypes ($callback) {} + public static function enumCharTypes($callback) {} /** * Perform case folding on a code point @@ -906,7 +902,7 @@ public static function enumCharTypes ($callback) {} * Returns NULL if codepoint is out of bound. * @since 7.0 */ - public static function foldCase ($codepoint, $options = IntlChar::FOLD_CASE_DEFAULT ) {} + public static function foldCase($codepoint, $options = IntlChar::FOLD_CASE_DEFAULT) {} /** * Get character representation for a given digit and radix @@ -916,7 +912,7 @@ public static function foldCase ($codepoint, $options = IntlChar::FOLD_CASE_DEFA * @return int The character representation (as a string) of the specified digit in the specified radix. * @since 7.0 */ - public static function forDigit ($digit, $base = 10) {} + public static function forDigit($digit, $base = 10) {} /** * Get the paired bracket character for a code point @@ -947,7 +943,7 @@ public static function getBlockCode($codepoint) {} * Or NULL if codepoint is out of bound. * @since 7.0 */ - public static function getCombiningClass ($codepoint) {} + public static function getCombiningClass($codepoint) {} /** * Get the FC_NFKC_Closure property for a code point @@ -958,7 +954,7 @@ public static function getCombiningClass ($codepoint) {} * or FALSE if there was an error. * @since 7.0 */ - public static function getFC_NFKC_Closure ($codepoint) {} + public static function getFC_NFKC_Closure($codepoint) {} /** * Get the max value for a Unicode property @@ -967,7 +963,7 @@ public static function getFC_NFKC_Closure ($codepoint) {} * @return int The maximum value returned by {@see IntlChar::getIntPropertyValue()} for a Unicode property. <=0 if the property selector is out of range. * @since 7.0 */ - public static function getIntPropertyMaxValue ($property) {} + public static function getIntPropertyMaxValue($property) {} /** * Get the min value for a Unicode property @@ -976,7 +972,7 @@ public static function getIntPropertyMaxValue ($property) {} * @return int The minimum value returned by {@see IntlChar::getIntPropertyValue()} for a Unicode property. 0 if the property selector is out of range. * @since 7.0 */ - public static function getIntPropertyMinValue ($property) {} + public static function getIntPropertyMinValue($property) {} /** * Get the value for a Unicode property for a code point @@ -1002,7 +998,7 @@ public static function getIntPropertyMinValue ($property) {} *

    * @since 7.0 */ - public static function getIntPropertyValue ($codepoint, $property ) {} + public static function getIntPropertyValue($codepoint, $property) {} /** * Get the numeric value for a Unicode code point @@ -1011,7 +1007,7 @@ public static function getIntPropertyValue ($codepoint, $property ) {} * @return float|null Numeric value of codepoint, or float(-123456789) if none is defined, or NULL if codepoint is out of bound. * @since 7.0 */ - public static function getNumericValue ($codepoint) {} + public static function getNumericValue($codepoint) {} /** * Get the property constant value for a given property name @@ -1020,7 +1016,7 @@ public static function getNumericValue ($codepoint) {} * @return int Returns an IntlChar::PROPERTY_ constant value, or IntlChar::PROPERTY_INVALID_CODE if the given name does not match any property. * @since 7.0 */ - public static function getPropertyEnum ($alias ) {} + public static function getPropertyEnum($alias) {} /** * Get the Unicode name for a property @@ -1041,7 +1037,7 @@ public static function getPropertyEnum ($alias ) {} *

    * @since 7.0 */ - public static function getPropertyName ($property, $type = IntlChar::LONG_PROPERTY_NAME) {} + public static function getPropertyName($property, $type = IntlChar::LONG_PROPERTY_NAME) {} /** * Get the property value for a given value name @@ -1052,7 +1048,7 @@ public static function getPropertyName ($property, $type = IntlChar::LONG_PROPER * @return int Returns the corresponding value integer, or IntlChar::PROPERTY_INVALID_CODE if the given name does not match any value of the given property, or if the property is invalid. * @since 7.0 */ - public static function getPropertyValueEnum ($property, $name) {} + public static function getPropertyValueEnum($property, $name) {} /** * Get the Unicode name for a property value @@ -1082,7 +1078,7 @@ public static function getPropertyValueEnum ($property, $name) {} * If a given nameChoice returns FALSE, then all larger values of nameChoice will return FALSE, with one exception: if FALSE is returned for IntlChar::SHORT_PROPERTY_NAME, then IntlChar::LONG_PROPERTY_NAME (and higher) may still return a non-FALSE value. * @since 7.0 */ - public static function getPropertyValueName ($property, $value, $type = IntlChar::LONG_PROPERTY_NAME) {} + public static function getPropertyValueName($property, $value, $type = IntlChar::LONG_PROPERTY_NAME) {} /** * Get the Unicode version @@ -1099,7 +1095,7 @@ public static function getUnicodeVersion() {} * @return bool|null Returns TRUE if codepoint is an alphanumeric character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isalnum ($codepoint) {} + public static function isalnum($codepoint) {} /** * Check if code point is a letter character @@ -1108,7 +1104,7 @@ public static function isalnum ($codepoint) {} * @return bool|null Returns TRUE if codepoint is a letter character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isalpha ($codepoint) {} + public static function isalpha($codepoint) {} /** * Check if code point is a base character * @link https://php.net/manual/en/intlchar.isbase.php @@ -1116,7 +1112,7 @@ public static function isalpha ($codepoint) {} * @return bool|null Returns TRUE if codepoint is a base character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isbase ($codepoint ){} + public static function isbase($codepoint) {} /** * Check if code point is a "blank" or "horizontal space" character * @link https://php.net/manual/en/intlchar.isblank.php @@ -1124,7 +1120,7 @@ public static function isbase ($codepoint ){} * @return bool|null Returns TRUE if codepoint is either a "blank" or "horizontal space" character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isblank ($codepoint){} + public static function isblank($codepoint) {} /** * Check if code point is a control character @@ -1133,7 +1129,7 @@ public static function isblank ($codepoint){} * @return bool|null Returns TRUE if codepoint is a control character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function iscntrl ($codepoint ) {} + public static function iscntrl($codepoint) {} /** * Check whether the code point is defined @@ -1142,7 +1138,7 @@ public static function iscntrl ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is a defined character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isdefined ($codepoint ) {} + public static function isdefined($codepoint) {} /** * Check if code point is a digit character @@ -1151,7 +1147,7 @@ public static function isdefined ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is a digit character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isdigit ($codepoint) {} + public static function isdigit($codepoint) {} /** * Check if code point is a graphic character * @link https://php.net/manual/en/intlchar.isgraph.php @@ -1159,7 +1155,7 @@ public static function isdigit ($codepoint) {} * @return bool|null Returns TRUE if codepoint is a "graphic" character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isgraph ($codepoint ) {} + public static function isgraph($codepoint) {} /** * Check if code point is an ignorable character * @link https://php.net/manual/en/intlchar.isidignorable.php @@ -1167,7 +1163,7 @@ public static function isgraph ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is ignorable in identifiers, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isIDIgnorable ($codepoint ) {} + public static function isIDIgnorable($codepoint) {} /** * Check if code point is permissible in an identifier * @link https://php.net/manual/en/intlchar.isidpart.php @@ -1175,7 +1171,7 @@ public static function isIDIgnorable ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is the code point may occur in an identifier, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isIDPart ($codepoint ) {} + public static function isIDPart($codepoint) {} /** * Check if code point is permissible as the first character in an identifier @@ -1184,7 +1180,7 @@ public static function isIDPart ($codepoint ) {} * @return bool|null Returns TRUE if codepoint may start an identifier, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isIDStart ($codepoint ) {} + public static function isIDStart($codepoint) {} /** * Check if code point is an ISO control code * @link https://php.net/manual/en/intlchar.isisocontrol.php @@ -1192,7 +1188,7 @@ public static function isIDStart ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is an ISO control code, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isISOControl ($codepoint ) {} + public static function isISOControl($codepoint) {} /** * Check if code point is permissible in a Java identifier * @link https://php.net/manual/en/intlchar.isjavaidpart.php @@ -1200,7 +1196,7 @@ public static function isISOControl ($codepoint ) {} * @return bool|null Returns TRUE if codepoint may occur in a Java identifier, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isJavaIDPart ($codepoint ) {} + public static function isJavaIDPart($codepoint) {} /** * Check if code point is permissible as the first character in a Java identifier * @link https://php.net/manual/en/intlchar.isjavaidstart.php @@ -1208,7 +1204,7 @@ public static function isJavaIDPart ($codepoint ) {} * @return bool|null Returns TRUE if codepoint may start a Java identifier, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isJavaIDStart ($codepoint ) {} + public static function isJavaIDStart($codepoint) {} /** * Check if code point is a space character according to Java * @link https://php.net/manual/en/intlchar.isjavaspacechar.php @@ -1216,7 +1212,7 @@ public static function isJavaIDStart ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is a space character according to Java, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isJavaSpaceChar ($codepoint ) {} + public static function isJavaSpaceChar($codepoint) {} /** * Check if code point is a lowercase letter @@ -1226,7 +1222,7 @@ public static function isJavaSpaceChar ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is an Ll lowercase letter, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function islower ($codepoint ) {} + public static function islower($codepoint) {} /** * Check if code point has the Bidi_Mirrored property * @link https://php.net/manual/en/intlchar.ismirrored.php @@ -1234,7 +1230,7 @@ public static function islower ($codepoint ) {} * @return bool|null Returns TRUE if codepoint has the Bidi_Mirrored property, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isMirrored ($codepoint ) {} + public static function isMirrored($codepoint) {} /** * Check if code point is a printable character @@ -1243,7 +1239,7 @@ public static function isMirrored ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is a printable character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isprint ($codepoint ) {} + public static function isprint($codepoint) {} /** * Check if code point is punctuation character @@ -1253,7 +1249,7 @@ public static function isprint ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is a punctuation character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function ispunct ($codepoint ) {} + public static function ispunct($codepoint) {} /** * Check if code point is a space character * @link https://php.net/manual/en/intlchar.isspace.php @@ -1261,7 +1257,7 @@ public static function ispunct ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is a space character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isspace ($codepoint ) {} + public static function isspace($codepoint) {} /** * Check if code point is a titlecase letter * @link https://php.net/manual/en/intlchar.istitle.php @@ -1269,7 +1265,7 @@ public static function isspace ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is a titlecase letter, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function istitle ($codepoint ){} + public static function istitle($codepoint) {} /** * Check if code point has the Alphabetic Unicode property @@ -1278,7 +1274,7 @@ public static function istitle ($codepoint ){} * @return bool|null Returns TRUE if codepoint has the Alphabetic Unicode property, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isUAlphabetic ($codepoint ) {} + public static function isUAlphabetic($codepoint) {} /** * Check if code point has the Lowercase Unicode property * @link https://php.net/manual/en/intlchar.isulowercase.php @@ -1286,7 +1282,7 @@ public static function isUAlphabetic ($codepoint ) {} * @return bool|null Returns TRUE if codepoint has the Lowercase Unicode property, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isULowercase ($codepoint ) {} + public static function isULowercase($codepoint) {} /** * Check if code point has the general category "Lu" (uppercase letter) * @link https://php.net/manual/en/intlchar.isupper.php @@ -1295,7 +1291,7 @@ public static function isULowercase ($codepoint ) {} * @return bool|null Returns TRUE if codepoint is an Lu uppercase letter, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isupper ($codepoint) {} + public static function isupper($codepoint) {} /** * Check if code point has the Uppercase Unicode property * @link https://php.net/manual/en/intlchar.isuuppercase.php @@ -1303,7 +1299,7 @@ public static function isupper ($codepoint) {} * @return bool|null Returns TRUE if codepoint has the Uppercase Unicode property, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isUUppercase ($codepoint) {} + public static function isUUppercase($codepoint) {} /** * Check if code point has the White_Space Unicode property * @link https://php.net/manual/en/intlchar.isuwhitespace.php @@ -1311,7 +1307,7 @@ public static function isUUppercase ($codepoint) {} * @return bool|null Returns TRUE if codepoint has the White_Space Unicode property, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isUWhiteSpace ($codepoint ) {} + public static function isUWhiteSpace($codepoint) {} /** * Check if code point is a whitespace character according to ICU * @link https://php.net/manual/en/intlchar.iswhitespace.php @@ -1327,7 +1323,7 @@ public static function isWhitespace($codepoint) {} * @return bool|null Returns TRUE if codepoint is a hexadecimal character, FALSE if not, NULL if codepoint is out of bound. * @since 7.0 */ - public static function isxdigit ($codepoint){} + public static function isxdigit($codepoint) {} /** * Return Unicode code point value of character @@ -1336,7 +1332,7 @@ public static function isxdigit ($codepoint){} * @return int|null Returns the Unicode code point value as an integer, NULL if codepoint is out of bound. * @since 7.0 */ - public static function ord ($character) {} + public static function ord($character) {} /** * Make Unicode character lowercase @@ -1357,7 +1353,7 @@ public static function tolower($codepoint) {} * Or NULL if codepoint is out of bound. * @since 7.0 */ - public static function totitle ($codepoint ) {} + public static function totitle($codepoint) {} /** * Make Unicode character uppercase @@ -1368,5 +1364,5 @@ public static function totitle ($codepoint ) {} * Or NULL if codepoint is out of bound. * @since 7.0 */ - public static function toupper ($codepoint ) {} + public static function toupper($codepoint) {} } diff --git a/intl/intl.php b/intl/intl.php index 88ad87902..953b346e7 100644 --- a/intl/intl.php +++ b/intl/intl.php @@ -6,20 +6,21 @@ use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware; use JetBrains\PhpStorm\Pure; -class Collator { - const DEFAULT_VALUE = -1; - const PRIMARY = 0; - const SECONDARY = 1; - const TERTIARY = 2; - const DEFAULT_STRENGTH = 2; - const QUATERNARY = 3; - const IDENTICAL = 15; - const OFF = 16; - const ON = 17; - const SHIFTED = 20; - const NON_IGNORABLE = 21; - const LOWER_FIRST = 24; - const UPPER_FIRST = 25; +class Collator +{ + public const DEFAULT_VALUE = -1; + public const PRIMARY = 0; + public const SECONDARY = 1; + public const TERTIARY = 2; + public const DEFAULT_STRENGTH = 2; + public const QUATERNARY = 3; + public const IDENTICAL = 15; + public const OFF = 16; + public const ON = 17; + public const SHIFTED = 20; + public const NON_IGNORABLE = 21; + public const LOWER_FIRST = 24; + public const UPPER_FIRST = 25; /** *

    @@ -43,7 +44,7 @@ class Collator { *

    * @link https://php.net/manual/en/class.collator.php#intl.collator-constants */ - const FRENCH_COLLATION = 0; + public const FRENCH_COLLATION = 0; /** *

    @@ -88,7 +89,7 @@ class Collator { *

    * @link https://php.net/manual/en/class.collator.php#intl.collator-constants */ - const ALTERNATE_HANDLING = 1; + public const ALTERNATE_HANDLING = 1; /** *

    @@ -122,7 +123,7 @@ class Collator { *

    * @link https://php.net/manual/en/class.collator.php#intl.collator-constants */ - const CASE_FIRST = 2; + public const CASE_FIRST = 2; /** *

    @@ -148,7 +149,7 @@ class Collator { *

    * @link https://php.net/manual/en/class.collator.php#intl.collator-constants */ - const CASE_LEVEL = 3; + public const CASE_LEVEL = 3; /** *

    @@ -174,7 +175,7 @@ class Collator { *

    * @link https://php.net/manual/en/class.collator.php#intl.collator-constants */ - const NORMALIZATION_MODE = 4; + public const NORMALIZATION_MODE = 4; /** *

    @@ -197,7 +198,7 @@ class Collator { *

    * @link https://php.net/manual/en/class.collator.php#intl.collator-constants */ - const STRENGTH = 5; + public const STRENGTH = 5; /** *

    @@ -216,7 +217,7 @@ class Collator { *

    * @link https://php.net/manual/en/class.collator.php#intl.collator-constants */ - const HIRAGANA_QUATERNARY_MODE = 6; + public const HIRAGANA_QUATERNARY_MODE = 6; /** *

    @@ -232,11 +233,10 @@ class Collator { *

    * @link https://php.net/manual/en/class.collator.php#intl.collator-constants */ - const NUMERIC_COLLATION = 7; - const SORT_REGULAR = 0; - const SORT_STRING = 1; - const SORT_NUMERIC = 2; - + public const NUMERIC_COLLATION = 7; + public const SORT_REGULAR = 0; + public const SORT_STRING = 1; + public const SORT_NUMERIC = 2; /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -245,7 +245,7 @@ class Collator { * @param string $locale */ #[Pure] - public function __construct($locale) { } + public function __construct($locale) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -260,7 +260,7 @@ public function __construct($locale) { } * @return Collator|null Return new instance of Collator object, or NULL * on error. */ - public static function create($locale) { } + public static function create($locale) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -292,7 +292,7 @@ public static function create($locale) { } * is returned. */ #[Pure] - public function compare($string1, $string2) { } + public function compare($string1, $string2) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -310,7 +310,7 @@ public function compare($string1, $string2) { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function sort(array &$array, $flags = null) { } + public function sort(array &$array, $flags = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -319,7 +319,7 @@ public function sort(array &$array, $flags = null) { } * @param string[] &$array

    Array of strings to sort

    * @return bool TRUE on success or FALSE on failure. */ - public function sortWithSortKeys(array &$array) { } + public function sortWithSortKeys(array &$array) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -333,7 +333,7 @@ public function sortWithSortKeys(array &$array) { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function asort(array &$array, $flags = null) { } + public function asort(array &$array, $flags = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -345,7 +345,7 @@ public function asort(array &$array, $flags = null) { } * @return int|false Attribute value, or boolean FALSE on error. */ #[Pure] - public function getAttribute($attribute) { } + public function getAttribute($attribute) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -357,7 +357,7 @@ public function getAttribute($attribute) { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function setAttribute($attribute, $value) { } + public function setAttribute($attribute, $value) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -366,7 +366,7 @@ public function setAttribute($attribute, $value) { } * @return int|false current collation strength, or boolean FALSE on error. */ #[Pure] - public function getStrength() { } + public function getStrength() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -379,7 +379,7 @@ public function getStrength() { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function setStrength($strength) { } + public function setStrength($strength) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -396,7 +396,7 @@ public function setStrength($strength) { } * boolean FALSE. */ #[Pure] - public function getLocale($type = null) { } + public function getLocale($type = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -405,7 +405,7 @@ public function getLocale($type = null) { } * @return int Error code returned by the last Collator API function call. */ #[Pure] - public function getErrorCode() { } + public function getErrorCode() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -414,7 +414,7 @@ public function getErrorCode() { } * @return string Description of an error occurred in the last Collator API function call. */ #[Pure] - public function getErrorMessage() { } + public function getErrorMessage() {} /** * (No version information available, might only be in SVN)
    @@ -426,102 +426,102 @@ public function getErrorMessage() { } * @return string the collation key for the string. Collation keys can be compared directly instead of strings. */ #[Pure] - public function getSortKey($string) { } + public function getSortKey($string) {} } -class NumberFormatter { - - const CURRENCY_ACCOUNTING = 12; +class NumberFormatter +{ + public const CURRENCY_ACCOUNTING = 12; /** * Decimal format defined by pattern * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PATTERN_DECIMAL = 0; + public const PATTERN_DECIMAL = 0; /** * Decimal format * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const DECIMAL = 1; + public const DECIMAL = 1; /** * Currency format * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const CURRENCY = 2; + public const CURRENCY = 2; /** * Percent format * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PERCENT = 3; + public const PERCENT = 3; /** * Scientific format * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const SCIENTIFIC = 4; + public const SCIENTIFIC = 4; /** * Spellout rule-based format * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const SPELLOUT = 5; + public const SPELLOUT = 5; /** * Ordinal rule-based format * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ORDINAL = 6; + public const ORDINAL = 6; /** * Duration rule-based format * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const DURATION = 7; + public const DURATION = 7; /** * Rule-based format defined by pattern * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PATTERN_RULEBASED = 9; + public const PATTERN_RULEBASED = 9; /** * Alias for PATTERN_DECIMAL * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const IGNORE = 0; + public const IGNORE = 0; /** * Default format for the locale * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const DEFAULT_STYLE = 1; + public const DEFAULT_STYLE = 1; /** * Rounding mode to round towards positive infinity. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ROUND_CEILING = 0; + public const ROUND_CEILING = 0; /** * Rounding mode to round towards negative infinity. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ROUND_FLOOR = 1; + public const ROUND_FLOOR = 1; /** * Rounding mode to round towards zero. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ROUND_DOWN = 2; + public const ROUND_DOWN = 2; /** * Rounding mode to round away from zero. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ROUND_UP = 3; + public const ROUND_UP = 3; /** * Rounding mode to round towards the "nearest neighbor" unless both @@ -529,209 +529,209 @@ class NumberFormatter { * neighbor. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ROUND_HALFEVEN = 4; + public const ROUND_HALFEVEN = 4; /** * Rounding mode to round towards "nearest neighbor" unless both neighbors * are equidistant, in which case round down. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ROUND_HALFDOWN = 5; + public const ROUND_HALFDOWN = 5; /** * Rounding mode to round towards "nearest neighbor" unless both neighbors * are equidistant, in which case round up. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ROUND_HALFUP = 6; + public const ROUND_HALFUP = 6; /** * Pad characters inserted before the prefix. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PAD_BEFORE_PREFIX = 0; + public const PAD_BEFORE_PREFIX = 0; /** * Pad characters inserted after the prefix. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PAD_AFTER_PREFIX = 1; + public const PAD_AFTER_PREFIX = 1; /** * Pad characters inserted before the suffix. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PAD_BEFORE_SUFFIX = 2; + public const PAD_BEFORE_SUFFIX = 2; /** * Pad characters inserted after the suffix. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PAD_AFTER_SUFFIX = 3; + public const PAD_AFTER_SUFFIX = 3; /** * Parse integers only. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PARSE_INT_ONLY = 0; + public const PARSE_INT_ONLY = 0; /** * Use grouping separator. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const GROUPING_USED = 1; + public const GROUPING_USED = 1; /** * Always show decimal point. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const DECIMAL_ALWAYS_SHOWN = 2; + public const DECIMAL_ALWAYS_SHOWN = 2; /** * Maximum integer digits. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const MAX_INTEGER_DIGITS = 3; + public const MAX_INTEGER_DIGITS = 3; /** * Minimum integer digits. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const MIN_INTEGER_DIGITS = 4; + public const MIN_INTEGER_DIGITS = 4; /** * Integer digits. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const INTEGER_DIGITS = 5; + public const INTEGER_DIGITS = 5; /** * Maximum fraction digits. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const MAX_FRACTION_DIGITS = 6; + public const MAX_FRACTION_DIGITS = 6; /** * Minimum fraction digits. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const MIN_FRACTION_DIGITS = 7; + public const MIN_FRACTION_DIGITS = 7; /** * Fraction digits. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const FRACTION_DIGITS = 8; + public const FRACTION_DIGITS = 8; /** * Multiplier. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const MULTIPLIER = 9; + public const MULTIPLIER = 9; /** * Grouping size. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const GROUPING_SIZE = 10; + public const GROUPING_SIZE = 10; /** * Rounding Mode. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ROUNDING_MODE = 11; + public const ROUNDING_MODE = 11; /** * Rounding increment. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ROUNDING_INCREMENT = 12; + public const ROUNDING_INCREMENT = 12; /** * The width to which the output of format() is padded. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const FORMAT_WIDTH = 13; + public const FORMAT_WIDTH = 13; /** * The position at which padding will take place. See pad position * constants for possible argument values. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PADDING_POSITION = 14; + public const PADDING_POSITION = 14; /** * Secondary grouping size. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const SECONDARY_GROUPING_SIZE = 15; + public const SECONDARY_GROUPING_SIZE = 15; /** * Use significant digits. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const SIGNIFICANT_DIGITS_USED = 16; + public const SIGNIFICANT_DIGITS_USED = 16; /** * Minimum significant digits. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const MIN_SIGNIFICANT_DIGITS = 17; + public const MIN_SIGNIFICANT_DIGITS = 17; /** * Maximum significant digits. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const MAX_SIGNIFICANT_DIGITS = 18; + public const MAX_SIGNIFICANT_DIGITS = 18; /** * Lenient parse mode used by rule-based formats. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const LENIENT_PARSE = 19; + public const LENIENT_PARSE = 19; /** * Positive prefix. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const POSITIVE_PREFIX = 0; + public const POSITIVE_PREFIX = 0; /** * Positive suffix. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const POSITIVE_SUFFIX = 1; + public const POSITIVE_SUFFIX = 1; /** * Negative prefix. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const NEGATIVE_PREFIX = 2; + public const NEGATIVE_PREFIX = 2; /** * Negative suffix. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const NEGATIVE_SUFFIX = 3; + public const NEGATIVE_SUFFIX = 3; /** * The character used to pad to the format width. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PADDING_CHARACTER = 4; + public const PADDING_CHARACTER = 4; /** * The ISO currency code. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const CURRENCY_CODE = 5; + public const CURRENCY_CODE = 5; /** * The default rule set. This is only available with rule-based * formatters. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const DEFAULT_RULESET = 6; + public const DEFAULT_RULESET = 6; /** * The public rule sets. This is only available with rule-based @@ -740,146 +740,145 @@ class NumberFormatter { * (semicolon). * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PUBLIC_RULESETS = 7; + public const PUBLIC_RULESETS = 7; /** * The decimal separator. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const DECIMAL_SEPARATOR_SYMBOL = 0; + public const DECIMAL_SEPARATOR_SYMBOL = 0; /** * The grouping separator. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const GROUPING_SEPARATOR_SYMBOL = 1; + public const GROUPING_SEPARATOR_SYMBOL = 1; /** * The pattern separator. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PATTERN_SEPARATOR_SYMBOL = 2; + public const PATTERN_SEPARATOR_SYMBOL = 2; /** * The percent sign. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PERCENT_SYMBOL = 3; + public const PERCENT_SYMBOL = 3; /** * Zero. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const ZERO_DIGIT_SYMBOL = 4; + public const ZERO_DIGIT_SYMBOL = 4; /** * Character representing a digit in the pattern. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const DIGIT_SYMBOL = 5; + public const DIGIT_SYMBOL = 5; /** * The minus sign. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const MINUS_SIGN_SYMBOL = 6; + public const MINUS_SIGN_SYMBOL = 6; /** * The plus sign. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PLUS_SIGN_SYMBOL = 7; + public const PLUS_SIGN_SYMBOL = 7; /** * The currency symbol. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const CURRENCY_SYMBOL = 8; + public const CURRENCY_SYMBOL = 8; /** * The international currency symbol. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const INTL_CURRENCY_SYMBOL = 9; + public const INTL_CURRENCY_SYMBOL = 9; /** * The monetary separator. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const MONETARY_SEPARATOR_SYMBOL = 10; + public const MONETARY_SEPARATOR_SYMBOL = 10; /** * The exponential symbol. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const EXPONENTIAL_SYMBOL = 11; + public const EXPONENTIAL_SYMBOL = 11; /** * Per mill symbol. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PERMILL_SYMBOL = 12; + public const PERMILL_SYMBOL = 12; /** * Escape padding character. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const PAD_ESCAPE_SYMBOL = 13; + public const PAD_ESCAPE_SYMBOL = 13; /** * Infinity symbol. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const INFINITY_SYMBOL = 14; + public const INFINITY_SYMBOL = 14; /** * Not-a-number symbol. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const NAN_SYMBOL = 15; + public const NAN_SYMBOL = 15; /** * Significant digit symbol. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const SIGNIFICANT_DIGIT_SYMBOL = 16; + public const SIGNIFICANT_DIGIT_SYMBOL = 16; /** * The monetary grouping separator. * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const MONETARY_GROUPING_SEPARATOR_SYMBOL = 17; + public const MONETARY_GROUPING_SEPARATOR_SYMBOL = 17; /** * Derive the type from variable type * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const TYPE_DEFAULT = 0; + public const TYPE_DEFAULT = 0; /** * Format/parse as 32-bit integer * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const TYPE_INT32 = 1; + public const TYPE_INT32 = 1; /** * Format/parse as 64-bit integer * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const TYPE_INT64 = 2; + public const TYPE_INT64 = 2; /** * Format/parse as floating point value * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const TYPE_DOUBLE = 3; + public const TYPE_DOUBLE = 3; /** * Format/parse as currency value * @link https://php.net/manual/en/class.locale.php#intl.locale-constants */ - const TYPE_CURRENCY = 4; - + public const TYPE_CURRENCY = 4; /** * @link https://www.php.net/manual/en/class.numberformatter.php @@ -888,7 +887,7 @@ class NumberFormatter { * @param string $pattern [optional] */ #[Pure] - public function __construct($locale, $style, $pattern = null) { } + public function __construct($locale, $style, $pattern = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -914,7 +913,7 @@ public function __construct($locale, $style, $pattern = null) { } *

    * @return NumberFormatter|false NumberFormatter object or FALSE on error. */ - public static function create($locale, $style, $pattern = null) { } + public static function create($locale, $style, $pattern = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -931,7 +930,7 @@ public static function create($locale, $style, $pattern = null) { } * @return string|false the string containing formatted value, or FALSE on error. */ #[Pure] - public function format($num, $type = null) { } + public function format($num, $type = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -949,7 +948,7 @@ public function format($num, $type = null) { } *

    * @return mixed The value of the parsed number or FALSE on error. */ - public function parse($string, $type = NumberFormatter::TYPE_DOUBLE, &$offset = null) { } + public function parse($string, $type = NumberFormatter::TYPE_DOUBLE, &$offset = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -964,7 +963,7 @@ public function parse($string, $type = NumberFormatter::TYPE_DOUBLE, &$offset = * @return string String representing the formatted currency value. */ #[Pure] - public function formatCurrency($amount, $currency) { } + public function formatCurrency($amount, $currency) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -981,7 +980,7 @@ public function formatCurrency($amount, $currency) { } *

    * @return float|false The parsed numeric value or FALSE on error. */ - public function parseCurrency($string, &$currency, &$offset = null) { } + public function parseCurrency($string, &$currency, &$offset = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -996,7 +995,7 @@ public function parseCurrency($string, &$currency, &$offset = null) { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function setAttribute($attribute, $value) { } + public function setAttribute($attribute, $value) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1009,7 +1008,7 @@ public function setAttribute($attribute, $value) { } * @return int|false Return attribute value on success, or FALSE on error. */ #[Pure] - public function getAttribute($attribute) { } + public function getAttribute($attribute) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1025,7 +1024,7 @@ public function getAttribute($attribute) { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function setTextAttribute($attribute, $value) { } + public function setTextAttribute($attribute, $value) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1038,7 +1037,7 @@ public function setTextAttribute($attribute, $value) { } * @return string|false Return attribute value on success, or FALSE on error. */ #[Pure] - public function getTextAttribute($attribute) { } + public function getTextAttribute($attribute) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1053,7 +1052,7 @@ public function getTextAttribute($attribute) { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function setSymbol($symbol, $value) { } + public function setSymbol($symbol, $value) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1066,7 +1065,7 @@ public function setSymbol($symbol, $value) { } * @return string|false The symbol string or FALSE on error. */ #[Pure] - public function getSymbol($symbol) { } + public function getSymbol($symbol) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1079,7 +1078,7 @@ public function getSymbol($symbol) { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function setPattern($pattern) { } + public function setPattern($pattern) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1088,7 +1087,7 @@ public function setPattern($pattern) { } * @return string|false Pattern string that is used by the formatter, or FALSE if an error happens. */ #[Pure] - public function getPattern() { } + public function getPattern() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1103,7 +1102,7 @@ public function getPattern() { } * @return string The locale name used to create the formatter. */ #[Pure] - public function getLocale($type = null) { } + public function getLocale($type = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1112,7 +1111,7 @@ public function getLocale($type = null) { } * @return int error code from last formatter call. */ #[Pure] - public function getErrorCode() { } + public function getErrorCode() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1121,58 +1120,57 @@ public function getErrorCode() { } * @return string error message from last formatter call. */ #[Pure] - public function getErrorMessage() { } + public function getErrorMessage() {} } -class Normalizer { - - const NFKC_CF = 48; +class Normalizer +{ + public const NFKC_CF = 48; - const FORM_KC_CF = 48; + public const FORM_KC_CF = 48; /** * Default normalization options * @link https://secure.php.net/manual/en/class.normalizer.php */ - const OPTION_DEFAULT = ""; + public const OPTION_DEFAULT = ""; /** * No decomposition/composition * @link https://secure.php.net/manual/en/class.normalizer.php * @removed 8.0 */ - const NONE = "1"; + public const NONE = "1"; /** * Normalization Form D (NFD) - Canonical Decomposition * @link https://secure.php.net/manual/en/class.normalizer.php */ - const FORM_D = 4; - const NFD = 4; + public const FORM_D = 4; + public const NFD = 4; /** * Normalization Form KD (NFKD) - Compatibility Decomposition * @link https://secure.php.net/manual/en/class.normalizer.php */ - const FORM_KD = 8; - const NFKD = 8; + public const FORM_KD = 8; + public const NFKD = 8; /** * Normalization Form C (NFC) - Canonical Decomposition followed by * Canonical Composition * @link https://secure.php.net/manual/en/class.normalizer.php */ - const FORM_C = 16; - const NFC = 16; + public const FORM_C = 16; + public const NFC = 16; /** * Normalization Form KC (NFKC) - Compatibility Decomposition, followed by * Canonical Composition * @link https://secure.php.net/manual/en/class.normalizer.php */ - const FORM_KC = 32; - const NFKC = 32; - + public const FORM_KC = 32; + public const NFKC = 32; /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1182,7 +1180,7 @@ class Normalizer { * @param int $form [optional]

    One of the normalization forms.

    * @return string|false The normalized string or FALSE if an error occurred. */ - public static function normalize($string, $form = Normalizer::FORM_C) { } + public static function normalize($string, $form = Normalizer::FORM_C) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1194,7 +1192,7 @@ public static function normalize($string, $form = Normalizer::FORM_C) { } *

    * @return bool TRUE if normalized, FALSE otherwise or if there an error */ - public static function isNormalized($string, $form = Normalizer::FORM_C) { } + public static function isNormalized($string, $form = Normalizer::FORM_C) {} /** * @link https://www.php.net/manual/en/normalizer.getrawdecomposition.php @@ -1206,19 +1204,19 @@ public static function isNormalized($string, $form = Normalizer::FORM_C) { } public static function getRawDecomposition(string $string, $form = 16) {} } -class Locale { - +class Locale +{ /** * This is locale the data actually comes from. * @link https://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants */ - const ACTUAL_LOCALE = 0; + public const ACTUAL_LOCALE = 0; /** * This is the most specific locale supported by ICU. * @link https://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants */ - const VALID_LOCALE = 1; + public const VALID_LOCALE = 1; /** * Used as locale parameter with the methods of the various locale affected classes, @@ -1226,50 +1224,49 @@ class Locale { * locale. * @link https://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants */ - const DEFAULT_LOCALE = null; + public const DEFAULT_LOCALE = null; /** * Language subtag * @link https://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants */ - const LANG_TAG = "language"; + public const LANG_TAG = "language"; /** * Extended language subtag * @link https://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants */ - const EXTLANG_TAG = "extlang"; + public const EXTLANG_TAG = "extlang"; /** * Script subtag * @link https://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants */ - const SCRIPT_TAG = "script"; + public const SCRIPT_TAG = "script"; /** * Region subtag * @link https://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants */ - const REGION_TAG = "region"; + public const REGION_TAG = "region"; /** * Variant subtag * @link https://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants */ - const VARIANT_TAG = "variant"; + public const VARIANT_TAG = "variant"; /** * Grandfathered Language subtag * @link https://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants */ - const GRANDFATHERED_LANG_TAG = "grandfathered"; + public const GRANDFATHERED_LANG_TAG = "grandfathered"; /** * Private subtag * @link https://php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants */ - const PRIVATE_TAG = "private"; - + public const PRIVATE_TAG = "private"; /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1277,7 +1274,7 @@ class Locale { * @link https://php.net/manual/en/locale.getdefault.php * @return string The current runtime locale */ - public static function getDefault() { } + public static function getDefault() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1288,7 +1285,7 @@ public static function getDefault() { } *

    * @return bool TRUE on success or FALSE on failure. */ - public static function setDefault($locale) { } + public static function setDefault($locale) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1299,7 +1296,7 @@ public static function setDefault($locale) { } *

    * @return string|null The language code associated with the language or NULL in case of error. */ - public static function getPrimaryLanguage($locale) { } + public static function getPrimaryLanguage($locale) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1310,7 +1307,7 @@ public static function getPrimaryLanguage($locale) { } *

    * @return string|null The script subtag for the locale or NULL if not present */ - public static function getScript($locale) { } + public static function getScript($locale) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1321,7 +1318,7 @@ public static function getScript($locale) { } *

    * @return string|null The region subtag for the locale or NULL if not present */ - public static function getRegion($locale) { } + public static function getRegion($locale) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1332,7 +1329,7 @@ public static function getRegion($locale) { } *

    * @return array Associative array containing the keyword-value pairs for this locale */ - public static function getKeywords($locale) { } + public static function getKeywords($locale) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1347,7 +1344,7 @@ public static function getKeywords($locale) { } * @return string Display name of the script for the $locale in the format appropriate for * $in_locale. */ - public static function getDisplayScript($locale, $displayLocale = null) { } + public static function getDisplayScript($locale, $displayLocale = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1362,7 +1359,7 @@ public static function getDisplayScript($locale, $displayLocale = null) { } * @return string display name of the region for the $locale in the format appropriate for * $in_locale. */ - public static function getDisplayRegion($locale, $displayLocale = null) { } + public static function getDisplayRegion($locale, $displayLocale = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1374,7 +1371,7 @@ public static function getDisplayRegion($locale, $displayLocale = null) { } * @param string $displayLocale [optional]

    optional format locale

    * @return string Display name of the locale in the format appropriate for $in_locale. */ - public static function getDisplayName($locale, $displayLocale = null) { } + public static function getDisplayName($locale, $displayLocale = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1389,7 +1386,7 @@ public static function getDisplayName($locale, $displayLocale = null) { } * @return string display name of the language for the $locale in the format appropriate for * $in_locale. */ - public static function getDisplayLanguage($locale, $displayLocale = null) { } + public static function getDisplayLanguage($locale, $displayLocale = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1404,7 +1401,7 @@ public static function getDisplayLanguage($locale, $displayLocale = null) { } * @return string Display name of the variant for the $locale in the format appropriate for * $in_locale. */ - public static function getDisplayVariant($locale, $displayLocale = null) { } + public static function getDisplayVariant($locale, $displayLocale = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1430,7 +1427,7 @@ public static function getDisplayVariant($locale, $displayLocale = null) { } *

    * @return string The corresponding locale identifier. */ - public static function composeLocale(array $subtags) { } + public static function composeLocale(array $subtags) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1448,7 +1445,7 @@ public static function composeLocale(array $subtags) { } * returned array will have variant0=>varX , variant1=>varY , * variant2=>varZ */ - public static function parseLocale($locale) { } + public static function parseLocale($locale) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1460,7 +1457,7 @@ public static function parseLocale($locale) { } * @return array|null The array containing the list of all variants subtag for the locale * or NULL if not present */ - public static function getAllVariants($locale) { } + public static function getAllVariants($locale) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1478,7 +1475,7 @@ public static function getAllVariants($locale) { } *

    * @return bool TRUE if $locale matches $langtag FALSE otherwise. */ - public static function filterMatches($languageTag, $locale, $canonicalize = false) { } + public static function filterMatches($languageTag, $locale, $canonicalize = false) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1500,14 +1497,14 @@ public static function filterMatches($languageTag, $locale, $canonicalize = fals *

    * @return string The closest matching language tag or default value. */ - public static function lookup(array $languageTag, $locale, $canonicalize = false, $defaultLocale = null) { } + public static function lookup(array $languageTag, $locale, $canonicalize = false, $defaultLocale = null) {} /** * @link https://php.net/manual/en/locale.canonicalize.php * @param string $locale * @return string */ - public static function canonicalize($locale) { } + public static function canonicalize($locale) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1518,11 +1515,11 @@ public static function canonicalize($locale) { } *

    * @return string The corresponding locale identifier. */ - public static function acceptFromHttp($header) { } + public static function acceptFromHttp($header) {} } -class MessageFormatter { - +class MessageFormatter +{ /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    * Constructs a new Message Formatter @@ -1538,7 +1535,7 @@ class MessageFormatter { *

    */ #[Pure] - public function __construct($locale, $pattern) { } + public function __construct($locale, $pattern) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1555,7 +1552,7 @@ public function __construct($locale, $pattern) { } *

    * @return MessageFormatter The formatter object */ - public static function create($locale, $pattern) { } + public static function create($locale, $pattern) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1567,7 +1564,7 @@ public static function create($locale, $pattern) { } * @return string|false The formatted string, or FALSE if an error occurred */ #[Pure] - public function format(array $values) { } + public function format(array $values) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1587,7 +1584,7 @@ public function format(array $values) { } *

    * @return string|false The formatted pattern string or FALSE if an error occurred */ - public static function formatMessage($locale, $pattern, array $values) { } + public static function formatMessage($locale, $pattern, array $values) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1599,7 +1596,7 @@ public static function formatMessage($locale, $pattern, array $values) { } * @return array|false An array containing the items extracted, or FALSE on error */ #[Pure] - public function parse($string) { } + public function parse($string) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1616,7 +1613,7 @@ public function parse($string) { } *

    * @return array|false An array containing items extracted, or FALSE on error */ - public static function parseMessage($locale, $pattern, $message) { } + public static function parseMessage($locale, $pattern, $message) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1630,7 +1627,7 @@ public static function parseMessage($locale, $pattern, $message) { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function setPattern($pattern) { } + public function setPattern($pattern) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1639,7 +1636,7 @@ public function setPattern($pattern) { } * @return string The pattern string for this message formatter */ #[Pure] - public function getPattern() { } + public function getPattern() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1648,7 +1645,7 @@ public function getPattern() { } * @return string The locale name */ #[Pure] - public function getLocale() { } + public function getLocale() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1657,7 +1654,7 @@ public function getLocale() { } * @return int The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR. */ #[Pure] - public function getErrorCode() { } + public function getErrorCode() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1666,58 +1663,57 @@ public function getErrorCode() { } * @return string Description of the last error. */ #[Pure] - public function getErrorMessage() { } + public function getErrorMessage() {} } -class IntlDateFormatter { - +class IntlDateFormatter +{ /** * Completely specified style (Tuesday, April 12, 1952 AD or 3:30:42pm PST) * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants */ - const FULL = 0; + public const FULL = 0; /** * Long style (January 12, 1952 or 3:30:32pm) * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants */ - const LONG = 1; + public const LONG = 1; /** * Medium style (Jan 12, 1952) * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants */ - const MEDIUM = 2; + public const MEDIUM = 2; /** * Most abbreviated style, only essential data (12/13/52 or 3:30pm) * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants */ - const SHORT = 3; + public const SHORT = 3; /** * Do not include this element * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants */ - const NONE = -1; + public const NONE = -1; /** * Gregorian Calendar * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants */ - const GREGORIAN = 1; + public const GREGORIAN = 1; /** * Non-Gregorian Calendar * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants */ - const TRADITIONAL = 0; - - const RELATIVE_FULL = 128; - const RELATIVE_LONG = 129; - const RELATIVE_MEDIUM = 130; - const RELATIVE_SHORT = 131; + public const TRADITIONAL = 0; + public const RELATIVE_FULL = 128; + public const RELATIVE_LONG = 129; + public const RELATIVE_MEDIUM = 130; + public const RELATIVE_SHORT = 131; /** * @param string|null $locale @@ -1728,7 +1724,7 @@ class IntlDateFormatter { * @param string $pattern [optional] */ #[Pure] - public function __construct($locale, $dateType, $timeType, $timezone = null, $calendar = null, $pattern = '') { } + public function __construct($locale, $dateType, $timeType, $timezone = null, $calendar = null, $pattern = '') {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1765,7 +1761,7 @@ public function __construct($locale, $dateType, $timeType, $timezone = null, $ca *

    * @return IntlDateFormatter */ - public static function create($locale, $dateType, $timeType, $timezone = null, $calendar = null, $pattern = '') { } + public static function create($locale, $dateType, $timeType, $timezone = null, $calendar = null, $pattern = '') {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1774,7 +1770,7 @@ public static function create($locale, $dateType, $timeType, $timezone = null, $ * @return int The current date type value of the formatter. */ #[Pure] - public function getDateType() { } + public function getDateType() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1783,7 +1779,7 @@ public function getDateType() { } * @return int The current date type value of the formatter. */ #[Pure] - public function getTimeType() { } + public function getTimeType() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1792,7 +1788,7 @@ public function getTimeType() { } * @return int The calendar being used by the formatter. */ #[Pure] - public function getCalendar() { } + public function getCalendar() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1804,7 +1800,7 @@ public function getCalendar() { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function setCalendar($calendar) { } + public function setCalendar($calendar) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1813,7 +1809,7 @@ public function setCalendar($calendar) { } * @return string ID string for the time zone used by this formatter. */ #[Pure] - public function getTimeZoneId() { } + public function getTimeZoneId() {} /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)
    @@ -1822,7 +1818,7 @@ public function getTimeZoneId() { } * @return IntlCalendar A copy of the internal calendar object used by this formatter. */ #[Pure] - public function getCalendarObject() { } + public function getCalendarObject() {} /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)
    @@ -1831,7 +1827,7 @@ public function getCalendarObject() { } * @return IntlTimeZone|false The associated IntlTimeZone object or FALSE on failure. */ #[Pure] - public function getTimeZone() { } + public function getTimeZone() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1845,8 +1841,8 @@ public function getTimeZone() { } * @removed 7.0 * @see IntlDateFormatter::setTimeZone() */ - #[Deprecated(replacement: "%class%->setTimeZone(%parametersList%)" ,since: "5.5")] - public function setTimeZoneId($zone) { } + #[Deprecated(replacement: "%class%->setTimeZone(%parametersList%)", since: "5.5")] + public function setTimeZoneId($zone) {} /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)
    @@ -1886,7 +1882,7 @@ public function setTimeZoneId($zone) { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function setTimeZone($timezone) { } + public function setTimeZone($timezone) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1899,7 +1895,7 @@ public function setTimeZone($timezone) { } * @return bool TRUE on success or FALSE on failure. * Bad formatstrings are usually the cause of the failure. */ - public function setPattern($pattern) { } + public function setPattern($pattern) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1908,7 +1904,7 @@ public function setPattern($pattern) { } * @return string The pattern string being used to format/parse. */ #[Pure] - public function getPattern() { } + public function getPattern() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1918,7 +1914,7 @@ public function getPattern() { } * @return string|false the locale of this formatter or 'false' if error */ #[Pure] - public function getLocale($type = null) { } + public function getLocale($type = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1929,7 +1925,7 @@ public function getLocale($type = null) { } *

    * @return bool TRUE on success or FALSE on failure. */ - public function setLenient($lenient) { } + public function setLenient($lenient) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1938,7 +1934,7 @@ public function setLenient($lenient) { } * @return bool TRUE if parser is lenient, FALSE if parser is strict. By default the parser is lenient. */ #[Pure] - public function isLenient() { } + public function isLenient() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1952,7 +1948,7 @@ public function isLenient() { } *

    * @return string|false The formatted string or, if an error occurred, FALSE. */ - public function format($datetime) { } + public function format($datetime) {} /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)
    @@ -1978,7 +1974,7 @@ public function format($datetime) { } * The locale to use, or NULL to use the {@link "https://secure.php.net/manual/en/intl.configuration.php#ini.intl.default-locale" default one}.

    * @return string|false A string with result or FALSE on failure. */ - public static function formatObject($datetime, $format = null, $locale = null) { } + public static function formatObject($datetime, $format = null, $locale = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -1996,7 +1992,7 @@ public static function formatObject($datetime, $format = null, $locale = null) { *

    * @return int timestamp parsed value */ - public function parse($string, &$offset = null) { } + public function parse($string, &$offset = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -2013,7 +2009,7 @@ public function parse($string, &$offset = null) { } *

    * @return array Localtime compatible array of integers : contains 24 hour clock value in tm_hour field */ - public function localtime($string, &$offset = null) { } + public function localtime($string, &$offset = null) {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -2022,7 +2018,7 @@ public function localtime($string, &$offset = null) { } * @return int The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR. */ #[Pure] - public function getErrorCode() { } + public function getErrorCode() {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -2031,11 +2027,11 @@ public function getErrorCode() { } * @return string Description of the last error. */ #[Pure] - public function getErrorMessage() { } + public function getErrorMessage() {} } -class ResourceBundle implements IteratorAggregate, Countable { - +class ResourceBundle implements IteratorAggregate, Countable +{ /** * @link https://www.php.net/manual/en/resourcebundle.create.php * @param string $locale

    Locale for which the resources should be loaded (locale name, e.g. en_CA).

    @@ -2043,7 +2039,7 @@ class ResourceBundle implements IteratorAggregate, Countable { * @param bool $fallback [optional]

    Whether locale should match exactly or fallback to parent locale is allowed.

    */ #[Pure] - public function __construct($locale, $bundle, $fallback = true) { } + public function __construct($locale, $bundle, $fallback = true) {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -2060,7 +2056,7 @@ public function __construct($locale, $bundle, $fallback = true) { } *

    * @return ResourceBundle|false ResourceBundle object or FALSE on error. */ - public static function create($locale, $bundle, $fallback = true) { } + public static function create($locale, $bundle, $fallback = true) {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -2075,7 +2071,7 @@ public static function create($locale, $bundle, $fallback = true) { } * returned as ResourceBundle object. */ #[Pure] - public function get($index, $fallback = true) { } + public function get($index, $fallback = true) {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -2084,7 +2080,7 @@ public function get($index, $fallback = true) { } * @return int number of elements in the bundle. */ #[Pure] - public function count() { } + public function count() {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -2096,7 +2092,7 @@ public function count() { } *

    * @return array the list of locales supported by the bundle. */ - public static function getLocales($bundle) { } + public static function getLocales($bundle) {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -2105,7 +2101,7 @@ public static function getLocales($bundle) { } * @return int error code from last bundle object call. */ #[Pure] - public function getErrorCode() { } + public function getErrorCode() {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -2114,32 +2110,32 @@ public function getErrorCode() { } * @return string error message from last bundle object's call. */ #[Pure] - public function getErrorMessage() { } + public function getErrorMessage() {} /** * @since 8.0 * @return Traversable */ #[Pure] - public function getIterator(){} + public function getIterator() {} } /** * @since 5.4 */ -class Transliterator { - const FORWARD = 0; - const REVERSE = 1; +class Transliterator +{ + public const FORWARD = 0; + public const REVERSE = 1; public $id; - /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    * Private constructor to deny instantiation * @link https://php.net/manual/en/transliterator.construct.php */ - final private function __construct() { } + final private function __construct() {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2157,7 +2153,7 @@ final private function __construct() { } * @return Transliterator|null a Transliterator object on success, * or NULL on failure. */ - public static function create($id, $direction = null) { } + public static function create($id, $direction = null) {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2175,7 +2171,7 @@ public static function create($id, $direction = null) { } * @return Transliterator|null a Transliterator object on success, * or NULL on failure. */ - public static function createFromRules($rules, $direction = null) { } + public static function createFromRules($rules, $direction = null) {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2185,7 +2181,7 @@ public static function createFromRules($rules, $direction = null) { } * or NULL on failure */ #[Pure] - public function createInverse() { } + public function createInverse() {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2194,7 +2190,7 @@ public function createInverse() { } * @return array An array of registered transliterator IDs on success, * or FALSE on failure. */ - public static function listIDs() { } + public static function listIDs() {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2216,7 +2212,7 @@ public static function listIDs() { } * @return string|false The transfomed string on success, or FALSE on failure. */ #[Pure] - public function transliterate($string, $start = null, $end = -1) { } + public function transliterate($string, $start = null, $end = -1) {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2226,7 +2222,7 @@ public function transliterate($string, $start = null, $end = -1) { } * or FALSE if none exists, or on failure. */ #[Pure] - public function getErrorCode() { } + public function getErrorCode() {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2236,26 +2232,27 @@ public function getErrorCode() { } * or FALSE if none exists, or on failure. */ #[Pure] - public function getErrorMessage() { } + public function getErrorMessage() {} } /** * @link https://php.net/manual/en/class.spoofchecker.php */ -class Spoofchecker { - const SINGLE_SCRIPT_CONFUSABLE = 1; - const MIXED_SCRIPT_CONFUSABLE = 2; - const WHOLE_SCRIPT_CONFUSABLE = 4; - const ANY_CASE = 8; - const SINGLE_SCRIPT = 16; - const INVISIBLE = 32; - const CHAR_LIMIT = 64; - const ASCII = 268435456; - const HIGHLY_RESTRICTIVE = 805306368; - const MODERATELY_RESTRICTIVE = 1073741824; - const MINIMALLY_RESTRICTIVE = 1342177280; - const UNRESTRICTIVE = 1610612736; - const SINGLE_SCRIPT_RESTRICTIVE = 536870912; +class Spoofchecker +{ + public const SINGLE_SCRIPT_CONFUSABLE = 1; + public const MIXED_SCRIPT_CONFUSABLE = 2; + public const WHOLE_SCRIPT_CONFUSABLE = 4; + public const ANY_CASE = 8; + public const SINGLE_SCRIPT = 16; + public const INVISIBLE = 32; + public const CHAR_LIMIT = 64; + public const ASCII = 268435456; + public const HIGHLY_RESTRICTIVE = 805306368; + public const MODERATELY_RESTRICTIVE = 1073741824; + public const MINIMALLY_RESTRICTIVE = 1342177280; + public const UNRESTRICTIVE = 1610612736; + public const SINGLE_SCRIPT_RESTRICTIVE = 536870912; /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2263,7 +2260,7 @@ class Spoofchecker { * @link https://php.net/manual/en/spoofchecker.construct.php */ #[Pure] - public function __construct() { } + public function __construct() {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2275,7 +2272,7 @@ public function __construct() { } *

    * @return bool */ - public function isSuspicious($string, &$errorCode = null) { } + public function isSuspicious($string, &$errorCode = null) {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2289,7 +2286,7 @@ public function isSuspicious($string, &$errorCode = null) { } *

    * @return bool */ - public function areConfusable($string1, $string2, &$errorCode = null) { } + public function areConfusable($string1, $string2, &$errorCode = null) {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2299,7 +2296,7 @@ public function areConfusable($string1, $string2, &$errorCode = null) { } *

    * @return void */ - public function setAllowedLocales($locales) { } + public function setAllowedLocales($locales) {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -2309,7 +2306,7 @@ public function setAllowedLocales($locales) { } *

    * @return void */ - public function setChecks($checks) { } + public function setChecks($checks) {} public function setRestrictionLevel(int $level) {} } @@ -2317,8 +2314,8 @@ public function setRestrictionLevel(int $level) {} /** * @since 5.5 */ -class IntlGregorianCalendar extends IntlCalendar { - +class IntlGregorianCalendar extends IntlCalendar +{ /** * @link https://www.php.net/manual/en/intlgregoriancalendar.construct * @param int $timezoneOrYear [optional] @@ -2328,7 +2325,7 @@ class IntlGregorianCalendar extends IntlCalendar { * @param int $minute [optional] * @param int $second [optional] */ - public function __construct($timezoneOrYear , $localeOrMonth , $day , $hour , $minute , $second) {} + public function __construct($timezoneOrYear, $localeOrMonth, $day, $hour, $minute, $second) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2336,72 +2333,72 @@ public function __construct($timezoneOrYear , $localeOrMonth , $day , $hour , $m * @param string $locale * @return IntlGregorianCalendar */ - public static function createInstance($timeZone = null, $locale = null) { } + public static function createInstance($timeZone = null, $locale = null) {} /** * @param float $timestamp - * */ - public function setGregorianChange($timestamp) { } + public function setGregorianChange($timestamp) {} /** * @return float */ #[Pure] - public function getGregorianChange() { } + public function getGregorianChange() {} /** * @param int $year * @return bool */ #[Pure] - public function isLeapYear($year) { } + public function isLeapYear($year) {} } /** * @since 5.5 */ -class IntlCalendar { +class IntlCalendar +{ /* Constants */ - const FIELD_ERA = 0; - const FIELD_YEAR = 1; - const FIELD_MONTH = 2; - const FIELD_WEEK_OF_YEAR = 3; - const FIELD_WEEK_OF_MONTH = 4; - const FIELD_DATE = 5; - const FIELD_DAY_OF_YEAR = 6; - const FIELD_DAY_OF_WEEK = 7; - const FIELD_DAY_OF_WEEK_IN_MONTH = 8; - const FIELD_AM_PM = 9; - const FIELD_HOUR = 10; - const FIELD_HOUR_OF_DAY = 11; - const FIELD_MINUTE = 12; - const FIELD_SECOND = 13; - const FIELD_MILLISECOND = 14; - const FIELD_ZONE_OFFSET = 15; - const FIELD_DST_OFFSET = 16; - const FIELD_YEAR_WOY = 17; - const FIELD_DOW_LOCAL = 18; - const FIELD_EXTENDED_YEAR = 19; - const FIELD_JULIAN_DAY = 20; - const FIELD_MILLISECONDS_IN_DAY = 21; - const FIELD_IS_LEAP_MONTH = 22; - const FIELD_FIELD_COUNT = 23; - const FIELD_DAY_OF_MONTH = 5; - const DOW_SUNDAY = 1; - const DOW_MONDAY = 2; - const DOW_TUESDAY = 3; - const DOW_WEDNESDAY = 4; - const DOW_THURSDAY = 5; - const DOW_FRIDAY = 6; - const DOW_SATURDAY = 7; - const DOW_TYPE_WEEKDAY = 0; - const DOW_TYPE_WEEKEND = 1; - const DOW_TYPE_WEEKEND_OFFSET = 2; - const DOW_TYPE_WEEKEND_CEASE = 3; - const WALLTIME_FIRST = 1; - const WALLTIME_LAST = 0; - const WALLTIME_NEXT_VALID = 2; + public const FIELD_ERA = 0; + public const FIELD_YEAR = 1; + public const FIELD_MONTH = 2; + public const FIELD_WEEK_OF_YEAR = 3; + public const FIELD_WEEK_OF_MONTH = 4; + public const FIELD_DATE = 5; + public const FIELD_DAY_OF_YEAR = 6; + public const FIELD_DAY_OF_WEEK = 7; + public const FIELD_DAY_OF_WEEK_IN_MONTH = 8; + public const FIELD_AM_PM = 9; + public const FIELD_HOUR = 10; + public const FIELD_HOUR_OF_DAY = 11; + public const FIELD_MINUTE = 12; + public const FIELD_SECOND = 13; + public const FIELD_MILLISECOND = 14; + public const FIELD_ZONE_OFFSET = 15; + public const FIELD_DST_OFFSET = 16; + public const FIELD_YEAR_WOY = 17; + public const FIELD_DOW_LOCAL = 18; + public const FIELD_EXTENDED_YEAR = 19; + public const FIELD_JULIAN_DAY = 20; + public const FIELD_MILLISECONDS_IN_DAY = 21; + public const FIELD_IS_LEAP_MONTH = 22; + public const FIELD_FIELD_COUNT = 23; + public const FIELD_DAY_OF_MONTH = 5; + public const DOW_SUNDAY = 1; + public const DOW_MONDAY = 2; + public const DOW_TUESDAY = 3; + public const DOW_WEDNESDAY = 4; + public const DOW_THURSDAY = 5; + public const DOW_FRIDAY = 6; + public const DOW_SATURDAY = 7; + public const DOW_TYPE_WEEKDAY = 0; + public const DOW_TYPE_WEEKEND = 1; + public const DOW_TYPE_WEEKEND_OFFSET = 2; + public const DOW_TYPE_WEEKEND_CEASE = 3; + public const WALLTIME_FIRST = 1; + public const WALLTIME_LAST = 0; + public const WALLTIME_NEXT_VALID = 2; /* Methods */ @@ -2418,7 +2415,7 @@ class IntlCalendar { * For instance, hours for IntlCalendar::FIELD_HOUR_OF_DAY.

    * @return bool Returns TRUE on success or FALSE on failure. */ - public function add($field, $value) { } + public function add($field, $value) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2432,7 +2429,7 @@ public function add($field, $value) { } * {@link https://secure.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to detect error conditions. */ #[Pure] - public function after(IntlCalendar $other) { } + public function after(IntlCalendar $other) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2446,7 +2443,7 @@ public function after(IntlCalendar $other) { } * {@link https://secure.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to detect error conditions. */ #[Pure] - public function before(IntlCalendar $other) { } + public function before(IntlCalendar $other) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2459,16 +2456,14 @@ public function before(IntlCalendar $other) { } *

    * @return bool Returns TRUE on success or FALSE on failure. Failure can only occur is invalid arguments are provided. */ - public function clear($field = null) { } + public function clear($field = null) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    * Private constructor for disallowing instantiation * @link https://secure.php.net/manual/en/intlcalendar.construct.php - * */ - private function __construct() { } - + private function __construct() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2515,7 +2510,7 @@ private function __construct() { } * The created {@link https://secure.php.net/manual/en/class.intlcalendar.php IntlCalendar} instance or NULL on * failure. */ - public static function createInstance($timezone = null, $locale = null) { } + public static function createInstance($timezone = null, $locale = null) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2531,7 +2526,7 @@ public static function createInstance($timezone = null, $locale = null) { } *

    */ #[Pure] - public function equals($other) { } + public function equals($other) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2554,10 +2549,9 @@ public function equals($other) { } *

    * @return int Returns a (signed) difference of time in the unit associated with the * specified field or FALSE on failure. - * */ #[Pure] - public function fieldDifference($timestamp, $field) { } + public function fieldDifference($timestamp, $field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)
    @@ -2573,7 +2567,7 @@ public function fieldDifference($timestamp, $field) { } * failure. If a {@link https://secure.php.net/manual/en/language.types.string.php string} is passed, any exception that occurs * inside the {@link https://secure.php.net/manual/en/class.datetime.php DateTime} constructor is propagated. */ - public static function fromDateTime($datetime, $locale) { } + public static function fromDateTime($datetime, $locale) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2587,7 +2581,7 @@ public static function fromDateTime($datetime, $locale) { } * @return int An integer with the value of the time field. */ #[Pure] - public function get($field) { } + public function get($field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2603,7 +2597,7 @@ public function get($field) { } * with the given field or FALSE on failure. */ #[Pure] - public function getActualMaximum($field) { } + public function getActualMaximum($field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2619,7 +2613,7 @@ public function getActualMaximum($field) { } * unit or FALSE on failure. */ #[Pure] - public function getActualMinimum($field) { } + public function getActualMinimum($field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2627,7 +2621,7 @@ public function getActualMinimum($field) { } * @link https://secure.php.net/manual/en/intlcalendar.getavailablelocales.php * @return string[] An array of strings, one for which locale. */ - public static function getAvailableLocales() { } + public static function getAvailableLocales() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2643,20 +2637,18 @@ public static function getAvailableLocales() { } * IntlCalendar::DOW_TYPE_WEEKEND, * IntlCalendar::DOW_TYPE_WEEKEND_OFFSET or * IntlCalendar::DOW_TYPE_WEEKEND_CEASE or FALSE on failure. - * */ #[Pure] - public function getDayOfWeekType($dayOfWeek) { } + public function getDayOfWeekType($dayOfWeek) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    * Get last error code on the object * @link https://secure.php.net/manual/en/intlcalendar.geterrorcode.php * @return int An ICU error code indicating either success, failure or a warning. - * */ #[Pure] - public function getErrorCode() { } + public function getErrorCode() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2665,7 +2657,7 @@ public function getErrorCode() { } * @return string The error message associated with last error that occurred in a function call on this object, or a string indicating the non-existance of an error. */ #[Pure] - public function getErrorMessage() { } + public function getErrorMessage() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2675,10 +2667,9 @@ public function getErrorMessage() { } * One of the constants IntlCalendar::DOW_SUNDAY, * IntlCalendar::DOW_MONDAY, ..., * IntlCalendar::DOW_SATURDAY or FALSE on failure. - * */ #[Pure] - public function getFirstDayOfWeek() { } + public function getFirstDayOfWeek() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2693,7 +2684,7 @@ public function getFirstDayOfWeek() { } * unit, or FALSE on failure. */ #[Pure] - public function getGreatestMinimum($field) { } + public function getGreatestMinimum($field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2711,7 +2702,7 @@ public function getGreatestMinimum($field) { } *

    * @return Iterator|false An iterator that yields strings with the locale keyword values or FALSE on failure. */ - public static function getKeywordValuesForLocale($keyword, $locale, $onlyCommon) { } + public static function getKeywordValuesForLocale($keyword, $locale, $onlyCommon) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2727,7 +2718,7 @@ public static function getKeywordValuesForLocale($keyword, $locale, $onlyCommon) * unit or FALSE on failure. */ #[Pure] - public function getLeastMaximum($field) { } + public function getLeastMaximum($field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2742,10 +2733,9 @@ public function getLeastMaximum($field) { } * this fashion – actual locale, valid locale, requested locale. *

    * @return string - * */ #[Pure] - public function getLocale($type) { } + public function getLocale($type) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2759,7 +2749,7 @@ public function getLocale($type) { } * @return int */ #[Pure] - public function getMaximum($field) { } + public function getMaximum($field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2769,7 +2759,7 @@ public function getMaximum($field) { } * An {@link https://secure.php.net/manual/en/language.types.integer.php int} representing a number of days or FALSE on failure. */ #[Pure] - public function getMinimalDaysInFirstWeek() { } + public function getMinimalDaysInFirstWeek() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2784,14 +2774,14 @@ public function getMinimalDaysInFirstWeek() { } * An int representing a value for the given field in the field's unit or FALSE on failure. */ #[Pure] - public function getMinimum($field) { } + public function getMinimum($field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    * Get number representing the current time * @return float A float representing a number of milliseconds since the epoch, not counting leap seconds. */ - public static function getNow() { } + public static function getNow() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2800,10 +2790,9 @@ public static function getNow() { } * @return int * One of the constants IntlCalendar::WALLTIME_FIRST or * IntlCalendar::WALLTIME_LAST. - * */ #[Pure] - public function getRepeatedWallTimeOption() { } + public function getRepeatedWallTimeOption() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2815,7 +2804,7 @@ public function getRepeatedWallTimeOption() { } * IntlCalendar::WALLTIME_NEXT_VALID. */ #[Pure] - public function getSkippedWallTimeOption() { } + public function getSkippedWallTimeOption() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2825,7 +2814,7 @@ public function getSkippedWallTimeOption() { } * reference time (1 Jan 1970 00:00:00 UTC). */ #[Pure] - public function getTime() { } + public function getTime() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2836,7 +2825,7 @@ public function getTime() { } * internally in this object. */ #[Pure] - public function getTimeZone() { } + public function getTimeZone() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2847,7 +2836,7 @@ public function getTimeZone() { } * 'gregorian', 'islamic', etc. */ #[Pure] - public function getType() { } + public function getType() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2863,7 +2852,7 @@ public function getType() { } * ends or FALSE on failure. */ #[Pure] - public function getWeekendTransition($dayOfWeek) { } + public function getWeekendTransition($dayOfWeek) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2876,7 +2865,7 @@ public function getWeekendTransition($dayOfWeek) { } * {@link https://secure.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate. */ #[Pure] - public function inDaylightTime() { } + public function inDaylightTime() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2887,7 +2876,7 @@ public function inDaylightTime() { } * Assuming there are no argument errors, returns TRUE iif the calendars are equivalent except possibly for their set time. */ #[Pure] - public function isEquivalentTo(IntlCalendar $other) { } + public function isEquivalentTo(IntlCalendar $other) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2897,7 +2886,7 @@ public function isEquivalentTo(IntlCalendar $other) { } * A {@link https://secure.php.net/manual/en/language.types.boolean.php bool} representing whether the calendar is set to lenient mode. */ #[Pure] - public function isLenient() { } + public function isLenient() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2918,7 +2907,7 @@ public function isLenient() { } * {@link https://secure.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate.

    */ #[Pure] - public function isWeekend($timestamp = null) { } + public function isWeekend($timestamp = null) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2937,8 +2926,7 @@ public function isWeekend($timestamp = null) { } *

    * @return bool Returns TRUE on success or FALSE on failure. */ - public function roll($field, $value) { } - + public function roll($field, $value) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2952,7 +2940,7 @@ public function roll($field, $value) { } *

    * @return bool Assuming there are no argument errors, returns TRUE iif the field is set. */ - public function PS_UNRESERVE_PREFIX_isSet($field) { } + public function PS_UNRESERVE_PREFIX_isSet($field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -2985,7 +2973,7 @@ public function PS_UNRESERVE_PREFIX_isSet($field) { } *

    * @return bool Returns TRUE on success and FALSE on failure. */ - public function set($year, $month, $dayOfMonth = null, $hour = null, $minute = null, $second = null) { } + public function set($year, $month, $dayOfMonth = null, $hour = null, $minute = null, $second = null) {} /** * (PHP 5 >= 5.5.0 PECL intl >= 3.0.0a1)
    @@ -2996,7 +2984,7 @@ public function set($year, $month, $dayOfMonth = null, $hour = null, $minute = n * @return bool Returns TRUE on success and FALSE on failure. * @since 5.5 */ - public function set($field, $value) { } + public function set($field, $value) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3009,7 +2997,7 @@ public function set($field, $value) { } *

    * @return bool Returns TRUE on success. Failure can only happen due to invalid parameters. */ - public function setFirstDayOfWeek($dayOfWeek) { } + public function setFirstDayOfWeek($dayOfWeek) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3020,7 +3008,7 @@ public function setFirstDayOfWeek($dayOfWeek) { } *

    * @return bool Returns TRUE on success. Failure can only happen due to invalid parameters. */ - public function setLenient($lenient) { } + public function setLenient($lenient) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3032,9 +3020,8 @@ public function setLenient($lenient) { } *

    * @return bool * Returns TRUE on success. Failure can only happen due to invalid parameters. - * */ - public function setRepeatedWallTimeOption($option) { } + public function setRepeatedWallTimeOption($option) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3050,7 +3037,7 @@ public function setRepeatedWallTimeOption($option) { } * Returns TRUE on success. Failure can only happen due to invalid parameters. *

    */ - public function setSkippedWallTimeOption($option) { } + public function setSkippedWallTimeOption($option) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3063,7 +3050,7 @@ public function setSkippedWallTimeOption($option) { } * @return bool * Returns TRUE on success and FALSE on failure. */ - public function setTime($timestamp) { } + public function setTime($timestamp) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3104,7 +3091,7 @@ public function setTime($timestamp) { } * * @return bool Returns TRUE on success and FALSE on failure. */ - public function setTimeZone($timezone) { } + public function setTimeZone($timezone) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)
    @@ -3117,7 +3104,7 @@ public function setTimeZone($timezone) { } * Returns FALSE on failure. */ #[Pure] - public function toDateTime() { } + public function toDateTime() {} /** * @link https://www.php.net/manual/en/intlcalendar.setminimaldaysinfirstweek.php @@ -3130,42 +3117,41 @@ public function setMinimalDaysInFirstWeek($days) {} /** * @since 5.5 */ -class IntlIterator implements Iterator { - - public function current() { } +class IntlIterator implements Iterator +{ + public function current() {} - public function key() { } + public function key() {} - public function next() { } + public function next() {} - public function rewind() { } + public function rewind() {} - public function valid() { } + public function valid() {} } /** * @since 5.5 */ -class IntlException extends Exception { - -} +class IntlException extends Exception {} /** * @since 5.5 */ -class IntlTimeZone { +class IntlTimeZone +{ /* Constants */ - const DISPLAY_SHORT = 1; - const DISPLAY_LONG = 2; - const DISPLAY_SHORT_GENERIC = 3; - const DISPLAY_LONG_GENERIC = 4; - const DISPLAY_SHORT_GMT = 5; - const DISPLAY_LONG_GMT = 6; - const DISPLAY_SHORT_COMMONLY_USED = 7; - const DISPLAY_GENERIC_LOCATION = 8; - const TYPE_ANY = 0; - const TYPE_CANONICAL = 1; - const TYPE_CANONICAL_LOCATION = 2; + public const DISPLAY_SHORT = 1; + public const DISPLAY_LONG = 2; + public const DISPLAY_SHORT_GENERIC = 3; + public const DISPLAY_LONG_GENERIC = 4; + public const DISPLAY_SHORT_GMT = 5; + public const DISPLAY_LONG_GMT = 6; + public const DISPLAY_SHORT_COMMONLY_USED = 7; + public const DISPLAY_GENERIC_LOCATION = 8; + public const TYPE_ANY = 0; + public const TYPE_CANONICAL = 1; + public const TYPE_CANONICAL_LOCATION = 2; /* Methods */ @@ -3178,7 +3164,7 @@ private function __construct() {} * @param string $timezoneId * @return int|false number of IDs or FALSE on failure */ - public static function countEquivalentIDs($timezoneId) { } + public static function countEquivalentIDs($timezoneId) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3186,7 +3172,7 @@ public static function countEquivalentIDs($timezoneId) { } * @link https://secure.php.net/manual/en/intltimezone.createdefault.php * @return IntlTimeZone */ - public static function createDefault() { } + public static function createDefault() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3195,7 +3181,7 @@ public static function createDefault() { } * @param mixed $countryOrRawOffset [optional] * @return IntlIterator|false an iterator or FALSE on failure */ - public static function createEnumeration($countryOrRawOffset) { } + public static function createEnumeration($countryOrRawOffset) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3204,7 +3190,7 @@ public static function createEnumeration($countryOrRawOffset) { } * @param string $timezoneId * @return IntlTimeZone|null a timezone object or NULL on failure */ - public static function createTimeZone($timezoneId) { } + public static function createTimeZone($timezoneId) {} /** * (PHP 5 >=5.5.0)
    @@ -3215,7 +3201,7 @@ public static function createTimeZone($timezoneId) { } * @param int $rawOffset [optional] * @return IntlIterator|false an iterator or FALSE on failure */ - public static function createTimeZoneIDEnumeration($type, $region = null, $rawOffset = 0) { } + public static function createTimeZoneIDEnumeration($type, $region = null, $rawOffset = 0) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3224,7 +3210,7 @@ public static function createTimeZoneIDEnumeration($type, $region = null, $rawOf * @param DateTimeZone $timezone * @return IntlTimeZone|null a timezone object or NULL on failure */ - public static function fromDateTimeZone($timezone) { } + public static function fromDateTimeZone($timezone) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3234,7 +3220,7 @@ public static function fromDateTimeZone($timezone) { } * @param bool &$isSystemId [optional] * @return string|false the timezone ID or FALSE on failure */ - public static function getCanonicalID($timezoneId, &$isSystemId) { } + public static function getCanonicalID($timezoneId, &$isSystemId) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3245,7 +3231,7 @@ public static function getCanonicalID($timezoneId, &$isSystemId) { } * @return string|false the timezone name or FALSE on failure */ #[Pure] - public function getDisplayName($dst = false, $style = 2, $locale) { } + public function getDisplayName($dst = false, $style = 2, $locale) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3254,7 +3240,7 @@ public function getDisplayName($dst = false, $style = 2, $locale) { } * @return int */ #[Pure] - public function getDSTSavings() { } + public function getDSTSavings() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3264,7 +3250,7 @@ public function getDSTSavings() { } * @param int $offset * @return string|false the time zone ID or FALSE on failure */ - public static function getEquivalentID($timezoneId, $offset) { } + public static function getEquivalentID($timezoneId, $offset) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3273,7 +3259,7 @@ public static function getEquivalentID($timezoneId, $offset) { } * @return int */ #[Pure] - public function getErrorCode() { } + public function getErrorCode() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3282,7 +3268,7 @@ public function getErrorCode() { } * @return string */ #[Pure] - public function getErrorMessage() { } + public function getErrorMessage() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3290,7 +3276,7 @@ public function getErrorMessage() { } * @link https://secure.php.net/manual/en/intltimezone.getgmt.php * @return IntlTimeZone */ - public static function getGMT() { } + public static function getGMT() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3298,7 +3284,7 @@ public static function getGMT() { } * @return string */ #[Pure] - public function getID() { } + public function getID() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3320,7 +3306,7 @@ public function getID() { } * typically one hour. * @return bool boolean indication of success */ - public function getOffset($timestamp, $local, &$rawOffset, &$dstOffset) { } + public function getOffset($timestamp, $local, &$rawOffset, &$dstOffset) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3329,7 +3315,7 @@ public function getOffset($timestamp, $local, &$rawOffset, &$dstOffset) { } * @return int */ #[Pure] - public function getRawOffset() { } + public function getRawOffset() {} /** * (PHP 5 >=5.5.0)
    @@ -3338,7 +3324,7 @@ public function getRawOffset() { } * @param string $timezoneId * @return string|false region or FALSE on failure */ - public static function getRegion($timezoneId) { } + public static function getRegion($timezoneId) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3346,7 +3332,7 @@ public static function getRegion($timezoneId) { } * @link https://secure.php.net/manual/en/intltimezone.gettzdataversion.php * @return string */ - public static function getTZDataVersion() { } + public static function getTZDataVersion() {} /** * (PHP 5 >=5.5.0)
    @@ -3354,7 +3340,7 @@ public static function getTZDataVersion() { } * @link https://secure.php.net/manual/en/intltimezone.getunknown.php * @return IntlTimeZone */ - public static function getUnknown() { } + public static function getUnknown() {} /** * (PHP 7 >=7.1.0)
    @@ -3365,7 +3351,7 @@ public static function getUnknown() { } * @return string|false the Windows timezone or FALSE on failure * @since 7.1 */ - public static function getWindowsID(string $timezoneId) { } + public static function getWindowsID(string $timezoneId) {} /** * @link https://www.php.net/manual/en/intltimezone.getidforwindowsid.php @@ -3374,7 +3360,7 @@ public static function getWindowsID(string $timezoneId) { } * @return string|false the Windows timezone or FALSE on failure * @since 7.1 */ - public static function getIDForWindowsID(string $timezoneId , ?string $region = null) { } + public static function getIDForWindowsID(string $timezoneId, ?string $region = null) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3384,7 +3370,7 @@ public static function getIDForWindowsID(string $timezoneId , ?string $region = * @return bool */ #[Pure] - public function hasSameRules(IntlTimeZone $other) { } + public function hasSameRules(IntlTimeZone $other) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3393,7 +3379,7 @@ public function hasSameRules(IntlTimeZone $other) { } * @return DateTimeZone|false the DateTimeZone object or FALSE on failure */ #[Pure] - public function toDateTimeZone() { } + public function toDateTimeZone() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -3401,7 +3387,7 @@ public function toDateTimeZone() { } * @link https://secure.php.net/manual/en/intltimezone.usedaylighttime.php * @return bool */ - public function useDaylightTime() { } + public function useDaylightTime() {} } /** @@ -3418,7 +3404,7 @@ public function useDaylightTime() { } * on error. */ #[Pure] -function collator_create(string $locale): ?Collator { } +function collator_create(string $locale): ?Collator {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3451,7 +3437,7 @@ function collator_create(string $locale): ?Collator { } * is returned. */ #[Pure] -function collator_compare(Collator $object, string $string1, string $string2): int|false { } +function collator_compare(Collator $object, string $string1, string $string2): int|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3464,7 +3450,7 @@ function collator_compare(Collator $object, string $string1, string $string2): i * @return int|false Attribute value, or boolean FALSE on error. */ #[Pure] -function collator_get_attribute(Collator $object, int $attribute): int|false { } +function collator_get_attribute(Collator $object, int $attribute): int|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3477,7 +3463,7 @@ function collator_get_attribute(Collator $object, int $attribute): int|false { } *

    * @return bool TRUE on success or FALSE on failure. */ -function collator_set_attribute(Collator $object, int $attribute, int $value): bool { } +function collator_set_attribute(Collator $object, int $attribute, int $value): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3487,7 +3473,7 @@ function collator_set_attribute(Collator $object, int $attribute, int $value): b * @return int|false current collation strength, or boolean FALSE on error. */ #[Pure] -function collator_get_strength(Collator $object): int { } +function collator_get_strength(Collator $object): int {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3501,7 +3487,7 @@ function collator_get_strength(Collator $object): int { } *

    * @return bool TRUE on success or FALSE on failure. */ -function collator_set_strength(Collator $object, int $strength): bool { } +function collator_set_strength(Collator $object, int $strength): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3520,7 +3506,7 @@ function collator_set_strength(Collator $object, int $strength): bool { } *

    * @return bool TRUE on success or FALSE on failure. */ -function collator_sort(Collator $object, array &$array, int $flags = null): bool { } +function collator_sort(Collator $object, array &$array, int $flags = null): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3530,7 +3516,7 @@ function collator_sort(Collator $object, array &$array, int $flags = null): bool * @param string[] &$array

    Array of strings to sort

    * @return bool TRUE on success or FALSE on failure. */ -function collator_sort_with_sort_keys(Collator $object, array &$array): bool { } +function collator_sort_with_sort_keys(Collator $object, array &$array): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3545,7 +3531,7 @@ function collator_sort_with_sort_keys(Collator $object, array &$array): bool { } *

    * @return bool TRUE on success or FALSE on failure. */ -function collator_asort(Collator $object, array &$array, int $flags = null): bool { } +function collator_asort(Collator $object, array &$array, int $flags = null): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3563,7 +3549,7 @@ function collator_asort(Collator $object, array &$array, int $flags = null): boo * boolean FALSE. */ #[Pure] -function collator_get_locale(Collator $object, int $type = null): string|false { } +function collator_get_locale(Collator $object, int $type = null): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3573,7 +3559,7 @@ function collator_get_locale(Collator $object, int $type = null): string|false { * @return int|false Error code returned by the last Collator API function call. */ #[Pure] -function collator_get_error_code(Collator $object): int|false { } +function collator_get_error_code(Collator $object): int|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3583,7 +3569,7 @@ function collator_get_error_code(Collator $object): int|false { } * @return string|false Description of an error occurred in the last Collator API function call. */ #[Pure] -function collator_get_error_message(Collator $object): string|false { } +function collator_get_error_message(Collator $object): string|false {} /** * (PHP 5 >= 5.3.2, PHP 7, PECL intl >= 1.0.3)
    @@ -3596,7 +3582,7 @@ function collator_get_error_message(Collator $object): string|false { } * @return string|false the collation key for the string. Collation keys can be compared directly instead of strings. */ #[Pure] -function collator_get_sort_key(Collator $object, string $string): string|false { } +function collator_get_sort_key(Collator $object, string $string): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3623,7 +3609,7 @@ function collator_get_sort_key(Collator $object, string $string): string|false { * @return NumberFormatter|false|null NumberFormatter object or FALSE on error. */ #[Pure] -function numfmt_create(string $locale, int $style, #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $pattern = null): ?NumberFormatter { } +function numfmt_create(string $locale, int $style, #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $pattern = null): ?NumberFormatter {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3641,7 +3627,7 @@ function numfmt_create(string $locale, int $style, #[LanguageLevelTypeAware(['8. * @return string|false the string containing formatted value, or FALSE on error. */ #[Pure] -function numfmt_format(NumberFormatter $formatter, int|float $num, int $type = null): string|false { } +function numfmt_format(NumberFormatter $formatter, int|float $num, int $type = null): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3661,7 +3647,7 @@ function numfmt_format(NumberFormatter $formatter, int|float $num, int $type = n * @return int|float|false The value of the parsed number or FALSE on error. */ #[Pure] -function numfmt_parse(NumberFormatter $formatter, string $string, int $type = NumberFormatter::TYPE_DOUBLE, &$offset = null): int|float|false { } +function numfmt_parse(NumberFormatter $formatter, string $string, int $type = NumberFormatter::TYPE_DOUBLE, &$offset = null): int|float|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3677,7 +3663,7 @@ function numfmt_parse(NumberFormatter $formatter, string $string, int $type = Nu * @return string|false String representing the formatted currency value. */ #[Pure] -function numfmt_format_currency(NumberFormatter $formatter, float $amount, string $currency): string|false { } +function numfmt_format_currency(NumberFormatter $formatter, float $amount, string $currency): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3695,7 +3681,7 @@ function numfmt_format_currency(NumberFormatter $formatter, float $amount, strin *

    * @return float|false The parsed numeric value or FALSE on error. */ -function numfmt_parse_currency(NumberFormatter $formatter, string $string, &$currency, &$offset = null): float|false { } +function numfmt_parse_currency(NumberFormatter $formatter, string $string, &$currency, &$offset = null): float|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3711,7 +3697,7 @@ function numfmt_parse_currency(NumberFormatter $formatter, string $string, &$cur *

    * @return bool TRUE on success or FALSE on failure. */ -function numfmt_set_attribute(NumberFormatter $formatter, int $attribute, int|float $value): bool { } +function numfmt_set_attribute(NumberFormatter $formatter, int $attribute, int|float $value): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3725,7 +3711,7 @@ function numfmt_set_attribute(NumberFormatter $formatter, int $attribute, int|fl * @return int|float|false Return attribute value on success, or FALSE on error. */ #[Pure] -function numfmt_get_attribute(NumberFormatter $formatter, int $attribute): int|float|false { } +function numfmt_get_attribute(NumberFormatter $formatter, int $attribute): int|float|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3742,7 +3728,7 @@ function numfmt_get_attribute(NumberFormatter $formatter, int $attribute): int|f *

    * @return bool TRUE on success or FALSE on failure. */ -function numfmt_set_text_attribute(NumberFormatter $formatter, int $attribute, string $value): bool { } +function numfmt_set_text_attribute(NumberFormatter $formatter, int $attribute, string $value): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3756,7 +3742,7 @@ function numfmt_set_text_attribute(NumberFormatter $formatter, int $attribute, s * @return string|false Return attribute value on success, or FALSE on error. */ #[Pure] -function numfmt_get_text_attribute(NumberFormatter $formatter, int $attribute): string|false { } +function numfmt_get_text_attribute(NumberFormatter $formatter, int $attribute): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3772,7 +3758,7 @@ function numfmt_get_text_attribute(NumberFormatter $formatter, int $attribute): *

    * @return bool TRUE on success or FALSE on failure. */ -function numfmt_set_symbol(NumberFormatter $formatter, int $symbol, string $value): bool { } +function numfmt_set_symbol(NumberFormatter $formatter, int $symbol, string $value): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3786,7 +3772,7 @@ function numfmt_set_symbol(NumberFormatter $formatter, int $symbol, string $valu * @return string|false The symbol string or FALSE on error. */ #[Pure] -function numfmt_get_symbol(NumberFormatter $formatter, int $symbol): string|false { } +function numfmt_get_symbol(NumberFormatter $formatter, int $symbol): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3800,7 +3786,7 @@ function numfmt_get_symbol(NumberFormatter $formatter, int $symbol): string|fals *

    * @return bool TRUE on success or FALSE on failure. */ -function numfmt_set_pattern(NumberFormatter $formatter, string $pattern): bool { } +function numfmt_set_pattern(NumberFormatter $formatter, string $pattern): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3810,7 +3796,7 @@ function numfmt_set_pattern(NumberFormatter $formatter, string $pattern): bool { * @return string|false Pattern string that is used by the formatter, or FALSE if an error happens. */ #[Pure] -function numfmt_get_pattern(NumberFormatter $formatter): string|false { } +function numfmt_get_pattern(NumberFormatter $formatter): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3826,7 +3812,7 @@ function numfmt_get_pattern(NumberFormatter $formatter): string|false { } * @return string|false The locale name used to create the formatter. */ #[Pure] -function numfmt_get_locale(NumberFormatter $formatter, int $type = null): string|false { } +function numfmt_get_locale(NumberFormatter $formatter, int $type = null): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3836,7 +3822,7 @@ function numfmt_get_locale(NumberFormatter $formatter, int $type = null): string * @return int error code from last formatter call. */ #[Pure] -function numfmt_get_error_code(NumberFormatter $formatter): int { } +function numfmt_get_error_code(NumberFormatter $formatter): int {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3846,7 +3832,7 @@ function numfmt_get_error_code(NumberFormatter $formatter): int { } * @return string error message from last formatter call. */ #[Pure] -function numfmt_get_error_message(NumberFormatter $formatter): string { } +function numfmt_get_error_message(NumberFormatter $formatter): string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3857,12 +3843,12 @@ function numfmt_get_error_message(NumberFormatter $formatter): string { } * @return string|false The normalized string or FALSE if an error occurred. */ #[Pure] -function normalizer_normalize(string $string, int $form = Normalizer::FORM_C): string|false { } +function normalizer_normalize(string $string, int $form = Normalizer::FORM_C): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    * Checks if the provided string is already in the specified normalization -* form. + * form. * @link https://php.net/manual/en/normalizer.isnormalized.php * @param string $string

    The input string to normalize

    * @param int $form [optional]

    @@ -3871,7 +3857,7 @@ function normalizer_normalize(string $string, int $form = Normalizer::FORM_C): s * @return bool TRUE if normalized, FALSE otherwise or if there an error */ #[Pure] -function normalizer_is_normalized(string $string, int $form = Normalizer::FORM_C): bool { } +function normalizer_is_normalized(string $string, int $form = Normalizer::FORM_C): bool {} /** * Gets the default locale value from the intl global 'default_locale' @@ -3879,7 +3865,7 @@ function normalizer_is_normalized(string $string, int $form = Normalizer::FORM_C * @return string a string with the current Locale. */ #[Pure] -function locale_get_default(): string { } +function locale_get_default(): string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3891,7 +3877,7 @@ function locale_get_default(): string { } *

    * @return bool TRUE on success or FALSE on failure. */ -function locale_set_default(string $locale): bool { } +function locale_set_default(string $locale): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3903,7 +3889,7 @@ function locale_set_default(string $locale): bool { } * @return string|null The language code associated with the language or NULL in case of error. */ #[Pure] -function locale_get_primary_language(string $locale): ?string { } +function locale_get_primary_language(string $locale): ?string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3915,7 +3901,7 @@ function locale_get_primary_language(string $locale): ?string { } * @return string|null The script subtag for the locale or NULL if not present */ #[Pure] -function locale_get_script(string $locale): ?string { } +function locale_get_script(string $locale): ?string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3927,7 +3913,7 @@ function locale_get_script(string $locale): ?string { } * @return string|null The region subtag for the locale or NULL if not present */ #[Pure] -function locale_get_region(string $locale): ?string { } +function locale_get_region(string $locale): ?string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3939,7 +3925,7 @@ function locale_get_region(string $locale): ?string { } * @return array|false|null Associative array containing the keyword-value pairs for this locale */ #[Pure] -function locale_get_keywords(string $locale): array|false|null { } +function locale_get_keywords(string $locale): array|false|null {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3955,7 +3941,7 @@ function locale_get_keywords(string $locale): array|false|null { } * $in_locale. */ #[Pure] -function locale_get_display_script(string $locale, ?string $displayLocale = null): string|false { } +function locale_get_display_script(string $locale, ?string $displayLocale = null): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3971,7 +3957,7 @@ function locale_get_display_script(string $locale, ?string $displayLocale = null * $in_locale. */ #[Pure] -function locale_get_display_region(string $locale, ?string $displayLocale = null): string|false { } +function locale_get_display_region(string $locale, ?string $displayLocale = null): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -3984,7 +3970,7 @@ function locale_get_display_region(string $locale, ?string $displayLocale = null * @return string|false Display name of the locale in the format appropriate for $in_locale. */ #[Pure] -function locale_get_display_name(string $locale, ?string $displayLocale = null): string|false { } +function locale_get_display_name(string $locale, ?string $displayLocale = null): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4000,7 +3986,7 @@ function locale_get_display_name(string $locale, ?string $displayLocale = null): * $in_locale. */ #[Pure] -function locale_get_display_language(string $locale, ?string $displayLocale = null): string|false { } +function locale_get_display_language(string $locale, ?string $displayLocale = null): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4016,7 +4002,7 @@ function locale_get_display_language(string $locale, ?string $displayLocale = nu * $in_locale. */ #[Pure] -function locale_get_display_variant(string $locale, ?string $displayLocale = null): string|false { } +function locale_get_display_variant(string $locale, ?string $displayLocale = null): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4043,7 +4029,7 @@ function locale_get_display_variant(string $locale, ?string $displayLocale = nul * @return string|false The corresponding locale identifier. */ #[Pure] -function locale_compose(array $subtags): string|false { } +function locale_compose(array $subtags): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4062,7 +4048,7 @@ function locale_compose(array $subtags): string|false { } * variant2=>varZ */ #[Pure] -function locale_parse(string $locale): ?array { } +function locale_parse(string $locale): ?array {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4075,7 +4061,7 @@ function locale_parse(string $locale): ?array { } * or NULL if not present */ #[Pure] -function locale_get_all_variants(string $locale): ?array { } +function locale_get_all_variants(string $locale): ?array {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4094,7 +4080,7 @@ function locale_get_all_variants(string $locale): ?array { } * @return bool|null TRUE if $locale matches $langtag FALSE otherwise. */ #[Pure] -function locale_filter_matches(string $languageTag, string $locale, bool $canonicalize = false): ?bool { } +function locale_filter_matches(string $languageTag, string $locale, bool $canonicalize = false): ?bool {} /** * Canonicalize the locale string @@ -4103,7 +4089,7 @@ function locale_filter_matches(string $languageTag, string $locale, bool $canoni * @return null|string */ #[Pure] -function locale_canonicalize(string $locale): ?string { } +function locale_canonicalize(string $locale): ?string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4126,7 +4112,7 @@ function locale_canonicalize(string $locale): ?string { } * @return string|null The closest matching language tag or default value. */ #[Pure] -function locale_lookup(array $languageTag, string $locale, bool $canonicalize = false, ?string $defaultLocale = null): ?string { } +function locale_lookup(array $languageTag, string $locale, bool $canonicalize = false, ?string $defaultLocale = null): ?string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4138,7 +4124,7 @@ function locale_lookup(array $languageTag, string $locale, bool $canonicalize = * @return string|false The corresponding locale identifier. */ #[Pure] -function locale_accept_from_http(string $header): string|false { } +function locale_accept_from_http(string $header): string|false {} /** * Constructs a new message formatter @@ -4147,7 +4133,7 @@ function locale_accept_from_http(string $header): string|false { } * @return MessageFormatter|null */ #[Pure] -function msgfmt_create(string $locale, string $pattern): ?MessageFormatter { } +function msgfmt_create(string $locale, string $pattern): ?MessageFormatter {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4160,7 +4146,7 @@ function msgfmt_create(string $locale, string $pattern): ?MessageFormatter { } * @return string|false The formatted string, or FALSE if an error occurred */ #[Pure] -function msgfmt_format(MessageFormatter $formatter, array $values): string|false { } +function msgfmt_format(MessageFormatter $formatter, array $values): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4181,7 +4167,7 @@ function msgfmt_format(MessageFormatter $formatter, array $values): string|false * @return string|false The formatted pattern string or FALSE if an error occurred */ #[Pure] -function msgfmt_format_message(string $locale, string $pattern, array $values): string|false { } +function msgfmt_format_message(string $locale, string $pattern, array $values): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4194,7 +4180,7 @@ function msgfmt_format_message(string $locale, string $pattern, array $values): * @return array|false An array containing the items extracted, or FALSE on error */ #[Pure] -function msgfmt_parse(MessageFormatter $formatter, string $string): array|false { } +function msgfmt_parse(MessageFormatter $formatter, string $string): array|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4212,7 +4198,7 @@ function msgfmt_parse(MessageFormatter $formatter, string $string): array|false * @return array|false An array containing items extracted, or FALSE on error */ #[Pure] -function msgfmt_parse_message(string $locale, string $pattern, string $message): array|false { } +function msgfmt_parse_message(string $locale, string $pattern, string $message): array|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4227,7 +4213,7 @@ function msgfmt_parse_message(string $locale, string $pattern, string $message): *

    * @return bool TRUE on success or FALSE on failure. */ -function msgfmt_set_pattern(MessageFormatter $formatter, string $pattern): bool { } +function msgfmt_set_pattern(MessageFormatter $formatter, string $pattern): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4237,7 +4223,7 @@ function msgfmt_set_pattern(MessageFormatter $formatter, string $pattern): bool * @return string|false The pattern string for this message formatter */ #[Pure] -function msgfmt_get_pattern(MessageFormatter $formatter): string|false { } +function msgfmt_get_pattern(MessageFormatter $formatter): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4247,7 +4233,7 @@ function msgfmt_get_pattern(MessageFormatter $formatter): string|false { } * @return string The locale name */ #[Pure] -function msgfmt_get_locale(MessageFormatter $formatter): string { } +function msgfmt_get_locale(MessageFormatter $formatter): string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4257,7 +4243,7 @@ function msgfmt_get_locale(MessageFormatter $formatter): string { } * @return int The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR. */ #[Pure] -function msgfmt_get_error_code(MessageFormatter $formatter): int { } +function msgfmt_get_error_code(MessageFormatter $formatter): int {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4267,7 +4253,7 @@ function msgfmt_get_error_code(MessageFormatter $formatter): int { } * @return string Description of the last error. */ #[Pure] -function msgfmt_get_error_message(MessageFormatter $formatter): string { } +function msgfmt_get_error_message(MessageFormatter $formatter): string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4306,7 +4292,7 @@ function msgfmt_get_error_message(MessageFormatter $formatter): string { } */ #[Pure] function datefmt_create(?string $locale, int $dateType, int $timeType, $timezone = null, IntlCalendar|int|null $calendar = null, - #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $pattern = null): ?IntlDateFormatter { } + #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $pattern = null): ?IntlDateFormatter {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4316,7 +4302,7 @@ function datefmt_create(?string $locale, int $dateType, int $timeType, $timezone * @return int|false The current date type value of the formatter. */ #[Pure] -function datefmt_get_datetype(IntlDateFormatter $formatter): int|false { } +function datefmt_get_datetype(IntlDateFormatter $formatter): int|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4326,7 +4312,7 @@ function datefmt_get_datetype(IntlDateFormatter $formatter): int|false { } * @return int|false The current date type value of the formatter. */ #[Pure] -function datefmt_get_timetype(IntlDateFormatter $formatter): int|false { } +function datefmt_get_timetype(IntlDateFormatter $formatter): int|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4336,7 +4322,7 @@ function datefmt_get_timetype(IntlDateFormatter $formatter): int|false { } * @return int|false The calendar being used by the formatter. */ #[Pure] -function datefmt_get_calendar(IntlDateFormatter $formatter): int|false { } +function datefmt_get_calendar(IntlDateFormatter $formatter): int|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4349,7 +4335,7 @@ function datefmt_get_calendar(IntlDateFormatter $formatter): int|false { } *

    * @return bool TRUE on success or FALSE on failure. */ -function datefmt_set_calendar(IntlDateFormatter $formatter, IntlCalendar|int|null $calendar): bool { } +function datefmt_set_calendar(IntlDateFormatter $formatter, IntlCalendar|int|null $calendar): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4360,7 +4346,7 @@ function datefmt_set_calendar(IntlDateFormatter $formatter, IntlCalendar|int|nul * @return string|false the locale of this formatter or 'false' if error */ #[Pure] -function datefmt_get_locale(IntlDateFormatter $formatter, int $type = ULOC_ACTUAL_LOCALE): string|false { } +function datefmt_get_locale(IntlDateFormatter $formatter, int $type = ULOC_ACTUAL_LOCALE): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4370,7 +4356,7 @@ function datefmt_get_locale(IntlDateFormatter $formatter, int $type = ULOC_ACTUA * @return string|false ID string for the time zone used by this formatter. */ #[Pure] -function datefmt_get_timezone_id(IntlDateFormatter $formatter): string|false { } +function datefmt_get_timezone_id(IntlDateFormatter $formatter): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 3.0.0)
    @@ -4380,7 +4366,7 @@ function datefmt_get_timezone_id(IntlDateFormatter $formatter): string|false { } * @return IntlCalendar|false|null A copy of the internal calendar object used by this formatter. */ #[Pure] -function datefmt_get_calendar_object(IntlDateFormatter $formatter): IntlCalendar|false|null { } +function datefmt_get_calendar_object(IntlDateFormatter $formatter): IntlCalendar|false|null {} /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)
    @@ -4390,7 +4376,7 @@ function datefmt_get_calendar_object(IntlDateFormatter $formatter): IntlCalendar * @return IntlTimeZone|false The associated IntlTimeZone object or FALSE on failure. */ #[Pure] -function datefmt_get_timezone(IntlDateFormatter $formatter): IntlTimeZone|false { } +function datefmt_get_timezone(IntlDateFormatter $formatter): IntlTimeZone|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4406,7 +4392,7 @@ function datefmt_get_timezone(IntlDateFormatter $formatter): IntlTimeZone|false * @see datefmt_set_timezone() */ #[Deprecated(replacement: "datefmt_set_timezone(%parametersList%)", since: "5.5")] -function datefmt_set_timezone_id(MessageFormatter $mf, $zone) { } +function datefmt_set_timezone_id(MessageFormatter $mf, $zone) {} /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)
    @@ -4447,7 +4433,7 @@ function datefmt_set_timezone_id(MessageFormatter $mf, $zone) { } *

    * @return bool|null TRUE on success or FALSE on failure. */ -function datefmt_set_timezone(IntlDateFormatter $formatter, $timezone): ?bool { } +function datefmt_set_timezone(IntlDateFormatter $formatter, $timezone): ?bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4457,7 +4443,7 @@ function datefmt_set_timezone(IntlDateFormatter $formatter, $timezone): ?bool { * @return string|false The pattern string being used to format/parse. */ #[Pure] -function datefmt_get_pattern(IntlDateFormatter $formatter): string|false { } +function datefmt_get_pattern(IntlDateFormatter $formatter): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4471,7 +4457,7 @@ function datefmt_get_pattern(IntlDateFormatter $formatter): string|false { } * @return bool TRUE on success or FALSE on failure. * Bad formatstrings are usually the cause of the failure. */ -function datefmt_set_pattern(IntlDateFormatter $formatter, string $pattern): bool { } +function datefmt_set_pattern(IntlDateFormatter $formatter, string $pattern): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4481,7 +4467,7 @@ function datefmt_set_pattern(IntlDateFormatter $formatter, string $pattern): boo * @return bool TRUE if parser is lenient, FALSE if parser is strict. By default the parser is lenient. */ #[Pure] -function datefmt_is_lenient(IntlDateFormatter $formatter): bool { } +function datefmt_is_lenient(IntlDateFormatter $formatter): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4493,7 +4479,7 @@ function datefmt_is_lenient(IntlDateFormatter $formatter): bool { } *

    * @return void */ -function datefmt_set_lenient(IntlDateFormatter $formatter, bool $lenient): void { } +function datefmt_set_lenient(IntlDateFormatter $formatter, bool $lenient): void {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4509,7 +4495,7 @@ function datefmt_set_lenient(IntlDateFormatter $formatter, bool $lenient): void * @return string|false The formatted string or, if an error occurred, FALSE. */ #[Pure] -function datefmt_format(IntlDateFormatter $formatter, $datetime): string|false { } +function datefmt_format(IntlDateFormatter $formatter, $datetime): string|false {} /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)
    @@ -4536,7 +4522,7 @@ function datefmt_format(IntlDateFormatter $formatter, $datetime): string|false { * @return string|false The formatted string or, if an error occurred, FALSE. */ #[Pure] -function datefmt_format_object($datetime, $format = null, ?string $locale = null): string|false { } +function datefmt_format_object($datetime, $format = null, ?string $locale = null): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4555,7 +4541,7 @@ function datefmt_format_object($datetime, $format = null, ?string $locale = null *

    * @return int|float|false timestamp parsed value */ -function datefmt_parse(IntlDateFormatter $formatter, string $string, &$offset = null): int|float|false { } +function datefmt_parse(IntlDateFormatter $formatter, string $string, &$offset = null): int|float|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4573,7 +4559,7 @@ function datefmt_parse(IntlDateFormatter $formatter, string $string, &$offset = *

    * @return array|false Localtime compatible array of integers : contains 24 hour clock value in tm_hour field */ -function datefmt_localtime(IntlDateFormatter $formatter, string $string, &$offset = null): array|false { } +function datefmt_localtime(IntlDateFormatter $formatter, string $string, &$offset = null): array|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4583,7 +4569,7 @@ function datefmt_localtime(IntlDateFormatter $formatter, string $string, &$offse * @return int The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR. */ #[Pure] -function datefmt_get_error_code(IntlDateFormatter $formatter): int { } +function datefmt_get_error_code(IntlDateFormatter $formatter): int {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4593,7 +4579,7 @@ function datefmt_get_error_code(IntlDateFormatter $formatter): int { } * @return string Description of the last error. */ #[Pure] -function datefmt_get_error_message(IntlDateFormatter $formatter): string { } +function datefmt_get_error_message(IntlDateFormatter $formatter): string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4605,7 +4591,7 @@ function datefmt_get_error_message(IntlDateFormatter $formatter): string { } * @return int|false|null The length of the string on success, and 0 if the string is empty. */ #[Pure] -function grapheme_strlen(string $string): int|false|null { } +function grapheme_strlen(string $string): int|false|null {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4626,7 +4612,7 @@ function grapheme_strlen(string $string): int|false|null { } * @return int|false the position as an integer. If needle is not found, strpos() will return boolean FALSE. */ #[Pure] -function grapheme_strpos(string $haystack, string $needle, int $offset = 0): int|false { } +function grapheme_strpos(string $haystack, string $needle, int $offset = 0): int|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4647,7 +4633,7 @@ function grapheme_strpos(string $haystack, string $needle, int $offset = 0): int * @return int|false the position as an integer. If needle is not found, grapheme_stripos() will return boolean FALSE. */ #[Pure] -function grapheme_stripos(string $haystack, string $needle, int $offset = 0): int|false { } +function grapheme_stripos(string $haystack, string $needle, int $offset = 0): int|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4668,7 +4654,7 @@ function grapheme_stripos(string $haystack, string $needle, int $offset = 0): in * @return int|false the position as an integer. If needle is not found, grapheme_strrpos() will return boolean FALSE. */ #[Pure] -function grapheme_strrpos(string $haystack, string $needle, int $offset = 0): int|false { } +function grapheme_strrpos(string $haystack, string $needle, int $offset = 0): int|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4689,7 +4675,7 @@ function grapheme_strrpos(string $haystack, string $needle, int $offset = 0): in * @return int|false the position as an integer. If needle is not found, grapheme_strripos() will return boolean FALSE. */ #[Pure] -function grapheme_strripos(string $haystack, string $needle, int $offset = 0): int|false { } +function grapheme_strripos(string $haystack, string $needle, int $offset = 0): int|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4715,11 +4701,11 @@ function grapheme_strripos(string $haystack, string $needle, int $offset = 0): i * denotes a position beyond this truncation, FALSE will be returned. *

    * @return string|false

    the extracted part of $string,
    - * or FALSE if $length is negative and $start denotes a position beyond truncation $length,
    - * or also FALSE if $start denotes a position beyond $string length

    + * or FALSE if $length is negative and $start denotes a position beyond truncation $length,
    + * or also FALSE if $start denotes a position beyond $string length

    */ #[Pure] -function grapheme_substr(string $string, int $offset, ?int $length = null): string|false { } +function grapheme_substr(string $string, int $offset, ?int $length = null): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4738,7 +4724,7 @@ function grapheme_substr(string $string, int $offset, ?int $length = null): stri * @return string|false the portion of string, or FALSE if needle is not found. */ #[Pure] -function grapheme_strstr(string $haystack, string $needle, bool $beforeNeedle = false): string|false { } +function grapheme_strstr(string $haystack, string $needle, bool $beforeNeedle = false): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4757,7 +4743,7 @@ function grapheme_strstr(string $haystack, string $needle, bool $beforeNeedle = * @return string|false the portion of $haystack, or FALSE if $needle is not found. */ #[Pure] -function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = false): string|false { } +function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = false): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -4793,7 +4779,7 @@ function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = * @return string|false A string starting at offset $start and ending on a default grapheme cluster * boundary that conforms to the $size and $extract_type specified. */ -function grapheme_extract(string $haystack, int $size, int $type = null, int $offset = 0, &$next = null): string|false { } +function grapheme_extract(string $haystack, int $size, int $type = null, int $offset = 0, &$next = null): string|false {} /** * (PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.2, PHP 7, PECL idn >= 0.1)
    @@ -4821,7 +4807,7 @@ function grapheme_extract(string $haystack, int $size, int $type = null, int $of *

    * @return string|false The ACE encoded version of the domain name or FALSE on failure. */ -function idn_to_ascii(string $domain, int $flags = 0, int $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info): string|false { } +function idn_to_ascii(string $domain, int $flags = 0, int $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info): string|false {} /** * (PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.2, PHP 7, PECL idn >= 0.1)
    @@ -4849,7 +4835,7 @@ function idn_to_ascii(string $domain, int $flags = 0, int $variant = INTL_IDNA_V * RFC 3490 4.2 states though "ToUnicode never fails. If any step fails, then the original input * sequence is returned immediately in that step." */ -function idn_to_utf8(string $domain, int $flags = 0, int $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info): string|false { } +function idn_to_utf8(string $domain, int $flags = 0, int $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info): string|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -4898,7 +4884,7 @@ function idn_to_utf8(string $domain, int $flags = 0, int $variant = INTL_IDNA_VA * @since 5.5 */ #[Pure] -function intlcal_create_instance($timezone = null, ?string $locale = null): ?IntlCalendar { } +function intlcal_create_instance($timezone = null, ?string $locale = null): ?IntlCalendar {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -4918,7 +4904,7 @@ function intlcal_create_instance($timezone = null, ?string $locale = null): ?Int * @since 5.5 */ #[Pure] -function intlcal_get_keyword_values_for_locale(string $keyword, string $locale, bool $onlyCommon): IntlIterator|false { } +function intlcal_get_keyword_values_for_locale(string $keyword, string $locale, bool $onlyCommon): IntlIterator|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -4928,7 +4914,7 @@ function intlcal_get_keyword_values_for_locale(string $keyword, string $locale, * @since 5.5 */ #[Pure] -function intlcal_get_now(): float { } +function intlcal_get_now(): float {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -4938,7 +4924,7 @@ function intlcal_get_now(): float { } * @since 5.5 */ #[Pure] -function intlcal_get_available_locales(): array { } +function intlcal_get_available_locales(): array {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -4956,7 +4942,7 @@ function intlcal_get_available_locales(): array { } * @since 5.5 */ #[Pure] -function intl_get($calendar, $field) { } +function intl_get($calendar, $field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -4968,7 +4954,7 @@ function intl_get($calendar, $field) { } * @since 5.5 */ #[Pure] -function intlcal_get_time(IntlCalendar $calendar): float { } +function intlcal_get_time(IntlCalendar $calendar): float {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -4985,7 +4971,7 @@ function intlcal_get_time(IntlCalendar $calendar): float { } * Returns TRUE on success and FALSE on failure. * @since 5.5 */ -function intlcal_set_time(IntlCalendar $calendar, float $timestamp): bool { } +function intlcal_set_time(IntlCalendar $calendar, float $timestamp): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5004,7 +4990,7 @@ function intlcal_set_time(IntlCalendar $calendar, float $timestamp): bool { } * @return bool Returns TRUE on success or FALSE on failure. * @since 5.5 */ -function intlcal_add(IntlCalendar $calendar, int $field, int $value): bool { } +function intlcal_add(IntlCalendar $calendar, int $field, int $value): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5049,7 +5035,7 @@ function intlcal_add(IntlCalendar $calendar, int $field, int $value): bool { } * @return bool Returns TRUE on success and FALSE on failure. * @since 5.5 */ -function intlcal_set_time_zone(IntlCalendar $calendar, $timezone): bool { } +function intlcal_set_time_zone(IntlCalendar $calendar, $timezone): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5067,7 +5053,7 @@ function intlcal_set_time_zone(IntlCalendar $calendar, $timezone): bool { } * @since 5.5 */ #[Pure] -function intlcal_after(IntlCalendar $calendar, IntlCalendar $other): bool { } +function intlcal_after(IntlCalendar $calendar, IntlCalendar $other): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5087,8 +5073,7 @@ function intlcal_after(IntlCalendar $calendar, IntlCalendar $other): bool { } * @since 5.5 */ #[Pure] -function intlcal_before(IntlCalendar $calendar, IntlCalendar $other): bool { } - +function intlcal_before(IntlCalendar $calendar, IntlCalendar $other): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5125,7 +5110,7 @@ function intlcal_before(IntlCalendar $calendar, IntlCalendar $other): bool { } * @return bool Returns TRUE on success and FALSE on failure. * @since 5.5 */ -function intlcal_set(IntlCalendar $calendar, int $year, int $month, int $dayOfMonth = null, int $hour = null, int $minute = null, int $second = null): bool { } +function intlcal_set(IntlCalendar $calendar, int $year, int $month, int $dayOfMonth = null, int $hour = null, int $minute = null, int $second = null): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5148,7 +5133,7 @@ function intlcal_set(IntlCalendar $calendar, int $year, int $month, int $dayOfMo * @return bool Returns TRUE on success or FALSE on failure. * @since 5.5 */ -function intlcal_roll(IntlCalendar $calendar, int $field, $value): bool{ } +function intlcal_roll(IntlCalendar $calendar, int $field, $value): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5165,7 +5150,7 @@ function intlcal_roll(IntlCalendar $calendar, int $field, $value): bool{ } * @return bool Returns TRUE on success or FALSE on failure. Failure can only occur is invalid arguments are provided. * @since 5.5 */ -function intlcal_clear(IntlCalendar $calendar, ?int $field = null): bool { } +function intlcal_clear(IntlCalendar $calendar, ?int $field = null): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5194,8 +5179,7 @@ function intlcal_clear(IntlCalendar $calendar, ?int $field = null): bool { } * @since 5.5 */ #[Pure] -function intlcal_field_difference(IntlCalendar $calendar, float $timestamp, int $field): int { } - +function intlcal_field_difference(IntlCalendar $calendar, float $timestamp, int $field): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5215,7 +5199,7 @@ function intlcal_field_difference(IntlCalendar $calendar, float $timestamp, int * @since 5.5 */ #[Pure] -function intlcal_get_actual_maximum(IntlCalendar $calendar, int $field): int { } +function intlcal_get_actual_maximum(IntlCalendar $calendar, int $field): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5235,7 +5219,7 @@ function intlcal_get_actual_maximum(IntlCalendar $calendar, int $field): int { } * @since 5.5 */ #[Pure] -function intlcal_get_actual_minimum(IntlCalendar $calendar, int $field): int { } +function intlcal_get_actual_minimum(IntlCalendar $calendar, int $field): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5258,7 +5242,7 @@ function intlcal_get_actual_minimum(IntlCalendar $calendar, int $field): int { } * @since 5.5 */ #[Pure] -function intlcal_get_day_of_week_type(IntlCalendar $calendar, int $dayOfWeek): int { } +function intlcal_get_day_of_week_type(IntlCalendar $calendar, int $dayOfWeek): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5274,7 +5258,7 @@ function intlcal_get_day_of_week_type(IntlCalendar $calendar, int $dayOfWeek): i * @since 5.5 */ #[Pure] -function intlcal_get_first_day_of_week(IntlCalendar $calendar): int { } +function intlcal_get_first_day_of_week(IntlCalendar $calendar): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5293,7 +5277,7 @@ function intlcal_get_first_day_of_week(IntlCalendar $calendar): int { } * @since 5.5 */ #[Pure] -function intlcal_greates_minimum($calendar, $field) { } +function intlcal_greates_minimum($calendar, $field) {} /** * (PHP >= 5.5.0, PECL intl >= 3.0.0a1)
    @@ -5308,7 +5292,7 @@ function intlcal_greates_minimum($calendar, $field) { } * @return int An integer with the value of the time field. */ #[Pure] -function intlcal_get(IntlCalendar $calendar, int $field): int { } +function intlcal_get(IntlCalendar $calendar, int $field): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5329,7 +5313,7 @@ function intlcal_get(IntlCalendar $calendar, int $field): int { } * @since 5.5 */ #[Pure] -function intlcal_get_least_maximum(IntlCalendar $calendar, int $field): int { } +function intlcal_get_least_maximum(IntlCalendar $calendar, int $field): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5348,7 +5332,7 @@ function intlcal_get_least_maximum(IntlCalendar $calendar, int $field): int { } * @since 5.5 */ #[Pure] -function intlcal_get_greatest_minimum(IntlCalendar $calendar, int $field): int { } +function intlcal_get_greatest_minimum(IntlCalendar $calendar, int $field): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5370,7 +5354,7 @@ function intlcal_get_greatest_minimum(IntlCalendar $calendar, int $field): int { * @since 5.5 */ #[Pure] -function intlcal_get_locale(IntlCalendar $calendar, int $type): string { } +function intlcal_get_locale(IntlCalendar $calendar, int $type): string {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5388,8 +5372,7 @@ function intlcal_get_locale(IntlCalendar $calendar, int $type): string { } * @since 5.5 */ #[Pure] -function intcal_get_maximum($calendar, $field) { } - +function intcal_get_maximum($calendar, $field) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5403,7 +5386,7 @@ function intcal_get_maximum($calendar, $field) { } * @since 5.5 */ #[Pure] -function intlcal_get_minimal_days_in_first_week(IntlCalendar $calendar): int { } +function intlcal_get_minimal_days_in_first_week(IntlCalendar $calendar): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5422,7 +5405,7 @@ function intlcal_get_minimal_days_in_first_week(IntlCalendar $calendar): int { } * @since 5.5 */ #[Pure] -function intlcal_get_minimum(IntlCalendar $calendar, int $field): int { } +function intlcal_get_minimum(IntlCalendar $calendar, int $field): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5437,7 +5420,7 @@ function intlcal_get_minimum(IntlCalendar $calendar, int $field): int { } * @since 5.5 */ #[Pure] -function intlcal_get_time_zone(IntlCalendar $calendar): IntlTimeZone|false { } +function intlcal_get_time_zone(IntlCalendar $calendar): IntlTimeZone|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5452,7 +5435,7 @@ function intlcal_get_time_zone(IntlCalendar $calendar): IntlTimeZone|false { } * @since 5.5 */ #[Pure] -function intlcal_get_type(IntlCalendar $calendar): string { } +function intlcal_get_type(IntlCalendar $calendar): string {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5472,7 +5455,7 @@ function intlcal_get_type(IntlCalendar $calendar): string { } * @since 5.5 */ #[Pure] -function intlcal_get_weekend_transition(IntlCalendar $calendar, int $dayOfWeek): int { } +function intlcal_get_weekend_transition(IntlCalendar $calendar, int $dayOfWeek): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5489,7 +5472,7 @@ function intlcal_get_weekend_transition(IntlCalendar $calendar, int $dayOfWeek): * @since 5.5 */ #[Pure] -function intlcal_in_daylight_time(IntlCalendar $calendar): bool { } +function intlcal_in_daylight_time(IntlCalendar $calendar): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5503,7 +5486,7 @@ function intlcal_in_daylight_time(IntlCalendar $calendar): bool { } * @since 5.5 */ #[Pure] -function intlcal_is_lenient(IntlCalendar $calendar): bool { } +function intlcal_is_lenient(IntlCalendar $calendar): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5521,7 +5504,7 @@ function intlcal_is_lenient(IntlCalendar $calendar): bool { } * @since 5.5 */ #[Pure] -function intlcal_is_set(IntlCalendar $calendar, int $field): bool { } +function intlcal_is_set(IntlCalendar $calendar, int $field): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5539,7 +5522,7 @@ function intlcal_is_set(IntlCalendar $calendar, int $field): bool { } * @since 5.5 */ #[Pure] -function intlcal_get_maximum(IntlCalendar $calendar, int $field): int { } +function intlcal_get_maximum(IntlCalendar $calendar, int $field): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5554,7 +5537,7 @@ function intlcal_get_maximum(IntlCalendar $calendar, int $field): int { } * @since 5.5 */ #[Pure] -function intlcal_is_equivalent_to(IntlCalendar $calendar, IntlCalendar $other): bool { } +function intlcal_is_equivalent_to(IntlCalendar $calendar, IntlCalendar $other): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5579,8 +5562,7 @@ function intlcal_is_equivalent_to(IntlCalendar $calendar, IntlCalendar $other): * @since 5.5 */ #[Pure] -function intlcal_is_weekend(IntlCalendar $calendar, ?float $timestamp = null): bool { } - +function intlcal_is_weekend(IntlCalendar $calendar, ?float $timestamp = null): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5597,7 +5579,7 @@ function intlcal_is_weekend(IntlCalendar $calendar, ?float $timestamp = null): b * @return bool Returns TRUE on success. Failure can only happen due to invalid parameters. * @since 5.5 */ -function intlcal_set_first_day_of_week(IntlCalendar $calendar, int $dayOfWeek): bool { } +function intlcal_set_first_day_of_week(IntlCalendar $calendar, int $dayOfWeek): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5612,8 +5594,7 @@ function intlcal_set_first_day_of_week(IntlCalendar $calendar, int $dayOfWeek): * @return bool Returns TRUE on success. Failure can only happen due to invalid parameters. * @since 5.5 */ -function intlcal_set_lenient(IntlCalendar $calendar, bool $lenient): bool { } - +function intlcal_set_lenient(IntlCalendar $calendar, bool $lenient): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5628,7 +5609,7 @@ function intlcal_set_lenient(IntlCalendar $calendar, bool $lenient): bool { } * @since 5.5 */ #[Pure] -function intlcal_get_repeated_wall_time_option(IntlCalendar $calendar): int { } +function intlcal_get_repeated_wall_time_option(IntlCalendar $calendar): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5648,7 +5629,7 @@ function intlcal_get_repeated_wall_time_option(IntlCalendar $calendar): int { } * @since 5.5 */ #[Pure] -function intlcal_equals(IntlCalendar $calendar, IntlCalendar $other): bool { } +function intlcal_equals(IntlCalendar $calendar, IntlCalendar $other): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5664,7 +5645,7 @@ function intlcal_equals(IntlCalendar $calendar, IntlCalendar $other): bool { } * @since 5.5 */ #[Pure] -function intlcal_get_skipped_wall_time_option(IntlCalendar $calendar): int { } +function intlcal_get_skipped_wall_time_option(IntlCalendar $calendar): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5681,7 +5662,7 @@ function intlcal_get_skipped_wall_time_option(IntlCalendar $calendar): int { } * Returns TRUE on success. Failure can only happen due to invalid parameters. * @since 5.5 */ -function intlcal_set_repeated_wall_time_option(IntlCalendar $calendar, int $option): bool { } +function intlcal_set_repeated_wall_time_option(IntlCalendar $calendar, int $option): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5701,7 +5682,7 @@ function intlcal_set_repeated_wall_time_option(IntlCalendar $calendar, int $opti *

    * @since 5.5 */ -function intlcal_set_skipped_wall_time_option(IntlCalendar $calendar, int $option): bool { } +function intlcal_set_skipped_wall_time_option(IntlCalendar $calendar, int $option): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)
    @@ -5719,8 +5700,7 @@ function intlcal_set_skipped_wall_time_option(IntlCalendar $calendar, int $optio * @since 5.5 */ #[Pure] -function intlcal_from_date_time(DateTime|string $datetime, ?string $locale = null): ?IntlCalendar { } - +function intlcal_from_date_time(DateTime|string $datetime, ?string $locale = null): ?IntlCalendar {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)
    @@ -5737,8 +5717,7 @@ function intlcal_from_date_time(DateTime|string $datetime, ?string $locale = nul * @since 5.5 */ #[Pure] -function intlcal_to_date_time(IntlCalendar $calendar): DateTime|false { } - +function intlcal_to_date_time(IntlCalendar $calendar): DateTime|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5751,7 +5730,7 @@ function intlcal_to_date_time(IntlCalendar $calendar): DateTime|false { } * @since 5.5 */ #[Pure] -function intlcal_get_error_code(IntlCalendar $calendar): int|false { } +function intlcal_get_error_code(IntlCalendar $calendar): int|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5764,8 +5743,7 @@ function intlcal_get_error_code(IntlCalendar $calendar): int|false { } * @since 5.5 */ #[Pure] -function intlcal_get_error_message(IntlCalendar $calendar): string|false { } - +function intlcal_get_error_message(IntlCalendar $calendar): string|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5776,7 +5754,7 @@ function intlcal_get_error_message(IntlCalendar $calendar): string|false { } * @since 5.5 */ #[Pure] -function intltz_count_equivalent_ids(string $timezoneId): int|false { } +function intltz_count_equivalent_ids(string $timezoneId): int|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5786,7 +5764,7 @@ function intltz_count_equivalent_ids(string $timezoneId): int|false { } * @since 5.5 */ #[Pure] -function intlz_create_default() { } +function intlz_create_default() {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5796,7 +5774,7 @@ function intlz_create_default() { } * @since 5.5 */ #[Pure] -function intltz_create_enumeration($countryOrRawOffset) { } +function intltz_create_enumeration($countryOrRawOffset) {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5806,7 +5784,7 @@ function intltz_create_enumeration($countryOrRawOffset) { } * @since 5.5 */ #[Pure] -function intltz_create_time_zone(string $timezoneId): ?IntlTimeZone { } +function intltz_create_time_zone(string $timezoneId): ?IntlTimeZone {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5816,7 +5794,7 @@ function intltz_create_time_zone(string $timezoneId): ?IntlTimeZone { } * @since 5.5 */ #[Pure] -function intltz_from_date_time_zone(DateTimeZone $timezone): ?IntlTimeZone { } +function intltz_from_date_time_zone(DateTimeZone $timezone): ?IntlTimeZone {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5828,7 +5806,7 @@ function intltz_from_date_time_zone(DateTimeZone $timezone): ?IntlTimeZone { } * @since 5.5 */ #[Pure] -function intltz_get_canonical_id(string $timezoneId, &$isSystemId): string|false { } +function intltz_get_canonical_id(string $timezoneId, &$isSystemId): string|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5843,7 +5821,7 @@ function intltz_get_canonical_id(string $timezoneId, &$isSystemId): string|false * @since 5.5 */ #[Pure] -function intltz_get_display_name(IntlTimeZone $timezone, bool $dst = false, int $style = 2, ?string $locale): string|false { } +function intltz_get_display_name(IntlTimeZone $timezone, bool $dst = false, int $style = 2, ?string $locale): string|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5856,7 +5834,7 @@ function intltz_get_display_name(IntlTimeZone $timezone, bool $dst = false, int * @since 5.5 */ #[Pure] -function intltz_get_dst_savings(IntlTimeZone $timezone): int { } +function intltz_get_dst_savings(IntlTimeZone $timezone): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5868,7 +5846,7 @@ function intltz_get_dst_savings(IntlTimeZone $timezone): int { } * @since 5.5 */ #[Pure] -function intltz_get_equivalent_id(string $timezoneId, int $offset): string|false { } +function intltz_get_equivalent_id(string $timezoneId, int $offset): string|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5881,7 +5859,7 @@ function intltz_get_equivalent_id(string $timezoneId, int $offset): string|false * @since 5.5 */ #[Pure] -function intltz_get_error_code(IntlTimeZone $timezone): int|false { } +function intltz_get_error_code(IntlTimeZone $timezone): int|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5894,7 +5872,7 @@ function intltz_get_error_code(IntlTimeZone $timezone): int|false { } * @since 5.5 */ #[Pure] -function intltz_get_error_message(IntlTimeZone $timezone): string|false { } +function intltz_get_error_message(IntlTimeZone $timezone): string|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5904,7 +5882,7 @@ function intltz_get_error_message(IntlTimeZone $timezone): string|false { } * @since 5.5 */ #[Pure] -function intltz_getGMT(): IntlTimeZone { } +function intltz_getGMT(): IntlTimeZone {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5915,7 +5893,7 @@ function intltz_getGMT(): IntlTimeZone { } * @since 5.5 */ #[Pure] -function intltz_get_id(IntlTimeZone $timezone): string|false { } +function intltz_get_id(IntlTimeZone $timezone): string|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5930,7 +5908,7 @@ function intltz_get_id(IntlTimeZone $timezone): string|false { } * @since 5.5 */ #[Pure] -function intltz_get_offset(IntlTimeZone $timezone, float $timestamp, bool $local, &$rawOffset, &$dstOffset): bool { } +function intltz_get_offset(IntlTimeZone $timezone, float $timestamp, bool $local, &$rawOffset, &$dstOffset): bool {} /** * Get the raw GMT offset (before taking daylight savings time into account @@ -5939,7 +5917,7 @@ function intltz_get_offset(IntlTimeZone $timezone, float $timestamp, bool $local * @return int */ #[Pure] -function intltz_get_raw_offset(IntlTimeZone $timezone): int { } +function intltz_get_raw_offset(IntlTimeZone $timezone): int {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5949,7 +5927,7 @@ function intltz_get_raw_offset(IntlTimeZone $timezone): int { } * @since 5.5 */ #[Pure] -function intltz_get_tz_data_version(): string|false { } +function intltz_get_tz_data_version(): string|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5961,7 +5939,7 @@ function intltz_get_tz_data_version(): string|false { } * @since 5.5 */ #[Pure] -function intltz_has_same_rules(IntlTimeZone $timezone, IntlTimeZone $other): bool { } +function intltz_has_same_rules(IntlTimeZone $timezone, IntlTimeZone $other): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5972,7 +5950,7 @@ function intltz_has_same_rules(IntlTimeZone $timezone, IntlTimeZone $other): boo * @since 5.5 */ #[Pure] -function intltz_to_date_time_zone(IntlTimeZone $timezone): DateTimeZone|false { } +function intltz_to_date_time_zone(IntlTimeZone $timezone): DateTimeZone|false {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5983,8 +5961,7 @@ function intltz_to_date_time_zone(IntlTimeZone $timezone): DateTimeZone|false { * @since 5.5 */ #[Pure] -function intltz_use_daylight_time(IntlTimeZone $timezone): bool { } - +function intltz_use_daylight_time(IntlTimeZone $timezone): bool {} /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
    @@ -5998,21 +5975,21 @@ function intltz_use_daylight_time(IntlTimeZone $timezone): bool { } * @since 5.5 */ #[Pure] -function intlgregcal_create_instance($timezoneOrYear = null, $localeOrMonth = null, $day = null, $hour = null, $minute = null, $second = null): ?IntlGregorianCalendar { } +function intlgregcal_create_instance($timezoneOrYear = null, $localeOrMonth = null, $day = null, $hour = null, $minute = null, $second = null): ?IntlGregorianCalendar {} /** * @param IntlGregorianCalendar $calendar * @param float $timestamp * @return bool */ -function intlgregcal_set_gregorian_change(IntlGregorianCalendar $calendar, float $timestamp): bool { } +function intlgregcal_set_gregorian_change(IntlGregorianCalendar $calendar, float $timestamp): bool {} /** * @param IntlGregorianCalendar $calendar * @return float */ #[Pure] -function intlgregcal_get_gregorian_change(IntlGregorianCalendar $calendar): float { } +function intlgregcal_get_gregorian_change(IntlGregorianCalendar $calendar): float {} /** * @param IntlGregorianCalendar $calendar @@ -6020,8 +5997,7 @@ function intlgregcal_get_gregorian_change(IntlGregorianCalendar $calendar): floa * @return bool */ #[Pure] -function intlgregcal_is_leap_year(IntlGregorianCalendar $calendar, int $year): bool { } - +function intlgregcal_is_leap_year(IntlGregorianCalendar $calendar, int $year): bool {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -6039,7 +6015,7 @@ function intlgregcal_is_leap_year(IntlGregorianCalendar $calendar, int $year): b * @return ResourceBundle|false|null ResourceBundle object or FALSE on error. */ #[Pure] -function resourcebundle_create(?string $locale, ?string $bundle, bool $fallback = true): ?ResourceBundle { } +function resourcebundle_create(?string $locale, ?string $bundle, bool $fallback = true): ?ResourceBundle {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -6055,7 +6031,7 @@ function resourcebundle_create(?string $locale, ?string $bundle, bool $fallback * returned as ResourceBundle object. */ #[Pure] -function resourcebundle_get(ResourceBundle $bundle, $index, bool $fallback = true) { } +function resourcebundle_get(ResourceBundle $bundle, $index, bool $fallback = true) {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -6065,7 +6041,7 @@ function resourcebundle_get(ResourceBundle $bundle, $index, bool $fallback = tru * @return int number of elements in the bundle. */ #[Pure] -function resourcebundle_count(ResourceBundle $bundle): int { } +function resourcebundle_count(ResourceBundle $bundle): int {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -6078,7 +6054,7 @@ function resourcebundle_count(ResourceBundle $bundle): int { } * @return array|false the list of locales supported by the bundle. */ #[Pure] -function resourcebundle_locales(string $bundle): array|false { } +function resourcebundle_locales(string $bundle): array|false {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -6088,7 +6064,7 @@ function resourcebundle_locales(string $bundle): array|false { } * @return int error code from last bundle object call. */ #[Pure] -function resourcebundle_get_error_code(ResourceBundle $bundle): int { } +function resourcebundle_get_error_code(ResourceBundle $bundle): int {} /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)
    @@ -6098,7 +6074,7 @@ function resourcebundle_get_error_code(ResourceBundle $bundle): int { } * @return string error message from last bundle object's call. */ #[Pure] -function resourcebundle_get_error_message(ResourceBundle $bundle): string { } +function resourcebundle_get_error_message(ResourceBundle $bundle): string {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -6118,7 +6094,7 @@ function resourcebundle_get_error_message(ResourceBundle $bundle): string { } * @since 5.4 */ #[Pure] -function transliterator_create(string $id, int $direction = null): ?Transliterator { } +function transliterator_create(string $id, int $direction = null): ?Transliterator {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -6138,7 +6114,7 @@ function transliterator_create(string $id, int $direction = null): ?Transliterat * @since 5.4 */ #[Pure] -function transliterator_create_from_rules(string $rules, int $direction = null): ?Transliterator { } +function transliterator_create_from_rules(string $rules, int $direction = null): ?Transliterator {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -6149,7 +6125,7 @@ function transliterator_create_from_rules(string $rules, int $direction = null): * @since 5.4 */ #[Pure] -function transliterator_list_ids(): array|false { } +function transliterator_list_ids(): array|false {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -6161,7 +6137,7 @@ function transliterator_list_ids(): array|false { } * @since 5.4 */ #[Pure] -function transliterator_create_inverse(Transliterator $transliterator): ?Transliterator { } +function transliterator_create_inverse(Transliterator $transliterator): ?Transliterator {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -6185,7 +6161,7 @@ function transliterator_create_inverse(Transliterator $transliterator): ?Transli * @since 5.4 */ #[Pure] -function transliterator_transliterate(Transliterator|string $transliterator, string $string, int $start = null, int $end = -1): string|false { } +function transliterator_transliterate(Transliterator|string $transliterator, string $string, int $start = null, int $end = -1): string|false {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -6197,7 +6173,7 @@ function transliterator_transliterate(Transliterator|string $transliterator, str * @since 5.4 */ #[Pure] -function transliterator_get_error_code(Transliterator $transliterator): int|false { } +function transliterator_get_error_code(Transliterator $transliterator): int|false {} /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)
    @@ -6209,7 +6185,7 @@ function transliterator_get_error_code(Transliterator $transliterator): int|fals * @since 5.4 */ #[Pure] -function transliterator_get_error_message(Transliterator $transliterator): string|false { } +function transliterator_get_error_message(Transliterator $transliterator): string|false {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -6218,7 +6194,7 @@ function transliterator_get_error_message(Transliterator $transliterator): strin * @return int Error code returned by the last API function call. */ #[Pure] -function intl_get_error_code(): int { } +function intl_get_error_code(): int {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -6227,7 +6203,7 @@ function intl_get_error_code(): int { } * @return string Description of an error occurred in the last API function call. */ #[Pure] -function intl_get_error_message(): string { } +function intl_get_error_message(): string {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -6242,7 +6218,7 @@ function intl_get_error_message(): string { } * in case of success or a warning. */ #[Pure] -function intl_is_failure(int $errorCode): bool { } +function intl_is_failure(int $errorCode): bool {} /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
    @@ -6255,7 +6231,7 @@ function intl_is_failure(int $errorCode): bool { } * constant. */ #[Pure] -function intl_error_name(int $errorCode): string { } +function intl_error_name(int $errorCode): string {} /** * Gets the Decomposition_Mapping property for the given UTF-8 encoded code point @@ -6269,28 +6245,28 @@ function intl_error_name(int $errorCode): string { } * @since 7.3 */ #[Pure] -function normalizer_get_raw_decomposition(string $string, int $form = Normalizer::FORM_C): ?string { } +function normalizer_get_raw_decomposition(string $string, int $form = Normalizer::FORM_C): ?string {} /** * @return IntlTimeZone * @since 5.5 */ #[Pure] -function intltz_create_default(): IntlTimeZone { } +function intltz_create_default(): IntlTimeZone {} /** * @return IntlTimeZone * @since 5.5 */ #[Pure] -function intltz_get_gmt(): IntlTimeZone { } +function intltz_get_gmt(): IntlTimeZone {} /** * @return IntlTimeZone * @since 5.5 */ #[Pure] -function intltz_get_unknown(): IntlTimeZone { } +function intltz_get_unknown(): IntlTimeZone {} /** * @param int $type @@ -6300,7 +6276,7 @@ function intltz_get_unknown(): IntlTimeZone { } * @since 5.5 */ #[Pure] -function intltz_create_time_zone_id_enumeration(int $type, ?string $region = null, ?int $rawOffset = null): IntlIterator|false { } +function intltz_create_time_zone_id_enumeration(int $type, ?string $region = null, ?int $rawOffset = null): IntlIterator|false {} /** * @param string $timezoneId @@ -6308,7 +6284,7 @@ function intltz_create_time_zone_id_enumeration(int $type, ?string $region = nul * @since 5.5 */ #[Pure] -function intltz_get_region(string $timezoneId): string|false { } +function intltz_get_region(string $timezoneId): string|false {} /** * Set minimal number of days the first week in a year or month can have @@ -6321,7 +6297,7 @@ function intltz_get_region(string $timezoneId): string|false { } * * @since 5.5.1 */ -function intlcal_set_minimal_days_in_first_week(IntlCalendar $calendar, int $days): bool { } +function intlcal_set_minimal_days_in_first_week(IntlCalendar $calendar, int $days): bool {} function intltz_get_windows_id(string $timezoneId): string|false {} @@ -6332,188 +6308,188 @@ function intltz_get_id_for_windows_id(string $timezoneId, ?string $region = null * than this limit will not be accepted. * @link https://php.net/manual/en/intl.constants.php */ -define ('INTL_MAX_LOCALE_LEN', 156); -define ('INTL_ICU_VERSION', "67.1"); -define ('INTL_ICU_DATA_VERSION', "67.1"); -define ('ULOC_ACTUAL_LOCALE', 0); -define ('ULOC_VALID_LOCALE', 1); -define ('GRAPHEME_EXTR_COUNT', 0); -define ('GRAPHEME_EXTR_MAXBYTES', 1); -define ('GRAPHEME_EXTR_MAXCHARS', 2); -define ('U_USING_FALLBACK_WARNING', -128); -define ('U_ERROR_WARNING_START', -128); -define ('U_USING_DEFAULT_WARNING', -127); -define ('U_SAFECLONE_ALLOCATED_WARNING', -126); -define ('U_STATE_OLD_WARNING', -125); -define ('U_STRING_NOT_TERMINATED_WARNING', -124); -define ('U_SORT_KEY_TOO_SHORT_WARNING', -123); -define ('U_AMBIGUOUS_ALIAS_WARNING', -122); -define ('U_DIFFERENT_UCA_VERSION', -121); -define ('U_ERROR_WARNING_LIMIT', -119); -define ('U_ZERO_ERROR', 0); -define ('U_ILLEGAL_ARGUMENT_ERROR', 1); -define ('U_MISSING_RESOURCE_ERROR', 2); -define ('U_INVALID_FORMAT_ERROR', 3); -define ('U_FILE_ACCESS_ERROR', 4); -define ('U_INTERNAL_PROGRAM_ERROR', 5); -define ('U_MESSAGE_PARSE_ERROR', 6); -define ('U_MEMORY_ALLOCATION_ERROR', 7); -define ('U_INDEX_OUTOFBOUNDS_ERROR', 8); -define ('U_PARSE_ERROR', 9); -define ('U_INVALID_CHAR_FOUND', 10); -define ('U_TRUNCATED_CHAR_FOUND', 11); -define ('U_ILLEGAL_CHAR_FOUND', 12); -define ('U_INVALID_TABLE_FORMAT', 13); -define ('U_INVALID_TABLE_FILE', 14); -define ('U_BUFFER_OVERFLOW_ERROR', 15); -define ('U_UNSUPPORTED_ERROR', 16); -define ('U_RESOURCE_TYPE_MISMATCH', 17); -define ('U_ILLEGAL_ESCAPE_SEQUENCE', 18); -define ('U_UNSUPPORTED_ESCAPE_SEQUENCE', 19); -define ('U_NO_SPACE_AVAILABLE', 20); -define ('U_CE_NOT_FOUND_ERROR', 21); -define ('U_PRIMARY_TOO_LONG_ERROR', 22); -define ('U_STATE_TOO_OLD_ERROR', 23); -define ('U_TOO_MANY_ALIASES_ERROR', 24); -define ('U_ENUM_OUT_OF_SYNC_ERROR', 25); -define ('U_INVARIANT_CONVERSION_ERROR', 26); -define ('U_INVALID_STATE_ERROR', 27); -define ('U_COLLATOR_VERSION_MISMATCH', 28); -define ('U_USELESS_COLLATOR_ERROR', 29); -define ('U_NO_WRITE_PERMISSION', 30); -define ('U_STANDARD_ERROR_LIMIT', 31); -define ('U_BAD_VARIABLE_DEFINITION', 65536); -define ('U_PARSE_ERROR_START', 65536); -define ('U_MALFORMED_RULE', 65537); -define ('U_MALFORMED_SET', 65538); -define ('U_MALFORMED_SYMBOL_REFERENCE', 65539); -define ('U_MALFORMED_UNICODE_ESCAPE', 65540); -define ('U_MALFORMED_VARIABLE_DEFINITION', 65541); -define ('U_MALFORMED_VARIABLE_REFERENCE', 65542); -define ('U_MISMATCHED_SEGMENT_DELIMITERS', 65543); -define ('U_MISPLACED_ANCHOR_START', 65544); -define ('U_MISPLACED_CURSOR_OFFSET', 65545); -define ('U_MISPLACED_QUANTIFIER', 65546); -define ('U_MISSING_OPERATOR', 65547); -define ('U_MISSING_SEGMENT_CLOSE', 65548); -define ('U_MULTIPLE_ANTE_CONTEXTS', 65549); -define ('U_MULTIPLE_CURSORS', 65550); -define ('U_MULTIPLE_POST_CONTEXTS', 65551); -define ('U_TRAILING_BACKSLASH', 65552); -define ('U_UNDEFINED_SEGMENT_REFERENCE', 65553); -define ('U_UNDEFINED_VARIABLE', 65554); -define ('U_UNQUOTED_SPECIAL', 65555); -define ('U_UNTERMINATED_QUOTE', 65556); -define ('U_RULE_MASK_ERROR', 65557); -define ('U_MISPLACED_COMPOUND_FILTER', 65558); -define ('U_MULTIPLE_COMPOUND_FILTERS', 65559); -define ('U_INVALID_RBT_SYNTAX', 65560); -define ('U_INVALID_PROPERTY_PATTERN', 65561); -define ('U_MALFORMED_PRAGMA', 65562); -define ('U_UNCLOSED_SEGMENT', 65563); -define ('U_ILLEGAL_CHAR_IN_SEGMENT', 65564); -define ('U_VARIABLE_RANGE_EXHAUSTED', 65565); -define ('U_VARIABLE_RANGE_OVERLAP', 65566); -define ('U_ILLEGAL_CHARACTER', 65567); -define ('U_INTERNAL_TRANSLITERATOR_ERROR', 65568); -define ('U_INVALID_ID', 65569); -define ('U_INVALID_FUNCTION', 65570); -define ('U_PARSE_ERROR_LIMIT', 65571); -define ('U_UNEXPECTED_TOKEN', 65792); -define ('U_FMT_PARSE_ERROR_START', 65792); -define ('U_MULTIPLE_DECIMAL_SEPARATORS', 65793); -define ('U_MULTIPLE_DECIMAL_SEPERATORS', 65793); -define ('U_MULTIPLE_EXPONENTIAL_SYMBOLS', 65794); -define ('U_MALFORMED_EXPONENTIAL_PATTERN', 65795); -define ('U_MULTIPLE_PERCENT_SYMBOLS', 65796); -define ('U_MULTIPLE_PERMILL_SYMBOLS', 65797); -define ('U_MULTIPLE_PAD_SPECIFIERS', 65798); -define ('U_PATTERN_SYNTAX_ERROR', 65799); -define ('U_ILLEGAL_PAD_POSITION', 65800); -define ('U_UNMATCHED_BRACES', 65801); -define ('U_UNSUPPORTED_PROPERTY', 65802); -define ('U_UNSUPPORTED_ATTRIBUTE', 65803); -define ('U_FMT_PARSE_ERROR_LIMIT', 65812); -define ('U_BRK_INTERNAL_ERROR', 66048); -define ('U_BRK_ERROR_START', 66048); -define ('U_BRK_HEX_DIGITS_EXPECTED', 66049); -define ('U_BRK_SEMICOLON_EXPECTED', 66050); -define ('U_BRK_RULE_SYNTAX', 66051); -define ('U_BRK_UNCLOSED_SET', 66052); -define ('U_BRK_ASSIGN_ERROR', 66053); -define ('U_BRK_VARIABLE_REDFINITION', 66054); -define ('U_BRK_MISMATCHED_PAREN', 66055); -define ('U_BRK_NEW_LINE_IN_QUOTED_STRING', 66056); -define ('U_BRK_UNDEFINED_VARIABLE', 66057); -define ('U_BRK_INIT_ERROR', 66058); -define ('U_BRK_RULE_EMPTY_SET', 66059); -define ('U_BRK_UNRECOGNIZED_OPTION', 66060); -define ('U_BRK_MALFORMED_RULE_TAG', 66061); -define ('U_BRK_ERROR_LIMIT', 66062); -define ('U_REGEX_INTERNAL_ERROR', 66304); -define ('U_REGEX_ERROR_START', 66304); -define ('U_REGEX_RULE_SYNTAX', 66305); -define ('U_REGEX_INVALID_STATE', 66306); -define ('U_REGEX_BAD_ESCAPE_SEQUENCE', 66307); -define ('U_REGEX_PROPERTY_SYNTAX', 66308); -define ('U_REGEX_UNIMPLEMENTED', 66309); -define ('U_REGEX_MISMATCHED_PAREN', 66310); -define ('U_REGEX_NUMBER_TOO_BIG', 66311); -define ('U_REGEX_BAD_INTERVAL', 66312); -define ('U_REGEX_MAX_LT_MIN', 66313); -define ('U_REGEX_INVALID_BACK_REF', 66314); -define ('U_REGEX_INVALID_FLAG', 66315); -define ('U_REGEX_LOOK_BEHIND_LIMIT', 66316); -define ('U_REGEX_SET_CONTAINS_STRING', 66317); -define ('U_REGEX_ERROR_LIMIT', 66326); -define ('U_IDNA_PROHIBITED_ERROR', 66560); -define ('U_IDNA_ERROR_START', 66560); -define ('U_IDNA_UNASSIGNED_ERROR', 66561); -define ('U_IDNA_CHECK_BIDI_ERROR', 66562); -define ('U_IDNA_STD3_ASCII_RULES_ERROR', 66563); -define ('U_IDNA_ACE_PREFIX_ERROR', 66564); -define ('U_IDNA_VERIFICATION_ERROR', 66565); -define ('U_IDNA_LABEL_TOO_LONG_ERROR', 66566); -define ('U_IDNA_ZERO_LENGTH_LABEL_ERROR', 66567); -define ('U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR', 66568); -define ('U_IDNA_ERROR_LIMIT', 66569); -define ('U_STRINGPREP_PROHIBITED_ERROR', 66560); -define ('U_STRINGPREP_UNASSIGNED_ERROR', 66561); -define ('U_STRINGPREP_CHECK_BIDI_ERROR', 66562); -define ('U_ERROR_LIMIT', 66818); +define('INTL_MAX_LOCALE_LEN', 156); +define('INTL_ICU_VERSION', "67.1"); +define('INTL_ICU_DATA_VERSION', "67.1"); +define('ULOC_ACTUAL_LOCALE', 0); +define('ULOC_VALID_LOCALE', 1); +define('GRAPHEME_EXTR_COUNT', 0); +define('GRAPHEME_EXTR_MAXBYTES', 1); +define('GRAPHEME_EXTR_MAXCHARS', 2); +define('U_USING_FALLBACK_WARNING', -128); +define('U_ERROR_WARNING_START', -128); +define('U_USING_DEFAULT_WARNING', -127); +define('U_SAFECLONE_ALLOCATED_WARNING', -126); +define('U_STATE_OLD_WARNING', -125); +define('U_STRING_NOT_TERMINATED_WARNING', -124); +define('U_SORT_KEY_TOO_SHORT_WARNING', -123); +define('U_AMBIGUOUS_ALIAS_WARNING', -122); +define('U_DIFFERENT_UCA_VERSION', -121); +define('U_ERROR_WARNING_LIMIT', -119); +define('U_ZERO_ERROR', 0); +define('U_ILLEGAL_ARGUMENT_ERROR', 1); +define('U_MISSING_RESOURCE_ERROR', 2); +define('U_INVALID_FORMAT_ERROR', 3); +define('U_FILE_ACCESS_ERROR', 4); +define('U_INTERNAL_PROGRAM_ERROR', 5); +define('U_MESSAGE_PARSE_ERROR', 6); +define('U_MEMORY_ALLOCATION_ERROR', 7); +define('U_INDEX_OUTOFBOUNDS_ERROR', 8); +define('U_PARSE_ERROR', 9); +define('U_INVALID_CHAR_FOUND', 10); +define('U_TRUNCATED_CHAR_FOUND', 11); +define('U_ILLEGAL_CHAR_FOUND', 12); +define('U_INVALID_TABLE_FORMAT', 13); +define('U_INVALID_TABLE_FILE', 14); +define('U_BUFFER_OVERFLOW_ERROR', 15); +define('U_UNSUPPORTED_ERROR', 16); +define('U_RESOURCE_TYPE_MISMATCH', 17); +define('U_ILLEGAL_ESCAPE_SEQUENCE', 18); +define('U_UNSUPPORTED_ESCAPE_SEQUENCE', 19); +define('U_NO_SPACE_AVAILABLE', 20); +define('U_CE_NOT_FOUND_ERROR', 21); +define('U_PRIMARY_TOO_LONG_ERROR', 22); +define('U_STATE_TOO_OLD_ERROR', 23); +define('U_TOO_MANY_ALIASES_ERROR', 24); +define('U_ENUM_OUT_OF_SYNC_ERROR', 25); +define('U_INVARIANT_CONVERSION_ERROR', 26); +define('U_INVALID_STATE_ERROR', 27); +define('U_COLLATOR_VERSION_MISMATCH', 28); +define('U_USELESS_COLLATOR_ERROR', 29); +define('U_NO_WRITE_PERMISSION', 30); +define('U_STANDARD_ERROR_LIMIT', 31); +define('U_BAD_VARIABLE_DEFINITION', 65536); +define('U_PARSE_ERROR_START', 65536); +define('U_MALFORMED_RULE', 65537); +define('U_MALFORMED_SET', 65538); +define('U_MALFORMED_SYMBOL_REFERENCE', 65539); +define('U_MALFORMED_UNICODE_ESCAPE', 65540); +define('U_MALFORMED_VARIABLE_DEFINITION', 65541); +define('U_MALFORMED_VARIABLE_REFERENCE', 65542); +define('U_MISMATCHED_SEGMENT_DELIMITERS', 65543); +define('U_MISPLACED_ANCHOR_START', 65544); +define('U_MISPLACED_CURSOR_OFFSET', 65545); +define('U_MISPLACED_QUANTIFIER', 65546); +define('U_MISSING_OPERATOR', 65547); +define('U_MISSING_SEGMENT_CLOSE', 65548); +define('U_MULTIPLE_ANTE_CONTEXTS', 65549); +define('U_MULTIPLE_CURSORS', 65550); +define('U_MULTIPLE_POST_CONTEXTS', 65551); +define('U_TRAILING_BACKSLASH', 65552); +define('U_UNDEFINED_SEGMENT_REFERENCE', 65553); +define('U_UNDEFINED_VARIABLE', 65554); +define('U_UNQUOTED_SPECIAL', 65555); +define('U_UNTERMINATED_QUOTE', 65556); +define('U_RULE_MASK_ERROR', 65557); +define('U_MISPLACED_COMPOUND_FILTER', 65558); +define('U_MULTIPLE_COMPOUND_FILTERS', 65559); +define('U_INVALID_RBT_SYNTAX', 65560); +define('U_INVALID_PROPERTY_PATTERN', 65561); +define('U_MALFORMED_PRAGMA', 65562); +define('U_UNCLOSED_SEGMENT', 65563); +define('U_ILLEGAL_CHAR_IN_SEGMENT', 65564); +define('U_VARIABLE_RANGE_EXHAUSTED', 65565); +define('U_VARIABLE_RANGE_OVERLAP', 65566); +define('U_ILLEGAL_CHARACTER', 65567); +define('U_INTERNAL_TRANSLITERATOR_ERROR', 65568); +define('U_INVALID_ID', 65569); +define('U_INVALID_FUNCTION', 65570); +define('U_PARSE_ERROR_LIMIT', 65571); +define('U_UNEXPECTED_TOKEN', 65792); +define('U_FMT_PARSE_ERROR_START', 65792); +define('U_MULTIPLE_DECIMAL_SEPARATORS', 65793); +define('U_MULTIPLE_DECIMAL_SEPERATORS', 65793); +define('U_MULTIPLE_EXPONENTIAL_SYMBOLS', 65794); +define('U_MALFORMED_EXPONENTIAL_PATTERN', 65795); +define('U_MULTIPLE_PERCENT_SYMBOLS', 65796); +define('U_MULTIPLE_PERMILL_SYMBOLS', 65797); +define('U_MULTIPLE_PAD_SPECIFIERS', 65798); +define('U_PATTERN_SYNTAX_ERROR', 65799); +define('U_ILLEGAL_PAD_POSITION', 65800); +define('U_UNMATCHED_BRACES', 65801); +define('U_UNSUPPORTED_PROPERTY', 65802); +define('U_UNSUPPORTED_ATTRIBUTE', 65803); +define('U_FMT_PARSE_ERROR_LIMIT', 65812); +define('U_BRK_INTERNAL_ERROR', 66048); +define('U_BRK_ERROR_START', 66048); +define('U_BRK_HEX_DIGITS_EXPECTED', 66049); +define('U_BRK_SEMICOLON_EXPECTED', 66050); +define('U_BRK_RULE_SYNTAX', 66051); +define('U_BRK_UNCLOSED_SET', 66052); +define('U_BRK_ASSIGN_ERROR', 66053); +define('U_BRK_VARIABLE_REDFINITION', 66054); +define('U_BRK_MISMATCHED_PAREN', 66055); +define('U_BRK_NEW_LINE_IN_QUOTED_STRING', 66056); +define('U_BRK_UNDEFINED_VARIABLE', 66057); +define('U_BRK_INIT_ERROR', 66058); +define('U_BRK_RULE_EMPTY_SET', 66059); +define('U_BRK_UNRECOGNIZED_OPTION', 66060); +define('U_BRK_MALFORMED_RULE_TAG', 66061); +define('U_BRK_ERROR_LIMIT', 66062); +define('U_REGEX_INTERNAL_ERROR', 66304); +define('U_REGEX_ERROR_START', 66304); +define('U_REGEX_RULE_SYNTAX', 66305); +define('U_REGEX_INVALID_STATE', 66306); +define('U_REGEX_BAD_ESCAPE_SEQUENCE', 66307); +define('U_REGEX_PROPERTY_SYNTAX', 66308); +define('U_REGEX_UNIMPLEMENTED', 66309); +define('U_REGEX_MISMATCHED_PAREN', 66310); +define('U_REGEX_NUMBER_TOO_BIG', 66311); +define('U_REGEX_BAD_INTERVAL', 66312); +define('U_REGEX_MAX_LT_MIN', 66313); +define('U_REGEX_INVALID_BACK_REF', 66314); +define('U_REGEX_INVALID_FLAG', 66315); +define('U_REGEX_LOOK_BEHIND_LIMIT', 66316); +define('U_REGEX_SET_CONTAINS_STRING', 66317); +define('U_REGEX_ERROR_LIMIT', 66326); +define('U_IDNA_PROHIBITED_ERROR', 66560); +define('U_IDNA_ERROR_START', 66560); +define('U_IDNA_UNASSIGNED_ERROR', 66561); +define('U_IDNA_CHECK_BIDI_ERROR', 66562); +define('U_IDNA_STD3_ASCII_RULES_ERROR', 66563); +define('U_IDNA_ACE_PREFIX_ERROR', 66564); +define('U_IDNA_VERIFICATION_ERROR', 66565); +define('U_IDNA_LABEL_TOO_LONG_ERROR', 66566); +define('U_IDNA_ZERO_LENGTH_LABEL_ERROR', 66567); +define('U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR', 66568); +define('U_IDNA_ERROR_LIMIT', 66569); +define('U_STRINGPREP_PROHIBITED_ERROR', 66560); +define('U_STRINGPREP_UNASSIGNED_ERROR', 66561); +define('U_STRINGPREP_CHECK_BIDI_ERROR', 66562); +define('U_ERROR_LIMIT', 66818); /** * Prohibit processing of unassigned codepoints in the input for IDN * functions and do not check if the input conforms to domain name ASCII rules. * @link https://php.net/manual/en/intl.constants.php */ -define ('IDNA_DEFAULT', 0); +define('IDNA_DEFAULT', 0); /** * Allow processing of unassigned codepoints in the input for IDN functions. * @link https://php.net/manual/en/intl.constants.php */ -define ('IDNA_ALLOW_UNASSIGNED', 1); +define('IDNA_ALLOW_UNASSIGNED', 1); /** * Check if the input for IDN functions conforms to domain name ASCII rules. * @link https://php.net/manual/en/intl.constants.php */ -define ('IDNA_USE_STD3_RULES', 2); +define('IDNA_USE_STD3_RULES', 2); /** * Check whether the input conforms to the BiDi rules. * Ignored by the IDNA2003 implementation, which always performs this check. * @link https://php.net/manual/en/intl.constants.php */ -define ('IDNA_CHECK_BIDI', 4); +define('IDNA_CHECK_BIDI', 4); /** * Check whether the input conforms to the CONTEXTJ rules. * Ignored by the IDNA2003 implementation, as this check is new in IDNA2008. * @link https://php.net/manual/en/intl.constants.php */ -define ('IDNA_CHECK_CONTEXTJ', 8); +define('IDNA_CHECK_CONTEXTJ', 8); /** * Option for nontransitional processing in @@ -6521,7 +6497,7 @@ function intltz_get_id_for_windows_id(string $timezoneId, ?string $region = null * by default. This option is ignored by the IDNA2003 implementation. * @link https://php.net/manual/en/intl.constants.php */ -define ('IDNA_NONTRANSITIONAL_TO_ASCII', 16); +define('IDNA_NONTRANSITIONAL_TO_ASCII', 16); /** * Option for nontransitional processing in @@ -6529,7 +6505,7 @@ function intltz_get_id_for_windows_id(string $timezoneId, ?string $region = null * by default. This option is ignored by the IDNA2003 implementation. * @link https://php.net/manual/en/intl.constants.php */ -define ('IDNA_NONTRANSITIONAL_TO_UNICODE', 32); +define('IDNA_NONTRANSITIONAL_TO_UNICODE', 32); /** * Use IDNA 2003 algorithm in {@see idn_to_utf8} and @@ -6538,14 +6514,14 @@ function intltz_get_id_for_windows_id(string $timezoneId, ?string $region = null * @deprecated 7.2 Use {@see INTL_IDNA_VARIANT_UTS46} instead. * @removed 8.0 */ -define ('INTL_IDNA_VARIANT_2003', 0); +define('INTL_IDNA_VARIANT_2003', 0); /** * Use UTS #46 algorithm in idn_to_utf8 and * idn_to_ascii. * @link https://php.net/manual/en/intl.constants.php */ -define ('INTL_IDNA_VARIANT_UTS46', 1); +define('INTL_IDNA_VARIANT_UTS46', 1); /** * Errors reported in a bitset returned by the UTS #46 algorithm in @@ -6553,67 +6529,67 @@ function intltz_get_id_for_windows_id(string $timezoneId, ?string $region = null * idn_to_ascii. * @link https://php.net/manual/en/intl.constants.php */ -define ('IDNA_ERROR_EMPTY_LABEL', 1); +define('IDNA_ERROR_EMPTY_LABEL', 1); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_LABEL_TOO_LONG', 2); +define('IDNA_ERROR_LABEL_TOO_LONG', 2); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_DOMAIN_NAME_TOO_LONG', 4); +define('IDNA_ERROR_DOMAIN_NAME_TOO_LONG', 4); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_LEADING_HYPHEN', 8); +define('IDNA_ERROR_LEADING_HYPHEN', 8); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_TRAILING_HYPHEN', 16); +define('IDNA_ERROR_TRAILING_HYPHEN', 16); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_HYPHEN_3_4', 32); +define('IDNA_ERROR_HYPHEN_3_4', 32); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_LEADING_COMBINING_MARK', 64); +define('IDNA_ERROR_LEADING_COMBINING_MARK', 64); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_DISALLOWED', 128); +define('IDNA_ERROR_DISALLOWED', 128); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_PUNYCODE', 256); +define('IDNA_ERROR_PUNYCODE', 256); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_LABEL_HAS_DOT', 512); +define('IDNA_ERROR_LABEL_HAS_DOT', 512); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_INVALID_ACE_LABEL', 1024); +define('IDNA_ERROR_INVALID_ACE_LABEL', 1024); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_BIDI', 2048); +define('IDNA_ERROR_BIDI', 2048); /** * @link https://secure.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ -define ('IDNA_ERROR_CONTEXTJ', 4096); +define('IDNA_ERROR_CONTEXTJ', 4096); /** * @since 5.5 @@ -6621,32 +6597,32 @@ function intltz_get_id_for_windows_id(string $timezoneId, ?string $region = null class IntlBreakIterator implements IteratorAggregate { /* Constants */ - const DONE = -1; - const WORD_NONE = 0; - const WORD_NONE_LIMIT = 100; - const WORD_NUMBER = 100; - const WORD_NUMBER_LIMIT = 200; - const WORD_LETTER = 200; - const WORD_LETTER_LIMIT = 300; - const WORD_KANA = 300; - const WORD_KANA_LIMIT = 400; - const WORD_IDEO = 400; - const WORD_IDEO_LIMIT = 500; - const LINE_SOFT = 0; - const LINE_SOFT_LIMIT = 100; - const LINE_HARD = 100; - const LINE_HARD_LIMIT = 200; - const SENTENCE_TERM = 0; - const SENTENCE_TERM_LIMIT = 100; - const SENTENCE_SEP = 100; - const SENTENCE_SEP_LIMIT = 200; + public const DONE = -1; + public const WORD_NONE = 0; + public const WORD_NONE_LIMIT = 100; + public const WORD_NUMBER = 100; + public const WORD_NUMBER_LIMIT = 200; + public const WORD_LETTER = 200; + public const WORD_LETTER_LIMIT = 300; + public const WORD_KANA = 300; + public const WORD_KANA_LIMIT = 400; + public const WORD_IDEO = 400; + public const WORD_IDEO_LIMIT = 500; + public const LINE_SOFT = 0; + public const LINE_SOFT_LIMIT = 100; + public const LINE_HARD = 100; + public const LINE_HARD_LIMIT = 200; + public const SENTENCE_TERM = 0; + public const SENTENCE_TERM_LIMIT = 100; + public const SENTENCE_SEP = 100; + public const SENTENCE_SEP_LIMIT = 200; /* Methods */ /** * (PHP 5 >=5.5.0)
    * Private constructor for disallowing instantiation */ - private function __construct() { } + private function __construct() {} /** * (PHP 5 >=5.5.0)
    @@ -6655,7 +6631,7 @@ private function __construct() { } * @param string $locale * @return IntlBreakIterator */ - public static function createCharacterInstance($locale = null) { } + public static function createCharacterInstance($locale = null) {} /** * (PHP 5 >=5.5.0)
    @@ -6663,7 +6639,7 @@ public static function createCharacterInstance($locale = null) { } * @link https://secure.php.net/manual/en/intlbreakiterator.createcodepointinstance.php * @return IntlBreakIterator */ - public static function createCodePointInstance() { } + public static function createCodePointInstance() {} /** * (PHP 5 >=5.5.0)
    @@ -6672,7 +6648,7 @@ public static function createCodePointInstance() { } * @param string $locale [optional] * @return IntlBreakIterator */ - public static function createLineInstance($locale) { } + public static function createLineInstance($locale) {} /** * (PHP 5 >=5.5.0)
    @@ -6681,7 +6657,7 @@ public static function createLineInstance($locale) { } * @param string $locale [optional] * @return IntlBreakIterator */ - public static function createSentenceInstance($locale) { } + public static function createSentenceInstance($locale) {} /** * (PHP 5 >=5.5.0)
    @@ -6690,7 +6666,7 @@ public static function createSentenceInstance($locale) { } * @param string $locale [optional] * @return IntlBreakIterator */ - public static function createTitleInstance($locale) { } + public static function createTitleInstance($locale) {} /** * (PHP 5 >=5.5.0)
    @@ -6699,7 +6675,7 @@ public static function createTitleInstance($locale) { } * @param string $locale [optional] * @return IntlBreakIterator */ - public static function createWordInstance($locale) { } + public static function createWordInstance($locale) {} /** * (PHP 5 >=5.5.0)
    @@ -6708,14 +6684,14 @@ public static function createWordInstance($locale) { } * @return int */ #[Pure] - public function current() { } + public function current() {} /** * (PHP 5 >=5.5.0)
    * Set position to the first character in the text * @link https://secure.php.net/manual/en/intlbreakiterator.first.php */ - public function first() { } + public function first() {} /** * (PHP 5 >=5.5.0)
    @@ -6723,7 +6699,7 @@ public function first() { } * @link https://secure.php.net/manual/en/intlbreakiterator.following.php * @param int $offset */ - public function following($offset) { } + public function following($offset) {} /** * (PHP 5 >=5.5.0)
    @@ -6732,7 +6708,7 @@ public function following($offset) { } * @return int */ #[Pure] - public function getErrorCode() { } + public function getErrorCode() {} /** * (PHP 5 >=5.5.0)
    @@ -6741,8 +6717,7 @@ public function getErrorCode() { } * @return string */ #[Pure] - public function getErrorMessage() { } - + public function getErrorMessage() {} /** * (PHP 5 >=5.5.0)
    @@ -6751,7 +6726,7 @@ public function getErrorMessage() { } * @param string $type */ #[Pure] - public function getLocale($type) { } + public function getLocale($type) {} /** * (PHP 5 >=5.5.0)
    @@ -6776,7 +6751,7 @@ public function getLocale($type) { } * */ #[Pure] - public function getPartsIterator($type = IntlPartsIterator::KEY_SEQUENTIAL) { } + public function getPartsIterator($type = IntlPartsIterator::KEY_SEQUENTIAL) {} /** * (PHP 5 >=5.5.0)
    @@ -6784,7 +6759,7 @@ public function getPartsIterator($type = IntlPartsIterator::KEY_SEQUENTIAL) { } * @link https://secure.php.net/manual/en/intlbreakiterator.gettext.php */ #[Pure] - public function getText() { } + public function getText() {} /** * (PHP 5 >=5.5.0)
    @@ -6793,7 +6768,7 @@ public function getText() { } * @param int $offset */ #[Pure] - public function isBoundary($offset) { } + public function isBoundary($offset) {} /** * (PHP 5 >=5.5.0)
    @@ -6801,7 +6776,7 @@ public function isBoundary($offset) { } * @link https://secure.php.net/manual/en/intlbreakiterator.last.php * @return int */ - public function last() { } + public function last() {} /** * (PHP 5 >=5.5.0)
    @@ -6809,14 +6784,14 @@ public function last() { } * @param int $offset [optional] * @return int */ - public function next($offset = null) { } + public function next($offset = null) {} /** * (PHP 5 >=5.5.0)
    * @link https://secure.php.net/manual/en/intlbreakiterator.preceding.php * @param int $offset */ - public function preceding($offset) { } + public function preceding($offset) {} /** * (PHP 5 >=5.5.0)
    @@ -6824,7 +6799,7 @@ public function preceding($offset) { } * @link https://secure.php.net/manual/en/intlbreakiterator.previous.php * @return int */ - public function previous() { } + public function previous() {} /** * (PHP 5 >=5.5.0)
    @@ -6832,17 +6807,17 @@ public function previous() { } * @link https://secure.php.net/manual/en/intlbreakiterator.settext.php * @param string $text */ - public function setText($text) { } + public function setText($text) {} /** * @return Traversable */ #[Pure] - public function getIterator(){} + public function getIterator() {} } -class IntlRuleBasedBreakIterator extends IntlBreakIterator implements Traversable { - +class IntlRuleBasedBreakIterator extends IntlBreakIterator implements Traversable +{ /* Methods */ /** * (PHP 5 >=5.5.0)
    @@ -6851,7 +6826,7 @@ class IntlRuleBasedBreakIterator extends IntlBreakIterator implements Traversabl * @param string $compiled [optional] */ #[Pure] - public function __construct($rules, $compiled = false) { } + public function __construct($rules, $compiled = false) {} /** * (PHP 5 >=5.5.0)
    @@ -6860,7 +6835,7 @@ public function __construct($rules, $compiled = false) { } * @param string $locale * @return IntlRuleBasedBreakIterator */ - public static function createCharacterInstance($locale) { } + public static function createCharacterInstance($locale) {} /** * (PHP 5 >=5.5.0)
    @@ -6868,7 +6843,7 @@ public static function createCharacterInstance($locale) { } * @link https://secure.php.net/manual/en/intlbreakiterator.createcodepointinstance.php * @return IntlRuleBasedBreakIterator */ - public static function createCodePointInstance() { } + public static function createCodePointInstance() {} /** * (PHP 5 >=5.5.0)
    @@ -6877,7 +6852,7 @@ public static function createCodePointInstance() { } * @param string $locale [optional] * @return IntlRuleBasedBreakIterator */ - public static function createLineInstance($locale) { } + public static function createLineInstance($locale) {} /** * (PHP 5 >=5.5.0)
    @@ -6886,7 +6861,7 @@ public static function createLineInstance($locale) { } * @param string $locale [optional] * @return IntlRuleBasedBreakIterator */ - public static function createSentenceInstance($locale) { } + public static function createSentenceInstance($locale) {} /** * (PHP 5 >=5.5.0)
    @@ -6895,7 +6870,7 @@ public static function createSentenceInstance($locale) { } * @param string $locale [optional] * @return IntlRuleBasedBreakIterator */ - public static function createTitleInstance($locale) { } + public static function createTitleInstance($locale) {} /** * (PHP 5 >=5.5.0)
    @@ -6904,7 +6879,7 @@ public static function createTitleInstance($locale) { } * @param string $locale [optional] * @return IntlRuleBasedBreakIterator */ - public static function createWordInstance($locale) { } + public static function createWordInstance($locale) {} /** * (PHP 5 >=5.5.0)
    @@ -6913,7 +6888,7 @@ public static function createWordInstance($locale) { } * @return string */ #[Pure] - public function getBinaryRules() { } + public function getBinaryRules() {} /** * (PHP 5 >=5.5.0)
    @@ -6922,7 +6897,7 @@ public function getBinaryRules() { } * @return string */ #[Pure] - public function getRules() { } + public function getRules() {} /** * (PHP 5 >=5.5.0)
    @@ -6931,7 +6906,7 @@ public function getRules() { } * @return int */ #[Pure] - public function getRuleStatus() { } + public function getRuleStatus() {} /** * (PHP 5 >=5.5.0)
    @@ -6940,29 +6915,28 @@ public function getRuleStatus() { } * @return array */ #[Pure] - public function getRuleStatusVec() { } + public function getRuleStatusVec() {} } /** * @link https://www.php.net/manual/en/class.intlpartsiterator.php * @since 5.5 */ -class IntlPartsIterator extends IntlIterator implements Iterator { - - const KEY_SEQUENTIAL = 0 ; - const KEY_LEFT = 1 ; - const KEY_RIGHT = 2 ; +class IntlPartsIterator extends IntlIterator implements Iterator +{ + public const KEY_SEQUENTIAL = 0; + public const KEY_LEFT = 1; + public const KEY_RIGHT = 2; /** * @return IntlBreakIterator */ #[Pure] - public function getBreakIterator() { } + public function getBreakIterator() {} } -class IntlCodePointBreakIterator extends IntlBreakIterator implements Traversable { - - +class IntlCodePointBreakIterator extends IntlBreakIterator implements Traversable +{ /** * (PHP 5 >=5.5.0)
    * Get last code point passed over after advancing or receding the iterator @@ -6970,53 +6944,53 @@ class IntlCodePointBreakIterator extends IntlBreakIterator implements Traversabl * @return int */ #[Pure] - public function getLastCodePoint() { } + public function getLastCodePoint() {} } -class UConverter { - +class UConverter +{ /* Constants */ - const REASON_UNASSIGNED = 0; - const REASON_ILLEGAL = 1; - const REASON_IRREGULAR = 2; - const REASON_RESET = 3; - const REASON_CLOSE = 4; - const REASON_CLONE = 5; - const UNSUPPORTED_CONVERTER = -1; - const SBCS = 0; - const DBCS = 1; - const MBCS = 2; - const LATIN_1 = 3; - const UTF8 = 4; - const UTF16_BigEndian = 5; - const UTF16_LittleEndian = 6; - const UTF32_BigEndian = 7; - const UTF32_LittleEndian = 8; - const EBCDIC_STATEFUL = 9; - const ISO_2022 = 10; - const LMBCS_1 = 11; - const LMBCS_2 = 12; - const LMBCS_3 = 13; - const LMBCS_4 = 14; - const LMBCS_5 = 15; - const LMBCS_6 = 16; - const LMBCS_8 = 17; - const LMBCS_11 = 18; - const LMBCS_16 = 19; - const LMBCS_17 = 20; - const LMBCS_18 = 21; - const LMBCS_19 = 22; - const LMBCS_LAST = 22; - const HZ = 23; - const SCSU = 24; - const ISCII = 25; - const US_ASCII = 26; - const UTF7 = 27; - const BOCU1 = 28; - const UTF16 = 29; - const UTF32 = 30; - const CESU8 = 31; - const IMAP_MAILBOX = 32; + public const REASON_UNASSIGNED = 0; + public const REASON_ILLEGAL = 1; + public const REASON_IRREGULAR = 2; + public const REASON_RESET = 3; + public const REASON_CLOSE = 4; + public const REASON_CLONE = 5; + public const UNSUPPORTED_CONVERTER = -1; + public const SBCS = 0; + public const DBCS = 1; + public const MBCS = 2; + public const LATIN_1 = 3; + public const UTF8 = 4; + public const UTF16_BigEndian = 5; + public const UTF16_LittleEndian = 6; + public const UTF32_BigEndian = 7; + public const UTF32_LittleEndian = 8; + public const EBCDIC_STATEFUL = 9; + public const ISO_2022 = 10; + public const LMBCS_1 = 11; + public const LMBCS_2 = 12; + public const LMBCS_3 = 13; + public const LMBCS_4 = 14; + public const LMBCS_5 = 15; + public const LMBCS_6 = 16; + public const LMBCS_8 = 17; + public const LMBCS_11 = 18; + public const LMBCS_16 = 19; + public const LMBCS_17 = 20; + public const LMBCS_18 = 21; + public const LMBCS_19 = 22; + public const LMBCS_LAST = 22; + public const HZ = 23; + public const SCSU = 24; + public const ISCII = 25; + public const US_ASCII = 26; + public const UTF7 = 27; + public const BOCU1 = 28; + public const UTF16 = 29; + public const UTF32 = 30; + public const CESU8 = 31; + public const IMAP_MAILBOX = 32; /* Methods */ /** @@ -7027,7 +7001,7 @@ class UConverter { * @param string $source_encoding */ #[Pure] - public function __construct($destination_encoding = null, $source_encoding = null) { } + public function __construct($destination_encoding = null, $source_encoding = null) {} /** * (PHP 5 >=5.5.0)
    @@ -7038,7 +7012,7 @@ public function __construct($destination_encoding = null, $source_encoding = nul * @return string */ #[Pure] - public function convert($str, $reverse = false) { } + public function convert($str, $reverse = false) {} /** * (PHP 5 >=5.5.0)
    @@ -7050,7 +7024,7 @@ public function convert($str, $reverse = false) { } * @param int &$error * @return mixed */ - public function fromUCallback($reason, $source, $codePoint, &$error) { } + public function fromUCallback($reason, $source, $codePoint, &$error) {} /** * (PHP 5 >=5.5.0)
    @@ -7059,7 +7033,7 @@ public function fromUCallback($reason, $source, $codePoint, &$error) { } * @param string $name * @return array */ - public static function getAliases($name = null) { } + public static function getAliases($name = null) {} /** * (PHP 5 >=5.5.0)
    @@ -7067,7 +7041,7 @@ public static function getAliases($name = null) { } * @link https://php.net/manual/en/uconverter.getavailable.php * @return array */ - public static function getAvailable() { } + public static function getAvailable() {} /** * (PHP 5 >=5.5.0)
    @@ -7076,7 +7050,7 @@ public static function getAvailable() { } * @return string */ #[Pure] - public function getDestinationEncoding() { } + public function getDestinationEncoding() {} /** * (PHP 5 >=5.5.0)
    @@ -7085,7 +7059,7 @@ public function getDestinationEncoding() { } * @return int */ #[Pure] - public function getDestinationType() { } + public function getDestinationType() {} /** * (PHP 5 >=5.5.0)
    @@ -7094,7 +7068,7 @@ public function getDestinationType() { } * @return int */ #[Pure] - public function getErrorCode() { } + public function getErrorCode() {} /** * (PHP 5 >=5.5.0)
    @@ -7103,7 +7077,7 @@ public function getErrorCode() { } * @return string */ #[Pure] - public function getErrorMessage() { } + public function getErrorMessage() {} /** * (PHP 5 >=5.5.0)
    @@ -7112,7 +7086,7 @@ public function getErrorMessage() { } * @return string */ #[Pure] - public function getSourceEncoding() { } + public function getSourceEncoding() {} /** * (PHP 5 >=5.5.0)
    @@ -7121,7 +7095,7 @@ public function getSourceEncoding() { } * @return int */ #[Pure] - public function getSourceType() { } + public function getSourceType() {} /** * (PHP 5 >=5.5.0)
    @@ -7130,7 +7104,7 @@ public function getSourceType() { } * @return array */ #[Pure] - public static function getStandards() { } + public static function getStandards() {} /** * (PHP 5 >=5.5.0)
    @@ -7139,7 +7113,7 @@ public static function getStandards() { } * @return string */ #[Pure] - public function getSubstChars() { } + public function getSubstChars() {} /** * (PHP 5 >=5.5.0)
    @@ -7149,7 +7123,7 @@ public function getSubstChars() { } * @return string */ #[Pure] - public static function reasonText($reason) { } + public static function reasonText($reason) {} /** * (PHP 5 >=5.5.0)
    @@ -7158,7 +7132,7 @@ public static function reasonText($reason) { } * @param string $encoding * @return void */ - public function setDestinationEncoding($encoding) { } + public function setDestinationEncoding($encoding) {} /** * (PHP 5 >=5.5.0)
    @@ -7167,7 +7141,7 @@ public function setDestinationEncoding($encoding) { } * @param string $encoding * @return void */ - public function setSourceEncoding($encoding) { } + public function setSourceEncoding($encoding) {} /** * (PHP 5 >=5.5.0)
    @@ -7176,7 +7150,7 @@ public function setSourceEncoding($encoding) { } * @param string $chars * @return void */ - public function setSubstChars($chars) { } + public function setSubstChars($chars) {} /** * (PHP 5 >=5.5.0)
    @@ -7188,7 +7162,7 @@ public function setSubstChars($chars) { } * @param int &$error * @return mixed */ - public function toUCallback($reason, $source, $codeUnits, &$error) { } + public function toUCallback($reason, $source, $codeUnits, &$error) {} /** * (PHP 5 >=5.5.0)
    @@ -7200,7 +7174,6 @@ public function toUCallback($reason, $source, $codeUnits, &$error) { } * @param array $options * @return string */ - public static function transcode($str, $toEncoding, $fromEncoding, array $options = []) { } + public static function transcode($str, $toEncoding, $fromEncoding, array $options = []) {} } // End of intl v.1.1.0 -?> diff --git a/json/json.php b/json/json.php index 59a1a9dd9..1c0601382 100644 --- a/json/json.php +++ b/json/json.php @@ -10,52 +10,50 @@ * @link https://php.net/manual/en/class.jsonserializable.php * @since 5.4 */ -interface JsonSerializable { - - /** - * Specify data which should be serialized to JSON - * @link https://php.net/manual/en/jsonserializable.jsonserialize.php - * @return mixed data which can be serialized by json_encode, - * which is a value of any type other than a resource. - * @since 5.4 - */ - public function jsonSerialize (); - +interface JsonSerializable +{ + /** + * Specify data which should be serialized to JSON + * @link https://php.net/manual/en/jsonserializable.jsonserialize.php + * @return mixed data which can be serialized by json_encode, + * which is a value of any type other than a resource. + * @since 5.4 + */ + public function jsonSerialize(); } -class JsonIncrementalParser { - const JSON_PARSER_SUCCESS = 0; - const JSON_PARSER_CONTINUE = 1; - - - /** - * @param int $depth [optional] - * @param int $options [optional] - */ - #[Pure] - public function __construct ($depth, $options) {} - - #[Pure] - public function getError () {} - - public function reset () {} - - /** - * @param string $json - */ - public function parse ($json) {} - - /** - * @param string $filename - */ - public function parseFile ($filename) {} - - /** - * @param int $options [optional] - */ - #[Pure] - public function get ($options) {} - +class JsonIncrementalParser +{ + public const JSON_PARSER_SUCCESS = 0; + public const JSON_PARSER_CONTINUE = 1; + + /** + * @param int $depth [optional] + * @param int $options [optional] + */ + #[Pure] + public function __construct($depth, $options) {} + + #[Pure] + public function getError() {} + + public function reset() {} + + /** + * @param string $json + */ + public function parse($json) {} + + /** + * @param string $filename + */ + public function parseFile($filename) {} + + /** + * @param int $options [optional] + */ + #[Pure] + public function get($options) {} } /** @@ -92,7 +90,7 @@ public function get ($options) {} *

    * @return string|false a JSON encoded string on success or FALSE on failure. */ -function json_encode (mixed $value, int $flags = 0, int $depth = 512): string|false {} +function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {} /** * (PHP 5 >= 5.2.0, PECL json >= 1.2.0)
    @@ -130,7 +128,7 @@ function json_encode (mixed $value, int $flags = 0, int $depth = 512): string|fa * json cannot be decoded or if the encoded * data is deeper than the recursion limit. */ -function json_decode (string $json, ?bool $associative = false, int $depth = 512, int $flags = 0): mixed {} +function json_decode(string $json, ?bool $associative = false, int $depth = 512, int $flags = 0): mixed {} /** * Returns the last error occurred @@ -224,7 +222,7 @@ function json_decode (string $json, ?bool $associative = false, int $depth = 512 * */ #[Pure] -function json_last_error (): int {} +function json_last_error(): int {} /** * Returns the error string of the last json_encode() or json_decode() call, which did not specify JSON_THROW_ON_ERROR. @@ -233,32 +231,31 @@ function json_last_error (): int {} * @since 5.5 */ #[Pure] -function json_last_error_msg (): string {} - +function json_last_error_msg(): string {} /** * All < and > are converted to \u003C and \u003E. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_HEX_TAG', 1); +define('JSON_HEX_TAG', 1); /** * All &s are converted to \u0026. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_HEX_AMP', 2); +define('JSON_HEX_AMP', 2); /** * All ' are converted to \u0027. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_HEX_APOS', 4); +define('JSON_HEX_APOS', 4); /** * All " are converted to \u0022. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_HEX_QUOT', 8); +define('JSON_HEX_QUOT', 8); /** * Outputs an object rather than an array when a non-associative array is @@ -266,55 +263,55 @@ function json_last_error_msg (): string {} * an object and the array is empty. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_FORCE_OBJECT', 16); +define('JSON_FORCE_OBJECT', 16); /** * Encodes numeric strings as numbers. * @since 5.3.3 * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_NUMERIC_CHECK', 32); +define('JSON_NUMERIC_CHECK', 32); /** * Don't escape /. * @since 5.4 * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_UNESCAPED_SLASHES', 64); +define('JSON_UNESCAPED_SLASHES', 64); /** * Use whitespace in returned data to format it. * @since 5.4 * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_PRETTY_PRINT', 128); +define('JSON_PRETTY_PRINT', 128); /** * Encode multibyte Unicode characters literally (default is to escape as \uXXXX). * @since 5.4 * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_UNESCAPED_UNICODE', 256); -define ('JSON_PARTIAL_OUTPUT_ON_ERROR', 512); +define('JSON_UNESCAPED_UNICODE', 256); +define('JSON_PARTIAL_OUTPUT_ON_ERROR', 512); /** * Occurs with underflow or with the modes mismatch. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_ERROR_STATE_MISMATCH', 2); +define('JSON_ERROR_STATE_MISMATCH', 2); /** * Control character error, possibly incorrectly encoded. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_ERROR_CTRL_CHAR', 3); +define('JSON_ERROR_CTRL_CHAR', 3); /** * Malformed UTF-8 characters, possibly incorrectly encoded. This * constant is available as of PHP 5.3.3. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_ERROR_UTF8', 5); +define('JSON_ERROR_UTF8', 5); /** *

    @@ -328,7 +325,7 @@ function json_last_error_msg (): string {} *

    * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_ERROR_RECURSION', 6); +define('JSON_ERROR_RECURSION', 6); /** *

    @@ -344,7 +341,7 @@ function json_last_error_msg (): string {} *

    * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_ERROR_INF_OR_NAN', 7); +define('JSON_ERROR_INF_OR_NAN', 7); /** *

    @@ -358,47 +355,47 @@ function json_last_error_msg (): string {} *

    * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_ERROR_UNSUPPORTED_TYPE', 8); +define('JSON_ERROR_UNSUPPORTED_TYPE', 8); /** * No error has occurred. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_ERROR_NONE', 0); +define('JSON_ERROR_NONE', 0); /** * The maximum stack depth has been exceeded. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_ERROR_DEPTH', 1); +define('JSON_ERROR_DEPTH', 1); /** * Syntax error. * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_ERROR_SYNTAX', 4); +define('JSON_ERROR_SYNTAX', 4); /** * Decodes JSON objects as PHP array. * @since 5.4 * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_OBJECT_AS_ARRAY', 1); -define ('JSON_PARSER_NOTSTRICT', 4); +define('JSON_OBJECT_AS_ARRAY', 1); +define('JSON_PARSER_NOTSTRICT', 4); /** * Decodes large integers as their original string value. * @since 5.4 * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_BIGINT_AS_STRING', 2); +define('JSON_BIGINT_AS_STRING', 2); /** * Ensures that float values are always encoded as a float value. * @since 5.6.6 * @link https://php.net/manual/en/json.constants.php */ -define ('JSON_PRESERVE_ZERO_FRACTION', 1024); +define('JSON_PRESERVE_ZERO_FRACTION', 1024); /** * The line terminators are kept unescaped when JSON_UNESCAPED_UNICODE is supplied. @@ -426,7 +423,7 @@ function json_last_error_msg (): string {} * @link https://php.net/manual/en/json.constants.php * @since 7.0 */ -define('JSON_ERROR_INVALID_PROPERTY_NAME',9); +define('JSON_ERROR_INVALID_PROPERTY_NAME', 9); /** * Single unpaired UTF-16 surrogate in unicode escape contained in the JSON string passed to json_encode(). @@ -434,7 +431,7 @@ function json_last_error_msg (): string {} * @link https://php.net/manual/en/json.constants.php * @since 7.0 */ -define('JSON_ERROR_UTF16',10); +define('JSON_ERROR_UTF16', 10); /** * Throws JsonException if an error occurs instead of setting the global error state @@ -458,8 +455,6 @@ function json_last_error_msg (): string {} * @since 7.3 * @link https://wiki.php.net/rfc/json_throw_on_error */ -class JsonException extends \Exception { -} +class JsonException extends \Exception {} // End of json v.1.3.1 -?> diff --git a/judy/judy.php b/judy/judy.php index 091c2fdbd..766fb3af7 100644 --- a/judy/judy.php +++ b/judy/judy.php @@ -6,32 +6,33 @@ * Class Judy. * @link https://php.net/manual/en/class.judy.php */ -class Judy implements ArrayAccess { +class Judy implements ArrayAccess +{ /** * Define the Judy Array as a Bitset with keys as Integer and Values as a Boolean. * @link https://php.net/manual/en/class.judy.php#judy.constants.bitset */ - const BITSET = 1; + public const BITSET = 1; /** * Define the Judy Array with key/values as Integer, and Integer only. * @link https://php.net/manual/en/class.judy.php#judy.constants.int-to-int */ - const INT_TO_INT = 2; + public const INT_TO_INT = 2; /** * Define the Judy Array with keys as Integer and Values of any type. * @link https://php.net/manual/en/class.judy.php#judy.constants.int-to-mixed */ - const INT_TO_MIXED = 3; + public const INT_TO_MIXED = 3; /** * Define the Judy Array with keys as a String and Values as Integer, and Integer only. * @link https://php.net/manual/en/class.judy.php#judy.constants.string-to-int */ - const STRING_TO_INT = 4; + public const STRING_TO_INT = 4; /** * Define the Judy Array with keys as a String and Values of any type. * @link https://php.net/manual/en/class.judy.php#judy.constants.string-to-mixed */ - const STRING_TO_MIXED = 5; + public const STRING_TO_MIXED = 5; /** * (PECL judy >= 0.1.1)
    @@ -210,5 +211,3 @@ public function size($index_start = 0, $index_end = -1) {} } // End of judy. - -?> diff --git a/ldap/ldap.php b/ldap/ldap.php index d5af4aee2..06f50da58 100644 --- a/ldap/ldap.php +++ b/ldap/ldap.php @@ -15,8 +15,7 @@ * @return string|bool Returns the generated password if newpw is empty or omitted. Otherwise returns TRUE on success and FALSE on failure. * @since 7.2 */ -function ldap_exop_passwd ($ldap , string $user = "" , string $old_password = "" , string $new_password = "" , &$controls = []): string|bool -{} +function ldap_exop_passwd($ldap, string $user = "", string $old_password = "", string $new_password = "", &$controls = []): string|bool {} /** * Refresh extended operation helper @@ -27,8 +26,7 @@ function ldap_exop_passwd ($ldap , string $user = "" , string $old_password = "" * @return int|false From RFC: The responseTtl field is the time in seconds which the server chooses to have as the time-to-live field for that entry. It must not be any smaller than that which the client requested, and it may be larger. However, to allow servers to maintain a relatively accurate directory, and to prevent clients from abusing the dynamic extensions, servers are permitted to shorten a client-requested time-to-live value, down to a minimum of 86400 seconds (one day). FALSE will be returned on error. * @since 7.3 */ -function ldap_exop_refresh ($ldap, string $dn, int $ttl): int|false -{} +function ldap_exop_refresh($ldap, string $dn, int $ttl): int|false {} /** * WHOAMI extended operation helper @@ -37,8 +35,7 @@ function ldap_exop_refresh ($ldap, string $dn, int $ttl): int|false * @return string|false The data returned by the server, or FALSE on error. * @since 7.2 */ -function ldap_exop_whoami ($ldap): string|false -{} +function ldap_exop_whoami($ldap): string|false {} /** * Performs an extended operation on the specified link with reqoid the OID of the operation and reqdata the data. @@ -52,8 +49,7 @@ function ldap_exop_whoami ($ldap): string|false * @return resource|bool When used with retdata, returns TRUE on success or FALSE on error. When used without retdata, returns a result identifier or FALSE on error. * @since 7.2 */ -function ldap_exop ($ldap , string $request_oid , ?string $request_data , #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = [], &$response_data, &$response_oid) -{} +function ldap_exop($ldap, string $request_oid, ?string $request_data, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = [], &$response_data, &$response_oid) {} /** * Parse LDAP extended operation data from result object result @@ -65,8 +61,7 @@ function ldap_exop ($ldap , string $request_oid , ?string $request_data , #[Lang * @return bool Returns TRUE on success or FALSE on failure. * @since 7.2 */ -function ldap_parse_exop ($ldap , $result, &$response_data, &$response_oid): bool -{} +function ldap_parse_exop($ldap, $result, &$response_data, &$response_oid): bool {} /** * Translate 8859 characters to t61 characters @@ -74,8 +69,7 @@ function ldap_parse_exop ($ldap , $result, &$response_data, &$response_oid): boo * @param string $value * @return string */ -function ldap_8859_to_t61(string $value): string -{} +function ldap_8859_to_t61(string $value): string {} /** * Translate t61 characters to 8859 characters @@ -83,8 +77,7 @@ function ldap_8859_to_t61(string $value): string * @param string $value * @return string */ -function ldap_t61_to_8859(string $value): string -{} +function ldap_t61_to_8859(string $value): string {} /** * Connect to an LDAP server @@ -109,8 +102,7 @@ function ldap_t61_to_8859(string $value): string * If no arguments are specified then the link identifier of the already * opened link will be returned. */ -function ldap_connect (?string $uri, int $port = 389) -{} +function ldap_connect(?string $uri, int $port = 389) {} /** * Alias of ldap_unbind @@ -118,7 +110,7 @@ function ldap_connect (?string $uri, int $port = 389) * @param resource $ldap * @return bool */ -function ldap_close ($ldap): bool {} +function ldap_close($ldap): bool {} /** * Bind to LDAP directory @@ -130,8 +122,7 @@ function ldap_close ($ldap): bool {} * @param string|null $password [optional] * @return bool TRUE on success or FALSE on failure. */ -function ldap_bind ($ldap, ?string $dn, ?string $password): bool -{} +function ldap_bind($ldap, ?string $dn, ?string $password): bool {} /** * Bind to LDAP directory @@ -146,9 +137,7 @@ function ldap_bind ($ldap, ?string $dn, ?string $password): bool * @return resource|false * @since 7.3 */ -function ldap_bind_ext ($ldap, ?string $dn, ?string $password, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) -{} - +function ldap_bind_ext($ldap, ?string $dn, ?string $password, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) {} /** * Bind to LDAP directory using SASL @@ -163,8 +152,7 @@ function ldap_bind_ext ($ldap, ?string $dn, ?string $password, #[LanguageLevelTy * @param string $props [optional] * @return bool TRUE on success or FALSE on failure. */ -function ldap_sasl_bind ($ldap, $binddn = null, $password = null, $sasl_mech = null, $sasl_realm = null, $sasl_authc_id = null, $sasl_authz_id = null, $props = null): bool -{} +function ldap_sasl_bind($ldap, $binddn = null, $password = null, $sasl_mech = null, $sasl_realm = null, $sasl_authc_id = null, $sasl_authz_id = null, $props = null): bool {} /** * Unbind from LDAP directory @@ -174,8 +162,7 @@ function ldap_sasl_bind ($ldap, $binddn = null, $password = null, $sasl_mech = n *

    * @return bool TRUE on success or FALSE on failure. */ -function ldap_unbind ($ldap): bool -{} +function ldap_unbind($ldap): bool {} /** * Read an entry @@ -239,8 +226,7 @@ function ldap_unbind ($ldap): bool * @param array|null $controls [optional] Array of LDAP Controls to send with the request. * @return resource|false a search result identifier or FALSE on error. */ -function ldap_read ($ldap, array|string $base, array|string $filter, array $attributes, int $attributes_only, int $sizelimit = -1, int $timelimit = -1, int $deref, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) -{} +function ldap_read($ldap, array|string $base, array|string $filter, array $attributes, int $attributes_only, int $sizelimit = -1, int $timelimit = -1, int $deref, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) {} /** * Single-level search @@ -298,8 +284,7 @@ function ldap_read ($ldap, array|string $base, array|string $filter, array $attr * @param array|null $controls [optional] Array of LDAP Controls to send with the request. * @return resource|false a search result identifier or FALSE on error. */ -function ldap_list ($ldap, array|string $base, array|string $filter, array $attributes, int $attributes_only, int $sizelimit = -1, int $timelimit = -1, int $deref, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) -{} +function ldap_list($ldap, array|string $base, array|string $filter, array $attributes, int $attributes_only, int $sizelimit = -1, int $timelimit = -1, int $deref, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) {} /** * Search LDAP tree @@ -361,8 +346,7 @@ function ldap_list ($ldap, array|string $base, array|string $filter, array $attr * @param array|null $controls [optional] Array of LDAP Controls to send with the request. * @return resource|false a search result identifier or FALSE on error. */ -function ldap_search ($ldap, array|string $base, array|string $filter, array $attributes, int $attributes_only, int $sizelimit = -1, int $timelimit = -1, int $deref, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) -{} +function ldap_search($ldap, array|string $base, array|string $filter, array $attributes, int $attributes_only, int $sizelimit = -1, int $timelimit = -1, int $deref, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) {} /** * Free result memory @@ -370,8 +354,7 @@ function ldap_search ($ldap, array|string $base, array|string $filter, array $at * @param resource $ldap * @return bool TRUE on success or FALSE on failure. */ -function ldap_free_result ($ldap): bool -{} +function ldap_free_result($ldap): bool {} /** * Count the number of entries in a search @@ -385,8 +368,7 @@ function ldap_free_result ($ldap): bool * @return int|false number of entries in the result or FALSE on error. */ #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function ldap_count_entries ($ldap, $result) -{} +function ldap_count_entries($ldap, $result) {} /** * Return first result id @@ -398,8 +380,7 @@ function ldap_count_entries ($ldap, $result) * @return resource|false the result entry identifier for the first entry on success and * FALSE on error. */ -function ldap_first_entry ($ldap, $result) -{} +function ldap_first_entry($ldap, $result) {} /** * Get next result entry @@ -412,8 +393,7 @@ function ldap_first_entry ($ldap, $result) * are being read starting with ldap_first_entry. If * there are no more entries in the result then it returns FALSE. */ -function ldap_next_entry ($ldap, $result) -{} +function ldap_next_entry($ldap, $result) {} /** * Get all result entries @@ -441,8 +421,7 @@ function ldap_next_entry ($ldap, $result) * return_value[i]["attribute"][j] = jth value of attribute in ith entry * */ -function ldap_get_entries ($ldap, $result): array|false -{} +function ldap_get_entries($ldap, $result): array|false {} /** * Return first attribute @@ -454,8 +433,7 @@ function ldap_get_entries ($ldap, $result): array|false * @return string|false the first attribute in the entry on success and FALSE on * error. */ -function ldap_first_attribute ($ldap, $entry): string|false -{} +function ldap_first_attribute($ldap, $entry): string|false {} /** * Get the next attribute in result @@ -467,8 +445,7 @@ function ldap_first_attribute ($ldap, $entry): string|false * @return string|false the next attribute in an entry on success and FALSE on * error. */ -function ldap_next_attribute ($ldap, $entry): string|false -{} +function ldap_next_attribute($ldap, $entry): string|false {} /** * Get attributes from a search result entry @@ -480,8 +457,7 @@ function ldap_next_attribute ($ldap, $entry): string|false * @return array a complete entry information in a multi-dimensional array * on success and FALSE on error. */ -function ldap_get_attributes ($ldap, $entry): array -{} +function ldap_get_attributes($ldap, $entry): array {} /** * Get all values from a result entry @@ -504,8 +480,7 @@ function ldap_get_attributes ($ldap, $entry): array * return_value[0] = first value of attribute * return_value[i] = ith value of attribute */ -function ldap_get_values ($ldap, $entry, string $attribute): array|false -{} +function ldap_get_values($ldap, $entry, string $attribute): array|false {} /** * Get all binary values from a result entry @@ -520,8 +495,7 @@ function ldap_get_values ($ldap, $entry, string $attribute): array|false * first index is 0. The number of values can be found by indexing "count" * in the resultant array. */ -function ldap_get_values_len ($ldap, $entry, string $attribute): array|false -{} +function ldap_get_values_len($ldap, $entry, string $attribute): array|false {} /** * Get the DN of a result entry @@ -532,8 +506,7 @@ function ldap_get_values_len ($ldap, $entry, string $attribute): array|false * @param resource $entry * @return string|false the DN of the result entry and FALSE on error. */ -function ldap_get_dn ($ldap, $entry): string|false -{} +function ldap_get_dn($ldap, $entry): string|false {} /** * Splits DN into its component parts @@ -552,8 +525,7 @@ function ldap_get_dn ($ldap, $entry): string|false * represents the number of returned values, next elements are numerically * indexed DN components. */ -function ldap_explode_dn (string $dn, int $with_attrib): array|false -{} +function ldap_explode_dn(string $dn, int $with_attrib): array|false {} /** * Convert DN to User Friendly Naming format @@ -563,8 +535,7 @@ function ldap_explode_dn (string $dn, int $with_attrib): array|false *

    * @return string|false the user friendly name. */ -function ldap_dn2ufn (string $dn): string|false -{} +function ldap_dn2ufn(string $dn): string|false {} /** * Add entries to LDAP directory @@ -589,8 +560,7 @@ function ldap_dn2ufn (string $dn): string|false * @param array|null $controls [optional] Array of LDAP Controls to send with the request. * @return bool TRUE on success or FALSE on failure. */ -function ldap_add ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool -{} +function ldap_add($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool {} /** * Add entries to LDAP directory @@ -617,8 +587,7 @@ function ldap_add ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8 * @return resource|false * @since 7.3 */ -function ldap_add_ext ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) -{} +function ldap_add_ext($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) {} /** * Delete an entry from a directory @@ -632,8 +601,7 @@ function ldap_add_ext ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware * @param array|null $controls [optional] Array of LDAP Controls to send with the request. * @return bool TRUE on success or FALSE on failure. */ -function ldap_delete ($ldap, string $dn, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool -{} +function ldap_delete($ldap, string $dn, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool {} /** * Delete an entry from a directory @@ -649,8 +617,7 @@ function ldap_delete ($ldap, string $dn, #[LanguageLevelTypeAware(["8.0" => "nul * @return resource|false * @since 7.3 */ -function ldap_delete_ext ($ldap, string $dn, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) -{} +function ldap_delete_ext($ldap, string $dn, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) {} /** * This function is an alias of: ldap_mod_replace(). @@ -667,8 +634,7 @@ function ldap_delete_ext ($ldap, string $dn, #[LanguageLevelTypeAware(["8.0" => * @return bool TRUE on success or FALSE on failure. * @since 7.0 */ -function ldap_modify ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool -{} +function ldap_modify($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool {} /** * Add attribute values to current attributes @@ -683,8 +649,7 @@ function ldap_modify ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware( * @param array|null $controls [optional] Array of LDAP Controls to send with the request. * @return bool TRUE on success or FALSE on failure. */ -function ldap_mod_add ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool -{} +function ldap_mod_add($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool {} /** * Add attribute values to current attributes @@ -701,8 +666,7 @@ function ldap_mod_add ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware * @return resource|false * @since 7.3 */ -function ldap_mod_add_ext ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) -{} +function ldap_mod_add_ext($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) {} /** * Replace attribute values with new ones @@ -717,8 +681,7 @@ function ldap_mod_add_ext ($ldap, string $dn, array $entry, #[LanguageLevelTypeA * @param array|null $controls [optional] Array of LDAP Controls to send with the request. * @return bool TRUE on success or FALSE on failure. */ -function ldap_mod_replace ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool -{} +function ldap_mod_replace($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool {} /** * Replace attribute values with new ones @@ -735,8 +698,7 @@ function ldap_mod_replace ($ldap, string $dn, array $entry, #[LanguageLevelTypeA * @return resource|false * @since 7.3 */ -function ldap_mod_replace_ext ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) -{} +function ldap_mod_replace_ext($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) {} /** * Delete attribute values from current attributes @@ -751,8 +713,7 @@ function ldap_mod_replace_ext ($ldap, string $dn, array $entry, #[LanguageLevelT * @param array|null $controls [optional] Array of LDAP Controls to send with the request. * @return bool TRUE on success or FALSE on failure. */ -function ldap_mod_del ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool -{} +function ldap_mod_del($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool {} /** * Delete attribute values from current attributes @@ -769,8 +730,7 @@ function ldap_mod_del ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware * @return resource|false * @since 7.3 */ -function ldap_mod_del_ext ($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) -{} +function ldap_mod_del_ext($ldap, string $dn, array $entry, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) {} /** * Return the LDAP error number of the last LDAP command @@ -781,8 +741,7 @@ function ldap_mod_del_ext ($ldap, string $dn, array $entry, #[LanguageLevelTypeA * @return int Return the LDAP error number of the last LDAP command for this * link. */ -function ldap_errno ($ldap): int -{} +function ldap_errno($ldap): int {} /** * Convert LDAP error number into string error message @@ -792,8 +751,7 @@ function ldap_errno ($ldap): int *

    * @return string the error message, as a string. */ -function ldap_err2str (int $errno): string -{} +function ldap_err2str(int $errno): string {} /** * Return the LDAP error message of the last LDAP command @@ -803,8 +761,7 @@ function ldap_err2str (int $errno): string *

    * @return string string error message. */ -function ldap_error ($ldap): string -{} +function ldap_error($ldap): string {} /** * Compare value of attribute found in entry specified with DN @@ -825,8 +782,7 @@ function ldap_error ($ldap): string * @return int|bool TRUE if value matches otherwise returns * FALSE. Returns -1 on error. */ -function ldap_compare ($ldap, string $dn, string $attribute, string $value, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): int|bool -{} +function ldap_compare($ldap, string $dn, string $attribute, string $value, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): int|bool {} /** * Sort LDAP result entries @@ -845,8 +801,7 @@ function ldap_compare ($ldap, string $dn, string $attribute, string $value, #[La * @return bool */ #[Deprecated(since: "7.0")] -function ldap_sort ($ldap, $result, string $sortfilter): bool -{} +function ldap_sort($ldap, $result, string $sortfilter): bool {} /** * Modify the name of an entry @@ -870,8 +825,7 @@ function ldap_sort ($ldap, $result, string $sortfilter): bool * @param array|null $controls [optional] Array of LDAP Controls to send with the request. * @return bool TRUE on success or FALSE on failure. */ -function ldap_rename ($ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool -{} +function ldap_rename($ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool {} /** * Modify the name of an entry @@ -897,8 +851,7 @@ function ldap_rename ($ldap, string $dn, string $new_rdn, string $new_parent, bo * @return resource|false * @since 7.3 */ -function ldap_rename_ext ($ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) -{} +function ldap_rename_ext($ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []) {} /** * Get the current value for given option @@ -970,8 +923,7 @@ function ldap_rename_ext ($ldap, string $dn, string $new_rdn, string $new_parent *

    * @return bool TRUE on success or FALSE on failure. */ -function ldap_get_option ($ldap, int $option, &$value = null): bool -{} +function ldap_get_option($ldap, int $option, &$value = null): bool {} /** * Set the value of the given option @@ -1072,8 +1024,7 @@ function ldap_get_option ($ldap, int $option, &$value = null): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function ldap_set_option ($ldap, int $option, $value): bool -{} +function ldap_set_option($ldap, int $option, $value): bool {} /** * Return first reference @@ -1082,7 +1033,7 @@ function ldap_set_option ($ldap, int $option, $value): bool * @param resource $result * @return resource */ -function ldap_first_reference ($ldap, $result) {} +function ldap_first_reference($ldap, $result) {} /** * Get next reference @@ -1091,7 +1042,7 @@ function ldap_first_reference ($ldap, $result) {} * @param resource $entry * @return resource */ -function ldap_next_reference ($ldap, $entry) {} +function ldap_next_reference($ldap, $entry) {} /** * Extract information from reference entry @@ -1101,8 +1052,7 @@ function ldap_next_reference ($ldap, $entry) {} * @param array &$referrals * @return bool */ -function ldap_parse_reference ($ldap, $entry, &$referrals): bool -{} +function ldap_parse_reference($ldap, $entry, &$referrals): bool {} /** * Extract information from result @@ -1116,8 +1066,7 @@ function ldap_parse_reference ($ldap, $entry, &$referrals): bool * @param array &$controls [optional] An array of LDAP Controls which have been sent with the response. * @return bool */ -function ldap_parse_result ($ldap, $result, &$error_code, &$matched_dn, &$error_message, &$referrals, &$controls = []): bool -{} +function ldap_parse_result($ldap, $result, &$error_code, &$matched_dn, &$error_message, &$referrals, &$controls = []): bool {} /** * Start TLS @@ -1125,8 +1074,7 @@ function ldap_parse_result ($ldap, $result, &$error_code, &$matched_dn, &$error_ * @param resource $ldap * @return bool */ -function ldap_start_tls ($ldap): bool -{} +function ldap_start_tls($ldap): bool {} /** * Set a callback function to do re-binds on referral chasing @@ -1135,8 +1083,7 @@ function ldap_start_tls ($ldap): bool * @param callable|null $callback * @return bool */ -function ldap_set_rebind_proc ($ldap, ?callable $callback): bool -{} +function ldap_set_rebind_proc($ldap, ?callable $callback): bool {} /** * Send LDAP pagination control @@ -1161,8 +1108,7 @@ function ldap_set_rebind_proc ($ldap, ?callable $callback): bool * @removed 8.0 */ #[Deprecated(since: "7.4")] -function ldap_control_paged_result ($ldap, int $pagesize, $iscritical = false, $cookie = ""): bool -{} +function ldap_control_paged_result($ldap, int $pagesize, $iscritical = false, $cookie = ""): bool {} /** * Retrieve the LDAP pagination cookie @@ -1182,8 +1128,7 @@ function ldap_control_paged_result ($ldap, int $pagesize, $iscritical = false, $ * @removed 8.0 */ #[Deprecated(since: "7.4")] -function ldap_control_paged_result_response ($ldap, $result, &$cookie = null, &$estimated = null): bool -{} +function ldap_control_paged_result_response($ldap, $result, &$cookie = null, &$estimated = null): bool {} /** * Escape a string for use in an LDAP filter or DN @@ -1193,8 +1138,7 @@ function ldap_control_paged_result_response ($ldap, $result, &$cookie = null, &$ * @return string * @since 5.6 */ -function ldap_escape (string $value, string $ignore = "", int $flags = 0): string -{} +function ldap_escape(string $value, string $ignore = "", int $flags = 0): string {} /** * (PHP 5.4 >= 5.4.26, PHP 5.5 >= 5.5.10, PHP 5.6 >= 5.6.0) @@ -1269,8 +1213,7 @@ function ldap_escape (string $value, string $ignore = "", int $flags = 0): strin * @return bool TRUE on success or FALSE on failure. * @since 5.4 */ -function ldap_modify_batch ($ldap , string $dn , array $modifications_info, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool -{} +function ldap_modify_batch($ldap, string $dn, array $modifications_info, #[LanguageLevelTypeAware(["8.0" => "null|array"], default: "array")] $controls = []): bool {} /** * @param resource $ldap @@ -1278,16 +1221,15 @@ function ldap_modify_batch ($ldap , string $dn , array $modifications_info, #[La * @return int returns the number of reference messages in a search result. * @since 8.0 */ -function ldap_count_references($ldap, $result): int -{} +function ldap_count_references($ldap, $result): int {} define('LDAP_ESCAPE_FILTER', 1); -define ('LDAP_ESCAPE_DN', 2); -define ('LDAP_DEREF_NEVER', 0); -define ('LDAP_DEREF_SEARCHING', 1); -define ('LDAP_DEREF_FINDING', 2); -define ('LDAP_DEREF_ALWAYS', 3); -define ('LDAP_MODIFY_BATCH_REMOVE',2); +define('LDAP_ESCAPE_DN', 2); +define('LDAP_DEREF_NEVER', 0); +define('LDAP_DEREF_SEARCHING', 1); +define('LDAP_DEREF_FINDING', 2); +define('LDAP_DEREF_ALWAYS', 3); +define('LDAP_MODIFY_BATCH_REMOVE', 2); define('LDAP_MODIFY_BATCH_ADD', 1); define('LDAP_MODIFY_BATCH_REMOVE_ALL', 18); define('LDAP_MODIFY_BATCH_REPLACE', 3); @@ -1325,7 +1267,7 @@ function ldap_count_references($ldap, $result): int * Specifies alternative rules for following aliases at the server. * @link https://php.net/manual/en/ldap.constants.php */ -define ('LDAP_OPT_DEREF', 2); +define('LDAP_OPT_DEREF', 2); /** *

    @@ -1337,7 +1279,7 @@ function ldap_count_references($ldap, $result): int * The lesser of these two settings is the actual size limit. * @link https://php.net/manual/en/ldap.constants.php */ -define ('LDAP_OPT_SIZELIMIT', 3); +define('LDAP_OPT_SIZELIMIT', 3); /** * Specifies the number of seconds to wait for search results. @@ -1346,54 +1288,54 @@ function ldap_count_references($ldap, $result): int * The lesser of these two settings is the actual time limit. * @link https://php.net/manual/en/ldap.constants.php */ -define ('LDAP_OPT_TIMELIMIT', 4); +define('LDAP_OPT_TIMELIMIT', 4); /** * Option for ldap_set_option to allow setting network timeout. * (Available as of PHP 5.3.0) * @link https://php.net/manual/en/ldap.constants.php */ -define ('LDAP_OPT_NETWORK_TIMEOUT', 20485); +define('LDAP_OPT_NETWORK_TIMEOUT', 20485); /** * Specifies the LDAP protocol to be used (V2 or V3). * @link https://php.net/manual/en/ldap.constants.php */ -define ('LDAP_OPT_PROTOCOL_VERSION', 17); -define ('LDAP_OPT_ERROR_NUMBER', 49); +define('LDAP_OPT_PROTOCOL_VERSION', 17); +define('LDAP_OPT_ERROR_NUMBER', 49); /** * Specifies whether to automatically follow referrals returned * by the LDAP server. * @link https://php.net/manual/en/ldap.constants.php */ -define ('LDAP_OPT_REFERRALS', 8); -define ('LDAP_OPT_RESTART', 9); -define ('LDAP_OPT_HOST_NAME', 48); -define ('LDAP_OPT_ERROR_STRING', 50); -define ('LDAP_OPT_MATCHED_DN', 51); +define('LDAP_OPT_REFERRALS', 8); +define('LDAP_OPT_RESTART', 9); +define('LDAP_OPT_HOST_NAME', 48); +define('LDAP_OPT_ERROR_STRING', 50); +define('LDAP_OPT_MATCHED_DN', 51); /** * Specifies a default list of server controls to be sent with each request. * @link https://php.net/manual/en/ldap.constants.php */ -define ('LDAP_OPT_SERVER_CONTROLS', 18); +define('LDAP_OPT_SERVER_CONTROLS', 18); /** * Specifies a default list of client controls to be processed with each request. * @link https://php.net/manual/en/ldap.constants.php */ -define ('LDAP_OPT_CLIENT_CONTROLS', 19); +define('LDAP_OPT_CLIENT_CONTROLS', 19); /** * Specifies a bitwise level for debug traces. * @link https://php.net/manual/en/ldap.constants.php */ -define ('LDAP_OPT_DEBUG_LEVEL', 20481); -define ('LDAP_OPT_X_SASL_MECH', 24832); -define ('LDAP_OPT_X_SASL_REALM', 24833); -define ('LDAP_OPT_X_SASL_AUTHCID', 24834); -define ('LDAP_OPT_X_SASL_AUTHZID', 24835); +define('LDAP_OPT_DEBUG_LEVEL', 20481); +define('LDAP_OPT_X_SASL_MECH', 24832); +define('LDAP_OPT_X_SASL_REALM', 24833); +define('LDAP_OPT_X_SASL_AUTHCID', 24834); +define('LDAP_OPT_X_SASL_AUTHZID', 24835); /** * Specifies the path of the directory containing CA certificates. @@ -1415,16 +1357,13 @@ function ldap_count_references($ldap, $result): int define('LDAP_OPT_TIMEOUT', 20482); define('LDAP_OPT_DIAGNOSTIC_MESSAGE', 50); - /** * Control Constant - Manage DSA IT (» RFC 3296) * @link https://php.net/manual/en/ldap.constants.php * @since 7.3 */ define("LDAP_CONTROL_MANAGEDSAIT", "2.16.840.1.113730.3.4.2"); -echo - -/** +echo /** * Control Constant - Proxied Authorization (» RFC 4370) * @link https://php.net/manual/en/ldap.constants.php * @since 7.3 @@ -1585,7 +1524,6 @@ function ldap_count_references($ldap, $result): int */ define("LDAP_CONTROL_VLVRESPONSE", "2.16.840.1.113730.3.4.10"); - /** * Extended Operation constant - Modify password */ @@ -1612,4 +1550,3 @@ function ldap_count_references($ldap, $result): int define("LDAP_EXOP_WHO_AM_I", "1.3.6.1.4.1.4203.1.11.3"); // End of ldap v. -?> diff --git a/leveldb/LevelDB.php b/leveldb/LevelDB.php index e8e034a7d..063fbd253 100644 --- a/leveldb/LevelDB.php +++ b/leveldb/LevelDB.php @@ -1,158 +1,154 @@ true, // if the specified database does not exist will create a new one - 'error_if_exists' => false, // if the opened database exists will throw exception - 'paranoid_checks' => false, - 'block_cache_size' => 8 * (2 << 20), - 'write_buffer_size' => 4<<20, - 'block_size' => 4096, - 'max_open_files' => 1000, - 'block_restart_interval' => 16, - 'compression' => LEVELDB_SNAPPY_COMPRESSION, - 'comparator' => null, // any callable parameter return 0, -1, 1 - ], array $read_options = [ - 'verify_check_sum' => false, //may be set to true to force checksum verification of all data that is read from the file system on behalf of a particular read. By default, no such verification is done. - 'fill_cache' => true, //When performing a bulk read, the application may set this to false to disable the caching so that the data processed by the bulk read does not end up displacing most of the cached contents. - ], array $write_options = [ - //Only one element named sync in the write option array. By default, each write to leveldb is asynchronous. - 'sync' => false - ]){} - - /** - * @param string $key - * @param array $read_options - * - * @return string|false - */ - public function get($key, array $read_options = []){} - - /** - * Alias of LevelDB::put() - * - * @param string $key - * @param string $value - * @param array $write_options - */ - public function set($key, $value, array $write_options = []){} - - /** - * @param string $key - * @param string $value - * @param array $write_options - */ - public function put($key, $value, array $write_options = []){} - - /** - * @param string $key - * @param array $write_options - * - * @return bool - */ - public function delete($key, array $write_options = []){} - - /** - * Executes all of the operations added in the write batch. - * - * @param LevelDBWriteBatch $batch - * @param array $write_options - */ - public function write(LevelDBWriteBatch $batch, array $write_options = []){} - - /** - * Valid properties: - * - leveldb.stats: returns the status of the entire db - * - leveldb.num-files-at-level: returns the number of files for each level. For example, you can use leveldb.num-files-at-level0 the number of files for zero level. - * - leveldb.sstables: returns current status of sstables - * - * @param string $name - * - * @return mixed - */ - public function getProperty($name){} - - public function getApproximateSizes($start, $limit){} - - public function compactRange($start, $limit){} - - public function close(){} - - /** - * @param array $options - * - * @return LevelDBIterator - */ - public function getIterator(array $options = []){} - - /** - * @return LevelDBSnapshot - */ - public function getSnapshot(){} - - static public function destroy($name, array $options = []){} - - static public function repair($name, array $options = []){} +class LevelDB +{ + /** + * @param string $name Path to database + * @param array $options + * @param array $read_options + * @param array $write_options + */ + public function __construct($name, array $options = [ + 'create_if_missing' => true, // if the specified database does not exist will create a new one + 'error_if_exists' => false, // if the opened database exists will throw exception + 'paranoid_checks' => false, + 'block_cache_size' => 8 * (2 << 20), + 'write_buffer_size' => 4 << 20, + 'block_size' => 4096, + 'max_open_files' => 1000, + 'block_restart_interval' => 16, + 'compression' => LEVELDB_SNAPPY_COMPRESSION, + 'comparator' => null, // any callable parameter return 0, -1, 1 + ], array $read_options = [ + 'verify_check_sum' => false, //may be set to true to force checksum verification of all data that is read from the file system on behalf of a particular read. By default, no such verification is done. + 'fill_cache' => true, //When performing a bulk read, the application may set this to false to disable the caching so that the data processed by the bulk read does not end up displacing most of the cached contents. + ], array $write_options = [ + //Only one element named sync in the write option array. By default, each write to leveldb is asynchronous. + 'sync' => false + ]) {} + + /** + * @param string $key + * @param array $read_options + * + * @return string|false + */ + public function get($key, array $read_options = []) {} + + /** + * Alias of LevelDB::put() + * + * @param string $key + * @param string $value + * @param array $write_options + */ + public function set($key, $value, array $write_options = []) {} + + /** + * @param string $key + * @param string $value + * @param array $write_options + */ + public function put($key, $value, array $write_options = []) {} + + /** + * @param string $key + * @param array $write_options + * + * @return bool + */ + public function delete($key, array $write_options = []) {} + + /** + * Executes all of the operations added in the write batch. + * + * @param LevelDBWriteBatch $batch + * @param array $write_options + */ + public function write(LevelDBWriteBatch $batch, array $write_options = []) {} + + /** + * Valid properties: + * - leveldb.stats: returns the status of the entire db + * - leveldb.num-files-at-level: returns the number of files for each level. For example, you can use leveldb.num-files-at-level0 the number of files for zero level. + * - leveldb.sstables: returns current status of sstables + * + * @param string $name + * + * @return mixed + */ + public function getProperty($name) {} + + public function getApproximateSizes($start, $limit) {} + + public function compactRange($start, $limit) {} + + public function close() {} + + /** + * @param array $options + * + * @return LevelDBIterator + */ + public function getIterator(array $options = []) {} + + /** + * @return LevelDBSnapshot + */ + public function getSnapshot() {} + + public static function destroy($name, array $options = []) {} + + public static function repair($name, array $options = []) {} } -class LevelDBIterator implements Iterator{ - - public function __construct(LevelDB $db, array $read_options = []){} - - public function valid(){} +class LevelDBIterator implements Iterator +{ + public function __construct(LevelDB $db, array $read_options = []) {} - public function rewind(){} + public function valid() {} - public function last(){} + public function rewind() {} - public function seek($key){} + public function last() {} - public function next(){} + public function seek($key) {} - public function prev(){} + public function next() {} - public function key(){} + public function prev() {} - public function current(){} + public function key() {} - public function getError(){} + public function current() {} - public function destroy(){} + public function getError() {} + public function destroy() {} } -class LevelDBWriteBatch{ - public function __construct(){} +class LevelDBWriteBatch +{ + public function __construct() {} - public function set($key, $value, array $write_options = []){} + public function set($key, $value, array $write_options = []) {} - public function put($key, $value, array $write_options = []){} + public function put($key, $value, array $write_options = []) {} - public function delete($key, array $write_options = []){} + public function delete($key, array $write_options = []) {} - public function clear(){} + public function clear() {} } -class LevelDBSnapshot{ - public function __construct(LevelDB $db){} - - public function release(){} +class LevelDBSnapshot +{ + public function __construct(LevelDB $db) {} + public function release() {} } -class LevelDBException extends Exception{ - -} +class LevelDBException extends Exception {} diff --git a/libevent/libevent.php b/libevent/libevent.php index 2d8687859..06792ef79 100644 --- a/libevent/libevent.php +++ b/libevent/libevent.php @@ -8,7 +8,6 @@ // PHP Libevent extension documentation: // https://php.net/libevent - // Event flags /** @@ -62,7 +61,6 @@ */ define('EV_PERSIST', 16); - // Event loop modes /** @@ -82,7 +80,6 @@ */ define('EVLOOP_NONBLOCK', 2); - // Buffered event error codes (second argument in buffer's error-callback) /** @@ -113,9 +110,6 @@ */ define('EVBUFFER_TIMEOUT', 64); - - - /** *

    Create and initialize new event base

    * @@ -125,7 +119,7 @@ * * @return resource|false returns valid event base resource on success or FALSE on error. */ -function event_base_new(){} +function event_base_new() {} /** *

    Destroy event base

    @@ -250,7 +244,6 @@ function event_base_set($event, $base) {} */ function event_base_priority_init($event_base, $npriorities) {} - /** *

    Creates and returns a new event resource.

    *

    (PECL libevent >= 0.0.1)

    @@ -370,7 +363,6 @@ function event_set($event, $fd, $events, $callback, $arg = null) {} */ function event_del($event) {} - /** *

    Create new buffered event

    *

    (PECL libevent >= 0.0.1)

    @@ -609,7 +601,6 @@ function event_buffer_fd_set($bevent, $fd) {} */ function event_buffer_set_callback($bevent, $readcb, $writecb, $errorcb, $arg = null) {} - /** *

    Alias of {@link event_new}().

    * @@ -693,5 +684,4 @@ function event_timer_add($event, $timeout = -1) {} */ function event_timer_del($event) {} - // End of PECL libevent v.0.0.4 diff --git a/libsodium/libsodium.php b/libsodium/libsodium.php index 01c0abff9..b8866f61a 100644 --- a/libsodium/libsodium.php +++ b/libsodium/libsodium.php @@ -1,11 +1,11 @@ - * the severity of the error (one of the following constants: - * LIBXML_ERR_WARNING, - * LIBXML_ERR_ERROR or - * LIBXML_ERR_FATAL) - *

    - * @var int - */ - public int $level; - /** - *

    - * The error's code. - *

    - * @var int - */ - public int $code; - /** - *

    - * The column where the error occurred. - *

    - *

    Note: - *

    - * This property isn't entirely implemented in libxml and therefore - * 0 is often returned. - *

    - * @var int - */ - public int $column; - /** - *

    - * The error message, if any. - *

    - * @var string - */ - public string $message; - /** - *

    The filename, or empty if the XML was loaded from a string.

    - * @var string - */ - public string $file; - /** - *

    - * The line where the error occurred. - *

    - * @var int - */ - public int $line; - +class LibXMLError +{ + /** + *

    + * the severity of the error (one of the following constants: + * LIBXML_ERR_WARNING, + * LIBXML_ERR_ERROR or + * LIBXML_ERR_FATAL) + *

    + * @var int + */ + public int $level; + /** + *

    + * The error's code. + *

    + * @var int + */ + public int $code; + /** + *

    + * The column where the error occurred. + *

    + *

    Note: + *

    + * This property isn't entirely implemented in libxml and therefore + * 0 is often returned. + *

    + * @var int + */ + public int $column; + /** + *

    + * The error message, if any. + *

    + * @var string + */ + public string $message; + /** + *

    The filename, or empty if the XML was loaded from a string.

    + * @var string + */ + public string $file; + /** + *

    + * The line where the error occurred. + *

    + * @var int + */ + public int $line; } /** @@ -71,7 +71,7 @@ class LibXMLError { *

    * @return void No value is returned. */ -function libxml_set_streams_context ($context):void {} +function libxml_set_streams_context($context): void {} /** * Disable libxml errors and allow user to fetch error information as needed @@ -82,7 +82,7 @@ function libxml_set_streams_context ($context):void {} * @return bool This function returns the previous value of * use_errors. */ -function libxml_use_internal_errors (?bool $use_errors = false): bool {} +function libxml_use_internal_errors(?bool $use_errors = false): bool {} /** * Retrieve last error from libxml @@ -91,15 +91,14 @@ function libxml_use_internal_errors (?bool $use_errors = false): bool {} * buffer, FALSE otherwise. */ #[Pure] -function libxml_get_last_error (): LibXMLError|false -{} +function libxml_get_last_error(): LibXMLError|false {} /** * Clear libxml error buffer * @link https://php.net/manual/en/function.libxml-clear-errors.php * @return void No value is returned. */ -function libxml_clear_errors (): void {} +function libxml_clear_errors(): void {} /** * Retrieve array of errors @@ -108,8 +107,7 @@ function libxml_clear_errors (): void {} * errors in the buffer, or an empty array otherwise. */ #[Pure] -function libxml_get_errors (): array -{} +function libxml_get_errors(): array {} /** * Disable the ability to load external entities @@ -123,8 +121,7 @@ function libxml_get_errors (): array * @since 5.2.11 */ #[Deprecated(since: "8.0")] -function libxml_disable_entity_loader (bool $disable = true): bool -{} +function libxml_disable_entity_loader(bool $disable = true): bool {} /** * Changes the default external entity loader @@ -138,94 +135,93 @@ function libxml_disable_entity_loader (bool $disable = true): bool * @return bool * @since 5.4 */ -function libxml_set_external_entity_loader (?callable $resolver_function): bool {} - +function libxml_set_external_entity_loader(?callable $resolver_function): bool {} /** * libxml version like 20605 or 20617 * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_VERSION', 20901); +define('LIBXML_VERSION', 20901); /** * libxml version like 2.6.5 or 2.6.17 * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_DOTTED_VERSION', "2.9.1"); -define ('LIBXML_LOADED_VERSION', 20901); +define('LIBXML_DOTTED_VERSION', "2.9.1"); +define('LIBXML_LOADED_VERSION', 20901); /** * Substitute entities * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_NOENT', 2); +define('LIBXML_NOENT', 2); /** * Load the external subset * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_DTDLOAD', 4); +define('LIBXML_DTDLOAD', 4); /** * Default DTD attributes * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_DTDATTR', 8); +define('LIBXML_DTDATTR', 8); /** * Validate with the DTD * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_DTDVALID', 16); +define('LIBXML_DTDVALID', 16); /** * Suppress error reports * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_NOERROR', 32); +define('LIBXML_NOERROR', 32); /** * Suppress warning reports * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_NOWARNING', 64); +define('LIBXML_NOWARNING', 64); /** * Remove blank nodes * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_NOBLANKS', 256); +define('LIBXML_NOBLANKS', 256); /** * Implement XInclude substitution * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_XINCLUDE', 1024); +define('LIBXML_XINCLUDE', 1024); /** * Remove redundant namespaces declarations * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_NSCLEAN', 8192); +define('LIBXML_NSCLEAN', 8192); /** * Merge CDATA as text nodes * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_NOCDATA', 16384); +define('LIBXML_NOCDATA', 16384); /** * Disable network access when loading documents * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_NONET', 2048); +define('LIBXML_NONET', 2048); /** * Sets XML_PARSE_PEDANTIC flag, which enables pedentic error reporting. * @link https://php.net/manual/en/libxml.constants.php * @since 5.4 */ -define ('LIBXML_PEDANTIC', 128); +define('LIBXML_PEDANTIC', 128); /** * Activate small nodes allocation optimization. This may speed up your @@ -235,7 +231,7 @@ function libxml_set_external_entity_loader (?callable $resolver_function): bool *

    * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_COMPACT', 65536); +define('LIBXML_COMPACT', 65536); /** * Allows line numbers greater than 65535 to be reported correctly. @@ -244,8 +240,7 @@ function libxml_set_external_entity_loader (?callable $resolver_function): bool *

    * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_BIGLINES', 65535); - +define('LIBXML_BIGLINES', 65535); /** * Drop the XML declaration when saving a document @@ -254,7 +249,7 @@ function libxml_set_external_entity_loader (?callable $resolver_function): bool *

    * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_NOXMLDECL', 2); +define('LIBXML_NOXMLDECL', 2); /** * Sets XML_PARSE_HUGE flag, which relaxes any hardcoded limit from the parser. This affects @@ -265,7 +260,7 @@ function libxml_set_external_entity_loader (?callable $resolver_function): bool *

    * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_PARSEHUGE', 524288); +define('LIBXML_PARSEHUGE', 524288); /** * Expand empty tags (e.g. <br/> to @@ -277,7 +272,7 @@ function libxml_set_external_entity_loader (?callable $resolver_function): bool *

    * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_NOEMPTYTAG', 4); +define('LIBXML_NOEMPTYTAG', 4); /** * Create default/fixed value nodes during XSD schema validation @@ -286,7 +281,7 @@ function libxml_set_external_entity_loader (?callable $resolver_function): bool *

    * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_SCHEMA_CREATE', 1); +define('LIBXML_SCHEMA_CREATE', 1); /** * Sets HTML_PARSE_NOIMPLIED flag, which turns off the @@ -296,7 +291,7 @@ function libxml_set_external_entity_loader (?callable $resolver_function): bool *

    * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_HTML_NOIMPLIED', 8192); +define('LIBXML_HTML_NOIMPLIED', 8192); /** * Sets HTML_PARSE_NODEFDTD flag, which prevents a default doctype @@ -306,30 +301,30 @@ function libxml_set_external_entity_loader (?callable $resolver_function): bool *

    * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_HTML_NODEFDTD', 4); +define('LIBXML_HTML_NODEFDTD', 4); /** * No errors * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_ERR_NONE', 0); +define('LIBXML_ERR_NONE', 0); /** * A simple warning * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_ERR_WARNING', 1); +define('LIBXML_ERR_WARNING', 1); /** * A recoverable error * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_ERR_ERROR', 2); +define('LIBXML_ERR_ERROR', 2); /** * A fatal error * @link https://php.net/manual/en/libxml.constants.php */ -define ('LIBXML_ERR_FATAL', 3); +define('LIBXML_ERR_FATAL', 3); // End of libxml v. diff --git a/lua/lua.php b/lua/lua.php index 9d22ab6ca..f6bbb377e 100644 --- a/lua/lua.php +++ b/lua/lua.php @@ -6,13 +6,14 @@ /** * @link https://secure.php.net/manual/en/class.lua.php */ -class Lua { +class Lua +{ /** * @var string * * @link https://secure.php.net/manual/en/class.lua.php#lua.constants.lua-version */ - const LUA_VERSION = '5.1.4'; + public const LUA_VERSION = '5.1.4'; /** * @param null|string $lua_script_file @@ -76,5 +77,3 @@ public function getVersion(): string {} */ public function registerCallback(string $name, callable $function) {} } - -?> diff --git a/lzf/lzf.php b/lzf/lzf.php index 4dfcb2857..566960a5b 100644 --- a/lzf/lzf.php +++ b/lzf/lzf.php @@ -11,7 +11,7 @@ * * @since 0.1.0 */ -function lzf_compress($data) { } +function lzf_compress($data) {} /** * Decompresses the given data string containing lzf encoded data. @@ -24,7 +24,7 @@ function lzf_compress($data) { } * * @since 0.1.0 */ -function lzf_decompress($data) { } +function lzf_decompress($data) {} /** * Determines what was LZF extension optimized for during compilation. @@ -35,4 +35,4 @@ function lzf_decompress($data) { } * * @since 1.0.0 */ -function lzf_optimized_for() { } +function lzf_optimized_for() {} diff --git a/mailparse/mailparse.php b/mailparse/mailparse.php index 709ef8069..ff643a98f 100644 --- a/mailparse/mailparse.php +++ b/mailparse/mailparse.php @@ -12,7 +12,7 @@ * @return string Returns one of the character encodings supported by the * {@link https://php.net/manual/en/ref.mbstring.php mbstring} module. */ -function mailparse_determine_best_xfer_encoding ($fp) {} +function mailparse_determine_best_xfer_encoding($fp) {} /** * (PECL mailparse >= 0.9.0)
    @@ -20,7 +20,7 @@ function mailparse_determine_best_xfer_encoding ($fp) {} * @link https://php.net/manual/en/function.mailparse-msg-create.php * @return resource Returns a handle that can be used to parse a message. */ -function mailparse_msg_create () {} +function mailparse_msg_create() {} /** * (PECL mailparse >= 0.9.0)
    @@ -51,7 +51,7 @@ function mailparse_msg_create () {} * Returns FALSE on error. *

    */ -function mailparse_msg_extract_part_file ($mimemail, $filename, $callbackfunc) {} +function mailparse_msg_extract_part_file($mimemail, $filename, $callbackfunc) {} /** * (PECL mailparse >= 0.9.0)
    @@ -64,7 +64,7 @@ function mailparse_msg_extract_part_file ($mimemail, $filename, $callbackfunc) { * @param callable $callbackfunc [optional] * @return void */ -function mailparse_msg_extract_part ($mimemail, $msgbody, $callbackfunc) {} +function mailparse_msg_extract_part($mimemail, $msgbody, $callbackfunc) {} /** * (PECL mailparse >= 0.9.0)
    @@ -77,7 +77,7 @@ function mailparse_msg_extract_part ($mimemail, $msgbody, $callbackfunc) {} * @param callable $callbackfunc [optional] * @return string */ -function mailparse_msg_extract_whole_part_file ($mimemail, $filename, $callbackfunc) {} +function mailparse_msg_extract_whole_part_file($mimemail, $filename, $callbackfunc) {} /** * (PECL mailparse >= 0.9.0)
    @@ -90,7 +90,7 @@ function mailparse_msg_extract_whole_part_file ($mimemail, $filename, $callbackf *

    * @return bool Returns TRUE on success or FALSE on failure. */ -function mailparse_msg_free ($mimemail) {} +function mailparse_msg_free($mimemail) {} /** * (PECL mailparse >= 0.9.0)
    @@ -101,7 +101,7 @@ function mailparse_msg_free ($mimemail) {} *

    * @return array */ -function mailparse_msg_get_part_data ($mimemail) {} +function mailparse_msg_get_part_data($mimemail) {} /** * (PECL mailparse >= 0.9.0)
    @@ -113,7 +113,7 @@ function mailparse_msg_get_part_data ($mimemail) {} * @param string $mimesection * @return resource */ -function mailparse_msg_get_part ($mimemail, $mimesection) {} +function mailparse_msg_get_part($mimemail, $mimesection) {} /** * (PECL mailparse >= 0.9.0)
    @@ -124,7 +124,7 @@ function mailparse_msg_get_part ($mimemail, $mimesection) {} *

    * @return array */ -function mailparse_msg_get_structure ($mimemail) {} +function mailparse_msg_get_structure($mimemail) {} /** * (PECL mailparse >= 0.9.0)
    @@ -135,7 +135,7 @@ function mailparse_msg_get_structure ($mimemail) {} *

    * @return resource|false Returns a MIME resource representing the structure, or FALSE on error. */ -function mailparse_msg_parse_file ($filename) {} +function mailparse_msg_parse_file($filename) {} /** * (PECL mailparse >= 0.9.0)
    @@ -148,7 +148,7 @@ function mailparse_msg_parse_file ($filename) {} * @param string $data * @return bool Returns TRUE on success or FALSE on failure. */ -function mailparse_msg_parse ($mimemail, $data) {} +function mailparse_msg_parse($mimemail, $data) {} /** * (PECL mailparse >= 0.9.0)
    @@ -176,7 +176,7 @@ function mailparse_msg_parse ($mimemail, $data) {} * * */ -function mailparse_rfc822_parse_addresses ($addresses) {} +function mailparse_rfc822_parse_addresses($addresses) {} /** * (PECL mailparse >= 0.9.0)
    @@ -193,7 +193,7 @@ function mailparse_rfc822_parse_addresses ($addresses) {} *

    * @return bool Returns TRUE on success or FALSE on failure. */ -function mailparse_stream_encode ($sourcefp, $destfp, $encoding) {} +function mailparse_stream_encode($sourcefp, $destfp, $encoding) {} /** * (PECL mailparse >= 0.9.0)
    @@ -219,11 +219,10 @@ function mailparse_stream_encode ($sourcefp, $destfp, $encoding) {} * The first filename entry is the message body. The next entries are the decoded uuencoded files. *

    */ -function mailparse_uudecode_all ($fp) {} +function mailparse_uudecode_all($fp) {} -define ('MAILPARSE_EXTRACT_OUTPUT', 0); -define ('MAILPARSE_EXTRACT_STREAM', 1); -define ('MAILPARSE_EXTRACT_RETURN', 2); +define('MAILPARSE_EXTRACT_OUTPUT', 0); +define('MAILPARSE_EXTRACT_STREAM', 1); +define('MAILPARSE_EXTRACT_RETURN', 2); // End of mailparse v. -?> diff --git a/mapscript/mapscript.php b/mapscript/mapscript.php index f1c085541..3d4ee569a 100644 --- a/mapscript/mapscript.php +++ b/mapscript/mapscript.php @@ -505,7 +505,7 @@ final public function removeMetaData($name) {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Set the :ref:`expression ` string for the class @@ -543,7 +543,6 @@ final public function settext($text) {} * @return int */ final public function updateFromString($snippet) {} - } /** @@ -605,7 +604,6 @@ final public function setFilter($expression) {} * @return int */ final public function setGroup($expression) {} - } /** @@ -649,7 +647,6 @@ final public function toHex() {} * @return int */ final public function setHex($hex) {} - } final class errorObj @@ -670,7 +667,6 @@ final class errorObj * @var string */ public $routine; - } /** @@ -728,8 +724,7 @@ final class gridObj * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} - + final public function set($property_name, $new_value) {} } /** @@ -784,7 +779,6 @@ final public function remove($key) {} * @return int */ final public function set($key, $value) {} - } /** @@ -879,7 +873,6 @@ final public function saveImage($filename, mapObj $oMap) {} * @return string */ final public function saveWebImage() {} - } final class labelcacheMemberObj @@ -946,7 +939,6 @@ final class labelcacheMemberObj * @var int */ public $tileindex; - } final class labelcacheObj @@ -958,7 +950,6 @@ final class labelcacheObj * @return bool */ final public function freeCache() {} - } /** @@ -1144,9 +1135,6 @@ final class labelObj */ public $wrap; - /** - * - */ final public function __construct() {} /** @@ -1253,7 +1241,7 @@ final public function removeBinding($labelbinding) {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Set the attribute binding for a specified label property. @@ -1292,7 +1280,6 @@ final public function setText($text) {} * @return int */ final public function updateFromString($snippet) {} - } /** @@ -1673,7 +1660,7 @@ final public function getClass($classIndex) {} * @param $numclasses * @return int */ - final public function getClassIndex( $shape, $classgroup, $numclasses) {} + final public function getClassIndex($shape, $classgroup, $numclasses) {} /** * Returns the layer's data extents or NULL on error. @@ -1974,7 +1961,7 @@ final public function removeMetaData($name) {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Changes the connectiontype of the layer and recreates the vtable @@ -2055,7 +2042,6 @@ final public function setWKTProjection($proj_params) {} * @return int */ final public function updateFromString($snippet) {} - } /** @@ -2160,7 +2146,7 @@ final public function free() {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Update a legend from a string snippet. Returns MS_SUCCESS/MS_FAILURE. @@ -2169,7 +2155,6 @@ final public function set($property_name, $new_value) {} * @return int */ final public function updateFromString($snippet) {} - } final class lineObj @@ -2181,9 +2166,6 @@ final class lineObj */ public $numpoints; - /** - * - */ final public function __construct() {} /** @@ -2245,7 +2227,6 @@ final public function point($i) {} * @return int */ final public function project(projectionObj $in, projectionObj $out) {} - } final class mapObj @@ -2879,7 +2860,7 @@ final public function queryByFeatures($slayer) {} * @param $addtoquery * @return int */ - final public function queryByIndex( $layerindex, $tileindex, $shapeindex, $addtoquery) {} + final public function queryByIndex($layerindex, $tileindex, $shapeindex, $addtoquery) {} /** * Query all selected layers in map at point location specified in @@ -3047,7 +3028,7 @@ final public function getOutputFormat($index) {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Set the map center to the given map point. @@ -3225,7 +3206,6 @@ final public function zoomRectangle(rectObj $oPixelExt, $nImageWidth, $nImageHei * @return int */ final public function zoomScale($nScaleDenom, pointObj $oPixelPos, $nImageWidth, $nImageHeight, rectObj $oGeorefExt, rectObj $oMaxGeorefExt) {} - } /** @@ -3288,7 +3268,7 @@ final public function getOption($property_name) {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Add or Modify the format option list. return true on success. @@ -3309,7 +3289,6 @@ final public function setOption($property_name, $new_value) {} * @return int */ final public function validate() {} - } final class OwsrequestObj @@ -3331,7 +3310,6 @@ final class OwsrequestObj /** * request = ms_newOwsrequestObj(); * Create a new ows request object. - * */ final public function __construct() {} @@ -3394,7 +3372,6 @@ final public function loadParams() {} * @return int */ final public function setParameter($name, $value) {} - } final class pointObj @@ -3423,9 +3400,6 @@ final class pointObj */ public $m; - /** - * - */ final public function __construct() {} /** @@ -3512,7 +3486,6 @@ final public function setXY($x, $y, $m) {} * @return int */ final public function setXYZ($x, $y, $z, $m) {} - } final class projectionObj @@ -3549,7 +3522,6 @@ final public function ms_newProjectionObj($projectionString) {} * @return int */ final public function getUnits() {} - } /** @@ -3603,7 +3575,7 @@ final public function free() {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Update a queryMap object from a string snippet. Returns @@ -3613,7 +3585,6 @@ final public function set($property_name, $new_value) {} * @return int */ final public function updateFromString($snippet) {} - } /** @@ -3644,7 +3615,6 @@ final class rectObj /** * .. note:: the members (minx, miny, maxx ,maxy) are initialized to -1; - * */ final public function __construct() {} @@ -3696,7 +3666,7 @@ final public function project(projectionObj $in, projectionObj $out) {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Set the rectangle extents. @@ -3708,7 +3678,6 @@ final public function set($property_name, $new_value) {} * @return void */ final public function setextent($minx, $miny, $maxx, $maxy) {} - } /** @@ -3800,7 +3769,7 @@ final public function free() {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Update a referenceMap object from a string snippet. @@ -3810,7 +3779,6 @@ final public function set($property_name, $new_value) {} * @return int */ final public function updateFromString($snippet) {} - } final class resultObj @@ -3849,7 +3817,6 @@ final class resultObj * @param int $shapeindex */ final public function __construct($shapeindex) {} - } /** @@ -3955,7 +3922,7 @@ final public function free() {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Sets the imagecolor property (baclground) of the object. @@ -3975,7 +3942,6 @@ final public function setImageColor($red, $green, $blue) {} * @return int */ final public function updateFromString($snippet) {} - } final class shapefileObj @@ -4092,7 +4058,6 @@ final public function getShape($i) {} * @return shapeObj */ final public function getTransformed(mapObj $map, $i) {} - } final class shapeObj @@ -4385,7 +4350,7 @@ final public function project(projectionObj $in, projectionObj $out) {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Updates the bounds property of the shape. @@ -4464,7 +4429,6 @@ final public function union(shapeObj $shape) {} * @return int */ final public function within(shapeObj $shape2) {} - } /** @@ -4617,7 +4581,6 @@ final public function free() {} final public function getBinding($stylebinding) {} /** - * * @return string */ final public function getGeomTransform() {} @@ -4640,7 +4603,7 @@ final public function removeBinding($stylebinding) {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Set the attribute binding for a specfiled style property. @@ -4657,7 +4620,6 @@ final public function set($property_name, $new_value) {} final public function setBinding($stylebinding, $value) {} /** - * * @param string $value * @return int */ @@ -4670,7 +4632,6 @@ final public function setGeomTransform($value) {} * @return int */ final public function updateFromString($snippet) {} - } final class symbolObj @@ -4809,7 +4770,7 @@ final public function getPointsArray() {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Loads a pixmap symbol specified by the filename. @@ -4844,7 +4805,6 @@ final public function setPattern(array $int) {} * @return int */ final public function setPoints(array $double) {} - } /** @@ -4972,7 +4932,7 @@ final public function free() {} * @param $new_value * @return int */ - final public function set($property_name, $new_value) {} + final public function set($property_name, $new_value) {} /** * Update a web object from a string snippet. Returns @@ -4982,5 +4942,4 @@ final public function set($property_name, $new_value) {} * @return int */ final public function updateFromString($snippet) {} - } diff --git a/mbstring/mbstring.php b/mbstring/mbstring.php index 0641a57dd..446dd6e21 100644 --- a/mbstring/mbstring.php +++ b/mbstring/mbstring.php @@ -7,7 +7,6 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable; use JetBrains\PhpStorm\Pure; - /** * Perform case folding on a string * @link https://php.net/manual/en/function.mb-convert-case.php @@ -25,8 +24,7 @@ * way specified by mode. */ #[Pure] -function mb_convert_case (string $string, int $mode, ?string $encoding): string -{} +function mb_convert_case(string $string, int $mode, ?string $encoding): string {} /** * Make a string uppercase @@ -38,8 +36,7 @@ function mb_convert_case (string $string, int $mode, ?string $encoding): string * @return string str with all alphabetic characters converted to uppercase. */ #[Pure] -function mb_strtoupper (string $string, ?string $encoding): string -{} +function mb_strtoupper(string $string, ?string $encoding): string {} /** * Make a string lowercase @@ -51,8 +48,7 @@ function mb_strtoupper (string $string, ?string $encoding): string * @return string str with all alphabetic characters converted to lowercase. */ #[Pure] -function mb_strtolower (string $string, ?string $encoding): string -{} +function mb_strtolower(string $string, ?string $encoding): string {} /** * Set/Get current language @@ -76,8 +72,7 @@ function mb_strtolower (string $string, ?string $encoding): string * name as a string. If no language is set previously, it then returns * false. */ -function mb_language (?string $language): string|bool -{} +function mb_language(?string $language): string|bool {} /** * Set/Get internal character encoding @@ -93,8 +88,7 @@ function mb_language (?string $language): string|bool * If encoding is omitted, then * the current character encoding name is returned. */ -function mb_internal_encoding (?string $encoding): string|bool -{} +function mb_internal_encoding(?string $encoding): string|bool {} /** * Detect HTTP input character encoding @@ -110,8 +104,7 @@ function mb_internal_encoding (?string $encoding): string|bool * HTTP input, it returns false. */ #[Pure] -function mb_http_input (?string $type): array|string|false -{} +function mb_http_input(?string $type): array|string|false {} /** * Set/Get HTTP output character encoding @@ -131,8 +124,7 @@ function mb_http_input (?string $type): array|string|false * character encoding. Otherwise, * true on success or false on failure. */ -function mb_http_output (?string $encoding): string|bool -{} +function mb_http_output(?string $encoding): string|bool {} /** * Set/Get character encoding detection order @@ -177,8 +169,7 @@ function mb_http_output (?string $encoding): string|bool * When getting the encoding detection order, an ordered array * of the encodings is returned. */ -function mb_detect_order (array|string|null $encoding = null): array|bool -{} +function mb_detect_order(array|string|null $encoding = null): array|bool {} /** * Set/Get substitution character @@ -195,8 +186,7 @@ function mb_detect_order (array|string|null $encoding = null): array|bool * If substchar is not set, it returns the Unicode value, * or "none" or "long". */ -function mb_substitute_character (string|int|null $substitute_character = null): string|int|bool -{} +function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool {} /** * Parse GET/POST/COOKIE data and set global variable @@ -210,8 +200,7 @@ function mb_substitute_character (string|int|null $substitute_character = null): * @return bool true on success or false on failure. */ #[PhpStormStubsElementAvailable(to: '7.4')] -function mb_parse_str (string $string, &$result): bool -{} +function mb_parse_str(string $string, &$result): bool {} /** * Parse GET/POST/COOKIE data and set global variable @@ -225,8 +214,7 @@ function mb_parse_str (string $string, &$result): bool * @return bool true on success or false on failure. */ #[PhpStormStubsElementAvailable('8.0')] -function mb_parse_str (string $string, &$result): bool -{} +function mb_parse_str(string $string, &$result): bool {} /** * Callback function converts character encoding in output buffer @@ -240,8 +228,7 @@ function mb_parse_str (string $string, &$result): bool * @return string The converted string. */ #[Pure] -function mb_output_handler (string $string, int $status): string -{} +function mb_output_handler(string $string, int $status): string {} /** * Get MIME charset string @@ -253,8 +240,7 @@ function mb_output_handler (string $string, int $status): string * encoding. */ #[Pure] -function mb_preferred_mime_name (string $encoding): string|false -{} +function mb_preferred_mime_name(string $encoding): string|false {} /** * Get string length @@ -269,8 +255,7 @@ function mb_preferred_mime_name (string $encoding): string|false * counted as 1. */ #[Pure] -function mb_strlen (string $string, ?string $encoding): int -{} +function mb_strlen(string $string, ?string $encoding): int {} /** * Find position of first occurrence of string in a string @@ -291,8 +276,7 @@ function mb_strlen (string $string, ?string $encoding): int * needle is not found, it returns false. */ #[Pure] -function mb_strpos (string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false -{} +function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false {} /** * Find position of last occurrence of a string in a string @@ -314,8 +298,7 @@ function mb_strpos (string $haystack, string $needle, int $offset = 0, ?string $ * needle is not found, it returns false. */ #[Pure] -function mb_strrpos (string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false -{} +function mb_strrpos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false {} /** * Finds position of first occurrence of a string within another, case insensitive @@ -340,8 +323,7 @@ function mb_strrpos (string $haystack, string $needle, int $offset = 0, ?string * string, or false if needle is not found. */ #[Pure] -function mb_stripos (string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false -{} +function mb_stripos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false {} /** * Finds position of last occurrence of a string within another, case insensitive @@ -367,8 +349,7 @@ function mb_stripos (string $haystack, string $needle, int $offset = 0, ?string * if needle is not found. */ #[Pure] -function mb_strripos (string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false -{} +function mb_strripos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false {} /** * Finds first occurrence of a string within another @@ -396,8 +377,7 @@ function mb_strripos (string $haystack, string $needle, int $offset = 0, ?string * or false if needle is not found. */ #[Pure] -function mb_strstr (string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false -{} +function mb_strstr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false {} /** * Finds the last occurrence of a character in a string within another @@ -425,8 +405,7 @@ function mb_strstr (string $haystack, string $needle, bool $before_needle = fals * or false if needle is not found. */ #[Pure] -function mb_strrchr (string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false -{} +function mb_strrchr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false {} /** * Finds first occurrence of a string within another, case insensitive @@ -454,8 +433,7 @@ function mb_strrchr (string $haystack, string $needle, bool $before_needle = fal * or false if needle is not found. */ #[Pure] -function mb_stristr (string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false -{} +function mb_stristr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false {} /** * Finds the last occurrence of a character in a string within another, case insensitive @@ -483,8 +461,7 @@ function mb_stristr (string $haystack, string $needle, bool $before_needle = fal * or false if needle is not found. */ #[Pure] -function mb_strrichr (string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false -{} +function mb_strrichr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false {} /** * Count the number of substring occurrences @@ -501,8 +478,7 @@ function mb_strrichr (string $haystack, string $needle, bool $before_needle = fa * haystack string. */ #[Pure] -function mb_substr_count (string $haystack, string $needle, ?string $encoding): int -{} +function mb_substr_count(string $haystack, string $needle, ?string $encoding): int {} /** * Get part of string @@ -523,8 +499,7 @@ function mb_substr_count (string $haystack, string $needle, ?string $encoding): * length parameters. */ #[Pure] -function mb_substr (string $string, int $start, ?int $length, ?string $encoding): string -{} +function mb_substr(string $string, int $start, ?int $length, ?string $encoding): string {} /** * Get part of string @@ -545,8 +520,7 @@ function mb_substr (string $string, int $start, ?int $length, ?string $encoding) * length parameters. */ #[Pure] -function mb_strcut (string $string, int $start, ?int $length, ?string $encoding): string -{} +function mb_strcut(string $string, int $start, ?int $length, ?string $encoding): string {} /** * Return width of string @@ -558,8 +532,7 @@ function mb_strcut (string $string, int $start, ?int $length, ?string $encoding) * @return int The width of string str. */ #[Pure] -function mb_strwidth (string $string, ?string $encoding): int -{} +function mb_strwidth(string $string, ?string $encoding): int {} /** * Get truncated string with specified width @@ -583,8 +556,7 @@ function mb_strwidth (string $string, ?string $encoding): int * trimmarker is appended to the return value. */ #[Pure] -function mb_strimwidth (string $string, int $start, int $width, string $trim_marker, ?string $encoding): string -{} +function mb_strimwidth(string $string, int $start, int $width, string $trim_marker, ?string $encoding): string {} /** * Convert character encoding @@ -608,8 +580,7 @@ function mb_strimwidth (string $string, int $start, int $width, string $trim_mar * @return array|string|false The encoded string. */ #[Pure] -function mb_convert_encoding (array|string $string, string $to_encoding, array|string|null $from_encoding = null): array|string|false -{} +function mb_convert_encoding(array|string $string, string $to_encoding, array|string|null $from_encoding = null): array|string|false {} /** * Detect character encoding @@ -635,8 +606,7 @@ function mb_convert_encoding (array|string $string, string $to_encoding, array|s * detected from the given string. */ #[Pure] -function mb_detect_encoding (string $string, array|string|null $encodings = null, bool $strict = false): string|false -{} +function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = false): string|false {} /** * Returns an array of all supported encodings @@ -644,8 +614,7 @@ function mb_detect_encoding (string $string, array|string|null $encodings = null * @return string[] a numerically indexed array. */ #[Pure] -function mb_list_encodings (): array -{} +function mb_list_encodings(): array {} /** * Get aliases of a known encoding type @@ -655,8 +624,7 @@ function mb_list_encodings (): array */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function mb_encoding_aliases (string $encoding) -{} +function mb_encoding_aliases(string $encoding) {} /** * Convert "kana" one from another ("zen-kaku", "han-kaku" and more) @@ -773,8 +741,7 @@ function mb_encoding_aliases (string $encoding) * @return string The converted string. */ #[Pure] -function mb_convert_kana (string $string, string $mode = 'KV', ?string $encoding): string -{} +function mb_convert_kana(string $string, string $mode = 'KV', ?string $encoding): string {} /** * Encode string for MIME header @@ -809,8 +776,7 @@ function mb_convert_kana (string $string, string $mode = 'KV', ?string $encoding * @return string A converted version of the string represented in ASCII. */ #[Pure] -function mb_encode_mimeheader (string $string, ?string $charset, ?string $transfer_encoding, string $newline = "\n", int $indent): string -{} +function mb_encode_mimeheader(string $string, ?string $charset, ?string $transfer_encoding, string $newline = "\n", int $indent): string {} /** * Decode string in MIME header field @@ -821,8 +787,7 @@ function mb_encode_mimeheader (string $string, ?string $charset, ?string $transf * @return string The decoded string in internal character encoding. */ #[Pure] -function mb_decode_mimeheader (string $string): string -{} +function mb_decode_mimeheader(string $string): string {} /** * Convert character code in variable(s) @@ -846,8 +811,7 @@ function mb_decode_mimeheader (string $string): string * @return string|false The character encoding before conversion for success, * or false for failure. */ -function mb_convert_variables (string $to_encoding, array|string $from_encoding, mixed &$var, mixed &...$vars): string|false -{} +function mb_convert_variables(string $to_encoding, array|string $from_encoding, mixed &$var, mixed &...$vars): string|false {} /** * Encode character to HTML numeric string reference @@ -864,8 +828,7 @@ function mb_convert_variables (string $to_encoding, array|string $from_encoding, * @return string The converted string. */ #[Pure] -function mb_encode_numericentity (string $string, array $map, ?string $encoding = null, bool $hex = false): string -{} +function mb_encode_numericentity(string $string, array $map, ?string $encoding = null, bool $hex = false): string {} /** * Decode HTML numeric string reference to character @@ -885,8 +848,7 @@ function mb_encode_numericentity (string $string, array $map, ?string $encoding */ #[Pure] #[PhpStormStubsElementAvailable(to: '7.4')] -function mb_decode_numericentity ($string, array $map, ?string $encoding, $is_hex = false): string|false|null -{} +function mb_decode_numericentity($string, array $map, ?string $encoding, $is_hex = false): string|false|null {} /** * Decode HTML numeric string reference to character @@ -903,8 +865,7 @@ function mb_decode_numericentity ($string, array $map, ?string $encoding, $is_he */ #[Pure] #[PhpStormStubsElementAvailable('8.0')] -function mb_decode_numericentity ($string, array $map, ?string $encoding): string -{} +function mb_decode_numericentity($string, array $map, ?string $encoding): string {} /** * Send encoded mail @@ -935,8 +896,7 @@ function mb_decode_numericentity ($string, array $map, ?string $encoding): strin *

    * @return bool true on success or false on failure. */ -function mb_send_mail (string $to, string $subject, string $message, array|string $additional_headers, ?string $additional_params): bool -{} +function mb_send_mail(string $to, string $subject, string $message, array|string $additional_headers, ?string $additional_params): bool {} /** * Get internal settings of mbstring @@ -956,8 +916,7 @@ function mb_send_mail (string $to, string $subject, string $message, array|strin * is not specified, otherwise a specific type. */ #[Pure] -function mb_get_info (string $type = 'all'): array|string|int|false -{} +function mb_get_info(string $type = 'all'): array|string|int|false {} /** * Check if the string is valid for the specified encoding @@ -973,8 +932,7 @@ function mb_get_info (string $type = 'all'): array|string|int|false * @since 5.1.3 */ #[Pure] -function mb_check_encoding (array|string|null $value = null, ?string $encoding): bool -{} +function mb_check_encoding(array|string|null $value = null, ?string $encoding): bool {} /** * Returns current encoding for multibyte regex as string @@ -985,8 +943,7 @@ function mb_check_encoding (array|string|null $value = null, ?string $encoding): * is NOT changed. If encoding is omitted, then the current character * encoding name for a multibyte regex is returned. */ -function mb_regex_encoding (?string $encoding): string|bool -{} +function mb_regex_encoding(?string $encoding): string|bool {} /** * Set/Get the default options for mbregex functions @@ -997,8 +954,7 @@ function mb_regex_encoding (?string $encoding): string|bool * @return string The previous options. If options is omitted, * it returns the string that describes the current options. */ -function mb_regex_set_options (?string $options): string -{} +function mb_regex_set_options(?string $options): string {} /** * Regular expression match with multibyte support @@ -1014,8 +970,7 @@ function mb_regex_set_options (?string $options): string *

    * @return bool */ -function mb_ereg (string $pattern, string $string, &$matches): bool -{} +function mb_ereg(string $pattern, string $string, &$matches): bool {} /** * Regular expression match ignoring case with multibyte support @@ -1032,8 +987,7 @@ function mb_ereg (string $pattern, string $string, &$matches): bool * @return bool|int */ #[LanguageLevelTypeAware(["8.0" => "bool"], default: "false|int")] -function mb_eregi (string $pattern, string $string, &$matches): bool -{} +function mb_eregi(string $pattern, string $string, &$matches): bool {} /** * Replace regular expression with multibyte support @@ -1064,8 +1018,7 @@ function mb_eregi (string $pattern, string $string, &$matches): bool * @return string|false|null The resultant string on success, or false on error. */ #[Pure] -function mb_ereg_replace (string $pattern, string $replacement, string $string, ?string $options = "msr"): string|false|null -{} +function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = "msr"): string|false|null {} /** * Perform a regular expresssion seach and replace with multibyte support using a callback @@ -1110,8 +1063,7 @@ function mb_ereg_replace (string $pattern, string $replacement, string $string, *

    * @since 5.4.1 */ -function mb_ereg_replace_callback (string $pattern, callable $callback, string $string, ?string $options = "msr"): string|false|null -{} +function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $options = "msr"): string|false|null {} /** * Replace regular expression with multibyte support ignoring case @@ -1131,8 +1083,7 @@ function mb_ereg_replace_callback (string $pattern, callable $callback, string $ * @return string|false|null The resultant string or false on error. */ #[Pure] -function mb_eregi_replace (string $pattern, string $replacement, string $string, ?string $options = "msr"): string|false|null -{} +function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = "msr"): string|false|null {} /** * Split multibyte string using regular expression @@ -1149,8 +1100,7 @@ function mb_eregi_replace (string $pattern, string $replacement, string $string, * @return string[]|false The result as an array. */ #[Pure] -function mb_split (string $pattern, string $string, int $limit = -1): array|false -{} +function mb_split(string $pattern, string $string, int $limit = -1): array|false {} /** * Regular expression match for multibyte string @@ -1166,8 +1116,7 @@ function mb_split (string $pattern, string $string, int $limit = -1): array|fals * @return bool */ #[Pure] -function mb_ereg_match (string $pattern, string $string, ?string $options): bool -{} +function mb_ereg_match(string $pattern, string $string, ?string $options): bool {} /** * Multibyte regular expression match for predefined multibyte string @@ -1181,8 +1130,7 @@ function mb_ereg_match (string $pattern, string $string, ?string $options): bool * @return bool */ #[Pure] -function mb_ereg_search (?string $pattern, ?string $options): bool -{} +function mb_ereg_search(?string $pattern, ?string $options): bool {} /** * Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string @@ -1199,8 +1147,7 @@ function mb_ereg_search (?string $pattern, ?string $options): bool * length in bytes of the match. If an error occurs, FALSE is returned. */ #[Pure] -function mb_ereg_search_pos (?string $pattern, ?string $options): array|false -{} +function mb_ereg_search_pos(?string $pattern, ?string $options): array|false {} /** * Returns the matched part of a multibyte regular expression @@ -1218,8 +1165,7 @@ function mb_ereg_search_pos (?string $pattern, ?string $options): array|false * part as third element, and so on. It returns FALSE on error. */ #[Pure] -function mb_ereg_search_regs (?string $pattern, ?string $options): array|false -{} +function mb_ereg_search_regs(?string $pattern, ?string $options): array|false {} /** * Setup string and regular expression for a multibyte regular expression match @@ -1235,8 +1181,7 @@ function mb_ereg_search_regs (?string $pattern, ?string $options): array|false *

    * @return bool */ -function mb_ereg_search_init (string $string, ?string $pattern, ?string $options): bool -{} +function mb_ereg_search_init(string $string, ?string $pattern, ?string $options): bool {} /** * Retrieve the result from the last multibyte regular expression match @@ -1249,8 +1194,7 @@ function mb_ereg_search_init (string $string, ?string $pattern, ?string $options * brackets, and so on. It returns FALSE on error; */ #[Pure] -function mb_ereg_search_getregs (): array|false -{} +function mb_ereg_search_getregs(): array|false {} /** * Returns start point for next regular expression match @@ -1259,8 +1203,7 @@ function mb_ereg_search_getregs (): array|false */ #[Pure] #[Deprecated(since: '7.3')] -function mb_ereg_search_getpos (): int -{} +function mb_ereg_search_getpos(): int {} /** * Set start point of next regular expression match @@ -1271,8 +1214,7 @@ function mb_ereg_search_getpos (): int * @return bool */ #[Pure] -function mb_ereg_search_setpos (int $offset): bool -{} +function mb_ereg_search_setpos(int $offset): bool {} /** * @param $encoding [optional] @@ -1280,7 +1222,7 @@ function mb_ereg_search_setpos (int $offset): bool * @removed 8.0 */ #[Deprecated(replacement: "mb_regex_encoding(%parametersList%)", since: "7.3")] -function mbregex_encoding ($encoding) {} +function mbregex_encoding($encoding) {} /** * @param string $pattern @@ -1289,8 +1231,8 @@ function mbregex_encoding ($encoding) {} * @see mb_ereg * @removed 8.0 */ -#[Deprecated(replacement: 'mb_ereg(%parametersList%)',since: '7.3')] -function mbereg (string $pattern, string $string, array &$registers) {} +#[Deprecated(replacement: 'mb_ereg(%parametersList%)', since: '7.3')] +function mbereg(string $pattern, string $string, array &$registers) {} /** * @param string $pattern @@ -1300,7 +1242,7 @@ function mbereg (string $pattern, string $string, array &$registers) {} * @removed 8.0 */ #[Deprecated(replacement: "mb_eregi(%parametersList%)", since: "7.3")] -function mberegi (string $pattern, string $string, array &$registers) {} +function mberegi(string $pattern, string $string, array &$registers) {} /** * @param $pattern @@ -1311,7 +1253,7 @@ function mberegi (string $pattern, string $string, array &$registers) {} * @removed 8.0 */ #[Deprecated(replacement: 'mb_ereg_replace(%parametersList%)', since: '7.3')] -function mbereg_replace ($pattern, $replacement, $string, $option) {} +function mbereg_replace($pattern, $replacement, $string, $option) {} /** * @param $pattern @@ -1323,8 +1265,7 @@ function mbereg_replace ($pattern, $replacement, $string, $option) {} * @removed 8.0 */ #[Deprecated(replacement: "mb_eregi_replace(%parametersList%)", since: "7.3")] -function mberegi_replace ($pattern, $replacement, $string, string $option = "msri"): string -{} +function mberegi_replace($pattern, $replacement, $string, string $option = "msri"): string {} /** * @param $pattern @@ -1334,7 +1275,7 @@ function mberegi_replace ($pattern, $replacement, $string, string $option = "msr * @removed 8.0 */ #[Deprecated(replacement: 'mb_split(%parametersList%)', since: '7.3')] -function mbsplit ($pattern, $string, $limit) {} +function mbsplit($pattern, $string, $limit) {} /** * @param $pattern @@ -1344,7 +1285,7 @@ function mbsplit ($pattern, $string, $limit) {} * @removed 8.0 */ #[Deprecated(replacement: "mb_ereg_match(%parametersList%)", since: "7.3")] -function mbereg_match ($pattern, $string, $option) {} +function mbereg_match($pattern, $string, $option) {} /** * @param $pattern [optional] @@ -1353,7 +1294,7 @@ function mbereg_match ($pattern, $string, $option) {} * @removed 8.0 */ #[Deprecated("use mb_ereg_search instead", replacement: "mb_ereg_search(%parametersList%)", since: "7.3")] -function mbereg_search ($pattern, $option) {} +function mbereg_search($pattern, $option) {} /** * @param $pattern [optional] @@ -1362,7 +1303,7 @@ function mbereg_search ($pattern, $option) {} * @removed 8.0 */ #[Deprecated(replacement: "mb_ereg_search_pos(%parametersList%)", since: "7.3")] -function mbereg_search_pos ($pattern, $option) {} +function mbereg_search_pos($pattern, $option) {} /** * @param $pattern [optional] @@ -1371,7 +1312,7 @@ function mbereg_search_pos ($pattern, $option) {} * @removed 8.0 */ #[Deprecated(replacement: 'mb_ereg_search_regs(%parametersList%)', since: '7.3')] -function mbereg_search_regs ($pattern, $option) {} +function mbereg_search_regs($pattern, $option) {} /** * @param $string @@ -1381,21 +1322,21 @@ function mbereg_search_regs ($pattern, $option) {} * @removed 8.0 */ #[Deprecated(replacement: "mb_ereg_search_init(%parametersList%)", since: "7.3")] -function mbereg_search_init ($string, $pattern, $option) {} +function mbereg_search_init($string, $pattern, $option) {} /** * @see mb_ereg_search_getregs * @removed 8.0 */ #[Deprecated(replacement: 'mb_ereg_search_getregs(%parametersList%)', since: '7.3')] -function mbereg_search_getregs () {} +function mbereg_search_getregs() {} /** * @see mb_ereg_search_getpos * @removed 8.0 */ #[Deprecated(replacement: "mb_ereg_search_getpos()", since: "7.3")] -function mbereg_search_getpos () {} +function mbereg_search_getpos() {} /** * Get a specific character. @@ -1406,8 +1347,7 @@ function mbereg_search_getpos () {} * @since 7.2 */ #[Pure] -function mb_chr (int $codepoint, ?string $encoding): string|false -{} +function mb_chr(int $codepoint, ?string $encoding): string|false {} /** * Get code point of character @@ -1418,8 +1358,7 @@ function mb_chr (int $codepoint, ?string $encoding): string|false * @since 7.2 */ #[Pure] -function mb_ord (string $string, ?string $encoding): int|false -{} +function mb_ord(string $string, ?string $encoding): int|false {} /** * Scrub broken multibyte strings. @@ -1431,8 +1370,7 @@ function mb_ord (string $string, ?string $encoding): int|false */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function mb_scrub (string $string, ?string $encoding): false|string -{} +function mb_scrub(string $string, ?string $encoding): false|string {} /** * @param $position @@ -1440,7 +1378,7 @@ function mb_scrub (string $string, ?string $encoding): false|string */ #[Deprecated(replacement: "mb_ereg_search_setpos(%parametersList%)", since: "7.3")] #[Pure] -function mbereg_search_setpos ($position) {} +function mbereg_search_setpos($position) {} /** * Function performs string splitting to an array of defined size chunks. @@ -1459,24 +1397,23 @@ function mbereg_search_setpos ($position) {} */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function mb_str_split (string $string, int $length = 1, ?string $encoding) -{} +function mb_str_split(string $string, int $length = 1, ?string $encoding) {} /** * @removed 8.0 */ -define ('MB_OVERLOAD_MAIL', 1); +define('MB_OVERLOAD_MAIL', 1); /** * @removed 8.0 */ -define ('MB_OVERLOAD_STRING', 2); +define('MB_OVERLOAD_STRING', 2); /** * @removed 8.0 */ -define ('MB_OVERLOAD_REGEX', 4); -define ('MB_CASE_UPPER', 0); -define ('MB_CASE_LOWER', 1); -define ('MB_CASE_TITLE', 2); +define('MB_OVERLOAD_REGEX', 4); +define('MB_CASE_UPPER', 0); +define('MB_CASE_LOWER', 1); +define('MB_CASE_TITLE', 2); /** * @since 7.3 */ @@ -1504,4 +1441,3 @@ function mb_str_split (string $string, int $length = 1, ?string $encoding) define('MB_ONIGURUMA_VERSION', '6.9.6'); // End of mbstring v. -?> diff --git a/mcrypt/mcrypt.php b/mcrypt/mcrypt.php index d7eaa32d1..2c7e6cba7 100644 --- a/mcrypt/mcrypt.php +++ b/mcrypt/mcrypt.php @@ -14,7 +14,7 @@ * @removed 7.0 */ #[Deprecated(since: "5.5")] -function mcrypt_ecb ($cipher, $key, $data, $mode) {} +function mcrypt_ecb($cipher, $key, $data, $mode) {} /** * Encrypt/decrypt data in CBC mode @@ -28,7 +28,7 @@ function mcrypt_ecb ($cipher, $key, $data, $mode) {} * @removed 7.0 */ #[Deprecated(since: "5.5")] -function mcrypt_cbc ($cipher, $key, $data, $mode, $iv = null) {} +function mcrypt_cbc($cipher, $key, $data, $mode, $iv = null) {} /** * Encrypt/decrypt data in CFB mode @@ -42,7 +42,7 @@ function mcrypt_cbc ($cipher, $key, $data, $mode, $iv = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mcrypt_cfb ($cipher, $key, $data, $mode, $iv = null) {} +function mcrypt_cfb($cipher, $key, $data, $mode, $iv = null) {} /** * Encrypt/decrypt data in OFB mode @@ -56,7 +56,7 @@ function mcrypt_cfb ($cipher, $key, $data, $mode, $iv = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mcrypt_ofb ($cipher, $key, $data, $mode, $iv = null) {} +function mcrypt_ofb($cipher, $key, $data, $mode, $iv = null) {} /** * Get the key size of the specified cipher @@ -66,7 +66,7 @@ function mcrypt_ofb ($cipher, $key, $data, $mode, $iv = null) {} * @return int */ #[Deprecated(since: '7.1')] -function mcrypt_get_key_size ($cipher, $mode) {} +function mcrypt_get_key_size($cipher, $mode) {} /** * Get the block size of the specified cipher @@ -80,7 +80,7 @@ function mcrypt_get_key_size ($cipher, $mode) {} * @return int Gets the block size, as an integer. */ #[Deprecated(since: '7.1')] -function mcrypt_get_block_size ($cipher, $mode) {} +function mcrypt_get_block_size($cipher, $mode) {} /** * Get the name of the specified cipher @@ -93,7 +93,7 @@ function mcrypt_get_block_size ($cipher, $mode) {} * not exist. */ #[Deprecated(since: '7.1')] -function mcrypt_get_cipher_name ($cipher) {} +function mcrypt_get_cipher_name($cipher) {} /** * Creates an initialization vector (IV) from a random source @@ -122,7 +122,7 @@ function mcrypt_get_cipher_name ($cipher) {} * @return string|false the initialization vector, or false on error. */ #[Deprecated(since: '7.1')] -function mcrypt_create_iv ($size, $source = MCRYPT_DEV_URANDOM) {} +function mcrypt_create_iv($size, $source = MCRYPT_DEV_URANDOM) {} /** * Gets an array of all supported ciphers @@ -135,7 +135,7 @@ function mcrypt_create_iv ($size, $source = MCRYPT_DEV_URANDOM) {} * @return array an array with all the supported algorithms. */ #[Deprecated(since: '7.1')] -function mcrypt_list_algorithms ($lib_dir = null) {} +function mcrypt_list_algorithms($lib_dir = null) {} /** * Gets an array of all supported modes @@ -148,7 +148,7 @@ function mcrypt_list_algorithms ($lib_dir = null) {} * @return array an array with all the supported modes. */ #[Deprecated(since: '7.1')] -function mcrypt_list_modes ($lib_dir = null) {} +function mcrypt_list_modes($lib_dir = null) {} /** * Returns the size of the IV belonging to a specific cipher/mode combination @@ -169,7 +169,7 @@ function mcrypt_list_modes ($lib_dir = null) {} * combination zero is returned. */ #[Deprecated(since: '7.1')] -function mcrypt_get_iv_size ($cipher, $mode) {} +function mcrypt_get_iv_size($cipher, $mode) {} /** * Encrypts plaintext with given parameters @@ -210,7 +210,7 @@ function mcrypt_get_iv_size ($cipher, $mode) {} * @return string the encrypted data, as a string. */ #[Deprecated(since: '7.1')] -function mcrypt_encrypt ($cipher, $key, $data, $mode, $iv = null) {} +function mcrypt_encrypt($cipher, $key, $data, $mode, $iv = null) {} /** * Decrypts crypttext with given parameters @@ -243,7 +243,7 @@ function mcrypt_encrypt ($cipher, $key, $data, $mode, $iv = null) {} * @return string the decrypted data as a string. */ #[Deprecated(since: '7.1')] -function mcrypt_decrypt ($cipher, $key, $data, $mode, $iv = null) {} +function mcrypt_decrypt($cipher, $key, $data, $mode, $iv = null) {} /** * Opens the module of the algorithm and the mode to be used @@ -270,7 +270,7 @@ function mcrypt_decrypt ($cipher, $key, $data, $mode, $iv = null) {} * @return resource|false Normally it returns an encryption descriptor, or false on error. */ #[Deprecated(since: '7.1')] -function mcrypt_module_open ($algorithm, $algorithm_directory, $mode, $mode_directory) {} +function mcrypt_module_open($algorithm, $algorithm_directory, $mode, $mode_directory) {} /** * This function initializes all buffers needed for encryption @@ -299,7 +299,7 @@ function mcrypt_module_open ($algorithm, $algorithm_directory, $mode, $mode_dire * were passed. */ #[Deprecated(since: '7.1')] -function mcrypt_generic_init ($td, $key, $iv) {} +function mcrypt_generic_init($td, $key, $iv) {} /** * This function encrypts data @@ -320,7 +320,7 @@ function mcrypt_generic_init ($td, $key, $iv) {} * @return string the encrypted data. */ #[Deprecated(since: '7.1')] -function mcrypt_generic ($td, $data) {} +function mcrypt_generic($td, $data) {} /** * Decrypts data @@ -335,7 +335,7 @@ function mcrypt_generic ($td, $data) {} * @return string */ #[Deprecated(since: '7.1')] -function mdecrypt_generic ($td, $data) {} +function mdecrypt_generic($td, $data) {} /** * This function terminates encryption @@ -345,7 +345,7 @@ function mdecrypt_generic ($td, $data) {} * @removed 7.0 */ #[Deprecated(since: '5.4')] -function mcrypt_generic_end ($td) {} +function mcrypt_generic_end($td) {} /** * This function deinitializes an encryption module @@ -356,7 +356,7 @@ function mcrypt_generic_end ($td) {} * @return bool true on success or false on failure. */ #[Deprecated(since: '7.1')] -function mcrypt_generic_deinit ($td) {} +function mcrypt_generic_deinit($td) {} /** * Runs a self test on the opened module @@ -367,7 +367,7 @@ function mcrypt_generic_deinit ($td) {} * @return int Returns 0 on success and a negative integer on failure */ #[Deprecated(since: '7.1')] -function mcrypt_enc_self_test ($td) {} +function mcrypt_enc_self_test($td) {} /** * Checks whether the encryption of the opened mode works on blocks @@ -379,7 +379,7 @@ function mcrypt_enc_self_test ($td) {} * returns false. */ #[Deprecated(since: '7.1')] -function mcrypt_enc_is_block_algorithm_mode ($td) {} +function mcrypt_enc_is_block_algorithm_mode($td) {} /** * Checks whether the algorithm of the opened mode is a block algorithm @@ -391,7 +391,7 @@ function mcrypt_enc_is_block_algorithm_mode ($td) {} * a stream one. */ #[Deprecated(since: '7.1')] -function mcrypt_enc_is_block_algorithm ($td) {} +function mcrypt_enc_is_block_algorithm($td) {} /** * Checks whether the opened mode outputs blocks @@ -402,7 +402,7 @@ function mcrypt_enc_is_block_algorithm ($td) {} * @return bool true if the mode outputs blocks of bytes or false if it outputs bytes. */ #[Deprecated(since: '7.1')] -function mcrypt_enc_is_block_mode ($td) {} +function mcrypt_enc_is_block_mode($td) {} /** * Returns the blocksize of the opened algorithm @@ -413,7 +413,7 @@ function mcrypt_enc_is_block_mode ($td) {} * @return int the block size of the specified algorithm in bytes. */ #[Deprecated(since: '7.1')] -function mcrypt_enc_get_block_size ($td) {} +function mcrypt_enc_get_block_size($td) {} /** * Returns the maximum supported keysize of the opened mode @@ -424,7 +424,7 @@ function mcrypt_enc_get_block_size ($td) {} * @return int the maximum supported key size of the algorithm in bytes. */ #[Deprecated(since: '7.1')] -function mcrypt_enc_get_key_size ($td) {} +function mcrypt_enc_get_key_size($td) {} /** * Returns an array with the supported keysizes of the opened algorithm @@ -439,7 +439,7 @@ function mcrypt_enc_get_key_size ($td) {} * algorithm. */ #[Deprecated(since: '7.1')] -function mcrypt_enc_get_supported_key_sizes ($td) {} +function mcrypt_enc_get_supported_key_sizes($td) {} /** * Returns the size of the IV of the opened algorithm @@ -450,7 +450,7 @@ function mcrypt_enc_get_supported_key_sizes ($td) {} * @return int the size of the IV, or 0 if the IV is ignored in the algorithm. */ #[Deprecated(since: '7.1')] -function mcrypt_enc_get_iv_size ($td) {} +function mcrypt_enc_get_iv_size($td) {} /** * Returns the name of the opened algorithm @@ -461,7 +461,7 @@ function mcrypt_enc_get_iv_size ($td) {} * @return string the name of the opened algorithm as a string. */ #[Deprecated(since: '7.1')] -function mcrypt_enc_get_algorithms_name ($td) {} +function mcrypt_enc_get_algorithms_name($td) {} /** * Returns the name of the opened mode @@ -472,7 +472,7 @@ function mcrypt_enc_get_algorithms_name ($td) {} * @return string the name as a string. */ #[Deprecated(since: '7.1')] -function mcrypt_enc_get_modes_name ($td) {} +function mcrypt_enc_get_modes_name($td) {} /** * This function runs a self test on the specified module @@ -488,7 +488,7 @@ function mcrypt_enc_get_modes_name ($td) {} * fails. */ #[Deprecated(since: '7.1')] -function mcrypt_module_self_test ($algorithm, $lib_dir = null) {} +function mcrypt_module_self_test($algorithm, $lib_dir = null) {} /** * Returns if the specified module is a block algorithm or not @@ -505,7 +505,7 @@ function mcrypt_module_self_test ($algorithm, $lib_dir = null) {} * true for cbc, cfb, ofb). */ #[Deprecated(since: '7.1')] -function mcrypt_module_is_block_algorithm_mode ($mode, $lib_dir = null) {} +function mcrypt_module_is_block_algorithm_mode($mode, $lib_dir = null) {} /** * This function checks whether the specified algorithm is a block algorithm @@ -521,7 +521,7 @@ function mcrypt_module_is_block_algorithm_mode ($mode, $lib_dir = null) {} * algorithm, or false is it is a stream algorithm. */ #[Deprecated(since: '7.1')] -function mcrypt_module_is_block_algorithm ($algorithm, $lib_dir = null) {} +function mcrypt_module_is_block_algorithm($algorithm, $lib_dir = null) {} /** * Returns if the specified mode outputs blocks or not @@ -538,7 +538,7 @@ function mcrypt_module_is_block_algorithm ($algorithm, $lib_dir = null) {} * false for cfb and stream). */ #[Deprecated(since: '7.1')] -function mcrypt_module_is_block_mode ($mode, $lib_dir = null) {} +function mcrypt_module_is_block_mode($mode, $lib_dir = null) {} /** * Returns the blocksize of the specified algorithm @@ -553,7 +553,7 @@ function mcrypt_module_is_block_mode ($mode, $lib_dir = null) {} * @return int the block size of the algorithm specified in bytes. */ #[Deprecated(since: '7.1')] -function mcrypt_module_get_algo_block_size ($algorithm, $lib_dir = null) {} +function mcrypt_module_get_algo_block_size($algorithm, $lib_dir = null) {} /** * Returns the maximum supported keysize of the opened mode @@ -569,7 +569,7 @@ function mcrypt_module_get_algo_block_size ($algorithm, $lib_dir = null) {} * algorithm specified in bytes. */ #[Deprecated(since: '7.1')] -function mcrypt_module_get_algo_key_size ($algorithm, $lib_dir = null) {} +function mcrypt_module_get_algo_key_size($algorithm, $lib_dir = null) {} /** * Returns an array with the supported keysizes of the opened algorithm @@ -587,7 +587,7 @@ function mcrypt_module_get_algo_key_size ($algorithm, $lib_dir = null) {} * algorithm. */ #[Deprecated(since: '7.1')] -function mcrypt_module_get_supported_key_sizes ($algorithm, $lib_dir = null) {} +function mcrypt_module_get_supported_key_sizes($algorithm, $lib_dir = null) {} /** * Closes the mcrypt module @@ -598,49 +598,48 @@ function mcrypt_module_get_supported_key_sizes ($algorithm, $lib_dir = null) {} * @return bool true on success or false on failure. */ #[Deprecated(since: '7.1')] -function mcrypt_module_close ($td) {} - -define ('MCRYPT_ENCRYPT', 0); -define ('MCRYPT_DECRYPT', 1); -define ('MCRYPT_DEV_RANDOM', 0); -define ('MCRYPT_DEV_URANDOM', 1); -define ('MCRYPT_RAND', 2); -define ('MCRYPT_3DES', "tripledes"); -define ('MCRYPT_ARCFOUR_IV', "arcfour-iv"); -define ('MCRYPT_ARCFOUR', "arcfour"); -define ('MCRYPT_BLOWFISH', "blowfish"); -define ('MCRYPT_BLOWFISH_COMPAT', "blowfish-compat"); -define ('MCRYPT_CAST_128', "cast-128"); -define ('MCRYPT_CAST_256', "cast-256"); -define ('MCRYPT_CRYPT', "crypt"); -define ('MCRYPT_DES', "des"); -define ('MCRYPT_ENIGNA', "crypt"); -define ('MCRYPT_GOST', "gost"); -define ('MCRYPT_LOKI97', "loki97"); -define ('MCRYPT_PANAMA', "panama"); -define ('MCRYPT_RC2', "rc2"); -define ('MCRYPT_RIJNDAEL_128', "rijndael-128"); -define ('MCRYPT_RIJNDAEL_192', "rijndael-192"); -define ('MCRYPT_RIJNDAEL_256', "rijndael-256"); -define ('MCRYPT_SAFER64', "safer-sk64"); -define ('MCRYPT_SAFER128', "safer-sk128"); -define ('MCRYPT_SAFERPLUS', "saferplus"); -define ('MCRYPT_SERPENT', "serpent"); -define ('MCRYPT_THREEWAY', "threeway"); -define ('MCRYPT_TRIPLEDES', "tripledes"); -define ('MCRYPT_TWOFISH', "twofish"); -define ('MCRYPT_WAKE', "wake"); -define ('MCRYPT_XTEA', "xtea"); -define ('MCRYPT_IDEA', "idea"); -define ('MCRYPT_MARS', "mars"); -define ('MCRYPT_RC6', "rc6"); -define ('MCRYPT_SKIPJACK', "skipjack"); -define ('MCRYPT_MODE_CBC', "cbc"); -define ('MCRYPT_MODE_CFB', "cfb"); -define ('MCRYPT_MODE_ECB', "ecb"); -define ('MCRYPT_MODE_NOFB', "nofb"); -define ('MCRYPT_MODE_OFB', "ofb"); -define ('MCRYPT_MODE_STREAM', "stream"); +function mcrypt_module_close($td) {} + +define('MCRYPT_ENCRYPT', 0); +define('MCRYPT_DECRYPT', 1); +define('MCRYPT_DEV_RANDOM', 0); +define('MCRYPT_DEV_URANDOM', 1); +define('MCRYPT_RAND', 2); +define('MCRYPT_3DES', "tripledes"); +define('MCRYPT_ARCFOUR_IV', "arcfour-iv"); +define('MCRYPT_ARCFOUR', "arcfour"); +define('MCRYPT_BLOWFISH', "blowfish"); +define('MCRYPT_BLOWFISH_COMPAT', "blowfish-compat"); +define('MCRYPT_CAST_128', "cast-128"); +define('MCRYPT_CAST_256', "cast-256"); +define('MCRYPT_CRYPT', "crypt"); +define('MCRYPT_DES', "des"); +define('MCRYPT_ENIGNA', "crypt"); +define('MCRYPT_GOST', "gost"); +define('MCRYPT_LOKI97', "loki97"); +define('MCRYPT_PANAMA', "panama"); +define('MCRYPT_RC2', "rc2"); +define('MCRYPT_RIJNDAEL_128', "rijndael-128"); +define('MCRYPT_RIJNDAEL_192', "rijndael-192"); +define('MCRYPT_RIJNDAEL_256', "rijndael-256"); +define('MCRYPT_SAFER64', "safer-sk64"); +define('MCRYPT_SAFER128', "safer-sk128"); +define('MCRYPT_SAFERPLUS', "saferplus"); +define('MCRYPT_SERPENT', "serpent"); +define('MCRYPT_THREEWAY', "threeway"); +define('MCRYPT_TRIPLEDES', "tripledes"); +define('MCRYPT_TWOFISH', "twofish"); +define('MCRYPT_WAKE', "wake"); +define('MCRYPT_XTEA', "xtea"); +define('MCRYPT_IDEA', "idea"); +define('MCRYPT_MARS', "mars"); +define('MCRYPT_RC6', "rc6"); +define('MCRYPT_SKIPJACK', "skipjack"); +define('MCRYPT_MODE_CBC', "cbc"); +define('MCRYPT_MODE_CFB', "cfb"); +define('MCRYPT_MODE_ECB', "ecb"); +define('MCRYPT_MODE_NOFB', "nofb"); +define('MCRYPT_MODE_OFB', "ofb"); +define('MCRYPT_MODE_STREAM', "stream"); // End of mcrypt v. -?> diff --git a/memcache/memcache.php b/memcache/memcache.php index 10a3fd07b..887504a39 100644 --- a/memcache/memcache.php +++ b/memcache/memcache.php @@ -2,8 +2,8 @@ // Start of memcache v.3.0.8 -class MemcachePool { - +class MemcachePool +{ /** * (PECL memcache >= 0.2.0)
    * Open memcached server connection @@ -27,7 +27,7 @@ class MemcachePool { * @param int $timeout [optional]

    Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow.

    * @return bool

    Returns TRUE on success or FALSE on failure.

    */ - public function connect ($host, $port, $timeout = 1) {} + public function connect($host, $port, $timeout = 1) {} /** * (PECL memcache >= 2.0.0)
    @@ -94,7 +94,7 @@ public function connect ($host, $port, $timeout = 1) {} *

    * @return bool TRUE on success or FALSE on failure. */ - public function addServer ($host, $port = 11211, $persistent = true, $weight = null, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null, $timeoutms = null) {} + public function addServer($host, $port = 11211, $persistent = true, $weight = null, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null, $timeoutms = null) {} /** * (PECL memcache >= 2.1.0)
    @@ -127,12 +127,9 @@ public function addServer ($host, $port = 11211, $persistent = true, $weight = n *

    * @return bool

    Returns TRUE on success or FALSE on failure.

    */ - public function setServerParams ($host, $port = 11211, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null) {} + public function setServerParams($host, $port = 11211, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null) {} - /** - * - */ - public function setFailureCallback () {} + public function setFailureCallback() {} /** * (PECL memcache >= 2.1.0)
    @@ -142,12 +139,9 @@ public function setFailureCallback () {} * @param int $port Point to the port where memcached is listening for connections. * @return int Returns a the servers status. 0 if server is failed, non-zero otherwise */ - public function getServerStatus ($host, $port = 11211) {} + public function getServerStatus($host, $port = 11211) {} - /** - * - */ - public function findServer () {} + public function findServer() {} /** * (PECL memcache >= 0.2.0)
    @@ -155,7 +149,7 @@ public function findServer () {} * @link https://php.net/manual/en/memcache.getversion.php * @return string|false Returns a string of server version number or FALSE on failure. */ - public function getVersion () {} + public function getVersion() {} /** * (PECL memcache >= 2.0.0)
    @@ -172,7 +166,7 @@ public function getVersion () {} * You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days).

    * @return bool Returns TRUE on success or FALSE on failure. Returns FALSE if such key already exist. For the rest Memcache::add() behaves similarly to Memcache::set(). */ - public function add ($key , $var, $flag = null, $expire = null) {} + public function add($key, $var, $flag = null, $expire = null) {} /** * (PECL memcache >= 0.2.0)
    @@ -187,7 +181,7 @@ public function add ($key , $var, $flag = null, $expire = null) {} * @param int $expire [optional] Expiration time of the item. If it's equal to zero, the item will never expire. You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days). * @return bool Returns TRUE on success or FALSE on failure. */ - public function set ($key, $var, $flag = null, $expire = null) {} + public function set($key, $var, $flag = null, $expire = null) {} /** * (PECL memcache >= 0.2.0)
    @@ -199,16 +193,16 @@ public function set ($key, $var, $flag = null, $expire = null) {} * @param int $expire [optional]

    Expiration time of the item. If it's equal to zero, the item will never expire. You can also use Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days).

    * @return bool Returns TRUE on success or FALSE on failure. */ - public function replace ($key, $var, $flag = null, $expire = null) {} + public function replace($key, $var, $flag = null, $expire = null) {} - public function cas () {} + public function cas() {} - public function append () {} + public function append() {} /** * @return string */ - public function prepend () {} + public function prepend() {} /** * (PECL memcache >= 0.2.0)
    @@ -230,7 +224,7 @@ public function prepend () {} * key is an empty {@link https://php.net/manual/en/language.types.array.php array}. *

    */ - public function get ($key, &$flags = null) {} + public function get($key, &$flags = null) {} /** * (PECL memcache >= 0.2.0)
    @@ -240,7 +234,7 @@ public function get ($key, &$flags = null) {} * @param int $timeout [optional] This deprecated parameter is not supported, and defaults to 0 seconds. Do not use this parameter. * @return bool Returns TRUE on success or FALSE on failure. */ - public function delete ($key, $timeout = 0 ) {} + public function delete($key, $timeout = 0) {} /** * (PECL memcache >= 0.2.0)
    @@ -261,7 +255,7 @@ public function delete ($key, $timeout = 0 ) {} *

    * @return array|false Returns an associative array of server statistics or FALSE on failure. */ - public function getStats ($type = null, $slabid = null, $limit = 100) {} + public function getStats($type = null, $slabid = null, $limit = 100) {} /** * (PECL memcache >= 2.0.0)
    @@ -279,7 +273,7 @@ public function getStats ($type = null, $slabid = null, $limit = 100) {} * Returns a two-dimensional associative array of server statistics or FALSE * on failure. */ - public function getExtendedStats ($type = null, $slabid = null, $limit = 100) {} + public function getExtendedStats($type = null, $slabid = null, $limit = 100) {} /** * (PECL memcache >= 2.0.0)
    @@ -289,7 +283,7 @@ public function getExtendedStats ($type = null, $slabid = null, $limit = 100) {} * @param float $min_saving [optional]

    Specifies the minimum amount of savings to actually store the value compressed. The supplied value must be between 0 and 1. Default value is 0.2 giving a minimum 20% compression savings.

    * @return bool Returns TRUE on success or FALSE on failure. */ - public function setCompressThreshold ($thresold, $min_saving = 0.2) {} + public function setCompressThreshold($thresold, $min_saving = 0.2) {} /** * (PECL memcache >= 0.2.0)
    * Increment item's value @@ -298,7 +292,7 @@ public function setCompressThreshold ($thresold, $min_saving = 0.2) {} * @param int $value [optional] increment the item by value * @return int|false Returns new items value on success or FALSE on failure. */ - public function increment ($key, $value = 1) {} + public function increment($key, $value = 1) {} /** * (PECL memcache >= 0.2.0)
    @@ -308,7 +302,7 @@ public function increment ($key, $value = 1) {} * @param int $value Decrement the item by value. * @return int|false Returns item's new value on success or FALSE on failure. */ - public function decrement ($key, $value = 1) {} + public function decrement($key, $value = 1) {} /** * (PECL memcache >= 0.4.0)
    @@ -316,7 +310,7 @@ public function decrement ($key, $value = 1) {} * @link https://php.net/manual/en/memcache.close.php * @return bool Returns TRUE on success or FALSE on failure. */ - public function close () {} + public function close() {} /** * (PECL memcache >= 1.0.0)
    @@ -324,39 +318,37 @@ public function close () {} * @link https://php.net/manual/en/memcache.flush.php * @return bool Returns TRUE on success or FALSE on failure. */ - public function flush () {} - + public function flush() {} } /** * Represents a connection to a set of memcache servers. * @link https://php.net/manual/en/class.memcache.php */ -class Memcache extends MemcachePool { - - - /** - * (PECL memcache >= 0.4.0)
    - * Open memcached server persistent connection - * @link https://php.net/manual/en/memcache.pconnect.php - * @param string $host

    - * Point to the host where memcached is listening for connections. This parameter - * may also specify other transports like unix:///path/to/memcached.sock - * to use UNIX domain sockets, in this case port must also - * be set to 0. - *

    - * @param int $port [optional]

    - * Point to the port where memcached is listening for connections. Set this - * parameter to 0 when using UNIX domain sockets. - *

    - * @param int $timeout [optional]

    - * Value in seconds which will be used for connecting to the daemon. Think - * twice before changing the default value of 1 second - you can lose all - * the advantages of caching if your connection is too slow. - *

    - * @return mixed a Memcache object or FALSE on failure. - */ - public function pconnect ($host, $port, $timeout = 1) {} +class Memcache extends MemcachePool +{ + /** + * (PECL memcache >= 0.4.0)
    + * Open memcached server persistent connection + * @link https://php.net/manual/en/memcache.pconnect.php + * @param string $host

    + * Point to the host where memcached is listening for connections. This parameter + * may also specify other transports like unix:///path/to/memcached.sock + * to use UNIX domain sockets, in this case port must also + * be set to 0. + *

    + * @param int $port [optional]

    + * Point to the port where memcached is listening for connections. Set this + * parameter to 0 when using UNIX domain sockets. + *

    + * @param int $timeout [optional]

    + * Value in seconds which will be used for connecting to the daemon. Think + * twice before changing the default value of 1 second - you can lose all + * the advantages of caching if your connection is too slow. + *

    + * @return mixed a Memcache object or FALSE on failure. + */ + public function pconnect($host, $port, $timeout = 1) {} } // string $host [, int $port [, int $timeout ]] @@ -382,7 +374,7 @@ public function pconnect ($host, $port, $timeout = 1) {} *

    * @return bool Returns TRUE on success or FALSE on failure. */ -function memcache_connect ($host, $port, $timeout = 1) {} +function memcache_connect($host, $port, $timeout = 1) {} /** * (PECL memcache >= 0.4.0) @@ -394,33 +386,33 @@ function memcache_connect ($host, $port, $timeout = 1) {} * @param int $timeout * @return Memcache */ -function memcache_pconnect ($host, $port = null, $timeout = 1) {} +function memcache_pconnect($host, $port = null, $timeout = 1) {} -function memcache_add_server () {} +function memcache_add_server() {} -function memcache_set_server_params () {} +function memcache_set_server_params() {} -function memcache_set_failure_callback () {} +function memcache_set_failure_callback() {} -function memcache_get_server_status () {} +function memcache_get_server_status() {} -function memcache_get_version () {} +function memcache_get_version() {} -function memcache_add () {} +function memcache_add() {} -function memcache_set () {} +function memcache_set() {} -function memcache_replace () {} +function memcache_replace() {} -function memcache_cas () {} +function memcache_cas() {} -function memcache_append () {} +function memcache_append() {} -function memcache_prepend () {} +function memcache_prepend() {} -function memcache_get () {} +function memcache_get() {} -function memcache_delete () {} +function memcache_delete() {} /** * (PECL memcache >= 0.2.0)
    @@ -433,28 +425,27 @@ function memcache_delete () {} * @return bool TRUE if PHP was built with --enable-debug option, otherwise * returns FALSE. */ -function memcache_debug ($on_off) {} +function memcache_debug($on_off) {} -function memcache_get_stats () {} +function memcache_get_stats() {} -function memcache_get_extended_stats () {} +function memcache_get_extended_stats() {} -function memcache_set_compress_threshold () {} +function memcache_set_compress_threshold() {} -function memcache_increment () {} +function memcache_increment() {} -function memcache_decrement () {} +function memcache_decrement() {} -function memcache_close () {} +function memcache_close() {} -function memcache_flush () {} +function memcache_flush() {} -define ('MEMCACHE_COMPRESSED', 2); -define ('MEMCACHE_USER1', 65536); -define ('MEMCACHE_USER2', 131072); -define ('MEMCACHE_USER3', 262144); -define ('MEMCACHE_USER4', 524288); -define ('MEMCACHE_HAVE_SESSION', 1); +define('MEMCACHE_COMPRESSED', 2); +define('MEMCACHE_USER1', 65536); +define('MEMCACHE_USER2', 131072); +define('MEMCACHE_USER3', 262144); +define('MEMCACHE_USER4', 524288); +define('MEMCACHE_HAVE_SESSION', 1); // End of memcache v.3.0.8 -?> diff --git a/memcached/memcached.php b/memcached/memcached.php index 8ce1c5b0b..d4910e04c 100644 --- a/memcached/memcached.php +++ b/memcached/memcached.php @@ -7,1524 +7,1521 @@ * Represents a connection to a set of memcached servers. * @link https://php.net/manual/en/class.memcached.php */ -class Memcached { - - /** - *

    Enables or disables payload compression. When enabled, - * item values longer than a certain threshold (currently 100 bytes) will be - * compressed during storage and decompressed during retrieval - * transparently.

    - *

    Type: boolean, default: TRUE.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_COMPRESSION = -1001; - const OPT_COMPRESSION_TYPE = -1004; - - /** - *

    This can be used to create a "domain" for your item keys. The value - * specified here will be prefixed to each of the keys. It cannot be - * longer than 128 characters and will reduce the - * maximum available key size. The prefix is applied only to the item keys, - * not to the server keys.

    - *

    Type: string, default: "".

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_PREFIX_KEY = -1002; - - /** - *

    - * Specifies the serializer to use for serializing non-scalar values. - * The valid serializers are Memcached::SERIALIZER_PHP - * or Memcached::SERIALIZER_IGBINARY. The latter is - * supported only when memcached is configured with - * --enable-memcached-igbinary option and the - * igbinary extension is loaded. - *

    - *

    Type: integer, default: Memcached::SERIALIZER_PHP.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_SERIALIZER = -1003; - - /** - *

    Indicates whether igbinary serializer support is available.

    - *

    Type: boolean.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HAVE_IGBINARY = 0; - - /** - *

    Indicates whether JSON serializer support is available.

    - *

    Type: boolean.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HAVE_JSON = 0; - - /** - *

    Indicates whether msgpack serializer support is available.

    - *

    Type: boolean.

    - * Available as of Memcached 3.0.0. - * @since 3.0.0 - * @link https://php.net/manual/en/memcached.constants.php - */ - const HAVE_MSGPACK = 0; - - /** - *

    Indicate whether set_encoding_key is available

    - *

    Type: boolean.

    - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php, https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c#L4387 - */ - const HAVE_ENCODING = 0; - - /** - * Feature support - */ - const HAVE_SESSION = 1; - const HAVE_SASL = 0; - - /** - *

    Specifies the hashing algorithm used for the item keys. The valid - * values are supplied via Memcached::HASH_* constants. - * Each hash algorithm has its advantages and its disadvantages. Go with the - * default if you don't know or don't care.

    - *

    Type: integer, default: Memcached::HASH_DEFAULT

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_HASH = 2; - - /** - *

    The default (Jenkins one-at-a-time) item key hashing algorithm.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HASH_DEFAULT = 0; - - /** - *

    MD5 item key hashing algorithm.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HASH_MD5 = 1; - - /** - *

    CRC item key hashing algorithm.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HASH_CRC = 2; - - /** - *

    FNV1_64 item key hashing algorithm.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HASH_FNV1_64 = 3; - - /** - *

    FNV1_64A item key hashing algorithm.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HASH_FNV1A_64 = 4; - - /** - *

    FNV1_32 item key hashing algorithm.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HASH_FNV1_32 = 5; - - /** - *

    FNV1_32A item key hashing algorithm.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HASH_FNV1A_32 = 6; - - /** - *

    Hsieh item key hashing algorithm.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HASH_HSIEH = 7; - - /** - *

    Murmur item key hashing algorithm.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const HASH_MURMUR = 8; - - /** - *

    Specifies the method of distributing item keys to the servers. - * Currently supported methods are modulo and consistent hashing. Consistent - * hashing delivers better distribution and allows servers to be added to - * the cluster with minimal cache losses.

    - *

    Type: integer, default: Memcached::DISTRIBUTION_MODULA.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_DISTRIBUTION = 9; - - /** - *

    Modulo-based key distribution algorithm.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const DISTRIBUTION_MODULA = 0; - - /** - *

    Consistent hashing key distribution algorithm (based on libketama).

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const DISTRIBUTION_CONSISTENT = 1; - const DISTRIBUTION_VIRTUAL_BUCKET = 6; - - /** - *

    Enables or disables compatibility with libketama-like behavior. When - * enabled, the item key hashing algorithm is set to MD5 and distribution is - * set to be weighted consistent hashing distribution. This is useful - * because other libketama-based clients (Python, Ruby, etc.) with the same - * server configuration will be able to access the keys transparently. - *

    - *

    - * It is highly recommended to enable this option if you want to use - * consistent hashing, and it may be enabled by default in future - * releases. - *

    - *

    Type: boolean, default: FALSE.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_LIBKETAMA_COMPATIBLE = 16; - const OPT_LIBKETAMA_HASH = 17; - const OPT_TCP_KEEPALIVE = 32; - - /** - *

    Enables or disables buffered I/O. Enabling buffered I/O causes - * storage commands to "buffer" instead of being sent. Any action that - * retrieves data causes this buffer to be sent to the remote connection. - * Quitting the connection or closing down the connection will also cause - * the buffered data to be pushed to the remote connection.

    - *

    Type: boolean, default: FALSE.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_BUFFER_WRITES = 10; - - /** - *

    Enable the use of the binary protocol. Please note that you cannot - * toggle this option on an open connection.

    - *

    Type: boolean, default: FALSE.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_BINARY_PROTOCOL = 18; - - /** - *

    Enables or disables asynchronous I/O. This is the fastest transport - * available for storage functions.

    - *

    Type: boolean, default: FALSE.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_NO_BLOCK = 0; - - /** - *

    Enables or disables the no-delay feature for connecting sockets (may - * be faster in some environments).

    - *

    Type: boolean, default: FALSE.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_TCP_NODELAY = 1; - - /** - *

    The maximum socket send buffer in bytes.

    - *

    Type: integer, default: varies by platform/kernel - * configuration.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_SOCKET_SEND_SIZE = 4; - - /** - *

    The maximum socket receive buffer in bytes.

    - *

    Type: integer, default: varies by platform/kernel - * configuration.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_SOCKET_RECV_SIZE = 5; - - /** - *

    In non-blocking mode this set the value of the timeout during socket - * connection, in milliseconds.

    - *

    Type: integer, default: 1000.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_CONNECT_TIMEOUT = 14; - - /** - *

    The amount of time, in seconds, to wait until retrying a failed - * connection attempt.

    - *

    Type: integer, default: 0.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_RETRY_TIMEOUT = 15; - - /** - *

    Socket sending timeout, in microseconds. In cases where you cannot - * use non-blocking I/O this will allow you to still have timeouts on the - * sending of data.

    - *

    Type: integer, default: 0.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_SEND_TIMEOUT = 19; - - /** - *

    Socket reading timeout, in microseconds. In cases where you cannot - * use non-blocking I/O this will allow you to still have timeouts on the - * reading of data.

    - *

    Type: integer, default: 0.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_RECV_TIMEOUT = 20; - - /** - *

    Timeout for connection polling, in milliseconds.

    - *

    Type: integer, default: 1000.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_POLL_TIMEOUT = 8; - - /** - *

    Enables or disables caching of DNS lookups.

    - *

    Type: boolean, default: FALSE.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_CACHE_LOOKUPS = 6; - - /** - *

    Specifies the failure limit for server connection attempts. The - * server will be removed after this many continuous connection - * failures.

    - *

    Type: integer, default: 0.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const OPT_SERVER_FAILURE_LIMIT = 21; - const OPT_AUTO_EJECT_HOSTS = 28; - const OPT_HASH_WITH_PREFIX_KEY = 25; - const OPT_NOREPLY = 26; - const OPT_SORT_HOSTS = 12; - const OPT_VERIFY_KEY = 13; - const OPT_USE_UDP = 27; - const OPT_NUMBER_OF_REPLICAS = 29; - const OPT_RANDOMIZE_REPLICA_READ = 30; - const OPT_CORK = 31; - const OPT_REMOVE_FAILED_SERVERS = 35; - const OPT_DEAD_TIMEOUT = 36; - const OPT_SERVER_TIMEOUT_LIMIT = 37; - const OPT_MAX = 38; - const OPT_IO_BYTES_WATERMARK = 23; - const OPT_IO_KEY_PREFETCH = 24; - const OPT_IO_MSG_WATERMARK = 22; - const OPT_LOAD_FROM_FILE = 34; - const OPT_SUPPORT_CAS = 7; - const OPT_TCP_KEEPIDLE = 33; - const OPT_USER_DATA = 11; - - - /** - * libmemcached result codes - */ - /** - *

    The operation was successful.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_SUCCESS = 0; - - /** - *

    The operation failed in some fashion.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_FAILURE = 1; - - /** - *

    DNS lookup failed.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_HOST_LOOKUP_FAILURE = 2; - - /** - *

    Failed to read network data.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_UNKNOWN_READ_FAILURE = 7; - - /** - *

    Bad command in memcached protocol.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_PROTOCOL_ERROR = 8; - - /** - *

    Error on the client side.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_CLIENT_ERROR = 9; - - /** - *

    Error on the server side.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_SERVER_ERROR = 10; - - /** - *

    Failed to write network data.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_WRITE_FAILURE = 5; - - /** - *

    Failed to do compare-and-swap: item you are trying to store has been - * modified since you last fetched it.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_DATA_EXISTS = 12; - - /** - *

    Item was not stored: but not because of an error. This normally - * means that either the condition for an "add" or a "replace" command - * wasn't met, or that the item is in a delete queue.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_NOTSTORED = 14; - - /** - *

    Item with this key was not found (with "get" operation or "cas" - * operations).

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_NOTFOUND = 16; - - /** - *

    Partial network data read error.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_PARTIAL_READ = 18; - - /** - *

    Some errors occurred during multi-get.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_SOME_ERRORS = 19; - - /** - *

    Server list is empty.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_NO_SERVERS = 20; - - /** - *

    End of result set.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_END = 21; - - /** - *

    System error.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_ERRNO = 26; - - /** - *

    The operation was buffered.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_BUFFERED = 32; - - /** - *

    The operation timed out.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_TIMEOUT = 31; - - /** - *

    Bad key.

    - * @link https://php.net/manual/en/memcached.constants.php, http://docs.libmemcached.org/index.html - */ - /** - *

    MEMCACHED_BAD_KEY_PROVIDED: The key provided is not a valid key.

    - */ - const RES_BAD_KEY_PROVIDED = 33; - /** - *

    MEMCACHED_STORED: The requested object has been successfully stored on the server.

    - */ - const RES_STORED = 15; - /** - *

    MEMCACHED_DELETED: The object requested by the key has been deleted.

    - */ - const RES_DELETED = 22; - /** - *

    MEMCACHED_STAT: A “stat” command has been returned in the protocol.

    - */ - const RES_STAT = 24; - /** - *

    MEMCACHED_ITEM: An item has been fetched (this is an internal error only).

    - */ - const RES_ITEM = 25; - /** - *

    MEMCACHED_NOT_SUPPORTED: The given method is not supported in the server.

    - */ - const RES_NOT_SUPPORTED = 28; - /** - *

    MEMCACHED_FETCH_NOTFINISHED: A request has been made, but the server has not finished the fetch of the last request.

    - */ - const RES_FETCH_NOTFINISHED = 30; - /** - *

    MEMCACHED_SERVER_MARKED_DEAD: The requested server has been marked dead.

    - */ - const RES_SERVER_MARKED_DEAD = 35; - /** - *

    MEMCACHED_UNKNOWN_STAT_KEY: The server you are communicating with has a stat key which has not be defined in the protocol.

    - */ - const RES_UNKNOWN_STAT_KEY = 36; - /** - *

    MEMCACHED_INVALID_HOST_PROTOCOL: The server you are connecting too has an invalid protocol. Most likely you are connecting to an older server that does not speak the binary protocol.

    - */ - const RES_INVALID_HOST_PROTOCOL = 34; - /** - *

    MEMCACHED_MEMORY_ALLOCATION_FAILURE: An error has occurred while trying to allocate memory.

    - */ - const RES_MEMORY_ALLOCATION_FAILURE = 17; - /** - *

    MEMCACHED_E2BIG: Item is too large for the server to store.

    - */ - const RES_E2BIG = 37; - /** - *

    MEMCACHED_KEY_TOO_BIG: The key that has been provided is too large for the given server.

    - */ - const RES_KEY_TOO_BIG = 39; - /** - *

    MEMCACHED_SERVER_TEMPORARILY_DISABLED

    - */ - const RES_SERVER_TEMPORARILY_DISABLED = 47; - /** - *

    MEMORY_ALLOCATION_FAILURE: An error has occurred while trying to allocate memory. - * - * #if defined(LIBMEMCACHED_VERSION_HEX) && LIBMEMCACHED_VERSION_HEX >= 0x01000008

    - */ - const RES_SERVER_MEMORY_ALLOCATION_FAILURE = 48; - /** - *

    MEMCACHED_AUTH_PROBLEM: An unknown issue has occured during authentication.

    - */ - const RES_AUTH_PROBLEM = 40; - /** - *

    MEMCACHED_AUTH_FAILURE: The credentials provided are not valid for this server.

    - */ - const RES_AUTH_FAILURE = 41; - /** - *

    MEMCACHED_AUTH_CONTINUE: Authentication has been paused.

    - */ - const RES_AUTH_CONTINUE = 42; - /** - *

    MEMCACHED_CONNECTION_FAILURE: A unknown error has occured while trying to connect to a server.

    - */ - const RES_CONNECTION_FAILURE = 3; - /** - * MEMCACHED_CONNECTION_BIND_FAILURE: We were not able to bind() to the socket. - */ - #[Deprecated('Deprecated since version 0.30(libmemcached)')] - const RES_CONNECTION_BIND_FAILURE = 4; - /** - *

    MEMCACHED_READ_FAILURE: A read failure has occurred.

    - */ - const RES_READ_FAILURE = 6; - /** - *

    MEMCACHED_DATA_DOES_NOT_EXIST: The data requested with the key given was not found.

    - */ - const RES_DATA_DOES_NOT_EXIST = 13; - /** - *

    MEMCACHED_VALUE: A value has been returned from the server (this is an internal condition only).

    - */ - const RES_VALUE = 23; - /** - *

    MEMCACHED_FAIL_UNIX_SOCKET: A connection was not established with the server via a unix domain socket.

    - */ - const RES_FAIL_UNIX_SOCKET = 27; - /** - * No key was provided.

    - */ - #[Deprecated('Deprecated since version 0.30 (libmemcached). Use MEMCACHED_BAD_KEY_PROVIDED instead.')] - const RES_NO_KEY_PROVIDED = 29; - /** - *

    MEMCACHED_INVALID_ARGUMENTS: The arguments supplied to the given function were not valid.

    - */ - const RES_INVALID_ARGUMENTS = 38; - /** - *

    MEMCACHED_PARSE_ERROR: An error has occurred while trying to parse the configuration string. You should use memparse to determine what the error was.

    - */ - const RES_PARSE_ERROR = 43; - /** - *

    MEMCACHED_PARSE_USER_ERROR: An error has occurred in parsing the configuration string.

    - */ - const RES_PARSE_USER_ERROR = 44; - /** - *

    MEMCACHED_DEPRECATED: The method that was requested has been deprecated.

    - */ - const RES_DEPRECATED = 45; - //unknow - const RES_IN_PROGRESS = 46; - /** - *

    MEMCACHED_MAXIMUM_RETURN: This in an internal only state.

    - */ - const RES_MAXIMUM_RETURN = 49; - - /** - * Server callbacks, if compiled with --memcached-protocol - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php - */ - const ON_CONNECT = 0; - const ON_ADD = 1; - const ON_APPEND = 2; - const ON_DECREMENT = 3; - const ON_DELETE = 4; - const ON_FLUSH = 5; - const ON_GET = 6; - const ON_INCREMENT = 7; - const ON_NOOP = 8; - const ON_PREPEND = 9; - const ON_QUIT = 10; - const ON_REPLACE = 11; - const ON_SET = 12; - const ON_STAT = 13; - const ON_VERSION = 14; - /** - * Constants used when compiled with --memcached-protocol - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php - */ - const RESPONSE_SUCCESS = 0; - const RESPONSE_KEY_ENOENT = 1; - const RESPONSE_KEY_EEXISTS = 2; - const RESPONSE_E2BIG = 3; - const RESPONSE_EINVAL = 4; - const RESPONSE_NOT_STORED = 5; - const RESPONSE_DELTA_BADVAL = 6; - const RESPONSE_NOT_MY_VBUCKET = 7; - const RESPONSE_AUTH_ERROR = 32; - const RESPONSE_AUTH_CONTINUE = 33; - const RESPONSE_UNKNOWN_COMMAND = 129; - const RESPONSE_ENOMEM = 130; - const RESPONSE_NOT_SUPPORTED = 131; - const RESPONSE_EINTERNAL = 132; - const RESPONSE_EBUSY = 133; - const RESPONSE_ETMPFAIL = 134; - - - /** - *

    Failed to create network socket.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_CONNECTION_SOCKET_CREATE_FAILURE = 11; - - /** - *

    Payload failure: could not compress/decompress or serialize/unserialize the value.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const RES_PAYLOAD_FAILURE = -1001; - - /** - *

    The default PHP serializer.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const SERIALIZER_PHP = 1; - - /** - *

    The igbinary serializer. - * Instead of textual representation it stores PHP data structures in a - * compact binary form, resulting in space and time gains.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const SERIALIZER_IGBINARY = 2; - - /** - *

    The JSON serializer. Requires PHP 5.2.10+.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const SERIALIZER_JSON = 3; - const SERIALIZER_JSON_ARRAY = 4; - /** - *

    The msgpack serializer.

    - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php - */ - const SERIALIZER_MSGPACK = 5; - - const COMPRESSION_FASTLZ = 2; - const COMPRESSION_ZLIB = 1; - - /** - *

    A flag for Memcached::getMulti and - * Memcached::getMultiByKey to ensure that the keys are - * returned in the same order as they were requested in. Non-existing keys - * get a default value of NULL.

    - * @link https://php.net/manual/en/memcached.constants.php - */ - const GET_PRESERVE_ORDER = 1; - - /** - * A flag for Memcached::get(), Memcached::getMulti() and - * Memcached::getMultiByKey() to ensure that the CAS token values are returned as well. - * @link https://php.net/manual/en/memcached.constants.php - */ - const GET_EXTENDED = 2; - - const GET_ERROR_RETURN_VALUE = false; - - /** - * (PECL memcached >= 0.1.0)
    - * Create a Memcached instance - * @link https://php.net/manual/en/memcached.construct.php, https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c - * @param string $persistent_id [optional] - * @param callable $on_new_object_cb [optional] - * @param string $connection_str [optional] - */ - public function __construct ($persistent_id = '', $on_new_object_cb = null, $connection_str = '') {} - - /** - * (PECL memcached >= 0.1.0)
    - * Return the result code of the last operation - * @link https://php.net/manual/en/memcached.getresultcode.php - * @return int Result code of the last Memcached operation. - */ - public function getResultCode () {} - - /** - * (PECL memcached >= 1.0.0)
    - * Return the message describing the result of the last operation - * @link https://php.net/manual/en/memcached.getresultmessage.php - * @return string Message describing the result of the last Memcached operation. - */ - public function getResultMessage () {} - - /** - * (PECL memcached >= 0.1.0)
    - * Retrieve an item - * @link https://php.net/manual/en/memcached.get.php - * @param string $key

    - * The key of the item to retrieve. - *

    - * @param callable $cache_cb [optional]

    - * Read-through caching callback or NULL. - *

    - * @param int $flags [optional]

    - * The flags for the get operation. - *

    - * @return mixed the value stored in the cache or FALSE otherwise. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function get ($key, callable $cache_cb = null, $flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Retrieve an item from a specific server - * @link https://php.net/manual/en/memcached.getbykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key of the item to fetch. - *

    - * @param callable $cache_cb [optional]

    - * Read-through caching callback or NULL - *

    - * @param int $flags [optional]

    - * The flags for the get operation. - *

    - * @return mixed the value stored in the cache or FALSE otherwise. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function getByKey ($server_key, $key, callable $cache_cb = null, $flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Retrieve multiple items - * @link https://php.net/manual/en/memcached.getmulti.php - * @param array $keys

    - * Array of keys to retrieve. - *

    - * @param int $flags [optional]

    - * The flags for the get operation. - *

    - * @return mixed the array of found items or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function getMulti (array $keys, $flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Retrieve multiple items from a specific server - * @link https://php.net/manual/en/memcached.getmultibykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param array $keys

    - * Array of keys to retrieve. - *

    - * @param int $flags [optional]

    - * The flags for the get operation. - *

    - * @return array|false the array of found items or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function getMultiByKey ($server_key, array $keys, $flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Request multiple items - * @link https://php.net/manual/en/memcached.getdelayed.php - * @param array $keys

    - * Array of keys to request. - *

    - * @param bool $with_cas [optional]

    - * Whether to request CAS token values also. - *

    - * @param callable $value_cb [optional]

    - * The result callback or NULL. - *

    - * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function getDelayed (array $keys, $with_cas = null, callable $value_cb = null) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Request multiple items from a specific server - * @link https://php.net/manual/en/memcached.getdelayedbykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param array $keys

    - * Array of keys to request. - *

    - * @param bool $with_cas [optional]

    - * Whether to request CAS token values also. - *

    - * @param callable $value_cb [optional]

    - * The result callback or NULL. - *

    - * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function getDelayedByKey ($server_key, array $keys, $with_cas = null, callable $value_cb = null) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Fetch the next result - * @link https://php.net/manual/en/memcached.fetch.php - * @return array|false the next result or FALSE otherwise. - * The Memcached::getResultCode will return - * Memcached::RES_END if result set is exhausted. - */ - public function fetch () {} - - /** - * (PECL memcached >= 0.1.0)
    - * Fetch all the remaining results - * @link https://php.net/manual/en/memcached.fetchall.php - * @return array|false the results or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function fetchAll () {} - - /** - * (PECL memcached >= 0.1.0)
    - * Store an item - * @link https://php.net/manual/en/memcached.set.php - * @param string $key

    - * The key under which to store the value. - *

    - * @param mixed $value

    - * The value to store. - *

    - * @param int $expiration [optional]

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @param int $udf_flags [optional] - * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function set ($key, $value, $expiration = 0, $udf_flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Store an item on a specific server - * @link https://php.net/manual/en/memcached.setbykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key under which to store the value. - *

    - * @param mixed $value

    - * The value to store. - *

    - * @param int $expiration [optional]

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @param int $udf_flags [optional] - * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function setByKey ($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} - - /** - * (PECL memcached >= 2.0.0)
    - * Set a new expiration on an item - * @link https://php.net/manual/en/memcached.touch.php - * @param string $key

    - * The key under which to store the value. - *

    - * @param int $expiration

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function touch ($key, $expiration = 0) {} - - /** - * (PECL memcached >= 2.0.0)
    - * Set a new expiration on an item on a specific server - * @link https://php.net/manual/en/memcached.touchbykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key under which to store the value. - *

    - * @param int $expiration

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function touchByKey ($server_key, $key, $expiration) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Store multiple items - * @link https://php.net/manual/en/memcached.setmulti.php - * @param array $items

    - * An array of key/value pairs to store on the server. - *

    - * @param int $expiration [optional]

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @param int $udf_flags [optional] - * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function setMulti (array $items, $expiration = 0, $udf_flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Store multiple items on a specific server - * @link https://php.net/manual/en/memcached.setmultibykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param array $items

    - * An array of key/value pairs to store on the server. - *

    - * @param int $expiration [optional]

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @param int $udf_flags [optional] - * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function setMultiByKey ($server_key, array $items, $expiration = 0, $udf_flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Compare and swap an item - * @link https://php.net/manual/en/memcached.cas.php - * @param float $cas_token

    - * Unique value associated with the existing item. Generated by memcache. - *

    - * @param string $key

    - * The key under which to store the value. - *

    - * @param mixed $value

    - * The value to store. - *

    - * @param int $expiration [optional]

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @param int $udf_flags [optional] - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_DATA_EXISTS if the item you are trying - * to store has been modified since you last fetched it. - */ - public function cas ($cas_token, $key, $value, $expiration = 0, $udf_flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Compare and swap an item on a specific server - * @link https://php.net/manual/en/memcached.casbykey.php - * @param float $cas_token

    - * Unique value associated with the existing item. Generated by memcache. - *

    - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key under which to store the value. - *

    - * @param mixed $value

    - * The value to store. - *

    - * @param int $expiration [optional]

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @param int $udf_flags [optional] - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_DATA_EXISTS if the item you are trying - * to store has been modified since you last fetched it. - */ - public function casByKey ($cas_token, $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Add an item under a new key - * @link https://php.net/manual/en/memcached.add.php - * @param string $key

    - * The key under which to store the value. - *

    - * @param mixed $value

    - * The value to store. - *

    - * @param int $expiration [optional]

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @param int $udf_flags [optional] - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key already exists. - */ - public function add ($key, $value, $expiration = 0, $udf_flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Add an item under a new key on a specific server - * @link https://php.net/manual/en/memcached.addbykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key under which to store the value. - *

    - * @param mixed $value

    - * The value to store. - *

    - * @param int $expiration [optional]

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @param int $udf_flags [optional] - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key already exists. - */ - public function addByKey ($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Append data to an existing item - * @link https://php.net/manual/en/memcached.append.php - * @param string $key

    - * The key under which to store the value. - *

    - * @param string $value

    - * The string to append. - *

    - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function append ($key, $value) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Append data to an existing item on a specific server - * @link https://php.net/manual/en/memcached.appendbykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key under which to store the value. - *

    - * @param string $value

    - * The string to append. - *

    - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function appendByKey ($server_key, $key, $value) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Prepend data to an existing item - * @link https://php.net/manual/en/memcached.prepend.php - * @param string $key

    - * The key of the item to prepend the data to. - *

    - * @param string $value

    - * The string to prepend. - *

    - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function prepend ($key, $value) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Prepend data to an existing item on a specific server - * @link https://php.net/manual/en/memcached.prependbykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key of the item to prepend the data to. - *

    - * @param string $value

    - * The string to prepend. - *

    - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function prependByKey ($server_key, $key, $value) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Replace the item under an existing key - * @link https://php.net/manual/en/memcached.replace.php - * @param string $key

    - * The key under which to store the value. - *

    - * @param mixed $value

    - * The value to store. - *

    - * @param int $expiration [optional]

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @param int $udf_flags [optional] - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function replace ($key, $value, $expiration = null, $udf_flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Replace the item under an existing key on a specific server - * @link https://php.net/manual/en/memcached.replacebykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key under which to store the value. - *

    - * @param mixed $value

    - * The value to store. - *

    - * @param int $expiration [optional]

    - * The expiration time, defaults to 0. See Expiration Times for more info. - *

    - * @param int $udf_flags [optional] - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTSTORED if the key does not exist. - */ - public function replaceByKey ($server_key, $key, $value, $expiration = null, $udf_flags = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Delete an item - * @link https://php.net/manual/en/memcached.delete.php - * @param string $key

    - * The key to be deleted. - *

    - * @param int $time [optional]

    - * The amount of time the server will wait to delete the item. - *

    - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function delete ($key, $time = 0) {} - - /** - * (PECL memcached >= 2.0.0)
    - * Delete multiple items - * @link https://php.net/manual/en/memcached.deletemulti.php - * @param array $keys

    - * The keys to be deleted. - *

    - * @param int $time [optional]

    - * The amount of time the server will wait to delete the items. - *

    - * @return array Returns array indexed by keys and where values are indicating whether operation succeeded or not. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function deleteMulti (array $keys, $time = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Delete an item from a specific server - * @link https://php.net/manual/en/memcached.deletebykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key to be deleted. - *

    - * @param int $time [optional]

    - * The amount of time the server will wait to delete the item. - *

    - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function deleteByKey ($server_key, $key, $time = 0) {} - - /** - * (PECL memcached >= 2.0.0)
    - * Delete multiple items from a specific server - * @link https://php.net/manual/en/memcached.deletemultibykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param array $keys

    - * The keys to be deleted. - *

    - * @param int $time [optional]

    - * The amount of time the server will wait to delete the items. - *

    - * @return bool TRUE on success or FALSE on failure. - * The Memcached::getResultCode will return - * Memcached::RES_NOTFOUND if the key does not exist. - */ - public function deleteMultiByKey ($server_key, array $keys, $time = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Increment numeric item's value - * @link https://php.net/manual/en/memcached.increment.php - * @param string $key

    - * The key of the item to increment. - *

    - * @param int $offset [optional]

    - * The amount by which to increment the item's value. - *

    - * @param int $initial_value [optional]

    - * The value to set the item to if it doesn't currently exist. - *

    - * @param int $expiry [optional]

    - * The expiry time to set on the item. - *

    - * @return int|false new item's value on success or FALSE on failure. - */ - public function increment ($key, $offset = 1, $initial_value = 0, $expiry = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Decrement numeric item's value - * @link https://php.net/manual/en/memcached.decrement.php - * @param string $key

    - * The key of the item to decrement. - *

    - * @param int $offset [optional]

    - * The amount by which to decrement the item's value. - *

    - * @param int $initial_value [optional]

    - * The value to set the item to if it doesn't currently exist. - *

    - * @param int $expiry [optional]

    - * The expiry time to set on the item. - *

    - * @return int|false item's new value on success or FALSE on failure. - */ - public function decrement ($key, $offset = 1, $initial_value = 0, $expiry = 0) {} - - /** - * (PECL memcached >= 2.0.0)
    - * Increment numeric item's value, stored on a specific server - * @link https://php.net/manual/en/memcached.incrementbykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key of the item to increment. - *

    - * @param int $offset [optional]

    - * The amount by which to increment the item's value. - *

    - * @param int $initial_value [optional]

    - * The value to set the item to if it doesn't currently exist. - *

    - * @param int $expiry [optional]

    - * The expiry time to set on the item. - *

    - * @return int|false new item's value on success or FALSE on failure. - */ - public function incrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} - - /** - * (PECL memcached >= 2.0.0)
    - * Decrement numeric item's value, stored on a specific server - * @link https://php.net/manual/en/memcached.decrementbykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @param string $key

    - * The key of the item to decrement. - *

    - * @param int $offset [optional]

    - * The amount by which to decrement the item's value. - *

    - * @param int $initial_value [optional]

    - * The value to set the item to if it doesn't currently exist. - *

    - * @param int $expiry [optional]

    - * The expiry time to set on the item. - *

    - * @return int|false item's new value on success or FALSE on failure. - */ - public function decrementByKey ($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Add a server to the server pool - * @link https://php.net/manual/en/memcached.addserver.php - * @param string $host

    - * The hostname of the memcache server. If the hostname is invalid, data-related - * operations will set - * Memcached::RES_HOST_LOOKUP_FAILURE result code. - *

    - * @param int $port

    - * The port on which memcache is running. Usually, this is - * 11211. - *

    - * @param int $weight [optional]

    - * The weight of the server relative to the total weight of all the - * servers in the pool. This controls the probability of the server being - * selected for operations. This is used only with consistent distribution - * option and usually corresponds to the amount of memory available to - * memcache on that server. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function addServer ($host, $port, $weight = 0) {} - - /** - * (PECL memcached >= 0.1.1)
    - * Add multiple servers to the server pool - * @link https://php.net/manual/en/memcached.addservers.php - * @param array $servers - * @return bool TRUE on success or FALSE on failure. - */ - public function addServers (array $servers) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Get the list of the servers in the pool - * @link https://php.net/manual/en/memcached.getserverlist.php - * @return array The list of all servers in the server pool. - */ - public function getServerList () {} - - /** - * (PECL memcached >= 0.1.0)
    - * Map a key to a server - * @link https://php.net/manual/en/memcached.getserverbykey.php - * @param string $server_key

    - * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. - *

    - * @return array an array containing three keys of host, - * port, and weight on success or FALSE - * on failure. - * Use Memcached::getResultCode if necessary. - */ - public function getServerByKey ($server_key) {} - - /** - * (PECL memcached >= 2.0.0)
    - * Clears all servers from the server list - * @link https://php.net/manual/en/memcached.resetserverlist.php - * @return bool TRUE on success or FALSE on failure. - */ - public function resetServerList () {} - - /** - * (PECL memcached >= 2.0.0)
    - * Close any open connections - * @link https://php.net/manual/en/memcached.quit.php - * @return bool TRUE on success or FALSE on failure. - */ - public function quit () {} - - /** - * (PECL memcached >= 0.1.0)
    - * Get server pool statistics - * @link https://php.net/manual/en/memcached.getstats.php - * @param string $type

    items, slabs, sizes ...

    - * @return array|false Array of server statistics, one entry per server. - */ - public function getStats ($type = null) {} - - /** - * (PECL memcached >= 0.1.5)
    - * Get server pool version info - * @link https://php.net/manual/en/memcached.getversion.php - * @return array Array of server versions, one entry per server. - */ - public function getVersion () {} - - /** - * (PECL memcached >= 2.0.0)
    - * Gets the keys stored on all the servers - * @link https://php.net/manual/en/memcached.getallkeys.php - * @return array|false the keys stored on all the servers on success or FALSE on failure. - */ - public function getAllKeys () {} - - /** - * (PECL memcached >= 0.1.0)
    - * Invalidate all items in the cache - * @link https://php.net/manual/en/memcached.flush.php - * @param int $delay [optional]

    - * Numer of seconds to wait before invalidating the items. - *

    - * @return bool TRUE on success or FALSE on failure. - * Use Memcached::getResultCode if necessary. - */ - public function flush ($delay = 0) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Retrieve a Memcached option value - * @link https://php.net/manual/en/memcached.getoption.php - * @param int $option

    - * One of the Memcached::OPT_* constants. - *

    - * @return mixed the value of the requested option, or FALSE on - * error. - */ - public function getOption ($option) {} - - /** - * (PECL memcached >= 0.1.0)
    - * Set a Memcached option - * @link https://php.net/manual/en/memcached.setoption.php - * @param int $option - * @param mixed $value - * @return bool TRUE on success or FALSE on failure. - */ - public function setOption ($option, $value) {} - - /** - * (PECL memcached >= 2.0.0)
    - * Set Memcached options - * @link https://php.net/manual/en/memcached.setoptions.php - * @param array $options

    - * An associative array of options where the key is the option to set and - * the value is the new value for the option. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setOptions (array $options) {} - - /** - * (PECL memcached >= 2.0.0)
    - * Set the credentials to use for authentication - * @link https://secure.php.net/manual/en/memcached.setsaslauthdata.php - * @param string $username

    - * The username to use for authentication. - *

    - * @param string $password

    - * The password to use for authentication. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setSaslAuthData (string $username , string $password) {} - - /** - * (PECL memcached >= 2.0.0)
    - * Check if a persitent connection to memcache is being used - * @link https://php.net/manual/en/memcached.ispersistent.php - * @return bool true if Memcache instance uses a persistent connection, false otherwise. - */ - public function isPersistent () {} - - /** - * (PECL memcached >= 2.0.0)
    - * Check if the instance was recently created - * @link https://php.net/manual/en/memcached.ispristine.php - * @return bool the true if instance is recently created, false otherwise. - */ - public function isPristine () {} - - /** - * Flush and send buffered commands - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c - * @return bool - */ - public function flushBuffers () {} - - /** - * Sets AES encryption key (libmemcached 1.0.6 and higher) - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c - * @param string $key - * @return bool - */ - public function setEncodingKey ( $key ) {} - - /** - * Returns the last disconnected server. Was added in 0.34 according to libmemcached's Changelog - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c - * @return array|false - */ - public function getLastDisconnectedServer () {} - - /** - * Returns the last error errno that occurred - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c - * @return int - */ - public function getLastErrorErrno () {} - - /** - * Returns the last error code that occurred - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c - * @return int - */ - public function getLastErrorCode () {} - - /** - * Returns the last error message that occurred - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c - * @return string - */ - public function getLastErrorMessage () {} - - /** - * Sets the memcached virtual buckets - * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c - * @param array $host_map - * @param array $forward_map - * @param int $replicas - * @return bool - */ - public function setBucket (array $host_map, array $forward_map, $replicas) {} - +class Memcached +{ + /** + *

    Enables or disables payload compression. When enabled, + * item values longer than a certain threshold (currently 100 bytes) will be + * compressed during storage and decompressed during retrieval + * transparently.

    + *

    Type: boolean, default: TRUE.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_COMPRESSION = -1001; + public const OPT_COMPRESSION_TYPE = -1004; + + /** + *

    This can be used to create a "domain" for your item keys. The value + * specified here will be prefixed to each of the keys. It cannot be + * longer than 128 characters and will reduce the + * maximum available key size. The prefix is applied only to the item keys, + * not to the server keys.

    + *

    Type: string, default: "".

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_PREFIX_KEY = -1002; + + /** + *

    + * Specifies the serializer to use for serializing non-scalar values. + * The valid serializers are Memcached::SERIALIZER_PHP + * or Memcached::SERIALIZER_IGBINARY. The latter is + * supported only when memcached is configured with + * --enable-memcached-igbinary option and the + * igbinary extension is loaded. + *

    + *

    Type: integer, default: Memcached::SERIALIZER_PHP.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_SERIALIZER = -1003; + + /** + *

    Indicates whether igbinary serializer support is available.

    + *

    Type: boolean.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HAVE_IGBINARY = 0; + + /** + *

    Indicates whether JSON serializer support is available.

    + *

    Type: boolean.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HAVE_JSON = 0; + + /** + *

    Indicates whether msgpack serializer support is available.

    + *

    Type: boolean.

    + * Available as of Memcached 3.0.0. + * @since 3.0.0 + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HAVE_MSGPACK = 0; + + /** + *

    Indicate whether set_encoding_key is available

    + *

    Type: boolean.

    + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php, https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c#L4387 + */ + public const HAVE_ENCODING = 0; + + /** + * Feature support + */ + public const HAVE_SESSION = 1; + public const HAVE_SASL = 0; + + /** + *

    Specifies the hashing algorithm used for the item keys. The valid + * values are supplied via Memcached::HASH_* constants. + * Each hash algorithm has its advantages and its disadvantages. Go with the + * default if you don't know or don't care.

    + *

    Type: integer, default: Memcached::HASH_DEFAULT

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_HASH = 2; + + /** + *

    The default (Jenkins one-at-a-time) item key hashing algorithm.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HASH_DEFAULT = 0; + + /** + *

    MD5 item key hashing algorithm.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HASH_MD5 = 1; + + /** + *

    CRC item key hashing algorithm.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HASH_CRC = 2; + + /** + *

    FNV1_64 item key hashing algorithm.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HASH_FNV1_64 = 3; + + /** + *

    FNV1_64A item key hashing algorithm.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HASH_FNV1A_64 = 4; + + /** + *

    FNV1_32 item key hashing algorithm.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HASH_FNV1_32 = 5; + + /** + *

    FNV1_32A item key hashing algorithm.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HASH_FNV1A_32 = 6; + + /** + *

    Hsieh item key hashing algorithm.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HASH_HSIEH = 7; + + /** + *

    Murmur item key hashing algorithm.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const HASH_MURMUR = 8; + + /** + *

    Specifies the method of distributing item keys to the servers. + * Currently supported methods are modulo and consistent hashing. Consistent + * hashing delivers better distribution and allows servers to be added to + * the cluster with minimal cache losses.

    + *

    Type: integer, default: Memcached::DISTRIBUTION_MODULA.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_DISTRIBUTION = 9; + + /** + *

    Modulo-based key distribution algorithm.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const DISTRIBUTION_MODULA = 0; + + /** + *

    Consistent hashing key distribution algorithm (based on libketama).

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const DISTRIBUTION_CONSISTENT = 1; + public const DISTRIBUTION_VIRTUAL_BUCKET = 6; + + /** + *

    Enables or disables compatibility with libketama-like behavior. When + * enabled, the item key hashing algorithm is set to MD5 and distribution is + * set to be weighted consistent hashing distribution. This is useful + * because other libketama-based clients (Python, Ruby, etc.) with the same + * server configuration will be able to access the keys transparently. + *

    + *

    + * It is highly recommended to enable this option if you want to use + * consistent hashing, and it may be enabled by default in future + * releases. + *

    + *

    Type: boolean, default: FALSE.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_LIBKETAMA_COMPATIBLE = 16; + public const OPT_LIBKETAMA_HASH = 17; + public const OPT_TCP_KEEPALIVE = 32; + + /** + *

    Enables or disables buffered I/O. Enabling buffered I/O causes + * storage commands to "buffer" instead of being sent. Any action that + * retrieves data causes this buffer to be sent to the remote connection. + * Quitting the connection or closing down the connection will also cause + * the buffered data to be pushed to the remote connection.

    + *

    Type: boolean, default: FALSE.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_BUFFER_WRITES = 10; + + /** + *

    Enable the use of the binary protocol. Please note that you cannot + * toggle this option on an open connection.

    + *

    Type: boolean, default: FALSE.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_BINARY_PROTOCOL = 18; + + /** + *

    Enables or disables asynchronous I/O. This is the fastest transport + * available for storage functions.

    + *

    Type: boolean, default: FALSE.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_NO_BLOCK = 0; + + /** + *

    Enables or disables the no-delay feature for connecting sockets (may + * be faster in some environments).

    + *

    Type: boolean, default: FALSE.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_TCP_NODELAY = 1; + + /** + *

    The maximum socket send buffer in bytes.

    + *

    Type: integer, default: varies by platform/kernel + * configuration.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_SOCKET_SEND_SIZE = 4; + + /** + *

    The maximum socket receive buffer in bytes.

    + *

    Type: integer, default: varies by platform/kernel + * configuration.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_SOCKET_RECV_SIZE = 5; + + /** + *

    In non-blocking mode this set the value of the timeout during socket + * connection, in milliseconds.

    + *

    Type: integer, default: 1000.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_CONNECT_TIMEOUT = 14; + + /** + *

    The amount of time, in seconds, to wait until retrying a failed + * connection attempt.

    + *

    Type: integer, default: 0.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_RETRY_TIMEOUT = 15; + + /** + *

    Socket sending timeout, in microseconds. In cases where you cannot + * use non-blocking I/O this will allow you to still have timeouts on the + * sending of data.

    + *

    Type: integer, default: 0.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_SEND_TIMEOUT = 19; + + /** + *

    Socket reading timeout, in microseconds. In cases where you cannot + * use non-blocking I/O this will allow you to still have timeouts on the + * reading of data.

    + *

    Type: integer, default: 0.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_RECV_TIMEOUT = 20; + + /** + *

    Timeout for connection polling, in milliseconds.

    + *

    Type: integer, default: 1000.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_POLL_TIMEOUT = 8; + + /** + *

    Enables or disables caching of DNS lookups.

    + *

    Type: boolean, default: FALSE.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_CACHE_LOOKUPS = 6; + + /** + *

    Specifies the failure limit for server connection attempts. The + * server will be removed after this many continuous connection + * failures.

    + *

    Type: integer, default: 0.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const OPT_SERVER_FAILURE_LIMIT = 21; + public const OPT_AUTO_EJECT_HOSTS = 28; + public const OPT_HASH_WITH_PREFIX_KEY = 25; + public const OPT_NOREPLY = 26; + public const OPT_SORT_HOSTS = 12; + public const OPT_VERIFY_KEY = 13; + public const OPT_USE_UDP = 27; + public const OPT_NUMBER_OF_REPLICAS = 29; + public const OPT_RANDOMIZE_REPLICA_READ = 30; + public const OPT_CORK = 31; + public const OPT_REMOVE_FAILED_SERVERS = 35; + public const OPT_DEAD_TIMEOUT = 36; + public const OPT_SERVER_TIMEOUT_LIMIT = 37; + public const OPT_MAX = 38; + public const OPT_IO_BYTES_WATERMARK = 23; + public const OPT_IO_KEY_PREFETCH = 24; + public const OPT_IO_MSG_WATERMARK = 22; + public const OPT_LOAD_FROM_FILE = 34; + public const OPT_SUPPORT_CAS = 7; + public const OPT_TCP_KEEPIDLE = 33; + public const OPT_USER_DATA = 11; + + /** + * libmemcached result codes + */ + /** + *

    The operation was successful.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_SUCCESS = 0; + + /** + *

    The operation failed in some fashion.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_FAILURE = 1; + + /** + *

    DNS lookup failed.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_HOST_LOOKUP_FAILURE = 2; + + /** + *

    Failed to read network data.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_UNKNOWN_READ_FAILURE = 7; + + /** + *

    Bad command in memcached protocol.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_PROTOCOL_ERROR = 8; + + /** + *

    Error on the client side.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_CLIENT_ERROR = 9; + + /** + *

    Error on the server side.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_SERVER_ERROR = 10; + + /** + *

    Failed to write network data.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_WRITE_FAILURE = 5; + + /** + *

    Failed to do compare-and-swap: item you are trying to store has been + * modified since you last fetched it.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_DATA_EXISTS = 12; + + /** + *

    Item was not stored: but not because of an error. This normally + * means that either the condition for an "add" or a "replace" command + * wasn't met, or that the item is in a delete queue.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_NOTSTORED = 14; + + /** + *

    Item with this key was not found (with "get" operation or "cas" + * operations).

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_NOTFOUND = 16; + + /** + *

    Partial network data read error.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_PARTIAL_READ = 18; + + /** + *

    Some errors occurred during multi-get.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_SOME_ERRORS = 19; + + /** + *

    Server list is empty.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_NO_SERVERS = 20; + + /** + *

    End of result set.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_END = 21; + + /** + *

    System error.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_ERRNO = 26; + + /** + *

    The operation was buffered.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_BUFFERED = 32; + + /** + *

    The operation timed out.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_TIMEOUT = 31; + + /** + *

    Bad key.

    + * @link https://php.net/manual/en/memcached.constants.php, http://docs.libmemcached.org/index.html + */ + /** + *

    MEMCACHED_BAD_KEY_PROVIDED: The key provided is not a valid key.

    + */ + public const RES_BAD_KEY_PROVIDED = 33; + /** + *

    MEMCACHED_STORED: The requested object has been successfully stored on the server.

    + */ + public const RES_STORED = 15; + /** + *

    MEMCACHED_DELETED: The object requested by the key has been deleted.

    + */ + public const RES_DELETED = 22; + /** + *

    MEMCACHED_STAT: A “stat” command has been returned in the protocol.

    + */ + public const RES_STAT = 24; + /** + *

    MEMCACHED_ITEM: An item has been fetched (this is an internal error only).

    + */ + public const RES_ITEM = 25; + /** + *

    MEMCACHED_NOT_SUPPORTED: The given method is not supported in the server.

    + */ + public const RES_NOT_SUPPORTED = 28; + /** + *

    MEMCACHED_FETCH_NOTFINISHED: A request has been made, but the server has not finished the fetch of the last request.

    + */ + public const RES_FETCH_NOTFINISHED = 30; + /** + *

    MEMCACHED_SERVER_MARKED_DEAD: The requested server has been marked dead.

    + */ + public const RES_SERVER_MARKED_DEAD = 35; + /** + *

    MEMCACHED_UNKNOWN_STAT_KEY: The server you are communicating with has a stat key which has not be defined in the protocol.

    + */ + public const RES_UNKNOWN_STAT_KEY = 36; + /** + *

    MEMCACHED_INVALID_HOST_PROTOCOL: The server you are connecting too has an invalid protocol. Most likely you are connecting to an older server that does not speak the binary protocol.

    + */ + public const RES_INVALID_HOST_PROTOCOL = 34; + /** + *

    MEMCACHED_MEMORY_ALLOCATION_FAILURE: An error has occurred while trying to allocate memory.

    + */ + public const RES_MEMORY_ALLOCATION_FAILURE = 17; + /** + *

    MEMCACHED_E2BIG: Item is too large for the server to store.

    + */ + public const RES_E2BIG = 37; + /** + *

    MEMCACHED_KEY_TOO_BIG: The key that has been provided is too large for the given server.

    + */ + public const RES_KEY_TOO_BIG = 39; + /** + *

    MEMCACHED_SERVER_TEMPORARILY_DISABLED

    + */ + public const RES_SERVER_TEMPORARILY_DISABLED = 47; + /** + *

    MEMORY_ALLOCATION_FAILURE: An error has occurred while trying to allocate memory. + * + * #if defined(LIBMEMCACHED_VERSION_HEX) && LIBMEMCACHED_VERSION_HEX >= 0x01000008

    + */ + public const RES_SERVER_MEMORY_ALLOCATION_FAILURE = 48; + /** + *

    MEMCACHED_AUTH_PROBLEM: An unknown issue has occured during authentication.

    + */ + public const RES_AUTH_PROBLEM = 40; + /** + *

    MEMCACHED_AUTH_FAILURE: The credentials provided are not valid for this server.

    + */ + public const RES_AUTH_FAILURE = 41; + /** + *

    MEMCACHED_AUTH_CONTINUE: Authentication has been paused.

    + */ + public const RES_AUTH_CONTINUE = 42; + /** + *

    MEMCACHED_CONNECTION_FAILURE: A unknown error has occured while trying to connect to a server.

    + */ + public const RES_CONNECTION_FAILURE = 3; + /** + * MEMCACHED_CONNECTION_BIND_FAILURE: We were not able to bind() to the socket. + */ + #[Deprecated('Deprecated since version 0.30(libmemcached)')] + public const RES_CONNECTION_BIND_FAILURE = 4; + /** + *

    MEMCACHED_READ_FAILURE: A read failure has occurred.

    + */ + public const RES_READ_FAILURE = 6; + /** + *

    MEMCACHED_DATA_DOES_NOT_EXIST: The data requested with the key given was not found.

    + */ + public const RES_DATA_DOES_NOT_EXIST = 13; + /** + *

    MEMCACHED_VALUE: A value has been returned from the server (this is an internal condition only).

    + */ + public const RES_VALUE = 23; + /** + *

    MEMCACHED_FAIL_UNIX_SOCKET: A connection was not established with the server via a unix domain socket.

    + */ + public const RES_FAIL_UNIX_SOCKET = 27; + /** + * No key was provided.

    + */ + #[Deprecated('Deprecated since version 0.30 (libmemcached). Use MEMCACHED_BAD_KEY_PROVIDED instead.')] + public const RES_NO_KEY_PROVIDED = 29; + /** + *

    MEMCACHED_INVALID_ARGUMENTS: The arguments supplied to the given function were not valid.

    + */ + public const RES_INVALID_ARGUMENTS = 38; + /** + *

    MEMCACHED_PARSE_ERROR: An error has occurred while trying to parse the configuration string. You should use memparse to determine what the error was.

    + */ + public const RES_PARSE_ERROR = 43; + /** + *

    MEMCACHED_PARSE_USER_ERROR: An error has occurred in parsing the configuration string.

    + */ + public const RES_PARSE_USER_ERROR = 44; + /** + *

    MEMCACHED_DEPRECATED: The method that was requested has been deprecated.

    + */ + public const RES_DEPRECATED = 45; + //unknow + public const RES_IN_PROGRESS = 46; + /** + *

    MEMCACHED_MAXIMUM_RETURN: This in an internal only state.

    + */ + public const RES_MAXIMUM_RETURN = 49; + + /** + * Server callbacks, if compiled with --memcached-protocol + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php + */ + public const ON_CONNECT = 0; + public const ON_ADD = 1; + public const ON_APPEND = 2; + public const ON_DECREMENT = 3; + public const ON_DELETE = 4; + public const ON_FLUSH = 5; + public const ON_GET = 6; + public const ON_INCREMENT = 7; + public const ON_NOOP = 8; + public const ON_PREPEND = 9; + public const ON_QUIT = 10; + public const ON_REPLACE = 11; + public const ON_SET = 12; + public const ON_STAT = 13; + public const ON_VERSION = 14; + /** + * Constants used when compiled with --memcached-protocol + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php + */ + public const RESPONSE_SUCCESS = 0; + public const RESPONSE_KEY_ENOENT = 1; + public const RESPONSE_KEY_EEXISTS = 2; + public const RESPONSE_E2BIG = 3; + public const RESPONSE_EINVAL = 4; + public const RESPONSE_NOT_STORED = 5; + public const RESPONSE_DELTA_BADVAL = 6; + public const RESPONSE_NOT_MY_VBUCKET = 7; + public const RESPONSE_AUTH_ERROR = 32; + public const RESPONSE_AUTH_CONTINUE = 33; + public const RESPONSE_UNKNOWN_COMMAND = 129; + public const RESPONSE_ENOMEM = 130; + public const RESPONSE_NOT_SUPPORTED = 131; + public const RESPONSE_EINTERNAL = 132; + public const RESPONSE_EBUSY = 133; + public const RESPONSE_ETMPFAIL = 134; + + /** + *

    Failed to create network socket.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_CONNECTION_SOCKET_CREATE_FAILURE = 11; + + /** + *

    Payload failure: could not compress/decompress or serialize/unserialize the value.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const RES_PAYLOAD_FAILURE = -1001; + + /** + *

    The default PHP serializer.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const SERIALIZER_PHP = 1; + + /** + *

    The igbinary serializer. + * Instead of textual representation it stores PHP data structures in a + * compact binary form, resulting in space and time gains.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const SERIALIZER_IGBINARY = 2; + + /** + *

    The JSON serializer. Requires PHP 5.2.10+.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const SERIALIZER_JSON = 3; + public const SERIALIZER_JSON_ARRAY = 4; + /** + *

    The msgpack serializer.

    + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/memcached-api.php + */ + public const SERIALIZER_MSGPACK = 5; + + public const COMPRESSION_FASTLZ = 2; + public const COMPRESSION_ZLIB = 1; + + /** + *

    A flag for Memcached::getMulti and + * Memcached::getMultiByKey to ensure that the keys are + * returned in the same order as they were requested in. Non-existing keys + * get a default value of NULL.

    + * @link https://php.net/manual/en/memcached.constants.php + */ + public const GET_PRESERVE_ORDER = 1; + + /** + * A flag for Memcached::get(), Memcached::getMulti() and + * Memcached::getMultiByKey() to ensure that the CAS token values are returned as well. + * @link https://php.net/manual/en/memcached.constants.php + */ + public const GET_EXTENDED = 2; + + public const GET_ERROR_RETURN_VALUE = false; + + /** + * (PECL memcached >= 0.1.0)
    + * Create a Memcached instance + * @link https://php.net/manual/en/memcached.construct.php, https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c + * @param string $persistent_id [optional] + * @param callable $on_new_object_cb [optional] + * @param string $connection_str [optional] + */ + public function __construct($persistent_id = '', $on_new_object_cb = null, $connection_str = '') {} + + /** + * (PECL memcached >= 0.1.0)
    + * Return the result code of the last operation + * @link https://php.net/manual/en/memcached.getresultcode.php + * @return int Result code of the last Memcached operation. + */ + public function getResultCode() {} + + /** + * (PECL memcached >= 1.0.0)
    + * Return the message describing the result of the last operation + * @link https://php.net/manual/en/memcached.getresultmessage.php + * @return string Message describing the result of the last Memcached operation. + */ + public function getResultMessage() {} + + /** + * (PECL memcached >= 0.1.0)
    + * Retrieve an item + * @link https://php.net/manual/en/memcached.get.php + * @param string $key

    + * The key of the item to retrieve. + *

    + * @param callable $cache_cb [optional]

    + * Read-through caching callback or NULL. + *

    + * @param int $flags [optional]

    + * The flags for the get operation. + *

    + * @return mixed the value stored in the cache or FALSE otherwise. + * The Memcached::getResultCode will return + * Memcached::RES_NOTFOUND if the key does not exist. + */ + public function get($key, callable $cache_cb = null, $flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Retrieve an item from a specific server + * @link https://php.net/manual/en/memcached.getbykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key of the item to fetch. + *

    + * @param callable $cache_cb [optional]

    + * Read-through caching callback or NULL + *

    + * @param int $flags [optional]

    + * The flags for the get operation. + *

    + * @return mixed the value stored in the cache or FALSE otherwise. + * The Memcached::getResultCode will return + * Memcached::RES_NOTFOUND if the key does not exist. + */ + public function getByKey($server_key, $key, callable $cache_cb = null, $flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Retrieve multiple items + * @link https://php.net/manual/en/memcached.getmulti.php + * @param array $keys

    + * Array of keys to retrieve. + *

    + * @param int $flags [optional]

    + * The flags for the get operation. + *

    + * @return mixed the array of found items or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function getMulti(array $keys, $flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Retrieve multiple items from a specific server + * @link https://php.net/manual/en/memcached.getmultibykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param array $keys

    + * Array of keys to retrieve. + *

    + * @param int $flags [optional]

    + * The flags for the get operation. + *

    + * @return array|false the array of found items or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function getMultiByKey($server_key, array $keys, $flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Request multiple items + * @link https://php.net/manual/en/memcached.getdelayed.php + * @param array $keys

    + * Array of keys to request. + *

    + * @param bool $with_cas [optional]

    + * Whether to request CAS token values also. + *

    + * @param callable $value_cb [optional]

    + * The result callback or NULL. + *

    + * @return bool TRUE on success or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function getDelayed(array $keys, $with_cas = null, callable $value_cb = null) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Request multiple items from a specific server + * @link https://php.net/manual/en/memcached.getdelayedbykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param array $keys

    + * Array of keys to request. + *

    + * @param bool $with_cas [optional]

    + * Whether to request CAS token values also. + *

    + * @param callable $value_cb [optional]

    + * The result callback or NULL. + *

    + * @return bool TRUE on success or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function getDelayedByKey($server_key, array $keys, $with_cas = null, callable $value_cb = null) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Fetch the next result + * @link https://php.net/manual/en/memcached.fetch.php + * @return array|false the next result or FALSE otherwise. + * The Memcached::getResultCode will return + * Memcached::RES_END if result set is exhausted. + */ + public function fetch() {} + + /** + * (PECL memcached >= 0.1.0)
    + * Fetch all the remaining results + * @link https://php.net/manual/en/memcached.fetchall.php + * @return array|false the results or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function fetchAll() {} + + /** + * (PECL memcached >= 0.1.0)
    + * Store an item + * @link https://php.net/manual/en/memcached.set.php + * @param string $key

    + * The key under which to store the value. + *

    + * @param mixed $value

    + * The value to store. + *

    + * @param int $expiration [optional]

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @param int $udf_flags [optional] + * @return bool TRUE on success or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function set($key, $value, $expiration = 0, $udf_flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Store an item on a specific server + * @link https://php.net/manual/en/memcached.setbykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key under which to store the value. + *

    + * @param mixed $value

    + * The value to store. + *

    + * @param int $expiration [optional]

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @param int $udf_flags [optional] + * @return bool TRUE on success or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function setByKey($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} + + /** + * (PECL memcached >= 2.0.0)
    + * Set a new expiration on an item + * @link https://php.net/manual/en/memcached.touch.php + * @param string $key

    + * The key under which to store the value. + *

    + * @param int $expiration

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @return bool TRUE on success or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function touch($key, $expiration = 0) {} + + /** + * (PECL memcached >= 2.0.0)
    + * Set a new expiration on an item on a specific server + * @link https://php.net/manual/en/memcached.touchbykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key under which to store the value. + *

    + * @param int $expiration

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @return bool TRUE on success or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function touchByKey($server_key, $key, $expiration) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Store multiple items + * @link https://php.net/manual/en/memcached.setmulti.php + * @param array $items

    + * An array of key/value pairs to store on the server. + *

    + * @param int $expiration [optional]

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @param int $udf_flags [optional] + * @return bool TRUE on success or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function setMulti(array $items, $expiration = 0, $udf_flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Store multiple items on a specific server + * @link https://php.net/manual/en/memcached.setmultibykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param array $items

    + * An array of key/value pairs to store on the server. + *

    + * @param int $expiration [optional]

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @param int $udf_flags [optional] + * @return bool TRUE on success or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function setMultiByKey($server_key, array $items, $expiration = 0, $udf_flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Compare and swap an item + * @link https://php.net/manual/en/memcached.cas.php + * @param float $cas_token

    + * Unique value associated with the existing item. Generated by memcache. + *

    + * @param string $key

    + * The key under which to store the value. + *

    + * @param mixed $value

    + * The value to store. + *

    + * @param int $expiration [optional]

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @param int $udf_flags [optional] + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_DATA_EXISTS if the item you are trying + * to store has been modified since you last fetched it. + */ + public function cas($cas_token, $key, $value, $expiration = 0, $udf_flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Compare and swap an item on a specific server + * @link https://php.net/manual/en/memcached.casbykey.php + * @param float $cas_token

    + * Unique value associated with the existing item. Generated by memcache. + *

    + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key under which to store the value. + *

    + * @param mixed $value

    + * The value to store. + *

    + * @param int $expiration [optional]

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @param int $udf_flags [optional] + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_DATA_EXISTS if the item you are trying + * to store has been modified since you last fetched it. + */ + public function casByKey($cas_token, $server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Add an item under a new key + * @link https://php.net/manual/en/memcached.add.php + * @param string $key

    + * The key under which to store the value. + *

    + * @param mixed $value

    + * The value to store. + *

    + * @param int $expiration [optional]

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @param int $udf_flags [optional] + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTSTORED if the key already exists. + */ + public function add($key, $value, $expiration = 0, $udf_flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Add an item under a new key on a specific server + * @link https://php.net/manual/en/memcached.addbykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key under which to store the value. + *

    + * @param mixed $value

    + * The value to store. + *

    + * @param int $expiration [optional]

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @param int $udf_flags [optional] + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTSTORED if the key already exists. + */ + public function addByKey($server_key, $key, $value, $expiration = 0, $udf_flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Append data to an existing item + * @link https://php.net/manual/en/memcached.append.php + * @param string $key

    + * The key under which to store the value. + *

    + * @param string $value

    + * The string to append. + *

    + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTSTORED if the key does not exist. + */ + public function append($key, $value) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Append data to an existing item on a specific server + * @link https://php.net/manual/en/memcached.appendbykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key under which to store the value. + *

    + * @param string $value

    + * The string to append. + *

    + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTSTORED if the key does not exist. + */ + public function appendByKey($server_key, $key, $value) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Prepend data to an existing item + * @link https://php.net/manual/en/memcached.prepend.php + * @param string $key

    + * The key of the item to prepend the data to. + *

    + * @param string $value

    + * The string to prepend. + *

    + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTSTORED if the key does not exist. + */ + public function prepend($key, $value) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Prepend data to an existing item on a specific server + * @link https://php.net/manual/en/memcached.prependbykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key of the item to prepend the data to. + *

    + * @param string $value

    + * The string to prepend. + *

    + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTSTORED if the key does not exist. + */ + public function prependByKey($server_key, $key, $value) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Replace the item under an existing key + * @link https://php.net/manual/en/memcached.replace.php + * @param string $key

    + * The key under which to store the value. + *

    + * @param mixed $value

    + * The value to store. + *

    + * @param int $expiration [optional]

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @param int $udf_flags [optional] + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTSTORED if the key does not exist. + */ + public function replace($key, $value, $expiration = null, $udf_flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Replace the item under an existing key on a specific server + * @link https://php.net/manual/en/memcached.replacebykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key under which to store the value. + *

    + * @param mixed $value

    + * The value to store. + *

    + * @param int $expiration [optional]

    + * The expiration time, defaults to 0. See Expiration Times for more info. + *

    + * @param int $udf_flags [optional] + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTSTORED if the key does not exist. + */ + public function replaceByKey($server_key, $key, $value, $expiration = null, $udf_flags = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Delete an item + * @link https://php.net/manual/en/memcached.delete.php + * @param string $key

    + * The key to be deleted. + *

    + * @param int $time [optional]

    + * The amount of time the server will wait to delete the item. + *

    + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTFOUND if the key does not exist. + */ + public function delete($key, $time = 0) {} + + /** + * (PECL memcached >= 2.0.0)
    + * Delete multiple items + * @link https://php.net/manual/en/memcached.deletemulti.php + * @param array $keys

    + * The keys to be deleted. + *

    + * @param int $time [optional]

    + * The amount of time the server will wait to delete the items. + *

    + * @return array Returns array indexed by keys and where values are indicating whether operation succeeded or not. + * The Memcached::getResultCode will return + * Memcached::RES_NOTFOUND if the key does not exist. + */ + public function deleteMulti(array $keys, $time = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Delete an item from a specific server + * @link https://php.net/manual/en/memcached.deletebykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key to be deleted. + *

    + * @param int $time [optional]

    + * The amount of time the server will wait to delete the item. + *

    + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTFOUND if the key does not exist. + */ + public function deleteByKey($server_key, $key, $time = 0) {} + + /** + * (PECL memcached >= 2.0.0)
    + * Delete multiple items from a specific server + * @link https://php.net/manual/en/memcached.deletemultibykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param array $keys

    + * The keys to be deleted. + *

    + * @param int $time [optional]

    + * The amount of time the server will wait to delete the items. + *

    + * @return bool TRUE on success or FALSE on failure. + * The Memcached::getResultCode will return + * Memcached::RES_NOTFOUND if the key does not exist. + */ + public function deleteMultiByKey($server_key, array $keys, $time = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Increment numeric item's value + * @link https://php.net/manual/en/memcached.increment.php + * @param string $key

    + * The key of the item to increment. + *

    + * @param int $offset [optional]

    + * The amount by which to increment the item's value. + *

    + * @param int $initial_value [optional]

    + * The value to set the item to if it doesn't currently exist. + *

    + * @param int $expiry [optional]

    + * The expiry time to set on the item. + *

    + * @return int|false new item's value on success or FALSE on failure. + */ + public function increment($key, $offset = 1, $initial_value = 0, $expiry = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Decrement numeric item's value + * @link https://php.net/manual/en/memcached.decrement.php + * @param string $key

    + * The key of the item to decrement. + *

    + * @param int $offset [optional]

    + * The amount by which to decrement the item's value. + *

    + * @param int $initial_value [optional]

    + * The value to set the item to if it doesn't currently exist. + *

    + * @param int $expiry [optional]

    + * The expiry time to set on the item. + *

    + * @return int|false item's new value on success or FALSE on failure. + */ + public function decrement($key, $offset = 1, $initial_value = 0, $expiry = 0) {} + + /** + * (PECL memcached >= 2.0.0)
    + * Increment numeric item's value, stored on a specific server + * @link https://php.net/manual/en/memcached.incrementbykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key of the item to increment. + *

    + * @param int $offset [optional]

    + * The amount by which to increment the item's value. + *

    + * @param int $initial_value [optional]

    + * The value to set the item to if it doesn't currently exist. + *

    + * @param int $expiry [optional]

    + * The expiry time to set on the item. + *

    + * @return int|false new item's value on success or FALSE on failure. + */ + public function incrementByKey($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} + + /** + * (PECL memcached >= 2.0.0)
    + * Decrement numeric item's value, stored on a specific server + * @link https://php.net/manual/en/memcached.decrementbykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @param string $key

    + * The key of the item to decrement. + *

    + * @param int $offset [optional]

    + * The amount by which to decrement the item's value. + *

    + * @param int $initial_value [optional]

    + * The value to set the item to if it doesn't currently exist. + *

    + * @param int $expiry [optional]

    + * The expiry time to set on the item. + *

    + * @return int|false item's new value on success or FALSE on failure. + */ + public function decrementByKey($server_key, $key, $offset = 1, $initial_value = 0, $expiry = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Add a server to the server pool + * @link https://php.net/manual/en/memcached.addserver.php + * @param string $host

    + * The hostname of the memcache server. If the hostname is invalid, data-related + * operations will set + * Memcached::RES_HOST_LOOKUP_FAILURE result code. + *

    + * @param int $port

    + * The port on which memcache is running. Usually, this is + * 11211. + *

    + * @param int $weight [optional]

    + * The weight of the server relative to the total weight of all the + * servers in the pool. This controls the probability of the server being + * selected for operations. This is used only with consistent distribution + * option and usually corresponds to the amount of memory available to + * memcache on that server. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function addServer($host, $port, $weight = 0) {} + + /** + * (PECL memcached >= 0.1.1)
    + * Add multiple servers to the server pool + * @link https://php.net/manual/en/memcached.addservers.php + * @param array $servers + * @return bool TRUE on success or FALSE on failure. + */ + public function addServers(array $servers) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Get the list of the servers in the pool + * @link https://php.net/manual/en/memcached.getserverlist.php + * @return array The list of all servers in the server pool. + */ + public function getServerList() {} + + /** + * (PECL memcached >= 0.1.0)
    + * Map a key to a server + * @link https://php.net/manual/en/memcached.getserverbykey.php + * @param string $server_key

    + * The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations. + *

    + * @return array an array containing three keys of host, + * port, and weight on success or FALSE + * on failure. + * Use Memcached::getResultCode if necessary. + */ + public function getServerByKey($server_key) {} + + /** + * (PECL memcached >= 2.0.0)
    + * Clears all servers from the server list + * @link https://php.net/manual/en/memcached.resetserverlist.php + * @return bool TRUE on success or FALSE on failure. + */ + public function resetServerList() {} + + /** + * (PECL memcached >= 2.0.0)
    + * Close any open connections + * @link https://php.net/manual/en/memcached.quit.php + * @return bool TRUE on success or FALSE on failure. + */ + public function quit() {} + + /** + * (PECL memcached >= 0.1.0)
    + * Get server pool statistics + * @link https://php.net/manual/en/memcached.getstats.php + * @param string $type

    items, slabs, sizes ...

    + * @return array|false Array of server statistics, one entry per server. + */ + public function getStats($type = null) {} + + /** + * (PECL memcached >= 0.1.5)
    + * Get server pool version info + * @link https://php.net/manual/en/memcached.getversion.php + * @return array Array of server versions, one entry per server. + */ + public function getVersion() {} + + /** + * (PECL memcached >= 2.0.0)
    + * Gets the keys stored on all the servers + * @link https://php.net/manual/en/memcached.getallkeys.php + * @return array|false the keys stored on all the servers on success or FALSE on failure. + */ + public function getAllKeys() {} + + /** + * (PECL memcached >= 0.1.0)
    + * Invalidate all items in the cache + * @link https://php.net/manual/en/memcached.flush.php + * @param int $delay [optional]

    + * Numer of seconds to wait before invalidating the items. + *

    + * @return bool TRUE on success or FALSE on failure. + * Use Memcached::getResultCode if necessary. + */ + public function flush($delay = 0) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Retrieve a Memcached option value + * @link https://php.net/manual/en/memcached.getoption.php + * @param int $option

    + * One of the Memcached::OPT_* constants. + *

    + * @return mixed the value of the requested option, or FALSE on + * error. + */ + public function getOption($option) {} + + /** + * (PECL memcached >= 0.1.0)
    + * Set a Memcached option + * @link https://php.net/manual/en/memcached.setoption.php + * @param int $option + * @param mixed $value + * @return bool TRUE on success or FALSE on failure. + */ + public function setOption($option, $value) {} + + /** + * (PECL memcached >= 2.0.0)
    + * Set Memcached options + * @link https://php.net/manual/en/memcached.setoptions.php + * @param array $options

    + * An associative array of options where the key is the option to set and + * the value is the new value for the option. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setOptions(array $options) {} + + /** + * (PECL memcached >= 2.0.0)
    + * Set the credentials to use for authentication + * @link https://secure.php.net/manual/en/memcached.setsaslauthdata.php + * @param string $username

    + * The username to use for authentication. + *

    + * @param string $password

    + * The password to use for authentication. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setSaslAuthData(string $username, string $password) {} + + /** + * (PECL memcached >= 2.0.0)
    + * Check if a persitent connection to memcache is being used + * @link https://php.net/manual/en/memcached.ispersistent.php + * @return bool true if Memcache instance uses a persistent connection, false otherwise. + */ + public function isPersistent() {} + + /** + * (PECL memcached >= 2.0.0)
    + * Check if the instance was recently created + * @link https://php.net/manual/en/memcached.ispristine.php + * @return bool the true if instance is recently created, false otherwise. + */ + public function isPristine() {} + + /** + * Flush and send buffered commands + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c + * @return bool + */ + public function flushBuffers() {} + + /** + * Sets AES encryption key (libmemcached 1.0.6 and higher) + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c + * @param string $key + * @return bool + */ + public function setEncodingKey($key) {} + + /** + * Returns the last disconnected server. Was added in 0.34 according to libmemcached's Changelog + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c + * @return array|false + */ + public function getLastDisconnectedServer() {} + + /** + * Returns the last error errno that occurred + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c + * @return int + */ + public function getLastErrorErrno() {} + + /** + * Returns the last error code that occurred + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c + * @return int + */ + public function getLastErrorCode() {} + + /** + * Returns the last error message that occurred + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c + * @return string + */ + public function getLastErrorMessage() {} + + /** + * Sets the memcached virtual buckets + * @link https://github.com/php-memcached-dev/php-memcached/blob/v3.1.5/php_memcached.c + * @param array $host_map + * @param array $forward_map + * @param int $replicas + * @return bool + */ + public function setBucket(array $host_map, array $forward_map, $replicas) {} } /** * @link https://php.net/manual/en/class.memcachedexception.php */ -class MemcachedException extends RuntimeException { - #[\JetBrains\PhpStorm\Pure] - function __construct($errmsg = "", $errcode = 0 ) {} +class MemcachedException extends RuntimeException +{ + #[\JetBrains\PhpStorm\Pure] + public function __construct($errmsg = "", $errcode = 0) {} } // End of memcached v.3.1.5 -?> diff --git a/meminfo/meminfo.php b/meminfo/meminfo.php index d23d5238f..cd6fcad1e 100644 --- a/meminfo/meminfo.php +++ b/meminfo/meminfo.php @@ -7,4 +7,4 @@ * * @return void */ -function meminfo_dump ($stream) {} +function meminfo_dump($stream) {} diff --git a/meta/attributes/ArrayShape.php b/meta/attributes/ArrayShape.php index 8070d8884..17a91ad5b 100644 --- a/meta/attributes/ArrayShape.php +++ b/meta/attributes/ArrayShape.php @@ -15,9 +15,8 @@ * #[ArrayShape(["f" => "int", "string", "x" => "float"])] * This usage applied on an element effectively means that the array has 3 dimensions, the keys are "f", 1, and "x", and the corresponding types are "int", "string", and "float". */ -#[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD | Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)] -class ArrayShape { - public function __construct(array $shape) - { - } +#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD|Attribute::TARGET_PARAMETER|Attribute::TARGET_PROPERTY)] +class ArrayShape +{ + public function __construct(array $shape) {} } diff --git a/meta/attributes/Deprecated.php b/meta/attributes/Deprecated.php index a117d453f..08eb693f9 100644 --- a/meta/attributes/Deprecated.php +++ b/meta/attributes/Deprecated.php @@ -4,10 +4,10 @@ use Attribute; - -#[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::TARGET_CLASS_CONSTANT | Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] -class Deprecated { - const PHP_VERSIONS = [ +#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD|Attribute::TARGET_CLASS|Attribute::TARGET_CLASS_CONSTANT|Attribute::TARGET_PROPERTY|Attribute::TARGET_PARAMETER)] +class Deprecated +{ + public const PHP_VERSIONS = [ "5.3", "5.4", "5.5", @@ -38,7 +38,5 @@ class Deprecated { * @param string $since Element is deprecated starting with the provided PHP language level, applicable only for PhpStorm stubs entries */ public function __construct($reason = "", $replacement = "", - #[ExpectedValues(self::PHP_VERSIONS)] $since = "5.6") - { - } + #[ExpectedValues(self::PHP_VERSIONS)] $since = "5.6") {} } diff --git a/meta/attributes/ExpectedValues.php b/meta/attributes/ExpectedValues.php index f1698e760..65b6689f7 100644 --- a/meta/attributes/ExpectedValues.php +++ b/meta/attributes/ExpectedValues.php @@ -35,9 +35,8 @@ * The attribute with the number of provided constructor arguments different from 1 will result in undefined behavior. * @since 8.0 */ -#[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD | Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)] -class ExpectedValues { - public function __construct(array $values = [], array $flags = [], string $valuesFromClass = null, string $flagsFromClass = null) - { - } +#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD|Attribute::TARGET_PARAMETER|Attribute::TARGET_PROPERTY)] +class ExpectedValues +{ + public function __construct(array $values = [], array $flags = [], string $valuesFromClass = null, string $flagsFromClass = null) {} } diff --git a/meta/attributes/Immutable.php b/meta/attributes/Immutable.php index d34e7dee8..49b537e7e 100644 --- a/meta/attributes/Immutable.php +++ b/meta/attributes/Immutable.php @@ -16,15 +16,12 @@ * * @since 8.0 */ -#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_CLASS)] +#[Attribute(Attribute::TARGET_PROPERTY|Attribute::TARGET_CLASS)] class Immutable { - const CONSTRUCTOR_WRITE_SCOPE = "constructor"; - const PRIVATE_WRITE_SCOPE = "private"; - const PROTECTED_WRITE_SCOPE = "protected"; + public const CONSTRUCTOR_WRITE_SCOPE = "constructor"; + public const PRIVATE_WRITE_SCOPE = "private"; + public const PROTECTED_WRITE_SCOPE = "protected"; - public function __construct(#[ExpectedValues(valuesFromClass: Immutable::class)] - $allowedWriteScope = self::CONSTRUCTOR_WRITE_SCOPE) - { - } + public function __construct(#[ExpectedValues(valuesFromClass: Immutable::class)] $allowedWriteScope = self::CONSTRUCTOR_WRITE_SCOPE) {} } diff --git a/meta/attributes/Language.php b/meta/attributes/Language.php index 33d70131a..f8efe67d9 100644 --- a/meta/attributes/Language.php +++ b/meta/attributes/Language.php @@ -11,11 +11,10 @@ * @since 8.0 */ #[Attribute(Attribute::TARGET_PARAMETER)] -class Language { +class Language +{ /** * @param string $languageName Language name like "PHP", "SQL", "RegExp", etc... */ - public function __construct(string $languageName) - { - } + public function __construct(string $languageName) {} } diff --git a/meta/attributes/NoReturn.php b/meta/attributes/NoReturn.php index 9a1807d91..8a9ea4502 100644 --- a/meta/attributes/NoReturn.php +++ b/meta/attributes/NoReturn.php @@ -12,13 +12,12 @@ * * {@see NoReturn::ANY_ARGUMENT} */ -#[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD)] -class NoReturn { +#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD)] +class NoReturn +{ /** * Use this constant to skip function argument on the specified position */ - const ANY_ARGUMENT = 1; - public function __construct(...$arguments) - { - } + public const ANY_ARGUMENT = 1; + public function __construct(...$arguments) {} } diff --git a/meta/attributes/Pure.php b/meta/attributes/Pure.php index cda0d2ba2..9fef06c64 100644 --- a/meta/attributes/Pure.php +++ b/meta/attributes/Pure.php @@ -10,7 +10,5 @@ * * @since 8.0 */ -#[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD)] -class Pure { - -} +#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD)] +class Pure {} diff --git a/meta/attributes/internal/LanguageLevelTypeAware.php b/meta/attributes/internal/LanguageLevelTypeAware.php index 548f7abd7..43a0f88a6 100644 --- a/meta/attributes/internal/LanguageLevelTypeAware.php +++ b/meta/attributes/internal/LanguageLevelTypeAware.php @@ -3,15 +3,13 @@ namespace JetBrains\PhpStorm\Internal; use Attribute; -use JetBrains\PhpStorm\Deprecated; -use JetBrains\PhpStorm\ExpectedValues; /** * For PhpStorm internal use only * @since 8.0 * @internal */ -#[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_PARAMETER)] +#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_PARAMETER)] class LanguageLevelTypeAware { public function __construct(array $languageLevelTypeMap, string $default) {} diff --git a/meta/attributes/internal/PhpStormStubsElementAvailable.php b/meta/attributes/internal/PhpStormStubsElementAvailable.php index b33766b30..4cc3179cc 100644 --- a/meta/attributes/internal/PhpStormStubsElementAvailable.php +++ b/meta/attributes/internal/PhpStormStubsElementAvailable.php @@ -11,7 +11,7 @@ * @since 8.0 * @internal */ -#[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD)] +#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD)] class PhpStormStubsElementAvailable { public function __construct( diff --git a/ming/ming.php b/ming/ming.php index 8b3bb842e..610b1c612 100644 --- a/ming/ming.php +++ b/ming/ming.php @@ -2,358 +2,341 @@ // Start of ming v. -class SWFShape { +class SWFShape +{ + public function __construct() {} - public function __construct () {} + public function setLine() {} - public function setLine () {} + public function addFill() {} - public function addFill () {} + public function setLeftFill() {} - public function setLeftFill () {} + public function setRightFill() {} - public function setRightFill () {} + public function movePenTo() {} - public function movePenTo () {} + public function movePen() {} - public function movePen () {} + public function drawLineTo() {} - public function drawLineTo () {} + public function drawLine() {} - public function drawLine () {} + public function drawCurveTo() {} - public function drawCurveTo () {} + public function drawCurve() {} - public function drawCurve () {} + public function drawGlyph() {} - public function drawGlyph () {} + public function drawCircle() {} - public function drawCircle () {} + public function drawArc() {} - public function drawArc () {} - - public function drawCubic () {} - - public function drawCubicTo () {} + public function drawCubic() {} + public function drawCubicTo() {} } -class SWFFill { - - public function __construct () {} +class SWFFill +{ + public function __construct() {} - public function moveTo () {} + public function moveTo() {} - public function scaleTo () {} + public function scaleTo() {} - public function rotateTo () {} + public function rotateTo() {} - public function skewXTo () {} - - public function skewYTo () {} + public function skewXTo() {} + public function skewYTo() {} } -class SWFGradient { - - public function __construct () {} - - public function addEntry () {} +class SWFGradient +{ + public function __construct() {} + public function addEntry() {} } -class SWFBitmap { - - public function __construct () {} +class SWFBitmap +{ + public function __construct() {} - public function getWidth () {} - - public function getHeight () {} + public function getWidth() {} + public function getHeight() {} } -class SWFText { - - public function __construct () {} +class SWFText +{ + public function __construct() {} - public function setFont () {} + public function setFont() {} - public function setHeight () {} + public function setHeight() {} - public function setSpacing () {} + public function setSpacing() {} - public function setColor () {} + public function setColor() {} - public function moveTo () {} + public function moveTo() {} - public function addString () {} + public function addString() {} - public function addUTF8String () {} + public function addUTF8String() {} - public function getWidth () {} + public function getWidth() {} - public function getUTF8Width () {} + public function getUTF8Width() {} - public function getAscent () {} + public function getAscent() {} - public function getDescent () {} - - public function getLeading () {} + public function getDescent() {} + public function getLeading() {} } -class SWFTextField { - - public function __construct () {} +class SWFTextField +{ + public function __construct() {} - public function setFont () {} + public function setFont() {} - public function setBounds () {} + public function setBounds() {} - public function align () {} + public function align() {} - public function setHeight () {} + public function setHeight() {} - public function setLeftMargin () {} + public function setLeftMargin() {} - public function setRightMargin () {} + public function setRightMargin() {} - public function setMargins () {} + public function setMargins() {} - public function setIndentation () {} + public function setIndentation() {} - public function setLineSpacing () {} + public function setLineSpacing() {} - public function setColor () {} + public function setColor() {} - public function setName () {} + public function setName() {} - public function addString () {} + public function addString() {} - public function setPadding () {} - - public function addChars () {} + public function setPadding() {} + public function addChars() {} } -class SWFFont { - - public function __construct () {} +class SWFFont +{ + public function __construct() {} - public function getWidth () {} + public function getWidth() {} - public function getUTF8Width () {} + public function getUTF8Width() {} - public function getAscent () {} + public function getAscent() {} - public function getDescent () {} + public function getDescent() {} - public function getLeading () {} - - public function getShape () {} + public function getLeading() {} + public function getShape() {} } -class SWFDisplayItem { - - public function moveTo () {} +class SWFDisplayItem +{ + public function moveTo() {} - public function move () {} + public function move() {} - public function scaleTo () {} + public function scaleTo() {} - public function scale () {} + public function scale() {} - public function rotateTo () {} + public function rotateTo() {} - public function rotate () {} + public function rotate() {} - public function skewXTo () {} + public function skewXTo() {} - public function skewX () {} + public function skewX() {} - public function skewYTo () {} + public function skewYTo() {} - public function skewY () {} + public function skewY() {} - public function setMatrix () {} + public function setMatrix() {} - public function setDepth () {} + public function setDepth() {} - public function setRatio () {} + public function setRatio() {} - public function addColor () {} + public function addColor() {} - public function multColor () {} + public function multColor() {} - public function setName () {} + public function setName() {} - public function addAction () {} + public function addAction() {} - public function remove () {} + public function remove() {} - public function setMaskLevel () {} + public function setMaskLevel() {} - public function endMask () {} + public function endMask() {} - public function getX () {} + public function getX() {} - public function getY () {} + public function getY() {} - public function getXScale () {} + public function getXScale() {} - public function getYScale () {} + public function getYScale() {} - public function getXSkew () {} + public function getXSkew() {} - public function getYSkew () {} - - public function getRot () {} + public function getYSkew() {} + public function getRot() {} } -class SWFMovie { - - public function __construct () {} +class SWFMovie +{ + public function __construct() {} - public function nextFrame () {} + public function nextFrame() {} - public function labelFrame () {} + public function labelFrame() {} - public function add () {} + public function add() {} - public function remove () {} + public function remove() {} - public function output () {} + public function output() {} - public function save () {} + public function save() {} - public function saveToFile () {} + public function saveToFile() {} - public function setBackground () {} + public function setBackground() {} - public function setRate () {} + public function setRate() {} - public function setDimension () {} + public function setDimension() {} - public function setFrames () {} + public function setFrames() {} - public function streamMP3 () {} + public function streamMP3() {} - public function addExport () {} + public function addExport() {} - public function writeExports () {} + public function writeExports() {} - public function startSound () {} + public function startSound() {} - public function stopSound () {} + public function stopSound() {} - public function importChar () {} + public function importChar() {} - public function importFont () {} + public function importFont() {} - public function addFont () {} + public function addFont() {} - public function protect () {} - - public function namedAnchor () {} + public function protect() {} + public function namedAnchor() {} } -class SWFButton { - - public function __construct () {} - - public function setHit () {} +class SWFButton +{ + public function __construct() {} - public function setOver () {} + public function setHit() {} - public function setUp () {} + public function setOver() {} - public function setDown () {} + public function setUp() {} - public function setAction () {} + public function setDown() {} - public function addShape () {} + public function setAction() {} - public function setMenu () {} + public function addShape() {} - public function addAction () {} + public function setMenu() {} - public function addSound () {} + public function addAction() {} + public function addSound() {} } -class SWFAction { - - public function __construct () {} - +class SWFAction +{ + public function __construct() {} } -class SWFMorph { +class SWFMorph +{ + public function __construct() {} - public function __construct () {} - - public function getShape1 () {} - - public function getShape2 () {} + public function getShape1() {} + public function getShape2() {} } -class SWFSprite { - - public function __construct () {} - - public function add () {} +class SWFSprite +{ + public function __construct() {} - public function remove () {} + public function add() {} - public function nextFrame () {} + public function remove() {} - public function labelFrame () {} + public function nextFrame() {} - public function setFrames () {} + public function labelFrame() {} - public function startSound () {} + public function setFrames() {} - public function stopSound () {} + public function startSound() {} + public function stopSound() {} } -class SWFSound { - - public function __construct () {} - +class SWFSound +{ + public function __construct() {} } -class SWFFontChar { - - public function addChars () {} - - public function addUTF8Chars () {} +class SWFFontChar +{ + public function addChars() {} + public function addUTF8Chars() {} } -class SWFSoundInstance { +class SWFSoundInstance +{ + public function noMultiple() {} - public function noMultiple () {} + public function loopInPoint() {} - public function loopInPoint () {} - - public function loopOutPoint () {} - - public function loopCount () {} + public function loopOutPoint() {} + public function loopCount() {} } -class SWFVideoStream { - - public function __construct () {} - - public function setdimension () {} +class SWFVideoStream +{ + public function __construct() {} - public function getnumframes () {} + public function setdimension() {} + public function getnumframes() {} } /** @@ -364,7 +347,7 @@ public function getnumframes () {} *

    * @return void */ -function ming_setcubicthreshold ($threshold) {} +function ming_setcubicthreshold($threshold) {} /** * Set the global scaling factor. @@ -374,7 +357,7 @@ function ming_setcubicthreshold ($threshold) {} *

    * @return void */ -function ming_setscale ($scale) {} +function ming_setscale($scale) {} /** * Sets the SWF version @@ -384,7 +367,7 @@ function ming_setscale ($scale) {} *

    * @return void */ -function ming_useswfversion ($version) {} +function ming_useswfversion($version) {} /** * Returns the action flag for keyPress(char) @@ -393,7 +376,7 @@ function ming_useswfversion ($version) {} * @return int What the function returns, first on success, then on failure. See * also the &return.success; entity */ -function ming_keypress ($char) {} +function ming_keypress($char) {} /** * Use constant pool @@ -403,7 +386,7 @@ function ming_keypress ($char) {} *

    * @return void */ -function ming_useconstants ($use) {} +function ming_useconstants($use) {} /** * Sets the SWF output compression @@ -414,61 +397,60 @@ function ming_useconstants ($use) {} *

    * @return void */ -function ming_setswfcompression ($level) {} - -define ('MING_NEW', 1); -define ('MING_ZLIB', 1); -define ('SWFBUTTON_HIT', 8); -define ('SWFBUTTON_DOWN', 4); -define ('SWFBUTTON_OVER', 2); -define ('SWFBUTTON_UP', 1); -define ('SWFBUTTON_MOUSEUPOUTSIDE', 64); -define ('SWFBUTTON_DRAGOVER', 160); -define ('SWFBUTTON_DRAGOUT', 272); -define ('SWFBUTTON_MOUSEUP', 8); -define ('SWFBUTTON_MOUSEDOWN', 4); -define ('SWFBUTTON_MOUSEOUT', 2); -define ('SWFBUTTON_MOUSEOVER', 1); -define ('SWFFILL_RADIAL_GRADIENT', 18); -define ('SWFFILL_LINEAR_GRADIENT', 16); -define ('SWFFILL_TILED_BITMAP', 64); -define ('SWFFILL_CLIPPED_BITMAP', 65); -define ('SWFTEXTFIELD_HASLENGTH', 2); -define ('SWFTEXTFIELD_NOEDIT', 8); -define ('SWFTEXTFIELD_PASSWORD', 16); -define ('SWFTEXTFIELD_MULTILINE', 32); -define ('SWFTEXTFIELD_WORDWRAP', 64); -define ('SWFTEXTFIELD_DRAWBOX', 2048); -define ('SWFTEXTFIELD_NOSELECT', 4096); -define ('SWFTEXTFIELD_HTML', 512); -define ('SWFTEXTFIELD_USEFONT', 256); -define ('SWFTEXTFIELD_AUTOSIZE', 16384); -define ('SWFTEXTFIELD_ALIGN_LEFT', 0); -define ('SWFTEXTFIELD_ALIGN_RIGHT', 1); -define ('SWFTEXTFIELD_ALIGN_CENTER', 2); -define ('SWFTEXTFIELD_ALIGN_JUSTIFY', 3); -define ('SWFACTION_ONLOAD', 1); -define ('SWFACTION_ENTERFRAME', 2); -define ('SWFACTION_UNLOAD', 4); -define ('SWFACTION_MOUSEMOVE', 8); -define ('SWFACTION_MOUSEDOWN', 16); -define ('SWFACTION_MOUSEUP', 32); -define ('SWFACTION_KEYDOWN', 64); -define ('SWFACTION_KEYUP', 128); -define ('SWFACTION_DATA', 256); -define ('SWF_SOUND_NOT_COMPRESSED', 0); -define ('SWF_SOUND_ADPCM_COMPRESSED', 16); -define ('SWF_SOUND_MP3_COMPRESSED', 32); -define ('SWF_SOUND_NOT_COMPRESSED_LE', 48); -define ('SWF_SOUND_NELLY_COMPRESSED', 96); -define ('SWF_SOUND_5KHZ', 0); -define ('SWF_SOUND_11KHZ', 4); -define ('SWF_SOUND_22KHZ', 8); -define ('SWF_SOUND_44KHZ', 12); -define ('SWF_SOUND_8BITS', 0); -define ('SWF_SOUND_16BITS', 2); -define ('SWF_SOUND_MONO', 0); -define ('SWF_SOUND_STEREO', 1); +function ming_setswfcompression($level) {} + +define('MING_NEW', 1); +define('MING_ZLIB', 1); +define('SWFBUTTON_HIT', 8); +define('SWFBUTTON_DOWN', 4); +define('SWFBUTTON_OVER', 2); +define('SWFBUTTON_UP', 1); +define('SWFBUTTON_MOUSEUPOUTSIDE', 64); +define('SWFBUTTON_DRAGOVER', 160); +define('SWFBUTTON_DRAGOUT', 272); +define('SWFBUTTON_MOUSEUP', 8); +define('SWFBUTTON_MOUSEDOWN', 4); +define('SWFBUTTON_MOUSEOUT', 2); +define('SWFBUTTON_MOUSEOVER', 1); +define('SWFFILL_RADIAL_GRADIENT', 18); +define('SWFFILL_LINEAR_GRADIENT', 16); +define('SWFFILL_TILED_BITMAP', 64); +define('SWFFILL_CLIPPED_BITMAP', 65); +define('SWFTEXTFIELD_HASLENGTH', 2); +define('SWFTEXTFIELD_NOEDIT', 8); +define('SWFTEXTFIELD_PASSWORD', 16); +define('SWFTEXTFIELD_MULTILINE', 32); +define('SWFTEXTFIELD_WORDWRAP', 64); +define('SWFTEXTFIELD_DRAWBOX', 2048); +define('SWFTEXTFIELD_NOSELECT', 4096); +define('SWFTEXTFIELD_HTML', 512); +define('SWFTEXTFIELD_USEFONT', 256); +define('SWFTEXTFIELD_AUTOSIZE', 16384); +define('SWFTEXTFIELD_ALIGN_LEFT', 0); +define('SWFTEXTFIELD_ALIGN_RIGHT', 1); +define('SWFTEXTFIELD_ALIGN_CENTER', 2); +define('SWFTEXTFIELD_ALIGN_JUSTIFY', 3); +define('SWFACTION_ONLOAD', 1); +define('SWFACTION_ENTERFRAME', 2); +define('SWFACTION_UNLOAD', 4); +define('SWFACTION_MOUSEMOVE', 8); +define('SWFACTION_MOUSEDOWN', 16); +define('SWFACTION_MOUSEUP', 32); +define('SWFACTION_KEYDOWN', 64); +define('SWFACTION_KEYUP', 128); +define('SWFACTION_DATA', 256); +define('SWF_SOUND_NOT_COMPRESSED', 0); +define('SWF_SOUND_ADPCM_COMPRESSED', 16); +define('SWF_SOUND_MP3_COMPRESSED', 32); +define('SWF_SOUND_NOT_COMPRESSED_LE', 48); +define('SWF_SOUND_NELLY_COMPRESSED', 96); +define('SWF_SOUND_5KHZ', 0); +define('SWF_SOUND_11KHZ', 4); +define('SWF_SOUND_22KHZ', 8); +define('SWF_SOUND_44KHZ', 12); +define('SWF_SOUND_8BITS', 0); +define('SWF_SOUND_16BITS', 2); +define('SWF_SOUND_MONO', 0); +define('SWF_SOUND_STEREO', 1); // End of ming v. -?> diff --git a/mongo/mongo.php b/mongo/mongo.php index f9457232e..27b32a06b 100644 --- a/mongo/mongo.php +++ b/mongo/mongo.php @@ -16,20 +16,20 @@ */ class MongoClient { - const VERSION = '3.x'; - const DEFAULT_HOST = "localhost" ; - const DEFAULT_PORT = 27017 ; - const RP_PRIMARY = "primary" ; - const RP_PRIMARY_PREFERRED = "primaryPreferred" ; - const RP_SECONDARY = "secondary" ; - const RP_SECONDARY_PREFERRED = "secondaryPreferred" ; - const RP_NEAREST = "nearest" ; + public const VERSION = '3.x'; + public const DEFAULT_HOST = "localhost"; + public const DEFAULT_PORT = 27017; + public const RP_PRIMARY = "primary"; + public const RP_PRIMARY_PREFERRED = "primaryPreferred"; + public const RP_SECONDARY = "secondary"; + public const RP_SECONDARY_PREFERRED = "secondaryPreferred"; + public const RP_NEAREST = "nearest"; /* Properties */ - public $connected = false ; - public $status = null ; - protected $server = null ; - protected $persistent = null ; + public $connected = false; + public $status = null; + protected $server = null; + protected $persistent = null; /* Methods */ /** @@ -102,7 +102,7 @@ class MongoClient * * @throws MongoConnectionException */ - public function __construct($server = "mongodb://localhost:27017", array $options = array("connect" => true), $driver_options) {} + public function __construct($server = "mongodb://localhost:27017", array $options = ["connect" => true], $driver_options) {} /** * (PECL mongo >= 1.3.0)
    @@ -110,7 +110,7 @@ public function __construct($server = "mongodb://localhost:27017", array $option * This method does not need to be called, except in unusual circumstances. * The driver will cleanly close the database connection when the Mongo object goes out of scope. * @link https://secure.php.net/manual/en/mongoclient.close.php - * @param boolean|string $connection [optional]

    + * @param bool|string $connection [optional]

    * If connection is not given, or FALSE then connection that would be selected for writes would be closed. In a single-node configuration, that is then the whole connection, but if you are connected to a replica set, close() will only close the connection to the primary server. * If connection is TRUE then all connections as known by the connection manager will be closed. This can include connections that are not referenced in the connection string used to create the object that you are calling close on. * If connection is a string argument, then it will only close the connection identified by this hash. Hashes are identifiers for a connection and can be obtained by calling {@see MongoClient::getConnections()}. @@ -145,16 +145,14 @@ public function dropDB($db) {} * @param string $dbname The database name. * @return MongoDB The database name. */ - public function __get ($dbname) - {} + public function __get($dbname) {} /** * Get connections * Returns an array of all open connections, and information about each of the servers * @return array */ - static public function getConnections () - {} + public static function getConnections() {} /** * Get hosts @@ -163,16 +161,14 @@ static public function getConnections () * connected to. * @return array */ - public function getHosts () - {} + public function getHosts() {} /** * Get read preference * Get the read preference for this connection * @return array */ - public function getReadPreference () - {} + public function getReadPreference() {} /** * (PECL mongo >= 1.5.0)
    @@ -181,8 +177,7 @@ public function getReadPreference () * The array contains the values w for an integer acknowledgement level or string mode, * and wtimeout denoting the maximum number of milliseconds to wait for the server to satisfy the write concern.

    */ - public function getWriteConcern () {} - + public function getWriteConcern() {} /** * Kills a specific cursor on the server @@ -199,7 +194,7 @@ public function getWriteConcern () {} * bit platforms (and Windows). *

    */ - public function killCursor ( $server_hash , $id) {} + public function killCursor($server_hash, $id) {} /** * (PECL mongo >= 1.3.0)
    @@ -209,7 +204,6 @@ public function killCursor ( $server_hash , $id) {} */ public function listDBs() {} - /** * (PECL mongo >= 1.3.0)
    * Gets a database collection @@ -238,8 +232,7 @@ public function selectDB($name) {} * @param array $tags * @return bool */ - public function setReadPreference ($readPreference, $tags = null) - {} + public function setReadPreference($readPreference, $tags = null) {} /** * (PECL mongo >= 1.1.0)
    @@ -248,9 +241,8 @@ public function setReadPreference ($readPreference, $tags = null) * @return string The address of the secondary this connection is using for reads. This may be the same as the previous address as addresses are randomly chosen. It may return only one address if only one secondary (or only the primary) is available. * For example, if we had a three member replica set with a primary, secondary, and arbiter this method would always return the address of the secondary. If the secondary became unavailable, this method would always return the address of the primary. If the primary also became unavailable, this method would throw an exception, as an arbiter cannot handle reads. * @throws MongoException (error code 15) if it is called on a non-replica-set connection. It will also throw MongoExceptions if it cannot find anyone (primary or secondary) to read from (error code 16). - * */ - public function switchSlave() {} + public function switchSlave() {} /** * String representation of this connection @@ -268,7 +260,8 @@ public function __toString() {} * @see MongoClient */ #[Deprecated("This class has been DEPRECATED as of version 1.3.0.")] -class Mongo extends MongoClient { +class Mongo extends MongoClient +{ /** * (PECL mongo >= 1.2.0)
    * Get pool size for connection pools @@ -298,11 +291,11 @@ public function getSlave() {} */ public function getSlaveOkay() {} /** - * Connects to paired database server - * @link https://secure.php.net/manual/en/mongo.pairconnect.php - * @throws MongoConnectionException - * @return bool - */ + * Connects to paired database server + * @link https://secure.php.net/manual/en/mongo.pairconnect.php + * @throws MongoConnectionException + * @return bool + */ #[Deprecated('Pass a string of the form "mongodb://server1,server2" to the constructor instead of using this method.')] public function pairConnect() {} @@ -340,7 +333,7 @@ public function poolDebug() {} *

    * @return bool returns the former value of slaveOkay for this instance. */ - public function setSlaveOkay ($ok) {} + public function setSlaveOkay($ok) {} /** *(PECL mongo >= 1.2.0)
    * Set the size for future connection pools. @@ -352,39 +345,39 @@ public function setSlaveOkay ($ok) {} #[Deprecated('Relying on this feature is highly discouraged. Please use MongoPool::setSize() instead.')] public function setPoolSize($size) {} /** - * Creates a persistent connection with a database server - * @link https://secure.php.net/manual/en/mongo.persistconnect.php - * @param string $username A username used to identify the connection. - * @param string $password A password used to identify the connection. - * @throws MongoConnectionException - * @return bool If the connection was successful. - */ + * Creates a persistent connection with a database server + * @link https://secure.php.net/manual/en/mongo.persistconnect.php + * @param string $username A username used to identify the connection. + * @param string $password A password used to identify the connection. + * @throws MongoConnectionException + * @return bool If the connection was successful. + */ #[Deprecated('Pass array("persist" => $id) to the constructor instead of using this method.')] public function persistConnect($username = "", $password = "") {} /** - * Creates a persistent connection with paired database servers - * @link https://secure.php.net/manual/en/mongo.pairpersistconnect.php - * @param string $username A username used to identify the connection. - * @param string $password A password used to identify the connection. - * @throws MongoConnectionException - * @return bool If the connection was successful. - */ + * Creates a persistent connection with paired database servers + * @link https://secure.php.net/manual/en/mongo.pairpersistconnect.php + * @param string $username A username used to identify the connection. + * @param string $password A password used to identify the connection. + * @throws MongoConnectionException + * @return bool If the connection was successful. + */ #[Deprecated('Pass "mongodb://server1,server2" and array("persist" => $id) to the constructor instead of using this method.')] public function pairPersistConnect($username = "", $password = "") {} - /** - * Connects with a database server - * - * @link https://secure.php.net/manual/en/mongo.connectutil.php - * @throws MongoConnectionException - * @return bool If the connection was successful. - */ + /** + * Connects with a database server + * + * @link https://secure.php.net/manual/en/mongo.connectutil.php + * @throws MongoConnectionException + * @return bool If the connection was successful. + */ protected function connectUtil() {} /** - * Check if there was an error on the most recent db operation performed - * @link https://secure.php.net/manual/en/mongo.lasterror.php + * Check if there was an error on the most recent db operation performed + * @link https://secure.php.net/manual/en/mongo.lasterror.php * @return array|null Returns the error, if there was one, or NULL. * @see MongoDB::lastError() */ @@ -392,29 +385,29 @@ protected function connectUtil() {} public function lastError() {} /** - * Checks for the last error thrown during a database operation - * @link https://secure.php.net/manual/en/mongo.preverror.php + * Checks for the last error thrown during a database operation + * @link https://secure.php.net/manual/en/mongo.preverror.php * @return array Returns the error and the number of operations ago it occurred. * @see MongoDB::prevError() */ #[Deprecated('Use MongoDB::prevError() instead.')] public function prevError() {} - /** - * Clears any flagged errors on the connection - * @link https://secure.php.net/manual/en/mongo.reseterror.php - * @return array Returns the database response. - * @see MongoDB::resetError() - */ + /** + * Clears any flagged errors on the connection + * @link https://secure.php.net/manual/en/mongo.reseterror.php + * @return array Returns the database response. + * @see MongoDB::resetError() + */ #[Deprecated('Use MongoDB::resetError() instead.')] public function resetError() {} - /** - * Creates a database error on the database. - * @link https://secure.php.net/manual/en/mongo.forceerror.php - * @return bool The database response. - * @see MongoDB::forceError() - */ + /** + * Creates a database error on the database. + * @link https://secure.php.net/manual/en/mongo.forceerror.php + * @return bool The database response. + * @see MongoDB::forceError() + */ #[Deprecated('Use MongoDB::forceError() instead.')] public function forceError() {} } @@ -423,24 +416,25 @@ public function forceError() {} * Instances of this class are used to interact with a database. * @link https://secure.php.net/manual/en/class.mongodb.php */ -class MongoDB { - /** - * Profiling is off. +class MongoDB +{ + /** + * Profiling is off. * @link https://php.net/manual/en/class.mongodb.php#mongodb.constants.profiling-off - */ - const PROFILING_OFF = 0; + */ + public const PROFILING_OFF = 0; - /** - * Profiling is on for slow operations (>100 ms). + /** + * Profiling is on for slow operations (>100 ms). * @link https://php.net/manual/en/class.mongodb.php#mongodb.constants.profiling-slow - */ - const PROFILING_SLOW = 1; + */ + public const PROFILING_SLOW = 1; - /** - * Profiling is on for all operations. + /** + * Profiling is on for all operations. * @link https://php.net/manual/en/class.mongodb.php#mongodb.constants.profiling-on - */ - const PROFILING_ON = 2; + */ + public const PROFILING_ON = 2; /** * @var int @@ -494,31 +488,31 @@ class MongoDB { */ public $wtimeout = 10000; - /** + /** * (PECL mongo >= 0.9.0)
    - * Creates a new database - * This method is not meant to be called directly. The preferred way to create an instance of MongoDB is through {@see Mongo::__get()} or {@see Mongo::selectDB()}. - * @link https://secure.php.net/manual/en/mongodb.construct.php - * @param MongoClient $conn Database connection. - * @param string $name Database name. - * @throws Exception + * Creates a new database + * This method is not meant to be called directly. The preferred way to create an instance of MongoDB is through {@see Mongo::__get()} or {@see Mongo::selectDB()}. + * @link https://secure.php.net/manual/en/mongodb.construct.php + * @param MongoClient $conn Database connection. + * @param string $name Database name. + * @throws Exception */ public function __construct($conn, $name) {} - /** - * The name of this database - * @link https://secure.php.net/manual/en/mongodb.--tostring.php - * @return string Returns this database's name. - */ + /** + * The name of this database + * @link https://secure.php.net/manual/en/mongodb.--tostring.php + * @return string Returns this database's name. + */ public function __toString() {} /** - * (PECL mongo >= 1.0.2)
    - * Gets a collection - * @link https://secure.php.net/manual/en/mongodb.get.php - * @param string $name The name of the collection. - * @return MongoCollection - */ + * (PECL mongo >= 1.0.2)
    + * Gets a collection + * @link https://secure.php.net/manual/en/mongodb.get.php + * @param string $name The name of the collection. + * @return MongoCollection + */ public function __get($name) {} /** @@ -533,19 +527,19 @@ public function getCollectionNames($includeSystemCollections = false) {} /** * (PECL mongo >= 0.9.0)
    - * Fetches toolkit for dealing with files stored in this database - * @link https://secure.php.net/manual/en/mongodb.getgridfs.php - * @param string $prefix [optional] The prefix for the files and chunks collections. - * @return MongoGridFS Returns a new gridfs object for this database. - */ + * Fetches toolkit for dealing with files stored in this database + * @link https://secure.php.net/manual/en/mongodb.getgridfs.php + * @param string $prefix [optional] The prefix for the files and chunks collections. + * @return MongoGridFS Returns a new gridfs object for this database. + */ public function getGridFS($prefix = "fs") {} - /** - * (PECL mongo >= 0.9.0)
    - * Gets this database's profiling level - * @link https://secure.php.net/manual/en/mongodb.getprofilinglevel.php - * @return int Returns the profiling level. - */ + /** + * (PECL mongo >= 0.9.0)
    + * Gets this database's profiling level + * @link https://secure.php.net/manual/en/mongodb.getprofilinglevel.php + * @return int Returns the profiling level. + */ public function getProfilingLevel() {} /** @@ -554,43 +548,43 @@ public function getProfilingLevel() {} * @link https://secure.php.net/manual/en/mongodb.getslaveokay.php * @return bool Returns the value of slaveOkay for this instance. */ - public function getSlaveOkay () {} + public function getSlaveOkay() {} /** * (PECL mongo >= 0.9.0)
    - * Sets this database's profiling level - * @link https://secure.php.net/manual/en/mongodb.setprofilinglevel.php - * @param int $level Profiling level. - * @return int Returns the previous profiling level. - */ + * Sets this database's profiling level + * @link https://secure.php.net/manual/en/mongodb.setprofilinglevel.php + * @param int $level Profiling level. + * @return int Returns the previous profiling level. + */ public function setProfilingLevel($level) {} - /** - * (PECL mongo >= 0.9.0)
    - * Drops this database - * @link https://secure.php.net/manual/en/mongodb.drop.php - * @return array Returns the database response. - */ + /** + * (PECL mongo >= 0.9.0)
    + * Drops this database + * @link https://secure.php.net/manual/en/mongodb.drop.php + * @return array Returns the database response. + */ public function drop() {} /** - * Repairs and compacts this database - * @link https://secure.php.net/manual/en/mongodb.repair.php - * @param bool $preserve_cloned_files [optional]

    If cloned files should be kept if the repair fails.

    - * @param bool $backup_original_files [optional]

    If original files should be backed up.

    - * @return array

    Returns db response.

    - */ + * Repairs and compacts this database + * @link https://secure.php.net/manual/en/mongodb.repair.php + * @param bool $preserve_cloned_files [optional]

    If cloned files should be kept if the repair fails.

    + * @param bool $backup_original_files [optional]

    If original files should be backed up.

    + * @return array

    Returns db response.

    + */ public function repair($preserve_cloned_files = false, $backup_original_files = false) {} /** * (PECL mongo >= 0.9.0)
    - * Gets a collection - * @link https://secure.php.net/manual/en/mongodb.selectcollection.php - * @param string $name The collection name. + * Gets a collection + * @link https://secure.php.net/manual/en/mongodb.selectcollection.php + * @param string $name The collection name. * @throws Exception if the collection name is invalid. * @return MongoCollection

    * Returns a new collection object. *

    - */ + */ public function selectCollection($name) {} /** @@ -603,12 +597,12 @@ public function selectCollection($name) {} *

    * @return bool Returns the former value of slaveOkay for this instance. */ - public function setSlaveOkay ($ok = true) {} + public function setSlaveOkay($ok = true) {} - /** - * Creates a collection - * @link https://secure.php.net/manual/en/mongodb.createcollection.php - * @param string $name The name of the collection. + /** + * Creates a collection + * @link https://secure.php.net/manual/en/mongodb.createcollection.php + * @param string $name The name of the collection. * @param array $options [optional]

    *

    * An array containing options for the collections. Each option is its own @@ -637,56 +631,55 @@ public function setSlaveOkay ($ok = true) {} * autoIndexId was FALSE. *

    *

    - * @return MongoCollection

    Returns a collection object representing the new collection.

    + * @return MongoCollection

    Returns a collection object representing the new collection.

    */ public function createCollection($name, $options) {} /** * (PECL mongo >= 0.9.0)
    * Drops a collection - * @link https://secure.php.net/manual/en/mongodb.dropcollection.php - * @param MongoCollection|string $coll MongoCollection or name of collection to drop. - * @return array Returns the database response. + * @link https://secure.php.net/manual/en/mongodb.dropcollection.php + * @param MongoCollection|string $coll MongoCollection or name of collection to drop. + * @return array Returns the database response. * @see MongoCollection::drop() - */ + */ #[Deprecated('Use MongoCollection::drop() instead.')] public function dropCollection($coll) {} - /** - * (PECL mongo >= 0.9.0)
    - * Get a list of collections in this database - * @link https://secure.php.net/manual/en/mongodb.listcollections.php - * @param bool $includeSystemCollections [optional]

    Include system collections.

    - * @return array Returns a list of MongoCollections. - */ + /** + * (PECL mongo >= 0.9.0)
    + * Get a list of collections in this database + * @link https://secure.php.net/manual/en/mongodb.listcollections.php + * @param bool $includeSystemCollections [optional]

    Include system collections.

    + * @return array Returns a list of MongoCollections. + */ public function listCollections($includeSystemCollections = false) {} /** * (PECL mongo >= 0.9.0)
    * Creates a database reference - * @link https://secure.php.net/manual/en/mongodb.createdbref.php - * @param string $collection The collection to which the database reference will point. - * @param mixed $document_or_id

    + * @link https://secure.php.net/manual/en/mongodb.createdbref.php + * @param string $collection The collection to which the database reference will point. + * @param mixed $document_or_id

    * If an array or object is given, its _id field will be * used as the reference ID. If a {@see MongoId} or scalar * is given, it will be used as the reference ID. *

    - * @return array

    Returns a database reference array.

    + * @return array

    Returns a database reference array.

    *

    * If an array without an _id field was provided as the * document_or_id parameter, NULL will be returned. *

    - */ + */ public function createDBRef($collection, $document_or_id) {} - - /** + /** * (PECL mongo >= 0.9.0)
    - * Fetches the document pointed to by a database reference - * @link https://secure.php.net/manual/en/mongodb.getdbref.php - * @param array $ref A database reference. - * @return array Returns the document pointed to by the reference. - */ + * Fetches the document pointed to by a database reference + * @link https://secure.php.net/manual/en/mongodb.getdbref.php + * @param array $ref A database reference. + * @return array Returns the document pointed to by the reference. + */ public function getDBRef(array $ref) {} /** @@ -700,18 +693,18 @@ public function getDBRef(array $ref) {} public function getWriteConcern() {} /** * (PECL mongo >= 0.9.3)
    - * Runs JavaScript code on the database server. - * @link https://secure.php.net/manual/en/mongodb.execute.php - * @param MongoCode|string $code Code to execute. - * @param array $args [optional] Arguments to be passed to code. - * @return array Returns the result of the evaluation. - */ - public function execute($code, array $args = array()) {} - - /** - * Execute a database command - * @link https://secure.php.net/manual/en/mongodb.command.php - * @param array $data The query to send. + * Runs JavaScript code on the database server. + * @link https://secure.php.net/manual/en/mongodb.execute.php + * @param MongoCode|string $code Code to execute. + * @param array $args [optional] Arguments to be passed to code. + * @return array Returns the result of the evaluation. + */ + public function execute($code, array $args = []) {} + + /** + * Execute a database command + * @link https://secure.php.net/manual/en/mongodb.command.php + * @param array $data The query to send. * @param array $options [optional]

    * This parameter is an associative array of the form * array("optionname" => <boolean>, ...). Currently @@ -719,7 +712,7 @@ public function execute($code, array $args = array()) {} *

      *
    • "timeout"

      Deprecated alias for "socketTimeoutMS".

    • *
    - * @return array Returns database response. + * @return array Returns database response. * Every database response is always maximum one document, * which means that the result of a database command can never exceed 16MB. * The resulting document's structure depends on the command, @@ -727,48 +720,48 @@ public function execute($code, array $args = array()) {} */ public function command(array $data, $options) {} - /** - * (PECL mongo >= 0.9.5)
    - * Check if there was an error on the most recent db operation performed - * @link https://secure.php.net/manual/en/mongodb.lasterror.php - * @return array Returns the error, if there was one. - */ + /** + * (PECL mongo >= 0.9.5)
    + * Check if there was an error on the most recent db operation performed + * @link https://secure.php.net/manual/en/mongodb.lasterror.php + * @return array Returns the error, if there was one. + */ public function lastError() {} - /** - * (PECL mongo >= 0.9.5)
    - * Checks for the last error thrown during a database operation - * @link https://secure.php.net/manual/en/mongodb.preverror.php - * @return array Returns the error and the number of operations ago it occurred. - */ + /** + * (PECL mongo >= 0.9.5)
    + * Checks for the last error thrown during a database operation + * @link https://secure.php.net/manual/en/mongodb.preverror.php + * @return array Returns the error and the number of operations ago it occurred. + */ public function prevError() {} - /** - * (PECL mongo >= 0.9.5)
    - * Clears any flagged errors on the database - * @link https://secure.php.net/manual/en/mongodb.reseterror.php - * @return array Returns the database response. - */ + /** + * (PECL mongo >= 0.9.5)
    + * Clears any flagged errors on the database + * @link https://secure.php.net/manual/en/mongodb.reseterror.php + * @return array Returns the database response. + */ public function resetError() {} /** * (PECL mongo >= 0.9.5)
    - * Creates a database error - * @link https://secure.php.net/manual/en/mongodb.forceerror.php - * @return bool Returns the database response. - */ + * Creates a database error + * @link https://secure.php.net/manual/en/mongodb.forceerror.php + * @return bool Returns the database response. + */ public function forceError() {} /** * (PECL mongo >= 1.0.1)
    - * Log in to this database - * - * @link https://secure.php.net/manual/en/mongodb.authenticate.php - * - * @param string $username The username. - * @param string $password The password (in plaintext). - * - * @return array

    Returns database response. If the login was successful, it will return 1.

    + * Log in to this database + * + * @link https://secure.php.net/manual/en/mongodb.authenticate.php + * + * @param string $username The username. + * @param string $password The password (in plaintext). + * + * @return array

    Returns database response. If the login was successful, it will return 1.

    *

    * <?php
    * array( @@ -794,7 +787,7 @@ public function forceError() {} *

    *

    ("auth fails" could be another message, depending on database version and * what went wrong)

    - */ + */ public function authenticate($username, $password) {} /** @@ -803,7 +796,7 @@ public function authenticate($username, $password) {} * @link https://secure.php.net/manual/en/mongodb.getreadpreference.php * @return array This function returns an array describing the read preference. The array contains the values type for the string read preference mode (corresponding to the MongoClient constants), and tagsets containing a list of all tag set criteria. If no tag sets were specified, tagsets will not be present in the array. */ - public function getReadPreference () {} + public function getReadPreference() {} /** * (PECL mongo >= 1.3.0)
    @@ -813,7 +806,7 @@ public function getReadPreference () {} * @param array $tags [optional]

    An array of zero or more tag sets, where each tag set is itself an array of criteria used to match tags on replica set members.

    * @return bool Returns TRUE on success, or FALSE otherwise. */ - public function setReadPreference ($read_preference, array $tags) {} + public function setReadPreference($read_preference, array $tags) {} /** * (PECL mongo >= 1.5.0)
    @@ -830,21 +823,22 @@ public function setWriteConcern($w, $wtimeout) {} * Represents a database collection. * @link https://secure.php.net/manual/en/class.mongocollection.php */ -class MongoCollection { - /** +class MongoCollection +{ + /** * @link https://php.net/manual/en/class.mongocollection.php#mongocollection.constants.ascending */ - const ASCENDING = 1; + public const ASCENDING = 1; - /** + /** * @link https://php.net/manual/en/class.mongocollection.php#mongocollection.constants.descending */ - const DESCENDING = -1; + public const DESCENDING = -1; - /** - * @var MongoDB - */ - public $db = null ; + /** + * @var MongoDB + */ + public $db = null; /** * @var int

    @@ -867,27 +861,27 @@ class MongoCollection { public $wtimeout; /** - * Creates a new collection - * @link https://secure.php.net/manual/en/mongocollection.construct.php - * @param MongoDB $db Parent database. - * @param string $name Name for this collection. - * @throws Exception - */ + * Creates a new collection + * @link https://secure.php.net/manual/en/mongocollection.construct.php + * @param MongoDB $db Parent database. + * @param string $name Name for this collection. + * @throws Exception + */ public function __construct(MongoDB $db, $name) {} - /** - * String representation of this collection - * @link https://secure.php.net/manual/en/mongocollection.--tostring.php - * @return string Returns the full name of this collection. - */ + /** + * String representation of this collection + * @link https://secure.php.net/manual/en/mongocollection.--tostring.php + * @return string Returns the full name of this collection. + */ public function __toString() {} - /** - * Gets a collection - * @link https://secure.php.net/manual/en/mongocollection.get.php - * @param string $name The next string in the collection name. - * @return MongoCollection - */ + /** + * Gets a collection + * @link https://secure.php.net/manual/en/mongocollection.get.php + * @param string $name The next string in the collection name. + * @return MongoCollection + */ public function __get($name) {} /** @@ -910,7 +904,7 @@ public function __get($name) {} * @param array $pipelineOperators [optional]

    Additional pipeline operators.

    * @return array The result of the aggregation as an array. The ok will be set to 1 on success, 0 on failure. */ - public function aggregate ( array $pipeline, array $op, array $pipelineOperators ) {} + public function aggregate(array $pipeline, array $op, array $pipelineOperators) {} /** * (PECL mongo >= 1.5.0)
    @@ -935,10 +929,10 @@ public function aggregate ( array $pipeline, array $op, array $pipelineOperators public function aggregateCursor(array $pipeline, array $options) {} /** - * Returns this collection's name - * @link https://secure.php.net/manual/en/mongocollection.getname.php - * @return string - */ + * Returns this collection's name + * @link https://secure.php.net/manual/en/mongocollection.getname.php + * @return string + */ public function getName() {} /** @@ -950,7 +944,7 @@ public function getName() {} * @link https://secure.php.net/manual/en/mongocollection.getslaveokay.php * @return bool Returns the value of slaveOkay for this instance. */ - public function getSlaveOkay() { } + public function getSlaveOkay() {} /** * (PECL mongo >= 1.1.0)
    @@ -966,7 +960,7 @@ public function getSlaveOkay() { } * @return bool Returns the former value of slaveOkay for this instance. *

    */ - public function setSlaveOkay($ok = true) { } + public function setSlaveOkay($ok = true) {} /** * (PECL mongo >= 1.3.0)
    @@ -974,7 +968,7 @@ public function setSlaveOkay($ok = true) { } * @return array This function returns an array describing the read preference. The array contains the values type for the string read preference mode * (corresponding to the {@link https://secure.php.net/manual/en/class.mongoclient.php MongoClient} constants), and tagsets containing a list of all tag set criteria. If no tag sets were specified, tagsets will not be present in the array. */ - public function getReadPreference() { } + public function getReadPreference() {} /** * (PECL mongo >= 1.3.0)
    @@ -982,30 +976,30 @@ public function getReadPreference() { } * @param array $tags [optional]

    An array of zero or more tag sets, where each tag set is itself an array of criteria used to match tags on replica set members.

    * @return bool Returns TRUE on success, or FALSE otherwise. */ - public function setReadPreference($read_preference, array $tags) { } + public function setReadPreference($read_preference, array $tags) {} - /** - * Drops this collection - * @link https://secure.php.net/manual/en/mongocollection.drop.php - * @return array Returns the database response. - */ + /** + * Drops this collection + * @link https://secure.php.net/manual/en/mongocollection.drop.php + * @return array Returns the database response. + */ public function drop() {} /** - * Validates this collection - * @link https://secure.php.net/manual/en/mongocollection.validate.php - * @param bool $scan_data Only validate indices, not the base collection. - * @return array Returns the database's evaluation of this object. - */ + * Validates this collection + * @link https://secure.php.net/manual/en/mongocollection.validate.php + * @param bool $scan_data Only validate indices, not the base collection. + * @return array Returns the database's evaluation of this object. + */ public function validate($scan_data = false) {} /** - * Inserts an array into the collection - * @link https://secure.php.net/manual/en/mongocollection.insert.php - * @param array|object $a An array or object. If an object is used, it may not have protected or private properties. + * Inserts an array into the collection + * @link https://secure.php.net/manual/en/mongocollection.insert.php + * @param array|object $a An array or object. If an object is used, it may not have protected or private properties. * Note: If the parameter does not have an _id key or property, a new MongoId instance will be created and assigned to it. * This special behavior does not mean that the parameter is passed by reference. - * @param array $options Options for the insert. + * @param array $options Options for the insert. *

    *
    "w"
    *
    See WriteConcerns. The default value for MongoClient is 1.
    @@ -1016,12 +1010,12 @@ public function validate($scan_data = false) {} *
    "safe"
    *
    Deprecated. Please use the WriteConcern w option.
    *
    - * @throws MongoException if the inserted document is empty or if it contains zero-length keys. Attempting to insert an object with protected and private properties will cause a zero-length key error. - * @throws MongoCursorException if the "w" option is set and the write fails. - * @throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds. - * @return bool|array Returns an array containing the status of the insertion if the "w" option is set. + * @throws MongoException if the inserted document is empty or if it contains zero-length keys. Attempting to insert an object with protected and private properties will cause a zero-length key error. + * @throws MongoCursorException if the "w" option is set and the write fails. + * @throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds. + * @return bool|array Returns an array containing the status of the insertion if the "w" option is set. * Otherwise, returns TRUE if the inserted array is not empty (a MongoException will be thrown if the inserted array is empty). - * If an array is returned, the following keys may be present: + * If an array is returned, the following keys may be present: *
    *
    ok
    *
    This should almost be 1 (unless last_error itself failed).
    @@ -1043,25 +1037,25 @@ public function validate($scan_data = false) {} *
    If an upsert occurred, this field will contain the new record's _id field. For upserts, either this field or updatedExisting will be present (unless an error occurred).
    *
    updatedExisting
    *
    If an upsert updated an existing element, this field will be true. For upserts, either this field or upserted will be present (unless an error occurred).
    - *
    + * */ - public function insert($a, array $options = array()) {} + public function insert($a, array $options = []) {} /** - * Inserts multiple documents into this collection - * @link https://secure.php.net/manual/en/mongocollection.batchinsert.php - * @param array $a An array of arrays. - * @param array $options Options for the inserts. - * @throws MongoCursorException - * @return array|bool if "safe" is set, returns an associative array with the status of the inserts ("ok") and any error that may have occurred ("err"). Otherwise, returns TRUE if the batch insert was successfully sent, FALSE otherwise. - */ - public function batchInsert(array $a, array $options = array()) {} + * Inserts multiple documents into this collection + * @link https://secure.php.net/manual/en/mongocollection.batchinsert.php + * @param array $a An array of arrays. + * @param array $options Options for the inserts. + * @throws MongoCursorException + * @return array|bool if "safe" is set, returns an associative array with the status of the inserts ("ok") and any error that may have occurred ("err"). Otherwise, returns TRUE if the batch insert was successfully sent, FALSE otherwise. + */ + public function batchInsert(array $a, array $options = []) {} /** - * Update records based on a given criteria - * @link https://secure.php.net/manual/en/mongocollection.update.php - * @param array $criteria Description of the objects to update. - * @param array $newobj The object with which to update the matching records. + * Update records based on a given criteria + * @link https://secure.php.net/manual/en/mongocollection.update.php + * @param array $criteria Description of the objects to update. + * @param array $newobj The object with which to update the matching records. * @param array $options This parameter is an associative array of the form * array("optionname" => boolean, ...). * @@ -1083,16 +1077,16 @@ public function batchInsert(array $a, array $options = array()) {} * * "timeout" Integer, defaults to MongoCursor::$timeout. If "safe" is set, this sets how long (in milliseconds) for the client to wait for a database response. If the database does * not respond within the timeout period, a MongoCursorTimeoutException will be thrown - * @throws MongoCursorException - * @return bool - */ - public function update(array $criteria , array $newobj, array $options = array()) {} + * @throws MongoCursorException + * @return bool + */ + public function update(array $criteria, array $newobj, array $options = []) {} /** * (PECL mongo >= 0.9.0)
    - * Remove records from this collection - * @link https://secure.php.net/manual/en/mongocollection.remove.php - * @param array $criteria [optional]

    Query criteria for the documents to delete.

    + * Remove records from this collection + * @link https://secure.php.net/manual/en/mongocollection.remove.php + * @param array $criteria [optional]

    Query criteria for the documents to delete.

    * @param array $options [optional]

    An array of options for the remove operation. Currently available options * include: *

      @@ -1109,7 +1103,7 @@ public function update(array $criteria , array $newobj, array $options = array() *
    • "fsync"

      Boolean, defaults to FALSE. If journaling is enabled, it works exactly like "j". If journaling is not enabled, the write operation blocks until it is synced to database files on disk. If TRUE, an acknowledged insert is implied and this option will override setting "w" to 0.

      Note: If journaling is enabled, users are strongly encouraged to use the "j" option instead of "fsync". Do not use "fsync" and "j" simultaneously, as that will result in an error.

    • *
    • "j"

      Boolean, defaults to FALSE. Forces the write operation to block until it is synced to the journal on disk. If TRUE, an acknowledged write is implied and this option will override setting "w" to 0.

      Note: If this option is used and journaling is disabled, MongoDB 2.6+ will raise an error and the write will fail; older server versions will simply ignore the option.

    • *
    • "socketTimeoutMS"

      This option specifies the time limit, in milliseconds, for socket communication. If the server does not respond within the timeout period, a MongoCursorTimeoutException will be thrown and there will be no way to determine if the server actually handled the write or not. A value of -1 may be specified to block indefinitely. The default value for MongoClient is 30000 (30 seconds).

    • - *
    • "w"

      See {@link https://secure.php.net/manual/en/mongo.writeconcerns.php Write Concerns }. The default value for MongoClient is 1.

    • + *
    • "w"

      See {@link https://secure.php.net/manual/en/mongo.writeconcerns.php Write Concerns}. The default value for MongoClient is 1.

    • *
    • "wTimeoutMS"

      This option specifies the time limit, in milliseconds, for {@link https://secure.php.net/manual/en/mongo.writeconcerns.php write concern} acknowledgement. It is only applicable when "w" is greater than 1, as the timeout pertains to replication. If the write concern is not satisfied within the time limit, a MongoCursorException will be thrown. A value of 0 may be specified to block indefinitely. The default value for {@link https://secure.php.net/manual/en/class.mongoclient.php MongoClient} is 10000 (ten seconds).

    • *
    * @@ -1119,26 +1113,26 @@ public function update(array $criteria , array $newobj, array $options = array() *
  • "safe"

    Deprecated. Please use the {@link https://secure.php.net/manual/en/mongo.writeconcerns.php write concern} "w" option.

  • *
  • "timeout"

    Deprecated alias for "socketTimeoutMS".

  • *
  • "wtimeout"

    Deprecated alias for "wTimeoutMS".

  • - * @throws MongoCursorException + * @throws MongoCursorException * @throws MongoCursorTimeoutException - * @return bool|array

    Returns an array containing the status of the removal if the + * @return bool|array

    Returns an array containing the status of the removal if the * "w" option is set. Otherwise, returns TRUE. *

    *

    * Fields in the status array are described in the documentation for * MongoCollection::insert(). *

    - */ - public function remove(array $criteria = array(), array $options = array()) {} + */ + public function remove(array $criteria = [], array $options = []) {} /** - * Querys this collection - * @link https://secure.php.net/manual/en/mongocollection.find.php - * @param array $query The fields for which to search. - * @param array $fields Fields of the results to return. - * @return MongoCursor - */ - public function find(array $query = array(), array $fields = array()) {} + * Querys this collection + * @link https://secure.php.net/manual/en/mongocollection.find.php + * @param array $query The fields for which to search. + * @param array $fields Fields of the results to return. + * @return MongoCursor + */ + public function find(array $query = [], array $fields = []) {} /** * Retrieve a list of distinct values for the given key across a collection @@ -1147,7 +1141,7 @@ public function find(array $query = array(), array $fields = array()) {} * @param array $query An optional query parameters * @return array|false Returns an array of distinct values, or FALSE on failure */ - public function distinct ($key, array $query = null) {} + public function distinct($key, array $query = null) {} /** * Update a document and return it @@ -1158,17 +1152,17 @@ public function distinct ($key, array $query = null) {} * @param array $options An array of options to apply, such as remove the match document from the DB and return it. * @return array Returns the original document, or the modified document when new is set. */ - public function findAndModify (array $query, array $update = null, array $fields = null, array $options = null) {} + public function findAndModify(array $query, array $update = null, array $fields = null, array $options = null) {} /** - * Querys this collection, returning a single element - * @link https://secure.php.net/manual/en/mongocollection.findone.php - * @param array $query The fields for which to search. - * @param array $fields Fields of the results to return. - * @param array $options This parameter is an associative array of the form array("name" => ``, ...). - * @return array|null - */ - public function findOne(array $query = array(), array $fields = array(), array $options = array()) {} + * Querys this collection, returning a single element + * @link https://secure.php.net/manual/en/mongocollection.findone.php + * @param array $query The fields for which to search. + * @param array $fields Fields of the results to return. + * @param array $options This parameter is an associative array of the form array("name" => ``, ...). + * @return array|null + */ + public function findOne(array $query = [], array $fields = [], array $options = []) {} /** * Creates an index on the given field(s), or does nothing if the index already exists @@ -1177,56 +1171,56 @@ public function findOne(array $query = array(), array $fields = array(), array $ * @param array $options [optional] This parameter is an associative array of the form array("optionname" => ``, ...). * @return array Returns the database response. */ - public function createIndex(array $keys, array $options = array()) {} + public function createIndex(array $keys, array $options = []) {} /** - * Creates an index on the given field(s), or does nothing if the index already exists - * @link https://secure.php.net/manual/en/mongocollection.ensureindex.php - * @param array $keys Field or fields to use as index. - * @param array $options [optional] This parameter is an associative array of the form array("optionname" => ``, ...). - * @return true always true + * Creates an index on the given field(s), or does nothing if the index already exists + * @link https://secure.php.net/manual/en/mongocollection.ensureindex.php + * @param array $keys Field or fields to use as index. + * @param array $options [optional] This parameter is an associative array of the form array("optionname" => ``, ...). + * @return true always true * @see MongoCollection::createIndex() - */ + */ #[Deprecated('Use MongoCollection::createIndex() instead.')] - public function ensureIndex(array $keys, array $options = array()) {} + public function ensureIndex(array $keys, array $options = []) {} /** - * Deletes an index from this collection - * @link https://secure.php.net/manual/en/mongocollection.deleteindex.php - * @param string|array $keys Field or fields from which to delete the index. - * @return array Returns the database response. - */ + * Deletes an index from this collection + * @link https://secure.php.net/manual/en/mongocollection.deleteindex.php + * @param string|array $keys Field or fields from which to delete the index. + * @return array Returns the database response. + */ public function deleteIndex($keys) {} - /** - * Delete all indexes for this collection - * @link https://secure.php.net/manual/en/mongocollection.deleteindexes.php - * @return array Returns the database response. - */ + /** + * Delete all indexes for this collection + * @link https://secure.php.net/manual/en/mongocollection.deleteindexes.php + * @return array Returns the database response. + */ public function deleteIndexes() {} /** - * Returns an array of index names for this collection - * @link https://secure.php.net/manual/en/mongocollection.getindexinfo.php - * @return array Returns a list of index names. - */ + * Returns an array of index names for this collection + * @link https://secure.php.net/manual/en/mongocollection.getindexinfo.php + * @return array Returns a list of index names. + */ public function getIndexInfo() {} /** - * Counts the number of documents in this collection - * @link https://secure.php.net/manual/en/mongocollection.count.php - * @param array|stdClass $query - * @return int Returns the number of documents matching the query. - */ - public function count($query = array()) {} + * Counts the number of documents in this collection + * @link https://secure.php.net/manual/en/mongocollection.count.php + * @param array|stdClass $query + * @return int Returns the number of documents matching the query. + */ + public function count($query = []) {} /** - * Saves an object to this collection - * @link https://secure.php.net/manual/en/mongocollection.save.php - * @param array|object $a Array to save. If an object is used, it may not have protected or private properties. + * Saves an object to this collection + * @link https://secure.php.net/manual/en/mongocollection.save.php + * @param array|object $a Array to save. If an object is used, it may not have protected or private properties. * Note: If the parameter does not have an _id key or property, a new MongoId instance will be created and assigned to it. * See MongoCollection::insert() for additional information on this behavior. - * @param array $options Options for the save. + * @param array $options Options for the save. *
    *
    "w" *
    See WriteConcerns. The default value for MongoClient is 1. @@ -1237,56 +1231,57 @@ public function count($query = array()) {} *
    "safe" *
    Deprecated. Please use the WriteConcern w option. *
    - * @throws MongoException if the inserted document is empty or if it contains zero-length keys. Attempting to insert an object with protected and private properties will cause a zero-length key error. - * @throws MongoCursorException if the "w" option is set and the write fails. - * @throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds. - * @return array|bool If w was set, returns an array containing the status of the save. + * @throws MongoException if the inserted document is empty or if it contains zero-length keys. Attempting to insert an object with protected and private properties will cause a zero-length key error. + * @throws MongoCursorException if the "w" option is set and the write fails. + * @throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds. + * @return array|bool If w was set, returns an array containing the status of the save. * Otherwise, returns a boolean representing if the array was not empty (an empty array will not be inserted). - */ - public function save($a, array $options = array()) {} + */ + public function save($a, array $options = []) {} /** - * Creates a database reference - * @link https://secure.php.net/manual/en/mongocollection.createdbref.php - * @param array $a Object to which to create a reference. - * @return array Returns a database reference array. - */ + * Creates a database reference + * @link https://secure.php.net/manual/en/mongocollection.createdbref.php + * @param array $a Object to which to create a reference. + * @return array Returns a database reference array. + */ public function createDBRef(array $a) {} - /** - * Fetches the document pointed to by a database reference - * @link https://secure.php.net/manual/en/mongocollection.getdbref.php - * @param array $ref A database reference. - * @return array Returns the database document pointed to by the reference. - */ + /** + * Fetches the document pointed to by a database reference + * @link https://secure.php.net/manual/en/mongocollection.getdbref.php + * @param array $ref A database reference. + * @return array Returns the database document pointed to by the reference. + */ public function getDBRef(array $ref) {} /** - * @param mixed $keys - * @return string - */ + * @param mixed $keys + * @return string + */ protected static function toIndexString($keys) {} - /** - * Performs an operation similar to SQL's GROUP BY command - * @link https://secure.php.net/manual/en/mongocollection.group.php - * @param mixed $keys Fields to group by. If an array or non-code object is passed, it will be the key used to group results. - * @param array $initial Initial value of the aggregation counter object. - * @param MongoCode $reduce A function that aggregates (reduces) the objects iterated. - * @param array $condition An condition that must be true for a row to be considered. - * @return array - */ - public function group($keys, array $initial, MongoCode $reduce, array $condition = array()) {} + /** + * Performs an operation similar to SQL's GROUP BY command + * @link https://secure.php.net/manual/en/mongocollection.group.php + * @param mixed $keys Fields to group by. If an array or non-code object is passed, it will be the key used to group results. + * @param array $initial Initial value of the aggregation counter object. + * @param MongoCode $reduce A function that aggregates (reduces) the objects iterated. + * @param array $condition An condition that must be true for a row to be considered. + * @return array + */ + public function group($keys, array $initial, MongoCode $reduce, array $condition = []) {} } /** * Result object for database query. * @link https://secure.php.net/manual/en/class.mongocursor.php */ -class MongoCursor implements Iterator { +class MongoCursor implements Iterator +{ /** * @link https://php.net/manual/en/class.mongocursor.php#mongocursor.props.slaveokay - * @var bool $slaveOkay + * @var bool */ public static $slaveOkay = false; @@ -1300,16 +1295,16 @@ class MongoCursor implements Iterator { * {@link https://php.net/manual/en/class.mongocursortimeoutexception.php MongoCursorTimeoutException} after a set time. *

    */ - static $timeout = 30000; + public static $timeout = 30000; /** - * Create a new cursor - * @link https://secure.php.net/manual/en/mongocursor.construct.php - * @param MongoClient $connection Database connection. - * @param string $ns Full name of database and collection. - * @param array $query Database query. - * @param array $fields Fields to return. - */ - public function __construct($connection, $ns, array $query = array(), array $fields = array()) {} + * Create a new cursor + * @link https://secure.php.net/manual/en/mongocursor.construct.php + * @param MongoClient $connection Database connection. + * @param string $ns Full name of database and collection. + * @param array $query Database query. + * @param array $fields Fields to return. + */ + public function __construct($connection, $ns, array $query = [], array $fields = []) {} /** * (PECL mongo >= 1.2.11)
    @@ -1317,23 +1312,23 @@ public function __construct($connection, $ns, array $query = array(), array $fie * @param bool $wait [optional]

    If the cursor should wait for more data to become available.

    * @return MongoCursor Returns this cursor. */ - public function awaitData ($wait = true) {} + public function awaitData($wait = true) {} /** - * Checks if there are any more elements in this cursor - * @link https://secure.php.net/manual/en/mongocursor.hasnext.php - * @throws MongoConnectionException - * @throws MongoCursorTimeoutException + * Checks if there are any more elements in this cursor + * @link https://secure.php.net/manual/en/mongocursor.hasnext.php + * @throws MongoConnectionException + * @throws MongoCursorTimeoutException * @return bool Returns true if there is another element - */ + */ public function hasNext() {} /** - * Return the next object to which this cursor points, and advance the cursor - * @link https://secure.php.net/manual/en/mongocursor.getnext.php - * @throws MongoConnectionException - * @throws MongoCursorTimeoutException + * Return the next object to which this cursor points, and advance the cursor + * @link https://secure.php.net/manual/en/mongocursor.getnext.php + * @throws MongoConnectionException + * @throws MongoCursorTimeoutException * @return array Returns the next object - */ + */ public function getNext() {} /** @@ -1342,15 +1337,15 @@ public function getNext() {} * @return array This function returns an array describing the read preference. The array contains the values type for the string * read preference mode (corresponding to the {@link https://secure.php.net/manual/en/class.mongoclient.php MongoClient} constants), and tagsets containing a list of all tag set criteria. If no tag sets were specified, tagsets will not be present in the array. */ - public function getReadPreference () { } + public function getReadPreference() {} /** - * Limits the number of results returned - * @link https://secure.php.net/manual/en/mongocursor.limit.php - * @param int $num The number of results to return. - * @throws MongoCursorException + * Limits the number of results returned + * @link https://secure.php.net/manual/en/mongocursor.limit.php + * @param int $num The number of results to return. + * @throws MongoCursorException * @return MongoCursor Returns this cursor - */ + */ public function limit($num) {} /** @@ -1359,7 +1354,7 @@ public function limit($num) {} * @param bool $okay [optional]

    If receiving partial results is okay.

    * @return MongoCursor Returns this cursor. */ - public function partial ($okay = true) {} + public function partial($okay = true) {} /** * (PECL mongo >= 1.2.1)
    @@ -1373,7 +1368,7 @@ public function partial ($okay = true) {} * @param bool $set [optional]

    Whether the flag should be set (TRUE) or unset (FALSE).

    * @return MongoCursor */ - public function setFlag ($flag, $set = true ) {} + public function setFlag($flag, $set = true) {} /** * (PECL mongo >= 1.3.3)
    @@ -1382,180 +1377,179 @@ public function setFlag ($flag, $set = true ) {} * @param array $tags [optional]

    The read preference mode: MongoClient::RP_PRIMARY, MongoClient::RP_PRIMARY_PREFERRED, MongoClient::RP_SECONDARY, MongoClient::RP_SECONDARY_PREFERRED, or MongoClient::RP_NEAREST.

    * @return MongoCursor Returns this cursor. */ - public function setReadPreference ($read_preference, array $tags) {} + public function setReadPreference($read_preference, array $tags) {} /** - * Skips a number of results - * @link https://secure.php.net/manual/en/mongocursor.skip.php - * @param int $num The number of results to skip. - * @throws MongoCursorException + * Skips a number of results + * @link https://secure.php.net/manual/en/mongocursor.skip.php + * @param int $num The number of results to skip. + * @throws MongoCursorException * @return MongoCursor Returns this cursor - */ + */ public function skip($num) {} /** - * Sets whether this query can be done on a slave - * This method will override the static class variable slaveOkay. - * @link https://secure.php.net/manual/en/mongocursor.slaveOkay.php - * @param bool $okay If it is okay to query the slave. - * @throws MongoCursorException + * Sets whether this query can be done on a slave + * This method will override the static class variable slaveOkay. + * @link https://secure.php.net/manual/en/mongocursor.slaveOkay.php + * @param bool $okay If it is okay to query the slave. + * @throws MongoCursorException * @return MongoCursor Returns this cursor - */ + */ public function slaveOkay($okay = true) {} /** - * Sets whether this cursor will be left open after fetching the last results - * @link https://secure.php.net/manual/en/mongocursor.tailable.php - * @param bool $tail If the cursor should be tailable. + * Sets whether this cursor will be left open after fetching the last results + * @link https://secure.php.net/manual/en/mongocursor.tailable.php + * @param bool $tail If the cursor should be tailable. * @return MongoCursor Returns this cursor - */ + */ public function tailable($tail = true) {} /** - * Sets whether this cursor will timeout - * @link https://secure.php.net/manual/en/mongocursor.immortal.php - * @param bool $liveForever If the cursor should be immortal. - * @throws MongoCursorException + * Sets whether this cursor will timeout + * @link https://secure.php.net/manual/en/mongocursor.immortal.php + * @param bool $liveForever If the cursor should be immortal. + * @throws MongoCursorException * @return MongoCursor Returns this cursor - */ + */ public function immortal($liveForever = true) {} /** - * Sets a client-side timeout for this query - * @link https://secure.php.net/manual/en/mongocursor.timeout.php - * @param int $ms The number of milliseconds for the cursor to wait for a response. By default, the cursor will wait forever. - * @throws MongoCursorTimeoutException + * Sets a client-side timeout for this query + * @link https://secure.php.net/manual/en/mongocursor.timeout.php + * @param int $ms The number of milliseconds for the cursor to wait for a response. By default, the cursor will wait forever. + * @throws MongoCursorTimeoutException * @return MongoCursor Returns this cursor - */ + */ public function timeout($ms) {} - /** - * Checks if there are documents that have not been sent yet from the database for this cursor - * @link https://secure.php.net/manual/en/mongocursor.dead.php - * @return bool Returns if there are more results that have not been sent to the client, yet. - */ + /** + * Checks if there are documents that have not been sent yet from the database for this cursor + * @link https://secure.php.net/manual/en/mongocursor.dead.php + * @return bool Returns if there are more results that have not been sent to the client, yet. + */ public function dead() {} - /** - * Use snapshot mode for the query - * @link https://secure.php.net/manual/en/mongocursor.snapshot.php - * @throws MongoCursorException - * @return MongoCursor Returns this cursor - */ + /** + * Use snapshot mode for the query + * @link https://secure.php.net/manual/en/mongocursor.snapshot.php + * @throws MongoCursorException + * @return MongoCursor Returns this cursor + */ public function snapshot() {} /** - * Sorts the results by given fields - * @link https://secure.php.net/manual/en/mongocursor.sort.php + * Sorts the results by given fields + * @link https://secure.php.net/manual/en/mongocursor.sort.php * @param array $fields An array of fields by which to sort. Each element in the array has as key the field name, and as value either 1 for ascending sort, or -1 for descending sort - * @throws MongoCursorException + * @throws MongoCursorException * @return MongoCursor Returns the same cursor that this method was called on - */ + */ public function sort(array $fields) {} - /** - * Gives the database a hint about the query - * @link https://secure.php.net/manual/en/mongocursor.hint.php - * @param mixed $key_pattern Indexes to use for the query. - * @throws MongoCursorException - * @return MongoCursor Returns this cursor - */ + /** + * Gives the database a hint about the query + * @link https://secure.php.net/manual/en/mongocursor.hint.php + * @param mixed $key_pattern Indexes to use for the query. + * @throws MongoCursorException + * @return MongoCursor Returns this cursor + */ public function hint($key_pattern) {} - - /** - * Adds a top-level key/value pair to a query - * @link https://secure.php.net/manual/en/mongocursor.addoption.php - * @param string $key Fieldname to add. - * @param mixed $value Value to add. - * @throws MongoCursorException + /** + * Adds a top-level key/value pair to a query + * @link https://secure.php.net/manual/en/mongocursor.addoption.php + * @param string $key Fieldname to add. + * @param mixed $value Value to add. + * @throws MongoCursorException * @return MongoCursor Returns this cursor - */ + */ public function addOption($key, $value) {} - /** - * Execute the query - * @link https://secure.php.net/manual/en/mongocursor.doquery.php - * @throws MongoConnectionException if it cannot reach the database. - * @return void - */ + /** + * Execute the query + * @link https://secure.php.net/manual/en/mongocursor.doquery.php + * @throws MongoConnectionException if it cannot reach the database. + * @return void + */ protected function doQuery() {} - /** - * Returns the current element - * @link https://secure.php.net/manual/en/mongocursor.current.php - * @return array - */ + /** + * Returns the current element + * @link https://secure.php.net/manual/en/mongocursor.current.php + * @return array + */ public function current() {} - /** - * Returns the current result's _id - * @link https://secure.php.net/manual/en/mongocursor.key.php - * @return string The current result's _id as a string. - */ + /** + * Returns the current result's _id + * @link https://secure.php.net/manual/en/mongocursor.key.php + * @return string The current result's _id as a string. + */ public function key() {} /** - * Advances the cursor to the next result - * @link https://secure.php.net/manual/en/mongocursor.next.php - * @throws MongoConnectionException - * @throws MongoCursorTimeoutException - * @return void - */ + * Advances the cursor to the next result + * @link https://secure.php.net/manual/en/mongocursor.next.php + * @throws MongoConnectionException + * @throws MongoCursorTimeoutException + * @return void + */ public function next() {} - /** - * Returns the cursor to the beginning of the result set - * @throws MongoConnectionException - * @throws MongoCursorTimeoutException - * @return void - */ + /** + * Returns the cursor to the beginning of the result set + * @throws MongoConnectionException + * @throws MongoCursorTimeoutException + * @return void + */ public function rewind() {} /** - * Checks if the cursor is reading a valid result. - * @link https://secure.php.net/manual/en/mongocursor.valid.php - * @return bool If the current result is not null. - */ + * Checks if the cursor is reading a valid result. + * @link https://secure.php.net/manual/en/mongocursor.valid.php + * @return bool If the current result is not null. + */ public function valid() {} - /** - * Clears the cursor - * @link https://secure.php.net/manual/en/mongocursor.reset.php - * @return void - */ + /** + * Clears the cursor + * @link https://secure.php.net/manual/en/mongocursor.reset.php + * @return void + */ public function reset() {} - /** - * Return an explanation of the query, often useful for optimization and debugging - * @link https://secure.php.net/manual/en/mongocursor.explain.php - * @return array Returns an explanation of the query. - */ + /** + * Return an explanation of the query, often useful for optimization and debugging + * @link https://secure.php.net/manual/en/mongocursor.explain.php + * @return array Returns an explanation of the query. + */ public function explain() {} /** - * Counts the number of results for this query - * @link https://secure.php.net/manual/en/mongocursor.count.php - * @param bool $all Send cursor limit and skip information to the count function, if applicable. - * @return int The number of documents returned by this cursor's query. - */ + * Counts the number of results for this query + * @link https://secure.php.net/manual/en/mongocursor.count.php + * @param bool $all Send cursor limit and skip information to the count function, if applicable. + * @return int The number of documents returned by this cursor's query. + */ public function count($all = false) {} - /** - * Sets the fields for a query - * @link https://secure.php.net/manual/en/mongocursor.fields.php - * @param array $f Fields to return (or not return). - * @throws MongoCursorException - * @return MongoCursor - */ - public function fields(array $f){} + /** + * Sets the fields for a query + * @link https://secure.php.net/manual/en/mongocursor.fields.php + * @param array $f Fields to return (or not return). + * @throws MongoCursorException + * @return MongoCursor + */ + public function fields(array $f) {} - /** - * Gets the query, fields, limit, and skip for this cursor - * @link https://secure.php.net/manual/en/mongocursor.info.php - * @return array The query, fields, limit, and skip for this cursor as an associative array. - */ - public function info(){} + /** + * Gets the query, fields, limit, and skip for this cursor + * @link https://secure.php.net/manual/en/mongocursor.info.php + * @return array The query, fields, limit, and skip for this cursor as an associative array. + */ + public function info() {} /** * PECL mongo >= 1.0.11 @@ -1593,29 +1587,30 @@ public function info(){} * @return MongoCursor Returns this cursor. * @link https://secure.php.net/manual/en/mongocursor.batchsize.php */ - public function batchSize($batchSize){} - - /** - * (PECL mongo >= 1.5.0) - * Sets a server-side timeout for this query - * @link https://php.net/manual/en/mongocursor.maxtimems.php - * @param int $ms

    - * Specifies a cumulative time limit in milliseconds to be allowed by the - * server for processing operations on the cursor. - *

    - * @return MongoCursor This cursor. - */ - public function maxTimeMS ($ms) {} + public function batchSize($batchSize) {} + + /** + * (PECL mongo >= 1.5.0) + * Sets a server-side timeout for this query + * @link https://php.net/manual/en/mongocursor.maxtimems.php + * @param int $ms

    + * Specifies a cumulative time limit in milliseconds to be allowed by the + * server for processing operations on the cursor. + *

    + * @return MongoCursor This cursor. + */ + public function maxTimeMS($ms) {} } -class MongoCommandCursor implements MongoCursorInterface { +class MongoCommandCursor implements MongoCursorInterface +{ /** * Return the current element * @link https://php.net/manual/en/iterator.current.php * @return mixed Can return any type. * @since 5.0.0 */ - public function current(){} + public function current() {} /** * Move forward to next element @@ -1623,7 +1618,7 @@ public function current(){} * @return void Any returned value is ignored. * @since 5.0.0 */ - public function next(){} + public function next() {} /** * Return the key of the current element @@ -1631,7 +1626,7 @@ public function next(){} * @return mixed scalar on success, or null on failure. * @since 5.0.0 */ - public function key(){} + public function key() {} /** * Checks if current position is valid @@ -1640,7 +1635,7 @@ public function key(){} * Returns true on success or false on failure. * @since 5.0.0 */ - public function valid(){} + public function valid() {} /** * Rewind the Iterator to the first element @@ -1648,42 +1643,40 @@ public function valid(){} * @return void Any returned value is ignored. * @since 5.0.0 */ - public function rewind(){} + public function rewind() {} - function batchSize(int $batchSize):MongoCursorInterface{} + public function batchSize(int $batchSize): MongoCursorInterface {} - function dead():bool{} + public function dead(): bool {} - function info():array{} + public function info(): array {} - function getReadPreference():array{} + public function getReadPreference(): array {} - function setReadPreference(string $read_preference, array $tags = null):MongoCursorInterface{} + public function setReadPreference(string $read_preference, array $tags = null): MongoCursorInterface {} - function timeout(int $ms):MongoCursorInterface{} + public function timeout(int $ms): MongoCursorInterface {} } interface MongoCursorInterface extends Iterator { - function batchSize(int $batchSize):MongoCursorInterface; + public function batchSize(int $batchSize): MongoCursorInterface; - function dead():bool; + public function dead(): bool; - function info():array; + public function info(): array; - function getReadPreference():array; + public function getReadPreference(): array; - function setReadPreference(string $read_preference, array $tags = null):MongoCursorInterface; + public function setReadPreference(string $read_preference, array $tags = null): MongoCursorInterface; - function timeout(int $ms):MongoCursorInterface; + public function timeout(int $ms): MongoCursorInterface; } -/** - * - */ -class MongoGridFS extends MongoCollection { - const ASCENDING = 1; - const DESCENDING = -1; +class MongoGridFS extends MongoCollection +{ + public const ASCENDING = 1; + public const DESCENDING = -1; /** * @link https://php.net/manual/en/class.mongogridfs.php#mongogridfs.props.chunks @@ -1703,8 +1696,6 @@ class MongoGridFS extends MongoCollection { */ protected $chunksName; - - /** * Files as stored across two collections, the first containing file meta * information, the second containing chunks of the actual file. By default, @@ -1730,7 +1721,7 @@ public function drop() {} * @param array $fields Fields to return * @return MongoGridFSCursor A MongoGridFSCursor */ - public function find(array $query = array(), array $fields = array()) {} + public function find(array $query = [], array $fields = []) {} /** * Stores a file in the database @@ -1740,7 +1731,7 @@ public function find(array $query = array(), array $fields = array()) {} * @param array $options Options for the store. "safe": Check that this store succeeded * @return mixed Returns the _id of the saved object */ - public function storeFile($filename, $extra = array(), $options = array()) {} + public function storeFile($filename, $extra = [], $options = []) {} /** * Chunkifies and stores bytes in the database @@ -1750,26 +1741,26 @@ public function storeFile($filename, $extra = array(), $options = array()) {} * @param array $options Options for the store. "safe": Check that this store succeeded * @return mixed The _id of the object saved */ - public function storeBytes($bytes, $extra = array(), $options = array()) {} + public function storeBytes($bytes, $extra = [], $options = []) {} /** - * Returns a single file matching the criteria - * @link https://secure.php.net/manual/en/mongogridfs.findone.php - * @param array $query The fields for which to search. - * @param array $fields Fields of the results to return. - * @return MongoGridFSFile|null - */ - public function findOne(array $query = array(), array $fields = array()) {} + * Returns a single file matching the criteria + * @link https://secure.php.net/manual/en/mongogridfs.findone.php + * @param array $query The fields for which to search. + * @param array $fields Fields of the results to return. + * @return MongoGridFSFile|null + */ + public function findOne(array $query = [], array $fields = []) {} /** - * Removes files from the collections - * @link https://secure.php.net/manual/en/mongogridfs.remove.php - * @param array $criteria Description of records to remove. - * @param array $options Options for remove. Valid options are: "safe"- Check that the remove succeeded. - * @throws MongoCursorException - * @return bool - */ - public function remove(array $criteria = array(), array $options = array()) {} + * Removes files from the collections + * @link https://secure.php.net/manual/en/mongogridfs.remove.php + * @param array $criteria Description of records to remove. + * @param array $options Options for remove. Valid options are: "safe"- Check that the remove succeeded. + * @throws MongoCursorException + * @return bool + */ + public function remove(array $criteria = [], array $options = []) {} /** * Delete a file from the database @@ -1780,45 +1771,44 @@ public function remove(array $criteria = array(), array $options = array()) {} public function delete($id) {} /** - * Saves an uploaded file directly from a POST to the database - * @link https://secure.php.net/manual/en/mongogridfs.storeupload.php - * @param string $name The name attribute of the uploaded file, from <input type="file" name="something"/> - * @param array $metadata An array of extra fields for the uploaded file. - * @return mixed Returns the _id of the uploaded file. - */ - public function storeUpload($name, array $metadata = array()) {} - + * Saves an uploaded file directly from a POST to the database + * @link https://secure.php.net/manual/en/mongogridfs.storeupload.php + * @param string $name The name attribute of the uploaded file, from <input type="file" name="something"/> + * @param array $metadata An array of extra fields for the uploaded file. + * @return mixed Returns the _id of the uploaded file. + */ + public function storeUpload($name, array $metadata = []) {} /** - * Retrieve a file from the database - * @link https://secure.php.net/manual/en/mongogridfs.get.php - * @param mixed $id _id of the file to find. - * @return MongoGridFSFile|null Returns the file, if found, or NULL. - */ + * Retrieve a file from the database + * @link https://secure.php.net/manual/en/mongogridfs.get.php + * @param mixed $id _id of the file to find. + * @return MongoGridFSFile|null Returns the file, if found, or NULL. + */ public function get($id) {} - /** + /** * Stores a file in the database * @link https://php.net/manual/en/mongogridfs.put.php * @param string $filename The name of the file * @param array $extra Other metadata to add to the file saved * @return mixed Returns the _id of the saved object */ - public function put($filename, array $extra = array()) {} - + public function put($filename, array $extra = []) {} } -class MongoGridFSFile { +class MongoGridFSFile +{ /** - * @link https://php.net/manual/en/class.mongogridfsfile.php#mongogridfsfile.props.file - * @var array|null - */ + * @link https://php.net/manual/en/class.mongogridfsfile.php#mongogridfsfile.props.file + * @var array|null + */ public $file; /** - * @link https://php.net/manual/en/class.mongogridfsfile.php#mongogridfsfile.props.gridfs - * @var MongoGridFS|null - */ + * @link https://php.net/manual/en/class.mongogridfsfile.php#mongogridfsfile.props.gridfs + * @var MongoGridFS|null + */ protected $gridfs; /** @@ -1832,14 +1822,14 @@ public function __construct($gridfs, array $file) {} * Returns this file's filename * @link https://php.net/manual/en/mongogridfsfile.getfilename.php * @return string Returns the filename - */ + */ public function getFilename() {} /** * Returns this file's size * @link https://php.net/manual/en/mongogridfsfile.getsize.php * @return int Returns this file's size - */ + */ public function getSize() {} /** @@ -1857,7 +1847,7 @@ public function write($filename = null) {} */ public function getBytes() {} - /** + /** * This method returns a stream resource that can be used to read the stored file with all file functions in PHP. * The contents of the file are pulled out of MongoDB on the fly, so that the whole file does not have to be loaded into memory first. * At most two GridFSFile chunks will be loaded in memory. @@ -1868,16 +1858,17 @@ public function getBytes() {} public function getResource() {} } -class MongoGridFSCursor extends MongoCursor implements Traversable, Iterator { +class MongoGridFSCursor extends MongoCursor implements Traversable, Iterator +{ /** - * @var bool - */ + * @var bool + */ public static $slaveOkay; /** - * @link https://php.net/manual/en/class.mongogridfscursor.php#mongogridfscursor.props.gridfs - * @var MongoGridFS|null - */ + * @link https://php.net/manual/en/class.mongogridfscursor.php#mongogridfscursor.props.gridfs + * @var MongoGridFS|null + */ protected $gridfs; /** @@ -1892,44 +1883,44 @@ class MongoGridFSCursor extends MongoCursor implements Traversable, Iterator { public function __construct($gridfs, $connection, $ns, $query, $fields) {} /** - * Return the next file to which this cursor points, and advance the cursor - * @link https://php.net/manual/en/mongogridfscursor.getnext.php - * @return MongoGridFSFile Returns the next file - */ + * Return the next file to which this cursor points, and advance the cursor + * @link https://php.net/manual/en/mongogridfscursor.getnext.php + * @return MongoGridFSFile Returns the next file + */ public function getNext() {} /** - * Returns the current file - * @link https://php.net/manual/en/mongogridfscursor.current.php - * @return MongoGridFSFile The current file - */ + * Returns the current file + * @link https://php.net/manual/en/mongogridfscursor.current.php + * @return MongoGridFSFile The current file + */ public function current() {} /** - * Returns the current result's filename - * @link https://php.net/manual/en/mongogridfscursor.key.php - * @return string The current results filename - */ + * Returns the current result's filename + * @link https://php.net/manual/en/mongogridfscursor.key.php + * @return string The current results filename + */ public function key() {} - } /** * A unique identifier created for database objects. * @link https://secure.php.net/manual/en/class.mongoid.php */ -class MongoId { - /** - * @var string $id

    Note: The property name begins with a $ character. It may be accessed using - * {@link https://php.net/manual/en/language.types.string.php#language.types.string.parsing.complex complex variable parsed syntax} (e.g. $mongoId->{'$id'}).

    - */ +class MongoId +{ + /** + * @var string

    Note: The property name begins with a $ character. It may be accessed using + * {@link https://php.net/manual/en/language.types.string.php#language.types.string.parsing.complex complex variable parsed syntax} (e.g. $mongoId->{'$id'}).

    + */ public $id = null; /** * (PECL mongo >= 0.8.0) - * Creates a new id - * @link https://secure.php.net/manual/en/mongoid.construct.php - * @param MongoId|string $id [optional] A string to use as the id. Must be 24 hexadecimal characters. If an invalid string is passed to this constructor, the constructor will ignore it and create a new id value. + * Creates a new id + * @link https://secure.php.net/manual/en/mongoid.construct.php + * @param MongoId|string $id [optional] A string to use as the id. Must be 24 hexadecimal characters. If an invalid string is passed to this constructor, the constructor will ignore it and create a new id value. */ public function __construct($id = null) {} @@ -1945,12 +1936,12 @@ public function __construct($id = null) {} *

    */ public static function isValid($value) {} - /** - * (PECL mongo >= 0.8.0) - * Returns a hexadecimal representation of this id - * @link https://secure.php.net/manual/en/mongoid.tostring.php - * @return string This id. - */ + /** + * (PECL mongo >= 0.8.0) + * Returns a hexadecimal representation of this id + * @link https://secure.php.net/manual/en/mongoid.tostring.php + * @return string This id. + */ public function __toString() {} /** @@ -1969,12 +1960,12 @@ public function getInc() {} */ public function getPID() {} - /** - * (PECL mongo >= 1.0.1) - * Gets the number of seconds since the epoch that this id was created - * @link https://secure.php.net/manual/en/mongoid.gettimestamp.php - * @return int - */ + /** + * (PECL mongo >= 1.0.1) + * Gets the number of seconds since the epoch that this id was created + * @link https://secure.php.net/manual/en/mongoid.gettimestamp.php + * @return int + */ public function getTimestamp() {} /** @@ -1995,15 +1986,16 @@ public static function getHostname() {} public static function __set_state(array $props) {} } -class MongoCode { +class MongoCode +{ /** - * @var string - */ + * @var string + */ public $code; /** - * @var array - */ + * @var array + */ public $scope; /** @@ -2013,16 +2005,17 @@ class MongoCode { * @param string $code A string of code * @param array $scope The scope to use for the code */ - public function __construct($code, array $scope = array()) {} + public function __construct($code, array $scope = []) {} /** - * Returns this code as a string - * @return string - */ + * Returns this code as a string + * @return string + */ public function __toString() {} } -class MongoRegex { +class MongoRegex +{ /** * @link https://php.net/manual/en/class.mongoregex.php#mongoregex.props.regex * @var string @@ -2044,22 +2037,23 @@ class MongoRegex { public function __construct($regex) {} /** - * Returns a string representation of this regular expression. - * @return string This regular expression in the form "/expr/flags". - */ + * Returns a string representation of this regular expression. + * @return string This regular expression in the form "/expr/flags". + */ public function __toString() {} } -class MongoDate { +class MongoDate +{ /** * @link https://php.net/manual/en/class.mongodate.php#mongodate.props.sec - * @var int $sec + * @var int */ public $sec; /** * @link https://php.net/manual/en/class.mongodate.php#mongodate.props.usec - * @var int $usec + * @var int */ public $usec; @@ -2080,56 +2074,55 @@ public function __construct($sec = 0, $usec = 0) {} public function toDateTime() {} /** - * Returns a string representation of this date - * @return string - */ + * Returns a string representation of this date + * @return string + */ public function __toString() {} } -class MongoBinData { - /** - * Generic binary data. - * @link https://php.net/manual/en/class.mongobindata.php#mongobindata.constants.custom - */ - const GENERIC = 0x0; +class MongoBinData +{ + /** + * Generic binary data. + * @link https://php.net/manual/en/class.mongobindata.php#mongobindata.constants.custom + */ + public const GENERIC = 0x0; - /** - * Function + /** + * Function * @link https://php.net/manual/en/class.mongobindata.php#mongobindata.constants.func */ - const FUNC = 0x1; + public const FUNC = 0x1; - /** - * Generic binary data (deprecated in favor of MongoBinData::GENERIC) + /** + * Generic binary data (deprecated in favor of MongoBinData::GENERIC) * @link https://php.net/manual/en/class.mongobindata.php#mongobindata.constants.byte-array */ - const BYTE_ARRAY = 0x2; + public const BYTE_ARRAY = 0x2; - /** - * Universally unique identifier (deprecated in favor of MongoBinData::UUID_RFC4122) + /** + * Universally unique identifier (deprecated in favor of MongoBinData::UUID_RFC4122) * @link https://php.net/manual/en/class.mongobindata.php#mongobindata.constants.uuid */ - const UUID = 0x3; - - /** - * Universally unique identifier (according to » RFC 4122) - * @link https://php.net/manual/en/class.mongobindata.php#mongobindata.constants.custom - */ - const UUID_RFC4122 = 0x4; + public const UUID = 0x3; + /** + * Universally unique identifier (according to » RFC 4122) + * @link https://php.net/manual/en/class.mongobindata.php#mongobindata.constants.custom + */ + public const UUID_RFC4122 = 0x4; - /** - * MD5 + /** + * MD5 * @link https://php.net/manual/en/class.mongobindata.php#mongobindata.constants.md5 */ - const MD5 = 0x5; + public const MD5 = 0x5; - /** - * User-defined type + /** + * User-defined type * @link https://php.net/manual/en/class.mongobindata.php#mongobindata.constants.custom */ - const CUSTOM = 0x80; - + public const CUSTOM = 0x80; /** * @link https://php.net/manual/en/class.mongobindata.php#mongobindata.props.bin @@ -2143,7 +2136,6 @@ class MongoBinData { */ public $type; - /** * Creates a new binary data object. * @@ -2154,21 +2146,22 @@ class MongoBinData { public function __construct($data, $type = 2) {} /** - * Returns the string representation of this binary data object. - * @return string - */ + * Returns the string representation of this binary data object. + * @return string + */ public function __toString() {} } -class MongoDBRef { +class MongoDBRef +{ /** - * @var string - */ + * @var string + */ protected static $refKey = '$ref'; /** - * @var string - */ + * @var string + */ protected static $idKey = '$id'; /** @@ -2204,158 +2197,137 @@ public static function get($db, $ref) {} class MongoWriteBatch { - - const COMMAND_INSERT = 1; - const COMMAND_UPDATE = 2; - const COMMAND_DELETE = 3; - - - /** - *

    (PECL mongo >= 1.5.0)

    - * MongoWriteBatch constructor. - * @link https://php.net/manual/en/mongowritebatch.construct.php - * @param MongoCollection $collection The {@see MongoCollection} to execute the batch on. - * Its {@link https://php.net/manual/en/mongo.writeconcerns.php write concern} - * will be copied and used as the default write concern if none is given as $write_options or during - * {@see MongoWriteBatch::execute()}. - * @param string $batch_type [optional]

    - * One of: - *

      - *
    • 0 - make an MongoWriteBatch::COMMAND_INSERT batch
    • - *
    • 1 - make an MongoWriteBatch::COMMAND_UPDATE batch
    • - *
    • 2 - make a MongoWriteBatch::COMMAND_DELETE batch
    • - *
    - * @param array $write_options [optional] - *

    An array of Write Options.

    - * - * - * - * - * - * - *
    keyvalue meaning
    w (int|string){@link https://php.net/manual/en/mongo.writeconcerns.php Write concern} value
    wtimeout (int){@link https://php.net/manual/en/mongo.writeconcerns.php Maximum time to wait for replication}
    orderedDetermins if MongoDB must apply this batch in order (sequentally, one item at a time) or can rearrange it. - * Defaults to TRUE
    j (bool)Wait for journaling on the primary. This value is discouraged, use WriteConcern instead
    fsync (bool)Wait for fsync on the primary. This value is discouraged, use WriteConcern instead
    - */ - protected function __construct($collection, $batch_type, $write_options) - { - } - - /** - *

    (PECL mongo >= 1.5.0)

    - * Adds a write operation to a batch - * @link https://php.net/manual/en/mongowritebatch.add.php - * @param array $item

    - * An array that describes a write operation. The structure of this value - * depends on the batch's operation type. - *

    - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    Batch typeArgument expectation
    MongoWriteBatch::COMMAND_INSERT - * The document to add. - *
    MongoWriteBatch::COMMAND_UPDATE - *

    Raw update operation.

    - *

    Required keys are "q" and "u", which correspond to the - * $criteria and $new_object parameters of {@see MongoCollection::update()}, respectively.

    - *

    Optional keys are "multi" and "upsert", which correspond to the - * "multiple" and "upsert" options for {@see MongoCollection::update()}, respectively. - * If unspecified, both options default to FALSE.

    - *
    MongoWriteBatch::COMMAND_DELETE - *

    Raw delete operation.

    - *

    Required keys are: "q" and "limit", which correspond to the $criteria parameter - * and "justOne" option of {@see MongoCollection::remove()}, respectively.

    - *

    The "limit" option is an integer; however, MongoDB only supports 0 (i.e. remove all matching - * ocuments) and 1 (i.e. remove at most one matching document) at this time.

    - *
    - * @return bool Returns TRUE on success and throws an exception on failure. - */ - public function add(array $item) - { - } - - /** - *

    (PECL mongo >= 1.5.0)

    - * Executes a batch of write operations - * @link https://php.net/manual/en/mongowritebatch.execute.php - * @param array $write_options See {@see MongoWriteBatch::__construct} - * @return array Returns an array containing statistical information for the full batch. - * If the batch had to be split into multiple batches, the return value will aggregate the values from individual batches and return only the totals. - * If the batch was empty, an array containing only the 'ok' field is returned (as TRUE) although nothing will be shipped over the wire (NOOP). - */ - final public function execute(array $write_options) - { - } + public const COMMAND_INSERT = 1; + public const COMMAND_UPDATE = 2; + public const COMMAND_DELETE = 3; + + /** + *

    (PECL mongo >= 1.5.0)

    + * MongoWriteBatch constructor. + * @link https://php.net/manual/en/mongowritebatch.construct.php + * @param MongoCollection $collection The {@see MongoCollection} to execute the batch on. + * Its {@link https://php.net/manual/en/mongo.writeconcerns.php write concern} + * will be copied and used as the default write concern if none is given as $write_options or during + * {@see MongoWriteBatch::execute()}. + * @param string $batch_type [optional]

    + * One of: + *

      + *
    • 0 - make an MongoWriteBatch::COMMAND_INSERT batch
    • + *
    • 1 - make an MongoWriteBatch::COMMAND_UPDATE batch
    • + *
    • 2 - make a MongoWriteBatch::COMMAND_DELETE batch
    • + *
    + * @param array $write_options [optional] + *

    An array of Write Options.

    + * + * + * + * + * + * + *
    keyvalue meaning
    w (int|string){@link https://php.net/manual/en/mongo.writeconcerns.php Write concern} value
    wtimeout (int){@link https://php.net/manual/en/mongo.writeconcerns.php Maximum time to wait for replication}
    orderedDetermins if MongoDB must apply this batch in order (sequentally, one item at a time) or can rearrange it. + * Defaults to TRUE
    j (bool)Wait for journaling on the primary. This value is discouraged, use WriteConcern instead
    fsync (bool)Wait for fsync on the primary. This value is discouraged, use WriteConcern instead
    + */ + protected function __construct($collection, $batch_type, $write_options) {} + + /** + *

    (PECL mongo >= 1.5.0)

    + * Adds a write operation to a batch + * @link https://php.net/manual/en/mongowritebatch.add.php + * @param array $item

    + * An array that describes a write operation. The structure of this value + * depends on the batch's operation type. + *

    + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Batch typeArgument expectation
    MongoWriteBatch::COMMAND_INSERT + * The document to add. + *
    MongoWriteBatch::COMMAND_UPDATE + *

    Raw update operation.

    + *

    Required keys are "q" and "u", which correspond to the + * $criteria and $new_object parameters of {@see MongoCollection::update()}, respectively.

    + *

    Optional keys are "multi" and "upsert", which correspond to the + * "multiple" and "upsert" options for {@see MongoCollection::update()}, respectively. + * If unspecified, both options default to FALSE.

    + *
    MongoWriteBatch::COMMAND_DELETE + *

    Raw delete operation.

    + *

    Required keys are: "q" and "limit", which correspond to the $criteria parameter + * and "justOne" option of {@see MongoCollection::remove()}, respectively.

    + *

    The "limit" option is an integer; however, MongoDB only supports 0 (i.e. remove all matching + * ocuments) and 1 (i.e. remove at most one matching document) at this time.

    + *
    + * @return bool Returns TRUE on success and throws an exception on failure. + */ + public function add(array $item) {} + + /** + *

    (PECL mongo >= 1.5.0)

    + * Executes a batch of write operations + * @link https://php.net/manual/en/mongowritebatch.execute.php + * @param array $write_options See {@see MongoWriteBatch::__construct} + * @return array Returns an array containing statistical information for the full batch. + * If the batch had to be split into multiple batches, the return value will aggregate the values from individual batches and return only the totals. + * If the batch was empty, an array containing only the 'ok' field is returned (as TRUE) although nothing will be shipped over the wire (NOOP). + */ + final public function execute(array $write_options) {} } class MongoUpdateBatch extends MongoWriteBatch { - - /** - *

    (PECL mongo >= 1.5.0)

    - * MongoUpdateBatch constructor. - * @link https://php.net/manual/en/mongoupdatebatch.construct.php - * @param MongoCollection $collection

    The MongoCollection to execute the batch on. - * Its write concern will be copied and used as the default write concern - * if none is given as $write_options or during {@see MongoWriteBatch::execute()}.

    - * @param array $write_options

    An array of Write Options.

    - * - * - * - * - * - * - *
    keyvalue meaning
    w (int|string){@link https://php.net/manual/en/mongo.writeconcerns.php Write concern} value
    wtimeout (int){@link https://php.net/manual/en/mongo.writeconcerns.php Maximum time to wait for replication}
    orderedDetermins if MongoDB must apply this batch in order (sequentally, one item at a time) or can rearrange it. Defaults to TRUE
    j (bool)Wait for journaling on the primary. This value is discouraged, use WriteConcern instead
    fsync (bool)Wait for fsync on the primary. This value is discouraged, use WriteConcern instead
    - */ - public function __construct(MongoCollection $collection, array $write_options) - { - } - - -} - -class MongoException extends Exception { -} - -class MongoCursorException extends MongoException { - + /** + *

    (PECL mongo >= 1.5.0)

    + * MongoUpdateBatch constructor. + * @link https://php.net/manual/en/mongoupdatebatch.construct.php + * @param MongoCollection $collection

    The MongoCollection to execute the batch on. + * Its write concern will be copied and used as the default write concern + * if none is given as $write_options or during {@see MongoWriteBatch::execute()}.

    + * @param array $write_options

    An array of Write Options.

    + * + * + * + * + * + * + *
    keyvalue meaning
    w (int|string){@link https://php.net/manual/en/mongo.writeconcerns.php Write concern} value
    wtimeout (int){@link https://php.net/manual/en/mongo.writeconcerns.php Maximum time to wait for replication}
    orderedDetermins if MongoDB must apply this batch in order (sequentally, one item at a time) or can rearrange it. Defaults to TRUE
    j (bool)Wait for journaling on the primary. This value is discouraged, use WriteConcern instead
    fsync (bool)Wait for fsync on the primary. This value is discouraged, use WriteConcern instead
    + */ + public function __construct(MongoCollection $collection, array $write_options) {} } -class MongoCursorTimeoutException extends MongoCursorException { +class MongoException extends Exception {} -} - -class MongoConnectionException extends MongoException { +class MongoCursorException extends MongoException {} -} +class MongoCursorTimeoutException extends MongoCursorException {} -class MongoGridFSException extends MongoException { +class MongoConnectionException extends MongoException {} -} +class MongoGridFSException extends MongoException {} /** *

    (PECL mongo >= 1.5.0)

    * @link https://php.net/manual/en/class.mongowriteconcernexception.php#class.mongowriteconcernexception */ -class MongoWriteConcernException extends MongoCursorException { +class MongoWriteConcernException extends MongoCursorException +{ /** * Get the error document * @link https://php.net/manual/en/mongowriteconcernexception.getdocument.php @@ -2379,30 +2351,27 @@ class MongoProtocolException extends MongoException {} *

    (PECL mongo >= 1.5.0)

    * @link https://php.net/manual/en/class.mongoduplicatekeyexception.php */ -class MongoDuplicateKeyException extends MongoWriteConcernException { - -} +class MongoDuplicateKeyException extends MongoWriteConcernException {} /** *

    (PECL mongo >= 1.3.0)

    * @link https://php.net/manual/en/class.mongoresultexception.php#mongoresultexception.props.document - * */ -class MongoResultException extends MongoException { +class MongoResultException extends MongoException +{ /** *

    (PECL mongo >= 1.3.0)

    * Retrieve the full result document * https://secure.php.net/manual/en/mongoresultexception.getdocument.php * @return array

    The full result document as an array, including partial data if available and additional keys.

    */ - public function getDocument () {} + public function getDocument() {} public $document; - - } -class MongoTimestamp { +class MongoTimestamp +{ /** * @link https://php.net/manual/en/class.mongotimestamp.php#mongotimestamp.props.sec * @var int @@ -2415,7 +2384,7 @@ class MongoTimestamp { */ public $inc; - /** + /** * Creates a new timestamp. If no parameters are given, the current time is used * and the increment is automatically provided. The increment is set to 0 when the * module is loaded and is incremented every time this constructor is called @@ -2428,19 +2397,19 @@ class MongoTimestamp { public function __construct($sec = 0, $inc) {} /** - * @return string - */ + * @return string + */ public function __toString() {} } -class MongoInt32 { +class MongoInt32 +{ /** * @link https://php.net/manual/en/class.mongoint32.php#mongoint32.props.value * @var string */ public $value; - /** * Creates a new 32-bit number with the given value. * @@ -2450,19 +2419,19 @@ class MongoInt32 { public function __construct($value) {} /** - * @return string - */ + * @return string + */ public function __toString() {} } -class MongoInt64 { +class MongoInt64 +{ /** * @link https://php.net/manual/en/class.mongoint64.php#mongoint64.props.value * @var string */ public $value; - /** * Creates a new 64-bit number with the given value. * @@ -2472,63 +2441,64 @@ class MongoInt64 { public function __construct($value) {} /** - * @return string - */ + * @return string + */ public function __toString() {} } -class MongoLog { - /** +class MongoLog +{ + /** * @link https://php.net/manual/en/class.mongolog.php#mongolog.constants.none */ - const NONE = 0; + public const NONE = 0; - /** + /** * @link https://php.net/manual/en/class.mongolog.php#mongolog.constants.all */ - const ALL = 0; + public const ALL = 0; - /** + /** * @link https://php.net/manual/en/class.mongolog.php#mongolog.constants.warning */ - const WARNING = 0; + public const WARNING = 0; - /** + /** * @link https://php.net/manual/en/class.mongolog.php#mongolog.constants.info */ - const INFO = 0; + public const INFO = 0; - /** + /** * @link https://php.net/manual/en/class.mongolog.php#mongolog.constants.fine */ - const FINE = 0; + public const FINE = 0; - /** + /** * @link https://php.net/manual/en/class.mongolog.php#mongolog.constants.rs */ - const RS = 0; + public const RS = 0; - /** + /** * @link https://php.net/manual/en/class.mongolog.php#mongolog.constants.pool */ - const POOL = 0; + public const POOL = 0; - /** + /** * @link https://php.net/manual/en/class.mongolog.php#mongolog.constants.io */ - const IO = 0; + public const IO = 0; - /** + /** * @link https://php.net/manual/en/class.mongolog.php#mongolog.constants.server */ - const SERVER = 0; + public const SERVER = 0; - /** + /** * @link https://php.net/manual/en/class.mongolog.php#mongolog.constants.parse */ - const PARSE = 0; + public const PARSE = 0; - const CON = 2; + public const CON = 2; /** * (PECL mongo >= 1.3.0)
    @@ -2563,7 +2533,7 @@ class MongoLog { *
      * @return bool Returns TRUE on success or FALSE on failure. */ - public static function setCallback ( callable $log_function ) {} + public static function setCallback(callable $log_function) {} /** * This function can be used to set how verbose logging should be and the types of @@ -2607,7 +2577,8 @@ public static function setModule($module) {} public static function getModule() {} } -class MongoPool { +class MongoPool +{ /** * Returns an array of information about all connection pools. * @@ -2655,9 +2626,6 @@ public static function setSize($size) {} public static function getSize() {} } +class MongoMaxKey {} -class MongoMaxKey { -} - -class MongoMinKey { -} +class MongoMinKey {} diff --git a/mongodb/mongodb.php b/mongodb/mongodb.php index aa15e63a1..82285c1e9 100644 --- a/mongodb/mongodb.php +++ b/mongodb/mongodb.php @@ -11,25 +11,26 @@ * Userland PHP libraries that depend on this extension may provide higher level APIs, such as query builders, individual command helper methods, and GridFS. Application developers should consider using this extension in conjunction with the » MongoDB PHP library, which implements the same higher level APIs found in MongoDB drivers for other languages. This separation of concerns allows the driver to focus on essential features for which an extension implementation is paramount for performance. * @link https://php.net/manual/en/set.mongodb.php */ -namespace MongoDB {} - namespace MongoDB\Driver { +namespace MongoDB {} - use MongoDB\BSON\Serializable; - use MongoDB\Driver\Exception\AuthenticationException; - use MongoDB\Driver\Exception\BulkWriteException; - use MongoDB\Driver\Exception\CommandException; - use MongoDB\Driver\Exception\ConnectionException; - use MongoDB\Driver\Exception\EncryptionException; - use MongoDB\Driver\Exception\Exception; - use MongoDB\Driver\Exception\InvalidArgumentException; - use MongoDB\Driver\Exception\RuntimeException; - use MongoDB\Driver\Exception\UnexpectedValueException; - use MongoDB\Driver\Exception\WriteConcernException; - use MongoDB\Driver\Exception\WriteException; - use Traversable; +namespace MongoDB\Driver { + + use MongoDB\BSON\Serializable; + use MongoDB\Driver\Exception\AuthenticationException; + use MongoDB\Driver\Exception\BulkWriteException; + use MongoDB\Driver\Exception\CommandException; + use MongoDB\Driver\Exception\ConnectionException; + use MongoDB\Driver\Exception\EncryptionException; + use MongoDB\Driver\Exception\Exception; + use MongoDB\Driver\Exception\InvalidArgumentException; + use MongoDB\Driver\Exception\RuntimeException; + use MongoDB\Driver\Exception\UnexpectedValueException; + use MongoDB\Driver\Exception\WriteConcernException; + use MongoDB\Driver\Exception\WriteException; + use Traversable; - /** + /** * The MongoDB\Driver\Manager is the main entry point to the extension. It is responsible for maintaining connections to MongoDB (be it standalone server, replica set, or sharded cluster). * No connection to MongoDB is made upon instantiating the Manager. This means the MongoDB\Driver\Manager can always be constructed, even though one or more MongoDB servers are down. * Any write or query can throw connection exceptions as connections are created lazily. A MongoDB server may also become unavailable during the life time of the script. It is therefore important that all actions on the Manager to be wrapped in try/catch statements. @@ -46,9 +47,7 @@ final class Manager * @throws InvalidArgumentException on argument parsing errors * @throws RuntimeException if the uri format is invalid */ - final public function __construct($uri, array $uriOptions = [], array $driverOptions = []) - { - } + final public function __construct($uri, array $uriOptions = [], array $driverOptions = []) {} /** * Return a ClientEncryption instance. @@ -58,9 +57,7 @@ final public function __construct($uri, array $uriOptions = [], array $driverOpt * @throws \MongoDB\Driver\Exception\InvalidArgumentException On argument parsing errors. * @throws \MongoDB\Driver\Exception\RuntimeException If the extension was compiled without libmongocrypt support. */ - final public function createClientEncryption(array $options) - { - } + final public function createClientEncryption(array $options) {} /** * Execute one or more write operations @@ -76,9 +73,7 @@ final public function createClientEncryption(array $options) * @throws RuntimeException on other errors (invalid command, command arguments, ...) * @since 1.4.0 added $options argument */ - final public function executeBulkWrite($namespace, BulkWrite $bulk, $options = []) - { - } + final public function executeBulkWrite($namespace, BulkWrite $bulk, $options = []) {} /** * @link https://php.net/manual/en/mongodb-driver-manager.executecommand.php @@ -94,9 +89,7 @@ final public function executeBulkWrite($namespace, BulkWrite $bulk, $options = [ * @throws WriteConcernException on Write Concern failure * @since 1.4.0 added $options argument */ - final public function executeCommand($db, Command $command, $options = []) - { - } + final public function executeCommand($db, Command $command, $options = []) {} /** * Execute a MongoDB query @@ -111,9 +104,7 @@ final public function executeCommand($db, Command $command, $options = []) * @throws RuntimeException on other errors (invalid command, command arguments, ...) * @since 1.4.0 added $options argument */ - final public function executeQuery($namespace, Query $query, $options = []) - { - } + final public function executeQuery($namespace, Query $query, $options = []) {} /** * @link https://php.net/manual/en/mongodb-driver-manager.executereadcommand.php @@ -129,9 +120,7 @@ final public function executeQuery($namespace, Query $query, $options = []) * @throws WriteConcernException on Write Concern failure * @since 1.4.0 */ - final public function executeReadCommand($db, Command $command, array $options = []) - { - } + final public function executeReadCommand($db, Command $command, array $options = []) {} /** * @link https://php.net/manual/en/mongodb-driver-manager.executereadwritecommand.php @@ -147,9 +136,7 @@ final public function executeReadCommand($db, Command $command, array $options = * @throws WriteConcernException on Write Concern failure * @since 1.4.0 */ - final public function executeReadWriteCommand($db, Command $command, array $options = []) - { - } + final public function executeReadWriteCommand($db, Command $command, array $options = []) {} /** * @link https://php.net/manual/en/mongodb-driver-manager.executewritecommand.php @@ -165,9 +152,7 @@ final public function executeReadWriteCommand($db, Command $command, array $opti * @throws WriteConcernException on Write Concern failure * @since 1.4.0 */ - final public function executeWriteCommand($db, Command $command, array $options = []) - { - } + final public function executeWriteCommand($db, Command $command, array $options = []) {} /** * Return the ReadConcern for the Manager @@ -175,9 +160,7 @@ final public function executeWriteCommand($db, Command $command, array $options * @throws InvalidArgumentException on argument parsing errors. * @return ReadConcern */ - final public function getReadConcern() - { - } + final public function getReadConcern() {} /** * Return the ReadPreference for the Manager @@ -185,9 +168,7 @@ final public function getReadConcern() * @throws InvalidArgumentException * @return ReadPreference */ - final public function getReadPreference() - { - } + final public function getReadPreference() {} /** * Return the servers to which this manager is connected @@ -195,9 +176,7 @@ final public function getReadPreference() * @throws InvalidArgumentException on argument parsing errors * @return Server[] */ - final public function getServers() - { - } + final public function getServers() {} /** * Return the WriteConcern for the Manager @@ -205,9 +184,7 @@ final public function getServers() * @throws InvalidArgumentException on argument parsing errors. * @return WriteConcern */ - final public function getWriteConcern() - { - } + final public function getWriteConcern() {} /** * Preselect a MongoDB node based on provided readPreference. This can be useful to guarantee a command runs on a specific server when operating in a mixed version cluster. @@ -219,9 +196,7 @@ final public function getWriteConcern() * @throws RuntimeException if a server matching the read preference could not be found. * @return Server */ - final public function selectServer(ReadPreference $readPreference = null) - { - } + final public function selectServer(ReadPreference $readPreference = null) {} /** * Start a new client session for use with this client @@ -232,9 +207,7 @@ final public function selectServer(ReadPreference $readPreference = null) * @link https://secure.php.net/manual/en/mongodb-driver-manager.startsession.php * @since 1.4.0 */ - final public function startSession(array $options = []) - { - } + final public function startSession(array $options = []) {} } /** @@ -242,24 +215,22 @@ final public function startSession(array $options = []) */ final class Server { - const TYPE_UNKNOWN = 0; - const TYPE_STANDALONE = 1; - const TYPE_MONGOS = 2; - const TYPE_POSSIBLE_PRIMARY = 3; - const TYPE_RS_PRIMARY = 4; - const TYPE_RS_SECONDARY = 5; - const TYPE_RS_ARBITER = 6; - const TYPE_RS_OTHER = 7; - const TYPE_RS_GHOST = 8; + public const TYPE_UNKNOWN = 0; + public const TYPE_STANDALONE = 1; + public const TYPE_MONGOS = 2; + public const TYPE_POSSIBLE_PRIMARY = 3; + public const TYPE_RS_PRIMARY = 4; + public const TYPE_RS_SECONDARY = 5; + public const TYPE_RS_ARBITER = 6; + public const TYPE_RS_OTHER = 7; + public const TYPE_RS_GHOST = 8; /** * Server constructor. * @link https://php.net/manual/en/mongodb-driver-server.construct.php * @throws RuntimeException (can only be created internally) */ - final private function __construct() - { - } + final private function __construct() {} /** * Execute one or more write operations on this server @@ -275,9 +246,7 @@ final private function __construct() * @return WriteResult * @since 1.0.0 */ - final public function executeBulkWrite($namespace, BulkWrite $zwrite, $options = []) - { - } + final public function executeBulkWrite($namespace, BulkWrite $zwrite, $options = []) {} /** * Execute a database command on this server @@ -292,9 +261,7 @@ final public function executeBulkWrite($namespace, BulkWrite $zwrite, $options = * @return Cursor * @since 1.0.0 */ - final public function executeCommand($db, Command $command, ReadPreference $readPreference = null) - { - } + final public function executeCommand($db, Command $command, ReadPreference $readPreference = null) {} /** * Execute a database command that reads on this server @@ -309,9 +276,7 @@ final public function executeCommand($db, Command $command, ReadPreference $read * @throws RuntimeException On other errors (e.g. invalid command). * @since 1.4.0 */ - final public function executeReadCommand($db, Command $command, array $option = []) - { - } + final public function executeReadCommand($db, Command $command, array $option = []) {} /** * Execute a database command that reads and writes on this server @@ -326,9 +291,7 @@ final public function executeReadCommand($db, Command $command, array $option = * @throws RuntimeException On other errors (e.g. invalid command). * @since 1.4.0 */ - final public function executeReadWriteCommand($db, Command $command, array $option = []) - { - } + final public function executeReadWriteCommand($db, Command $command, array $option = []) {} /** * Execute a database command that writes on this server @@ -343,9 +306,7 @@ final public function executeReadWriteCommand($db, Command $command, array $opti * @throws RuntimeException On other errors (e.g. invalid command). * @since 1.4.0 */ - final public function executeWriteCommand($db, Command $command, array $option = []) - { - } + final public function executeWriteCommand($db, Command $command, array $option = []) {} /** * Execute a database query on this server @@ -394,9 +355,7 @@ final public function executeWriteCommand($db, Command $command, array $option = * @throws RuntimeException on other errors (e.g. invalid command, issuing a write command to a secondary). * @return Cursor */ - final public function executeQuery($namespace, Query $query, $option = []) - { - } + final public function executeQuery($namespace, Query $query, $option = []) {} /** * Returns the hostname of this server @@ -404,9 +363,7 @@ final public function executeQuery($namespace, Query $query, $option = []) * @throws InvalidArgumentException on argument parsing errors. * @return string */ - final public function getHost() - { - } + final public function getHost() {} /** * Returns an array of information about this server @@ -414,29 +371,23 @@ final public function getHost() * @throws InvalidArgumentException on argument parsing errors. * @return array */ - final public function getInfo() - { - } + final public function getInfo() {} /** * Returns the latency of this server * @link https://php.net/manual/en/mongodb-driver-server.getlatency.php * @throws InvalidArgumentException on argument parsing errors. - * @return integer + * @return int */ - final public function getLatency() - { - } + final public function getLatency() {} /** * Returns the port on which this server is listening * @link https://php.net/manual/en/mongodb-driver-server.getport.php * @throws InvalidArgumentException on argument parsing errors. - * @return integer + * @return int */ - final public function getPort() - { - } + final public function getPort() {} /** * Returns an array of tags describing this server in a replica set @@ -444,19 +395,15 @@ final public function getPort() * @throws InvalidArgumentException on argument parsing errors. * @return array An array of tags used to describe this server in a replica set. The array will contain zero or more string key and value pairs. */ - final public function getTags() - { - } + final public function getTags() {} /** * Returns an integer denoting the type of this server * @link https://php.net/manual/en/mongodb-driver-server.gettype.php * @throws InvalidArgumentException on argument parsing errors. - * @return integer denoting the type of this server + * @return int denoting the type of this server */ - final public function getType() - { - } + final public function getType() {} /** * Checks if this server is an arbiter member of a replica set @@ -464,9 +411,7 @@ final public function getType() * @throws InvalidArgumentException on argument parsing errors. * @return bool */ - final public function isArbiter() - { - } + final public function isArbiter() {} /** * Checks if this server is a hidden member of a replica set @@ -474,9 +419,7 @@ final public function isArbiter() * @throws InvalidArgumentException on argument parsing errors. * @return bool */ - final public function isHidden() - { - } + final public function isHidden() {} /** * Checks if this server is a passive member of a replica set @@ -484,9 +427,7 @@ final public function isHidden() * @throws InvalidArgumentException on argument parsing errors. * @return bool */ - final public function isPassive() - { - } + final public function isPassive() {} /** * Checks if this server is a primary member of a replica set @@ -494,9 +435,7 @@ final public function isPassive() * @throws InvalidArgumentException on argument parsing errors. * @return bool */ - final public function isPrimary() - { - } + final public function isPrimary() {} /** * Checks if this server is a secondary member of a replica set @@ -504,9 +443,7 @@ final public function isPrimary() * @throws InvalidArgumentException on argument parsing errors. * @return bool */ - final public function isSecondary() - { - } + final public function isSecondary() {} } /** @@ -522,9 +459,7 @@ final class Query * @param array $queryOptions * @throws InvalidArgumentException on argument parsing errors. */ - final public function __construct($filter, array $queryOptions = []) - { - } + final public function __construct($filter, array $queryOptions = []) {} } /** @@ -543,9 +478,7 @@ final class Command * @link https://secure.php.net/manual/en/mongodb-driver-command.construct.php * @since 1.0.0 */ - final public function __construct($document, array $commandOptions = []) - { - } + final public function __construct($document, array $commandOptions = []) {} } /** @@ -554,41 +487,41 @@ final public function __construct($document, array $commandOptions = []) */ final class ReadPreference implements Serializable, \Serializable { - const RP_PRIMARY = 1; - const RP_PRIMARY_PREFERRED = 5; - const RP_SECONDARY = 2; - const RP_SECONDARY_PREFERRED = 6; - const RP_NEAREST = 10; + public const RP_PRIMARY = 1; + public const RP_PRIMARY_PREFERRED = 5; + public const RP_SECONDARY = 2; + public const RP_SECONDARY_PREFERRED = 6; + public const RP_NEAREST = 10; /** * @since 1.7.0 */ - const PRIMARY = 'primary'; + public const PRIMARY = 'primary'; /** * @since 1.7.0 */ - const PRIMARY_PREFERRED = 'primaryPreferred'; + public const PRIMARY_PREFERRED = 'primaryPreferred'; /** * @since 1.7.0 */ - const SECONDARY = 'secondary'; + public const SECONDARY = 'secondary'; /** * @since 1.7.0 */ - const SECONDARY_PREFERRED = 'secondaryPreferred'; + public const SECONDARY_PREFERRED = 'secondaryPreferred'; /** * @since 1.7.0 */ - const NEAREST = 'nearest'; + public const NEAREST = 'nearest'; /** * @since 1.2.0 */ - const NO_MAX_STALENESS = -1; + public const NO_MAX_STALENESS = -1; /** * @since 1.2.0 */ - const SMALLEST_MAX_STALENESS_SECONDS = 90; + public const SMALLEST_MAX_STALENESS_SECONDS = 90; /** * Construct immutable ReadPreference @@ -598,9 +531,7 @@ final class ReadPreference implements Serializable, \Serializable * @param array $options * @throws InvalidArgumentException if mode is invalid or if tagSets is provided for a primary read preference. */ - final public function __construct(string|int $mode, array $tagSets = null, array $options = []) - { - } + final public function __construct(string|int $mode, array $tagSets = null, array $options = []) {} /** * Returns the ReadPreference's "hedge" option @@ -608,18 +539,14 @@ final public function __construct(string|int $mode, array $tagSets = null, array * @link https://www.php.net/manual/en/mongodb-driver-readpreference.gethedge.php * @return object|null */ - final public function getHedge() - { - } + final public function getHedge() {} /** * Returns the ReadPreference's "mode" option * @link https://php.net/manual/en/mongodb-driver-readpreference.getmode.php - * @return integer + * @return int */ - final public function getMode() - { - } + final public function getMode() {} /** * Returns the ReadPreference's "mode" option as a string @@ -628,18 +555,14 @@ final public function getMode() * @return string * @throws InvalidArgumentException */ - final public function getModeString() - { - } + final public function getModeString() {} /** * Returns the ReadPreference's "tagSets" option * @link https://php.net/manual/en/mongodb-driver-readpreference.gettagsets.php * @return array */ - final public function getTagSets() - { - } + final public function getTagSets() {} /** * Returns an object for BSON serialization @@ -648,9 +571,7 @@ final public function getTagSets() * @return object Returns an object for serializing the WriteConcern as BSON. * @throws InvalidArgumentException */ - final public function bsonSerialize() - { - } + final public function bsonSerialize() {} /** * Serialize a ReadPreference @@ -659,9 +580,7 @@ final public function bsonSerialize() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a ReadPreference @@ -672,9 +591,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} } /** @@ -687,22 +604,20 @@ final class ReadConcern implements Serializable, \Serializable /** * @since 1.2.0 */ - const LINEARIZABLE = 'linearizable' ; - const LOCAL = 'local' ; - const MAJORITY = 'majority' ; + public const LINEARIZABLE = 'linearizable'; + public const LOCAL = 'local'; + public const MAJORITY = 'majority'; /** * @since 1.4.0 */ - const AVAILABLE = 'available' ; + public const AVAILABLE = 'available'; /** * Construct immutable ReadConcern * @link https://php.net/manual/en/mongodb-driver-readconcern.construct.php * @param string $level */ - final public function __construct($level = null) - { - } + final public function __construct($level = null) {} /** * Returns the ReadConcern's "level" option @@ -710,9 +625,7 @@ final public function __construct($level = null) * @return string|null * @since 1.0.0 */ - final public function getLevel() - { - } + final public function getLevel() {} /** * Returns an object for BSON serialization @@ -720,9 +633,7 @@ final public function getLevel() * @return object * @since 1.2.0 */ - final public function bsonSerialize() - { - } + final public function bsonSerialize() {} /** * Checks if this is the default read concern @@ -731,9 +642,7 @@ final public function bsonSerialize() * @since 1.3.0 * @throws \MongoDB\Driver\Exception\InvalidArgumentException On argument parsing errors. */ - final public function isDefault() - { - } + final public function isDefault() {} /** * Serialize a ReadConcern @@ -742,9 +651,7 @@ final public function isDefault() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a ReadConcern @@ -755,9 +662,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} } /** @@ -771,18 +676,14 @@ final class Cursor implements CursorInterface, \Iterator * MongoDB\Driver\Cursor objects are returned as the result of an executed command or query and cannot be constructed directly. * @link https://php.net/manual/en/mongodb-driver-cursor.construct.php */ - final private function __construct() - { - } + final private function __construct() {} /** * Returns the current element. * @link https://www.php.net/manual/en/mongodb-driver-cursor.current.php * @return array|object */ - public function current() - { - } + public function current() {} /** * Returns the MongoDB\Driver\CursorId associated with this cursor. A cursor ID cursor uniquely identifies the cursor on the server. @@ -790,9 +691,7 @@ public function current() * @return CursorId for this Cursor * @throws InvalidArgumentException on argument parsing errors. */ - final public function getId() - { - } + final public function getId() {} /** * Returns the MongoDB\Driver\Server associated with this cursor. This is the server that executed the query or command. @@ -800,9 +699,7 @@ final public function getId() * @return Server for this Cursor * @throws InvalidArgumentException on argument parsing errors. */ - final public function getServer() - { - } + final public function getServer() {} /** * Checks if a cursor is still alive @@ -810,18 +707,14 @@ final public function getServer() * @return bool * @throws InvalidArgumentException On argument parsing errors */ - final public function isDead() - { - } + final public function isDead() {} /** * Returns the current result's index within the cursor. * @link https://www.php.net/manual/en/mongodb-driver-cursor.key.php * @return int */ - public function key() - { - } + public function key() {} /** * Advances the cursor to the next result. @@ -831,9 +724,7 @@ public function key() * @throws \MongoDB\Driver\Exception\ConnectionException if connection to the server fails (for reasons other than authentication). * @throws \MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails. */ - public function next() - { - } + public function next() {} /** * Rewind the cursor to the first result. @@ -844,9 +735,7 @@ public function next() * @throws \MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails. * @throws \MongoDB\Driver\Exception\LogicException if this method is called after the cursor has advanced beyond its first position. */ - public function rewind() - { - } + public function rewind() {} /** * Sets a type map to use for BSON unserialization @@ -858,9 +747,7 @@ public function rewind() * @throws InvalidArgumentException On argument parsing errors or if a class in the type map cannot * be instantiated or does not implement MongoDB\BSON\Unserializable */ - final public function setTypeMap(array $typemap) - { - } + final public function setTypeMap(array $typemap) {} /** * Returns an array of all result documents for this cursor @@ -868,18 +755,14 @@ final public function setTypeMap(array $typemap) * @return array * @throws InvalidArgumentException On argument parsing errors */ - final public function toArray() - { - } + final public function toArray() {} /** * Checks if the current position in the cursor is valid. * @link https://www.php.net/manual/en/mongodb-driver-cursor.valid.php * @return bool */ - public function valid() - { - } + public function valid() {} } /** @@ -894,9 +777,7 @@ final class CursorId implements \Serializable * @link https://php.net/manual/en/mongodb-driver-cursorid.construct.php * @see Cursor::getId() */ - final private function __construct() - { - } + final private function __construct() {} /** * String representation of the cursor ID @@ -904,9 +785,7 @@ final private function __construct() * @return string representation of the cursor ID. * @throws InvalidArgumentException on argument parsing errors. */ - final public function __toString() - { - } + final public function __toString() {} /** * Serialize a CursorId @@ -915,9 +794,7 @@ final public function __toString() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a CursorId @@ -928,9 +805,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} } /** @@ -951,9 +826,7 @@ final class BulkWrite implements \Countable * @param array $options * @throws InvalidArgumentException on argument parsing errors. */ - public final function __construct(array $options = []) - { - } + final public function __construct(array $options = []) {} /** * Count expected roundtrips for executing the bulk @@ -962,9 +835,7 @@ public final function __construct(array $options = []) * @return int number of expected roundtrips to execute the BulkWrite. * @throws InvalidArgumentException on argument parsing errors. */ - public function count() - { - } + public function count() {} /** * Add a delete operation to the bulk @@ -973,9 +844,7 @@ public function count() * @param array $deleteOptions * @throws InvalidArgumentException on argument parsing errors. */ - public function delete($filter, array $deleteOptions = []) - { - } + public function delete($filter, array $deleteOptions = []) {} /** * Add an insert operation to the bulk @@ -985,9 +854,7 @@ public function delete($filter, array $deleteOptions = []) * @return mixed * @throws InvalidArgumentException on argument parsing errors. */ - public final function insert($document) - { - } + final public function insert($document) {} /** * Add an update operation to the bulk @@ -997,9 +864,7 @@ public final function insert($document) * @param array $updateOptions * @throws InvalidArgumentException on argument parsing errors. */ - public function update($filter, $newObj, array $updateOptions = []) - { - } + public function update($filter, $newObj, array $updateOptions = []) {} } /** @@ -1010,46 +875,38 @@ final class WriteConcern implements Serializable, \Serializable /** * Majority of all the members in the set; arbiters, non-voting members, passive members, hidden members and delayed members are all included in the definition of majority write concern. */ - const MAJORITY = 'majority'; + public const MAJORITY = 'majority'; /** * Construct immutable WriteConcern * @link https://php.net/manual/en/mongodb-driver-writeconcern.construct.php - * @param string|integer $w - * @param integer $wtimeout How long to wait (in milliseconds) for secondaries before failing. + * @param string|int $w + * @param int $wtimeout How long to wait (in milliseconds) for secondaries before failing. * @param bool $journal Wait until mongod has applied the write to the journal. * @throws InvalidArgumentException on argument parsing errors. */ - final public function __construct($w, $wtimeout = 0, $journal = false) - { - } + final public function __construct($w, $wtimeout = 0, $journal = false) {} /** * Returns the WriteConcern's "journal" option * @link https://php.net/manual/en/mongodb-driver-writeconcern.getjournal.php * @return bool|null */ - final public function getJournal() - { - } + final public function getJournal() {} /** * Returns the WriteConcern's "w" option * @link https://php.net/manual/en/mongodb-driver-writeconcern.getw.php * @return string|int|null */ - final public function getW() - { - } + final public function getW() {} /** * Returns the WriteConcern's "wtimeout" option * @link https://php.net/manual/en/mongodb-driver-writeconcern.getwtimeout.php * @return int */ - final public function getWtimeout() - { - } + final public function getWtimeout() {} /** * Returns an object for BSON serialization @@ -1058,9 +915,7 @@ final public function getWtimeout() * @return object Returns an object for serializing the WriteConcern as BSON. * @throws InvalidArgumentException */ - final public function bsonSerialize() - { - } + final public function bsonSerialize() {} /** * Serialize a WriteConcern @@ -1069,9 +924,7 @@ final public function bsonSerialize() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a WriteConcern @@ -1082,9 +935,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} } /** @@ -1096,92 +947,72 @@ final class WriteResult /** * Returns the number of documents deleted * @link https://php.net/manual/en/mongodb-driver-writeresult.getdeletedcount.php - * @return integer|null + * @return int|null */ - final public function getDeletedCount() - { - } + final public function getDeletedCount() {} /** * Returns the number of documents inserted (excluding upserts) * @link https://php.net/manual/en/mongodb-driver-writeresult.getinsertedcount.php - * @return integer|null + * @return int|null */ - final public function getInsertedCount() - { - } + final public function getInsertedCount() {} /** * Returns the number of documents selected for update * @link https://php.net/manual/en/mongodb-driver-writeresult.getmatchedcount.php - * @return integer|null + * @return int|null */ - final public function getMatchedCount() - { - } + final public function getMatchedCount() {} /** * Returns the number of existing documents updated * @link https://php.net/manual/en/mongodb-driver-writeresult.getmodifiedcount.php - * @return integer|null + * @return int|null */ - final public function getModifiedCount() - { - } + final public function getModifiedCount() {} /** * Returns the server associated with this write result * @link https://php.net/manual/en/mongodb-driver-writeresult.getserver.php * @return Server */ - final public function getServer() - { - } + final public function getServer() {} /** * Returns the number of documents inserted by an upsert * @link https://php.net/manual/en/mongodb-driver-writeresult.getupsertedcount.php - * @return integer|null + * @return int|null */ - final public function getUpsertedCount() - { - } + final public function getUpsertedCount() {} /** * Returns an array of identifiers for upserted documents * @link https://php.net/manual/en/mongodb-driver-writeresult.getupsertedids.php * @return array */ - final public function getUpsertedIds() - { - } + final public function getUpsertedIds() {} /** * Returns any write concern error that occurred * @link https://php.net/manual/en/mongodb-driver-writeresult.getwriteconcernerror.php * @return WriteConcernError|null */ - final public function getWriteConcernError() - { - } + final public function getWriteConcernError() {} /** * Returns any write errors that occurred * @link https://php.net/manual/en/mongodb-driver-writeresult.getwriteerrors.php * @return WriteError[] */ - final public function getWriteErrors() - { - } + final public function getWriteErrors() {} /** * Returns whether the write was acknowledged * @link https://php.net/manual/en/mongodb-driver-writeresult.isacknowledged.php * @return bool */ - final public function isAcknowledged() - { - } + final public function isAcknowledged() {} } /** @@ -1194,36 +1025,28 @@ final class WriteError * @link https://php.net/manual/en/mongodb-driver-writeerror.getcode.php * @return int */ - final public function getCode() - { - } + final public function getCode() {} /** * Returns the index of the write operation corresponding to this WriteError * @link https://php.net/manual/en/mongodb-driver-writeerror.getindex.php * @return int */ - final public function getIndex() - { - } + final public function getIndex() {} /** * Returns additional metadata for the WriteError * @link https://php.net/manual/en/mongodb-driver-writeerror.getinfo.php * @return mixed */ - final public function getInfo() - { - } + final public function getInfo() {} /** * Returns the WriteError's error message * @link https://php.net/manual/en/mongodb-driver-writeerror.getmessage.php * @return string */ - final public function getMessage() - { - } + final public function getMessage() {} } /** @@ -1237,27 +1060,21 @@ final class WriteConcernError * @link https://php.net/manual/en/mongodb-driver-writeconcernerror.getcode.php * @return int */ - final public function getCode() - { - } + final public function getCode() {} /** * Returns additional metadata for the WriteConcernError * @link https://php.net/manual/en/mongodb-driver-writeconcernerror.getinfo.php * @return mixed */ - final public function getInfo() - { - } + final public function getInfo() {} /** * Returns the WriteConcernError's error message * @link https://php.net/manual/en/mongodb-driver-writeconcernerror.getmessage.php * @return string */ - final public function getMessage() - { - } + final public function getMessage() {} } /** @@ -1271,32 +1088,30 @@ final class Session /** * @since 1.7.0 */ - const TRANSACTION_NONE = 'none'; + public const TRANSACTION_NONE = 'none'; /** * @since 1.7.0 */ - const TRANSACTION_STARTING = 'starting'; + public const TRANSACTION_STARTING = 'starting'; /** * @since 1.7.0 */ - const TRANSACTION_IN_PROGRESS = 'in_progress'; + public const TRANSACTION_IN_PROGRESS = 'in_progress'; /** * @since 1.7.0 */ - const TRANSACTION_COMMITTED = 'committed'; + public const TRANSACTION_COMMITTED = 'committed'; /** * @since 1.7.0 */ - const TRANSACTION_ABORTED = 'aborted'; + public const TRANSACTION_ABORTED = 'aborted'; /** * Create a new Session (not used) * @link https://secure.php.net/manual/en/mongodb-driver-session.construct.php * @since 1.4.0 */ - final private function __construct() - { - } + final private function __construct() {} /** * Aborts a transaction @@ -1304,9 +1119,7 @@ final private function __construct() * @return void * @since 1.5.0 */ - final public function abortTransaction() - { - } + final public function abortTransaction() {} /** * Advances the cluster time for this session @@ -1316,9 +1129,7 @@ final public function abortTransaction() * @throws \MongoDB\Driver\Exception\InvalidArgumentException On argument parsing errors * @since 1.4.0 */ - final public function advanceClusterTime($clusterTime) - { - } + final public function advanceClusterTime($clusterTime) {} /** * Advances the operation time for this session @@ -1328,9 +1139,7 @@ final public function advanceClusterTime($clusterTime) * @throws \MongoDB\Driver\Exception\InvalidArgumentException On argument parsing errors * @since 1.4.0 */ - final public function advanceOperationTime(\MongoDB\BSON\TimestampInterface $operationTime) - { - } + final public function advanceOperationTime(\MongoDB\BSON\TimestampInterface $operationTime) {} /** * @link https://secure.php.net/manual/en/mongodb-driver-session.committransaction.php @@ -1344,9 +1153,7 @@ final public function advanceOperationTime(\MongoDB\BSON\TimestampInterface $ope * @throws \MongoDB\Driver\Exception\RuntimeException If the transaction could not be committed (e.g. a transaction was not started) * @since 1.5.0 */ - final public function commitTransaction() - { - } + final public function commitTransaction() {} /** * This method closes an existing session. If a transaction was associated with this session, this transaction is also aborted, @@ -1357,9 +1164,7 @@ final public function commitTransaction() * @throws \MongoDB\Driver\Exception\InvalidArgumentException On argument parsing errors * @since 1.5.0 */ - final public function endSession() - { - } + final public function endSession() {} /** * Returns the cluster time for this session @@ -1368,9 +1173,7 @@ final public function endSession() * @throws \MongoDB\Driver\Exception\InvalidArgumentException * @since 1.4.0 */ - final public function getClusterTime() - { - } + final public function getClusterTime() {} /** * Returns the logical session ID for this session @@ -1379,9 +1182,7 @@ final public function getClusterTime() * @throws \MongoDB\Driver\Exception\InvalidArgumentException * @since 1.4.0 */ - final public function getLogicalSessionId() - { - } + final public function getLogicalSessionId() {} /** * Returns the operation time for this session, or NULL if the session has no operation time @@ -1390,9 +1191,7 @@ final public function getLogicalSessionId() * @throws \MongoDB\Driver\Exception\InvalidArgumentException * @since 1.4.0 */ - final public function getOperationTime() - { - } + final public function getOperationTime() {} /** * Returns the server to which this session is pinned, or NULL if the session is not pinned to any server. @@ -1401,9 +1200,7 @@ final public function getOperationTime() * @throws \MongoDB\Driver\Exception\InvalidArgumentException * @since 1.6.0 */ - final public function getServer() - { - } + final public function getServer() {} /** * Returns options for the current transactions, or NULL if no transaction is running. @@ -1412,9 +1209,7 @@ final public function getServer() * @throws \MongoDB\Driver\Exception\InvalidArgumentException * @since 1.7.0 */ - final public function getTransactionOptions() - { - } + final public function getTransactionOptions() {} /** * Returns the current transaction state @@ -1423,9 +1218,7 @@ final public function getTransactionOptions() * @throws \MongoDB\Driver\Exception\InvalidArgumentException * @since 1.7.0 */ - final public function getTransactionState() - { - } + final public function getTransactionState() {} /** * Returns whether a multi-document transaction is in progress. @@ -1434,9 +1227,7 @@ final public function getTransactionState() * @throws \MongoDB\Driver\Exception\InvalidArgumentException * @since 1.6.0 */ - final public function isInTransaction() - { - } + final public function isInTransaction() {} /** * Starts a transaction @@ -1448,9 +1239,7 @@ final public function isInTransaction() * @throws \MongoDB\Driver\Exception\RuntimeException If the the transaction could not be started (e.g. a transaction was already started). * @since 1.4.0 */ - final public function startTransaction($options) - { - } + final public function startTransaction($options) {} } /** @@ -1466,7 +1255,7 @@ interface CursorInterface extends Traversable * @throws InvalidArgumentException * @link https://www.php.net/manual/en/mongodb-driver-cursorinterface.getid.php */ - function getId(); + public function getId(); /** * Returns the MongoDB\Driver\Server associated with this cursor. @@ -1475,7 +1264,7 @@ function getId(); * @return Server Returns the MongoDB\Driver\Server associated with this cursor. * @throws InvalidArgumentException */ - function getServer(); + public function getServer(); /** * Checks whether the cursor may have additional results available to read. @@ -1483,7 +1272,7 @@ function getServer(); * @return bool Returns TRUE if additional results are not available, and FALSE otherwise. * @throws InvalidArgumentException */ - function isDead(); + public function isDead(); /** * Sets a type map to use for BSON unserialization @@ -1492,7 +1281,7 @@ function isDead(); * @return mixed * @throws InvalidArgumentException */ - function setTypeMap(array $typemap); + public function setTypeMap(array $typemap); /** * Iterates the cursor and returns its results in an array. @@ -1500,7 +1289,7 @@ function setTypeMap(array $typemap); * @return array Returns an array containing all results for this cursor. * @throws InvalidArgumentException */ - function toArray(); + public function toArray(); } /** @@ -1510,12 +1299,10 @@ function toArray(); */ final class ClientEncryption { - const AEAD_AES_256_CBC_HMAC_SHA_512_DETERMINISTIC = 'AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic'; - const AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM = 'AEAD_AES_256_CBC_HMAC_SHA_512-Random'; + public const AEAD_AES_256_CBC_HMAC_SHA_512_DETERMINISTIC = 'AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic'; + public const AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM = 'AEAD_AES_256_CBC_HMAC_SHA_512-Random'; - final private function __construct() - { - } + final private function __construct() {} /** * Creates a new key document and inserts into the key vault collection. @@ -1526,9 +1313,7 @@ final private function __construct() * @throws InvalidArgumentException On argument parsing errors. * @throws EncryptionException If an error occurs while creating the data key. */ - final public function createDataKey($kmsProvider, $options = []) - { - } + final public function createDataKey($kmsProvider, $options = []) {} /** * Decrypts an encrypted value (BSON binary of subtype 6). @@ -1538,9 +1323,7 @@ final public function createDataKey($kmsProvider, $options = []) * @throws InvalidArgumentException On argument parsing errors. * @throws EncryptionException If an error occurs while decrypting the value. */ - final public function decrypt(\MongoDB\BSON\Binary $value) - { - } + final public function decrypt(\MongoDB\BSON\Binary $value) {} /** * Encrypts a value with a given key and algorithm. @@ -1551,18 +1334,16 @@ final public function decrypt(\MongoDB\BSON\Binary $value) * @throws InvalidArgumentException On argument parsing errors. * @throws EncryptionException If an error occurs while encrypting the value. */ - final public function encrypt($value, $options = []) - { - } + final public function encrypt($value, $options = []) {} } } - namespace MongoDB\Driver\Exception { +namespace MongoDB\Driver\Exception { - use MongoDB\Driver\WriteResult; - use Throwable; + use MongoDB\Driver\WriteResult; + use Throwable; - /** + /** * Thrown when the driver encounters a runtime error (e.g. internal error from » libmongoc). * @link https://php.net/manual/en/class.mongodb-driver-exception-runtimeexception.php * @since 1.0.0 @@ -1570,7 +1351,7 @@ final public function encrypt($value, $options = []) class RuntimeException extends \RuntimeException implements Exception { /** - * @var boolean + * @var bool * @since 1.6.0 */ protected $errorLabels; @@ -1581,45 +1362,35 @@ class RuntimeException extends \RuntimeException implements Exception * @since 1.6.0 * @return bool */ - final public function hasErrorLabel($errorLabel) - { - } + final public function hasErrorLabel($errorLabel) {} } /** * Common interface for all driver exceptions. This may be used to catch only exceptions originating from the driver itself. * @link https://php.net/manual/en/class.mongodb-driver-exception-exception.php */ - interface Exception extends Throwable - { - } + interface Exception extends Throwable {} /** * Thrown when the driver fails to authenticate with the server. * @link https://php.net/manual/en/class.mongodb-driver-exception-authenticationexception.php * @since 1.0.0 */ - class AuthenticationException extends ConnectionException implements Exception - { - } + class AuthenticationException extends ConnectionException implements Exception {} /** * Base class for exceptions thrown when the driver fails to establish a database connection. * @link https://php.net/manual/en/class.mongodb-driver-exception-connectionexception.php * @since 1.0.0 */ - class ConnectionException extends RuntimeException implements Exception - { - } + class ConnectionException extends RuntimeException implements Exception {} /** * Thrown when a driver method is given invalid arguments (e.g. invalid option types). * @link https://php.net/manual/en/class.mongodb-driver-exception-invalidargumentexception.php * @since 1.0.0 */ - class InvalidArgumentException extends \InvalidArgumentException - { - } + class InvalidArgumentException extends \InvalidArgumentException {} /** * Thrown when a command fails @@ -1635,9 +1406,7 @@ class CommandException extends ServerException * @return object * @since 1.5.0 */ - final public function getResultDocument() - { - } + final public function getResultDocument() {} } /** @@ -1647,9 +1416,7 @@ final public function getResultDocument() * @link https://secure.php.net/manual/en/class.mongodb-driver-exception-serverexception.php * @since 1.5.0 */ - class ServerException extends RuntimeException implements Exception - { - } + class ServerException extends RuntimeException implements Exception {} /** * Base class for exceptions thrown by a failed write operation. @@ -1668,80 +1435,62 @@ abstract class WriteException extends ServerException implements Exception * @return WriteResult for the failed write operation * @since 1.0.0 */ - final public function getWriteResult() - { - } + final public function getWriteResult() {} } - class WriteConcernException extends RuntimeException implements Exception - { - } + class WriteConcernException extends RuntimeException implements Exception {} /** * Thrown when the driver encounters an unexpected value (e.g. during BSON serialization or deserialization). * @link https://php.net/manual/en/class.mongodb-driver-exception-unexpectedvalueexception.php * @since 1.0.0 */ - class UnexpectedValueException extends \UnexpectedValueException implements Exception - { - } + class UnexpectedValueException extends \UnexpectedValueException implements Exception {} /** * Thrown when a bulk write operation fails. * @link https://php.net/manual/en/class.mongodb-driver-exception-bulkwriteexception.php * @since 1.0.0 */ - class BulkWriteException extends WriteException implements Exception - { - } + class BulkWriteException extends WriteException implements Exception {} /** * Thrown when the driver fails to establish a database connection within a specified time limit (e.g. connectTimeoutMS). * @link https://php.net/manual/en/class.mongodb-driver-exception-connectiontimeoutexception.php */ - class ConnectionTimeoutException extends ConnectionException implements Exception - { - } + class ConnectionTimeoutException extends ConnectionException implements Exception {} /** * Thrown when a query or command fails to complete within a specified time limit (e.g. maxTimeMS). * @link https://php.net/manual/en/class.mongodb-driver-exception-executiontimeoutexception.php */ - class ExecutionTimeoutException extends ServerException implements Exception - { - } + class ExecutionTimeoutException extends ServerException implements Exception {} /** * Thrown when the driver is incorrectly used (e.g. rewinding a cursor). * @link https://php.net/manual/en/class.mongodb-driver-exception-logicexception.php */ - class LogicException extends \LogicException implements Exception - { - } + class LogicException extends \LogicException implements Exception {} /** * Thrown when the driver fails to establish an SSL connection with the server. * @link https://php.net/manual/en/class.mongodb-driver-exception-sslconnectionexception.php */ - class SSLConnectionException extends ConnectionException implements Exception - { - } + class SSLConnectionException extends ConnectionException implements Exception {} /** * Base class for exceptions thrown during client-side encryption. * @link https://php.net/manual/en/class.mongodb-driver-exception-encryptionexception.php * @since 1.7.0 */ - class EncryptionException extends RuntimeException implements Exception - { - } + class EncryptionException extends RuntimeException implements Exception {} } /** * @link https://secure.php.net/manual/en/mongodb.monitoring.php */ - namespace MongoDB\Driver\Monitoring { +namespace MongoDB\Driver\Monitoring { /** * Registers a new monitoring event subscriber with the driver. * Registered subscribers will be notified of monitoring events through specific methods. @@ -1752,9 +1501,7 @@ class EncryptionException extends RuntimeException implements Exception * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - function addSubscriber(Subscriber $subscriber) - { - } + function addSubscriber(Subscriber $subscriber) {} /** * Unregisters an existing monitoring event subscriber from the driver. @@ -1765,9 +1512,7 @@ function addSubscriber(Subscriber $subscriber) * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - function removeSubscriber(Subscriber $subscriber) - { - } + function removeSubscriber(Subscriber $subscriber) {} /** * Base interface for event subscribers. @@ -1776,9 +1521,7 @@ function removeSubscriber(Subscriber $subscriber) * @link https://secure.php.net/manual/en/class.mongodb-driver-monitoring-subscriber.php * @since 1.3.0 */ - interface Subscriber - { - } + interface Subscriber {} /** * Classes may implement this interface to register an event subscriber that is notified for each started, successful, and failed command event. @@ -1788,7 +1531,6 @@ interface Subscriber */ interface CommandSubscriber extends Subscriber { - /** * Notification method for a failed command. * If the subscriber has been registered with MongoDB\Driver\Monitoring\addSubscriber(), the driver will call this method when a command has failed. @@ -1823,7 +1565,6 @@ public function commandStarted(CommandStartedEvent $event); public function commandSucceeded(CommandSucceededEvent $event); } - /** * Encapsulates information about a successful command. * @link https://secure.php.net/manual/en/class.mongodb-driver-monitoring-commandsucceededevent.php @@ -1838,9 +1579,7 @@ class CommandSucceededEvent * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getCommandName() - { - } + final public function getCommandName() {} /** * Returns the command's duration in microseconds @@ -1850,9 +1589,7 @@ final public function getCommandName() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getDurationMicros() - { - } + final public function getDurationMicros() {} /** * Returns the command's operation ID. @@ -1863,9 +1600,7 @@ final public function getDurationMicros() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getOperationId() - { - } + final public function getOperationId() {} /** * Returns the command reply document. @@ -1875,9 +1610,7 @@ final public function getOperationId() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getReply() - { - } + final public function getReply() {} /** * Returns the command's request ID. @@ -1887,9 +1620,7 @@ final public function getReply() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getRequestId() - { - } + final public function getRequestId() {} /** * Returns the Server on which the command was executed. @@ -1897,9 +1628,7 @@ final public function getRequestId() * @return \MongoDB\Driver\Server on which the command was executed. * @since 1.3.0 */ - final public function getServer() - { - } + final public function getServer() {} } /** @@ -1916,9 +1645,7 @@ class CommandFailedEvent * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getCommandName() - { - } + final public function getCommandName() {} /** * Returns the command's duration in microseconds @@ -1928,9 +1655,7 @@ final public function getCommandName() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getDurationMicros() - { - } + final public function getDurationMicros() {} /** * Returns the Exception associated with the failed command @@ -1939,9 +1664,7 @@ final public function getDurationMicros() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getError() - { - } + final public function getError() {} /** * Returns the command's operation ID. @@ -1952,9 +1675,7 @@ final public function getError() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getOperationId() - { - } + final public function getOperationId() {} /** * Returns the command reply document. @@ -1964,9 +1685,7 @@ final public function getOperationId() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getReply() - { - } + final public function getReply() {} /** * Returns the command's request ID. @@ -1976,9 +1695,7 @@ final public function getReply() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getRequestId() - { - } + final public function getRequestId() {} /** * Returns the Server on which the command was executed. @@ -1986,9 +1703,7 @@ final public function getRequestId() * @return \MongoDB\Driver\Server on which the command was executed. * @since 1.3.0 */ - final public function getServer() - { - } + final public function getServer() {} } /** @@ -1998,7 +1713,6 @@ final public function getServer() */ class CommandStartedEvent { - /** * Returns the command document * The reply document will be converted from BSON to PHP using the default deserialization rules (e.g. BSON documents will be converted to stdClass). @@ -2007,10 +1721,7 @@ class CommandStartedEvent * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getCommand() - { - - } + final public function getCommand() {} /** * Returns the command name. @@ -2019,9 +1730,7 @@ final public function getCommand() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getCommandName() - { - } + final public function getCommandName() {} /** * Returns the database on which the command was executed. @@ -2030,9 +1739,7 @@ final public function getCommandName() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getDatabaseName() - { - } + final public function getDatabaseName() {} /** * Returns the command's operation ID. @@ -2043,10 +1750,7 @@ final public function getDatabaseName() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getOperationId() - { - } - + final public function getOperationId() {} /** * Returns the command's request ID. @@ -2056,9 +1760,7 @@ final public function getOperationId() * @throws \InvalidArgumentException on argument parsing errors. * @since 1.3.0 */ - final public function getRequestId() - { - } + final public function getRequestId() {} /** * Returns the Server on which the command was executed. @@ -2066,26 +1768,24 @@ final public function getRequestId() * @return \MongoDB\Driver\Server on which the command was executed. * @since 1.3.0 */ - final public function getServer() - { - } + final public function getServer() {} } - } /** * @link https://php.net/manual/en/book.bson.php */ - namespace MongoDB\BSON { - use DateTimeInterface; - use JetBrains\PhpStorm\Deprecated; - use JsonSerializable; - use MongoDB\Driver\Exception\InvalidArgumentException; - use MongoDB\Driver\Exception\UnexpectedValueException; - use DateTime; +namespace MongoDB\BSON { - /** + use DateTime; + use DateTimeInterface; + use JetBrains\PhpStorm\Deprecated; + use JsonSerializable; + use MongoDB\Driver\Exception\InvalidArgumentException; + use MongoDB\Driver\Exception\UnexpectedValueException; + + /** * Converts a BSON string to its Canonical Extended JSON representation. * The canonical format prefers type fidelity at the expense of concise output and is most suited for producing * output that can be converted back to BSON without any loss of type information @@ -2095,9 +1795,7 @@ final public function getServer() * @return string The converted JSON value * @throws UnexpectedValueException */ - function toCanonicalExtendedJSON($bson) - { - } + function toCanonicalExtendedJSON($bson) {} /** * Converts a BSON string to its » Relaxed Extended JSON representation. @@ -2108,9 +1806,7 @@ function toCanonicalExtendedJSON($bson) * @return string The converted JSON value * @throws UnexpectedValueException */ - function toRelaxedExtendedJSON($bson) - { - } + function toRelaxedExtendedJSON($bson) {} /** * Returns the BSON representation of a JSON value @@ -2120,9 +1816,7 @@ function toRelaxedExtendedJSON($bson) * @return string The serialized BSON document as a binary string. * @throws UnexpectedValueException if the JSON value cannot be converted to BSON (e.g. due to a syntax error). */ - function fromJSON($json) - { - } + function fromJSON($json) {} /** * Returns the BSON representation of a PHP value @@ -2132,9 +1826,7 @@ function fromJSON($json) * @return string The serialized BSON document as a binary string * @throws UnexpectedValueException if the PHP value cannot be converted to BSON. */ - function fromPHP($value) - { - } + function fromPHP($value) {} /** * Returns the JSON representation of a BSON value @@ -2145,9 +1837,7 @@ function fromPHP($value) * @see https://docs.mongodb.org/manual/reference/mongodb-extended-json/ * @throws UnexpectedValueException if the input did not contain exactly one BSON document */ - function toJSON($bson) - { - } + function toJSON($bson) {} /** * Returns the PHP representation of a BSON value @@ -2160,9 +1850,7 @@ function toJSON($bson) * @throws UnexpectedValueException if the input did not contain exactly one BSON document. * @throws InvalidArgumentException if a class in the type map cannot be instantiated or does not implement MongoDB\BSON\Unserializable. */ - function toPHP($bson, array $typeMap) - { - } + function toPHP($bson, array $typeMap) {} /** * Class Binary @@ -2170,58 +1858,48 @@ function toPHP($bson, array $typeMap) */ final class Binary implements Type, BinaryInterface, \Serializable, JsonSerializable { - const TYPE_GENERIC = 0; - const TYPE_FUNCTION = 1; - const TYPE_OLD_BINARY = 2; - const TYPE_OLD_UUID = 3; - const TYPE_UUID = 4; - const TYPE_MD5 = 5; + public const TYPE_GENERIC = 0; + public const TYPE_FUNCTION = 1; + public const TYPE_OLD_BINARY = 2; + public const TYPE_OLD_UUID = 3; + public const TYPE_UUID = 4; + public const TYPE_MD5 = 5; /** * @since 1.7.0 */ - const TYPE_ENCRYPTED = 6; - const TYPE_USER_DEFINED = 128; + public const TYPE_ENCRYPTED = 6; + public const TYPE_USER_DEFINED = 128; /** * Binary constructor. * @link https://php.net/manual/en/mongodb-bson-binary.construct.php * @param string $data - * @param integer $type + * @param int $type */ - public final function __construct($data, $type) - { - } + final public function __construct($data, $type) {} /** * Returns the Binary's data * @link https://php.net/manual/en/mongodb-bson-binary.getdata.php * @return string */ - final public function getData() - { - } + final public function getData() {} /** * Returns the Binary's type * @link https://php.net/manual/en/mongodb-bson-binary.gettype.php - * @return integer + * @return int */ - final public function getType() - { - } + final public function getType() {} - public static function __set_state($an_array) - { - } + public static function __set_state($an_array) {} /** * Returns the Binary's data * @link https://www.php.net/manual/en/mongodb-bson-binary.tostring.php * @return string */ - final public function __toString() - { - } + final public function __toString() {} /** * Serialize a Binary @@ -2230,9 +1908,7 @@ final public function __toString() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a Binary @@ -2243,9 +1919,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2254,9 +1928,7 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} } /** @@ -2270,22 +1942,16 @@ final class Decimal128 implements Type, Decimal128Interface, \Serializable, Json * @link https://php.net/manual/en/mongodb-bson-decimal128.construct.php * @param string $value A decimal string. */ - final public function __construct($value = '') - { - } + final public function __construct($value = '') {} /** * Returns the string representation of this Decimal128 * @link https://php.net/manual/en/mongodb-bson-decimal128.tostring.php * @return string */ - final public function __toString() - { - } + final public function __toString() {} - public static function __set_state($an_array) - { - } + public static function __set_state($an_array) {} /** * Serialize a Decimal128 @@ -2294,9 +1960,7 @@ public static function __set_state($an_array) * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a Decimal128 @@ -2307,9 +1971,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2318,9 +1980,7 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} } /** @@ -2335,40 +1995,30 @@ final class Javascript implements Type, JavascriptInterface, \Serializable, Json * @param string $code * @param array|object $scope */ - final public function __construct($code, $scope = []) - { - } + final public function __construct($code, $scope = []) {} - public static function __set_state($an_array) - { - } + public static function __set_state($an_array) {} /** * Returns the Javascript's code * @return string * @link https://secure.php.net/manual/en/mongodb-bson-javascript.getcode.php */ - final public function getCode() - { - } + final public function getCode() {} /** * Returns the Javascript's scope document * @return object|null * @link https://secure.php.net/manual/en/mongodb-bson-javascript.getscope.php */ - final public function getScope() - { - } + final public function getScope() {} /** * Returns the Javascript's code * @return string * @link https://secure.php.net/manual/en/mongodb-bson-javascript.tostring.php */ - final public function __toString() - { - } + final public function __toString() {} /** * Serialize a Javascript @@ -2377,9 +2027,7 @@ final public function __toString() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a Javascript @@ -2390,9 +2038,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2401,9 +2047,7 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} } /** @@ -2412,9 +2056,7 @@ final public function jsonSerialize() */ final class MaxKey implements Type, MaxKeyInterface, \Serializable, JsonSerializable { - public static function __set_state($an_array) - { - } + public static function __set_state($an_array) {} /** * Serialize a MaxKey @@ -2423,9 +2065,7 @@ public static function __set_state($an_array) * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a MaxKey @@ -2436,9 +2076,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2447,9 +2085,7 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} } /** @@ -2458,9 +2094,7 @@ final public function jsonSerialize() */ final class MinKey implements Type, MinKeyInterface, \Serializable, JsonSerializable { - public static function __set_state($an_array) - { - } + public static function __set_state($an_array) {} /** * Serialize a MinKey @@ -2469,9 +2103,7 @@ public static function __set_state($an_array) * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a MinKey @@ -2482,9 +2114,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2493,9 +2123,7 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} } /** @@ -2510,18 +2138,14 @@ final class ObjectId implements Type, ObjectIdInterface, \Serializable, JsonSeri * @param string|null $id A 24-character hexadecimal string. If not provided, the driver will generate an ObjectId. * @throws InvalidArgumentException if id is not a 24-character hexadecimal string. */ - public final function __construct($id = null) - { - } + final public function __construct($id = null) {} /** * Returns the hexadecimal representation of this ObjectId * @link https://php.net/manual/en/mongodb-bson-objectid.tostring.php * @return string */ - final public function __toString() - { - } + final public function __toString() {} /** * Returns the timestamp component of this ObjectId @@ -2529,9 +2153,7 @@ final public function __toString() * @link https://secure.php.net/manual/en/mongodb-bson-objectid.gettimestamp.php * @return int the timestamp component of this ObjectId */ - public final function getTimestamp() - { - } + final public function getTimestamp() {} /** * Returns a representation that can be converted to JSON @@ -2539,9 +2161,7 @@ public final function getTimestamp() * @link https://secure.php.net/manual/en/mongodb-bson-objectid.jsonserialize.php * @return mixed data which can be serialized by json_encode() */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} /** * Serialize an ObjectId @@ -2549,9 +2169,7 @@ final public function jsonSerialize() * @link https://secure.php.net/manual/en/mongodb-bson-objectid.serialize.php * @return string the serialized representation of the object */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize an ObjectId @@ -2559,9 +2177,7 @@ final public function serialize() * @link https://secure.php.net/manual/en/mongodb-bson-objectid.unserialize.php * @return void */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} } /** @@ -2576,39 +2192,29 @@ final class Regex implements Type, RegexInterface, \Serializable, JsonSerializab * @param string $pattern * @param string $flags [optional] */ - public final function __construct($pattern, $flags = "") - { - } + final public function __construct($pattern, $flags = "") {} /** * Returns the Regex's flags * @link https://php.net/manual/en/mongodb-bson-regex.getflags.php */ - final public function getFlags() - { - } + final public function getFlags() {} /** * Returns the Regex's pattern * @link https://php.net/manual/en/mongodb-bson-regex.getpattern.php * @return string */ - final public function getPattern() - { - } + final public function getPattern() {} /** * Returns the string representation of this Regex * @link https://php.net/manual/en/mongodb-bson-regex.tostring.php * @return string */ - final public function __toString() - { - } + final public function __toString() {} - public static function __set_state($an_array) - { - } + public static function __set_state($an_array) {} /** * Serialize a Regex @@ -2617,9 +2223,7 @@ public static function __set_state($an_array) * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a Regex @@ -2630,9 +2234,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2641,9 +2243,7 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} } /** @@ -2655,21 +2255,17 @@ final class Timestamp implements TimestampInterface, Type, \Serializable, JsonSe /** * Construct a new Timestamp * @link https://php.net/manual/en/mongodb-bson-timestamp.construct.php - * @param integer $increment - * @param integer $timestamp + * @param int $increment + * @param int $timestamp */ - final public function __construct($increment, $timestamp) - { - } + final public function __construct($increment, $timestamp) {} /** * Returns the string representation of this Timestamp * @link https://php.net/manual/en/mongodb-bson-timestamp.tostring.php * @return string */ - final public function __toString() - { - } + final public function __toString() {} /** * Returns the increment component of this TimestampInterface @@ -2677,9 +2273,7 @@ final public function __toString() * @return int * @since 1.3.0 */ - final public function getIncrement() - { - } + final public function getIncrement() {} /** * Returns the timestamp component of this TimestampInterface @@ -2687,9 +2281,7 @@ final public function getIncrement() * @return int * @since 1.3.0 */ - final public function getTimestamp() - { - } + final public function getTimestamp() {} /** * Serialize a Timestamp @@ -2698,9 +2290,7 @@ final public function getTimestamp() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a Timestamp @@ -2711,9 +2301,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2722,9 +2310,7 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} } /** @@ -2738,27 +2324,21 @@ final class UTCDateTime implements Type, UTCDateTimeInterface, \Serializable, \J * @link https://php.net/manual/en/mongodb-bson-utcdatetime.construct.php * @param int|float|string|DateTimeInterface $milliseconds */ - final public function __construct($milliseconds = null) - { - } + final public function __construct($milliseconds = null) {} /** * Returns the DateTime representation of this UTCDateTime * @link https://php.net/manual/en/mongodb-bson-utcdatetime.todatetime.php * @return \DateTime */ - final public function toDateTime() - { - } + final public function toDateTime() {} /** * Returns the string representation of this UTCDateTime * @link https://php.net/manual/en/mongodb-bson-utcdatetime.tostring.php * @return string */ - final public function __toString() - { - } + final public function __toString() {} /** * Serialize a UTCDateTime @@ -2767,9 +2347,7 @@ final public function __toString() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a UTCDateTime @@ -2780,9 +2358,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2791,9 +2367,7 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} } /** @@ -2803,11 +2377,9 @@ final public function jsonSerialize() * @link https://secure.php.net/manual/en/class.mongodb-bson-undefined.php */ #[Deprecated] - final class Undefined implements Type,\Serializable, \JsonSerializable + final class Undefined implements Type, \Serializable, \JsonSerializable { - final private function __construct() - { - } + final private function __construct() {} /** * Serialize an Undefined @@ -2816,9 +2388,7 @@ final private function __construct() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize an Undefined @@ -2829,9 +2399,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2840,17 +2408,13 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} /** * Returns the Undefined as a string * @return string Returns the string representation of this Symbol. */ - final public function __toString() - { - } + final public function __toString() {} } /** @@ -2860,11 +2424,9 @@ final public function __toString() * @link https://secure.php.net/manual/en/class.mongodb-bson-symbol.php */ #[Deprecated] - final class Symbol implements Type,\Serializable, \JsonSerializable + final class Symbol implements Type, \Serializable, \JsonSerializable { - final private function __construct() - { - } + final private function __construct() {} /** * Serialize a Symbol @@ -2873,9 +2435,7 @@ final private function __construct() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a Symbol @@ -2886,9 +2446,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2897,17 +2455,13 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} /** * Returns the Symbol as a string * @return string Returns the string representation of this Symbol. */ - final public function __toString() - { - } + final public function __toString() {} } /** @@ -2918,11 +2472,9 @@ final public function __toString() * @link https://secure.php.net/manual/en/class.mongodb-bson-dbpointer.php */ #[Deprecated] - final class DbPointer implements Type,\Serializable, \JsonSerializable + final class DbPointer implements Type, \Serializable, \JsonSerializable { - final private function __construct() - { - } + final private function __construct() {} /** * Serialize a DBPointer @@ -2931,9 +2483,7 @@ final private function __construct() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize a DBPointer @@ -2946,9 +2496,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -2957,18 +2505,14 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} /** * Returns the Symbol as a string * * @return string Returns the string representation of this Symbol. */ - final public function __toString() - { - } + final public function __toString() {} } /** @@ -2983,11 +2527,9 @@ final public function __toString() * @link https://secure.php.net/manual/en/class.mongodb-bson-int64.php */ #[Deprecated] - final class Int64 implements Type,\Serializable, \JsonSerializable + final class Int64 implements Type, \Serializable, \JsonSerializable { - final private function __construct() - { - } + final private function __construct() {} /** * Serialize an Int64 @@ -2995,9 +2537,7 @@ final private function __construct() * @return string * @throws InvalidArgumentException */ - final public function serialize() - { - } + final public function serialize() {} /** * Unserialize an Int64 @@ -3007,9 +2547,7 @@ final public function serialize() * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed) */ - final public function unserialize($serialized) - { - } + final public function unserialize($serialized) {} /** * Returns a representation that can be converted to JSON @@ -3017,17 +2555,13 @@ final public function unserialize($serialized) * @return mixed data which can be serialized by json_encode() * @throws InvalidArgumentException on argument parsing errors */ - final public function jsonSerialize() - { - } + final public function jsonSerialize() {} /** * Returns the Symbol as a string * @return string Returns the string representation of this Symbol. */ - final public function __toString() - { - } + final public function __toString() {} } /** @@ -3040,20 +2574,20 @@ interface BinaryInterface * @link https://www.php.net/manual/en/mongodb-bson-binaryinterface.getdata.php * @return string Returns the BinaryInterface's data */ - function getData(); + public function getData(); /** * @link https://www.php.net/manual/en/mongodb-bson-binaryinterface.gettype.php * @return int Returns the BinaryInterface's type. */ - function getType(); + public function getType(); /** * This method is an alias of: MongoDB\BSON\BinaryInterface::getData(). * @link https://www.php.net/manual/en/mongodb-bson-binaryinterface.tostring.php * @return string Returns the BinaryInterface's data. */ - function __toString(); + public function __toString(); } /** @@ -3066,14 +2600,14 @@ interface ObjectIdInterface * @link https://www.php.net/manual/en/mongodb-bson-objectidinterface.gettimestamp.php * @return int Returns the timestamp component of this ObjectIdInterface. */ - function getTimestamp(); + public function getTimestamp(); /** * Returns the hexadecimal representation of this ObjectId * @link https://www.php.net/manual/en/mongodb-bson-objectid.tostring.php * @return string Returns the hexadecimal representation of this ObjectId */ - function __toString(); + public function __toString(); } /** @@ -3086,20 +2620,20 @@ interface RegexInterface * @link https://www.php.net/manual/en/mongodb-bson-regexinterface.getflags.php * @return string Returns the RegexInterface's flags. */ - function getFlags(); + public function getFlags(); /** * @link https://www.php.net/manual/en/mongodb-bson-regexinterface.getpattern.php * @return string Returns the RegexInterface's pattern. */ - function getPattern(); + public function getPattern(); /** * Returns the string representation of this RegexInterface * @link https://www.php.net/manual/en/mongodb-bson-regexinterface.tostring.php * @return string */ - function __toString(); + public function __toString(); } /** @@ -3112,32 +2646,27 @@ interface UTCDateTimeInterface * @link https://www.php.net/manual/en/mongodb-bson-utcdatetimeinterface.todatetime.php * @return DateTime Returns the DateTime representation of this UTCDateTimeInterface. The returned DateTime should use the UTC time zone. */ - function toDateTime(); + public function toDateTime(); /** * Returns the string representation of this UTCDateTimeInterface * @link https://www.php.net/manual/en/mongodb-bson-utcdatetimeinterface.tostring.php * @return string */ - function __toString(); + public function __toString(); } /** * This interface is implemented by MongoDB\BSON\MaxKey but may also be used for type-hinting and userland classes. * @link https://www.php.net/manual/en/class.mongodb-bson-maxkeyinterface.php */ - interface MaxKeyInterface - { - } + interface MaxKeyInterface {} /** * This interface is implemented by MongoDB\BSON\MinKey but may also be used for type-hinting and userland classes. * @link https://www.php.net/manual/en/class.mongodb-bson-minkeyinterface.php */ - interface MinKeyInterface - { - - } + interface MinKeyInterface {} /** * This interface is implemented by MongoDB\BSON\Decimal128 but may also be used for type-hinting and userland classes. @@ -3150,16 +2679,14 @@ interface Decimal128Interface * @link https://www.php.net/manual/en/mongodb-bson-decimal128interface.tostring.php * @return string Returns the string representation of this Decimal128Interface */ - function __toString(); + public function __toString(); } /** * Classes may implement this interface to take advantage of automatic ODM (object document mapping) behavior in the driver. * @link https://php.net/manual/en/class.mongodb-bson-persistable.php */ - interface Persistable extends Unserializable, Serializable - { - } + interface Persistable extends Unserializable, Serializable {} /** * Classes that implement this interface may return data to be serialized as a BSON array or document in lieu of the object's public properties @@ -3167,7 +2694,6 @@ interface Persistable extends Unserializable, Serializable */ interface Serializable extends Type { - /** * Provides an array or document to serialize as BSON * Called during serialization of the object to BSON. The method must return an array or stdClass. @@ -3176,7 +2702,7 @@ interface Serializable extends Type * @link https://php.net/manual/en/mongodb-bson-serializable.bsonserialize.php * @return array|object An array or stdClass to be serialized as a BSON array or document. */ - public function bsonSerialize(); + public function bsonSerialize(); } /** @@ -3185,7 +2711,6 @@ public function bsonSerialize(); */ interface Unserializable extends Type { - /** * Constructs the object from a BSON array or document * Called during unserialization of the object from BSON. @@ -3200,9 +2725,7 @@ public function bsonUnserialize(array $data); * Interface Type * @link https://php.net/manual/en/class.mongodb-bson-type.php */ - interface Type - { - } + interface Type {} /** * Interface TimestampInterface diff --git a/mosquitto-php/mosquitto-php.php b/mosquitto-php/mosquitto-php.php index bc9a7aeaa..b0454d326 100644 --- a/mosquitto-php/mosquitto-php.php +++ b/mosquitto-php/mosquitto-php.php @@ -1,6 +1,5 @@ 0. @@ -282,9 +243,7 @@ public function setMaxInFlightMessages($maxInFlightMessages) * * @param int $messageRetryPeriod The retry period */ - public function setMessageRetry($messageRetryPeriod) - { - } + public function setMessageRetry($messageRetryPeriod) {} /** * Publish a message on a given topic. @@ -296,9 +255,7 @@ public function setMessageRetry($messageRetryPeriod) * @param bool $retain If true, retain this message * @return int */ - public function publish($topic, $payload, $qos = 0, $retain = false) - { - } + public function publish($topic, $payload, $qos = 0, $retain = false) {} /** * Subscribe to a topic. @@ -308,9 +265,7 @@ public function publish($topic, $payload, $qos = 0, $retain = false) * @param int $qos * @return int */ - public function subscribe($topic, $qos) - { - } + public function subscribe($topic, $qos) {} /** * Unsubscribe from a topic. @@ -320,9 +275,7 @@ public function subscribe($topic, $qos) * @param int $qos * @return int */ - public function unsubscribe($topic, $qos) - { - } + public function unsubscribe($topic, $qos) {} /** * The main network loop for the client. You must call this frequently in order to keep communications between @@ -333,9 +286,7 @@ public function unsubscribe($topic, $qos) * * @param int $timeout Optional. Number of milliseconds to wait for network activity. Pass 0 for instant timeout. */ - public function loop($timeout = 1000) - { - } + public function loop($timeout = 1000) {} /** * Call loop() in an infinite blocking loop. Callbacks will be called as required. This will handle reconnecting @@ -345,17 +296,13 @@ public function loop($timeout = 1000) * * @param int $timeout Optional. Number of milliseconds to wait for network activity. Pass 0 for instant timeout. */ - public function loopForever($timeout = 1000) - { - } + public function loopForever($timeout = 1000) {} /** * Exit the `loopForever` event loop without disconnecting. You will need to re-enter the loop afterwards * in order to maintain the connection. */ - public function exitLoop() - { - } + public function exitLoop() {} } /** @@ -363,20 +310,19 @@ public function exitLoop() */ class Message { - - /** @var string $topic */ + /** @var string */ public $topic; - /** @var string $payload */ + /** @var string */ public $payload; - /** @var int $payload */ + /** @var int */ public $mid; - /** @var int $qos */ + /** @var int */ public $qos; - /** @var bool $payload */ + /** @var bool */ public $retain; /** diff --git a/mqseries/mqseries.php b/mqseries/mqseries.php index d4376c901..30575ab05 100644 --- a/mqseries/mqseries.php +++ b/mqseries/mqseries.php @@ -5,9 +5,7 @@ * @param resource &$compCode * @param resource &$reason */ -function mqseries_back($hconn, &$compCode, &$reason) -{ -} +function mqseries_back($hconn, &$compCode, &$reason) {} /** * @param resource $hconn @@ -15,9 +13,7 @@ function mqseries_back($hconn, &$compCode, &$reason) * @param resource &$compCode * @param resource &$reason */ -function mqseries_begin($hconn, array $beginOptions, &$compCode, &$reason) -{ -} +function mqseries_begin($hconn, array $beginOptions, &$compCode, &$reason) {} /** * @param resource $hconn @@ -26,18 +22,14 @@ function mqseries_begin($hconn, array $beginOptions, &$compCode, &$reason) * @param resource &$compCode * @param resource &$reason */ -function mqseries_close($hconn, $hobj, $options, &$compCode, &$reason) -{ -} +function mqseries_close($hconn, $hobj, $options, &$compCode, &$reason) {} /** * @param resource $hconn * @param resource &$compCode * @param resource &$reason */ -function mqseries_cmit($hconn, &$compCode, &$reason) -{ -} +function mqseries_cmit($hconn, &$compCode, &$reason) {} /** * @param string $qManagerName @@ -45,9 +37,7 @@ function mqseries_cmit($hconn, &$compCode, &$reason) * @param resource &$compCode * @param resource &$reason */ -function mqseries_conn($qManagerName, &$hconn, &$compCode, &$reason) -{ -} +function mqseries_conn($qManagerName, &$hconn, &$compCode, &$reason) {} /** * @param string $qManagerName @@ -56,18 +46,14 @@ function mqseries_conn($qManagerName, &$hconn, &$compCode, &$reason) * @param resource &$compCode * @param resource &$reason */ -function mqseries_connx($qManagerName, array &$connOptions, &$hconn, &$compCode, &$reason) -{ -} +function mqseries_connx($qManagerName, array &$connOptions, &$hconn, &$compCode, &$reason) {} /** * @param resource $hconn * @param resource &$compCode * @param resource &$reason */ -function mqseries_disc($hconn, &$compCode, &$reason) -{ -} +function mqseries_disc($hconn, &$compCode, &$reason) {} /** * @param resource $hConn @@ -80,9 +66,7 @@ function mqseries_disc($hconn, &$compCode, &$reason) * @param resource &$compCode * @param resource &$reason */ -function mqseries_get($hConn, $hObj, array &$md, array &$gmo, &$bufferLength, &$msg, &$data_length, &$compCode, &$reason) -{ -} +function mqseries_get($hConn, $hObj, array &$md, array &$gmo, &$bufferLength, &$msg, &$data_length, &$compCode, &$reason) {} /** * @param resource $hconn @@ -96,9 +80,7 @@ function mqseries_get($hConn, $hObj, array &$md, array &$gmo, &$bufferLength, &$ * @param resource &$compCode * @param resource &$reason */ -function mqseries_inq($hconn, $hobj, $selectorCount, array $selectors, $intAttrCount, &$intAttr, $charAttrLength, &$charAttr, &$compCode, &$reason) -{ -} +function mqseries_inq($hconn, $hobj, $selectorCount, array $selectors, $intAttrCount, &$intAttr, $charAttrLength, &$charAttr, &$compCode, &$reason) {} /** * @param resource $hconn @@ -108,9 +90,7 @@ function mqseries_inq($hconn, $hobj, $selectorCount, array $selectors, $intAttrC * @param resource &$compCode * @param resource &$reason */ -function mqseries_open($hconn, array &$objDesc, $option, &$hobj, &$compCode, &$reason) -{ -} +function mqseries_open($hconn, array &$objDesc, $option, &$hobj, &$compCode, &$reason) {} /** * @param resource $hconn @@ -121,9 +101,7 @@ function mqseries_open($hconn, array &$objDesc, $option, &$hobj, &$compCode, &$r * @param resource &$compCode * @param resource &$reason */ -function mqseries_put1($hconn, &$objDesc, &$msgDesc, &$pmo, $buffer, &$compCode, &$reason) -{ -} +function mqseries_put1($hconn, &$objDesc, &$msgDesc, &$pmo, $buffer, &$compCode, &$reason) {} /** * @param resource $hConn @@ -134,9 +112,7 @@ function mqseries_put1($hconn, &$objDesc, &$msgDesc, &$pmo, $buffer, &$compCode, * @param resource &$compCode * @param resource &$reason */ -function mqseries_put($hConn, $hObj, array &$md, array &$pmo, $message, &$compCode, &$reason) -{ -} +function mqseries_put($hConn, $hObj, array &$md, array &$pmo, $message, &$compCode, &$reason) {} /** * @param resource $hconn @@ -150,9 +126,7 @@ function mqseries_put($hConn, $hObj, array &$md, array &$pmo, $message, &$compCo * @param resource &$compCode * @param resource &$reason */ -function mqseries_set($hconn, $hobj, $selectorcount, array $selectors, $intattrcount, array $intattrs, $charattrlength, array $charattrs, &$compCode, &$reason) -{ -} +function mqseries_set($hconn, $hobj, $selectorcount, array $selectors, $intattrcount, array $intattrs, $charattrlength, array $charattrs, &$compCode, &$reason) {} /** * @param int $reason diff --git a/msgpack/msgpack.php b/msgpack/msgpack.php index 9768f11b5..a071bb1cb 100644 --- a/msgpack/msgpack.php +++ b/msgpack/msgpack.php @@ -36,41 +36,28 @@ function msgpack_pack($value) {} *

      * @return mixed */ -function msgpack_unpack($str, $object = null) -{ -} +function msgpack_unpack($str, $object = null) {} class MessagePack { - const OPT_PHPONLY = -1001; + public const OPT_PHPONLY = -1001; /** * @param $opt [optional] */ - public function __construct($opt) - { - } + public function __construct($opt) {} - public function setOption($option, $value) - { - } + public function setOption($option, $value) {} - public function pack($value) - { - } + public function pack($value) {} /** * @param $str * @param $object [optional] */ - public function unpack($str, $object) - { - } - - public function unpacker() - { + public function unpack($str, $object) {} - } + public function unpacker() {} } class MessagePackUnpacker @@ -78,40 +65,24 @@ class MessagePackUnpacker /** * @param $opt [optional] */ - public function __construct($opt) - { - } + public function __construct($opt) {} - public function __destruct() - { - } + public function __destruct() {} - public function setOption($option, $value) - { - } + public function setOption($option, $value) {} - public function feed($str) - { - } + public function feed($str) {} /** * @param $str [optional] * @param $offset [optional] */ - public function execute($str, &$offset) - { - } + public function execute($str, &$offset) {} /** * @param $object [optional] */ - public function data($object) - { - - } - - public function reset() - { + public function data($object) {} - } + public function reset() {} } diff --git a/mssql/mssql.php b/mssql/mssql.php index b407158b1..8d950c6d9 100644 --- a/mssql/mssql.php +++ b/mssql/mssql.php @@ -28,7 +28,7 @@ * @return resource|false a MS SQL link identifier on success, or false on error. * @removed 7.0 */ -function mssql_connect ($servername = null, $username = null, $password = null, $new_link = false) {} +function mssql_connect($servername = null, $username = null, $password = null, $new_link = false) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -57,7 +57,7 @@ function mssql_connect ($servername = null, $username = null, $password = null, * false on error. * @removed 7.0 */ -function mssql_pconnect ($servername = null, $username = null, $password = null, $new_link = false) {} +function mssql_pconnect($servername = null, $username = null, $password = null, $new_link = false) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -74,7 +74,7 @@ function mssql_pconnect ($servername = null, $username = null, $password = null, * @return bool true on success or false on failure. * @removed 7.0 */ -function mssql_close ($link_identifier = null) {} +function mssql_close($link_identifier = null) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -103,7 +103,7 @@ function mssql_close ($link_identifier = null) {} * @return bool true on success or false on failure. * @removed 7.0 */ -function mssql_select_db ($database_name, $link_identifier = null) {} +function mssql_select_db($database_name, $link_identifier = null) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -129,7 +129,7 @@ function mssql_select_db ($database_name, $link_identifier = null) {} * returned, or false on error. * @removed 7.0 */ -function mssql_query ($query, $link_identifier = null, $batch_size = 0) {} +function mssql_query($query, $link_identifier = null, $batch_size = 0) {} /** * (PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -142,7 +142,7 @@ function mssql_query ($query, $link_identifier = null, $batch_size = 0) {} * @return int the batch number as an integer. * @removed 7.0 */ -function mssql_fetch_batch ($result) {} +function mssql_fetch_batch($result) {} /** * (PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -156,7 +156,7 @@ function mssql_fetch_batch ($result) {} * @return int the number of records affected by last operation. * @removed 7.0 */ -function mssql_rows_affected ($link_identifier) {} +function mssql_rows_affected($link_identifier) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -169,7 +169,7 @@ function mssql_rows_affected ($link_identifier) {} * @return bool true on success or false on failure. * @removed 7.0 */ -function mssql_free_result ($result) {} +function mssql_free_result($result) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -179,7 +179,7 @@ function mssql_free_result ($result) {} * no error messages are returned from MSSQL. * @removed 7.0 */ -function mssql_get_last_message () {} +function mssql_get_last_message() {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -192,7 +192,7 @@ function mssql_get_last_message () {} * @return int the number of rows, as an integer. * @removed 7.0 */ -function mssql_num_rows ($result) {} +function mssql_num_rows($result) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -205,7 +205,7 @@ function mssql_num_rows ($result) {} * @return int the number of fields, as an integer. * @removed 7.0 */ -function mssql_num_fields ($result) {} +function mssql_num_fields($result) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -223,7 +223,7 @@ function mssql_num_fields ($result) {} * @return object an object containing field information. * @removed 7.0 */ -function mssql_fetch_field ($result, $field_offset = -1) {} +function mssql_fetch_field($result, $field_offset = -1) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -237,7 +237,7 @@ function mssql_fetch_field ($result, $field_offset = -1) {} * are no more rows. * @removed 7.0 */ -function mssql_fetch_row ($result) {} +function mssql_fetch_row($result) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -257,7 +257,7 @@ function mssql_fetch_row ($result) {} * are no more rows. * @removed 7.0 */ -function mssql_fetch_array ($result, $result_type = MSSQL_BOTH) {} +function mssql_fetch_array($result, $result_type = MSSQL_BOTH) {} /** * (PHP 4 >= 4.2.0, PHP 5, PECL odbtp >= 1.1.1)
      @@ -271,7 +271,7 @@ function mssql_fetch_array ($result, $result_type = MSSQL_BOTH) {} * false if there are no more rows. * @removed 7.0 */ -function mssql_fetch_assoc ($result_id) {} +function mssql_fetch_assoc($result_id) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -285,7 +285,7 @@ function mssql_fetch_assoc ($result_id) {} * false if there are no more rows. * @removed 7.0 */ -function mssql_fetch_object ($result) {} +function mssql_fetch_object($result) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -301,7 +301,7 @@ function mssql_fetch_object ($result) {} * @return int|false The length of the specified field index on success or false on failure. * @removed 7.0 */ -function mssql_field_length ($result, $offset = null) {} +function mssql_field_length($result, $offset = null) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -317,7 +317,7 @@ function mssql_field_length ($result, $offset = null) {} * @return string|false The name of the specified field index on success or false on failure. * @removed 7.0 */ -function mssql_field_name ($result, $offset = -1) {} +function mssql_field_name($result, $offset = -1) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -333,7 +333,7 @@ function mssql_field_name ($result, $offset = -1) {} * @return string|false The type of the specified field index on success or false on failure. * @removed 7.0 */ -function mssql_field_type ($result, $offset = -1) {} +function mssql_field_type($result, $offset = -1) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -348,7 +348,7 @@ function mssql_field_type ($result, $offset = -1) {} * @return bool true on success or false on failure. * @removed 7.0 */ -function mssql_data_seek ($result_identifier, $row_number) {} +function mssql_data_seek($result_identifier, $row_number) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -364,7 +364,7 @@ function mssql_data_seek ($result_identifier, $row_number) {} * @return bool true on success or false on failure. * @removed 7.0 */ -function mssql_field_seek ($result, $field_offset) {} +function mssql_field_seek($result, $field_offset) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -392,7 +392,7 @@ function mssql_field_seek ($result, $field_offset) {} * @return string the contents of the specified cell. * @removed 7.0 */ -function mssql_result ($result, $row, $field) {} +function mssql_result($result, $row, $field) {} /** * (PHP 4 >= 4.0.5, PHP 5, PECL odbtp >= 1.1.1)
      @@ -406,7 +406,7 @@ function mssql_result ($result, $row, $field) {} * otherwise. * @removed 7.0 */ -function mssql_next_result ($result_id) {} +function mssql_next_result($result_id) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -418,7 +418,7 @@ function mssql_next_result ($result_id) {} * @return void * @removed 7.0 */ -function mssql_min_error_severity ($severity) {} +function mssql_min_error_severity($severity) {} /** * (PHP 4, PHP 5, PECL odbtp >= 1.1.1)
      @@ -430,7 +430,7 @@ function mssql_min_error_severity ($severity) {} * @return void * @removed 7.0 */ -function mssql_min_message_severity ($severity) {} +function mssql_min_message_severity($severity) {} /** * (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)
      @@ -449,7 +449,7 @@ function mssql_min_message_severity ($severity) {} * or false on errors. * @removed 7.0 */ -function mssql_init ($sp_name, $link_identifier = null) {} +function mssql_init($sp_name, $link_identifier = null) {} /** * (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)
      @@ -496,7 +496,7 @@ function mssql_init ($sp_name, $link_identifier = null) {} * @return bool true on success or false on failure. * @removed 7.0 */ -function mssql_bind ($stmt, $param_name, &$var, $type, $is_output = false, $is_null = false, $maxlen = -1) {} +function mssql_bind($stmt, $param_name, &$var, $type, $is_output = false, $is_null = false, $maxlen = -1) {} /** * (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)
      @@ -511,7 +511,7 @@ function mssql_bind ($stmt, $param_name, &$var, $type, $is_output = false, $is_n * @return mixed * @removed 7.0 */ -function mssql_execute ($stmt, $skip_results = false) {} +function mssql_execute($stmt, $skip_results = false) {} /** * (PHP 4 >= 4.3.2, PHP 5, PECL odbtp >= 1.1.1)
      @@ -523,7 +523,7 @@ function mssql_execute ($stmt, $skip_results = false) {} * @return bool true on success or false on failure. * @removed 7.0 */ -function mssql_free_statement ($stmt) {} +function mssql_free_statement($stmt) {} /** * (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)
      @@ -538,8 +538,7 @@ function mssql_free_statement ($stmt) {} * @return string the converted string on success. * @removed 7.0 */ -function mssql_guid_string ($binary, $short_format = null) {} - +function mssql_guid_string($binary, $short_format = null) {} /** * Return an associative array. Used on @@ -547,7 +546,7 @@ function mssql_guid_string ($binary, $short_format = null) {} * result_type parameter. * @link https://php.net/manual/en/mssql.constants.php */ -define ('MSSQL_ASSOC', 1); +define('MSSQL_ASSOC', 1); /** * Return an array with numeric keys. Used on @@ -555,7 +554,7 @@ function mssql_guid_string ($binary, $short_format = null) {} * result_type parameter. * @link https://php.net/manual/en/mssql.constants.php */ -define ('MSSQL_NUM', 2); +define('MSSQL_NUM', 2); /** * Return an array with both numeric keys and @@ -564,7 +563,7 @@ function mssql_guid_string ($binary, $short_format = null) {} * result_type parameter. * @link https://php.net/manual/en/mssql.constants.php */ -define ('MSSQL_BOTH', 3); +define('MSSQL_BOTH', 3); /** * Indicates the 'TEXT' type in MSSQL, used by @@ -572,7 +571,7 @@ function mssql_guid_string ($binary, $short_format = null) {} * parameter. * @link https://php.net/manual/en/mssql.constants.php */ -define ('SQLTEXT', 35); +define('SQLTEXT', 35); /** * Indicates the 'VARCHAR' type in MSSQL, used by @@ -580,7 +579,7 @@ function mssql_guid_string ($binary, $short_format = null) {} * parameter. * @link https://php.net/manual/en/mssql.constants.php */ -define ('SQLVARCHAR', 39); +define('SQLVARCHAR', 39); /** * Indicates the 'CHAR' type in MSSQL, used by @@ -588,27 +587,27 @@ function mssql_guid_string ($binary, $short_format = null) {} * parameter. * @link https://php.net/manual/en/mssql.constants.php */ -define ('SQLCHAR', 47); +define('SQLCHAR', 47); /** * Represents one byte, with a range of -128 to 127. * @link https://php.net/manual/en/mssql.constants.php */ -define ('SQLINT1', 48); +define('SQLINT1', 48); /** * Represents two bytes, with a range of -32768 * to 32767. * @link https://php.net/manual/en/mssql.constants.php */ -define ('SQLINT2', 52); +define('SQLINT2', 52); /** * Represents four bytes, with a range of -2147483648 * to 2147483647. * @link https://php.net/manual/en/mssql.constants.php */ -define ('SQLINT4', 56); +define('SQLINT4', 56); /** * Indicates the 'BIT' type in MSSQL, used by @@ -616,20 +615,19 @@ function mssql_guid_string ($binary, $short_format = null) {} * parameter. * @link https://php.net/manual/en/mssql.constants.php */ -define ('SQLBIT', 50); +define('SQLBIT', 50); /** * Represents an four byte float. * @link https://php.net/manual/en/mssql.constants.php */ -define ('SQLFLT4', 59); +define('SQLFLT4', 59); /** * Represents an eight byte float. * @link https://php.net/manual/en/mssql.constants.php */ -define ('SQLFLT8', 62); -define ('SQLFLTN', 109); +define('SQLFLT8', 62); +define('SQLFLTN', 109); // End of mssql v. -?> diff --git a/mysql/mysql.php b/mysql/mysql.php index bc71cf6e7..d40359845 100644 --- a/mysql/mysql.php +++ b/mysql/mysql.php @@ -52,7 +52,7 @@ * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_connect ($server = 'ini_get("mysql.default_host")', $username = 'ini_get("mysql.default_user")', $password = 'ini_get("mysql.default_password")', $new_link = false, $client_flags = 0) {} +function mysql_connect($server = 'ini_get("mysql.default_host")', $username = 'ini_get("mysql.default_user")', $password = 'ini_get("mysql.default_password")', $new_link = false, $client_flags = 0) {} /** * Open a persistent connection to a MySQL server @@ -88,7 +88,7 @@ function mysql_connect ($server = 'ini_get("mysql.default_host")', $username = ' * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_pconnect ($server = 'ini_get("mysql.default_host")', $username = 'ini_get("mysql.default_user")', $password = 'ini_get("mysql.default_password")', $client_flags = null) {} +function mysql_pconnect($server = 'ini_get("mysql.default_host")', $username = 'ini_get("mysql.default_user")', $password = 'ini_get("mysql.default_password")', $client_flags = null) {} /** * Close MySQL connection @@ -98,7 +98,7 @@ function mysql_pconnect ($server = 'ini_get("mysql.default_host")', $username = * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_close ($link_identifier = null) {} +function mysql_close($link_identifier = null) {} /** * Select a MySQL database @@ -111,7 +111,7 @@ function mysql_close ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_select_db ($database_name, $link_identifier = null) {} +function mysql_select_db($database_name, $link_identifier = null) {} /** * Send a MySQL query @@ -153,7 +153,7 @@ function mysql_select_db ($database_name, $link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_query ($query, $link_identifier = null) {} +function mysql_query($query, $link_identifier = null) {} /** * @deprecated 5.5 @@ -178,7 +178,7 @@ function mysql_query ($query, $link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_unbuffered_query ($query, $link_identifier = null) {} +function mysql_unbuffered_query($query, $link_identifier = null) {} /** * Selects a database and executes a query on it @@ -202,7 +202,7 @@ function mysql_unbuffered_query ($query, $link_identifier = null) {} * @see mysql_query() */ #[Deprecated('Use mysql_select_db() and mysql_query() instead', since: '5.3')] -function mysql_db_query ($database, $query, $link_identifier = null) {} +function mysql_db_query($database, $query, $link_identifier = null) {} /** * List databases available on a MySQL server @@ -215,7 +215,7 @@ function mysql_db_query ($database, $query, $link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.4')] -function mysql_list_dbs ($link_identifier = null) {} +function mysql_list_dbs($link_identifier = null) {} /** * List tables in a MySQL database @@ -233,7 +233,7 @@ function mysql_list_dbs ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.3')] -function mysql_list_tables ($database, $link_identifier = null) {} +function mysql_list_tables($database, $link_identifier = null) {} /** * List MySQL table fields @@ -256,7 +256,7 @@ function mysql_list_tables ($database, $link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_list_fields ($database_name, $table_name, $link_identifier = null) {} +function mysql_list_fields($database_name, $table_name, $link_identifier = null) {} /** * List MySQL processes @@ -266,7 +266,7 @@ function mysql_list_fields ($database_name, $table_name, $link_identifier = null * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_list_processes ($link_identifier = null) {} +function mysql_list_processes($link_identifier = null) {} /** * Returns the text of the error message from previous MySQL operation @@ -277,7 +277,7 @@ function mysql_list_processes ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_error ($link_identifier = null) {} +function mysql_error($link_identifier = null) {} /** * Returns the numerical value of the error message from previous MySQL operation @@ -288,7 +288,7 @@ function mysql_error ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_errno ($link_identifier = null) {} +function mysql_errno($link_identifier = null) {} /** * Get number of affected rows in previous MySQL operation @@ -316,7 +316,7 @@ function mysql_errno ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_affected_rows ($link_identifier = null) {} +function mysql_affected_rows($link_identifier = null) {} /** * Get the ID generated in the last query @@ -329,7 +329,7 @@ function mysql_affected_rows ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_insert_id ($link_identifier = null) {} +function mysql_insert_id($link_identifier = null) {} /** * Get result data @@ -353,7 +353,7 @@ function mysql_insert_id ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_result ($result, $row, $field = 0) {} +function mysql_result($result, $row, $field = 0) {} /** * Get number of rows in result @@ -363,7 +363,7 @@ function mysql_result ($result, $row, $field = 0) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_num_rows ($result) {} +function mysql_num_rows($result) {} /** * Get number of fields in result @@ -374,7 +374,7 @@ function mysql_num_rows ($result) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_num_fields ($result) {} +function mysql_num_fields($result) {} /** * Get a result row as an enumerated array @@ -391,7 +391,7 @@ function mysql_num_fields ($result) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_fetch_row ($result) {} +function mysql_fetch_row($result) {} /** * Fetch a result row as an associative array, a numeric array, or both @@ -421,7 +421,7 @@ function mysql_fetch_row ($result) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_fetch_array ($result, $result_type = MYSQL_BOTH) {} +function mysql_fetch_array($result, $result_type = MYSQL_BOTH) {} /** * Fetch a result row as an associative array @@ -441,7 +441,7 @@ function mysql_fetch_array ($result, $result_type = MYSQL_BOTH) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_fetch_assoc ($result) {} +function mysql_fetch_assoc($result) {} /** * Fetch a result row as an object @@ -466,7 +466,7 @@ function mysql_fetch_assoc ($result) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_fetch_object ($result, $class_name = 'stdClass', array $params = null ) {} +function mysql_fetch_object($result, $class_name = 'stdClass', array $params = null) {} /** * Move internal result pointer @@ -479,7 +479,7 @@ function mysql_fetch_object ($result, $class_name = 'stdClass', array $params = * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_data_seek ($result, $row_number) {} +function mysql_data_seek($result, $row_number) {} /** * Get the length of each output in a result @@ -489,7 +489,7 @@ function mysql_data_seek ($result, $row_number) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_fetch_lengths ($result) {} +function mysql_fetch_lengths($result) {} /** * Get column information from a result and return as an object @@ -520,7 +520,7 @@ function mysql_fetch_lengths ($result) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_fetch_field ($result, $field_offset = 0) {} +function mysql_fetch_field($result, $field_offset = 0) {} /** * Set result pointer to a specified field offset @@ -531,7 +531,7 @@ function mysql_fetch_field ($result, $field_offset = 0) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_field_seek ($result, $field_offset) {} +function mysql_field_seek($result, $field_offset) {} /** * Free result memory @@ -547,7 +547,7 @@ function mysql_field_seek ($result, $field_offset) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_free_result ($result) {} +function mysql_free_result($result) {} /** * Get the name of the specified field in a result @@ -558,7 +558,7 @@ function mysql_free_result ($result) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_field_name ($result, $field_offset) {} +function mysql_field_name($result, $field_offset) {} /** * Get name of the table the specified field is in @@ -569,7 +569,7 @@ function mysql_field_name ($result, $field_offset) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_field_table ($result, $field_offset) {} +function mysql_field_table($result, $field_offset) {} /** * Returns the length of the specified field @@ -580,7 +580,7 @@ function mysql_field_table ($result, $field_offset) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_field_len ($result, $field_offset) {} +function mysql_field_len($result, $field_offset) {} /** * Get the type of the specified field in a result @@ -595,7 +595,7 @@ function mysql_field_len ($result, $field_offset) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_field_type ($result, $field_offset) {} +function mysql_field_type($result, $field_offset) {} /** * Get the flags associated with the specified field in a result @@ -615,7 +615,7 @@ function mysql_field_type ($result, $field_offset) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_field_flags ($result, $field_offset) {} +function mysql_field_flags($result, $field_offset) {} /** * Escapes a string for use in a mysql_query @@ -626,8 +626,8 @@ function mysql_field_flags ($result, $field_offset) {} * @return string the escaped string. * @removed 7.0 */ -#[Deprecated(replacement: 'mysql_real_escape_string(%parameter0%)',since: '5.3')] -function mysql_escape_string ($unescaped_string) {} +#[Deprecated(replacement: 'mysql_real_escape_string(%parameter0%)', since: '5.3')] +function mysql_escape_string($unescaped_string) {} /** * Escapes special characters in a string for use in an SQL statement @@ -640,7 +640,7 @@ function mysql_escape_string ($unescaped_string) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_real_escape_string ($unescaped_string, $link_identifier = null) {} +function mysql_real_escape_string($unescaped_string, $link_identifier = null) {} /** * Get current system status @@ -653,7 +653,7 @@ function mysql_real_escape_string ($unescaped_string, $link_identifier = null) { * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_stat ($link_identifier = null) {} +function mysql_stat($link_identifier = null) {} /** * Return the current thread ID @@ -663,7 +663,7 @@ function mysql_stat ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_thread_id ($link_identifier = null) {} +function mysql_thread_id($link_identifier = null) {} /** * Returns the name of the character set @@ -673,7 +673,7 @@ function mysql_thread_id ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_client_encoding ($link_identifier = null) {} +function mysql_client_encoding($link_identifier = null) {} /** * Ping a server connection or reconnect if there is no connection @@ -684,7 +684,7 @@ function mysql_client_encoding ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_ping ($link_identifier = null) {} +function mysql_ping($link_identifier = null) {} /** * Get MySQL client info @@ -693,7 +693,7 @@ function mysql_ping ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_get_client_info () {} +function mysql_get_client_info() {} /** * Get MySQL host info @@ -704,7 +704,7 @@ function mysql_get_client_info () {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_get_host_info ($link_identifier = null) {} +function mysql_get_host_info($link_identifier = null) {} /** * Get MySQL protocol info @@ -714,7 +714,7 @@ function mysql_get_host_info ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_get_proto_info ($link_identifier = null) {} +function mysql_get_proto_info($link_identifier = null) {} /** * Get MySQL server info @@ -724,7 +724,7 @@ function mysql_get_proto_info ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_get_server_info ($link_identifier = null) {} +function mysql_get_server_info($link_identifier = null) {} /** * Get information about the most recent query @@ -737,7 +737,7 @@ function mysql_get_server_info ($link_identifier = null) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_info ($link_identifier = null) {} +function mysql_info($link_identifier = null) {} /** * Sets the client character set @@ -751,8 +751,8 @@ function mysql_info ($link_identifier = null) {} * @removed 7.0 * @see mysqli_set_charset() */ -#[Deprecated(replacement: 'Use mysqli_set_charset instead',since: '5.5')] -function mysql_set_charset ($charset, $link_identifier = null) {} +#[Deprecated(replacement: 'Use mysqli_set_charset instead', since: '5.5')] +function mysql_set_charset($charset, $link_identifier = null) {} /** * @param $database_name @@ -761,7 +761,7 @@ function mysql_set_charset ($charset, $link_identifier = null) {} * @removed 7.0 */ #[Deprecated(replacement: "mysql_db_query(%parametersList%)", since: '5.3')] -function mysql ($database_name, $query, $link_identifier) {} +function mysql($database_name, $query, $link_identifier) {} /** * @param $result @@ -769,7 +769,7 @@ function mysql ($database_name, $query, $link_identifier) {} * @removed 7.0 */ #[Deprecated(replacement: 'mysql_field_name(%parametersList%)', since: '5.5')] -function mysql_fieldname ($result, $field_index) {} +function mysql_fieldname($result, $field_index) {} /** * @param $result @@ -777,7 +777,7 @@ function mysql_fieldname ($result, $field_index) {} * @removed 7.0 */ #[Deprecated(replacement: 'mysql_field_table(%parametersList%)', since: '5.5')] -function mysql_fieldtable ($result, $field_offset) {} +function mysql_fieldtable($result, $field_offset) {} /** * @param $result @@ -785,7 +785,7 @@ function mysql_fieldtable ($result, $field_offset) {} * @removed 7.0 */ #[Deprecated(replacement: 'mysql_field_len(%parametersList%)', since: '5.5')] -function mysql_fieldlen ($result, $field_offset) {} +function mysql_fieldlen($result, $field_offset) {} /** * @param $result @@ -793,7 +793,7 @@ function mysql_fieldlen ($result, $field_offset) {} * @removed 7.0 */ #[Deprecated(replacement: 'mysql_field_type(%parametersList%)', since: '5.5')] -function mysql_fieldtype ($result, $field_offset) {} +function mysql_fieldtype($result, $field_offset) {} /** * @param $result @@ -801,7 +801,7 @@ function mysql_fieldtype ($result, $field_offset) {} * @removed 7.0 */ #[Deprecated(replacement: 'mysql_field_flags(%parametersList%)', since: '5.5')] -function mysql_fieldflags ($result, $field_offset) {} +function mysql_fieldflags($result, $field_offset) {} /** * @param $database_name @@ -809,21 +809,21 @@ function mysql_fieldflags ($result, $field_offset) {} * @removed 7.0 */ #[Deprecated(replacement: 'mysql_select_db(%parametersList%)', since: '5.5')] -function mysql_selectdb ($database_name, $link_identifier) {} +function mysql_selectdb($database_name, $link_identifier) {} /** * @param $result * @removed 7.0 */ #[Deprecated(replacement: 'mysql_free_result(%parametersList%)', since: '5.5')] -function mysql_freeresult ($result) {} +function mysql_freeresult($result) {} /** * @param $result * @removed 7.0 */ #[Deprecated(replacement: 'mysql_num_fields(%parametersList%)', since: '5.5')] -function mysql_numfields ($result) {} +function mysql_numfields($result) {} /** * (PHP 4, PHP 5) @@ -834,14 +834,14 @@ function mysql_numfields ($result) {} * @removed 7.0 */ #[Deprecated(replacement: 'mysql_num_rows(%parametersList%)', since: '5.5')] -function mysql_numrows ($result) {} +function mysql_numrows($result) {} /** * @param $link_identifier [optional] * @removed 7.0 */ #[Deprecated(replacement: 'mysql_list_dbs(%parametersList%)', since: '5.5')] -function mysql_listdbs ($link_identifier) {} +function mysql_listdbs($link_identifier) {} /** * @param $database_name @@ -849,7 +849,7 @@ function mysql_listdbs ($link_identifier) {} * @removed 7.0 */ #[Deprecated(replacement: 'mysql_list_tables(%parametersList%)', since: '5.5')] -function mysql_listtables ($database_name, $link_identifier) {} +function mysql_listtables($database_name, $link_identifier) {} /** * @param $database_name @@ -858,7 +858,7 @@ function mysql_listtables ($database_name, $link_identifier) {} * @removed 7.0 */ #[Deprecated(replacement: 'mysql_list_fields(%parametersList%)', since: '5.5')] -function mysql_listfields ($database_name, $table_name, $link_identifier) {} +function mysql_listfields($database_name, $table_name, $link_identifier) {} /** * Retrieves database name from the call to {@see mysql_list_dbs} @@ -878,7 +878,7 @@ function mysql_listfields ($database_name, $table_name, $link_identifier) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_db_name ($result, $row, $field = null) {} +function mysql_db_name($result, $row, $field = null) {} /** * @param $result @@ -887,7 +887,7 @@ function mysql_db_name ($result, $row, $field = null) {} * @removed 7.0 */ #[Deprecated(replacement: 'mysql_db_name(%parametersList%)', since: '5.5')] -function mysql_dbname ($result, $row, $field) {} +function mysql_dbname($result, $row, $field) {} /** * Get table name of field @@ -908,7 +908,7 @@ function mysql_dbname ($result, $row, $field) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_tablename ($result, $i) {} +function mysql_tablename($result, $i) {} /** * @param $result @@ -917,8 +917,7 @@ function mysql_tablename ($result, $i) {} * @removed 7.0 */ #[Deprecated(since: '5.5')] -function mysql_table_name ($result, $row, $field) {} - +function mysql_table_name($result, $row, $field) {} /** * Columns are returned into the array having the fieldname as the array @@ -927,7 +926,7 @@ function mysql_table_name ($result, $row, $field) {} * @deprecated 5.5 * @removed 7.0 */ -define ('MYSQL_ASSOC', 1); +define('MYSQL_ASSOC', 1); /** * Columns are returned into the array having a numerical index to the @@ -936,7 +935,7 @@ function mysql_table_name ($result, $row, $field) {} * @deprecated 5.5 * @removed 7.0 */ -define ('MYSQL_NUM', 2); +define('MYSQL_NUM', 2); /** * Columns are returned into the array having both a numerical index @@ -945,7 +944,7 @@ function mysql_table_name ($result, $row, $field) {} * @deprecated 5.5 * @removed 7.0 */ -define ('MYSQL_BOTH', 3); +define('MYSQL_BOTH', 3); /** * Use compression protocol @@ -953,7 +952,7 @@ function mysql_table_name ($result, $row, $field) {} * @deprecated 5.5 * @removed 7.0 */ -define ('MYSQL_CLIENT_COMPRESS', 32); +define('MYSQL_CLIENT_COMPRESS', 32); /** * Use SSL encryption. This flag is only available with version 4.x @@ -963,7 +962,7 @@ function mysql_table_name ($result, $row, $field) {} * @deprecated 5.5 * @removed 7.0 */ -define ('MYSQL_CLIENT_SSL', 2048); +define('MYSQL_CLIENT_SSL', 2048); /** * Allow interactive_timeout seconds (instead of wait_timeout) of @@ -972,7 +971,7 @@ function mysql_table_name ($result, $row, $field) {} * @deprecated 5.5 * @removed 7.0 */ -define ('MYSQL_CLIENT_INTERACTIVE', 1024); +define('MYSQL_CLIENT_INTERACTIVE', 1024); /** * Allow space after function names @@ -980,7 +979,6 @@ function mysql_table_name ($result, $row, $field) {} * @deprecated 5.5 * @removed 7.0 */ -define ('MYSQL_CLIENT_IGNORE_SPACE', 256); +define('MYSQL_CLIENT_IGNORE_SPACE', 256); // End of mysql v.1.0 -?> diff --git a/mysql_xdevapi/mysql_xdevapi.php b/mysql_xdevapi/mysql_xdevapi.php index e765c017e..7ab0b89f4 100644 --- a/mysql_xdevapi/mysql_xdevapi.php +++ b/mysql_xdevapi/mysql_xdevapi.php @@ -6,46 +6,46 @@ * @author Mathijs Giesbers * @package mysql_xdevapi */ + namespace mysql_xdevapi; define('MYSQLX_LOCK_DEFAULT', 0); -define('MYSQLX_TYPE_DECIMAL',0); -define('MYSQLX_TYPE_TINY',1); -define('MYSQLX_TYPE_SHORT',2); -define('MYSQLX_TYPE_SMALLINT',17); -define('MYSQLX_TYPE_MEDIUMINT',18); -define('MYSQLX_TYPE_INT',19); -define('MYSQLX_TYPE_BIGINT',20); -define('MYSQLX_TYPE_LONG',3); -define('MYSQLX_TYPE_FLOAT',4); -define('MYSQLX_TYPE_DOUBLE',5); -define('MYSQLX_TYPE_NULL',6); -define('MYSQLX_TYPE_TIMESTAMP',7); -define('MYSQLX_TYPE_LONGLONG',8); -define('MYSQLX_TYPE_INT24',9); -define('MYSQLX_TYPE_DATE',10); -define('MYSQLX_TYPE_TIME',11); -define('MYSQLX_TYPE_DATETIME',12); -define('MYSQLX_TYPE_YEAR',13); -define('MYSQLX_TYPE_NEWDATE',14); -define('MYSQLX_TYPE_ENUM',247); -define('MYSQLX_TYPE_SET',248); -define('MYSQLX_TYPE_TINY_BLOB',249); -define('MYSQLX_TYPE_MEDIUM_BLOB',250); -define('MYSQLX_TYPE_LONG_BLOB',251); -define('MYSQLX_TYPE_BLOB',252); -define('MYSQLX_TYPE_VAR_STRING',253); -define('MYSQLX_TYPE_STRING',254); -define('MYSQLX_TYPE_CHAR',1); -define('MYSQLX_TYPE_BYTES',21); -define('MYSQLX_TYPE_INTERVAL',247); -define('MYSQLX_TYPE_GEOMETRY',255); -define('MYSQLX_TYPE_JSON',245); -define('MYSQLX_TYPE_NEWDECIMAL',246); -define('MYSQLX_TYPE_BIT',16); -define('MYSQLX_LOCK_NOWAIT',1); -define('MYSQLX_LOCK_SKIP_LOCKED',2); - +define('MYSQLX_TYPE_DECIMAL', 0); +define('MYSQLX_TYPE_TINY', 1); +define('MYSQLX_TYPE_SHORT', 2); +define('MYSQLX_TYPE_SMALLINT', 17); +define('MYSQLX_TYPE_MEDIUMINT', 18); +define('MYSQLX_TYPE_INT', 19); +define('MYSQLX_TYPE_BIGINT', 20); +define('MYSQLX_TYPE_LONG', 3); +define('MYSQLX_TYPE_FLOAT', 4); +define('MYSQLX_TYPE_DOUBLE', 5); +define('MYSQLX_TYPE_NULL', 6); +define('MYSQLX_TYPE_TIMESTAMP', 7); +define('MYSQLX_TYPE_LONGLONG', 8); +define('MYSQLX_TYPE_INT24', 9); +define('MYSQLX_TYPE_DATE', 10); +define('MYSQLX_TYPE_TIME', 11); +define('MYSQLX_TYPE_DATETIME', 12); +define('MYSQLX_TYPE_YEAR', 13); +define('MYSQLX_TYPE_NEWDATE', 14); +define('MYSQLX_TYPE_ENUM', 247); +define('MYSQLX_TYPE_SET', 248); +define('MYSQLX_TYPE_TINY_BLOB', 249); +define('MYSQLX_TYPE_MEDIUM_BLOB', 250); +define('MYSQLX_TYPE_LONG_BLOB', 251); +define('MYSQLX_TYPE_BLOB', 252); +define('MYSQLX_TYPE_VAR_STRING', 253); +define('MYSQLX_TYPE_STRING', 254); +define('MYSQLX_TYPE_CHAR', 1); +define('MYSQLX_TYPE_BYTES', 21); +define('MYSQLX_TYPE_INTERVAL', 247); +define('MYSQLX_TYPE_GEOMETRY', 255); +define('MYSQLX_TYPE_JSON', 245); +define('MYSQLX_TYPE_NEWDECIMAL', 246); +define('MYSQLX_TYPE_BIT', 16); +define('MYSQLX_LOCK_NOWAIT', 1); +define('MYSQLX_LOCK_SKIP_LOCKED', 2); /** * @link https://secure.php.net/manual/en/function.mysql-xdevapi-getsession.php @@ -61,26 +61,25 @@ function getSession($uri) {} */ function expression($expression) {} - /** * Interface BaseResult * @package mysql_xdevapi */ -interface BaseResult { - +interface BaseResult +{ /** * Fetch warnings from last operation * @link https://www.php.net/manual/en/mysql-xdevapi-baseresult.getwarnings.php * @return array */ - public function getWarnings () : array; + public function getWarnings(): array; /** * Fetch warning count from last operation * @link https://www.php.net/manual/en/mysql-xdevapi-baseresult.getwarningscount.php * @return int */ - public function getWarningsCount () : int; + public function getWarningsCount(): int; } /** @@ -88,8 +87,8 @@ public function getWarningsCount () : int; * @link https://www.php.net/manual/en/class.mysql-xdevapi-collection.php * @package mysql_xdevapi */ -class Collection { - +class Collection +{ /** * Collection constructor * @link https://www.php.net/manual/en/mysql-xdevapi-collection.construct.php @@ -102,7 +101,7 @@ public function __construct() {} * @param mixed $document * @return \mysql_xdevapi\CollectionAdd */ - public function add($document) : \mysql_xdevapi\CollectionAdd {} + public function add($document): CollectionAdd {} /** * Add or replace collection document @@ -111,14 +110,14 @@ public function add($document) : \mysql_xdevapi\CollectionAdd {} * @param mixed $document * @return \mysql_xdevapi\Result */ - public function addOrReplaceOne($id, $document) : \mysql_xdevapi\Result {} + public function addOrReplaceOne($id, $document): Result {} /** * Get document count * @link https://www.php.net/manual/en/mysql-xdevapi-collection.count.php - * @return integer The number of documents in the collection. + * @return int The number of documents in the collection. */ - public function count() : int {} + public function count(): int {} /** * Create collection index @@ -134,28 +133,28 @@ public function createIndex($index_name, $index_desc_json) {} * @param string $index_name * @return bool */ - public function dropIndex($index_name) : bool {} + public function dropIndex($index_name): bool {} /** * Check if collection exists in database * @link https://www.php.net/manual/en/mysql-xdevapi-collection.existsindatabase.php * @return bool */ - public function existsInDatabase() : bool {} + public function existsInDatabase(): bool {} /** * @link https://secure.php.net/manual/en/mysql-xdevapi-collection.find.php * @param string $search_condition * @return \mysql_xdevapi\CollectionFind */ - public function find($search_condition) : \mysql_xdevapi\CollectionFind {} + public function find($search_condition): CollectionFind {} /** * Get collection name * @link https://www.php.net/manual/en/mysql-xdevapi-collection.getname.php * @return string */ - public function getName() : string {} + public function getName(): string {} /** * Get one document @@ -171,14 +170,14 @@ public function getOne($id) {} * @link https://www.php.net/manual/en/mysql-xdevapi-collection.getschema.php * @return \mysql_xdevapi\Schema */ - public function getSchema() : \mysql_xdevapi\Schema {} + public function getSchema(): Schema {} /** * Get a new Session object from the Collection object. * @link https://www.php.net/manual/en/mysql-xdevapi-collection.getsession.php * @return \mysql_xdevapi\Session */ - public function getSession() : \mysql_xdevapi\Session {} + public function getSession(): Session {} /** * Modify collections that meet specific search conditions. Multiple operations are allowed, and parameter binding is supported. @@ -186,7 +185,7 @@ public function getSession() : \mysql_xdevapi\Session {} * @param string $search_condition * @return \mysql_xdevapi\CollectionModify */ - public function modify($search_condition) : \mysql_xdevapi\CollectionModify {} + public function modify($search_condition): CollectionModify {} /** * Remove collections that meet specific search conditions. Multiple operations are allowed, and parameter binding is supported. @@ -194,7 +193,7 @@ public function modify($search_condition) : \mysql_xdevapi\CollectionModify {} * @param string $search_condition * @return \mysql_xdevapi\CollectionRemove */ - public function remove($search_condition) : \mysql_xdevapi\CollectionRemove {} + public function remove($search_condition): CollectionRemove {} /** * Remove one collection document @@ -203,7 +202,7 @@ public function remove($search_condition) : \mysql_xdevapi\CollectionRemove {} * @param string $id * @return \mysql_xdevapi\Result */ - public function removeOne($id) : \mysql_xdevapi\Result {} + public function removeOne($id): Result {} /** * Updates (or replaces) the document identified by ID, if it exists. @@ -212,30 +211,28 @@ public function removeOne($id) : \mysql_xdevapi\Result {} * @param string $doc * @return \mysql_xdevapi\Result */ - public function replaceOne($id, $doc) : \mysql_xdevapi\Result {} + public function replaceOne($id, $doc): Result {} } - /** * Class CollectionAdd * @package mysql_xdevapi */ -class CollectionAdd implements \mysql_xdevapi\Executable { - +class CollectionAdd implements \mysql_xdevapi\Executable +{ /** * @return \mysql_xdevapi\Result */ - public function execute () : \mysql_xdevapi\Result {} + public function execute(): Result {} } - /** * Class CollectionFind * @link https://www.php.net/manual/en/class.mysql-xdevapi-collectionfind.php * @package mysql_xdevapi */ -class CollectionFind implements \mysql_xdevapi\Executable, \mysql_xdevapi\CrudOperationBindable, \mysql_xdevapi\CrudOperationLimitable, \mysql_xdevapi\CrudOperationSortable { - +class CollectionFind implements \mysql_xdevapi\Executable, \mysql_xdevapi\CrudOperationBindable, \mysql_xdevapi\CrudOperationLimitable, \mysql_xdevapi\CrudOperationSortable +{ /** * Bind value to query placeholder * It allows the user to bind a parameter to the placeholder in the search condition of the find operation. The placeholder has the form of :NAME where ':' is a common prefix that must always exists before any NAME, NAME is the actual name of the placeholder. The bind function accepts a list of placeholders if multiple entities have to be substituted in the search condition. @@ -243,14 +240,14 @@ class CollectionFind implements \mysql_xdevapi\Executable, \mysql_xdevapi\CrudOp * @param array $placeholder_values * @return \mysql_xdevapi\CollectionFind */ - public function bind ( array $placeholder_values ) : \mysql_xdevapi\CollectionFind {} + public function bind(array $placeholder_values): CollectionFind {} /** * Execute the find operation; this functionality allows for method chaining. * @link https://www.php.net/manual/en/mysql-xdevapi-collectionfind.execute.php * @return \mysql_xdevapi\DocResult */ - public function execute () : \mysql_xdevapi\DocResult {} + public function execute(): DocResult {} /** * Defined the columns for the query to return. If not defined then all columns are used. @@ -258,7 +255,7 @@ public function execute () : \mysql_xdevapi\DocResult {} * @param string $projection * @return \mysql_xdevapi\CollectionFind */ - public function fields ( string $projection ) : \mysql_xdevapi\CollectionFind {} + public function fields(string $projection): CollectionFind {} /** * This function can be used to group the result-set by one more columns, frequently this is used with aggregate functions like COUNT,MAX,MIN,SUM etc. @@ -266,7 +263,7 @@ public function fields ( string $projection ) : \mysql_xdevapi\CollectionFind {} * @param string $sort_expr * @return \mysql_xdevapi\CollectionFind */ - public function groupBy ( string $sort_expr ) : \mysql_xdevapi\CollectionFind {} + public function groupBy(string $sort_expr): CollectionFind {} /** * This function can be used after the 'field' operation in order to make a selection on the documents to extract. @@ -274,7 +271,7 @@ public function groupBy ( string $sort_expr ) : \mysql_xdevapi\CollectionFind {} * @param string $sort_expr * @return \mysql_xdevapi\CollectionFind */ - public function having ( string $sort_expr ) : \mysql_xdevapi\CollectionFind {} + public function having(string $sort_expr): CollectionFind {} /** * Set the maximum number of documents to return. @@ -282,7 +279,7 @@ public function having ( string $sort_expr ) : \mysql_xdevapi\CollectionFind {} * @param int $rows * @return \mysql_xdevapi\CollectionFind */ - public function limit ( int $rows ) : \mysql_xdevapi\CollectionFind {} + public function limit(int $rows): CollectionFind {} /** * Execute operation with EXCLUSIVE LOCK @@ -295,7 +292,7 @@ public function limit ( int $rows ) : \mysql_xdevapi\CollectionFind {} * @param int $lock_waiting_option * @return \mysql_xdevapi\CollectionFind */ - public function lockExclusive (int $lock_waiting_option) : \mysql_xdevapi\CollectionFind {} + public function lockExclusive(int $lock_waiting_option): CollectionFind {} /** * Execute operation with SHARED LOCK @@ -310,7 +307,7 @@ public function lockExclusive (int $lock_waiting_option) : \mysql_xdevapi\Collec * @param int $lock_waiting_option * @return \mysql_xdevapi\CollectionFind */ - public function lockShared ( int $lock_waiting_option ) : \mysql_xdevapi\CollectionFind {} + public function lockShared(int $lock_waiting_option): CollectionFind {} /** * Skip given number of elements to be returned @@ -323,7 +320,7 @@ public function lockShared ( int $lock_waiting_option ) : \mysql_xdevapi\Collect * @param int $position * @return \mysql_xdevapi\CollectionFind */ - public function offset ( int $position ) : \mysql_xdevapi\CollectionFind {} + public function offset(int $position): CollectionFind {} /** * Set the sorting criteria @@ -335,15 +332,15 @@ public function offset ( int $position ) : \mysql_xdevapi\CollectionFind {} * @param string $sort_expr * @return CollectionFind */ - public function sort ( string $sort_expr ) : \mysql_xdevapi\CollectionFind {} + public function sort(string $sort_expr): CollectionFind {} } - /** * Class CollectionModify * @package mysql_xdevapi */ -class CollectionModify implements \mysql_xdevapi\Executable, \mysql_xdevapi\CrudOperationBindable, \mysql_xdevapi\CrudOperationLimitable, \mysql_xdevapi\CrudOperationSkippable, \mysql_xdevapi\CrudOperationSortable { +class CollectionModify implements \mysql_xdevapi\Executable, \mysql_xdevapi\CrudOperationBindable, \mysql_xdevapi\CrudOperationLimitable, \mysql_xdevapi\CrudOperationSkippable, \mysql_xdevapi\CrudOperationSortable +{ /** * Add an element to a document's field, as multiple elements of a field are represented as an array. Unlike arrayInsert(), arrayAppend() always appends the new element at the end of the array, whereas arrayInsert() can define the location. * @link https://www.php.net/manual/en/mysql-xdevapi-collectionmodify.arrayappend.php @@ -351,7 +348,7 @@ class CollectionModify implements \mysql_xdevapi\Executable, \mysql_xdevapi\Cru * @param string $expression_or_literal * @return \mysql_xdevapi\CollectionModify */ - public function arrayAppend ( string $collection_field , string $expression_or_literal ) : \mysql_xdevapi\CollectionModify {} + public function arrayAppend(string $collection_field, string $expression_or_literal): CollectionModify {} /** * Add an element to a document's field, as multiple elements of a field are represented as an array. Unlike arrayAppend(), arrayInsert() allows you to specify where the new element is inserted by defining which item it is after, whereas arrayAppend() always appends the new element at the end of the array. @@ -360,7 +357,7 @@ public function arrayAppend ( string $collection_field , string $expression_or_l * @param string $expression_or_literal * @return \mysql_xdevapi\CollectionModify */ - public function arrayInsert ( string $collection_field , string $expression_or_literal ) : \mysql_xdevapi\CollectionModify {} + public function arrayInsert(string $collection_field, string $expression_or_literal): CollectionModify {} /** * Bind a parameter to the placeholder in the search condition of the modify operation. @@ -369,14 +366,14 @@ public function arrayInsert ( string $collection_field , string $expression_or_l * @param array $placeholder_values * @return \mysql_xdevapi\CollectionModify */ - public function bind ( array $placeholder_values ) : \mysql_xdevapi\CollectionModify {} + public function bind(array $placeholder_values): CollectionModify {} /** * The execute method is required to send the CRUD operation request to the MySQL server. * @link https://www.php.net/manual/en/mysql-xdevapi-collectionmodify.execute.php * @return \mysql_xdevapi\Result */ - public function execute () : \mysql_xdevapi\Result {} + public function execute(): Result {} /** * Limit the number of documents modified by this operation. Optionally combine with skip() to define an offset value. @@ -384,7 +381,7 @@ public function execute () : \mysql_xdevapi\Result {} * @param int $rows * @return \mysql_xdevapi\CollectionModify */ - public function limit ( int $rows ) : \mysql_xdevapi\CollectionModify {} + public function limit(int $rows): CollectionModify {} /** * Takes a patch object and applies it on one or more documents, and can update multiple document properties. @@ -392,7 +389,7 @@ public function limit ( int $rows ) : \mysql_xdevapi\CollectionModify {} * @param string $document * @return \mysql_xdevapi\CollectionModify */ - public function patch ( string $document ) : \mysql_xdevapi\CollectionModify {} + public function patch(string $document): CollectionModify {} /** * Replace (update) a given field value with a new one. @@ -401,7 +398,7 @@ public function patch ( string $document ) : \mysql_xdevapi\CollectionModify {} * @param string $expression_or_literal * @return \mysql_xdevapi\CollectionModify */ - public function replace ( string $collection_field , string $expression_or_literal ) : \mysql_xdevapi\CollectionModify {} + public function replace(string $collection_field, string $expression_or_literal): CollectionModify {} /** * Sets or updates attributes on documents in a collection. @@ -410,7 +407,7 @@ public function replace ( string $collection_field , string $expression_or_liter * @param string $expression_or_literal * @return \mysql_xdevapi\CollectionModify */ - public function set ( string $collection_field , string $expression_or_literal ) : \mysql_xdevapi\CollectionModify {} + public function set(string $collection_field, string $expression_or_literal): CollectionModify {} /** * Skip the first N elements that would otherwise be returned by a find operation. If the number of elements skipped is larger than the size of the result set, then the find operation returns an empty set. @@ -418,7 +415,7 @@ public function set ( string $collection_field , string $expression_or_literal ) * @param int $position * @return \mysql_xdevapi\CollectionModify */ - public function skip ( int $position ) : \mysql_xdevapi\CollectionModify {} + public function skip(int $position): CollectionModify {} /** * Sort the result set by the field selected in the sort_expr argument. The allowed orders are ASC (Ascending) or DESC (Descending). This operation is equivalent to the 'ORDER BY' SQL operation and it follows the same set of rules. @@ -426,7 +423,7 @@ public function skip ( int $position ) : \mysql_xdevapi\CollectionModify {} * @param string $sort_expr * @return \mysql_xdevapi\CollectionModify */ - public function sort ( string $sort_expr ) : \mysql_xdevapi\CollectionModify {} + public function sort(string $sort_expr): CollectionModify {} /** * Removes attributes from documents in a collection. @@ -434,14 +431,11 @@ public function sort ( string $sort_expr ) : \mysql_xdevapi\CollectionModify {} * @param array $fields * @return \mysql_xdevapi\CollectionModify */ - public function unset ( array $fields ) : \mysql_xdevapi\CollectionModify {} + public function unset(array $fields): CollectionModify {} } - - - -class CollectionRemove implements \mysql_xdevapi\Executable, \mysql_xdevapi\CrudOperationBindable, \mysql_xdevapi\CrudOperationLimitable, \mysql_xdevapi\CrudOperationSortable { - +class CollectionRemove implements \mysql_xdevapi\Executable, \mysql_xdevapi\CrudOperationBindable, \mysql_xdevapi\CrudOperationLimitable, \mysql_xdevapi\CrudOperationSortable +{ /** * Bind a parameter to the placeholder in the search condition of the remove operation. * The placeholder has the form of :NAME where ':' is a common prefix that must always exists before any NAME where NAME is the name of the placeholder. The bind method accepts a list of placeholders if multiple entities have to be substituted in the search condition of the remove operation. @@ -449,14 +443,14 @@ class CollectionRemove implements \mysql_xdevapi\Executable, \mysql_xdevapi\Crud * @param array $placeholder_values * @return \mysql_xdevapi\CollectionRemove */ - public function bind ( array $placeholder_values ) : \mysql_xdevapi\CollectionRemove {} + public function bind(array $placeholder_values): CollectionRemove {} /** * The execute function needs to be invoked in order to trigger the client to send the CRUD operation request to the server. * @link https://www.php.net/manual/en/mysql-xdevapi-collectionremove.execute.php * @return \mysql_xdevapi\Result */ - public function execute () : \mysql_xdevapi\Result {} + public function execute(): Result {} /** * Sets the maximum number of documents to remove. @@ -464,7 +458,7 @@ public function execute () : \mysql_xdevapi\Result {} * @param int $rows * @return \mysql_xdevapi\CollectionRemove */ - public function limit ( int $rows ) : \mysql_xdevapi\CollectionRemove {} + public function limit(int $rows): CollectionRemove {} /** * Sort the result set by the field selected in the sort_expr argument. The allowed orders are ASC (Ascending) or DESC (Descending). This operation is equivalent to the 'ORDER BY' SQL operation and it follows the same set of rules. @@ -472,228 +466,227 @@ public function limit ( int $rows ) : \mysql_xdevapi\CollectionRemove {} * @param string $sort_expr * @return \mysql_xdevapi\CollectionRemove */ - public function sort ( string $sort_expr ) : \mysql_xdevapi\CollectionRemove {} + public function sort(string $sort_expr): CollectionRemove {} } - /** * Class ColumnResult * @package mysql_xdevapi */ -class ColumnResult { +class ColumnResult +{ /** * Get character set * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.getcharactersetname.php * @return string */ - public function getCharacterSetName () : string {} + public function getCharacterSetName(): string {} /** * Get collation name * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.getcollationname.php * @return string */ - public function getCollationName () : string {} + public function getCollationName(): string {} /** * Get column label * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.getcolumnlabel.php * @return string */ - public function getColumnLabel () : string {} + public function getColumnLabel(): string {} /** * Get column name * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.getcolumnname.php * @return string */ - public function getColumnName () : string {} + public function getColumnName(): string {} /** * Get fractional digit length * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.getfractionaldigits.php * @return int */ - public function getFractionalDigits () : int {} + public function getFractionalDigits(): int {} /** * Get column field length * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.getlength.php * @return int */ - public function getLength () : int {} + public function getLength(): int {} /** * Get schema name * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.getschemaname.php * @return string */ - public function getSchemaName () : string {} + public function getSchemaName(): string {} /** * Get table label * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.gettablelabel.php * @return string */ - public function getTableLabel () : string {} + public function getTableLabel(): string {} /** * Get table name * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.gettablename.php * @return string */ - public function getTableName () : string {} + public function getTableName(): string {} /** * Get column type * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.gettype.php * @return int */ - public function getType () : int {} + public function getType(): int {} /** * Check if signed type * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.isnumbersigned.php * @return int */ - public function isNumberSigned () : int {} + public function isNumberSigned(): int {} /** * Check if padded * @link https://www.php.net/manual/en/mysql-xdevapi-columnresult.ispadded.php * @return int */ - public function isPadded () : int {} + public function isPadded(): int {} } - /** * Interface CrudOperationBindable * @link https://www.php.net/manual/en/class.mysql-xdevapi-crudoperationbindable.php * @package mysql_xdevapi */ -interface CrudOperationBindable { +interface CrudOperationBindable +{ /** * Binds a value to a specific placeholder. * @link https://www.php.net/manual/en/mysql-xdevapi-crudoperationbindable.bind.php * @param array $placeholder_values * @return CrudOperationBindable */ - public function bind ( array $placeholder_values ) : \mysql_xdevapi\CrudOperationBindable; + public function bind(array $placeholder_values): CrudOperationBindable; } - /** * Interface CrudOperationLimitable * @link https://www.php.net/manual/en/class.mysql-xdevapi-crudoperationlimitable.php * @package mysql_xdevapi */ -interface CrudOperationLimitable { +interface CrudOperationLimitable +{ /** * Set result limit * @link https://www.php.net/manual/en/mysql-xdevapi-crudoperationlimitable.limit.php * @param int $rows * @return CrudOperationLimitable */ - public function limit ( int $rows ) : \mysql_xdevapi\CrudOperationLimitable; + public function limit(int $rows): CrudOperationLimitable; } - /** * Interface CrudOperationSkippable * @link https://www.php.net/manual/en/class.mysql-xdevapi-crudoperationskippable.php * @package mysql_xdevapi */ -interface CrudOperationSkippable { +interface CrudOperationSkippable +{ /** * Number of operations to skip * @link https://www.php.net/manual/en/mysql-xdevapi-crudoperationskippable.skip.php * @param int $skip * @return CrudOperationSkippable */ - public function skip ( int $skip ) : \mysql_xdevapi\CrudOperationSkippable; + public function skip(int $skip): CrudOperationSkippable; } - - /** * Interface CrudOperationSortable * @link https://www.php.net/manual/en/class.mysql-xdevapi-crudoperationsortable.php * @package mysql_xdevapi */ -interface CrudOperationSortable { +interface CrudOperationSortable +{ /** * Sort results * @link https://www.php.net/manual/en/mysql-xdevapi-crudoperationsortable.sort.php * @param string $sort_expr * @return CrudOperationSortable */ - public function sort ( string $sort_expr ) : \mysql_xdevapi\CrudOperationSortable; + public function sort(string $sort_expr): CrudOperationSortable; } - /** * Interface DatabaseObject * @link https://www.php.net/manual/en/class.mysql-xdevapi-databaseobject.php * @package mysql_xdevapi */ -interface DatabaseObject { +interface DatabaseObject +{ /** * Check if object exists in database * @link https://www.php.net/manual/en/mysql-xdevapi-databaseobject.existsindatabase.php * @return bool */ - public function existsInDatabase () : bool; + public function existsInDatabase(): bool; /** * Get object name * @link https://www.php.net/manual/en/mysql-xdevapi-databaseobject.getname.php * @return string */ - public function getName () : string; + public function getName(): string; /** * Get session name * @link https://www.php.net/manual/en/mysql-xdevapi-databaseobject.getsession.php * @return \mysql_xdevapi\Session */ - public function getSession () : \mysql_xdevapi\Session; + public function getSession(): Session; } - /** * Class DocResult * @link https://www.php.net/manual/en/class.mysql-xdevapi-docresult.php * @package mysql_xdevapi */ -class DocResult implements \mysql_xdevapi\BaseResult, \Traversable { +class DocResult implements \mysql_xdevapi\BaseResult, \Traversable +{ /** * Get all rows * @link https://www.php.net/manual/en/mysql-xdevapi-docresult.fetchall.php * @return array */ - public function fetchAll () : array {} + public function fetchAll(): array {} /** * Fetch one result from a result set. * @link https://www.php.net/manual/en/mysql-xdevapi-docresult.fetchone.php * @return array */ - public function fetchOne () : array {} + public function fetchOne(): array {} /** * Fetches warnings generated by MySQL server's last operation. * @link https://www.php.net/manual/en/mysql-xdevapi-docresult.getwarnings.php * @return \mysql_xdevapi\Warning[] */ - public function getWarnings () : array {} + public function getWarnings(): array {} /** * Returns the number of warnings raised by the last operation. Specifically, these warnings are raised by the MySQL server. * @link https://www.php.net/manual/en/mysql-xdevapi-docresult.getwarningscount.php * @return int */ - public function getWarningsCount () : int {} + public function getWarningsCount(): int {} } /** @@ -702,153 +695,151 @@ public function getWarningsCount () : int {} */ class Exception extends \RuntimeException implements \Throwable {} - /** * Interface Executable * @link https://www.php.net/manual/en/class.mysql-xdevapi-exception.php * @package mysql_xdevapi */ -interface Executable { +interface Executable +{ /** * Execute statement * @link https://www.php.net/manual/en/class.mysql-xdevapi-executable.php * @return Result */ - public function execute () : \mysql_xdevapi\Result; + public function execute(): Result; } - /** * Class ExecutionStatus * @link https://www.php.net/manual/en/class.mysql-xdevapi-executionstatus.php * @package mysql_xdevapi */ -class ExecutionStatus { - public $affectedItems ; - public $matchedItems ; - public $foundItems ; - public $lastInsertId ; - public $lastDocumentId ; +class ExecutionStatus +{ + public $affectedItems; + public $matchedItems; + public $foundItems; + public $lastInsertId; + public $lastDocumentId; } - /** * Class Expression * @link https://www.php.net/manual/en/class.mysql-xdevapi-expression.php * @package mysql_xdevapi */ -class Expression { +class Expression +{ /* Properties */ - public $name ; + public $name; /* Constructor */ - public function __construct ( string $expression ) {} + public function __construct(string $expression) {} } - /** * Class Result * @link https://www.php.net/manual/en/class.mysql-xdevapi-result.php * @package mysql_xdevapi */ -class Result implements \mysql_xdevapi\BaseResult , \Traversable { +class Result implements \mysql_xdevapi\BaseResult, \Traversable +{ /** * Get the last AUTO_INCREMENT value (last insert id). * @link https://www.php.net/manual/en/mysql-xdevapi-result.getautoincrementvalue.php * @return int */ - public function getAutoIncrementValue () : int {} + public function getAutoIncrementValue(): int {} /** * Fetch the generated _id values from the last operation. The unique _id field is generated by the MySQL server. * @link https://www.php.net/manual/en/mysql-xdevapi-result.getgeneratedids.php * @return string[] */ - public function getGeneratedIds () : array {} - + public function getGeneratedIds(): array {} /** * Retrieve warnings from the last Result operation. * @link https://www.php.net/manual/en/mysql-xdevapi-result.getwarnings.php * @return \mysql_xdevapi\Warning[] */ - public function getWarnings () : array {} + public function getWarnings(): array {} /** * Retrieve the number of warnings from the last Result operation. * @link https://www.php.net/manual/en/mysql-xdevapi-result.getwarningscount.php * @return int */ - public function getWarningsCount () : int {} + public function getWarningsCount(): int {} } - /** * Class RowResult * @link https://www.php.net/manual/en/class.mysql-xdevapi-rowresult.php * @package mysql_xdevapi */ -class RowResult implements \mysql_xdevapi\BaseResult , \Traversable { - +class RowResult implements \mysql_xdevapi\BaseResult, \Traversable +{ /** * Fetch all the rows from the result set. * @link https://www.php.net/manual/en/mysql-xdevapi-rowresult.fetchall.php * @return array A numerical array with all results from the query; each result is an associative array. An empty array is returned if no rows are present. */ - public function fetchAll () : array {} + public function fetchAll(): array {} /** * Fetch one result from the result set. * @link https://www.php.net/manual/en/mysql-xdevapi-rowresult.fetchone.php * @return array The result, as an associative array or NULL if no results are present. */ - public function fetchOne () : array {} + public function fetchOne(): array {} /** * Retrieve the column count for columns present in the result set. * @link https://www.php.net/manual/en/mysql-xdevapi-rowresult.getcolumncount.php * @return int */ - public function getColumnsCount () : int {} + public function getColumnsCount(): int {} /** * Retrieve column names for columns present in the result set. * @link https://www.php.net/manual/en/mysql-xdevapi-rowresult.getcolumnnames.php * @return array */ - public function getColumnNames () : array {} + public function getColumnNames(): array {} /** * Retrieve column metadata for columns present in the result set. * @link https://www.php.net/manual/en/mysql-xdevapi-rowresult.getcolumns.php * @return \mysql_xdevapi\FieldMetadata[] */ - public function getColumns () : array {} + public function getColumns(): array {} /** * Retrieve warnings from the last RowResult operation. * @link https://www.php.net/manual/en/mysql-xdevapi-rowresult.getwarnings.php * @return \mysql_xdevapi\Warning[] */ - public function getWarnings () : array {} + public function getWarnings(): array {} /** * Retrieve the number of warnings from the last RowResult operation. * @link https://www.php.net/manual/en/mysql-xdevapi-rowresult.getwarningscount.php * @return int */ - public function getWarningsCount () : int {} + public function getWarningsCount(): int {} } - /** * Class Schema * @link https://www.php.net/manual/en/class.mysql-xdevapi-schema.php * @package mysql_xdevapi */ -class Schema implements \mysql_xdevapi\DatabaseObject { +class Schema implements \mysql_xdevapi\DatabaseObject +{ /* Properties */ - public $name ; + public $name; /* Methods */ /** @@ -857,7 +848,7 @@ class Schema implements \mysql_xdevapi\DatabaseObject { * @param string $name * @return \mysql_xdevapi\Collection */ - public function createCollection ( string $name ) : \mysql_xdevapi\Collection {} + public function createCollection(string $name): Collection {} /** * Drop collection from schema @@ -865,7 +856,7 @@ public function createCollection ( string $name ) : \mysql_xdevapi\Collection {} * @param string $collection_name * @return bool */ - public function dropCollection ( string $collection_name ) : bool {} + public function dropCollection(string $collection_name): bool {} /** * Check if exists in database @@ -873,7 +864,7 @@ public function dropCollection ( string $collection_name ) : bool {} * @link https://www.php.net/manual/en/mysql-xdevapi-schema.existsindatabase.php * @return bool */ - public function existsInDatabase () : bool {} + public function existsInDatabase(): bool {} /** * Get a collection from the schema. @@ -881,7 +872,7 @@ public function existsInDatabase () : bool {} * @param string $name * @return \mysql_xdevapi\Collection */ - public function getCollection ( string $name ) : \mysql_xdevapi\Collection {} + public function getCollection(string $name): Collection {} /** * Get a collection, but as a Table object instead of a Collection object. @@ -889,28 +880,28 @@ public function getCollection ( string $name ) : \mysql_xdevapi\Collection {} * @param string $name * @return \mysql_xdevapi\Table */ - public function getCollectionAsTable ( string $name ) : \mysql_xdevapi\Table {} + public function getCollectionAsTable(string $name): Table {} /** * Fetch a list of collections for this schema. * @link https://www.php.net/manual/en/mysql-xdevapi-schema.getcollections.php * @return \mysql_xdevapi\Collection[] Array of all collections in this schema, where each array element value is a Collection object with the collection name as the key. */ - public function getCollections () : array {} + public function getCollections(): array {} /** * Get the name of the schema. * @link https://www.php.net/manual/en/mysql-xdevapi-schema.getname.php * @return string */ - public function getName () : string {} + public function getName(): string {} /** * Get a new Session object from the Schema object. * @link https://www.php.net/manual/en/mysql-xdevapi-schema.getsession.php * @return \mysql_xdevapi\Session */ - public function getSession () : \mysql_xdevapi\Session {} + public function getSession(): Session {} /** * Fetch a Table object for the provided table in the schema. @@ -918,49 +909,47 @@ public function getSession () : \mysql_xdevapi\Session {} * @param string $name * @return \mysql_xdevapi\Table */ - public function getTable ( string $name ) : \mysql_xdevapi\Table {} + public function getTable(string $name): Table {} /** * Get schema tables * @link https://www.php.net/manual/en/mysql-xdevapi-schema.gettables.php * @return \mysql_xdevapi\Table[] Array of all tables in this schema, where each array element value is a Table object with the table name as the key. */ - public function getTables () : array {} + public function getTables(): array {} } - /** * Interface SchemaObject * @link https://www.php.net/manual/en/class.mysql-xdevapi-schemaobject.php * @package mysql_xdevapi */ -interface SchemaObject extends \mysql_xdevapi\DatabaseObject { +interface SchemaObject extends \mysql_xdevapi\DatabaseObject +{ /* Methods */ - function getSchema () : \mysql_xdevapi\Schema; + public function getSchema(): Schema; } - - /** * Class Session * @link https://www.php.net/manual/en/class.mysql-xdevapi-session.php * @package mysql_xdevapi */ -class Session { - +class Session +{ /** * Close the session with the server. * @link https://www.php.net/manual/en/mysql-xdevapi-session.close.php * @return bool */ - public function close () : bool {} + public function close(): bool {} /** * Commit the transaction. * @link https://www.php.net/manual/en/mysql-xdevapi-session.commit.php - * @return Object + * @return object */ - public function commit () : Object {} + public function commit(): object {} /** * Creates a new schema. @@ -968,7 +957,7 @@ public function commit () : Object {} * @param string $schema_name * @return \mysql_xdevapi\Schema */ - public function createSchema ( string $schema_name ) : \mysql_xdevapi\Schema {} + public function createSchema(string $schema_name): Schema {} /** * Drop a schema (database). @@ -976,14 +965,14 @@ public function createSchema ( string $schema_name ) : \mysql_xdevapi\Schema {} * @param string $schema_name * @return bool */ - public function dropSchema ( string $schema_name ) : bool {} + public function dropSchema(string $schema_name): bool {} /** * Generate a Universal Unique IDentifier (UUID) generated according to » RFC 4122. * @link https://www.php.net/manual/en/mysql-xdevapi-session.generateuuid.php * @return string */ - public function generateUUID () : string {} + public function generateUUID(): string {} /** * Get a new schema object @@ -991,28 +980,28 @@ public function generateUUID () : string {} * @param string $schema_name * @return \mysql_xdevapi\Schema */ - public function getSchema ( string $schema_name ) : \mysql_xdevapi\Schema {} + public function getSchema(string $schema_name): Schema {} /** * Get schema objects for all schemas available to the session. * @link https://www.php.net/manual/en/mysql-xdevapi-session.getschemas.php * @return \mysql_xdevapi\Schema[] */ - public function getSchemas () : array {} + public function getSchemas(): array {} /** * Retrieve the MySQL server version for the session. * @link https://www.php.net/manual/en/mysql-xdevapi-session.getserverversion.php * @return int */ - public function getServerVersion () : int {} + public function getServerVersion(): int {} /** * Get a list of client connections to the session's MySQL server. * @link https://www.php.net/manual/en/mysql-xdevapi-session.listclients.php * @return array */ - public function listClients () : array {} + public function listClients(): array {} /** * Add quotes @@ -1021,27 +1010,27 @@ public function listClients () : array {} * @param string $name * @return string */ - public function quoteName ( string $name ) : string {} + public function quoteName(string $name): string {} /** * Release a previously set savepoint. * @link https://www.php.net/manual/en/mysql-xdevapi-session.releasesavepoint.php * @param string $name */ - public function releaseSavepoint ( string $name ) : void {} + public function releaseSavepoint(string $name): void {} /** * Rollback the transaction. * @link https://www.php.net/manual/en/mysql-xdevapi-session.rollback.php */ - public function rollback () : void {} + public function rollback(): void {} /** * Rollback transaction to savepoint * @link https://www.php.net/manual/en/mysql-xdevapi-session.rollbackto.php * @param string $name */ - public function rollbackTo ( string $name ) : void {} + public function rollbackTo(string $name): void {} /** * Create a new savepoint for the transaction. @@ -1049,7 +1038,7 @@ public function rollbackTo ( string $name ) : void {} * @param string $name * @return string */ - public function setSavepoint (string $name ) : string {} + public function setSavepoint(string $name): string {} /** * Create a native SQL statement. Placeholders are supported using the native "?" syntax. Use the execute method to execute the SQL statement. @@ -1057,28 +1046,28 @@ public function setSavepoint (string $name ) : string {} * @param string $query * @return SqlStatement */ - public function sql ( string $query ) : \mysql_xdevapi\SqlStatement {} + public function sql(string $query): SqlStatement {} /** * Start a new transaction. * @link https://www.php.net/manual/en/mysql-xdevapi-session.starttransaction.php */ - public function startTransaction () : void {} + public function startTransaction(): void {} } - /** * Class SqlStatement * @link https://www.php.net/manual/en/class.mysql-xdevapi-sqlstatement.php * @package mysql_xdevapi */ -class SqlStatement { +class SqlStatement +{ /* Constants */ - const EXECUTE_ASYNC = 1 ; - const BUFFERED = 2 ; + public const EXECUTE_ASYNC = 1; + public const BUFFERED = 2; /* Properties */ - public $statement ; + public $statement; /* Methods */ /** @@ -1087,140 +1076,140 @@ class SqlStatement { * @param string $param * @return \mysql_xdevapi\SqlStatement */ - public function bind ( string $param ) : \mysql_xdevapi\SqlStatement {} + public function bind(string $param): SqlStatement {} /** * Execute the operation * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatement.execute.php * @return \mysql_xdevapi\Result */ - public function execute () : \mysql_xdevapi\Result {} + public function execute(): Result {} /** * Get next result * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatement.getnextresult.php * @return \mysql_xdevapi\Result */ - public function getNextResult () : \mysql_xdevapi\Result {} + public function getNextResult(): Result {} /** * Get result * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatement.getresult.php * @return \mysql_xdevapi\Result */ - public function getResult () : \mysql_xdevapi\Result {} + public function getResult(): Result {} /** * Check for more results * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatement.hasmoreresults.php * @return bool */ - public function hasMoreResults () : bool {} + public function hasMoreResults(): bool {} } - /** * Class SqlStatementResult * @link https://www.php.net/manual/en/class.mysql-xdevapi-sqlstatementresult.php * @package mysql_xdevapi */ -class SqlStatementResult implements \mysql_xdevapi\BaseResult , \Traversable { +class SqlStatementResult implements \mysql_xdevapi\BaseResult, \Traversable +{ /* Methods */ /** * Fetch all the rows from the result set. * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.fetchall.php * @return array */ - public function fetchAll () : array {} + public function fetchAll(): array {} /** * Fetch one row from the result set. * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.fetchone.php * @return array */ - public function fetchOne () : array {} + public function fetchOne(): array {} /** * Get affected row count * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.getaffecteditemscount.php * @return int */ - public function getAffectedItemsCount () : int {} + public function getAffectedItemsCount(): int {} /** * Get column count * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.getcolumncount.php * @return int */ - public function getColumnsCount () : int {} + public function getColumnsCount(): int {} /** * Get column names * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.getcolumnnames.php * @return array */ - public function getColumnNames () : array {} + public function getColumnNames(): array {} /** * Get columns * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.getcolumns.php * @return array */ - public function getColumns () : array {} + public function getColumns(): array {} /** * Get generated ids * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.getgeneratedids.php * @return array */ - public function getGeneratedIds () : array {} + public function getGeneratedIds(): array {} /** * Get last insert id * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.getlastinsertid.php * @return string */ - public function getLastInsertId () : string {} + public function getLastInsertId(): string {} /** * Get warnings from last operation * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.getwarnings.php * @return \mysql_xdevapi\Warning[] */ - public function getWarnings () : array {} + public function getWarnings(): array {} /** * Get warning count from last operation * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.getwarningcount.php * @return int */ - public function getWarningCounts () : int {} + public function getWarningCounts(): int {} /** * Check if result has data * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.hasdata.php * @return bool */ - public function hasData () : bool {} + public function hasData(): bool {} /** * Get next result * @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.nextresult.php * @return \mysql_xdevapi\Result */ - public function nextResult () : \mysql_xdevapi\Result {} + public function nextResult(): Result {} } - /** * Class Statement * @link https://www.php.net/manual/en/class.mysql-xdevapi-statement.php * @package mysql_xdevapi */ -class Statement { +class Statement +{ /* Constants */ - const EXECUTE_ASYNC = 1 ; - const BUFFERED = 2 ; + public const EXECUTE_ASYNC = 1; + public const BUFFERED = 2; /* Methods */ /** @@ -1228,33 +1217,32 @@ class Statement { * @link https://www.php.net/manual/en/mysql-xdevapi-statement.getnextresult.php * @return \mysql_xdevapi\Result */ - public function getNextResult () : \mysql_xdevapi\Result {} + public function getNextResult(): Result {} /** * Get result * @link https://www.php.net/manual/en/mysql-xdevapi-statement.getresult.php * @return Result */ - public function getResult () : \mysql_xdevapi\Result {} + public function getResult(): Result {} /** * Check if more results * @link https://www.php.net/manual/en/mysql-xdevapi-statement.hasmoreresults.php * @return bool */ - public function hasMoreResults () : bool {} + public function hasMoreResults(): bool {} } - /** * Class Table * @link https://www.php.net/manual/en/class.mysql-xdevapi-table.php * @package mysql_xdevapi */ -class Table implements \mysql_xdevapi\SchemaObject { +class Table implements \mysql_xdevapi\SchemaObject +{ /* Properties */ - public $name ; - + public $name; /* Methods */ /** @@ -1262,42 +1250,42 @@ class Table implements \mysql_xdevapi\SchemaObject { * @link https://www.php.net/manual/en/mysql-xdevapi-table.count.php * @return int */ - public function count () : int {} + public function count(): int {} /** * Deletes rows from a table. * @link https://www.php.net/manual/en/mysql-xdevapi-table.delete.php * @return \mysql_xdevapi\TableDelete */ - public function delete () : \mysql_xdevapi\TableDelete {} + public function delete(): TableDelete {} /** * Verifies if this table exists in the database. * @link https://www.php.net/manual/en/mysql-xdevapi-table.existsindatabase.php * @return bool */ - public function existsInDatabase () : bool {} + public function existsInDatabase(): bool {} /** * Returns the name of this database object. * @link https://www.php.net/manual/en/mysql-xdevapi-table.getname.php * @return string */ - public function getName () : string {} + public function getName(): string {} /** * Fetch the schema associated with the table. * @link https://www.php.net/manual/en/mysql-xdevapi-table.getschema.php * @return \mysql_xdevapi\Schema */ - public function getSchema () : \mysql_xdevapi\Schema {} + public function getSchema(): Schema {} /** * Get session associated with the table. * @link https://www.php.net/manual/en/mysql-xdevapi-table.getsession.php * @return \mysql_xdevapi\Session */ - public function getSession () : \mysql_xdevapi\Session {} + public function getSession(): Session {} /** * Inserts rows into a table. @@ -1306,14 +1294,14 @@ public function getSession () : \mysql_xdevapi\Session {} * @param string|string[] ...$additionalColumns Additional columns definitions. * @return \mysql_xdevapi\TableInsert */ - public function insert ( $columns, ...$additionalColumns ) : \mysql_xdevapi\TableInsert {} + public function insert($columns, ...$additionalColumns): TableInsert {} /** * Determine if the underlying object is a view or not. * @link https://www.php.net/manual/en/mysql-xdevapi-table.isview.php * @return bool */ - public function isView () : bool {} + public function isView(): bool {} /** * Fetches data from a table. @@ -1322,23 +1310,23 @@ public function isView () : bool {} * @param string|string[] ...$additionalColumns Additional columns parameter definitions. * @return \mysql_xdevapi\TableSelect */ - public function select ( $columns, ...$additionalColumns ) : \mysql_xdevapi\TableSelect {} + public function select($columns, ...$additionalColumns): TableSelect {} /** * Updates columns in a table. * @link https://www.php.net/manual/en/mysql-xdevapi-table.update.php * @return \mysql_xdevapi\TableUpdate */ - public function update () : \mysql_xdevapi\TableUpdate {} + public function update(): TableUpdate {} } - /** * Class TableDelete * @link https://www.php.net/manual/en/class.mysql-xdevapi-tabledelete.php * @package mysql_xdevapi */ -class TableDelete implements \mysql_xdevapi\Executable { +class TableDelete implements \mysql_xdevapi\Executable +{ /* Methods */ /** * Binds a value to a specific placeholder. @@ -1346,14 +1334,14 @@ class TableDelete implements \mysql_xdevapi\Executable { * @param array $placeholder_values * @return \mysql_xdevapi\TableDelete */ - public function bind ( array $placeholder_values ) : \mysql_xdevapi\TableDelete {} + public function bind(array $placeholder_values): TableDelete {} /** * Execute the delete query. * @link https://www.php.net/manual/en/mysql-xdevapi-tabledelete.execute.php * @return \mysql_xdevapi\Result */ - public function execute () : \mysql_xdevapi\Result {} + public function execute(): Result {} /** * Sets the maximum number of records or documents to delete. @@ -1361,7 +1349,7 @@ public function execute () : \mysql_xdevapi\Result {} * @param int $rows * @return \mysql_xdevapi\TableDelete */ - public function limit ( int $rows ) : \mysql_xdevapi\TableDelete {} + public function limit(int $rows): TableDelete {} /** * Set the order options for a result set. @@ -1369,7 +1357,7 @@ public function limit ( int $rows ) : \mysql_xdevapi\TableDelete {} * @param string $orderby_expr * @return \mysql_xdevapi\TableDelete */ - public function orderby ( string $orderby_expr ) : \mysql_xdevapi\TableDelete {} + public function orderby(string $orderby_expr): TableDelete {} /** * Sets the search condition to filter. @@ -1377,22 +1365,22 @@ public function orderby ( string $orderby_expr ) : \mysql_xdevapi\TableDelete {} * @param string $where_expr * @return \mysql_xdevapi\TableDelete */ - public function where ( string $where_expr ) : \mysql_xdevapi\TableDelete {} + public function where(string $where_expr): TableDelete {} } - /** * Class TableInsert * @link https://www.php.net/manual/en/class.mysql-xdevapi-tableinsert.php * @package mysql_xdevapi */ -class TableInsert implements \mysql_xdevapi\Executable { +class TableInsert implements \mysql_xdevapi\Executable +{ /** * Execute the statement. * @link https://www.php.net/manual/en/mysql-xdevapi-tableinsert.execute.php * @return \mysql_xdevapi\Result */ - public function execute () : \mysql_xdevapi\Result {} + public function execute(): Result {} /** * Set the values to be inserted. @@ -1400,30 +1388,30 @@ public function execute () : \mysql_xdevapi\Result {} * @param array $row_values * @return \mysql_xdevapi\TableInsert */ - public function values ( array $row_values ) : \mysql_xdevapi\TableInsert {} + public function values(array $row_values): TableInsert {} } - /** * Class TableSelect * @link https://www.php.net/manual/en/class.mysql-xdevapi-tableselect.php * @package mysql_xdevapi */ -class TableSelect implements \mysql_xdevapi\Executable { +class TableSelect implements \mysql_xdevapi\Executable +{ /** * Binds a value to a specific placeholder. * @link https://www.php.net/manual/en/mysql-xdevapi-tableselect.bind.php * @param array $placeholder_values * @return \mysql_xdevapi\TableSelect */ - public function bind ( array $placeholder_values ) : \mysql_xdevapi\TableSelect {} + public function bind(array $placeholder_values): TableSelect {} /** * Execute the select statement by chaining it with the execute() method. * @link https://www.php.net/manual/en/mysql-xdevapi-tableselect.execute.php * @return \mysql_xdevapi\RowResult */ - public function execute () : \mysql_xdevapi\RowResult {} + public function execute(): RowResult {} /** * Sets a grouping criteria for the result set. @@ -1431,7 +1419,7 @@ public function execute () : \mysql_xdevapi\RowResult {} * @param mixed $sort_expr * @return \mysql_xdevapi\TableSelect */ - public function groupBy ($sort_expr ) : \mysql_xdevapi\TableSelect {} + public function groupBy($sort_expr): TableSelect {} /** * Sets a condition for records to consider in aggregate function operations. @@ -1439,7 +1427,7 @@ public function groupBy ($sort_expr ) : \mysql_xdevapi\TableSelect {} * @param string $sort_expr * @return \mysql_xdevapi\TableSelect */ - public function having ( string $sort_expr ) : \mysql_xdevapi\TableSelect {} + public function having(string $sort_expr): TableSelect {} /** * Sets the maximum number of records or documents to return. @@ -1447,7 +1435,7 @@ public function having ( string $sort_expr ) : \mysql_xdevapi\TableSelect {} * @param int $rows * @return \mysql_xdevapi\TableSelect */ - public function limit ( int $rows ) : \mysql_xdevapi\TableSelect {} + public function limit(int $rows): TableSelect {} /** * Execute a read operation with EXCLUSIVE LOCK. Only one lock can be active at a time. @@ -1455,7 +1443,7 @@ public function limit ( int $rows ) : \mysql_xdevapi\TableSelect {} * @param int|null $lock_waiting_option * @return \mysql_xdevapi\TableSelect */ - public function lockExclusive (?int $lock_waiting_option ) : \mysql_xdevapi\TableSelect {} + public function lockExclusive(?int $lock_waiting_option): TableSelect {} /** * Execute a read operation with SHARED LOCK. Only one lock can be active at a time. @@ -1463,7 +1451,7 @@ public function lockExclusive (?int $lock_waiting_option ) : \mysql_xdevapi\Tabl * @param int|null $lock_waiting_option * @return \mysql_xdevapi\TableSelect */ - public function lockShared (?int $lock_waiting_option ) : \mysql_xdevapi\TableSelect {} + public function lockShared(?int $lock_waiting_option): TableSelect {} /** * Skip given number of rows in result. @@ -1471,7 +1459,7 @@ public function lockShared (?int $lock_waiting_option ) : \mysql_xdevapi\TableSe * @param int $position * @return \mysql_xdevapi\TableSelect */ - public function offset ( int $position ) : \mysql_xdevapi\TableSelect {} + public function offset(int $position): TableSelect {} /** * Sets the order by criteria. @@ -1479,7 +1467,7 @@ public function offset ( int $position ) : \mysql_xdevapi\TableSelect {} * @param string|string[] ...$sort_expr * @return \mysql_xdevapi\TableSelect */ - public function orderby ( ...$sort_expr ) : \mysql_xdevapi\TableSelect {} + public function orderby(...$sort_expr): TableSelect {} /** * Sets the search condition to filter. @@ -1487,30 +1475,30 @@ public function orderby ( ...$sort_expr ) : \mysql_xdevapi\TableSelect {} * @param string $where_expr * @return \mysql_xdevapi\TableSelect */ - public function where ( string $where_expr ) : \mysql_xdevapi\TableSelect {} + public function where(string $where_expr): TableSelect {} } - /** * Class TableUpdate * @link https://www.php.net/manual/en/class.mysql-xdevapi-tableupdate.php * @package mysql_xdevapi */ -class TableUpdate implements \mysql_xdevapi\Executable { +class TableUpdate implements \mysql_xdevapi\Executable +{ /** * Bind update query parameters * @link https://www.php.net/manual/en/mysql-xdevapi-tableupdate.bind.php * @param array $placeholder_values The name of the placeholder, and the value to bind, defined as a JSON array. * @return \mysql_xdevapi\TableUpdate */ - public function bind ( array $placeholder_values ) : \mysql_xdevapi\TableUpdate {} + public function bind(array $placeholder_values): TableUpdate {} /** * Executes the update statement. * @link https://www.php.net/manual/en/mysql-xdevapi-tableupdate.execute.php * @return \mysql_xdevapi\TableUpdate */ - public function execute () : \mysql_xdevapi\TableUpdate {} + public function execute(): TableUpdate {} /** * Set the maximum number of records or documents update. @@ -1518,7 +1506,7 @@ public function execute () : \mysql_xdevapi\TableUpdate {} * @param int $rows * @return \mysql_xdevapi\TableUpdate */ - public function limit ( int $rows ) : \mysql_xdevapi\TableUpdate {} + public function limit(int $rows): TableUpdate {} /** * Sets the sorting criteria. @@ -1526,7 +1514,7 @@ public function limit ( int $rows ) : \mysql_xdevapi\TableUpdate {} * @param ?string|?string[] ...$orderby_expr The expressions that define the order by criteria. Can be an array with one or more expressions, or a string. * @return \mysql_xdevapi\TableUpdate */ - public function orderby ( ...$orderby_expr) : \mysql_xdevapi\TableUpdate {} + public function orderby(...$orderby_expr): TableUpdate {} /** * Updates the column value on records in a table. @@ -1535,7 +1523,7 @@ public function orderby ( ...$orderby_expr) : \mysql_xdevapi\TableUpdate {} * @param string $expression_or_literal * @return \mysql_xdevapi\TableUpdate */ - public function set ( string $table_field , string $expression_or_literal ) : \mysql_xdevapi\TableUpdate {} + public function set(string $table_field, string $expression_or_literal): TableUpdate {} /** * Set the search condition to filter. @@ -1543,26 +1531,25 @@ public function set ( string $table_field , string $expression_or_literal ) : \m * @param string $where_expr * @return \mysql_xdevapi\TableUpdate */ - public function where ( string $where_expr ) : \mysql_xdevapi\TableUpdate {} + public function where(string $where_expr): TableUpdate {} } - /** * Class Warning * @link https://www.php.net/manual/en/class.mysql-xdevapi-warning.php * @package mysql_xdevapi */ -class Warning { +class Warning +{ /* Properties */ - public $message ; - public $level ; - public $code ; + public $message; + public $level; + public $code; /* Constructor */ - private function __construct () {} + private function __construct() {} } - /** * Class XSession * @link https://www.php.net/manual/en/class.mysql-xdevapi-xsession.php diff --git a/mysqli/mysqli.php b/mysqli/mysqli.php index bddd22286..0817113fc 100644 --- a/mysqli/mysqli.php +++ b/mysqli/mysqli.php @@ -10,1468 +10,1466 @@ /** * mysqli_sql_exception */ -class mysqli_sql_exception extends RuntimeException { - /** - * The sql state with the error. +class mysqli_sql_exception extends RuntimeException +{ + /** + * The sql state with the error. + * + * @var string + */ + protected $sqlstate; + + /** + * The error code * + * @var int + */ + protected $code; +} + +/** + * MySQLi Driver. + * @link https://php.net/manual/en/class.mysqli-driver.php + */ +final class mysqli_driver +{ + /** + * @var string + */ + public $client_info; + /** + * @var string + */ + public $client_version; + /** + * @var string + */ + public $driver_version; + /** + * @var string + */ + public $embedded; + /** + * @var bool + */ + public $reconnect; + /** + * @var int + */ + public $report_mode; +} + +/** + * Represents a connection between PHP and a MySQL database. + * @link https://php.net/manual/en/class.mysqli.php + */ +class mysqli +{ + /** + * @var int + */ + public $affected_rows; + /** + * @var string + */ + public $client_info; + /** + * @var int + */ + public $client_version; + /** + * @var int + */ + public $connect_errno; + /** + * @var string + */ + public $connect_error; + /** + * @var int + */ + public $errno; + /** + * @var string + */ + public $error; + /** + * @var int + */ + public $field_count; + /** + * @var string + */ + public $host_info; + /** + * @var string + */ + public $info; + /** + * @var int|string + */ + public $insert_id; + /** + * @var string + */ + public $server_info; + /** + * @var int + */ + public $server_version; + /** + * @var string + */ + public $sqlstate; + /** + * @var string + */ + public $protocol_version; + /** + * @var int + */ + public $thread_id; + /** + * @var int + */ + public $warning_count; + + /** + * @var array A list of errors, each as an associative array containing the errno, error, and sqlstate. + * @link https://secure.php.net/manual/en/mysqli.error-list.php + */ + public $error_list; + + /** + * Open a new connection to the MySQL server + * @link https://php.net/manual/en/mysqli.construct.php + * @param string $hostname [optional] Can be either a host name or an IP address. Passing the NULL value or the string "localhost" to this parameter, the local host is assumed. When possible, pipes will be used instead of the TCP/IP protocol. Prepending host by p: opens a persistent connection. mysqli_change_user() is automatically called on connections opened from the connection pool. Defaults to ini_get("mysqli.default_host") + * @param string $username [optional] The MySQL user name. Defaults to ini_get("mysqli.default_user") + * @param string $password [optional] If not provided or NULL, the MySQL server will attempt to authenticate the user against those user records which have no password only. This allows one username to be used with different permissions (depending on if a password as provided or not). Defaults to ini_get("mysqli.default_pw") + * @param string $database [optional] If provided will specify the default database to be used when performing queries. Defaults to "" + * @param int $port [optional] Specifies the port number to attempt to connect to the MySQL server. Defaults to ini_get("mysqli.default_port") + * @param string $socket [optional] Specifies the socket or named pipe that should be used. Defaults to ini_get("mysqli.default_socket") + */ + public function __construct( + $hostname = null, + $username = null, + $password = null, + $database = null, + $port = null, + $socket = null + ) {} + + /** + * Turns on or off auto-committing database modifications + * @link https://php.net/manual/en/mysqli.autocommit.php + * @param bool $enable

      + * Whether to turn on auto-commit or not. + *

      + * @return bool true on success or false on failure. + */ + public function autocommit($enable) {} + + /** + * Starts a transaction + * @link https://secure.php.net/manual/en/mysqli.begin-transaction.php + * @param int $flags [optional] + * @param string $name [optional] + * @return bool true on success or false on failure. + * @since 5.5 + */ + public function begin_transaction($flags = 0, $name = null) {} + + /** + * Changes the user of the specified database connection + * @link https://php.net/manual/en/mysqli.change-user.php + * @param string $username

      + * The MySQL user name. + *

      + * @param string $password

      + * The MySQL password. + *

      + * @param string $database

      + * The database to change to. + *

      + *

      + * If desired, the null value may be passed resulting in only changing + * the user and not selecting a database. To select a database in this + * case use the mysqli_select_db function. + *

      + * @return bool true on success or false on failure. + */ + public function change_user($username, $password, $database) {} + + /** + * Returns the default character set for the database connection + * @link https://php.net/manual/en/mysqli.character-set-name.php + * @return string The default character set for the current connection + */ + public function character_set_name() {} + + /** + * @removed 5.4 + */ + #[Deprecated(since: '5.3')] + public function client_encoding() {} + + /** + * Closes a previously opened database connection + * @link https://php.net/manual/en/mysqli.close.php + * @return bool true on success or false on failure. + */ + public function close() {} + + /** + * Commits the current transaction + * @link https://php.net/manual/en/mysqli.commit.php + * @param int $flags A bitmask of MYSQLI_TRANS_COR_* constants. + * @param string $name If provided then COMMIT $name is executed. + * @return bool true on success or false on failure. + */ + public function commit($flags = -1, $name = null) {} + + /** + * @link https://php.net/manual/en/function.mysqli-connect.php + * @param string $hostname [optional] + * @param string $username [optional] + * @param string $password [optional] + * @param string $database [optional] + * @param int $port [optional] + * @param string $socket [optional] + */ + public function connect($hostname = null, $username = null, $password = null, $database = null, $port = null, $socket = null) {} + + /** + * Dump debugging information into the log + * @link https://php.net/manual/en/mysqli.dump-debug-info.php + * @return bool true on success or false on failure. + */ + public function dump_debug_info() {} + + /** + * Performs debugging operations + * @link https://php.net/manual/en/mysqli.debug.php + * @param string $options

      + * A string representing the debugging operation to perform + *

      + * @return bool true. + */ + public function debug($options) {} + + /** + * Returns a character set object + * @link https://php.net/manual/en/mysqli.get-charset.php + * @return object The function returns a character set object with the following properties: + * charset + *

      Character set name

      + * collation + *

      Collation name

      + * dir + *

      Directory the charset description was fetched from (?) or "" for built-in character sets

      + * min_length + *

      Minimum character length in bytes

      + * max_length + *

      Maximum character length in bytes

      + * number + *

      Internal character set number

      + * state + *

      Character set status (?)

      + */ + public function get_charset() {} + + /** + * Returns the MySQL client version as a string + * @link https://php.net/manual/en/mysqli.get-client-info.php + * @return string A string that represents the MySQL client library version + */ + public function get_client_info() {} + + /** + * Returns statistics about the client connection + * @link https://php.net/manual/en/mysqli.get-connection-stats.php + * @return array|false an array with connection stats if success, false otherwise. + */ + public function get_connection_stats() {} + + /** + * An undocumented function equivalent to the $server_info property + * @link https://php.net/manual/en/mysqli.get-server-info.php + * @return string A character string representing the server version. + */ + public function get_server_info() {} + + /** + * Get result of SHOW WARNINGS + * @link https://php.net/manual/en/mysqli.get-warnings.php + * @return mysqli_warning + */ + public function get_warnings() {} + + /** + * Initializes MySQLi and returns a resource for use with mysqli_real_connect() + * @link https://php.net/manual/en/mysqli.init.php + * @return mysqli an object. + */ + public function init() {} + + /** + * Asks the server to kill a MySQL thread + * @link https://php.net/manual/en/mysqli.kill.php + * @param int $process_id + * @return bool true on success or false on failure. + */ + public function kill($process_id) {} + + /** + * Performs a query on the database + * @link https://php.net/manual/en/mysqli.multi-query.php + * @param string $query

      + * The query, as a string. + *

      + *

      + * Data inside the query should be properly escaped. + *

      + * @return bool false if the first statement failed. + * To retrieve subsequent errors from other statements you have to call + * mysqli_next_result first. + */ + public function multi_query($query) {} + + /** + * @link https://php.net/manual/en/mysqli.construct.php + * @param string $host [optional] + * @param string $username [optional] + * @param string $password [optional] + * @param string $database [optional] + * @param int $port [optional] + * @param string $socket [optional] + * + * @removed 8.0 + */ + public function mysqli($host = null, $username = null, $password = null, $database = null, $port = null, $socket = null) {} + + /** + * Check if there are any more query results from a multi query + * @link https://php.net/manual/en/mysqli.more-results.php + * @return bool true on success or false on failure. + */ + public function more_results() {} + + /** + * Prepare next result from multi_query + * @link https://php.net/manual/en/mysqli.next-result.php + * @return bool true on success or false on failure. + */ + public function next_result() {} + + /** + * Set options + * @link https://php.net/manual/en/mysqli.options.php + * @param int $option

      + * The option that you want to set. It can be one of the following values: + * + * Valid options + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      NameDescription
      MYSQLI_OPT_CONNECT_TIMEOUTconnection timeout in seconds (supported on Windows with TCP/IP since PHP 5.3.1)
      MYSQLI_OPT_LOCAL_INFILEenable/disable use of LOAD LOCAL INFILE
      MYSQLI_INIT_COMMANDcommand to execute after when connecting to MySQL server
      MYSQLI_READ_DEFAULT_FILE + * Read options from named option file instead of my.cnf + *
      MYSQLI_READ_DEFAULT_GROUP + * Read options from the named group from my.cnf + * or the file specified with MYSQL_READ_DEFAULT_FILE + *
      MYSQLI_SERVER_PUBLIC_KEY + * RSA public key file used with the SHA-256 based authentication. + *
      + *

      + * @param mixed $value

      + * The value for the option. + *

      + * @return bool true on success or false on failure. + */ + public function options($option, $value) {} + + /** + * Pings a server connection, or tries to reconnect if the connection has gone down + * @link https://php.net/manual/en/mysqli.ping.php + * @return bool true on success or false on failure. + */ + public function ping() {} + + /** + * Prepare an SQL statement for execution + * @link https://php.net/manual/en/mysqli.prepare.php + * @param string $query

      + * The query, as a string. + *

      + *

      + * You should not add a terminating semicolon or \g + * to the statement. + *

      + *

      + * This parameter can include one or more parameter markers in the SQL + * statement by embedding question mark (?) characters + * at the appropriate positions. + *

      + *

      + * The markers are legal only in certain places in SQL statements. + * For example, they are allowed in the VALUES() + * list of an INSERT statement (to specify column + * values for a row), or in a comparison with a column in a + * WHERE clause to specify a comparison value. + *

      + *

      + * However, they are not allowed for identifiers (such as table or + * column names), in the select list that names the columns to be + * returned by a SELECT statement, or to specify both + * operands of a binary operator such as the = equal + * sign. The latter restriction is necessary because it would be + * impossible to determine the parameter type. It's not allowed to + * compare marker with NULL by + * ? IS NULL too. In general, parameters are legal + * only in Data Manipulation Language (DML) statements, and not in Data + * Definition Language (DDL) statements. + *

      + * @return mysqli_stmt|false mysqli_prepare returns a statement object or false if an error occurred. + */ + public function prepare($query) {} + + /** + * Performs a query on the database + * @link https://php.net/manual/en/mysqli.query.php + * @param string $query

      + * The query string. + *

      + *

      + * Data inside the query should be properly escaped. + *

      + * @param int $result_mode [optional]

      + * Either the constant MYSQLI_USE_RESULT or + * MYSQLI_STORE_RESULT depending on the desired + * behavior. By default, MYSQLI_STORE_RESULT is used. + *

      + *

      + * If you use MYSQLI_USE_RESULT all subsequent calls + * will return error Commands out of sync unless you + * call mysqli_free_result + *

      + *

      + * With MYSQLI_ASYNC (available with mysqlnd), it is + * possible to perform query asynchronously. + * mysqli_poll is then used to get results from such + * queries. + *

      + * @return mysqli_result|bool For successful SELECT, SHOW, DESCRIBE or + * EXPLAIN queries mysqli_query will return + * a mysqli_result object. For other successful queries mysqli_query will + * return true and false on failure. + */ + public function query($query, $result_mode = MYSQLI_STORE_RESULT) {} + + /** + * Opens a connection to a mysql server + * @link https://php.net/manual/en/mysqli.real-connect.php + * @param string $hostname [optional]

      + * Can be either a host name or an IP address. Passing the null value + * or the string "localhost" to this parameter, the local host is + * assumed. When possible, pipes will be used instead of the TCP/IP + * protocol. + *

      + * @param string $username [optional]

      + * The MySQL user name. + *

      + * @param string $password [optional]

      + * If provided or null, the MySQL server will attempt to authenticate + * the user against those user records which have no password only. This + * allows one username to be used with different permissions (depending + * on if a password as provided or not). + *

      + * @param string $database [optional]

      + * If provided will specify the default database to be used when + * performing queries. + *

      + * @param int $port [optional]

      + * Specifies the port number to attempt to connect to the MySQL server. + *

      + * @param string $socket [optional]

      + * Specifies the socket or named pipe that should be used. + *

      + *

      + * Specifying the socket parameter will not + * explicitly determine the type of connection to be used when + * connecting to the MySQL server. How the connection is made to the + * MySQL database is determined by the host + * parameter. + *

      + * @param int $flags [optional]

      + * With the parameter flags you can set different + * connection options: + *

      + * + * Supported flags + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      NameDescription
      MYSQLI_CLIENT_COMPRESSUse compression protocol
      MYSQLI_CLIENT_FOUND_ROWSreturn number of matched rows, not the number of affected rows
      MYSQLI_CLIENT_IGNORE_SPACEAllow spaces after function names. Makes all function names reserved words.
      MYSQLI_CLIENT_INTERACTIVE + * Allow interactive_timeout seconds (instead of + * wait_timeout seconds) of inactivity before closing the connection + *
      MYSQLI_CLIENT_SSLUse SSL (encryption)
      + *

      + * For security reasons the MULTI_STATEMENT flag is + * not supported in PHP. If you want to execute multiple queries use the + * mysqli_multi_query function. + *

      + * @return bool true on success or false on failure. + */ + public function real_connect($hostname = null, $username = null, $password = null, $database = null, $port = null, $socket = null, $flags = null) {} + + /** + * Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection + * @link https://php.net/manual/en/mysqli.real-escape-string.php + * @param string $string

      + * The string to be escaped. + *

      + *

      + * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and + * Control-Z. + *

      + * @return string an escaped string. + */ + public function real_escape_string($string) {} + + /** + * Poll connections + * @link https://php.net/manual/en/mysqli.poll.php + * @param array &$read

      + *

      + * @param array &$error

      + *

      + * @param array &$reject

      + *

      + * @param int $seconds

      + * Number of seconds to wait, must be non-negative. + *

      + * @param int $microseconds [optional]

      + * Number of microseconds to wait, must be non-negative. + *

      + * @return int|false number of ready connections in success, false otherwise. + */ + public static function poll(array &$read, array &$error, array &$reject, $seconds, $microseconds = 0) {} + + /** + * Get result from async query + * @link https://php.net/manual/en/mysqli.reap-async-query.php + * @return mysqli_result|false mysqli_result in success, false otherwise. + */ + public function reap_async_query() {} + + /** + * Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection + * @param string $string The string to be escaped. + * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and Control-Z. + * @return string + * @link https://secure.php.net/manual/en/mysqli.real-escape-string.php + */ + public function escape_string($string) {} + + /** + * Execute an SQL query + * @link https://php.net/manual/en/mysqli.real-query.php + * @param string $query

      + * The query, as a string. + *

      + *

      + * Data inside the query should be properly escaped. + *

      + * @return bool true on success or false on failure. + */ + public function real_query($query) {} + + /** + * Execute an SQL query + * @link https://php.net/manual/en/mysqli.release-savepoint.php + * @param string $name + * @return bool Returns TRUE on success or FALSE on failure. + * @since 5.5 + */ + public function release_savepoint($name) {} + + /** + * Rolls back current transaction + * @link https://php.net/manual/en/mysqli.rollback.php + * @param int $flags [optional] A bitmask of MYSQLI_TRANS_COR_* constants. + * @param string $name [optional] If provided then ROLLBACK $name is executed. + * @return bool true on success or false on failure. + * @since 5.5 Added flags and name parameters. + */ + public function rollback($flags = 0, $name = null) {} + + /** + * Set a named transaction savepoint + * @link https://secure.php.net/manual/en/mysqli.savepoint.php + * @param string $name + * @return bool Returns TRUE on success or FALSE on failure. + * @since 5.5 + */ + public function savepoint($name) {} + + /** + * Selects the default database for database queries + * @link https://php.net/manual/en/mysqli.select-db.php + * @param string $database

      + * The database name. + *

      + * @return bool true on success or false on failure. + */ + public function select_db($database) {} + + /** + * Sets the default client character set + * @link https://php.net/manual/en/mysqli.set-charset.php + * @param string $charset

      + * The charset to be set as default. + *

      + * @return bool true on success or false on failure..5 + */ + public function set_charset($charset) {} + + /** + * @link https://php.net/manual/en/function.mysqli-set-opt + * @param int $option + * @param mixed $value + */ + public function set_opt($option, $value) {} + + /** + * Used for establishing secure connections using SSL + * @link https://secure.php.net/manual/en/mysqli.ssl-set.php + * @param string $key

      + * The path name to the key file. + *

      + * @param string $certificate

      + * The path name to the certificate file. + *

      + * @param string $ca_certificate

      + * The path name to the certificate authority file. + *

      + * @param string $ca_path

      + * The pathname to a directory that contains trusted SSL CA certificates in PEM format. + *

      + * @param string $cipher_algos

      + * A list of allowable ciphers to use for SSL encryption. + *

      + * @return bool This function always returns TRUE value. + */ + public function ssl_set($key, $certificate, $ca_certificate, $ca_path, $cipher_algos) {} + + /** + * Gets the current system status + * @link https://php.net/manual/en/mysqli.stat.php + * @return string|false A string describing the server status. false if an error occurred. + */ + public function stat() {} + + /** + * Initializes a statement and returns an object for use with mysqli_stmt_prepare + * @link https://php.net/manual/en/mysqli.stmt-init.php + * @return mysqli_stmt an object. + */ + public function stmt_init() {} + + /** + * Transfers a result set from the last query + * @link https://php.net/manual/en/mysqli.store-result.php + * @param int $mode [optional] The option that you want to set + * @return mysqli_result|false a buffered result object or false if an error occurred. + *

      + *

      + * mysqli_store_result returns false in case the query + * didn't return a result set (if the query was, for example an INSERT + * statement). This function also returns false if the reading of the + * result set failed. You can check if you have got an error by checking + * if mysqli_error doesn't return an empty string, if + * mysqli_errno returns a non zero value, or if + * mysqli_field_count returns a non zero value. + * Also possible reason for this function returning false after + * successful call to mysqli_query can be too large + * result set (memory for it cannot be allocated). If + * mysqli_field_count returns a non-zero value, the + * statement should have produced a non-empty result set. + */ + public function store_result($mode = null) {} + + /** + * Returns whether thread safety is given or not + * @link https://php.net/manual/en/mysqli.thread-safe.php + * @return bool true if the client library is thread-safe, otherwise false. + */ + public function thread_safe() {} + + /** + * Initiate a result set retrieval + * @link https://php.net/manual/en/mysqli.use-result.php + * @return mysqli_result|false an unbuffered result object or false if an error occurred. + */ + public function use_result() {} + + /** + * @link https://php.net/manual/en/mysqli.refresh + * @param int $flags MYSQLI_REFRESH_* + * @return bool TRUE if the refresh was a success, otherwise FALSE + * @since 5.3 + */ + public function refresh($flags) {} +} + +/** + * Represents one or more MySQL warnings. + * @link https://php.net/manual/en/class.mysqli-warning.php + */ +final class mysqli_warning +{ + /** * @var string - */ - protected $sqlstate; + */ + public $message; + /** + * @var string + */ + public $sqlstate; + /** + * @var int + */ + public $errno; + + /** + * The __construct purpose + * @link https://php.net/manual/en/mysqli-warning.construct.php + */ + private function __construct() {} + + /** + * Move to the next warning + * @link https://php.net/manual/en/mysqli-warning.next.php + * @return bool True if it successfully moved to the next warning + */ + public function next() {} +} + +/** + * Represents the result set obtained from a query against the database. + * Implements Traversable since 5.4 + * @link https://php.net/manual/en/class.mysqli-result.php + */ +class mysqli_result implements IteratorAggregate +{ + /** + * @var int + */ + public $current_field; + /** + * @var int + */ + public $field_count; + /** + * @var array + */ + public $lengths; + /** + * @var int + */ + public $num_rows; + /** + * @var mixed + */ + public $type; + + /** + * Constructor (no docs available) + * @param object $mysql [optional] + * @param int $result_mode [optional] + */ + public function __construct($mysql = null, $result_mode = 0) {} + + /** + * Frees the memory associated with a result + * @return void + * @link https://php.net/manual/en/mysqli-result.free.php + */ + public function close() {} + + /** + * Frees the memory associated with a result + * @link https://php.net/manual/en/mysqli-result.free.php + * @return void + */ + public function free() {} + + /** + * Adjusts the result pointer to an arbitrary row in the result + * @link https://php.net/manual/en/mysqli-result.data-seek.php + * @param int $offset

      + * The field offset. Must be between zero and the total number of rows + * minus one (0..mysqli_num_rows - 1). + *

      + * @return bool true on success or false on failure. + */ + public function data_seek($offset) {} + + /** + * Returns the next field in the result set + * @link https://php.net/manual/en/mysqli-result.fetch-field.php + * @return object|false an object which contains field definition information or false + * if no field information is available. + *

      + *

      + * + * Object properties + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PropertyDescription
      nameThe name of the column
      orgnameOriginal column name if an alias was specified
      tableThe name of the table this field belongs to (if not calculated)
      orgtableOriginal table name if an alias was specified
      defReserved for default value, currently always ""
      dbDatabase (since PHP 5.3.6)
      catalogThe catalog name, always "def" (since PHP 5.3.6)
      max_lengthThe maximum width of the field for the result set.
      lengthThe width of the field, as specified in the table definition.
      charsetnrThe character set number for the field.
      flagsAn integer representing the bit-flags for the field.
      typeThe data type used for this field
      decimalsThe number of decimals used (for integer fields)
      + */ + public function fetch_field() {} /** - * The error code - * - * @var int + * Returns an array of objects representing the fields in a result set + * @link https://php.net/manual/en/mysqli-result.fetch-fields.php + * @return array|false an array of objects which contains field definition information or + * false if no field information is available. + *

      + *

      + * + * Object properties + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PropertyDescription
      nameThe name of the column
      orgnameOriginal column name if an alias was specified
      tableThe name of the table this field belongs to (if not calculated)
      orgtableOriginal table name if an alias was specified
      defThe default value for this field, represented as a string
      max_lengthThe maximum width of the field for the result set.
      lengthThe width of the field, as specified in the table definition.
      charsetnrThe character set number for the field.
      flagsAn integer representing the bit-flags for the field.
      typeThe data type used for this field
      decimalsThe number of decimals used (for integer fields)
      */ - protected $code; -} + public function fetch_fields() {} -/** - * MySQLi Driver. - * @link https://php.net/manual/en/class.mysqli-driver.php - */ -final class mysqli_driver { - /** - * @var string - */ - public $client_info; - /** - * @var string - */ - public $client_version; - /** - * @var string - */ - public $driver_version; - /** - * @var string - */ - public $embedded; - /** - * @var bool - */ - public $reconnect; - /** - * @var int - */ - public $report_mode; + /** + * Fetch meta-data for a single field + * @link https://php.net/manual/en/mysqli-result.fetch-field-direct.php + * @param int $index

      + * The field number. This value must be in the range from + * 0 to number of fields - 1. + *

      + * @return object|false an object which contains field definition information or false + * if no field information for specified fieldnr is + * available. + *

      + *

      + * + * Object attributes + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      AttributeDescription
      nameThe name of the column
      orgnameOriginal column name if an alias was specified
      tableThe name of the table this field belongs to (if not calculated)
      orgtableOriginal table name if an alias was specified
      defThe default value for this field, represented as a string
      max_lengthThe maximum width of the field for the result set.
      lengthThe width of the field, as specified in the table definition.
      charsetnrThe character set number for the field.
      flagsAn integer representing the bit-flags for the field.
      typeThe data type used for this field
      decimalsThe number of decimals used (for integer fields)
      + */ + public function fetch_field_direct($index) {} + + /** + * Fetches all result rows as an associative array, a numeric array, or both + * @link https://php.net/manual/en/mysqli-result.fetch-all.php + * @param int $mode [optional]

      + * This optional parameter is a constant indicating what type of array + * should be produced from the current row data. The possible values for + * this parameter are the constants MYSQLI_ASSOC, + * MYSQLI_NUM, or MYSQLI_BOTH. + *

      + * @return mixed an array of associative or numeric arrays holding result rows. + */ + public function fetch_all($mode = MYSQLI_NUM) {} + + /** + * Fetch a result row as an associative, a numeric array, or both + * @link https://php.net/manual/en/mysqli-result.fetch-array.php + * @param int $mode [optional]

      + * This optional parameter is a constant indicating what type of array + * should be produced from the current row data. The possible values for + * this parameter are the constants MYSQLI_ASSOC, + * MYSQLI_NUM, or MYSQLI_BOTH. + *

      + *

      + * By using the MYSQLI_ASSOC constant this function + * will behave identically to the mysqli_fetch_assoc, + * while MYSQLI_NUM will behave identically to the + * mysqli_fetch_row function. The final option + * MYSQLI_BOTH will create a single array with the + * attributes of both. + *

      + * @return mixed an array of strings that corresponds to the fetched row or null if there + * are no more rows in resultset. + */ + public function fetch_array($mode = MYSQLI_BOTH) {} + + /** + * Fetch a result row as an associative array + * @link https://php.net/manual/en/mysqli-result.fetch-assoc.php + * @return array|null an associative array of strings representing the fetched row in the result + * set, where each key in the array represents the name of one of the result + * set's columns or null if there are no more rows in resultset. + *

      + *

      + * If two or more columns of the result have the same field names, the last + * column will take precedence. To access the other column(s) of the same + * name, you either need to access the result with numeric indices by using + * mysqli_fetch_row or add alias names. + */ + public function fetch_assoc() {} + + /** + * Returns the current row of a result set as an object + * @link https://php.net/manual/en/mysqli-result.fetch-object.php + * @param string $class [optional]

      + * The name of the class to instantiate, set the properties of and return. + * If not specified, a stdClass object is returned. + *

      + * @param null|array $constructor_args [optional]

      + * An optional array of parameters to pass to the constructor + * for class_name objects. + *

      + * @return stdClass|object an object with string properties that corresponds to the fetched + * row or null if there are no more rows in resultset. + */ + public function fetch_object($class = 'stdClass', array $constructor_args = null) {} + + /** + * Get a result row as an enumerated array + * @link https://php.net/manual/en/mysqli-result.fetch-row.php + * @return array|null mysqli_fetch_row returns an array of strings that corresponds to the fetched row + * or null if there are no more rows in result set. + */ + public function fetch_row() {} + + /** + * Set result pointer to a specified field offset + * @link https://php.net/manual/en/mysqli-result.field-seek.php + * @param int $index

      + * The field number. This value must be in the range from + * 0 to number of fields - 1. + *

      + * @return bool true on success or false on failure. + */ + public function field_seek($index) {} + + /** + * Frees the memory associated with a result + * @return void + * @link https://php.net/manual/en/mysqli-result.free.php + */ + public function free_result() {} + /** + * @since 8.0 + * @return Traversable + */ + public function getIterator() {} } /** - * Represents a connection between PHP and a MySQL database. - * @link https://php.net/manual/en/class.mysqli.php + * Represents a prepared statement. + * @link https://php.net/manual/en/class.mysqli-stmt.php */ -class mysqli { - /** - * @var int - */ - public $affected_rows; - /** - * @var string - */ - public $client_info; - /** - * @var int - */ - public $client_version; - /** - * @var int - */ - public $connect_errno; - /** - * @var string - */ - public $connect_error; - /** - * @var int - */ - public $errno; - /** - * @var string - */ - public $error; - /** - * @var int - */ - public $field_count; - /** - * @var string - */ - public $host_info; - /** - * @var string - */ - public $info; - /** - * @var int|string - */ - public $insert_id; - /** - * @var string - */ - public $server_info; - /** - * @var int - */ - public $server_version; - /** - * @var string - */ - public $sqlstate; - /** - * @var string - */ - public $protocol_version; - /** - * @var int - */ - public $thread_id; - /** - * @var int - */ - public $warning_count; - +class mysqli_stmt +{ /** - * @var array A list of errors, each as an associative array containing the errno, error, and sqlstate. - * @link https://secure.php.net/manual/en/mysqli.error-list.php + * @var int + */ + public $affected_rows; + /** + * @var int + */ + public $insert_id; + /** + * @var int + */ + public $num_rows; + /** + * @var int + */ + public $param_count; + /** + * @var int + */ + public $field_count; + /** + * @var int + */ + public $errno; + /** + * @var string + */ + public $error; + /** + * @var array */ public $error_list; + /** + * @var string + */ + public $sqlstate; + /** + * @var string + */ + public $id; - - /** - * Open a new connection to the MySQL server - * @link https://php.net/manual/en/mysqli.construct.php - * @param string $hostname [optional] Can be either a host name or an IP address. Passing the NULL value or the string "localhost" to this parameter, the local host is assumed. When possible, pipes will be used instead of the TCP/IP protocol. Prepending host by p: opens a persistent connection. mysqli_change_user() is automatically called on connections opened from the connection pool. Defaults to ini_get("mysqli.default_host") - * @param string $username [optional] The MySQL user name. Defaults to ini_get("mysqli.default_user") - * @param string $password [optional] If not provided or NULL, the MySQL server will attempt to authenticate the user against those user records which have no password only. This allows one username to be used with different permissions (depending on if a password as provided or not). Defaults to ini_get("mysqli.default_pw") - * @param string $database [optional] If provided will specify the default database to be used when performing queries. Defaults to "" - * @param int $port [optional] Specifies the port number to attempt to connect to the MySQL server. Defaults to ini_get("mysqli.default_port") - * @param string $socket [optional] Specifies the socket or named pipe that should be used. Defaults to ini_get("mysqli.default_socket") - */ - public function __construct ( - $hostname = null, - $username = null, - $password = null, - $database = null, - $port = null, - $socket = null - ) {} - - /** - * Turns on or off auto-committing database modifications - * @link https://php.net/manual/en/mysqli.autocommit.php - * @param bool $enable

      - * Whether to turn on auto-commit or not. - *

      - * @return bool true on success or false on failure. - */ - public function autocommit ($enable) {} + /** + * mysqli_stmt constructor + * @param mysqli $mysql + * @param string $query [optional] + */ + public function __construct($mysql, $query) {} /** - * Starts a transaction - * @link https://secure.php.net/manual/en/mysqli.begin-transaction.php - * @param int $flags [optional] - * @param string $name [optional] - * @return bool true on success or false on failure. - * @since 5.5 + * Used to get the current value of a statement attribute + * @link https://php.net/manual/en/mysqli-stmt.attr-get.php + * @param int $attribute

      + * The attribute that you want to get. + *

      + * @return int|false false if the attribute is not found, otherwise returns the value of the attribute. */ - public function begin_transaction ($flags = 0, $name = null) {} - - /** - * Changes the user of the specified database connection - * @link https://php.net/manual/en/mysqli.change-user.php - * @param string $username

      - * The MySQL user name. - *

      - * @param string $password

      - * The MySQL password. - *

      - * @param string $database

      - * The database to change to. - *

      - *

      - * If desired, the null value may be passed resulting in only changing - * the user and not selecting a database. To select a database in this - * case use the mysqli_select_db function. - *

      - * @return bool true on success or false on failure. - */ - public function change_user ($username, $password, $database) {} - - /** - * Returns the default character set for the database connection - * @link https://php.net/manual/en/mysqli.character-set-name.php - * @return string The default character set for the current connection - */ - public function character_set_name () {} - - /** - * @removed 5.4 - */ - #[Deprecated(since: '5.3')] - public function client_encoding () {} - - /** - * Closes a previously opened database connection - * @link https://php.net/manual/en/mysqli.close.php - * @return bool true on success or false on failure. - */ - public function close () {} - - /** - * Commits the current transaction - * @link https://php.net/manual/en/mysqli.commit.php - * @param int $flags A bitmask of MYSQLI_TRANS_COR_* constants. - * @param string $name If provided then COMMIT $name is executed. - * @return bool true on success or false on failure. - */ - public function commit ($flags = -1, $name = null) {} - - /** - * @link https://php.net/manual/en/function.mysqli-connect.php - * @param string $hostname [optional] - * @param string $username [optional] - * @param string $password [optional] - * @param string $database [optional] - * @param int $port [optional] - * @param string $socket [optional] - */ - public function connect ($hostname = null, $username = null, $password = null, $database = null, $port = null, $socket = null) {} - - /** - * Dump debugging information into the log - * @link https://php.net/manual/en/mysqli.dump-debug-info.php - * @return bool true on success or false on failure. - */ - public function dump_debug_info () {} - - /** - * Performs debugging operations - * @link https://php.net/manual/en/mysqli.debug.php - * @param string $options

      - * A string representing the debugging operation to perform - *

      - * @return bool true. - */ - public function debug ($options) {} - - /** - * Returns a character set object - * @link https://php.net/manual/en/mysqli.get-charset.php - * @return object The function returns a character set object with the following properties: - * charset - *

      Character set name

      - * collation - *

      Collation name

      - * dir - *

      Directory the charset description was fetched from (?) or "" for built-in character sets

      - * min_length - *

      Minimum character length in bytes

      - * max_length - *

      Maximum character length in bytes

      - * number - *

      Internal character set number

      - * state - *

      Character set status (?)

      - */ - public function get_charset () {} - - /** - * Returns the MySQL client version as a string - * @link https://php.net/manual/en/mysqli.get-client-info.php - * @return string A string that represents the MySQL client library version - */ - public function get_client_info () {} - - /** - * Returns statistics about the client connection - * @link https://php.net/manual/en/mysqli.get-connection-stats.php - * @return array|false an array with connection stats if success, false otherwise. - */ - public function get_connection_stats () {} - - /** - * An undocumented function equivalent to the $server_info property - * @link https://php.net/manual/en/mysqli.get-server-info.php - * @return string A character string representing the server version. - */ - public function get_server_info () {} - - /** - * Get result of SHOW WARNINGS - * @link https://php.net/manual/en/mysqli.get-warnings.php - * @return mysqli_warning - */ - public function get_warnings () {} - - /** - * Initializes MySQLi and returns a resource for use with mysqli_real_connect() - * @link https://php.net/manual/en/mysqli.init.php - * @return mysqli an object. - */ - public function init () {} - - /** - * Asks the server to kill a MySQL thread - * @link https://php.net/manual/en/mysqli.kill.php - * @param int $process_id - * @return bool true on success or false on failure. - */ - public function kill ($process_id) {} - - /** - * Performs a query on the database - * @link https://php.net/manual/en/mysqli.multi-query.php - * @param string $query

      - * The query, as a string. - *

      - *

      - * Data inside the query should be properly escaped. - *

      - * @return bool false if the first statement failed. - * To retrieve subsequent errors from other statements you have to call - * mysqli_next_result first. - */ - public function multi_query ($query) {} - - /** - * @link https://php.net/manual/en/mysqli.construct.php - * @param string $host [optional] - * @param string $username [optional] - * @param string $password [optional] - * @param string $database [optional] - * @param int $port [optional] - * @param string $socket [optional] - * - * @removed 8.0 - */ - public function mysqli ($host = null, $username = null, $password = null, $database = null, $port = null, $socket = null) {} - - /** - * Check if there are any more query results from a multi query - * @link https://php.net/manual/en/mysqli.more-results.php - * @return bool true on success or false on failure. - */ - public function more_results () {} - - /** - * Prepare next result from multi_query - * @link https://php.net/manual/en/mysqli.next-result.php - * @return bool true on success or false on failure. - */ - public function next_result () {} - - /** - * Set options - * @link https://php.net/manual/en/mysqli.options.php - * @param int $option

      - * The option that you want to set. It can be one of the following values: - * - * Valid options - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * + public function attr_get($attribute) {} + + /** + * Used to modify the behavior of a prepared statement + * @link https://php.net/manual/en/mysqli-stmt.attr-set.php + * @param int $attribute

      + * The attribute that you want to set. It can have one of the following values: + *

      NameDescription
      MYSQLI_OPT_CONNECT_TIMEOUTconnection timeout in seconds (supported on Windows with TCP/IP since PHP 5.3.1)
      MYSQLI_OPT_LOCAL_INFILEenable/disable use of LOAD LOCAL INFILE
      MYSQLI_INIT_COMMANDcommand to execute after when connecting to MySQL server
      MYSQLI_READ_DEFAULT_FILE - * Read options from named option file instead of my.cnf - *
      MYSQLI_READ_DEFAULT_GROUP - * Read options from the named group from my.cnf - * or the file specified with MYSQL_READ_DEFAULT_FILE - *
      + * Attribute values * - * + * + * + * + * + * * + * + * + * + * + * + * + * + * * - *
      MYSQLI_SERVER_PUBLIC_KEYCharacterDescription
      MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH - * RSA public key file used with the SHA-256 based authentication. + * If set to 1, causes mysqli_stmt_store_result to + * update the metadata MYSQL_FIELD->max_length value. + *
      MYSQLI_STMT_ATTR_CURSOR_TYPE + * Type of cursor to open for statement when mysqli_stmt_execute + * is invoked. mode can be MYSQLI_CURSOR_TYPE_NO_CURSOR + * (the default) or MYSQLI_CURSOR_TYPE_READ_ONLY. + *
      MYSQLI_STMT_ATTR_PREFETCH_ROWS + * Number of rows to fetch from server at a time when using a cursor. + * mode can be in the range from 1 to the maximum + * value of unsigned long. The default is 1. *
      - *

      - * @param mixed $value

      - * The value for the option. - *

      - * @return bool true on success or false on failure. - */ - public function options ($option, $value) {} - - /** - * Pings a server connection, or tries to reconnect if the connection has gone down - * @link https://php.net/manual/en/mysqli.ping.php - * @return bool true on success or false on failure. - */ - public function ping () {} - - /** - * Prepare an SQL statement for execution - * @link https://php.net/manual/en/mysqli.prepare.php - * @param string $query

      - * The query, as a string. - *

      - *

      - * You should not add a terminating semicolon or \g - * to the statement. - *

      - *

      - * This parameter can include one or more parameter markers in the SQL - * statement by embedding question mark (?) characters - * at the appropriate positions. - *

      - *

      - * The markers are legal only in certain places in SQL statements. - * For example, they are allowed in the VALUES() - * list of an INSERT statement (to specify column - * values for a row), or in a comparison with a column in a - * WHERE clause to specify a comparison value. - *

      - *

      - * However, they are not allowed for identifiers (such as table or - * column names), in the select list that names the columns to be - * returned by a SELECT statement, or to specify both - * operands of a binary operator such as the = equal - * sign. The latter restriction is necessary because it would be - * impossible to determine the parameter type. It's not allowed to - * compare marker with NULL by - * ? IS NULL too. In general, parameters are legal - * only in Data Manipulation Language (DML) statements, and not in Data - * Definition Language (DDL) statements. - *

      - * @return mysqli_stmt|false mysqli_prepare returns a statement object or false if an error occurred. - */ - public function prepare ($query) {} - - /** - * Performs a query on the database - * @link https://php.net/manual/en/mysqli.query.php - * @param string $query

      - * The query string. - *

      - *

      - * Data inside the query should be properly escaped. - *

      - * @param int $result_mode [optional]

      - * Either the constant MYSQLI_USE_RESULT or - * MYSQLI_STORE_RESULT depending on the desired - * behavior. By default, MYSQLI_STORE_RESULT is used. - *

      - *

      - * If you use MYSQLI_USE_RESULT all subsequent calls - * will return error Commands out of sync unless you - * call mysqli_free_result - *

      - *

      - * With MYSQLI_ASYNC (available with mysqlnd), it is - * possible to perform query asynchronously. - * mysqli_poll is then used to get results from such - * queries. - *

      - * @return mysqli_result|bool For successful SELECT, SHOW, DESCRIBE or - * EXPLAIN queries mysqli_query will return - * a mysqli_result object. For other successful queries mysqli_query will - * return true and false on failure. - */ - public function query ($query, $result_mode = MYSQLI_STORE_RESULT) {} - - /** - * Opens a connection to a mysql server - * @link https://php.net/manual/en/mysqli.real-connect.php - * @param string $hostname [optional]

      - * Can be either a host name or an IP address. Passing the null value - * or the string "localhost" to this parameter, the local host is - * assumed. When possible, pipes will be used instead of the TCP/IP - * protocol. - *

      - * @param string $username [optional]

      - * The MySQL user name. - *

      - * @param string $password [optional]

      - * If provided or null, the MySQL server will attempt to authenticate - * the user against those user records which have no password only. This - * allows one username to be used with different permissions (depending - * on if a password as provided or not). - *

      - * @param string $database [optional]

      - * If provided will specify the default database to be used when - * performing queries. - *

      - * @param int $port [optional]

      - * Specifies the port number to attempt to connect to the MySQL server. - *

      - * @param string $socket [optional]

      - * Specifies the socket or named pipe that should be used. - *

      - *

      - * Specifying the socket parameter will not - * explicitly determine the type of connection to be used when - * connecting to the MySQL server. How the connection is made to the - * MySQL database is determined by the host - * parameter. - *

      - * @param int $flags [optional]

      - * With the parameter flags you can set different - * connection options: - *

      - * - * Supported flags - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
      NameDescription
      MYSQLI_CLIENT_COMPRESSUse compression protocol
      MYSQLI_CLIENT_FOUND_ROWSreturn number of matched rows, not the number of affected rows
      MYSQLI_CLIENT_IGNORE_SPACEAllow spaces after function names. Makes all function names reserved words.
      MYSQLI_CLIENT_INTERACTIVE - * Allow interactive_timeout seconds (instead of - * wait_timeout seconds) of inactivity before closing the connection - *
      MYSQLI_CLIENT_SSLUse SSL (encryption)
      - *

      - * For security reasons the MULTI_STATEMENT flag is - * not supported in PHP. If you want to execute multiple queries use the - * mysqli_multi_query function. - *

      - * @return bool true on success or false on failure. - */ - public function real_connect ($hostname = null, $username = null, $password = null, $database = null, $port = null, $socket = null, $flags = null) {} - - /** - * Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection - * @link https://php.net/manual/en/mysqli.real-escape-string.php - * @param string $string

      - * The string to be escaped. - *

      - *

      - * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and - * Control-Z. - *

      - * @return string an escaped string. - */ - public function real_escape_string ($string) {} - - /** - * Poll connections - * @link https://php.net/manual/en/mysqli.poll.php - * @param array &$read

      - *

      - * @param array &$error

      - *

      - * @param array &$reject

      - *

      - * @param int $seconds

      - * Number of seconds to wait, must be non-negative. - *

      - * @param int $microseconds [optional]

      - * Number of microseconds to wait, must be non-negative. - *

      - * @return int|false number of ready connections in success, false otherwise. - */ - public static function poll (array &$read , array &$error , array &$reject , $seconds, $microseconds = 0) {} - - /** - * Get result from async query - * @link https://php.net/manual/en/mysqli.reap-async-query.php - * @return mysqli_result|false mysqli_result in success, false otherwise. - */ - public function reap_async_query () {} - - /** - * Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection - * @param string $string The string to be escaped. - * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and Control-Z. - * @return string - * @link https://secure.php.net/manual/en/mysqli.real-escape-string.php - */ - public function escape_string ($string) {} - - /** - * Execute an SQL query - * @link https://php.net/manual/en/mysqli.real-query.php - * @param string $query

      - * The query, as a string. - *

      - *

      - * Data inside the query should be properly escaped. - *

      - * @return bool true on success or false on failure. - */ - public function real_query ($query) {} + * + *

      + *

      + * If you use the MYSQLI_STMT_ATTR_CURSOR_TYPE option with + * MYSQLI_CURSOR_TYPE_READ_ONLY, a cursor is opened for the + * statement when you invoke mysqli_stmt_execute. If there + * is already an open cursor from a previous mysqli_stmt_execute call, + * it closes the cursor before opening a new one. mysqli_stmt_reset + * also closes any open cursor before preparing the statement for re-execution. + * mysqli_stmt_free_result closes any open cursor. + *

      + *

      + * If you open a cursor for a prepared statement, mysqli_stmt_store_result + * is unnecessary. + *

      + * @param int $value

      The value to assign to the attribute.

      + * @return bool + */ + public function attr_set($attribute, $value) {} /** - * Execute an SQL query - * @link https://php.net/manual/en/mysqli.release-savepoint.php - * @param string $name - * @return bool Returns TRUE on success or FALSE on failure. - * @since 5.5 + * Binds variables to a prepared statement as parameters + * @link https://php.net/manual/en/mysqli-stmt.bind-param.php + * @param string $types

      + * A string that contains one or more characters which specify the types + * for the corresponding bind variables: + * + * Type specification chars + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      CharacterDescription
      icorresponding variable has type integer
      dcorresponding variable has type double
      scorresponding variable has type string
      bcorresponding variable is a blob and will be sent in packets
      + *

      + * @param mixed &$var1

      + * The number of variables and length of string + * types must match the parameters in the statement. + *

      + * @param mixed &...$_ [optional] + * @return bool true on success or false on failure. */ - public function release_savepoint ($name) {} + public function bind_param($types, &$var1, &...$_) {} - /** - * Rolls back current transaction - * @link https://php.net/manual/en/mysqli.rollback.php - * @param int $flags [optional] A bitmask of MYSQLI_TRANS_COR_* constants. - * @param string $name [optional] If provided then ROLLBACK $name is executed. - * @return bool true on success or false on failure. - * @since 5.5 Added flags and name parameters. - */ - public function rollback ($flags = 0, $name = null) {} + /** + * Binds variables to a prepared statement for result storage + * @link https://php.net/manual/en/mysqli-stmt.bind-result.php + * @param mixed &$var1 The variable to be bound. + * @param mixed &...$_ The variables to be bound. + * @return bool true on success or false on failure. + */ + public function bind_result(&$var1, &...$_) {} /** - * Set a named transaction savepoint - * @link https://secure.php.net/manual/en/mysqli.savepoint.php - * @param string $name - * @return bool Returns TRUE on success or FALSE on failure. - * @since 5.5 + * Closes a prepared statement + * @link https://php.net/manual/en/mysqli-stmt.close.php + * @return bool true on success or false on failure. */ - public function savepoint ($name) {} - - /** - * Selects the default database for database queries - * @link https://php.net/manual/en/mysqli.select-db.php - * @param string $database

      - * The database name. - *

      - * @return bool true on success or false on failure. - */ - public function select_db ($database) {} - - /** - * Sets the default client character set - * @link https://php.net/manual/en/mysqli.set-charset.php - * @param string $charset

      - * The charset to be set as default. - *

      - * @return bool true on success or false on failure..5 - */ - public function set_charset ($charset) {} - - /** - * @link https://php.net/manual/en/function.mysqli-set-opt - * @param int $option - * @param mixed $value - */ - public function set_opt ($option, $value) {} - - - /** - * Used for establishing secure connections using SSL - * @link https://secure.php.net/manual/en/mysqli.ssl-set.php - * @param string $key

      - * The path name to the key file. - *

      - * @param string $certificate

      - * The path name to the certificate file. - *

      - * @param string $ca_certificate

      - * The path name to the certificate authority file. - *

      - * @param string $ca_path

      - * The pathname to a directory that contains trusted SSL CA certificates in PEM format. - *

      - * @param string $cipher_algos

      - * A list of allowable ciphers to use for SSL encryption. - *

      - * @return bool This function always returns TRUE value. - */ - public function ssl_set($key , $certificate , $ca_certificate , $ca_path , $cipher_algos) {} - - /** - * Gets the current system status - * @link https://php.net/manual/en/mysqli.stat.php - * @return string|false A string describing the server status. false if an error occurred. - */ - public function stat () {} - - /** - * Initializes a statement and returns an object for use with mysqli_stmt_prepare - * @link https://php.net/manual/en/mysqli.stmt-init.php - * @return mysqli_stmt an object. - */ - public function stmt_init () {} - - /** - * Transfers a result set from the last query - * @link https://php.net/manual/en/mysqli.store-result.php - * @param int $mode [optional] The option that you want to set - * @return mysqli_result|false a buffered result object or false if an error occurred. - *

      - *

      - * mysqli_store_result returns false in case the query - * didn't return a result set (if the query was, for example an INSERT - * statement). This function also returns false if the reading of the - * result set failed. You can check if you have got an error by checking - * if mysqli_error doesn't return an empty string, if - * mysqli_errno returns a non zero value, or if - * mysqli_field_count returns a non zero value. - * Also possible reason for this function returning false after - * successful call to mysqli_query can be too large - * result set (memory for it cannot be allocated). If - * mysqli_field_count returns a non-zero value, the - * statement should have produced a non-empty result set. - */ - public function store_result ($mode = null) {} - - /** - * Returns whether thread safety is given or not - * @link https://php.net/manual/en/mysqli.thread-safe.php - * @return bool true if the client library is thread-safe, otherwise false. - */ - public function thread_safe () {} - - /** - * Initiate a result set retrieval - * @link https://php.net/manual/en/mysqli.use-result.php - * @return mysqli_result|false an unbuffered result object or false if an error occurred. - */ - public function use_result () {} - - /** - * @link https://php.net/manual/en/mysqli.refresh - * @param int $flags MYSQLI_REFRESH_* - * @return bool TRUE if the refresh was a success, otherwise FALSE - * @since 5.3 - */ - public function refresh ($flags) {} + public function close() {} -} + /** + * Seeks to an arbitrary row in statement result set + * @link https://php.net/manual/en/mysqli-stmt.data-seek.php + * @param int $offset

      + * Must be between zero and the total number of rows minus one (0.. + * mysqli_stmt_num_rows - 1). + *

      + * @return void + */ + public function data_seek($offset) {} -/** - * Represents one or more MySQL warnings. - * @link https://php.net/manual/en/class.mysqli-warning.php - */ -final class mysqli_warning { - /** - * @var string - */ - public $message; - /** - * @var string - */ - public $sqlstate; - /** - * @var int - */ - public $errno; - - - /** - * The __construct purpose - * @link https://php.net/manual/en/mysqli-warning.construct.php - */ - private function __construct () {} - - /** - * Move to the next warning - * @link https://php.net/manual/en/mysqli-warning.next.php - * @return bool True if it successfully moved to the next warning - */ - public function next () {} + /** + * Executes a prepared Query + * @link https://php.net/manual/en/mysqli-stmt.execute.php + * @return bool true on success or false on failure. + */ + public function execute() {} -} + /** + * Fetch results from a prepared statement into the bound variables + * @link https://php.net/manual/en/mysqli-stmt.fetch.php + * @return bool|null + */ + public function fetch() {} -/** - * Represents the result set obtained from a query against the database. - * Implements Traversable since 5.4 - * @link https://php.net/manual/en/class.mysqli-result.php - */ -class mysqli_result implements IteratorAggregate -{ - /** - * @var int - */ - public $current_field; - /** - * @var int - */ - public $field_count; - /** - * @var array - */ - public $lengths; - /** - * @var int - */ - public $num_rows; - /** - * @var mixed - */ - public $type; - - /** - * Constructor (no docs available) - * @param object $mysql [optional] - * @param int $result_mode [optional] - */ - public function __construct ($mysql = null, $result_mode = 0) {} - - /** - * Frees the memory associated with a result - * @return void - * @link https://php.net/manual/en/mysqli-result.free.php - */ - public function close () {} - - /** - * Frees the memory associated with a result - * @link https://php.net/manual/en/mysqli-result.free.php - * @return void - */ - public function free () {} - - /** - * Adjusts the result pointer to an arbitrary row in the result - * @link https://php.net/manual/en/mysqli-result.data-seek.php - * @param int $offset

      - * The field offset. Must be between zero and the total number of rows - * minus one (0..mysqli_num_rows - 1). - *

      - * @return bool true on success or false on failure. - */ - public function data_seek ($offset) {} - - /** - * Returns the next field in the result set - * @link https://php.net/manual/en/mysqli-result.fetch-field.php - * @return object|false an object which contains field definition information or false - * if no field information is available. - *

      - *

      - * - * Object properties - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
      PropertyDescription
      nameThe name of the column
      orgnameOriginal column name if an alias was specified
      tableThe name of the table this field belongs to (if not calculated)
      orgtableOriginal table name if an alias was specified
      defReserved for default value, currently always ""
      dbDatabase (since PHP 5.3.6)
      catalogThe catalog name, always "def" (since PHP 5.3.6)
      max_lengthThe maximum width of the field for the result set.
      lengthThe width of the field, as specified in the table definition.
      charsetnrThe character set number for the field.
      flagsAn integer representing the bit-flags for the field.
      typeThe data type used for this field
      decimalsThe number of decimals used (for integer fields)
      - */ - public function fetch_field () {} - - /** - * Returns an array of objects representing the fields in a result set - * @link https://php.net/manual/en/mysqli-result.fetch-fields.php - * @return array|false an array of objects which contains field definition information or - * false if no field information is available. - *

      - *

      - * - * Object properties - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
      PropertyDescription
      nameThe name of the column
      orgnameOriginal column name if an alias was specified
      tableThe name of the table this field belongs to (if not calculated)
      orgtableOriginal table name if an alias was specified
      defThe default value for this field, represented as a string
      max_lengthThe maximum width of the field for the result set.
      lengthThe width of the field, as specified in the table definition.
      charsetnrThe character set number for the field.
      flagsAn integer representing the bit-flags for the field.
      typeThe data type used for this field
      decimalsThe number of decimals used (for integer fields)
      - */ - public function fetch_fields () {} - - /** - * Fetch meta-data for a single field - * @link https://php.net/manual/en/mysqli-result.fetch-field-direct.php - * @param int $index

      - * The field number. This value must be in the range from - * 0 to number of fields - 1. - *

      - * @return object|false an object which contains field definition information or false - * if no field information for specified fieldnr is - * available. - *

      - *

      - * - * Object attributes - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
      AttributeDescription
      nameThe name of the column
      orgnameOriginal column name if an alias was specified
      tableThe name of the table this field belongs to (if not calculated)
      orgtableOriginal table name if an alias was specified
      defThe default value for this field, represented as a string
      max_lengthThe maximum width of the field for the result set.
      lengthThe width of the field, as specified in the table definition.
      charsetnrThe character set number for the field.
      flagsAn integer representing the bit-flags for the field.
      typeThe data type used for this field
      decimalsThe number of decimals used (for integer fields)
      - */ - public function fetch_field_direct ($index) {} - - /** - * Fetches all result rows as an associative array, a numeric array, or both - * @link https://php.net/manual/en/mysqli-result.fetch-all.php - * @param int $mode [optional]

      - * This optional parameter is a constant indicating what type of array - * should be produced from the current row data. The possible values for - * this parameter are the constants MYSQLI_ASSOC, - * MYSQLI_NUM, or MYSQLI_BOTH. - *

      - * @return mixed an array of associative or numeric arrays holding result rows. - */ - public function fetch_all ($mode = MYSQLI_NUM) {} - - /** - * Fetch a result row as an associative, a numeric array, or both - * @link https://php.net/manual/en/mysqli-result.fetch-array.php - * @param int $mode [optional]

      - * This optional parameter is a constant indicating what type of array - * should be produced from the current row data. The possible values for - * this parameter are the constants MYSQLI_ASSOC, - * MYSQLI_NUM, or MYSQLI_BOTH. - *

      - *

      - * By using the MYSQLI_ASSOC constant this function - * will behave identically to the mysqli_fetch_assoc, - * while MYSQLI_NUM will behave identically to the - * mysqli_fetch_row function. The final option - * MYSQLI_BOTH will create a single array with the - * attributes of both. - *

      - * @return mixed an array of strings that corresponds to the fetched row or null if there - * are no more rows in resultset. - */ - public function fetch_array ($mode = MYSQLI_BOTH) {} - - /** - * Fetch a result row as an associative array - * @link https://php.net/manual/en/mysqli-result.fetch-assoc.php - * @return array|null an associative array of strings representing the fetched row in the result - * set, where each key in the array represents the name of one of the result - * set's columns or null if there are no more rows in resultset. - *

      - *

      - * If two or more columns of the result have the same field names, the last - * column will take precedence. To access the other column(s) of the same - * name, you either need to access the result with numeric indices by using - * mysqli_fetch_row or add alias names. - */ - public function fetch_assoc () {} - - /** - * Returns the current row of a result set as an object - * @link https://php.net/manual/en/mysqli-result.fetch-object.php - * @param string $class [optional]

      - * The name of the class to instantiate, set the properties of and return. - * If not specified, a stdClass object is returned. - *

      - * @param null|array $constructor_args [optional]

      - * An optional array of parameters to pass to the constructor - * for class_name objects. - *

      - * @return stdClass|object an object with string properties that corresponds to the fetched - * row or null if there are no more rows in resultset. - */ - public function fetch_object ($class = 'stdClass', array $constructor_args = null) {} - - /** - * Get a result row as an enumerated array - * @link https://php.net/manual/en/mysqli-result.fetch-row.php - * @return array|null mysqli_fetch_row returns an array of strings that corresponds to the fetched row - * or null if there are no more rows in result set. - */ - public function fetch_row () {} - - /** - * Set result pointer to a specified field offset - * @link https://php.net/manual/en/mysqli-result.field-seek.php - * @param int $index

      - * The field number. This value must be in the range from - * 0 to number of fields - 1. - *

      - * @return bool true on success or false on failure. - */ - public function field_seek ($index) {} - - /** - * Frees the memory associated with a result - * @return void - * @link https://php.net/manual/en/mysqli-result.free.php - */ - public function free_result () {} + /** + * Get result of SHOW WARNINGS + * @link https://php.net/manual/en/mysqli-stmt.get-warnings.php + * @return object + */ + public function get_warnings() {} /** - * @since 8.0 - * @return Traversable + * Returns result set metadata from a prepared statement + * @link https://php.net/manual/en/mysqli-stmt.result-metadata.php + * @return mysqli_result|false a result object or false if an error occurred. */ - public function getIterator(){} -} + public function result_metadata() {} -/** - * Represents a prepared statement. - * @link https://php.net/manual/en/class.mysqli-stmt.php - */ -class mysqli_stmt { - /** - * @var int - */ - public $affected_rows; - /** - * @var int - */ - public $insert_id; - /** - * @var int - */ - public $num_rows; - /** - * @var int - */ - public $param_count; - /** - * @var int - */ - public $field_count; - /** - * @var int - */ - public $errno; - /** - * @var string - */ - public $error; - /** - * @var array - */ - public $error_list; - /** - * @var string - */ - public $sqlstate; - /** - * @var string - */ - public $id; - - /** - * mysqli_stmt constructor - * @param mysqli $mysql - * @param string $query [optional] - */ - public function __construct ($mysql, $query) {} - - /** - * Used to get the current value of a statement attribute - * @link https://php.net/manual/en/mysqli-stmt.attr-get.php - * @param int $attribute

      - * The attribute that you want to get. - *

      - * @return int|false false if the attribute is not found, otherwise returns the value of the attribute. - */ - public function attr_get ($attribute) {} - - /** - * Used to modify the behavior of a prepared statement - * @link https://php.net/manual/en/mysqli-stmt.attr-set.php - * @param int $attribute

      - * The attribute that you want to set. It can have one of the following values: - * - * Attribute values - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
      CharacterDescription
      MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH - * If set to 1, causes mysqli_stmt_store_result to - * update the metadata MYSQL_FIELD->max_length value. - *
      MYSQLI_STMT_ATTR_CURSOR_TYPE - * Type of cursor to open for statement when mysqli_stmt_execute - * is invoked. mode can be MYSQLI_CURSOR_TYPE_NO_CURSOR - * (the default) or MYSQLI_CURSOR_TYPE_READ_ONLY. - *
      MYSQLI_STMT_ATTR_PREFETCH_ROWS - * Number of rows to fetch from server at a time when using a cursor. - * mode can be in the range from 1 to the maximum - * value of unsigned long. The default is 1. - *
      - *

      - *

      - * If you use the MYSQLI_STMT_ATTR_CURSOR_TYPE option with - * MYSQLI_CURSOR_TYPE_READ_ONLY, a cursor is opened for the - * statement when you invoke mysqli_stmt_execute. If there - * is already an open cursor from a previous mysqli_stmt_execute call, - * it closes the cursor before opening a new one. mysqli_stmt_reset - * also closes any open cursor before preparing the statement for re-execution. - * mysqli_stmt_free_result closes any open cursor. - *

      - *

      - * If you open a cursor for a prepared statement, mysqli_stmt_store_result - * is unnecessary. - *

      - * @param int $value

      The value to assign to the attribute.

      - * @return bool - */ - public function attr_set ($attribute, $value) {} - - /** - * Binds variables to a prepared statement as parameters - * @link https://php.net/manual/en/mysqli-stmt.bind-param.php - * @param string $types

      - * A string that contains one or more characters which specify the types - * for the corresponding bind variables: - * - * Type specification chars - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
      CharacterDescription
      icorresponding variable has type integer
      dcorresponding variable has type double
      scorresponding variable has type string
      bcorresponding variable is a blob and will be sent in packets
      - *

      - * @param mixed &$var1

      - * The number of variables and length of string - * types must match the parameters in the statement. - *

      - * @param mixed &...$_ [optional] - * @return bool true on success or false on failure. - */ - public function bind_param ($types, &$var1, &...$_) {} - - /** - * Binds variables to a prepared statement for result storage - * @link https://php.net/manual/en/mysqli-stmt.bind-result.php - * @param mixed &$var1 The variable to be bound. - * @param mixed &...$_ The variables to be bound. - * @return bool true on success or false on failure. - */ - public function bind_result (&$var1, &...$_) {} - - /** - * Closes a prepared statement - * @link https://php.net/manual/en/mysqli-stmt.close.php - * @return bool true on success or false on failure. - */ - public function close () {} - - /** - * Seeks to an arbitrary row in statement result set - * @link https://php.net/manual/en/mysqli-stmt.data-seek.php - * @param int $offset

      - * Must be between zero and the total number of rows minus one (0.. - * mysqli_stmt_num_rows - 1). - *

      - * @return void - */ - public function data_seek ($offset) {} - - /** - * Executes a prepared Query - * @link https://php.net/manual/en/mysqli-stmt.execute.php - * @return bool true on success or false on failure. - */ - public function execute () {} - - /** - * Fetch results from a prepared statement into the bound variables - * @link https://php.net/manual/en/mysqli-stmt.fetch.php - * @return bool|null - */ - public function fetch () {} - - /** - * Get result of SHOW WARNINGS - * @link https://php.net/manual/en/mysqli-stmt.get-warnings.php - * @return object - */ - public function get_warnings () {} - - /** - * Returns result set metadata from a prepared statement - * @link https://php.net/manual/en/mysqli-stmt.result-metadata.php - * @return mysqli_result|false a result object or false if an error occurred. - */ - public function result_metadata () {} - - /** - * Check if there are more query results from a multiple query - * @link https://php.net/manual/en/mysqli-stmt.more-results.php - * @return bool - */ - public function more_results () {} - - /** - * Reads the next result from a multiple query - * @link https://php.net/manual/en/mysqli-stmt.next-result.php - * @return bool - */ - public function next_result () {} - - /** - * Return the number of rows in statements result set - * @link https://php.net/manual/en/mysqli-stmt.num-rows.php - * @return int An integer representing the number of rows in result set. - */ - public function num_rows () {} - - /** - * Send data in blocks - * @link https://php.net/manual/en/mysqli-stmt.send-long-data.php - * @param int $param_num

      - * Indicates which parameter to associate the data with. Parameters are - * numbered beginning with 0. - *

      - * @param string $data

      - * A string containing data to be sent. - *

      - * @return bool true on success or false on failure. - */ - public function send_long_data ($param_num, $data) {} - - /** - * No documentation available + /** + * Check if there are more query results from a multiple query + * @link https://php.net/manual/en/mysqli-stmt.more-results.php + * @return bool + */ + public function more_results() {} + + /** + * Reads the next result from a multiple query + * @link https://php.net/manual/en/mysqli-stmt.next-result.php + * @return bool + */ + public function next_result() {} + + /** + * Return the number of rows in statements result set + * @link https://php.net/manual/en/mysqli-stmt.num-rows.php + * @return int An integer representing the number of rows in result set. + */ + public function num_rows() {} + + /** + * Send data in blocks + * @link https://php.net/manual/en/mysqli-stmt.send-long-data.php + * @param int $param_num

      + * Indicates which parameter to associate the data with. Parameters are + * numbered beginning with 0. + *

      + * @param string $data

      + * A string containing data to be sent. + *

      + * @return bool true on success or false on failure. + */ + public function send_long_data($param_num, $data) {} + + /** + * No documentation available * @removed 5.4 - */ + */ #[Deprecated(since: '5.3')] - public function stmt () {} - - /** - * Frees stored result memory for the given statement handle - * @link https://php.net/manual/en/mysqli-stmt.free-result.php - * @return void - */ - public function free_result () {} - - /** - * Resets a prepared statement - * @link https://php.net/manual/en/mysqli-stmt.reset.php - * @return bool true on success or false on failure. - */ - public function reset () {} - - /** - * Prepare an SQL statement for execution - * @link https://php.net/manual/en/mysqli-stmt.prepare.php - * @param string $query

      - * The query, as a string. It must consist of a single SQL statement. - *

      - *

      - * You can include one or more parameter markers in the SQL statement by - * embedding question mark (?) characters at the - * appropriate positions. - *

      - *

      - * You should not add a terminating semicolon or \g - * to the statement. - *

      - *

      - * The markers are legal only in certain places in SQL statements. - * For example, they are allowed in the VALUES() list of an INSERT statement - * (to specify column values for a row), or in a comparison with a column in - * a WHERE clause to specify a comparison value. - *

      - *

      - * However, they are not allowed for identifiers (such as table or column names), - * in the select list that names the columns to be returned by a SELECT statement), - * or to specify both operands of a binary operator such as the = - * equal sign. The latter restriction is necessary because it would be impossible - * to determine the parameter type. In general, parameters are legal only in Data - * Manipulation Language (DML) statements, and not in Data Definition Language - * (DDL) statements. - *

      - * @return bool true on success or false on failure. - */ - public function prepare ($query) {} - - /** - * Transfers a result set from a prepared statement - * @link https://php.net/manual/en/mysqli-stmt.store-result.php - * @return bool true on success or false on failure. - */ - public function store_result () {} - - /** - * Gets a result set from a prepared statement - * @link https://php.net/manual/en/mysqli-stmt.get-result.php - * @return mysqli_result|false Returns a resultset or FALSE on failure - */ - public function get_result () {} + public function stmt() {} + + /** + * Frees stored result memory for the given statement handle + * @link https://php.net/manual/en/mysqli-stmt.free-result.php + * @return void + */ + public function free_result() {} + + /** + * Resets a prepared statement + * @link https://php.net/manual/en/mysqli-stmt.reset.php + * @return bool true on success or false on failure. + */ + public function reset() {} + + /** + * Prepare an SQL statement for execution + * @link https://php.net/manual/en/mysqli-stmt.prepare.php + * @param string $query

      + * The query, as a string. It must consist of a single SQL statement. + *

      + *

      + * You can include one or more parameter markers in the SQL statement by + * embedding question mark (?) characters at the + * appropriate positions. + *

      + *

      + * You should not add a terminating semicolon or \g + * to the statement. + *

      + *

      + * The markers are legal only in certain places in SQL statements. + * For example, they are allowed in the VALUES() list of an INSERT statement + * (to specify column values for a row), or in a comparison with a column in + * a WHERE clause to specify a comparison value. + *

      + *

      + * However, they are not allowed for identifiers (such as table or column names), + * in the select list that names the columns to be returned by a SELECT statement), + * or to specify both operands of a binary operator such as the = + * equal sign. The latter restriction is necessary because it would be impossible + * to determine the parameter type. In general, parameters are legal only in Data + * Manipulation Language (DML) statements, and not in Data Definition Language + * (DDL) statements. + *

      + * @return bool true on success or false on failure. + */ + public function prepare($query) {} + + /** + * Transfers a result set from a prepared statement + * @link https://php.net/manual/en/mysqli-stmt.store-result.php + * @return bool true on success or false on failure. + */ + public function store_result() {} + /** + * Gets a result set from a prepared statement + * @link https://php.net/manual/en/mysqli-stmt.get-result.php + * @return mysqli_result|false Returns a resultset or FALSE on failure + */ + public function get_result() {} } /** @@ -1482,8 +1480,7 @@ public function get_result () {} * Zero indicates that no records where updated for an UPDATE statement, * no rows matched the WHERE clause in the query or that no query has yet been executed. -1 indicates that the query returned an error. */ -function mysqli_affected_rows (mysqli $mysql): string|int -{} +function mysqli_affected_rows(mysqli $mysql): string|int {} /** * Turns on or off auto-committing database modifications @@ -1492,8 +1489,7 @@ function mysqli_affected_rows (mysqli $mysql): string|int * @param bool $enable Whether to turn on auto-commit or not. * @return bool */ -function mysqli_autocommit (mysqli $mysql, bool $enable): bool -{} +function mysqli_autocommit(mysqli $mysql, bool $enable): bool {} /** * Starts a transaction @@ -1504,8 +1500,7 @@ function mysqli_autocommit (mysqli $mysql, bool $enable): bool * @return bool true on success or false on failure. * @since 5.5 */ -function mysqli_begin_transaction (mysqli $mysql, int $flags = 0, ?string $name): bool -{} +function mysqli_begin_transaction(mysqli $mysql, int $flags = 0, ?string $name): bool {} /** * Changes the user of the specified database connection @@ -1516,8 +1511,7 @@ function mysqli_begin_transaction (mysqli $mysql, int $flags = 0, ?string $name) * @param string|null $database The database to change to. If desired, the NULL value may be passed resulting in only changing the user and not selecting a database. * @return bool */ -function mysqli_change_user (mysqli $mysql, string $username, string $password, ?string $database): bool -{} +function mysqli_change_user(mysqli $mysql, string $username, string $password, ?string $database): bool {} /** * Returns the default character set for the database connection @@ -1525,8 +1519,7 @@ function mysqli_change_user (mysqli $mysql, string $username, string $password, * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return string The default character set for the current connection */ -function mysqli_character_set_name (mysqli $mysql): string -{} +function mysqli_character_set_name(mysqli $mysql): string {} /** * Closes a previously opened database connection @@ -1534,8 +1527,7 @@ function mysqli_character_set_name (mysqli $mysql): string * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return bool */ -function mysqli_close (mysqli $mysql): bool -{} +function mysqli_close(mysqli $mysql): bool {} /** * Commits the current transaction @@ -1545,8 +1537,7 @@ function mysqli_close (mysqli $mysql): bool * @param string|null $name [optional] If provided then COMMITname is executed * @return bool */ -function mysqli_commit (mysqli $mysql, int $flags = -1, ?string $name): bool -{} +function mysqli_commit(mysqli $mysql, int $flags = -1, ?string $name): bool {} /** * Open a new connection to the MySQL server @@ -1560,24 +1551,21 @@ function mysqli_commit (mysqli $mysql, int $flags = -1, ?string $name): bool * @param string|null $socket Specifies the socket or named pipe that should be used. * @return mysqli|false|null object which represents the connection to a MySQL Server or false if an error occurred. */ -function mysqli_connect (?string $hostname = null, ?string $username = null, ?string $password = null, ?string $database = null, ?int $port = null, ?string $socket = null): mysqli|false|null -{} +function mysqli_connect(?string $hostname = null, ?string $username = null, ?string $password = null, ?string $database = null, ?int $port = null, ?string $socket = null): mysqli|false|null {} /** * Returns the error code from last connect call * @link https://php.net/manual/en/mysqli.connect-errno.php * @return int Last error code number from the last call to mysqli_connect(). Zero means no error occurred. */ -function mysqli_connect_errno (): int -{} +function mysqli_connect_errno(): int {} /** * Returns a string description of the last connect error * @link https://php.net/manual/en/mysqli.connect-error.php * @return string|null Last error message string from the last call to mysqli_connect(). */ -function mysqli_connect_error (): ?string -{} +function mysqli_connect_error(): ?string {} /** * Adjusts the result pointer to an arbitrary row in the result @@ -1587,8 +1575,7 @@ function mysqli_connect_error (): ?string * @param int $offset * @return bool Returns TRUE on success or FALSE on failure. */ -function mysqli_data_seek (mysqli_result $result, int $offset): bool -{} +function mysqli_data_seek(mysqli_result $result, int $offset): bool {} /** * Dump debugging information into the log @@ -1596,8 +1583,7 @@ function mysqli_data_seek (mysqli_result $result, int $offset): bool * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return bool */ -function mysqli_dump_debug_info (mysqli $mysql): bool -{} +function mysqli_dump_debug_info(mysqli $mysql): bool {} /** * Performs debugging operations using the Fred Fish debugging library. @@ -1605,8 +1591,7 @@ function mysqli_dump_debug_info (mysqli $mysql): bool * @param string $options * @return bool */ -function mysqli_debug (string $options): bool -{} +function mysqli_debug(string $options): bool {} /** * Returns the error code for the most recent function call @@ -1614,8 +1599,7 @@ function mysqli_debug (string $options): bool * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return int An error code value for the last call, if it failed. zero means no error occurred. */ -function mysqli_errno (mysqli $mysql): int -{} +function mysqli_errno(mysqli $mysql): int {} /** * Returns a list of errors from the last command executed @@ -1624,7 +1608,7 @@ function mysqli_errno (mysqli $mysql): int * @return array A list of errors, each as an associative array containing the errno, error, and sqlstate. * @since 5.4 */ -function mysqli_error_list (mysqli $mysql): array {} +function mysqli_error_list(mysqli $mysql): array {} /** * Returns a list of errors from the last statement executed @@ -1633,7 +1617,7 @@ function mysqli_error_list (mysqli $mysql): array {} * @return array A list of errors, each as an associative array containing the errno, error, and sqlstate. * @since 5.4 */ -function mysqli_stmt_error_list (mysqli_stmt $statement): array {} +function mysqli_stmt_error_list(mysqli_stmt $statement): array {} /** * Returns a string description of the last error @@ -1641,7 +1625,7 @@ function mysqli_stmt_error_list (mysqli_stmt $statement): array {} * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return string */ -function mysqli_error (mysqli $mysql): string {} +function mysqli_error(mysqli $mysql): string {} /** * Executes a prepared Query @@ -1649,7 +1633,7 @@ function mysqli_error (mysqli $mysql): string {} * @param mysqli_stmt $statement * @return bool */ -function mysqli_stmt_execute (mysqli_stmt $statement): bool {} +function mysqli_stmt_execute(mysqli_stmt $statement): bool {} /** * Executes a prepared Query @@ -1659,7 +1643,7 @@ function mysqli_stmt_execute (mysqli_stmt $statement): bool {} * @return bool */ #[Deprecated(since: '5.3')] -function mysqli_execute (mysqli_stmt $statement): bool {} +function mysqli_execute(mysqli_stmt $statement): bool {} /** * Returns the next field in the result set @@ -1668,7 +1652,7 @@ function mysqli_execute (mysqli_stmt $statement): bool {} * mysqli_store_result() or mysqli_use_result(). * @return object|false Returns an object which contains field definition information or FALSE if no field information is available. */ -function mysqli_fetch_field (mysqli_result $result): object|false {} +function mysqli_fetch_field(mysqli_result $result): object|false {} /** * Returns an array of objects representing the fields in a result set @@ -1678,7 +1662,7 @@ function mysqli_fetch_field (mysqli_result $result): object|false {} * @return array|false Returns an array of objects which contains field definition information or FALSE if no field information is available. */ #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function mysqli_fetch_fields (mysqli_result $result) {} +function mysqli_fetch_fields(mysqli_result $result) {} /** * Fetch meta-data for a single field @@ -1688,7 +1672,7 @@ function mysqli_fetch_fields (mysqli_result $result) {} * @param int $index The field number. This value must be in the range from 0 to number of fields - 1. * @return object|false Returns an object which contains field definition information or FALSE if no field information for specified fieldnr is available. */ -function mysqli_fetch_field_direct (mysqli_result $result, int $index): object|false {} +function mysqli_fetch_field_direct(mysqli_result $result, int $index): object|false {} /** * Returns the lengths of the columns of the current row in the result set @@ -1697,7 +1681,7 @@ function mysqli_fetch_field_direct (mysqli_result $result, int $index): object|f * mysqli_store_result() or mysqli_use_result(). * @return int[]|false An array of integers representing the size of each column (not including any terminating null characters). FALSE if an error occurred. */ -function mysqli_fetch_lengths (mysqli_result $result): array|false {} +function mysqli_fetch_lengths(mysqli_result $result): array|false {} /** * Fetches all result rows as an associative array, a numeric array, or both. @@ -1708,7 +1692,7 @@ function mysqli_fetch_lengths (mysqli_result $result): array|false {} * @param int $mode * @return array Returns an array of associative or numeric arrays holding result rows. */ -function mysqli_fetch_all (mysqli_result $result, int $mode = MYSQLI_NUM): array {} +function mysqli_fetch_all(mysqli_result $result, int $mode = MYSQLI_NUM): array {} /** * Fetch a result row as an associative, a numeric array, or both. @@ -1718,7 +1702,7 @@ function mysqli_fetch_all (mysqli_result $result, int $mode = MYSQLI_NUM): array * @param int $mode * @return array|false|null */ -function mysqli_fetch_array (mysqli_result $result, int $mode = MYSQLI_BOTH): array|false|null {} +function mysqli_fetch_array(mysqli_result $result, int $mode = MYSQLI_BOTH): array|false|null {} /** * Fetch a result row as an associative array @@ -1731,7 +1715,7 @@ function mysqli_fetch_array (mysqli_result $result, int $mode = MYSQLI_BOTH): ar * To access the other column(s) of the same name, * you either need to access the result with numeric indices by using mysqli_fetch_row() or add alias names. */ -function mysqli_fetch_assoc (mysqli_result $result): array|null|false {} +function mysqli_fetch_assoc(mysqli_result $result): array|null|false {} /** * Returns the current row of a result set as an object. @@ -1745,7 +1729,7 @@ function mysqli_fetch_assoc (mysqli_result $result): array|null|false {} * To access the other column(s) of the same name, * you either need to access the result with numeric indices by using mysqli_fetch_row() or add alias names. */ -function mysqli_fetch_object (mysqli_result $result, string $class = 'stdClass', array $constructor_args = array()): object|null|false {} +function mysqli_fetch_object(mysqli_result $result, string $class = 'stdClass', array $constructor_args = []): object|null|false {} /** * Get a result row as an enumerated array @@ -1756,7 +1740,7 @@ function mysqli_fetch_object (mysqli_result $result, string $class = 'stdClass', * or null if there are no more rows in result set. * @link https://php.net/manual/en/mysqli-result.fetch-row.php */ -function mysqli_fetch_row (mysqli_result $result): array|false|null {} +function mysqli_fetch_row(mysqli_result $result): array|false|null {} /** * Returns the number of columns for the most recent query @@ -1764,7 +1748,7 @@ function mysqli_fetch_row (mysqli_result $result): array|false|null {} * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return int An integer representing the number of fields in a result set. */ -function mysqli_field_count (mysqli $mysql): int {} +function mysqli_field_count(mysqli $mysql): int {} /** * Set result pointer to a specified field offset @@ -1774,7 +1758,7 @@ function mysqli_field_count (mysqli $mysql): int {} * @param int $index The field number. This value must be in the range from 0 to number of fields - 1. * @return bool */ -function mysqli_field_seek (mysqli_result $result, int $index): bool {} +function mysqli_field_seek(mysqli_result $result, int $index): bool {} /** * Get current field offset of a result pointer @@ -1783,7 +1767,7 @@ function mysqli_field_seek (mysqli_result $result, int $index): bool {} * mysqli_store_result() or mysqli_use_result(). * @return int */ -function mysqli_field_tell (mysqli_result $result): int {} +function mysqli_field_tell(mysqli_result $result): int {} /** * Frees the memory associated with a result @@ -1792,7 +1776,7 @@ function mysqli_field_tell (mysqli_result $result): int {} * mysqli_store_result() or mysqli_use_result(). * @return void */ -function mysqli_free_result (mysqli_result $result): void {} +function mysqli_free_result(mysqli_result $result): void {} /** * Returns client Zval cache statistics @@ -1802,7 +1786,7 @@ function mysqli_free_result (mysqli_result $result): void {} * @return array|false an array with client Zval cache stats if success, false otherwise. * @removed 5.4 */ -function mysqli_get_cache_stats (mysqli $mysql) {} +function mysqli_get_cache_stats(mysqli $mysql) {} /** * Returns statistics about the client connection @@ -1811,7 +1795,7 @@ function mysqli_get_cache_stats (mysqli $mysql) {} * @return array|false an array with connection stats if successful, FALSE otherwise. */ #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function mysqli_get_connection_stats (mysqli $mysql) {} +function mysqli_get_connection_stats(mysqli $mysql) {} /** * Returns client per-process statistics @@ -1819,7 +1803,7 @@ function mysqli_get_connection_stats (mysqli $mysql) {} * @return array|false an array with client stats if success, false otherwise. */ #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function mysqli_get_client_stats () {} +function mysqli_get_client_stats() {} /** * Returns a character set object @@ -1827,7 +1811,7 @@ function mysqli_get_client_stats () {} * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return object|null */ -function mysqli_get_charset (mysqli $mysql): ?object {} +function mysqli_get_charset(mysqli $mysql): ?object {} /** * Get MySQL client info @@ -1835,14 +1819,14 @@ function mysqli_get_charset (mysqli $mysql): ?object {} * @param mysqli|null $mysql [optional] A link identifier returned by mysqli_connect() or mysqli_init() * @return string|null A string that represents the MySQL client library version */ -function mysqli_get_client_info (?mysqli $mysql): ?string {} +function mysqli_get_client_info(?mysqli $mysql): ?string {} /** * Returns the MySQL client version as an integer * @link https://php.net/manual/en/mysqli.get-client-version.php * @return int */ -function mysqli_get_client_version (): int {} +function mysqli_get_client_version(): int {} /** * Returns a string representing the type of connection used @@ -1850,7 +1834,7 @@ function mysqli_get_client_version (): int {} * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return string A character string representing the server hostname and the connection type. */ -function mysqli_get_host_info (mysqli $mysql): string {} +function mysqli_get_host_info(mysqli $mysql): string {} /** * Return information about open and cached links @@ -1895,7 +1879,7 @@ function mysqli_get_links_stats(): array {} * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return int Returns an integer representing the protocol version */ -function mysqli_get_proto_info (mysqli $mysql): int {} +function mysqli_get_proto_info(mysqli $mysql): int {} /** * Returns the version of the MySQL server @@ -1903,7 +1887,7 @@ function mysqli_get_proto_info (mysqli $mysql): int {} * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return string A character string representing the server version. */ -function mysqli_get_server_info (mysqli $mysql): string {} +function mysqli_get_server_info(mysqli $mysql): string {} /** * Returns the version of the MySQL server as an integer @@ -1912,7 +1896,7 @@ function mysqli_get_server_info (mysqli $mysql): string {} * @return int An integer representing the server version. * The form of this version number is main_version * 10000 + minor_version * 100 + sub_version (i.e. version 4.1.0 is 40100). */ -function mysqli_get_server_version (mysqli $mysql): int {} +function mysqli_get_server_version(mysqli $mysql): int {} /** * Get result of SHOW WARNINGS @@ -1920,7 +1904,7 @@ function mysqli_get_server_version (mysqli $mysql): int {} * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return mysqli_warning|false */ -function mysqli_get_warnings (mysqli $mysql): mysqli_warning|false {} +function mysqli_get_warnings(mysqli $mysql): mysqli_warning|false {} /** * Initializes MySQLi and returns a resource for use with mysqli_real_connect() @@ -1928,7 +1912,7 @@ function mysqli_get_warnings (mysqli $mysql): mysqli_warning|false {} * @return mysqli|false * @see mysqli_real_connect() */ -function mysqli_init (): mysqli|false {} +function mysqli_init(): mysqli|false {} /** * Retrieves information about the most recently executed query @@ -1936,7 +1920,7 @@ function mysqli_init (): mysqli|false {} * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return string|null A character string representing additional information about the most recently executed query. */ -function mysqli_info (mysqli $mysql): ?string {} +function mysqli_info(mysqli $mysql): ?string {} /** * Returns the auto generated id used in the last query @@ -1945,8 +1929,7 @@ function mysqli_info (mysqli $mysql): ?string {} * @return int|string The value of the AUTO_INCREMENT field that was updated by the previous query. Returns zero if there was no previous query on the connection or if the query did not update an AUTO_INCREMENT value. * If the number is greater than maximal int value, mysqli_insert_id() will return a string. */ -function mysqli_insert_id (mysqli $mysql): string|int -{} +function mysqli_insert_id(mysqli $mysql): string|int {} /** * Asks the server to kill a MySQL thread @@ -1956,8 +1939,7 @@ function mysqli_insert_id (mysqli $mysql): string|int * @param int $process_id * @return bool */ -function mysqli_kill (mysqli $mysql, int $process_id): bool -{} +function mysqli_kill(mysqli $mysql, int $process_id): bool {} /** * Unsets user defined handler for load local infile command @@ -1965,7 +1947,7 @@ function mysqli_kill (mysqli $mysql, int $process_id): bool * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return void */ -function mysqli_set_local_infile_default (mysqli $mysql) {} +function mysqli_set_local_infile_default(mysqli $mysql) {} /** * Set callback function for LOAD DATA LOCAL INFILE command @@ -1974,8 +1956,7 @@ function mysqli_set_local_infile_default (mysqli $mysql) {} * @param callable $read_func * @return bool */ -function mysqli_set_local_infile_handler (mysqli $mysql, callable $read_func): bool -{} +function mysqli_set_local_infile_handler(mysqli $mysql, callable $read_func): bool {} /** * Check if there are any more query results from a multi query @@ -1984,8 +1965,7 @@ function mysqli_set_local_infile_handler (mysqli $mysql, callable $read_func): b * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return bool */ -function mysqli_more_results (mysqli $mysql): bool -{} +function mysqli_more_results(mysqli $mysql): bool {} /** * Performs a query on the database @@ -1994,8 +1974,7 @@ function mysqli_more_results (mysqli $mysql): bool * @param string $query One or more queries which are separated by semicolons. * @return bool Returns FALSE if the first statement failed. To retrieve subsequent errors from other statements you have to call mysqli_next_result() first. */ -function mysqli_multi_query (mysqli $mysql, string $query): bool -{} +function mysqli_multi_query(mysqli $mysql, string $query): bool {} /** * Prepare next result from multi_query @@ -2003,8 +1982,7 @@ function mysqli_multi_query (mysqli $mysql, string $query): bool * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return bool */ -function mysqli_next_result (mysqli $mysql): bool -{} +function mysqli_next_result(mysqli $mysql): bool {} /** * Get the number of fields in a result @@ -2013,8 +1991,7 @@ function mysqli_next_result (mysqli $mysql): bool * mysqli_store_result() or mysqli_use_result(). * @return int */ -function mysqli_num_fields (mysqli_result $result): int -{} +function mysqli_num_fields(mysqli_result $result): int {} /** * Gets the number of rows in a result @@ -2023,8 +2000,7 @@ function mysqli_num_fields (mysqli_result $result): int * mysqli_store_result() or mysqli_use_result(). * @return string|int Returns number of rows in the result set. */ -function mysqli_num_rows (mysqli_result $result): string|int -{} +function mysqli_num_rows(mysqli_result $result): string|int {} /** * Set options @@ -2034,8 +2010,7 @@ function mysqli_num_rows (mysqli_result $result): string|int * @param mixed $value * @return bool */ -function mysqli_options (mysqli $mysql, int $option, $value): bool -{} +function mysqli_options(mysqli $mysql, int $option, $value): bool {} /** * Pings a server connection, or tries to reconnect if the connection has gone down @@ -2043,8 +2018,7 @@ function mysqli_options (mysqli $mysql, int $option, $value): bool * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return bool */ -function mysqli_ping (mysqli $mysql): bool -{} +function mysqli_ping(mysqli $mysql): bool {} /** * Poll connections @@ -2056,8 +2030,7 @@ function mysqli_ping (mysqli $mysql): bool * @param int $microseconds [optional] * @return int|false number of ready connections upon success, FALSE otherwise. */ -function mysqli_poll (?array &$read, ?array &$error, array &$reject, int $seconds, int $microseconds = 0): int|false -{} +function mysqli_poll(?array &$read, ?array &$error, array &$reject, int $seconds, int $microseconds = 0): int|false {} /** * Prepare an SQL statement for execution @@ -2066,8 +2039,7 @@ function mysqli_poll (?array &$read, ?array &$error, array &$reject, int $second * @param string $query * @return mysqli_stmt|false A statement object or FALSE if an error occurred. */ -function mysqli_prepare (mysqli $mysql, string $query): mysqli_stmt|false -{} +function mysqli_prepare(mysqli $mysql, string $query): mysqli_stmt|false {} /** * Enables or disables internal report functions @@ -2106,8 +2078,7 @@ function mysqli_prepare (mysqli $mysql, string $query): mysqli_stmt|false *

      * @return bool */ -function mysqli_report (int $flags): bool -{} +function mysqli_report(int $flags): bool {} /** * Performs a query on the database @@ -2120,8 +2091,7 @@ function mysqli_report (int $flags): bool * For other successful queries mysqli_query() will return TRUE. * Returns FALSE on failure. */ -function mysqli_query (mysqli $mysql, string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool -{} +function mysqli_query(mysqli $mysql, string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool {} /** * Opens a connection to a mysql server @@ -2137,8 +2107,7 @@ function mysqli_query (mysqli $mysql, string $query, int $result_mode = MYSQLI_S * @param int $flags [optional] * @return bool */ -function mysqli_real_connect (mysqli $mysql, ?string $hostname, ?string $username, ?string $password, ?string $database, ?int $port, ?string $socket, int $flags): bool -{} +function mysqli_real_connect(mysqli $mysql, ?string $hostname, ?string $username, ?string $password, ?string $database, ?int $port, ?string $socket, int $flags): bool {} /** * Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection @@ -2147,8 +2116,7 @@ function mysqli_real_connect (mysqli $mysql, ?string $hostname, ?string $usernam * @param string $string The string to be escaped. Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and Control-Z. * @return string */ -function mysqli_real_escape_string (mysqli $mysql, string $string): string -{} +function mysqli_real_escape_string(mysqli $mysql, string $string): string {} /** * Execute an SQL query @@ -2158,8 +2126,7 @@ function mysqli_real_escape_string (mysqli $mysql, string $string): string * @param string $query * @return bool */ -function mysqli_real_query (mysqli $mysql, string $query): bool -{} +function mysqli_real_query(mysqli $mysql, string $query): bool {} /** * Get result from async query @@ -2169,8 +2136,7 @@ function mysqli_real_query (mysqli $mysql, string $query): bool * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return mysqli_result|bool mysqli_result in success, FALSE otherwise. */ -function mysqli_reap_async_query (mysqli $mysql): mysqli_result|bool -{} +function mysqli_reap_async_query(mysqli $mysql): mysqli_result|bool {} /** * Removes the named savepoint from the set of savepoints of the current transaction @@ -2180,8 +2146,7 @@ function mysqli_reap_async_query (mysqli $mysql): mysqli_result|bool * @return bool Returns TRUE on success or FALSE on failure. * @since 5.5 */ -function mysqli_release_savepoint (mysqli $mysql, string $name): bool -{} +function mysqli_release_savepoint(mysqli $mysql, string $name): bool {} /** * Rolls back current transaction @@ -2191,8 +2156,7 @@ function mysqli_release_savepoint (mysqli $mysql, string $name): bool * @param string|null $name [optional] If provided then ROLLBACKname is executed * @return bool */ -function mysqli_rollback (mysqli $mysql, int $flags = 0, ?string $name): bool -{} +function mysqli_rollback(mysqli $mysql, int $flags = 0, ?string $name): bool {} /** * Set a named transaction savepoint @@ -2202,8 +2166,7 @@ function mysqli_rollback (mysqli $mysql, int $flags = 0, ?string $name): bool * @return bool Returns TRUE on success or FALSE on failure. * @since 5.5 */ -function mysqli_savepoint (mysqli $mysql, string $name): bool -{} +function mysqli_savepoint(mysqli $mysql, string $name): bool {} /** * Selects the default database for database queries @@ -2212,8 +2175,7 @@ function mysqli_savepoint (mysqli $mysql, string $name): bool * @param string $database * @return bool */ -function mysqli_select_db (mysqli $mysql, string $database): bool -{} +function mysqli_select_db(mysqli $mysql, string $database): bool {} /** * Sets the default client character set @@ -2222,8 +2184,7 @@ function mysqli_select_db (mysqli $mysql, string $database): bool * @param string $charset * @return bool */ -function mysqli_set_charset (mysqli $mysql, string $charset): bool -{} +function mysqli_set_charset(mysqli $mysql, string $charset): bool {} /** * Returns the total number of rows changed, deleted, or inserted by the last executed statement @@ -2231,8 +2192,7 @@ function mysqli_set_charset (mysqli $mysql, string $charset): bool * @param mysqli_stmt $statement * @return int|string If the number of affected rows is greater than maximal PHP int value, the number of affected rows will be returned as a string value. */ -function mysqli_stmt_affected_rows (mysqli_stmt $statement): string|int -{} +function mysqli_stmt_affected_rows(mysqli_stmt $statement): string|int {} /** * Used to get the current value of a statement attribute @@ -2242,8 +2202,7 @@ function mysqli_stmt_affected_rows (mysqli_stmt $statement): string|int * @return int|false Returns FALSE if the attribute is not found, otherwise returns the value of the attribute. */ #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function mysqli_stmt_attr_get (mysqli_stmt $statement, int $attribute): false|int -{} +function mysqli_stmt_attr_get(mysqli_stmt $statement, int $attribute): false|int {} /** * Used to modify the behavior of a prepared statement @@ -2253,8 +2212,7 @@ function mysqli_stmt_attr_get (mysqli_stmt $statement, int $attribute): false|in * @param int $value * @return bool */ -function mysqli_stmt_attr_set (mysqli_stmt $statement, int $attribute, int $value): bool -{} +function mysqli_stmt_attr_set(mysqli_stmt $statement, int $attribute, int $value): bool {} /** * Returns the number of fields in the given statement @@ -2262,8 +2220,7 @@ function mysqli_stmt_attr_set (mysqli_stmt $statement, int $attribute, int $valu * @param mysqli_stmt $statement * @return int */ -function mysqli_stmt_field_count (mysqli_stmt $statement): int -{} +function mysqli_stmt_field_count(mysqli_stmt $statement): int {} /** * Initializes a statement and returns an object for use with mysqli_stmt_prepare @@ -2271,8 +2228,7 @@ function mysqli_stmt_field_count (mysqli_stmt $statement): int * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return mysqli_stmt|false */ -function mysqli_stmt_init (mysqli $mysql): mysqli_stmt|false -{} +function mysqli_stmt_init(mysqli $mysql): mysqli_stmt|false {} /** * Prepare an SQL statement for execution @@ -2281,8 +2237,7 @@ function mysqli_stmt_init (mysqli $mysql): mysqli_stmt|false * @param string $query * @return bool */ -function mysqli_stmt_prepare (mysqli_stmt $statement, string $query): bool -{} +function mysqli_stmt_prepare(mysqli_stmt $statement, string $query): bool {} /** * Returns result set metadata from a prepared statement @@ -2290,8 +2245,7 @@ function mysqli_stmt_prepare (mysqli_stmt $statement, string $query): bool * @param mysqli_stmt $statement * @return mysqli_result|false Returns a result object or FALSE if an error occurred */ -function mysqli_stmt_result_metadata (mysqli_stmt $statement): mysqli_result|false -{} +function mysqli_stmt_result_metadata(mysqli_stmt $statement): mysqli_result|false {} /** * Send data in blocks @@ -2301,8 +2255,7 @@ function mysqli_stmt_result_metadata (mysqli_stmt $statement): mysqli_result|fal * @param string $data * @return bool */ -function mysqli_stmt_send_long_data (mysqli_stmt $statement, int $param_num, string $data): bool -{} +function mysqli_stmt_send_long_data(mysqli_stmt $statement, int $param_num, string $data): bool {} /** * Binds variables to a prepared statement as parameters @@ -2342,8 +2295,7 @@ function mysqli_stmt_send_long_data (mysqli_stmt $statement, int $param_num, str * @param mixed &...$_ [optional] * @return bool true on success or false on failure. */ -function mysqli_stmt_bind_param (mysqli_stmt $statement, string $types, mixed &$var1, &...$_): bool -{} +function mysqli_stmt_bind_param(mysqli_stmt $statement, string $types, mixed &$var1, &...$_): bool {} /** * Binds variables to a prepared statement for result storage @@ -2353,8 +2305,7 @@ function mysqli_stmt_bind_param (mysqli_stmt $statement, string $types, mixed &$ * @param mixed &...$_ The variables to be bound. * @return bool */ -function mysqli_stmt_bind_result (mysqli_stmt $statement, mixed &$var1, &...$_): bool -{} +function mysqli_stmt_bind_result(mysqli_stmt $statement, mixed &$var1, &...$_): bool {} /** * Fetch results from a prepared statement into the bound variables @@ -2362,8 +2313,7 @@ function mysqli_stmt_bind_result (mysqli_stmt $statement, mixed &$var1, &...$_): * @param mysqli_stmt $statement * @return bool|null */ -function mysqli_stmt_fetch (mysqli_stmt $statement): ?bool -{} +function mysqli_stmt_fetch(mysqli_stmt $statement): ?bool {} /** * Frees stored result memory for the given statement handle @@ -2371,7 +2321,7 @@ function mysqli_stmt_fetch (mysqli_stmt $statement): ?bool * @param mysqli_stmt $statement * @return void */ -function mysqli_stmt_free_result (mysqli_stmt $statement): void {} +function mysqli_stmt_free_result(mysqli_stmt $statement): void {} /** * Gets a result set from a prepared statement @@ -2379,8 +2329,7 @@ function mysqli_stmt_free_result (mysqli_stmt $statement): void {} * @param mysqli_stmt $statement * @return mysqli_result|false Returns a resultset or FALSE on failure. */ -function mysqli_stmt_get_result (mysqli_stmt $statement): mysqli_result|false -{} +function mysqli_stmt_get_result(mysqli_stmt $statement): mysqli_result|false {} /** * Get result of SHOW WARNINGS @@ -2388,8 +2337,7 @@ function mysqli_stmt_get_result (mysqli_stmt $statement): mysqli_result|false * @param mysqli_stmt $statement * @return mysqli_warning|false (not documented, but it's probably a mysqli_warning object) */ -function mysqli_stmt_get_warnings (mysqli_stmt $statement): mysqli_warning|false -{} +function mysqli_stmt_get_warnings(mysqli_stmt $statement): mysqli_warning|false {} /** * Get the ID generated from the previous INSERT operation @@ -2397,8 +2345,7 @@ function mysqli_stmt_get_warnings (mysqli_stmt $statement): mysqli_warning|false * @param mysqli_stmt $statement * @return string|int */ -function mysqli_stmt_insert_id (mysqli_stmt $statement): string|int -{} +function mysqli_stmt_insert_id(mysqli_stmt $statement): string|int {} /** * Resets a prepared statement @@ -2406,8 +2353,7 @@ function mysqli_stmt_insert_id (mysqli_stmt $statement): string|int * @param mysqli_stmt $statement * @return bool */ -function mysqli_stmt_reset (mysqli_stmt $statement): bool -{} +function mysqli_stmt_reset(mysqli_stmt $statement): bool {} /** * Returns the number of parameter for the given statement @@ -2415,8 +2361,7 @@ function mysqli_stmt_reset (mysqli_stmt $statement): bool * @param mysqli_stmt $statement * @return int */ -function mysqli_stmt_param_count (mysqli_stmt $statement): int -{} +function mysqli_stmt_param_count(mysqli_stmt $statement): int {} /** * Returns the SQLSTATE error from previous MySQL operation @@ -2424,8 +2369,7 @@ function mysqli_stmt_param_count (mysqli_stmt $statement): int * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return string Returns a string containing the SQLSTATE error code for the last error. The error code consists of five characters. '00000' means no error. */ -function mysqli_sqlstate (mysqli $mysql): string -{} +function mysqli_sqlstate(mysqli $mysql): string {} /** * Gets the current system status @@ -2433,8 +2377,7 @@ function mysqli_sqlstate (mysqli $mysql): string * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return string|false A string describing the server status. FALSE if an error occurred. */ -function mysqli_stat (mysqli $mysql): string|false -{} +function mysqli_stat(mysqli $mysql): string|false {} /** * Used for establishing secure connections using SSL @@ -2451,9 +2394,8 @@ function mysqli_ssl_set(mysqli $mysql, #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $key , #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $certificate , #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $ca_certificate , - #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $ca_path , - #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $cipher_algos): bool -{} + #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $ca_path, + #[LanguageLevelTypeAware(['8.0' => '?string'], default: 'string')] $cipher_algos): bool {} /** * Closes a prepared statement @@ -2461,8 +2403,7 @@ function mysqli_ssl_set(mysqli $mysql, * @param mysqli_stmt $statement * @return bool */ -function mysqli_stmt_close (mysqli_stmt $statement): bool -{} +function mysqli_stmt_close(mysqli_stmt $statement): bool {} /** * Seeks to an arbitrary row in statement result set @@ -2471,7 +2412,7 @@ function mysqli_stmt_close (mysqli_stmt $statement): bool * @param int $offset * @return void */ -function mysqli_stmt_data_seek (mysqli_stmt $statement, int $offset): void {} +function mysqli_stmt_data_seek(mysqli_stmt $statement, int $offset): void {} /** * Returns the error code for the most recent statement call @@ -2479,8 +2420,7 @@ function mysqli_stmt_data_seek (mysqli_stmt $statement, int $offset): void {} * @param mysqli_stmt $statement * @return int */ -function mysqli_stmt_errno (mysqli_stmt $statement): int -{} +function mysqli_stmt_errno(mysqli_stmt $statement): int {} /** * Returns a string description for last statement error @@ -2488,8 +2428,7 @@ function mysqli_stmt_errno (mysqli_stmt $statement): int * @param mysqli_stmt $statement * @return string */ -function mysqli_stmt_error (mysqli_stmt $statement): string -{} +function mysqli_stmt_error(mysqli_stmt $statement): string {} /** * Check if there are more query results from a multiple query @@ -2497,8 +2436,7 @@ function mysqli_stmt_error (mysqli_stmt $statement): string * @param mysqli_stmt $statement * @return bool */ -function mysqli_stmt_more_results (mysqli_stmt $statement): bool -{} +function mysqli_stmt_more_results(mysqli_stmt $statement): bool {} /** * Reads the next result from a multiple query @@ -2506,8 +2444,7 @@ function mysqli_stmt_more_results (mysqli_stmt $statement): bool * @param mysqli_stmt $statement * @return bool */ -function mysqli_stmt_next_result (mysqli_stmt $statement): bool -{} +function mysqli_stmt_next_result(mysqli_stmt $statement): bool {} /** * Return the number of rows in statements result set @@ -2515,8 +2452,7 @@ function mysqli_stmt_next_result (mysqli_stmt $statement): bool * @param mysqli_stmt $statement * @return string|int */ -function mysqli_stmt_num_rows (mysqli_stmt $statement): string|int -{} +function mysqli_stmt_num_rows(mysqli_stmt $statement): string|int {} /** * Returns SQLSTATE error from previous statement operation @@ -2524,8 +2460,7 @@ function mysqli_stmt_num_rows (mysqli_stmt $statement): string|int * @param mysqli_stmt $statement * @return string Returns a string containing the SQLSTATE error code for the last error. The error code consists of five characters. '00000' means no error. */ -function mysqli_stmt_sqlstate (mysqli_stmt $statement): string -{} +function mysqli_stmt_sqlstate(mysqli_stmt $statement): string {} /** * Transfers a result set from a prepared statement @@ -2533,8 +2468,7 @@ function mysqli_stmt_sqlstate (mysqli_stmt $statement): string * @param mysqli_stmt $statement * @return bool */ -function mysqli_stmt_store_result (mysqli_stmt $statement): bool -{} +function mysqli_stmt_store_result(mysqli_stmt $statement): bool {} /** * Transfers a result set from the last query @@ -2543,8 +2477,7 @@ function mysqli_stmt_store_result (mysqli_stmt $statement): bool * @param int $mode [optional] The option that you want to set * @return mysqli_result|false */ -function mysqli_store_result (mysqli $mysql, int $mode): mysqli_result|false -{} +function mysqli_store_result(mysqli $mysql, int $mode): mysqli_result|false {} /** * Returns the thread ID for the current connection @@ -2552,16 +2485,14 @@ function mysqli_store_result (mysqli $mysql, int $mode): mysqli_result|false * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return int Returns the Thread ID for the current connection. */ -function mysqli_thread_id (mysqli $mysql): int -{} +function mysqli_thread_id(mysqli $mysql): int {} /** * Returns whether thread safety is given or not * @link https://php.net/manual/en/mysqli.thread-safe.php * @return bool */ -function mysqli_thread_safe (): bool -{} +function mysqli_thread_safe(): bool {} /** * Initiate a result set retrieval @@ -2569,8 +2500,7 @@ function mysqli_thread_safe (): bool * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return mysqli_result|false */ -function mysqli_use_result (mysqli $mysql): mysqli_result|false -{} +function mysqli_use_result(mysqli $mysql): mysqli_result|false {} /** * Returns the number of warnings from the last query for the given link @@ -2578,8 +2508,7 @@ function mysqli_use_result (mysqli $mysql): mysqli_result|false * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() * @return int */ -function mysqli_warning_count (mysqli $mysql): int -{} +function mysqli_warning_count(mysqli $mysql): int {} /** * Flushes tables or caches, or resets the replication server information @@ -2588,8 +2517,7 @@ function mysqli_warning_count (mysqli $mysql): int * @param int $flags * @return bool */ -function mysqli_refresh (mysqli $mysql, int $flags): bool -{} +function mysqli_refresh(mysqli $mysql, int $flags): bool {} /** * Alias for mysqli_stmt_bind_param @@ -2599,7 +2527,7 @@ function mysqli_refresh (mysqli $mysql, int $flags): bool * @removed 5.4 */ #[Deprecated(since: '5.3')] -function mysqli_bind_param (mysqli_stmt $statement, string $types) {} +function mysqli_bind_param(mysqli_stmt $statement, string $types) {} /** * Alias for mysqli_stmt_bind_result @@ -2610,7 +2538,7 @@ function mysqli_bind_param (mysqli_stmt $statement, string $types) {} * @removed 5.4 */ #[Deprecated(since: '5.3')] -function mysqli_bind_result (mysqli_stmt $statement, string $types, mixed &$var1) {} +function mysqli_bind_result(mysqli_stmt $statement, string $types, mixed &$var1) {} /** * Alias of mysqli_character_set_name @@ -2620,8 +2548,7 @@ function mysqli_bind_result (mysqli_stmt $statement, string $types, mixed &$var1 * @removed 5.4 */ #[Deprecated(since: '5.3')] -function mysqli_client_encoding (mysqli $mysql): string -{} +function mysqli_client_encoding(mysqli $mysql): string {} /** * Alias of mysqli_real_escape_string @@ -2630,8 +2557,7 @@ function mysqli_client_encoding (mysqli $mysql): string * @param string $string The string to be escaped * @return string */ -function mysqli_escape_string (mysqli $mysql, string $string): string -{} +function mysqli_escape_string(mysqli $mysql, string $string): string {} /** * Alias for mysqli_stmt_fetch @@ -2641,8 +2567,7 @@ function mysqli_escape_string (mysqli $mysql, string $string): string * @removed 5.4 */ #[Deprecated(since: '5.3')] -function mysqli_fetch (mysqli_stmt $statement): bool -{} +function mysqli_fetch(mysqli_stmt $statement): bool {} /** * Alias for mysqli_stmt_param_count @@ -2652,8 +2577,7 @@ function mysqli_fetch (mysqli_stmt $statement): bool * @removed 5.4 */ #[Deprecated(since: '5.3')] -function mysqli_param_count (mysqli_stmt $statement): int -{} +function mysqli_param_count(mysqli_stmt $statement): int {} /** * Alias for mysqli_stmt_result_metadata @@ -2663,8 +2587,7 @@ function mysqli_param_count (mysqli_stmt $statement): int * @removed 5.4 */ #[Deprecated(since: '5.3')] -function mysqli_get_metadata (mysqli_stmt $statement): false|mysqli_result -{} +function mysqli_get_metadata(mysqli_stmt $statement): false|mysqli_result {} /** * Alias for mysqli_stmt_send_long_data @@ -2676,8 +2599,7 @@ function mysqli_get_metadata (mysqli_stmt $statement): false|mysqli_result * @removed 5.4 */ #[Deprecated(since: '5.3')] -function mysqli_send_long_data (mysqli_stmt $statement, int $param_num, string $data): bool -{} +function mysqli_send_long_data(mysqli_stmt $statement, int $param_num, string $data): bool {} /** * Alias of mysqli_options @@ -2687,9 +2609,7 @@ function mysqli_send_long_data (mysqli_stmt $statement, int $param_num, string $ * @param mixed $value * @return bool */ -function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool -{} - +function mysqli_set_opt(mysqli $mysql, int $option, mixed $value): bool {} /** *

      @@ -2698,7 +2618,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_READ_DEFAULT_GROUP', 5); +define('MYSQLI_READ_DEFAULT_GROUP', 5); /** *

      @@ -2706,7 +2626,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_READ_DEFAULT_FILE', 4); +define('MYSQLI_READ_DEFAULT_FILE', 4); /** *

      @@ -2714,7 +2634,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_OPT_CONNECT_TIMEOUT', 0); +define('MYSQLI_OPT_CONNECT_TIMEOUT', 0); /** *

      @@ -2722,7 +2642,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_OPT_LOCAL_INFILE', 8); +define('MYSQLI_OPT_LOCAL_INFILE', 8); /** *

      @@ -2730,7 +2650,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_SERVER_PUBLIC_KEY', 35); +define('MYSQLI_SERVER_PUBLIC_KEY', 35); /** *

      @@ -2738,10 +2658,10 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_INIT_COMMAND', 3); -define ('MYSQLI_OPT_NET_CMD_BUFFER_SIZE', 202); -define ('MYSQLI_OPT_NET_READ_BUFFER_SIZE', 203); -define ('MYSQLI_OPT_INT_AND_FLOAT_NATIVE', 201); +define('MYSQLI_INIT_COMMAND', 3); +define('MYSQLI_OPT_NET_CMD_BUFFER_SIZE', 202); +define('MYSQLI_OPT_NET_READ_BUFFER_SIZE', 203); +define('MYSQLI_OPT_INT_AND_FLOAT_NATIVE', 201); /** *

      @@ -2750,7 +2670,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_CLIENT_SSL', 2048); +define('MYSQLI_CLIENT_SSL', 2048); /** *

      @@ -2758,7 +2678,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_CLIENT_COMPRESS', 32); +define('MYSQLI_CLIENT_COMPRESS', 32); /** *

      @@ -2770,7 +2690,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_CLIENT_INTERACTIVE', 1024); +define('MYSQLI_CLIENT_INTERACTIVE', 1024); /** *

      @@ -2778,7 +2698,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_CLIENT_IGNORE_SPACE', 256); +define('MYSQLI_CLIENT_IGNORE_SPACE', 256); /** *

      @@ -2786,8 +2706,8 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_CLIENT_NO_SCHEMA', 16); -define ('MYSQLI_CLIENT_FOUND_ROWS', 2); +define('MYSQLI_CLIENT_NO_SCHEMA', 16); +define('MYSQLI_CLIENT_FOUND_ROWS', 2); /** *

      @@ -2795,7 +2715,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_STORE_RESULT', 0); +define('MYSQLI_STORE_RESULT', 0); /** *

      @@ -2803,8 +2723,8 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_USE_RESULT', 1); -define ('MYSQLI_ASYNC', 8); +define('MYSQLI_USE_RESULT', 1); +define('MYSQLI_ASYNC', 8); /** *

      @@ -2812,7 +2732,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_ASSOC', 1); +define('MYSQLI_ASSOC', 1); /** *

      @@ -2820,7 +2740,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_NUM', 2); +define('MYSQLI_NUM', 2); /** *

      @@ -2828,42 +2748,42 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_BOTH', 3); +define('MYSQLI_BOTH', 3); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH', 0); +define('MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH', 0); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_STMT_ATTR_CURSOR_TYPE', 1); +define('MYSQLI_STMT_ATTR_CURSOR_TYPE', 1); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_CURSOR_TYPE_NO_CURSOR', 0); +define('MYSQLI_CURSOR_TYPE_NO_CURSOR', 0); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_CURSOR_TYPE_READ_ONLY', 1); +define('MYSQLI_CURSOR_TYPE_READ_ONLY', 1); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_CURSOR_TYPE_FOR_UPDATE', 2); +define('MYSQLI_CURSOR_TYPE_FOR_UPDATE', 2); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_CURSOR_TYPE_SCROLLABLE', 4); +define('MYSQLI_CURSOR_TYPE_SCROLLABLE', 4); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_STMT_ATTR_PREFETCH_ROWS', 2); +define('MYSQLI_STMT_ATTR_PREFETCH_ROWS', 2); /** *

      @@ -2871,7 +2791,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_NOT_NULL_FLAG', 1); +define('MYSQLI_NOT_NULL_FLAG', 1); /** *

      @@ -2879,7 +2799,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_PRI_KEY_FLAG', 2); +define('MYSQLI_PRI_KEY_FLAG', 2); /** *

      @@ -2887,7 +2807,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_UNIQUE_KEY_FLAG', 4); +define('MYSQLI_UNIQUE_KEY_FLAG', 4); /** *

      @@ -2895,7 +2815,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_MULTIPLE_KEY_FLAG', 8); +define('MYSQLI_MULTIPLE_KEY_FLAG', 8); /** *

      @@ -2903,7 +2823,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_BLOB_FLAG', 16); +define('MYSQLI_BLOB_FLAG', 16); /** *

      @@ -2911,7 +2831,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_UNSIGNED_FLAG', 32); +define('MYSQLI_UNSIGNED_FLAG', 32); /** *

      @@ -2919,7 +2839,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_ZEROFILL_FLAG', 64); +define('MYSQLI_ZEROFILL_FLAG', 64); /** *

      @@ -2927,7 +2847,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_AUTO_INCREMENT_FLAG', 512); +define('MYSQLI_AUTO_INCREMENT_FLAG', 512); /** *

      @@ -2935,7 +2855,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TIMESTAMP_FLAG', 1024); +define('MYSQLI_TIMESTAMP_FLAG', 1024); /** *

      @@ -2943,7 +2863,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_SET_FLAG', 2048); +define('MYSQLI_SET_FLAG', 2048); /** *

      @@ -2951,7 +2871,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_NUM_FLAG', 32768); +define('MYSQLI_NUM_FLAG', 32768); /** *

      @@ -2959,7 +2879,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_PART_KEY_FLAG', 16384); +define('MYSQLI_PART_KEY_FLAG', 16384); /** *

      @@ -2967,7 +2887,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_GROUP_FLAG', 32768); +define('MYSQLI_GROUP_FLAG', 32768); /** *

      @@ -2975,10 +2895,10 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_ENUM_FLAG', 256); -define ('MYSQLI_BINARY_FLAG', 128); -define ('MYSQLI_NO_DEFAULT_VALUE_FLAG', 4096); -define ('MYSQLI_ON_UPDATE_NOW_FLAG', 8192); +define('MYSQLI_ENUM_FLAG', 256); +define('MYSQLI_BINARY_FLAG', 128); +define('MYSQLI_NO_DEFAULT_VALUE_FLAG', 4096); +define('MYSQLI_ON_UPDATE_NOW_FLAG', 8192); define('MYSQLI_TRANS_START_READ_ONLY', 4); define('MYSQLI_TRANS_START_READ_WRITE', 2); @@ -2989,7 +2909,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_DECIMAL', 0); +define('MYSQLI_TYPE_DECIMAL', 0); /** *

      @@ -2997,7 +2917,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_TINY', 1); +define('MYSQLI_TYPE_TINY', 1); /** *

      @@ -3005,7 +2925,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_SHORT', 2); +define('MYSQLI_TYPE_SHORT', 2); /** *

      @@ -3013,7 +2933,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_LONG', 3); +define('MYSQLI_TYPE_LONG', 3); /** *

      @@ -3021,7 +2941,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_FLOAT', 4); +define('MYSQLI_TYPE_FLOAT', 4); /** *

      @@ -3029,7 +2949,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_DOUBLE', 5); +define('MYSQLI_TYPE_DOUBLE', 5); /** *

      @@ -3037,7 +2957,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_NULL', 6); +define('MYSQLI_TYPE_NULL', 6); /** *

      @@ -3045,7 +2965,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_TIMESTAMP', 7); +define('MYSQLI_TYPE_TIMESTAMP', 7); /** *

      @@ -3053,7 +2973,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_LONGLONG', 8); +define('MYSQLI_TYPE_LONGLONG', 8); /** *

      @@ -3061,7 +2981,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_INT24', 9); +define('MYSQLI_TYPE_INT24', 9); /** *

      @@ -3069,7 +2989,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_DATE', 10); +define('MYSQLI_TYPE_DATE', 10); /** *

      @@ -3077,7 +2997,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_TIME', 11); +define('MYSQLI_TYPE_TIME', 11); /** *

      @@ -3085,7 +3005,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_DATETIME', 12); +define('MYSQLI_TYPE_DATETIME', 12); /** *

      @@ -3093,7 +3013,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_YEAR', 13); +define('MYSQLI_TYPE_YEAR', 13); /** *

      @@ -3101,7 +3021,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_NEWDATE', 14); +define('MYSQLI_TYPE_NEWDATE', 14); /** *

      @@ -3109,7 +3029,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_ENUM', 247); +define('MYSQLI_TYPE_ENUM', 247); /** *

      @@ -3117,7 +3037,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_SET', 248); +define('MYSQLI_TYPE_SET', 248); /** *

      @@ -3125,7 +3045,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_TINY_BLOB', 249); +define('MYSQLI_TYPE_TINY_BLOB', 249); /** *

      @@ -3133,7 +3053,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_MEDIUM_BLOB', 250); +define('MYSQLI_TYPE_MEDIUM_BLOB', 250); /** *

      @@ -3141,7 +3061,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_LONG_BLOB', 251); +define('MYSQLI_TYPE_LONG_BLOB', 251); /** *

      @@ -3149,7 +3069,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_BLOB', 252); +define('MYSQLI_TYPE_BLOB', 252); /** *

      @@ -3157,7 +3077,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_VAR_STRING', 253); +define('MYSQLI_TYPE_VAR_STRING', 253); /** *

      @@ -3165,7 +3085,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_STRING', 254); +define('MYSQLI_TYPE_STRING', 254); /** *

      @@ -3173,7 +3093,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_CHAR', 1); +define('MYSQLI_TYPE_CHAR', 1); /** *

      @@ -3181,7 +3101,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_INTERVAL', 247); +define('MYSQLI_TYPE_INTERVAL', 247); /** *

      @@ -3189,7 +3109,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_GEOMETRY', 255); +define('MYSQLI_TYPE_GEOMETRY', 255); /** *

      @@ -3197,7 +3117,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_NEWDECIMAL', 246); +define('MYSQLI_TYPE_NEWDECIMAL', 246); /** *

      @@ -3205,12 +3125,12 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_TYPE_BIT', 16); +define('MYSQLI_TYPE_BIT', 16); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_SET_CHARSET_NAME', 7); +define('MYSQLI_SET_CHARSET_NAME', 7); /** *

      @@ -3218,7 +3138,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_NO_DATA', 100); +define('MYSQLI_NO_DATA', 100); /** *

      @@ -3226,7 +3146,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_DATA_TRUNCATED', 101); +define('MYSQLI_DATA_TRUNCATED', 101); /** *

      @@ -3234,7 +3154,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REPORT_INDEX', 4); +define('MYSQLI_REPORT_INDEX', 4); /** *

      @@ -3242,7 +3162,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REPORT_ERROR', 1); +define('MYSQLI_REPORT_ERROR', 1); /** *

      @@ -3250,7 +3170,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REPORT_STRICT', 2); +define('MYSQLI_REPORT_STRICT', 2); /** *

      @@ -3258,7 +3178,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REPORT_ALL', 255); +define('MYSQLI_REPORT_ALL', 255); /** *

      @@ -3266,7 +3186,7 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REPORT_OFF', 0); +define('MYSQLI_REPORT_OFF', 0); /** *

      @@ -3274,65 +3194,63 @@ function mysqli_set_opt (mysqli $mysql, int $option, mixed $value): bool *

      * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_DEBUG_TRACE_ENABLED', 0); +define('MYSQLI_DEBUG_TRACE_ENABLED', 0); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED', 16); +define('MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED', 16); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_SERVER_QUERY_NO_INDEX_USED', 32); +define('MYSQLI_SERVER_QUERY_NO_INDEX_USED', 32); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REFRESH_GRANT', 1); +define('MYSQLI_REFRESH_GRANT', 1); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REFRESH_LOG', 2); +define('MYSQLI_REFRESH_LOG', 2); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REFRESH_TABLES', 4); +define('MYSQLI_REFRESH_TABLES', 4); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REFRESH_HOSTS', 8); +define('MYSQLI_REFRESH_HOSTS', 8); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REFRESH_STATUS', 16); +define('MYSQLI_REFRESH_STATUS', 16); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REFRESH_THREADS', 32); +define('MYSQLI_REFRESH_THREADS', 32); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REFRESH_SLAVE', 64); +define('MYSQLI_REFRESH_SLAVE', 64); /** * @link https://php.net/manual/en/mysqli.constants.php */ -define ('MYSQLI_REFRESH_MASTER', 128); +define('MYSQLI_REFRESH_MASTER', 128); - -define ('MYSQLI_SERVER_QUERY_WAS_SLOW', 2048); -define ('MYSQLI_REFRESH_BACKUP_LOG', 2097152); +define('MYSQLI_SERVER_QUERY_WAS_SLOW', 2048); +define('MYSQLI_REFRESH_BACKUP_LOG', 2097152); // End of mysqli v.0.1 - /** @link https://php.net/manual/en/mysqli.constants.php */ define('MYSQLI_OPT_SSL_VERIFY_SERVER_CERT', 21); /** @link https://php.net/manual/en/mysqli.constants.php */ diff --git a/ncurses/ncurses.php b/ncurses/ncurses.php index 99c24f6a6..093bcf588 100644 --- a/ncurses/ncurses.php +++ b/ncurses/ncurses.php @@ -9,7 +9,7 @@ *

      * @return int */ -function ncurses_addch ($ch) {} +function ncurses_addch($ch) {} /** * Set fore- and background color @@ -18,7 +18,7 @@ function ncurses_addch ($ch) {} *

      * @return int */ -function ncurses_color_set ($pair) {} +function ncurses_color_set($pair) {} /** * Delete a ncurses window @@ -27,35 +27,35 @@ function ncurses_color_set ($pair) {} *

      * @return bool */ -function ncurses_delwin ($window) {} +function ncurses_delwin($window) {} /** * Stop using ncurses, clean up the screen * @link https://php.net/manual/en/function.ncurses-end.php * @return int */ -function ncurses_end () {} +function ncurses_end() {} /** * Read a character from keyboard * @link https://php.net/manual/en/function.ncurses-getch.php * @return int */ -function ncurses_getch () {} +function ncurses_getch() {} /** * Check if terminal has colors * @link https://php.net/manual/en/function.ncurses-has-colors.php * @return bool Return true if the terminal has color capacities, false otherwise. */ -function ncurses_has_colors () {} +function ncurses_has_colors() {} /** * Initialize ncurses * @link https://php.net/manual/en/function.ncurses-init.php * @return void */ -function ncurses_init () {} +function ncurses_init() {} /** * Allocate a color pair @@ -68,7 +68,7 @@ function ncurses_init () {} *

      * @return int */ -function ncurses_init_pair ($pair, $fg, $bg) {} +function ncurses_init_pair($pair, $fg, $bg) {} /** * Gets the RGB value for color @@ -83,7 +83,7 @@ function ncurses_init_pair ($pair, $fg, $bg) {} *

      * @return int */ -function ncurses_color_content ($color, &$r, &$g, &$b) {} +function ncurses_color_content($color, &$r, &$g, &$b) {} /** * Gets the RGB value for color @@ -96,7 +96,7 @@ function ncurses_color_content ($color, &$r, &$g, &$b) {} *

      * @return int */ -function ncurses_pair_content ($pair, &$f, &$b) {} +function ncurses_pair_content($pair, &$f, &$b) {} /** * Move output position @@ -107,7 +107,7 @@ function ncurses_pair_content ($pair, &$f, &$b) {} *

      * @return int */ -function ncurses_move ($y, $x) {} +function ncurses_move($y, $x) {} /** * Create a new window @@ -126,7 +126,7 @@ function ncurses_move ($y, $x) {} *

      * @return resource a resource ID for the new window. */ -function ncurses_newwin ($rows, $cols, $y, $x) {} +function ncurses_newwin($rows, $cols, $y, $x) {} /** * Refresh screen @@ -135,42 +135,42 @@ function ncurses_newwin ($rows, $cols, $y, $x) {} *

      * @return int */ -function ncurses_refresh ($ch) {} +function ncurses_refresh($ch) {} /** * Start using colors * @link https://php.net/manual/en/function.ncurses-start-color.php * @return int */ -function ncurses_start_color () {} +function ncurses_start_color() {} /** * Start using 'standout' attribute * @link https://php.net/manual/en/function.ncurses-standout.php * @return int */ -function ncurses_standout () {} +function ncurses_standout() {} /** * Stop using 'standout' attribute * @link https://php.net/manual/en/function.ncurses-standend.php * @return int */ -function ncurses_standend () {} +function ncurses_standend() {} /** * Returns baudrate of terminal * @link https://php.net/manual/en/function.ncurses-baudrate.php * @return int */ -function ncurses_baudrate () {} +function ncurses_baudrate() {} /** * Let the terminal beep * @link https://php.net/manual/en/function.ncurses-beep.php * @return int */ -function ncurses_beep () {} +function ncurses_beep() {} /** * Check if we can change terminals colors @@ -178,98 +178,98 @@ function ncurses_beep () {} * @return bool Return true if the terminal has color capabilities and you can change * the colors, false otherwise. */ -function ncurses_can_change_color () {} +function ncurses_can_change_color() {} /** * Switch of input buffering * @link https://php.net/manual/en/function.ncurses-cbreak.php * @return bool true or NCURSES_ERR if any error occurred. */ -function ncurses_cbreak () {} +function ncurses_cbreak() {} /** * Clear screen * @link https://php.net/manual/en/function.ncurses-clear.php * @return bool */ -function ncurses_clear () {} +function ncurses_clear() {} /** * Clear screen from current position to bottom * @link https://php.net/manual/en/function.ncurses-clrtobot.php * @return bool */ -function ncurses_clrtobot () {} +function ncurses_clrtobot() {} /** * Clear screen from current position to end of line * @link https://php.net/manual/en/function.ncurses-clrtoeol.php * @return bool */ -function ncurses_clrtoeol () {} +function ncurses_clrtoeol() {} /** * Saves terminals (program) mode * @link https://php.net/manual/en/function.ncurses-def-prog-mode.php * @return bool false on success, otherwise true. */ -function ncurses_def_prog_mode () {} +function ncurses_def_prog_mode() {} /** * Resets the prog mode saved by def_prog_mode * @link https://php.net/manual/en/function.ncurses-reset-prog-mode.php * @return int */ -function ncurses_reset_prog_mode () {} +function ncurses_reset_prog_mode() {} /** * Saves terminals (shell) mode * @link https://php.net/manual/en/function.ncurses-def-shell-mode.php * @return bool false on success, true otherwise. */ -function ncurses_def_shell_mode () {} +function ncurses_def_shell_mode() {} /** * Resets the shell mode saved by def_shell_mode * @link https://php.net/manual/en/function.ncurses-reset-shell-mode.php * @return int */ -function ncurses_reset_shell_mode () {} +function ncurses_reset_shell_mode() {} /** * Delete character at current position, move rest of line left * @link https://php.net/manual/en/function.ncurses-delch.php * @return bool false on success, true otherwise. */ -function ncurses_delch () {} +function ncurses_delch() {} /** * Delete line at current position, move rest of screen up * @link https://php.net/manual/en/function.ncurses-deleteln.php * @return bool false on success, otherwise true. */ -function ncurses_deleteln () {} +function ncurses_deleteln() {} /** * Write all prepared refreshes to terminal * @link https://php.net/manual/en/function.ncurses-doupdate.php * @return bool */ -function ncurses_doupdate () {} +function ncurses_doupdate() {} /** * Activate keyboard input echo * @link https://php.net/manual/en/function.ncurses-echo.php * @return bool false on success, true if any error occurred. */ -function ncurses_echo () {} +function ncurses_echo() {} /** * Erase terminal screen * @link https://php.net/manual/en/function.ncurses-erase.php * @return bool */ -function ncurses_erase () {} +function ncurses_erase() {} /** * Erase window contents @@ -278,28 +278,28 @@ function ncurses_erase () {} *

      * @return int */ -function ncurses_werase ($window) {} +function ncurses_werase($window) {} /** * Returns current erase character * @link https://php.net/manual/en/function.ncurses-erasechar.php * @return string The current erase char, as a string. */ -function ncurses_erasechar () {} +function ncurses_erasechar() {} /** * Flash terminal screen (visual bell) * @link https://php.net/manual/en/function.ncurses-flash.php * @return bool false on success, otherwise true. */ -function ncurses_flash () {} +function ncurses_flash() {} /** * Flush keyboard input buffer * @link https://php.net/manual/en/function.ncurses-flushinp.php * @return bool false on success, otherwise true. */ -function ncurses_flushinp () {} +function ncurses_flushinp() {} /** * Check for insert- and delete-capabilities @@ -307,7 +307,7 @@ function ncurses_flushinp () {} * @return bool true if the terminal has insert/delete-capabilities, false * otherwise. */ -function ncurses_has_ic () {} +function ncurses_has_ic() {} /** * Check for line insert- and delete-capabilities @@ -315,21 +315,21 @@ function ncurses_has_ic () {} * @return bool true if the terminal has insert/delete-line capabilities, * false otherwise. */ -function ncurses_has_il () {} +function ncurses_has_il() {} /** * Get character and attribute at current position * @link https://php.net/manual/en/function.ncurses-inch.php * @return string the character, as a string. */ -function ncurses_inch () {} +function ncurses_inch() {} /** * Insert a line, move rest of screen down * @link https://php.net/manual/en/function.ncurses-insertln.php * @return int */ -function ncurses_insertln () {} +function ncurses_insertln() {} /** * Ncurses is in endwin mode, normal screen output may be performed @@ -338,56 +338,56 @@ function ncurses_insertln () {} * without any subsequent calls to ncurses_wrefresh, * false otherwise. */ -function ncurses_isendwin () {} +function ncurses_isendwin() {} /** * Returns current line kill character * @link https://php.net/manual/en/function.ncurses-killchar.php * @return string the kill character, as a string. */ -function ncurses_killchar () {} +function ncurses_killchar() {} /** * Translate newline and carriage return / line feed * @link https://php.net/manual/en/function.ncurses-nl.php * @return bool */ -function ncurses_nl () {} +function ncurses_nl() {} /** * Switch terminal to cooked mode * @link https://php.net/manual/en/function.ncurses-nocbreak.php * @return bool true if any error occurred, otherwise false. */ -function ncurses_nocbreak () {} +function ncurses_nocbreak() {} /** * Switch off keyboard input echo * @link https://php.net/manual/en/function.ncurses-noecho.php * @return bool true if any error occurred, false otherwise. */ -function ncurses_noecho () {} +function ncurses_noecho() {} /** * Do not translate newline and carriage return / line feed * @link https://php.net/manual/en/function.ncurses-nonl.php * @return bool */ -function ncurses_nonl () {} +function ncurses_nonl() {} /** * Switch terminal out of raw mode * @link https://php.net/manual/en/function.ncurses-noraw.php * @return bool true if any error occurred, otherwise false. */ -function ncurses_noraw () {} +function ncurses_noraw() {} /** * Switch terminal into raw mode * @link https://php.net/manual/en/function.ncurses-raw.php * @return bool true if any error occurred, otherwise false. */ -function ncurses_raw () {} +function ncurses_raw() {} /** * Enables/Disable 8-bit meta key information @@ -398,77 +398,77 @@ function ncurses_raw () {} *

      * @return int */ -function ncurses_meta ($window, $bit8) {} +function ncurses_meta($window, $bit8) {} /** * Restores saved terminal state * @link https://php.net/manual/en/function.ncurses-resetty.php * @return bool Always returns false. */ -function ncurses_resetty () {} +function ncurses_resetty() {} /** * Saves terminal state * @link https://php.net/manual/en/function.ncurses-savetty.php * @return bool Always returns false. */ -function ncurses_savetty () {} +function ncurses_savetty() {} /** * Returns a logical OR of all attribute flags supported by terminal * @link https://php.net/manual/en/function.ncurses-termattrs.php * @return bool */ -function ncurses_termattrs () {} +function ncurses_termattrs() {} /** * Assign terminal default colors to color id -1 * @link https://php.net/manual/en/function.ncurses-use-default-colors.php * @return bool */ -function ncurses_use_default_colors () {} +function ncurses_use_default_colors() {} /** * Returns current soft label key attribute * @link https://php.net/manual/en/function.ncurses-slk-attr.php * @return int The attribute, as an integer. */ -function ncurses_slk_attr () {} +function ncurses_slk_attr() {} /** * Clears soft labels from screen * @link https://php.net/manual/en/function.ncurses-slk-clear.php * @return bool true on errors, false otherwise. */ -function ncurses_slk_clear () {} +function ncurses_slk_clear() {} /** * Copies soft label keys to virtual screen * @link https://php.net/manual/en/function.ncurses-slk-noutrefresh.php * @return bool */ -function ncurses_slk_noutrefresh () {} +function ncurses_slk_noutrefresh() {} /** * Copies soft label keys to screen * @link https://php.net/manual/en/function.ncurses-slk-refresh.php * @return int */ -function ncurses_slk_refresh () {} +function ncurses_slk_refresh() {} /** * Restores soft label keys * @link https://php.net/manual/en/function.ncurses-slk-restore.php * @return int */ -function ncurses_slk_restore () {} +function ncurses_slk_restore() {} /** * Forces output when ncurses_slk_noutrefresh is performed * @link https://php.net/manual/en/function.ncurses-slk-touch.php * @return int */ -function ncurses_slk_touch () {} +function ncurses_slk_touch() {} /** * Turn off the given attributes @@ -477,7 +477,7 @@ function ncurses_slk_touch () {} *

      * @return int */ -function ncurses_attroff ($attributes) {} +function ncurses_attroff($attributes) {} /** * Turn on the given attributes @@ -486,7 +486,7 @@ function ncurses_attroff ($attributes) {} *

      * @return int */ -function ncurses_attron ($attributes) {} +function ncurses_attron($attributes) {} /** * Set given attributes @@ -495,7 +495,7 @@ function ncurses_attron ($attributes) {} *

      * @return int */ -function ncurses_attrset ($attributes) {} +function ncurses_attrset($attributes) {} /** * Set background property for terminal screen @@ -504,7 +504,7 @@ function ncurses_attrset ($attributes) {} *

      * @return int */ -function ncurses_bkgd ($attrchar) {} +function ncurses_bkgd($attrchar) {} /** * Set cursor state @@ -513,7 +513,7 @@ function ncurses_bkgd ($attrchar) {} *

      * @return int */ -function ncurses_curs_set ($visibility) {} +function ncurses_curs_set($visibility) {} /** * Delay output on terminal using padding characters @@ -522,7 +522,7 @@ function ncurses_curs_set ($visibility) {} *

      * @return int */ -function ncurses_delay_output ($milliseconds) {} +function ncurses_delay_output($milliseconds) {} /** * Single character output including refresh @@ -531,7 +531,7 @@ function ncurses_delay_output ($milliseconds) {} *

      * @return int */ -function ncurses_echochar ($character) {} +function ncurses_echochar($character) {} /** * Put terminal into halfdelay mode @@ -540,7 +540,7 @@ function ncurses_echochar ($character) {} *

      * @return int */ -function ncurses_halfdelay ($tenth) {} +function ncurses_halfdelay($tenth) {} /** * Check for presence of a function key on terminal keyboard @@ -549,7 +549,7 @@ function ncurses_halfdelay ($tenth) {} *

      * @return int */ -function ncurses_has_key ($keycode) {} +function ncurses_has_key($keycode) {} /** * Insert character moving rest of line including character at current position @@ -558,7 +558,7 @@ function ncurses_has_key ($keycode) {} *

      * @return int */ -function ncurses_insch ($character) {} +function ncurses_insch($character) {} /** * Insert lines before current line scrolling down (negative numbers delete and scroll up) @@ -567,7 +567,7 @@ function ncurses_insch ($character) {} *

      * @return int */ -function ncurses_insdelln ($count) {} +function ncurses_insdelln($count) {} /** * Set timeout for mouse button clicks @@ -576,7 +576,7 @@ function ncurses_insdelln ($count) {} *

      * @return int */ -function ncurses_mouseinterval ($milliseconds) {} +function ncurses_mouseinterval($milliseconds) {} /** * Sleep @@ -585,7 +585,7 @@ function ncurses_mouseinterval ($milliseconds) {} *

      * @return int */ -function ncurses_napms ($milliseconds) {} +function ncurses_napms($milliseconds) {} /** * Scroll window content up or down without changing current position @@ -594,7 +594,7 @@ function ncurses_napms ($milliseconds) {} *

      * @return int */ -function ncurses_scrl ($count) {} +function ncurses_scrl($count) {} /** * Turn off the given attributes for soft function-key labels @@ -603,7 +603,7 @@ function ncurses_scrl ($count) {} *

      * @return int */ -function ncurses_slk_attroff ($intarg) {} +function ncurses_slk_attroff($intarg) {} /** * Turn on the given attributes for soft function-key labels @@ -612,7 +612,7 @@ function ncurses_slk_attroff ($intarg) {} *

      * @return int */ -function ncurses_slk_attron ($intarg) {} +function ncurses_slk_attron($intarg) {} /** * Set given attributes for soft function-key labels @@ -621,7 +621,7 @@ function ncurses_slk_attron ($intarg) {} *

      * @return int */ -function ncurses_slk_attrset ($intarg) {} +function ncurses_slk_attrset($intarg) {} /** * Sets color for soft label keys @@ -630,7 +630,7 @@ function ncurses_slk_attrset ($intarg) {} *

      * @return int */ -function ncurses_slk_color ($intarg) {} +function ncurses_slk_color($intarg) {} /** * Initializes soft label key functions @@ -647,7 +647,7 @@ function ncurses_slk_color ($intarg) {} *

      * @return bool */ -function ncurses_slk_init ($format) {} +function ncurses_slk_init($format) {} /** * Sets function key labels @@ -660,7 +660,7 @@ function ncurses_slk_init ($format) {} *

      * @return bool */ -function ncurses_slk_set ($labelnr, $label, $format) {} +function ncurses_slk_set($labelnr, $label, $format) {} /** * Specify different filedescriptor for typeahead checking @@ -669,7 +669,7 @@ function ncurses_slk_set ($labelnr, $label, $format) {} *

      * @return int */ -function ncurses_typeahead ($fd) {} +function ncurses_typeahead($fd) {} /** * Put a character back into the input stream @@ -678,7 +678,7 @@ function ncurses_typeahead ($fd) {} *

      * @return int */ -function ncurses_ungetch ($keycode) {} +function ncurses_ungetch($keycode) {} /** * Display the string on the terminal in the video attribute mode @@ -687,7 +687,7 @@ function ncurses_ungetch ($keycode) {} *

      * @return int */ -function ncurses_vidattr ($intarg) {} +function ncurses_vidattr($intarg) {} /** * Refresh window on terminal screen @@ -696,7 +696,7 @@ function ncurses_vidattr ($intarg) {} *

      * @return int */ -function ncurses_wrefresh ($window) {} +function ncurses_wrefresh($window) {} /** * Control use of extended names in terminfo descriptions @@ -705,7 +705,7 @@ function ncurses_wrefresh ($window) {} *

      * @return int */ -function ncurses_use_extended_names ($flag) {} +function ncurses_use_extended_names($flag) {} /** * Control screen background @@ -714,28 +714,28 @@ function ncurses_use_extended_names ($flag) {} *

      * @return void */ -function ncurses_bkgdset ($attrchar) {} +function ncurses_bkgdset($attrchar) {} /** * Set LINES for iniscr() and newterm() to 1 * @link https://php.net/manual/en/function.ncurses-filter.php * @return void */ -function ncurses_filter () {} +function ncurses_filter() {} /** * Do not flush on signal characters * @link https://php.net/manual/en/function.ncurses-noqiflush.php * @return void */ -function ncurses_noqiflush () {} +function ncurses_noqiflush() {} /** * Flush on signal characters * @link https://php.net/manual/en/function.ncurses-qiflush.php * @return void */ -function ncurses_qiflush () {} +function ncurses_qiflush() {} /** * Set timeout for special key sequences @@ -744,7 +744,7 @@ function ncurses_qiflush () {} *

      * @return void */ -function ncurses_timeout ($millisec) {} +function ncurses_timeout($millisec) {} /** * Control use of environment information about terminal size @@ -753,7 +753,7 @@ function ncurses_timeout ($millisec) {} *

      * @return void */ -function ncurses_use_env ($flag) {} +function ncurses_use_env($flag) {} /** * Output text at current position @@ -762,7 +762,7 @@ function ncurses_use_env ($flag) {} *

      * @return int */ -function ncurses_addstr ($text) {} +function ncurses_addstr($text) {} /** * Apply padding information to the string and output it @@ -771,7 +771,7 @@ function ncurses_addstr ($text) {} *

      * @return int */ -function ncurses_putp ($text) {} +function ncurses_putp($text) {} /** * Dump screen content to file @@ -780,7 +780,7 @@ function ncurses_putp ($text) {} *

      * @return int */ -function ncurses_scr_dump ($filename) {} +function ncurses_scr_dump($filename) {} /** * Initialize screen from file dump @@ -789,7 +789,7 @@ function ncurses_scr_dump ($filename) {} *

      * @return int */ -function ncurses_scr_init ($filename) {} +function ncurses_scr_init($filename) {} /** * Restore screen from file dump @@ -798,7 +798,7 @@ function ncurses_scr_init ($filename) {} *

      * @return int */ -function ncurses_scr_restore ($filename) {} +function ncurses_scr_restore($filename) {} /** * Inherit screen from file dump @@ -807,7 +807,7 @@ function ncurses_scr_restore ($filename) {} *

      * @return int */ -function ncurses_scr_set ($filename) {} +function ncurses_scr_set($filename) {} /** * Move current position and add character @@ -820,7 +820,7 @@ function ncurses_scr_set ($filename) {} *

      * @return int */ -function ncurses_mvaddch ($y, $x, $c) {} +function ncurses_mvaddch($y, $x, $c) {} /** * Move position and add attributed string with specified length @@ -835,7 +835,7 @@ function ncurses_mvaddch ($y, $x, $c) {} *

      * @return int */ -function ncurses_mvaddchnstr ($y, $x, $s, $n) {} +function ncurses_mvaddchnstr($y, $x, $s, $n) {} /** * Add attributed string with specified length at current position @@ -846,7 +846,7 @@ function ncurses_mvaddchnstr ($y, $x, $s, $n) {} *

      * @return int */ -function ncurses_addchnstr ($s, $n) {} +function ncurses_addchnstr($s, $n) {} /** * Move position and add attributed string @@ -859,7 +859,7 @@ function ncurses_addchnstr ($s, $n) {} *

      * @return int */ -function ncurses_mvaddchstr ($y, $x, $s) {} +function ncurses_mvaddchstr($y, $x, $s) {} /** * Add attributed string at current position @@ -868,7 +868,7 @@ function ncurses_mvaddchstr ($y, $x, $s) {} *

      * @return int */ -function ncurses_addchstr ($s) {} +function ncurses_addchstr($s) {} /** * Move position and add string with specified length @@ -883,7 +883,7 @@ function ncurses_addchstr ($s) {} *

      * @return int */ -function ncurses_mvaddnstr ($y, $x, $s, $n) {} +function ncurses_mvaddnstr($y, $x, $s, $n) {} /** * Add string with specified length at current position @@ -894,7 +894,7 @@ function ncurses_mvaddnstr ($y, $x, $s, $n) {} *

      * @return int */ -function ncurses_addnstr ($s, $n) {} +function ncurses_addnstr($s, $n) {} /** * Move position and add string @@ -907,7 +907,7 @@ function ncurses_addnstr ($s, $n) {} *

      * @return int */ -function ncurses_mvaddstr ($y, $x, $s) {} +function ncurses_mvaddstr($y, $x, $s) {} /** * Move position and delete character, shift rest of line left @@ -918,7 +918,7 @@ function ncurses_mvaddstr ($y, $x, $s) {} *

      * @return int */ -function ncurses_mvdelch ($y, $x) {} +function ncurses_mvdelch($y, $x) {} /** * Move position and get character at new position @@ -929,7 +929,7 @@ function ncurses_mvdelch ($y, $x) {} *

      * @return int */ -function ncurses_mvgetch ($y, $x) {} +function ncurses_mvgetch($y, $x) {} /** * Move position and get attributed character at new position @@ -940,7 +940,7 @@ function ncurses_mvgetch ($y, $x) {} *

      * @return int */ -function ncurses_mvinch ($y, $x) {} +function ncurses_mvinch($y, $x) {} /** * Add string at new position in window @@ -955,7 +955,7 @@ function ncurses_mvinch ($y, $x) {} *

      * @return int */ -function ncurses_mvwaddstr ($window, $y, $x, $text) {} +function ncurses_mvwaddstr($window, $y, $x, $text) {} /** * Insert string at current position, moving rest of line right @@ -964,7 +964,7 @@ function ncurses_mvwaddstr ($window, $y, $x, $text) {} *

      * @return int */ -function ncurses_insstr ($text) {} +function ncurses_insstr($text) {} /** * Reads string from terminal screen @@ -974,7 +974,7 @@ function ncurses_insstr ($text) {} *

      * @return int the number of characters. */ -function ncurses_instr (&$buffer) {} +function ncurses_instr(&$buffer) {} /** * Set new position and draw a horizontal line using an attributed character and max. n characters long @@ -989,7 +989,7 @@ function ncurses_instr (&$buffer) {} *

      * @return int */ -function ncurses_mvhline ($y, $x, $attrchar, $n) {} +function ncurses_mvhline($y, $x, $attrchar, $n) {} /** * Move cursor immediately @@ -1004,7 +1004,7 @@ function ncurses_mvhline ($y, $x, $attrchar, $n) {} *

      * @return int */ -function ncurses_mvcur ($old_y, $old_x, $new_y, $new_x) {} +function ncurses_mvcur($old_y, $old_x, $new_y, $new_x) {} /** * Set new RGB value for color @@ -1019,7 +1019,7 @@ function ncurses_mvcur ($old_y, $old_x, $new_y, $new_x) {} *

      * @return int */ -function ncurses_init_color ($color, $r, $g, $b) {} +function ncurses_init_color($color, $r, $g, $b) {} /** * Draw a border around the screen using attributed characters @@ -1046,7 +1046,7 @@ function ncurses_init_color ($color, $r, $g, $b) {} *

      * @return int */ -function ncurses_border ($left, $right, $top, $bottom, $tl_corner, $tr_corner, $bl_corner, $br_corner) {} +function ncurses_border($left, $right, $top, $bottom, $tl_corner, $tr_corner, $bl_corner, $br_corner) {} /** * Define default colors for color 0 @@ -1057,7 +1057,7 @@ function ncurses_border ($left, $right, $top, $bottom, $tl_corner, $tr_corner, $ *

      * @return int */ -function ncurses_assume_default_colors ($fg, $bg) {} +function ncurses_assume_default_colors($fg, $bg) {} /** * Define a keycode @@ -1068,7 +1068,7 @@ function ncurses_assume_default_colors ($fg, $bg) {} *

      * @return int */ -function ncurses_define_key ($definition, $keycode) {} +function ncurses_define_key($definition, $keycode) {} /** * Draw a horizontal line at current position using an attributed character and max. n characters long @@ -1079,7 +1079,7 @@ function ncurses_define_key ($definition, $keycode) {} *

      * @return int */ -function ncurses_hline ($charattr, $n) {} +function ncurses_hline($charattr, $n) {} /** * Draw a vertical line at current position using an attributed character and max. n characters long @@ -1090,7 +1090,7 @@ function ncurses_hline ($charattr, $n) {} *

      * @return int */ -function ncurses_vline ($charattr, $n) {} +function ncurses_vline($charattr, $n) {} /** * Enable or disable a keycode @@ -1101,7 +1101,7 @@ function ncurses_vline ($charattr, $n) {} *

      * @return int */ -function ncurses_keyok ($keycode, $enable) {} +function ncurses_keyok($keycode, $enable) {} /** * Returns terminals (short)-name @@ -1109,7 +1109,7 @@ function ncurses_keyok ($keycode, $enable) {} * @return string|null the shortname of the terminal, truncated to 14 characters. * On errors, returns null. */ -function ncurses_termname () {} +function ncurses_termname() {} /** * Returns terminals description @@ -1117,7 +1117,7 @@ function ncurses_termname () {} * @return string|null the description, as a string truncated to 128 characters. * On errors, returns null. */ -function ncurses_longname () {} +function ncurses_longname() {} /** * Sets mouse options @@ -1133,7 +1133,7 @@ function ncurses_longname () {} * complete failure, it returns 0. *

      */ -function ncurses_mousemask ($newmask, &$oldmask) {} +function ncurses_mousemask($newmask, &$oldmask) {} /** * Reads mouse event @@ -1151,7 +1151,7 @@ function ncurses_mousemask ($newmask, &$oldmask) {} * otherwise returns true. *

      */ -function ncurses_getmouse (array &$mevent) {} +function ncurses_getmouse(array &$mevent) {} /** * Pushes mouse event to queue @@ -1162,7 +1162,7 @@ function ncurses_getmouse (array &$mevent) {} *

      * @return bool false on success, true otherwise. */ -function ncurses_ungetmouse (array $mevent) {} +function ncurses_ungetmouse(array $mevent) {} /** * Transforms coordinates @@ -1175,7 +1175,7 @@ function ncurses_ungetmouse (array $mevent) {} *

      * @return bool */ -function ncurses_mouse_trafo (&$y, &$x, $toscreen) {} +function ncurses_mouse_trafo(&$y, &$x, $toscreen) {} /** * Transforms window/stdscr coordinates @@ -1190,7 +1190,7 @@ function ncurses_mouse_trafo (&$y, &$x, $toscreen) {} *

      * @return bool */ -function ncurses_wmouse_trafo ($window, &$y, &$x, $toscreen) {} +function ncurses_wmouse_trafo($window, &$y, &$x, $toscreen) {} /** * Outputs text at current position in window @@ -1203,7 +1203,7 @@ function ncurses_wmouse_trafo ($window, &$y, &$x, $toscreen) {} *

      * @return int */ -function ncurses_waddstr ($window, $str, $n = null) {} +function ncurses_waddstr($window, $str, $n = null) {} /** * Copies window to virtual screen @@ -1212,7 +1212,7 @@ function ncurses_waddstr ($window, $str, $n = null) {} *

      * @return int */ -function ncurses_wnoutrefresh ($window) {} +function ncurses_wnoutrefresh($window) {} /** * Clears window @@ -1221,7 +1221,7 @@ function ncurses_wnoutrefresh ($window) {} *

      * @return int */ -function ncurses_wclear ($window) {} +function ncurses_wclear($window) {} /** * Sets windows color pairings @@ -1232,7 +1232,7 @@ function ncurses_wclear ($window) {} *

      * @return int */ -function ncurses_wcolor_set ($window, $color_pair) {} +function ncurses_wcolor_set($window, $color_pair) {} /** * Reads a character from keyboard (window) @@ -1241,7 +1241,7 @@ function ncurses_wcolor_set ($window, $color_pair) {} *

      * @return int */ -function ncurses_wgetch ($window) {} +function ncurses_wgetch($window) {} /** * Turns keypad on or off @@ -1252,7 +1252,7 @@ function ncurses_wgetch ($window) {} *

      * @return int */ -function ncurses_keypad ($window, $bf) {} +function ncurses_keypad($window, $bf) {} /** * Moves windows output position @@ -1265,7 +1265,7 @@ function ncurses_keypad ($window, $bf) {} *

      * @return int */ -function ncurses_wmove ($window, $y, $x) {} +function ncurses_wmove($window, $y, $x) {} /** * Creates a new pad (window) @@ -1276,7 +1276,7 @@ function ncurses_wmove ($window, $y, $x) {} *

      * @return resource */ -function ncurses_newpad ($rows, $cols) {} +function ncurses_newpad($rows, $cols) {} /** * Copies a region from a pad into the virtual screen @@ -1297,7 +1297,7 @@ function ncurses_newpad ($rows, $cols) {} *

      * @return int */ -function ncurses_prefresh ($pad, $pminrow, $pmincol, $sminrow, $smincol, $smaxrow, $smaxcol) {} +function ncurses_prefresh($pad, $pminrow, $pmincol, $sminrow, $smincol, $smaxrow, $smaxcol) {} /** * Copies a region from a pad into the virtual screen @@ -1318,7 +1318,7 @@ function ncurses_prefresh ($pad, $pminrow, $pmincol, $sminrow, $smincol, $smaxro *

      * @return int */ -function ncurses_pnoutrefresh ($pad, $pminrow, $pmincol, $sminrow, $smincol, $smaxrow, $smaxcol) {} +function ncurses_pnoutrefresh($pad, $pminrow, $pmincol, $sminrow, $smincol, $smaxrow, $smaxcol) {} /** * Enter standout mode for a window @@ -1327,7 +1327,7 @@ function ncurses_pnoutrefresh ($pad, $pminrow, $pmincol, $sminrow, $smincol, $sm *

      * @return int */ -function ncurses_wstandout ($window) {} +function ncurses_wstandout($window) {} /** * End standout mode for a window @@ -1336,7 +1336,7 @@ function ncurses_wstandout ($window) {} *

      * @return int */ -function ncurses_wstandend ($window) {} +function ncurses_wstandend($window) {} /** * Set the attributes for a window @@ -1347,7 +1347,7 @@ function ncurses_wstandend ($window) {} *

      * @return int */ -function ncurses_wattrset ($window, $attrs) {} +function ncurses_wattrset($window, $attrs) {} /** * Turns on attributes for a window @@ -1358,7 +1358,7 @@ function ncurses_wattrset ($window, $attrs) {} *

      * @return int */ -function ncurses_wattron ($window, $attrs) {} +function ncurses_wattron($window, $attrs) {} /** * Turns off attributes for a window @@ -1369,7 +1369,7 @@ function ncurses_wattron ($window, $attrs) {} *

      * @return int */ -function ncurses_wattroff ($window, $attrs) {} +function ncurses_wattroff($window, $attrs) {} /** * Adds character at current position in a window and advance cursor @@ -1380,7 +1380,7 @@ function ncurses_wattroff ($window, $attrs) {} *

      * @return int */ -function ncurses_waddch ($window, $ch) {} +function ncurses_waddch($window, $ch) {} /** * Draws a border around the window using attributed characters @@ -1410,7 +1410,7 @@ function ncurses_waddch ($window, $ch) {} *

      * @return int */ -function ncurses_wborder ($window, $left, $right, $top, $bottom, $tl_corner, $tr_corner, $bl_corner, $br_corner) {} +function ncurses_wborder($window, $left, $right, $top, $bottom, $tl_corner, $tr_corner, $bl_corner, $br_corner) {} /** * Draws a horizontal line in a window at current position using an attributed character and max. n characters long @@ -1423,7 +1423,7 @@ function ncurses_wborder ($window, $left, $right, $top, $bottom, $tl_corner, $tr *

      * @return int */ -function ncurses_whline ($window, $charattr, $n) {} +function ncurses_whline($window, $charattr, $n) {} /** * Draws a vertical line in a window at current position using an attributed character and max. n characters long @@ -1436,7 +1436,7 @@ function ncurses_whline ($window, $charattr, $n) {} *

      * @return int */ -function ncurses_wvline ($window, $charattr, $n) {} +function ncurses_wvline($window, $charattr, $n) {} /** * Returns the current cursor position for a window @@ -1449,7 +1449,7 @@ function ncurses_wvline ($window, $charattr, $n) {} *

      * @return void */ -function ncurses_getyx ($window, &$y, &$x) {} +function ncurses_getyx($window, &$y, &$x) {} /** * Returns the size of a window @@ -1465,14 +1465,14 @@ function ncurses_getyx ($window, &$y, &$x) {} *

      * @return void */ -function ncurses_getmaxyx ($window, &$y, &$x) {} +function ncurses_getmaxyx($window, &$y, &$x) {} /** * Refreshes the virtual screen to reflect the relations between panels in the stack * @link https://php.net/manual/en/function.ncurses-update-panels.php * @return void */ -function ncurses_update_panels () {} +function ncurses_update_panels() {} /** * Returns the window associated with panel @@ -1481,7 +1481,7 @@ function ncurses_update_panels () {} *

      * @return resource */ -function ncurses_panel_window ($panel) {} +function ncurses_panel_window($panel) {} /** * Returns the panel below panel @@ -1490,7 +1490,7 @@ function ncurses_panel_window ($panel) {} *

      * @return resource */ -function ncurses_panel_below ($panel) {} +function ncurses_panel_below($panel) {} /** * Returns the panel above panel @@ -1499,7 +1499,7 @@ function ncurses_panel_below ($panel) {} *

      * @return resource If panel is null, returns the bottom panel in the stack. */ -function ncurses_panel_above ($panel) {} +function ncurses_panel_above($panel) {} /** * Replaces the window associated with panel @@ -1510,7 +1510,7 @@ function ncurses_panel_above ($panel) {} *

      * @return int */ -function ncurses_replace_panel ($panel, $window) {} +function ncurses_replace_panel($panel, $window) {} /** * Moves a panel so that its upper-left corner is at [startx, starty] @@ -1523,7 +1523,7 @@ function ncurses_replace_panel ($panel, $window) {} *

      * @return int */ -function ncurses_move_panel ($panel, $startx, $starty) {} +function ncurses_move_panel($panel, $startx, $starty) {} /** * Moves a visible panel to the bottom of the stack @@ -1532,7 +1532,7 @@ function ncurses_move_panel ($panel, $startx, $starty) {} *

      * @return int */ -function ncurses_bottom_panel ($panel) {} +function ncurses_bottom_panel($panel) {} /** * Moves a visible panel to the top of the stack @@ -1541,7 +1541,7 @@ function ncurses_bottom_panel ($panel) {} *

      * @return int */ -function ncurses_top_panel ($panel) {} +function ncurses_top_panel($panel) {} /** * Places an invisible panel on top of the stack, making it visible @@ -1550,7 +1550,7 @@ function ncurses_top_panel ($panel) {} *

      * @return int */ -function ncurses_show_panel ($panel) {} +function ncurses_show_panel($panel) {} /** * Remove panel from the stack, making it invisible @@ -1559,7 +1559,7 @@ function ncurses_show_panel ($panel) {} *

      * @return int */ -function ncurses_hide_panel ($panel) {} +function ncurses_hide_panel($panel) {} /** * Remove panel from the stack and delete it (but not the associated window) @@ -1568,7 +1568,7 @@ function ncurses_hide_panel ($panel) {} *

      * @return bool */ -function ncurses_del_panel ($panel) {} +function ncurses_del_panel($panel) {} /** * Create a new panel and associate it with window @@ -1577,154 +1577,153 @@ function ncurses_del_panel ($panel) {} *

      * @return resource */ -function ncurses_new_panel ($window) {} - -define ('NCURSES_COLOR_BLACK', 0); -define ('NCURSES_COLOR_RED', 1); -define ('NCURSES_COLOR_GREEN', 2); -define ('NCURSES_COLOR_YELLOW', 3); -define ('NCURSES_COLOR_BLUE', 4); -define ('NCURSES_COLOR_MAGENTA', 5); -define ('NCURSES_COLOR_CYAN', 6); -define ('NCURSES_COLOR_WHITE', 7); -define ('NCURSES_KEY_DOWN', 258); -define ('NCURSES_KEY_UP', 259); -define ('NCURSES_KEY_LEFT', 260); -define ('NCURSES_KEY_RIGHT', 261); -define ('NCURSES_KEY_HOME', 262); -define ('NCURSES_KEY_END', 360); -define ('NCURSES_KEY_BACKSPACE', 263); -define ('NCURSES_KEY_MOUSE', 409); -define ('NCURSES_KEY_F0', 264); -define ('NCURSES_KEY_F1', 265); -define ('NCURSES_KEY_F2', 266); -define ('NCURSES_KEY_F3', 267); -define ('NCURSES_KEY_F4', 268); -define ('NCURSES_KEY_F5', 269); -define ('NCURSES_KEY_F6', 270); -define ('NCURSES_KEY_F7', 271); -define ('NCURSES_KEY_F8', 272); -define ('NCURSES_KEY_F9', 273); -define ('NCURSES_KEY_F10', 274); -define ('NCURSES_KEY_F11', 275); -define ('NCURSES_KEY_F12', 276); -define ('NCURSES_KEY_DL', 328); -define ('NCURSES_KEY_IL', 329); -define ('NCURSES_KEY_DC', 330); -define ('NCURSES_KEY_IC', 331); -define ('NCURSES_KEY_EIC', 332); -define ('NCURSES_KEY_CLEAR', 333); -define ('NCURSES_KEY_EOS', 334); -define ('NCURSES_KEY_EOL', 335); -define ('NCURSES_KEY_SF', 336); -define ('NCURSES_KEY_SR', 337); -define ('NCURSES_KEY_NPAGE', 338); -define ('NCURSES_KEY_PPAGE', 339); -define ('NCURSES_KEY_STAB', 340); -define ('NCURSES_KEY_CTAB', 341); -define ('NCURSES_KEY_CATAB', 342); -define ('NCURSES_KEY_ENTER', 343); -define ('NCURSES_KEY_SRESET', 344); -define ('NCURSES_KEY_RESET', 345); -define ('NCURSES_KEY_PRINT', 346); -define ('NCURSES_KEY_LL', 347); -define ('NCURSES_KEY_A1', 348); -define ('NCURSES_KEY_A3', 349); -define ('NCURSES_KEY_B2', 350); -define ('NCURSES_KEY_C1', 351); -define ('NCURSES_KEY_C3', 352); -define ('NCURSES_KEY_BTAB', 353); -define ('NCURSES_KEY_BEG', 354); -define ('NCURSES_KEY_CANCEL', 355); -define ('NCURSES_KEY_CLOSE', 356); -define ('NCURSES_KEY_COMMAND', 357); -define ('NCURSES_KEY_COPY', 358); -define ('NCURSES_KEY_CREATE', 359); -define ('NCURSES_KEY_EXIT', 361); -define ('NCURSES_KEY_FIND', 362); -define ('NCURSES_KEY_HELP', 363); -define ('NCURSES_KEY_MARK', 364); -define ('NCURSES_KEY_MESSAGE', 365); -define ('NCURSES_KEY_MOVE', 366); -define ('NCURSES_KEY_NEXT', 367); -define ('NCURSES_KEY_OPEN', 368); -define ('NCURSES_KEY_OPTIONS', 369); -define ('NCURSES_KEY_PREVIOUS', 370); -define ('NCURSES_KEY_REDO', 371); -define ('NCURSES_KEY_REFERENCE', 372); -define ('NCURSES_KEY_REFRESH', 373); -define ('NCURSES_KEY_REPLACE', 374); -define ('NCURSES_KEY_RESTART', 375); -define ('NCURSES_KEY_RESUME', 376); -define ('NCURSES_KEY_SAVE', 377); -define ('NCURSES_KEY_SBEG', 378); -define ('NCURSES_KEY_SCANCEL', 379); -define ('NCURSES_KEY_SCOMMAND', 380); -define ('NCURSES_KEY_SCOPY', 381); -define ('NCURSES_KEY_SCREATE', 382); -define ('NCURSES_KEY_SDC', 383); -define ('NCURSES_KEY_SDL', 384); -define ('NCURSES_KEY_SELECT', 385); -define ('NCURSES_KEY_SEND', 386); -define ('NCURSES_KEY_SEOL', 387); -define ('NCURSES_KEY_SEXIT', 388); -define ('NCURSES_KEY_SFIND', 389); -define ('NCURSES_KEY_SHELP', 390); -define ('NCURSES_KEY_SHOME', 391); -define ('NCURSES_KEY_SIC', 392); -define ('NCURSES_KEY_SLEFT', 393); -define ('NCURSES_KEY_SMESSAGE', 394); -define ('NCURSES_KEY_SMOVE', 395); -define ('NCURSES_KEY_SNEXT', 396); -define ('NCURSES_KEY_SOPTIONS', 397); -define ('NCURSES_KEY_SPREVIOUS', 398); -define ('NCURSES_KEY_SPRINT', 399); -define ('NCURSES_KEY_SREDO', 400); -define ('NCURSES_KEY_SREPLACE', 401); -define ('NCURSES_KEY_SRIGHT', 402); -define ('NCURSES_KEY_SRSUME', 403); -define ('NCURSES_KEY_SSAVE', 404); -define ('NCURSES_KEY_SSUSPEND', 405); -define ('NCURSES_KEY_SUNDO', 406); -define ('NCURSES_KEY_SUSPEND', 407); -define ('NCURSES_KEY_UNDO', 408); -define ('NCURSES_KEY_RESIZE', 410); -define ('NCURSES_A_NORMAL', 0); -define ('NCURSES_A_STANDOUT', 65536); -define ('NCURSES_A_UNDERLINE', 131072); -define ('NCURSES_A_REVERSE', 262144); -define ('NCURSES_A_BLINK', 524288); -define ('NCURSES_A_DIM', 1048576); -define ('NCURSES_A_BOLD', 2097152); -define ('NCURSES_A_PROTECT', 16777216); -define ('NCURSES_A_INVIS', 8388608); -define ('NCURSES_A_ALTCHARSET', 4194304); -define ('NCURSES_A_CHARTEXT', 255); -define ('NCURSES_BUTTON1_PRESSED', 2); -define ('NCURSES_BUTTON1_RELEASED', 1); -define ('NCURSES_BUTTON1_CLICKED', 4); -define ('NCURSES_BUTTON1_DOUBLE_CLICKED', 8); -define ('NCURSES_BUTTON1_TRIPLE_CLICKED', 16); -define ('NCURSES_BUTTON2_PRESSED', 128); -define ('NCURSES_BUTTON2_RELEASED', 64); -define ('NCURSES_BUTTON2_CLICKED', 256); -define ('NCURSES_BUTTON2_DOUBLE_CLICKED', 512); -define ('NCURSES_BUTTON2_TRIPLE_CLICKED', 1024); -define ('NCURSES_BUTTON3_PRESSED', 8192); -define ('NCURSES_BUTTON3_RELEASED', 4096); -define ('NCURSES_BUTTON3_CLICKED', 16384); -define ('NCURSES_BUTTON3_DOUBLE_CLICKED', 32768); -define ('NCURSES_BUTTON3_TRIPLE_CLICKED', 65536); -define ('NCURSES_BUTTON4_PRESSED', 524288); -define ('NCURSES_BUTTON4_RELEASED', 262144); -define ('NCURSES_BUTTON4_CLICKED', 1048576); -define ('NCURSES_BUTTON4_DOUBLE_CLICKED', 2097152); -define ('NCURSES_BUTTON4_TRIPLE_CLICKED', 4194304); -define ('NCURSES_BUTTON_SHIFT', 33554432); -define ('NCURSES_BUTTON_CTRL', 16777216); -define ('NCURSES_BUTTON_ALT', 67108864); -define ('NCURSES_ALL_MOUSE_EVENTS', 134217727); -define ('NCURSES_REPORT_MOUSE_POSITION', 134217728); +function ncurses_new_panel($window) {} + +define('NCURSES_COLOR_BLACK', 0); +define('NCURSES_COLOR_RED', 1); +define('NCURSES_COLOR_GREEN', 2); +define('NCURSES_COLOR_YELLOW', 3); +define('NCURSES_COLOR_BLUE', 4); +define('NCURSES_COLOR_MAGENTA', 5); +define('NCURSES_COLOR_CYAN', 6); +define('NCURSES_COLOR_WHITE', 7); +define('NCURSES_KEY_DOWN', 258); +define('NCURSES_KEY_UP', 259); +define('NCURSES_KEY_LEFT', 260); +define('NCURSES_KEY_RIGHT', 261); +define('NCURSES_KEY_HOME', 262); +define('NCURSES_KEY_END', 360); +define('NCURSES_KEY_BACKSPACE', 263); +define('NCURSES_KEY_MOUSE', 409); +define('NCURSES_KEY_F0', 264); +define('NCURSES_KEY_F1', 265); +define('NCURSES_KEY_F2', 266); +define('NCURSES_KEY_F3', 267); +define('NCURSES_KEY_F4', 268); +define('NCURSES_KEY_F5', 269); +define('NCURSES_KEY_F6', 270); +define('NCURSES_KEY_F7', 271); +define('NCURSES_KEY_F8', 272); +define('NCURSES_KEY_F9', 273); +define('NCURSES_KEY_F10', 274); +define('NCURSES_KEY_F11', 275); +define('NCURSES_KEY_F12', 276); +define('NCURSES_KEY_DL', 328); +define('NCURSES_KEY_IL', 329); +define('NCURSES_KEY_DC', 330); +define('NCURSES_KEY_IC', 331); +define('NCURSES_KEY_EIC', 332); +define('NCURSES_KEY_CLEAR', 333); +define('NCURSES_KEY_EOS', 334); +define('NCURSES_KEY_EOL', 335); +define('NCURSES_KEY_SF', 336); +define('NCURSES_KEY_SR', 337); +define('NCURSES_KEY_NPAGE', 338); +define('NCURSES_KEY_PPAGE', 339); +define('NCURSES_KEY_STAB', 340); +define('NCURSES_KEY_CTAB', 341); +define('NCURSES_KEY_CATAB', 342); +define('NCURSES_KEY_ENTER', 343); +define('NCURSES_KEY_SRESET', 344); +define('NCURSES_KEY_RESET', 345); +define('NCURSES_KEY_PRINT', 346); +define('NCURSES_KEY_LL', 347); +define('NCURSES_KEY_A1', 348); +define('NCURSES_KEY_A3', 349); +define('NCURSES_KEY_B2', 350); +define('NCURSES_KEY_C1', 351); +define('NCURSES_KEY_C3', 352); +define('NCURSES_KEY_BTAB', 353); +define('NCURSES_KEY_BEG', 354); +define('NCURSES_KEY_CANCEL', 355); +define('NCURSES_KEY_CLOSE', 356); +define('NCURSES_KEY_COMMAND', 357); +define('NCURSES_KEY_COPY', 358); +define('NCURSES_KEY_CREATE', 359); +define('NCURSES_KEY_EXIT', 361); +define('NCURSES_KEY_FIND', 362); +define('NCURSES_KEY_HELP', 363); +define('NCURSES_KEY_MARK', 364); +define('NCURSES_KEY_MESSAGE', 365); +define('NCURSES_KEY_MOVE', 366); +define('NCURSES_KEY_NEXT', 367); +define('NCURSES_KEY_OPEN', 368); +define('NCURSES_KEY_OPTIONS', 369); +define('NCURSES_KEY_PREVIOUS', 370); +define('NCURSES_KEY_REDO', 371); +define('NCURSES_KEY_REFERENCE', 372); +define('NCURSES_KEY_REFRESH', 373); +define('NCURSES_KEY_REPLACE', 374); +define('NCURSES_KEY_RESTART', 375); +define('NCURSES_KEY_RESUME', 376); +define('NCURSES_KEY_SAVE', 377); +define('NCURSES_KEY_SBEG', 378); +define('NCURSES_KEY_SCANCEL', 379); +define('NCURSES_KEY_SCOMMAND', 380); +define('NCURSES_KEY_SCOPY', 381); +define('NCURSES_KEY_SCREATE', 382); +define('NCURSES_KEY_SDC', 383); +define('NCURSES_KEY_SDL', 384); +define('NCURSES_KEY_SELECT', 385); +define('NCURSES_KEY_SEND', 386); +define('NCURSES_KEY_SEOL', 387); +define('NCURSES_KEY_SEXIT', 388); +define('NCURSES_KEY_SFIND', 389); +define('NCURSES_KEY_SHELP', 390); +define('NCURSES_KEY_SHOME', 391); +define('NCURSES_KEY_SIC', 392); +define('NCURSES_KEY_SLEFT', 393); +define('NCURSES_KEY_SMESSAGE', 394); +define('NCURSES_KEY_SMOVE', 395); +define('NCURSES_KEY_SNEXT', 396); +define('NCURSES_KEY_SOPTIONS', 397); +define('NCURSES_KEY_SPREVIOUS', 398); +define('NCURSES_KEY_SPRINT', 399); +define('NCURSES_KEY_SREDO', 400); +define('NCURSES_KEY_SREPLACE', 401); +define('NCURSES_KEY_SRIGHT', 402); +define('NCURSES_KEY_SRSUME', 403); +define('NCURSES_KEY_SSAVE', 404); +define('NCURSES_KEY_SSUSPEND', 405); +define('NCURSES_KEY_SUNDO', 406); +define('NCURSES_KEY_SUSPEND', 407); +define('NCURSES_KEY_UNDO', 408); +define('NCURSES_KEY_RESIZE', 410); +define('NCURSES_A_NORMAL', 0); +define('NCURSES_A_STANDOUT', 65536); +define('NCURSES_A_UNDERLINE', 131072); +define('NCURSES_A_REVERSE', 262144); +define('NCURSES_A_BLINK', 524288); +define('NCURSES_A_DIM', 1048576); +define('NCURSES_A_BOLD', 2097152); +define('NCURSES_A_PROTECT', 16777216); +define('NCURSES_A_INVIS', 8388608); +define('NCURSES_A_ALTCHARSET', 4194304); +define('NCURSES_A_CHARTEXT', 255); +define('NCURSES_BUTTON1_PRESSED', 2); +define('NCURSES_BUTTON1_RELEASED', 1); +define('NCURSES_BUTTON1_CLICKED', 4); +define('NCURSES_BUTTON1_DOUBLE_CLICKED', 8); +define('NCURSES_BUTTON1_TRIPLE_CLICKED', 16); +define('NCURSES_BUTTON2_PRESSED', 128); +define('NCURSES_BUTTON2_RELEASED', 64); +define('NCURSES_BUTTON2_CLICKED', 256); +define('NCURSES_BUTTON2_DOUBLE_CLICKED', 512); +define('NCURSES_BUTTON2_TRIPLE_CLICKED', 1024); +define('NCURSES_BUTTON3_PRESSED', 8192); +define('NCURSES_BUTTON3_RELEASED', 4096); +define('NCURSES_BUTTON3_CLICKED', 16384); +define('NCURSES_BUTTON3_DOUBLE_CLICKED', 32768); +define('NCURSES_BUTTON3_TRIPLE_CLICKED', 65536); +define('NCURSES_BUTTON4_PRESSED', 524288); +define('NCURSES_BUTTON4_RELEASED', 262144); +define('NCURSES_BUTTON4_CLICKED', 1048576); +define('NCURSES_BUTTON4_DOUBLE_CLICKED', 2097152); +define('NCURSES_BUTTON4_TRIPLE_CLICKED', 4194304); +define('NCURSES_BUTTON_SHIFT', 33554432); +define('NCURSES_BUTTON_CTRL', 16777216); +define('NCURSES_BUTTON_ALT', 67108864); +define('NCURSES_ALL_MOUSE_EVENTS', 134217727); +define('NCURSES_REPORT_MOUSE_POSITION', 134217728); // End of ncurses v. -?> diff --git a/newrelic/newrelic.php b/newrelic/newrelic.php index b4de02b69..7b3eb97cd 100644 --- a/newrelic/newrelic.php +++ b/newrelic/newrelic.php @@ -20,7 +20,7 @@ * @link https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-api#api-custom-param * * @param string $key - * @param bool|float|integer|string $value + * @param bool|float|int|string $value * * @return bool */ @@ -161,7 +161,7 @@ function newrelic_end_transaction($ignore = false) {} * * @return string */ -function newrelic_get_browser_timing_footer ($includeTags = true) {} +function newrelic_get_browser_timing_footer($includeTags = true) {} /** * Returns the JavaScript string to inject as part of the header for page load timing (sometimes referred to as real @@ -253,10 +253,10 @@ function newrelic_name_transaction($name) {} * * @link https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-api#api-notice-error * - * @param string|integer $messageOrUnused [optional] + * @param string|int $messageOrUnused [optional] * @param Exception|string $exceptionOrMessage [optional] * @param string $unused2 [optional] - * @param integer $unused3 [optional] + * @param int $unused3 [optional] * @param mixed $unused4 [optional] * * @return void diff --git a/oauth/oauth.php b/oauth/oauth.php index 217eeeb63..099c15045 100644 --- a/oauth/oauth.php +++ b/oauth/oauth.php @@ -39,7 +39,7 @@ * @param array $request_parameters * @return string */ -function oauth_get_sbs($http_method, $uri, $request_parameters = array()) { } +function oauth_get_sbs($http_method, $uri, $request_parameters = []) {} /** * Encode a URI to RFC 3986 @@ -47,13 +47,13 @@ function oauth_get_sbs($http_method, $uri, $request_parameters = array()) { } * @param string $uri * @return string */ -function oauth_urlencode($uri) { } +function oauth_urlencode($uri) {} /** * The OAuth extension provides a simple interface to interact with data providers using the OAuth HTTP specification to protect private resources. */ -class OAuth { - +class OAuth +{ /** * @var bool */ @@ -69,7 +69,6 @@ class OAuth { */ public $debugInfo; - /** * Create a new OAuth object * @param string $consumer_key @@ -78,50 +77,50 @@ class OAuth { * @param int $auth_type * @throws \OAuthException */ - public function __construct($consumer_key, $consumer_secret, $signature_method = OAUTH_SIG_METHOD_HMACSHA1, $auth_type = OAUTH_AUTH_TYPE_AUTHORIZATION) { } + public function __construct($consumer_key, $consumer_secret, $signature_method = OAUTH_SIG_METHOD_HMACSHA1, $auth_type = OAUTH_AUTH_TYPE_AUTHORIZATION) {} /** * Turn off verbose debugging * @return bool */ - public function disableDebug() { } + public function disableDebug() {} /** * Turn off redirects * @return void */ - public function disableRedirects() { } + public function disableRedirects() {} /** * Turn off SSL checks * @return bool */ - public function disableSSLChecks() { } + public function disableSSLChecks() {} /** * Turn on verbose debugging * @return bool */ - public function enableDebug() { } + public function enableDebug() {} /** * Turn on redirects * @return bool */ - public function enableRedirects() { } + public function enableRedirects() {} /** * Turn on SSL checks * @return bool */ - public function enableSSLChecks() { } + public function enableSSLChecks() {} /** * Set the timeout * @param int $timeout Time in milliseconds * @return void */ - public function setTimeout($timeout) { } + public function setTimeout($timeout) {} /** * Fetch an OAuth-protected resource @@ -132,7 +131,7 @@ public function setTimeout($timeout) { } * @throws \OAuthException * @return mixed */ - public function fetch($protected_resource_url, $extra_parameters = array(), $http_method = null, $http_headers = array()) { } + public function fetch($protected_resource_url, $extra_parameters = [], $http_method = null, $http_headers = []) {} /** * Fetch an access token @@ -142,31 +141,31 @@ public function fetch($protected_resource_url, $extra_parameters = array(), $htt * @throws \OAuthException * @return array */ - public function getAccessToken($access_token_url, $auth_session_handle = null, $verifier_token = null) { } + public function getAccessToken($access_token_url, $auth_session_handle = null, $verifier_token = null) {} /** * Get CA information * @return array */ - public function getCAPath() { } + public function getCAPath() {} /** * Get the last response * @return string */ - public function getLastResponse() { } + public function getLastResponse() {} /** * Get headers for last response * @return string|false */ - public function getLastResponseHeaders() { } + public function getLastResponseHeaders() {} /** * Get HTTP information about the last response * @return array */ - public function getLastResponseInfo() { } + public function getLastResponseInfo() {} /** * Generate OAuth header string signature @@ -175,7 +174,7 @@ public function getLastResponseInfo() { } * @param mixed $extra_parameters * @return string|false */ - public function getRequestHeader($http_method, $url, $extra_parameters = '') { } + public function getRequestHeader($http_method, $url, $extra_parameters = '') {} /** * Fetch a request token @@ -185,14 +184,14 @@ public function getRequestHeader($http_method, $url, $extra_parameters = '') { } * @throws \OAuthException * @return array */ - public function getRequestToken($request_token_url, $callback_url = null, $http_method = 'GET') { } + public function getRequestToken($request_token_url, $callback_url = null, $http_method = 'GET') {} /** * Set authorization type * @param int $auth_type * @return bool */ - public function setAuthType($auth_type) { } + public function setAuthType($auth_type) {} /** * Set CA path and info @@ -200,35 +199,34 @@ public function setAuthType($auth_type) { } * @param string $ca_info * @return mixed */ - public function setCAPath($ca_path = null, $ca_info = null) { } + public function setCAPath($ca_path = null, $ca_info = null) {} /** * Set the nonce for subsequent requests * @param string $nonce * @return mixed */ - public function setNonce($nonce) { } + public function setNonce($nonce) {} /** - * * @param int $reqengine * @return void */ - public function setRequestEngine($reqengine) { } + public function setRequestEngine($reqengine) {} /** * Set the RSA certificate * @param string $cert * @return mixed */ - public function setRSACertificate($cert) { } + public function setRSACertificate($cert) {} /** * Set the timestamp * @param string $timestamp * @return mixed */ - public function setTimestamp($timestamp) { } + public function setTimestamp($timestamp) {} /** * Set the token and secret @@ -236,21 +234,18 @@ public function setTimestamp($timestamp) { } * @param string $token_secret * @return bool */ - public function setToken($token, $token_secret) { } + public function setToken($token, $token_secret) {} /** * Set the OAuth version * @param string $version * @return bool */ - public function setVersion($version) { } + public function setVersion($version) {} } -/** - * - */ -class OAuthException extends Exception { - +class OAuthException extends Exception +{ /** * The response of the exception which occurred, if any * @var string @@ -268,102 +263,101 @@ class OAuthException extends Exception { /** * Manages an OAuth provider class. */ -class OAuthProvider { - +class OAuthProvider +{ /** * @param string $req_params * @return bool */ - final public function addRequiredParameter($req_params) { } + final public function addRequiredParameter($req_params) {} /** * @return void */ - public function callconsumerHandler() { } + public function callconsumerHandler() {} /** * @return void */ - public function callTimestampNonceHandler() { } + public function callTimestampNonceHandler() {} /** * @return void */ - public function calltokenHandler() { } + public function calltokenHandler() {} /** * @param string $uri * @param string $method * @return void */ - public function checkOAuthRequest($uri = '', $method = '') { } + public function checkOAuthRequest($uri = '', $method = '') {} /** * @param array $params_array */ - public function __construct($params_array) { } + public function __construct($params_array) {} /** * @param callback $callback_function * @return void */ - public function consumerHandler($callback_function) { } + public function consumerHandler($callback_function) {} /** * @param int $size * @param bool $strong * @return string */ - final public static function generateToken($size, $strong = false) { } + final public static function generateToken($size, $strong = false) {} /** * @param mixed $params_array * @return void */ - public function is2LeggedEndpoint($params_array) { } + public function is2LeggedEndpoint($params_array) {} /** * @param bool $will_issue_request_token * @return void */ - public function isRequestTokenEndpoint($will_issue_request_token) { } + public function isRequestTokenEndpoint($will_issue_request_token) {} /** * @param string $req_params * @return bool */ - final public function removeRequiredParameter($req_params) { } + final public function removeRequiredParameter($req_params) {} /** * @param string $oauthexception * @param bool $send_headers * @return string */ - final public static function reportProblem($oauthexception, $send_headers = true) { } + final public static function reportProblem($oauthexception, $send_headers = true) {} /** * @param string $param_key * @param mixed $param_val * @return bool */ - final public function setParam($param_key, $param_val = null) { } - + final public function setParam($param_key, $param_val = null) {} /** * @param string $path * @return bool */ - final public function setRequestTokenPath($path) { } + final public function setRequestTokenPath($path) {} /** * @param callback $callback_function * @return void */ - public function timestampNonceHandler($callback_function) { } + public function timestampNonceHandler($callback_function) {} /** * @param callback $callback_function * @return void */ - public function tokenHandler($callback_function) { } + public function tokenHandler($callback_function) {} } diff --git a/oci8/oci8.php b/oci8/oci8.php index cfce720d1..d57beda00 100644 --- a/oci8/oci8.php +++ b/oci8/oci8.php @@ -6,365 +6,363 @@ * OCI8 LOB functionality for large binary (BLOB) and character (CLOB) objects. * @link https://php.net/manual/en/class.OCI-Lob.php */ -class OCI_Lob { - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Returns large object's contents - * @link https://php.net/manual/en/oci-lob.load.php - * @return string|false The contents of the object, or FALSE on errors. - */ - public function load () {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Returns the current position of internal pointer of large object - * @link https://php.net/manual/en/oci-lob.tell.php - * @return int|false Current position of a LOB's internal pointer or FALSE if an - * error occurred. - */ - public function tell () {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Truncates large object - * @link https://php.net/manual/en/oci-lob.truncate.php - * @param int $length [optional]

      - * If provided, this method will truncate the LOB to - * length bytes. Otherwise, it will completely - * purge the LOB. - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function truncate ($length = 0) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Erases a specified portion of the internal LOB data - * @link https://php.net/manual/en/oci-lob.erase.php - * @param int $offset [optional] - * @param int $length [optional] - * @return int|false The actual number of characters/bytes erased or FALSE on failure. - */ - public function erase ($offset = null, $length = null) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Flushes/writes buffer of the LOB to the server - * @link https://php.net/manual/en/oci-lob.flush.php - * @param int $flag [optional]

      - * By default, resources are not freed, but using flag - * OCI_LOB_BUFFER_FREE you can do it explicitly. - * Be sure you know what you're doing - next read/write operation to the - * same part of LOB will involve a round-trip to the server and initialize - * new buffer resources. It is recommended to use - * OCI_LOB_BUFFER_FREE flag only when you are not - * going to work with the LOB anymore. - *

      - * @return bool TRUE on success or FALSE on failure. - *

      - *

      - * Returns FALSE if buffering was not enabled or an error occurred. - */ - public function flush ($flag = null) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Changes current state of buffering for the large object - * @link https://php.net/manual/en/oci-lob.setbuffering.php - * @param bool $on_off

      - * TRUE for on and FALSE for off. - *

      - * @return bool TRUE on success or FALSE on failure. Repeated calls to this method with the same flag will - * return TRUE. - */ - public function setbuffering ($on_off) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Returns current state of buffering for the large object - * @link https://php.net/manual/en/oci-lob.getbuffering.php - * @return bool FALSE if buffering for the large object is off and TRUE if - * buffering is used. - */ - public function getbuffering () {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Moves the internal pointer to the beginning of the large object - * @link https://php.net/manual/en/oci-lob.rewind.php - * @return bool TRUE on success or FALSE on failure. - */ - public function rewind () {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Reads part of the large object - * @link https://php.net/manual/en/oci-lob.read.php - * @param int $length

      - * The length of data to read, in bytes. Large values will be rounded down to 1 MB. - *

      - * @return string|false The contents as a string, or FALSE on failure. - */ - public function read ($length) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Tests for end-of-file on a large object's descriptor - * @link https://php.net/manual/en/oci-lob.eof.php - * @return bool TRUE if internal pointer of large object is at the end of LOB. - * Otherwise returns FALSE. - */ - public function eof () {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Sets the internal pointer of the large object - * @link https://php.net/manual/en/oci-lob.seek.php - * @param int $offset

      - * Indicates the amount of bytes, on which internal pointer should be - * moved from the position, pointed by whence. - *

      - * @param int $whence [optional]

      - * May be one of: - * OCI_SEEK_SET - sets the position equal to - * offset - * OCI_SEEK_CUR - adds offset - * bytes to the current position - * OCI_SEEK_END - adds offset - * bytes to the end of large object (use negative value to move to a position - * before the end of large object) - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function seek ($offset, $whence = OCI_SEEK_SET) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Writes data to the large object - * @link https://php.net/manual/en/oci-lob.write.php - * @param string $data

      - * The data to write in the LOB. - *

      - * @param int $length [optional]

      - * If this parameter is given, writing will stop after - * length bytes have been written or the end of - * data is reached, whichever comes first. - *

      - * @return int|false The number of bytes written or FALSE on failure. - */ - public function write ($data, $length = null) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Appends data from the large object to another large object - * @link https://php.net/manual/en/oci-lob.append.php - * @param OCI_Lob $lob_from

      - * The copied LOB. - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function append (OCI_Lob $lob_from) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Returns size of large object - * @link https://php.net/manual/en/oci-lob.size.php - * @return int|false Length of large object value or FALSE on failure. - * Empty objects have zero length. - */ - public function size () {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Alias of {@see OCI_Lob::export} - * @link https://php.net/manual/en/oci-lob.writetofile.php - * @param $filename - * @param $start [optional] - * @param $length [optional] +class OCI_Lob +{ + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Returns large object's contents + * @link https://php.net/manual/en/oci-lob.load.php + * @return string|false The contents of the object, or FALSE on errors. + */ + public function load() {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Returns the current position of internal pointer of large object + * @link https://php.net/manual/en/oci-lob.tell.php + * @return int|false Current position of a LOB's internal pointer or FALSE if an + * error occurred. + */ + public function tell() {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Truncates large object + * @link https://php.net/manual/en/oci-lob.truncate.php + * @param int $length [optional]

      + * If provided, this method will truncate the LOB to + * length bytes. Otherwise, it will completely + * purge the LOB. + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function truncate($length = 0) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Erases a specified portion of the internal LOB data + * @link https://php.net/manual/en/oci-lob.erase.php + * @param int $offset [optional] + * @param int $length [optional] + * @return int|false The actual number of characters/bytes erased or FALSE on failure. + */ + public function erase($offset = null, $length = null) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Flushes/writes buffer of the LOB to the server + * @link https://php.net/manual/en/oci-lob.flush.php + * @param int $flag [optional]

      + * By default, resources are not freed, but using flag + * OCI_LOB_BUFFER_FREE you can do it explicitly. + * Be sure you know what you're doing - next read/write operation to the + * same part of LOB will involve a round-trip to the server and initialize + * new buffer resources. It is recommended to use + * OCI_LOB_BUFFER_FREE flag only when you are not + * going to work with the LOB anymore. + *

      + * @return bool TRUE on success or FALSE on failure. + *

      + *

      + * Returns FALSE if buffering was not enabled or an error occurred. + */ + public function flush($flag = null) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Changes current state of buffering for the large object + * @link https://php.net/manual/en/oci-lob.setbuffering.php + * @param bool $on_off

      + * TRUE for on and FALSE for off. + *

      + * @return bool TRUE on success or FALSE on failure. Repeated calls to this method with the same flag will + * return TRUE. + */ + public function setbuffering($on_off) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Returns current state of buffering for the large object + * @link https://php.net/manual/en/oci-lob.getbuffering.php + * @return bool FALSE if buffering for the large object is off and TRUE if + * buffering is used. + */ + public function getbuffering() {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Moves the internal pointer to the beginning of the large object + * @link https://php.net/manual/en/oci-lob.rewind.php + * @return bool TRUE on success or FALSE on failure. + */ + public function rewind() {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Reads part of the large object + * @link https://php.net/manual/en/oci-lob.read.php + * @param int $length

      + * The length of data to read, in bytes. Large values will be rounded down to 1 MB. + *

      + * @return string|false The contents as a string, or FALSE on failure. + */ + public function read($length) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Tests for end-of-file on a large object's descriptor + * @link https://php.net/manual/en/oci-lob.eof.php + * @return bool TRUE if internal pointer of large object is at the end of LOB. + * Otherwise returns FALSE. + */ + public function eof() {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Sets the internal pointer of the large object + * @link https://php.net/manual/en/oci-lob.seek.php + * @param int $offset

      + * Indicates the amount of bytes, on which internal pointer should be + * moved from the position, pointed by whence. + *

      + * @param int $whence [optional]

      + * May be one of: + * OCI_SEEK_SET - sets the position equal to + * offset + * OCI_SEEK_CUR - adds offset + * bytes to the current position + * OCI_SEEK_END - adds offset + * bytes to the end of large object (use negative value to move to a position + * before the end of large object) + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function seek($offset, $whence = OCI_SEEK_SET) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Writes data to the large object + * @link https://php.net/manual/en/oci-lob.write.php + * @param string $data

      + * The data to write in the LOB. + *

      + * @param int $length [optional]

      + * If this parameter is given, writing will stop after + * length bytes have been written or the end of + * data is reached, whichever comes first. + *

      + * @return int|false The number of bytes written or FALSE on failure. + */ + public function write($data, $length = null) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Appends data from the large object to another large object + * @link https://php.net/manual/en/oci-lob.append.php + * @param OCI_Lob $lob_from

      + * The copied LOB. + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function append(OCI_Lob $lob_from) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Returns size of large object + * @link https://php.net/manual/en/oci-lob.size.php + * @return int|false Length of large object value or FALSE on failure. + * Empty objects have zero length. + */ + public function size() {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Alias of {@see OCI_Lob::export} + * @link https://php.net/manual/en/oci-lob.writetofile.php + * @param $filename + * @param $start [optional] + * @param $length [optional] * @return bool TRUE on success or FALSE on failure. - */ - public function writetofile ($filename, $start, $length) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Exports LOB's contents to a file - * @link https://php.net/manual/en/oci-lob.export.php - * @param string $filename

      - * Path to the file. - *

      - * @param int $start [optional]

      - * Indicates from where to start exporting. - *

      - * @param int $length [optional]

      - * Indicates the length of data to be exported. - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function export ($filename, $start = null, $length = null) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Imports file data to the LOB - * @link https://php.net/manual/en/oci-lob.import.php - * @param string $filename

      - * Path to the file. - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function import ($filename) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Writes a temporary large object - * @link https://php.net/manual/en/oci-lob.writetemporary.php - * @param string $data

      - * The data to write. - *

      - * @param int $lob_type [optional]

      - * Can be one of the following: - * OCI_TEMP_BLOB is used to create temporary BLOBs - * OCI_TEMP_CLOB is used to create - * temporary CLOBs - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function writeTemporary ($data, $lob_type = OCI_TEMP_CLOB) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Closes LOB descriptor - * @link https://php.net/manual/en/oci-lob.close.php - * @return bool TRUE on success or FALSE on failure. - */ - public function close () {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Saves data to the large object - * @link https://php.net/manual/en/oci-lob.save.php - * @param string $data

      - * The data to be saved. - *

      - * @param int $offset [optional]

      - * Can be used to indicate offset from the beginning of the large object. - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function save ($data, $offset = null) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Alias of {@see OCI_Lob::import} - * @link https://php.net/manual/en/oci-lob.savefile.php - * @param $filename + */ + public function writetofile($filename, $start, $length) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Exports LOB's contents to a file + * @link https://php.net/manual/en/oci-lob.export.php + * @param string $filename

      + * Path to the file. + *

      + * @param int $start [optional]

      + * Indicates from where to start exporting. + *

      + * @param int $length [optional]

      + * Indicates the length of data to be exported. + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function export($filename, $start = null, $length = null) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Imports file data to the LOB + * @link https://php.net/manual/en/oci-lob.import.php + * @param string $filename

      + * Path to the file. + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function import($filename) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Writes a temporary large object + * @link https://php.net/manual/en/oci-lob.writetemporary.php + * @param string $data

      + * The data to write. + *

      + * @param int $lob_type [optional]

      + * Can be one of the following: + * OCI_TEMP_BLOB is used to create temporary BLOBs + * OCI_TEMP_CLOB is used to create + * temporary CLOBs + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function writeTemporary($data, $lob_type = OCI_TEMP_CLOB) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Closes LOB descriptor + * @link https://php.net/manual/en/oci-lob.close.php + * @return bool TRUE on success or FALSE on failure. + */ + public function close() {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Saves data to the large object + * @link https://php.net/manual/en/oci-lob.save.php + * @param string $data

      + * The data to be saved. + *

      + * @param int $offset [optional]

      + * Can be used to indicate offset from the beginning of the large object. + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function save($data, $offset = null) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Alias of {@see OCI_Lob::import} + * @link https://php.net/manual/en/oci-lob.savefile.php + * @param $filename * @return bool Return true on success and false on failure - */ - public function savefile ($filename) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Frees resources associated with the LOB descriptor - * @link https://php.net/manual/en/oci-lob.free.php - * @return bool TRUE on success or FALSE on failure. - */ - public function free () {} - + */ + public function savefile($filename) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Frees resources associated with the LOB descriptor + * @link https://php.net/manual/en/oci-lob.free.php + * @return bool TRUE on success or FALSE on failure. + */ + public function free() {} } /** * OCI8 Collection functionality. * @link https://php.net/manual/en/class.OCI-Collection.php */ -class OCI_Collection { - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Appends element to the collection - * @link https://php.net/manual/en/oci-collection.append.php - * @param mixed $value

      - * The value to be added to the collection. Can be a string or a number. - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function append ($value) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Returns value of the element - * @link https://php.net/manual/en/oci-collection.getelem.php - * @param int $index

      - * The element index. First index is 0. - *

      - * @return mixed FALSE if such element doesn't exist; NULL if element is NULL; - * string if element is column of a string datatype or number if element is - * numeric field. - */ - public function getelem ($index) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Assigns a value to the element of the collection - * @link https://php.net/manual/en/oci-collection.assignelem.php - * @param int $index

      - * The element index. First index is 0. - *

      - * @param mixed $value

      - * Can be a string or a number. - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function assignelem ($index, $value) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Assigns a value to the collection from another existing collection - * @link https://php.net/manual/en/oci-collection.assign.php - * @param OCI_Collection $from

      - * An instance of OCI-Collection. - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function assign (OCI_Collection $from) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Returns size of the collection - * @link https://php.net/manual/en/oci-collection.size.php - * @return int|false The number of elements in the collection or FALSE on error. - */ - public function size () {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Returns the maximum number of elements in the collection - * @link https://php.net/manual/en/oci-collection.max.php - * @return int|false The maximum number as an integer, or FALSE on errors. - *

      - *

      - * If the returned value is 0, then the number of elements is not limited. - */ - public function max () {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Trims elements from the end of the collection - * @link https://php.net/manual/en/oci-collection.trim.php - * @param int $num

      - * The number of elements to be trimmed. - *

      - * @return bool TRUE on success or FALSE on failure. - */ - public function trim ($num) {} - - /** - * (PHP 5, PECL OCI8 >= 1.1.0)
      - * Frees the resources associated with the collection object - * @link https://php.net/manual/en/oci-collection.free.php - * @return bool TRUE on success or FALSE on failure. - */ - public function free () {} - +class OCI_Collection +{ + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Appends element to the collection + * @link https://php.net/manual/en/oci-collection.append.php + * @param mixed $value

      + * The value to be added to the collection. Can be a string or a number. + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function append($value) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Returns value of the element + * @link https://php.net/manual/en/oci-collection.getelem.php + * @param int $index

      + * The element index. First index is 0. + *

      + * @return mixed FALSE if such element doesn't exist; NULL if element is NULL; + * string if element is column of a string datatype or number if element is + * numeric field. + */ + public function getelem($index) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Assigns a value to the element of the collection + * @link https://php.net/manual/en/oci-collection.assignelem.php + * @param int $index

      + * The element index. First index is 0. + *

      + * @param mixed $value

      + * Can be a string or a number. + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function assignelem($index, $value) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Assigns a value to the collection from another existing collection + * @link https://php.net/manual/en/oci-collection.assign.php + * @param OCI_Collection $from

      + * An instance of OCI-Collection. + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function assign(OCI_Collection $from) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Returns size of the collection + * @link https://php.net/manual/en/oci-collection.size.php + * @return int|false The number of elements in the collection or FALSE on error. + */ + public function size() {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Returns the maximum number of elements in the collection + * @link https://php.net/manual/en/oci-collection.max.php + * @return int|false The maximum number as an integer, or FALSE on errors. + *

      + *

      + * If the returned value is 0, then the number of elements is not limited. + */ + public function max() {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Trims elements from the end of the collection + * @link https://php.net/manual/en/oci-collection.trim.php + * @param int $num

      + * The number of elements to be trimmed. + *

      + * @return bool TRUE on success or FALSE on failure. + */ + public function trim($num) {} + + /** + * (PHP 5, PECL OCI8 >= 1.1.0)
      + * Frees the resources associated with the collection object + * @link https://php.net/manual/en/oci-collection.free.php + * @return bool TRUE on success or FALSE on failure. + */ + public function free() {} } /** @@ -426,7 +424,7 @@ function oci_unregister_taf_callback($connection) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_define_by_name ($statement, $column_name, &$variable, $type = SQLT_CHR) {} +function oci_define_by_name($statement, $column_name, &$variable, $type = SQLT_CHR) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -475,7 +473,7 @@ function oci_define_by_name ($statement, $column_name, &$variable, $type = SQLT_ *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_bind_by_name ($statement, $bv_name, &$variable, $maxlength = -1, $type = SQLT_CHR) {} +function oci_bind_by_name($statement, $bv_name, &$variable, $maxlength = -1, $type = SQLT_CHR) {} /** * (PHP 5 >= 5.1.2, PECL OCI8 >= 1.2.0)
      @@ -507,7 +505,7 @@ function oci_bind_by_name ($statement, $bv_name, &$variable, $maxlength = -1, $t *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_bind_array_by_name ($statement, $name, array &$var_array, $max_table_length, $max_item_length = -1, $type = SQLT_AFC) {} +function oci_bind_array_by_name($statement, $name, array &$var_array, $max_table_length, $max_item_length = -1, $type = SQLT_AFC) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -521,7 +519,7 @@ function oci_bind_array_by_name ($statement, $name, array &$var_array, $max_tabl *

      * @return bool TRUE if field is NULL, FALSE otherwise. */ -function oci_field_is_null ($statement, $field) {} +function oci_field_is_null($statement, $field) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -535,7 +533,7 @@ function oci_field_is_null ($statement, $field) {} *

      * @return string|false The name as a string, or FALSE on errors. */ -function oci_field_name ($statement, $field) {} +function oci_field_name($statement, $field) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -550,7 +548,7 @@ function oci_field_name ($statement, $field) {} * @return int|false The size of a field in bytes, or FALSE on * errors. */ -function oci_field_size ($statement, $field) {} +function oci_field_size($statement, $field) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -564,7 +562,7 @@ function oci_field_size ($statement, $field) {} *

      * @return int|false The scale as an integer, or FALSE on errors. */ -function oci_field_scale ($statement, $field) {} +function oci_field_scale($statement, $field) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -578,7 +576,7 @@ function oci_field_scale ($statement, $field) {} *

      * @return int|false The precision as an integer, or FALSE on errors. */ -function oci_field_precision ($statement, $field) {} +function oci_field_precision($statement, $field) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -592,7 +590,7 @@ function oci_field_precision ($statement, $field) {} *

      * @return mixed the field data type as a string, or FALSE on errors. */ -function oci_field_type ($statement, $field) {} +function oci_field_type($statement, $field) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -606,7 +604,7 @@ function oci_field_type ($statement, $field) {} *

      * @return int|false Oracle's raw data type as a string, or FALSE on errors. */ -function oci_field_type_raw ($statement, $field) {} +function oci_field_type_raw($statement, $field) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -674,7 +672,7 @@ function oci_field_type_raw ($statement, $field) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_execute ($statement, $mode = OCI_COMMIT_ON_SUCCESS) {} +function oci_execute($statement, $mode = OCI_COMMIT_ON_SUCCESS) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -685,7 +683,7 @@ function oci_execute ($statement, $mode = OCI_COMMIT_ON_SUCCESS) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_cancel ($statement) {} +function oci_cancel($statement) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -698,7 +696,7 @@ function oci_cancel ($statement) {} * @return bool TRUE on success or FALSE if there are no more rows in the * statement. */ -function oci_fetch ($statement) {} +function oci_fetch($statement) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -734,7 +732,7 @@ function oci_fetch ($statement) {} * data fields. *

      */ -function oci_fetch_object ($statement) {} +function oci_fetch_object($statement) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -747,7 +745,7 @@ function oci_fetch_object ($statement) {} * @return array|false A numerically indexed array. If there are no more rows in * the statement then FALSE is returned. */ -function oci_fetch_row ($statement) {} +function oci_fetch_row($statement) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -760,7 +758,7 @@ function oci_fetch_row ($statement) {} * @return array|false An associative array. If there are no more rows in * the statement then FALSE is returned. */ -function oci_fetch_assoc ($statement) {} +function oci_fetch_assoc($statement) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -847,7 +845,7 @@ function oci_fetch_assoc ($statement) {} * column will be returned via PHP. *

      */ -function oci_fetch_array ($statement, $mode = null) {} +function oci_fetch_array($statement, $mode = null) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -860,7 +858,7 @@ function oci_fetch_array ($statement, $mode = null) {} * @param int $mode [optional] * @return int|bool */ -function ocifetchinto ($statement_resource, &$result, $mode = null) {} +function ocifetchinto($statement_resource, &$result, $mode = null) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -950,7 +948,7 @@ function ocifetchinto ($statement_resource, &$result, $mode = null) {} * @return int|false The number of rows in output, which * may be 0 or more, or FALSE on failure. */ -function oci_fetch_all ($statement, array &$output, $skip = 0, $maxrows = -1, $flags = OCI_FETCHSTATEMENT_BY_COLUMN | OCI_ASSOC) {} +function oci_fetch_all($statement, array &$output, $skip = 0, $maxrows = -1, $flags = OCI_FETCHSTATEMENT_BY_COLUMN|OCI_ASSOC) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -961,7 +959,7 @@ function oci_fetch_all ($statement, array &$output, $skip = 0, $maxrows = -1, $f *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_free_statement ($statement) {} +function oci_free_statement($statement) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -973,7 +971,7 @@ function oci_free_statement ($statement) {} * @removed 8.0 * @return void No value is returned. */ -function oci_internal_debug ($onoff) {} +function oci_internal_debug($onoff) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -984,7 +982,7 @@ function oci_internal_debug ($onoff) {} *

      * @return int|false The number of columns as an integer, or FALSE on errors. */ -function oci_num_fields ($statement) {} +function oci_num_fields($statement) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1005,7 +1003,7 @@ function oci_num_fields ($statement) {} *

      * @return resource|false A statement handle on success, or FALSE on error. */ -function oci_parse ($connection, $sql_text) {} +function oci_parse($connection, $sql_text) {} /** * (PECL OCI8 >= 2.0.0)
      @@ -1023,7 +1021,7 @@ function oci_parse ($connection, $sql_text) {} * by previous calls * to {@see oci_get_implicit_resultset}. */ -function oci_get_implicit_resultset ($statement) {} +function oci_get_implicit_resultset($statement) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1035,7 +1033,7 @@ function oci_get_implicit_resultset ($statement) {} *

      * @return resource|false A new statement handle, or FALSE on error. */ -function oci_new_cursor ($connection) {} +function oci_new_cursor($connection) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1051,7 +1049,7 @@ function oci_new_cursor ($connection) {} * @return mixed everything as strings except for abstract types (ROWIDs, LOBs and * FILEs). Returns FALSE on error. */ -function oci_result ($statement, $field) {} +function oci_result($statement, $field) {} /** * (PHP 5.3.7, PECL OCI8 >= 1.4.6)
      @@ -1059,7 +1057,7 @@ function oci_result ($statement, $field) {} * @link https://php.net/manual/en/function.oci-client-version.php * @return string the version number as a string. */ -function oci_client_version () {} +function oci_client_version() {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1068,7 +1066,7 @@ function oci_client_version () {} * @param resource $connection * @return string|false The version information as a string or FALSE on error. */ -function oci_server_version ($connection) {} +function oci_server_version($connection) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1134,7 +1132,7 @@ function oci_server_version ($connection) {} *

      * Returns FALSE on error. */ -function oci_statement_type ($statement) {} +function oci_statement_type($statement) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1145,7 +1143,7 @@ function oci_statement_type ($statement) {} *

      * @return int|false The number of rows affected as an integer, or FALSE on errors. */ -function oci_num_rows ($statement) {} +function oci_num_rows($statement) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1158,7 +1156,7 @@ function oci_num_rows ($statement) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_close ($connection) {} +function oci_close($connection) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1252,7 +1250,7 @@ function oci_close ($connection) {} *

      * @return resource|false A connection identifier or FALSE on error. */ -function oci_connect ($username, $password, $connection_string = null, $character_set = null, $session_mode = null) {} +function oci_connect($username, $password, $connection_string = null, $character_set = null, $session_mode = null) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1345,7 +1343,7 @@ function oci_connect ($username, $password, $connection_string = null, $characte *

      * @return resource|false A connection identifier or FALSE on error. */ -function oci_new_connect ($username, $password, $connection_string = null, $character_set = null, $session_mode = null) {} +function oci_new_connect($username, $password, $connection_string = null, $character_set = null, $session_mode = null) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1438,7 +1436,7 @@ function oci_new_connect ($username, $password, $connection_string = null, $char *

      * @return resource|false A connection identifier or FALSE on error. */ -function oci_pconnect ($username, $password, $connection_string = null, $character_set = null, $session_mode = null) {} +function oci_pconnect($username, $password, $connection_string = null, $character_set = null, $session_mode = null) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1495,7 +1493,7 @@ function oci_pconnect ($username, $password, $connection_string = null, $charact * * */ -function oci_error ($resource = null) {} +function oci_error($resource = null) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1504,7 +1502,7 @@ function oci_error ($resource = null) {} * @param resource $descriptor * @return bool TRUE on success or FALSE on failure. */ -function oci_free_descriptor ($descriptor) {} +function oci_free_descriptor($descriptor) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1518,7 +1516,7 @@ function oci_free_descriptor ($descriptor) {} *

      * @return bool TRUE if these objects are equal, FALSE otherwise. */ -function oci_lob_is_equal (OCI_Lob $lob1, OCI_Lob $lob2) {} +function oci_lob_is_equal(OCI_Lob $lob1, OCI_Lob $lob2) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1535,7 +1533,7 @@ function oci_lob_is_equal (OCI_Lob $lob1, OCI_Lob $lob2) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_lob_copy (OCI_Lob $lob_to, OCI_Lob $lob_from, $length = 0) {} +function oci_lob_copy(OCI_Lob $lob_to, OCI_Lob $lob_from, $length = 0) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1547,7 +1545,7 @@ function oci_lob_copy (OCI_Lob $lob_to, OCI_Lob $lob_from, $length = 0) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_commit ($connection) {} +function oci_commit($connection) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1560,7 +1558,7 @@ function oci_commit ($connection) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_rollback ($connection) {} +function oci_rollback($connection) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1577,7 +1575,7 @@ function oci_rollback ($connection) {} *

      * @return OCI_Lob|false A new LOB or FILE descriptor on success, FALSE on error. */ -function oci_new_descriptor ($connection, $type = OCI_DTYPE_LOB) {} +function oci_new_descriptor($connection, $type = OCI_DTYPE_LOB) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1592,7 +1590,7 @@ function oci_new_descriptor ($connection, $type = OCI_DTYPE_LOB) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_set_prefetch ($statement, $rows) {} +function oci_set_prefetch($statement, $rows) {} /** * (PHP 5.3.2, PECL OCI8 >= 1.4.0)
      @@ -1606,7 +1604,7 @@ function oci_set_prefetch ($statement, $rows) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_set_client_identifier ($connection, $client_identifier) {} +function oci_set_client_identifier($connection, $client_identifier) {} /** * (PHP 5.3.2, PECL OCI8 >= 1.4.0)
      @@ -1618,7 +1616,7 @@ function oci_set_client_identifier ($connection, $client_identifier) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_set_edition ($edition) {} +function oci_set_edition($edition) {} /** * (PHP 5.3.2, PECL OCI8 >= 1.4.0)
      @@ -1632,7 +1630,7 @@ function oci_set_edition ($edition) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_set_module_name ($connection, $module_name) {} +function oci_set_module_name($connection, $module_name) {} /** * (PHP 5.3.2, PECL OCI8 >= 1.4.0)
      @@ -1646,7 +1644,7 @@ function oci_set_module_name ($connection, $module_name) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_set_action ($connection, $action_name) {} +function oci_set_action($connection, $action_name) {} /** * (PHP 5.3.2, PECL OCI8 >= 1.4.0)
      @@ -1660,7 +1658,7 @@ function oci_set_action ($connection, $action_name) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_set_client_info ($connection, $client_info) {} +function oci_set_client_info($connection, $client_info) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1681,7 +1679,7 @@ function oci_set_client_info ($connection, $client_info) {} *

      * @return bool TRUE on success or FALSE on failure. */ -function oci_password_change ($connection, $username, $old_password, $new_password) {} +function oci_password_change($connection, $username, $old_password, $new_password) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -1701,7 +1699,7 @@ function oci_password_change ($connection, $username, $old_password, $new_passwo * @return OCI_Collection|false A new OCICollection object or FALSE on * error. */ -function oci_new_collection ($connection, $tdo, $schema = null) {} +function oci_new_collection($connection, $tdo, $schema = null) {} /** * Alias of {@see oci_free_statement()} @@ -1709,7 +1707,7 @@ function oci_new_collection ($connection, $tdo, $schema = null) {} * @param $statement_resource * @return bool Returns TRUE on success or FALSE on failure. */ -function oci_free_cursor ($statement_resource) {} +function oci_free_cursor($statement_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1719,7 +1717,7 @@ function oci_free_cursor ($statement_resource) {} * @param resource $statement_resource * @return bool TRUE on success or FALSE on failure. */ -function ocifreecursor ($statement_resource) {} +function ocifreecursor($statement_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1732,7 +1730,7 @@ function ocifreecursor ($statement_resource) {} * @param int $type [optional] * @return bool Returns TRUE on success or FALSE on failure. */ -function ocibindbyname ($statement, $column_name, &$variable, $maximum_length = -1, $type = SQLT_CHR) {} +function ocibindbyname($statement, $column_name, &$variable, $maximum_length = -1, $type = SQLT_CHR) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1745,7 +1743,7 @@ function ocibindbyname ($statement, $column_name, &$variable, $maximum_length = * You can optionally use {@see oci_new_descriptor()} to allocate LOB/ROWID/BFILE descriptors.

      * @return bool Returns TRUE on success or FALSE on failure. */ -function ocidefinebyname ($statement, $column_name, &$variable, $type = SQLT_CHR) {} +function ocidefinebyname($statement, $column_name, &$variable, $type = SQLT_CHR) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1755,7 +1753,7 @@ function ocidefinebyname ($statement, $column_name, &$variable, $type = SQLT_CHR * @param mixed $column_number_or_name * @return bool Returns TRUE if field is NULL, FALSE otherwise. */ -function ocicolumnisnull ($statement, $column_number_or_name) {} +function ocicolumnisnull($statement, $column_number_or_name) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1765,7 +1763,7 @@ function ocicolumnisnull ($statement, $column_number_or_name) {} * @param mixed $column_number * @return string|false Returns the name as a string, or FALSE on errors. */ -function ocicolumnname ($statement, $column_number) {} +function ocicolumnname($statement, $column_number) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1775,7 +1773,7 @@ function ocicolumnname ($statement, $column_number) {} * @param mixed $column_number_or_name * @return int|false Returns the size of a field in bytes, or FALSE on errors. */ -function ocicolumnsize ($statement, $column_number_or_name) {} +function ocicolumnsize($statement, $column_number_or_name) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1785,7 +1783,7 @@ function ocicolumnsize ($statement, $column_number_or_name) {} * @param $column_number * @return int|false Returns the scale as an integer, or FALSE on errors. */ -function ocicolumnscale ($statement_resource, $column_number) {} +function ocicolumnscale($statement_resource, $column_number) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1795,7 +1793,7 @@ function ocicolumnscale ($statement_resource, $column_number) {} * @param string|int $column_number * @return int|false Returns the precision as an integer, or FALSE on errors. */ -function ocicolumnprecision ($statement_resource, $column_number) {} +function ocicolumnprecision($statement_resource, $column_number) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1805,7 +1803,7 @@ function ocicolumnprecision ($statement_resource, $column_number) {} * @param string|int $column_number * @return mixed|false Returns the field data type as a string, or FALSE on errors. */ -function ocicolumntype ($statement_resource, $column_number) {} +function ocicolumntype($statement_resource, $column_number) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1815,7 +1813,7 @@ function ocicolumntype ($statement_resource, $column_number) {} * @param string|int $column_number * @return int|false Returns Oracle's raw data type as a number, or FALSE on errors. */ -function ocicolumntyperaw ($statement_resource, $column_number) {} +function ocicolumntyperaw($statement_resource, $column_number) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1825,7 +1823,7 @@ function ocicolumntyperaw ($statement_resource, $column_number) {} * @param $mode [optional] * @return bool Returns TRUE on success or FALSE on failure */ -function ociexecute ($statement_resource, $mode = OCI_COMMIT_ON_SUCCESS) {} +function ociexecute($statement_resource, $mode = OCI_COMMIT_ON_SUCCESS) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1834,7 +1832,7 @@ function ociexecute ($statement_resource, $mode = OCI_COMMIT_ON_SUCCESS) {} * @param resource $statement_resource * @return bool Returns TRUE on success or FALSE on failure */ -function ocicancel ($statement_resource) {} +function ocicancel($statement_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1843,7 +1841,7 @@ function ocicancel ($statement_resource) {} * @param resource $statement_resource * @return bool Returns TRUE on success or FALSE if there are no more rows in the statement. */ -function ocifetch ($statement_resource) {} +function ocifetch($statement_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1856,7 +1854,7 @@ function ocifetch ($statement_resource) {} * @param int $flags [optional] * @return int|false Returns the number of rows in output, which may be 0 or more, or FALSE on failure. */ -function ocifetchstatement ($statement_resource, &$output, $skip, $maximum_rows, $flags) {} +function ocifetchstatement($statement_resource, &$output, $skip, $maximum_rows, $flags) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1865,7 +1863,7 @@ function ocifetchstatement ($statement_resource, &$output, $skip, $maximum_rows, * @param resource $statement_resource * @return bool Returns TRUE on success or FALSE on failure. */ -function ocifreestatement ($statement_resource) {} +function ocifreestatement($statement_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1874,7 +1872,7 @@ function ocifreestatement ($statement_resource) {} * @param bool $mode * @removed 8.0 */ -function ociinternaldebug ($mode) {} +function ociinternaldebug($mode) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1883,7 +1881,7 @@ function ociinternaldebug ($mode) {} * @param resource $statement_resource * @return int|false Returns the number of columns as an integer, or FALSE on errors. */ -function ocinumcols ($statement_resource) {} +function ocinumcols($statement_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1893,7 +1891,7 @@ function ocinumcols ($statement_resource) {} * @param string $sql_text * @return resource|false Returns a statement handle on success, or FALSE on error. */ -function ociparse ($connection_resource, $sql_text) {} +function ociparse($connection_resource, $sql_text) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1902,7 +1900,7 @@ function ociparse ($connection_resource, $sql_text) {} * @param resource $connection_resource * @return resource|false Returns a new statement handle, or FALSE on error. */ -function ocinewcursor ($connection_resource) {} +function ocinewcursor($connection_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1912,7 +1910,7 @@ function ocinewcursor ($connection_resource) {} * @param $column_number_or_name * @return false|mixed Returns everything as strings except for abstract types (ROWIDs, LOBs and FILEs). Returns FALSE on error. */ -function ociresult ($statement_resource, $column_number_or_name) {} +function ociresult($statement_resource, $column_number_or_name) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1921,7 +1919,7 @@ function ociresult ($statement_resource, $column_number_or_name) {} * @param $connection_resource * @return string|false Returns the version information as a string or FALSE on error. */ -function ociserverversion ($connection_resource) {} +function ociserverversion($connection_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1930,7 +1928,7 @@ function ociserverversion ($connection_resource) {} * @param resource $statement_resource * @return string|false Returns everything as strings except for abstract types (ROWIDs, LOBs and FILEs). Returns FALSE on error. */ -function ocistatementtype ($statement_resource) {} +function ocistatementtype($statement_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1939,7 +1937,7 @@ function ocistatementtype ($statement_resource) {} * @param resource $statement_resource * @return int|false Returns the number of rows affected as an integer, or FALSE on errors. */ -function ocirowcount ($statement_resource) {} +function ocirowcount($statement_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1948,7 +1946,7 @@ function ocirowcount ($statement_resource) {} * @param resource $connection_resource * @return bool Returns TRUE on success or FALSE on failure. */ -function ocilogoff ($connection_resource) {} +function ocilogoff($connection_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1961,7 +1959,7 @@ function ocilogoff ($connection_resource) {} * @param int $session_mode[optional] * @return resource|false Returns a connection identifier or FALSE on error. */ -function ocilogon ($username, $password, $connection_string, $character_set, $session_mode) {} +function ocilogon($username, $password, $connection_string, $character_set, $session_mode) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1975,7 +1973,7 @@ function ocilogon ($username, $password, $connection_string, $character_set, $se * @param $session_mode [optional] * @return resource|false

      Returns a connection identifier or FALSE on error.

      */ -function ocinlogon ($username, $password, $connection_string, $character_set, $session_mode) {} +function ocinlogon($username, $password, $connection_string, $character_set, $session_mode) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -1989,7 +1987,7 @@ function ocinlogon ($username, $password, $connection_string, $character_set, $s * @param $session_mode [optional] * @return resource|false

      Returns a connection identifier or FALSE on error.

      */ -function ociplogon ($username, $password, $connection_string, $character_set, $session_mode) {} +function ociplogon($username, $password, $connection_string, $character_set, $session_mode) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2000,7 +1998,7 @@ function ociplogon ($username, $password, $connection_string, $character_set, $s * For connection errors with oci_connect(), oci_new_connect() or oci_pconnect() do not pass resource. * @return array|false If no error is found, oci_error() returns FALSE. Otherwise, oci_error() returns the error information as an associative array. */ -function ocierror ($connection_or_statement_resource) {} +function ocierror($connection_or_statement_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2010,7 +2008,7 @@ function ocierror ($connection_or_statement_resource) {} * @param $lob_descriptor * @return bool

      Returns TRUE on success or FALSE on failure.

      */ -function ocifreedesc ($lob_descriptor) {} +function ocifreedesc($lob_descriptor) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2022,7 +2020,7 @@ function ocifreedesc ($lob_descriptor) {} * @param int $offset [optional] * @return bool */ -function ocisavelob ($lob_descriptor, $data, $offset) {} +function ocisavelob($lob_descriptor, $data, $offset) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2033,7 +2031,7 @@ function ocisavelob ($lob_descriptor, $data, $offset) {} * @param string $filename * @return bool */ -function ocisavelobfile ($lob_descriptor, $filename) {} +function ocisavelobfile($lob_descriptor, $filename) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2046,7 +2044,7 @@ function ocisavelobfile ($lob_descriptor, $filename) {} * @param int $length [optional]

      Indicates the length of data to be exported.

      * @return bool Returns TRUE on success or FALSE on failure. */ -function ociwritelobtofile ($lob_descriptor, $filename, $start, $length) {} +function ociwritelobtofile($lob_descriptor, $filename, $start, $length) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2056,7 +2054,7 @@ function ociwritelobtofile ($lob_descriptor, $filename, $start, $length) {} * @param OCI_Lob $lob_descriptor * @return string|false

      Returns the contents of the object, or FALSE on errors.

      */ -function ociloadlob ($lob_descriptor) {} +function ociloadlob($lob_descriptor) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2071,7 +2069,7 @@ function ociloadlob ($lob_descriptor) {} *

      * @return bool

      Returns TRUE on success or FALSE on failure.

      */ -function ocicommit ($connection_resource) {} +function ocicommit($connection_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2081,7 +2079,7 @@ function ocicommit ($connection_resource) {} * @param resource $connection_resource * @return bool

      Returns TRUE on success or FALSE on failure.

      */ -function ocirollback ($connection_resource) {} +function ocirollback($connection_resource) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2095,7 +2093,7 @@ function ocirollback ($connection_resource) {} * @param $type [optional]

      Valid values for type are: OCI_DTYPE_FILE, OCI_DTYPE_LOB and OCI_DTYPE_ROWID.

      * @return OCI_LOB|false Returns a new LOB or FILE descriptor on success, FALSE on error. */ -function ocinewdescriptor ($connection_resource, $type = OCI_DTYPE_LOB) {} +function ocinewdescriptor($connection_resource, $type = OCI_DTYPE_LOB) {} /** * (PHP 4, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2109,7 +2107,7 @@ function ocinewdescriptor ($connection_resource, $type = OCI_DTYPE_LOB) {} * @param $number_of_rows * @return bool

      Returns TRUE on success or FALSE on failure.

      */ -function ocisetprefetch ($statement_resource, $number_of_rows) {} +function ocisetprefetch($statement_resource, $number_of_rows) {} /** * (PHP 5, PECL OCI8 >= 1.1.0)
      @@ -2122,7 +2120,7 @@ function ocisetprefetch ($statement_resource, $number_of_rows) {} * @param string $new_password

      The new password to be set.

      * @return resource|bool

      Returns TRUE on success or FALSE on failure or resource, depending on the function parameters.

      */ -function ocipasswordchange ($connection_resource_or_connection_string_or_dbname, $username, $old_password, $new_password) {} +function ocipasswordchange($connection_resource_or_connection_string_or_dbname, $username, $old_password, $new_password) {} /** * (PHP 4 >= 4.0.7, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2131,7 +2129,7 @@ function ocipasswordchange ($connection_resource_or_connection_string_or_dbname, * @param OCI_Collection $collection * @return bool Returns TRUE on success or FALSE on failure. */ -function ocifreecollection ($collection) {} +function ocifreecollection($collection) {} /** * (PHP 4 >= 4.0.6, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2147,7 +2145,7 @@ function ocifreecollection ($collection) {} *

      * @return OCI_Collection|false

      Returns a new OCI_Collection object or FALSE on error.

      */ -function ocinewcollection ($connection_resource, $tdo, $schema = null) {} +function ocinewcollection($connection_resource, $tdo, $schema = null) {} /** * (PHP 4 >= 4.0.6, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2158,7 +2156,7 @@ function ocinewcollection ($connection_resource, $tdo, $schema = null) {} * @param mixed $value

      The value to be added to the collection. Can be a string or a number.

      * @return bool

      Returns TRUE on success or FALSE on failure.

      */ -function ocicollappend ($collection, $value) {} +function ocicollappend($collection, $value) {} /** * (PHP 4 >= 4.0.6, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2169,7 +2167,7 @@ function ocicollappend ($collection, $value) {} * @param int $index

      The element index. First index is 0.

      * @return mixed

      Returns FALSE if such element doesn't exist; NULL if element is NULL; string if element is column of a string datatype or number if element is numeric field.

      */ -function ocicollgetelem ($collection, $index) {} +function ocicollgetelem($collection, $index) {} /** * (PHP 4 >= 4.0.6, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2180,7 +2178,7 @@ function ocicollgetelem ($collection, $index) {} * @param $value

      Can be a string or a number.

      * @return bool

      Returns TRUE on success or FALSE on failure.

      */ -function ocicollassignelem ($collection, $index, $value) {} +function ocicollassignelem($collection, $index, $value) {} /** * (PHP 4 >= 4.0.6, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2190,7 +2188,7 @@ function ocicollassignelem ($collection, $index, $value) {} * @param OCI_Collection $collection * @return int|false

      Returns the number of elements in the collection or FALSE on error.

      */ -function ocicollsize ($collection) {} +function ocicollsize($collection) {} /** * (PHP 4 >= 4.0.6, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2201,7 +2199,7 @@ function ocicollsize ($collection) {} * @return int|false

      Returns the maximum number as an integer, or FALSE on errors. * If the returned value is 0, then the number of elements is not limited.

      */ -function ocicollmax ($collection) {} +function ocicollmax($collection) {} /** * (PHP 4 >= 4.0.6, PHP 5, PECL OCI8 >= 1.0.0)
      @@ -2212,8 +2210,7 @@ function ocicollmax ($collection) {} * @param int|float $number * @return bool Returns TRUE or FALSE on failure. */ -function ocicolltrim ($collection, $number) {} - +function ocicolltrim($collection, $number) {} /** * (PHP 4 >= 4.0.6, PECL OCI8 1.0) @@ -2235,7 +2232,7 @@ function ocicolltrim ($collection, $number) {} *
    * @return bool

    Returns TRUE on success or FALSE on failure.

    */ -function ociwritetemporarylob($lob_descriptor, $data, $lob_type = OCI_TEMP_CLOB ) {} +function ociwritetemporarylob($lob_descriptor, $data, $lob_type = OCI_TEMP_CLOB) {} /** * (PHP 4 >= 4.0.6, PECL OCI8 1.0) @@ -2244,7 +2241,7 @@ function ociwritetemporarylob($lob_descriptor, $data, $lob_type = OCI_TEMP_CLOB * @param OCI_Lob $lob_descriptor * @return bool

    Returns TRUE on success or FALSE on failure.

    */ -function ocicloselob($lob_descriptor){} +function ocicloselob($lob_descriptor) {} /** * (PHP 4 >= 4.0.6, PECL OCI8 1.0) @@ -2255,12 +2252,12 @@ function ocicloselob($lob_descriptor){} * @param OCI_Collection $from An instance of OCI-Collection. * @return bool

    Returns TRUE on success or FALSE on failure.

    */ -function ocicollassign($to, $from ) {} +function ocicollassign($to, $from) {} /** * See OCI_NO_AUTO_COMMIT. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_DEFAULT', 0); +define('OCI_DEFAULT', 0); /** * Used with {@see oci_connect} to connect with @@ -2269,7 +2266,7 @@ function ocicollassign($to, $from ) {} * should be enabled to use this. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_SYSOPER', 4); +define('OCI_SYSOPER', 4); /** * Used with {@see oci_connect} to connect with @@ -2278,7 +2275,7 @@ function ocicollassign($to, $from ) {} * should be enabled to use this. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_SYSDBA', 2); +define('OCI_SYSDBA', 2); /** * Used with {@see oci_connect} for using @@ -2286,7 +2283,7 @@ function ocicollassign($to, $from ) {} * 5.3 and PECL OCI8 1.3.4. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_CRED_EXT', -2147483648); +define('OCI_CRED_EXT', -2147483648); /** * Statement execution mode @@ -2295,7 +2292,7 @@ function ocicollassign($to, $from ) {} * fetch rows from the query. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_DESCRIBE_ONLY', 16); +define('OCI_DESCRIBE_ONLY', 16); /** * Statement execution mode for {@see oci_execute} @@ -2303,7 +2300,7 @@ function ocicollassign($to, $from ) {} * succeeded. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_COMMIT_ON_SUCCESS', 32); +define('OCI_COMMIT_ON_SUCCESS', 32); /** * Statement execution mode @@ -2314,7 +2311,7 @@ function ocicollassign($to, $from ) {} * Introduced in PHP 5.3.2 (PECL OCI8 1.4). * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_NO_AUTO_COMMIT', 0); +define('OCI_NO_AUTO_COMMIT', 0); /** * Obsolete. Statement fetch mode. Used when the application @@ -2325,87 +2322,87 @@ function ocicollassign($to, $from ) {} * resource usage. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_EXACT_FETCH', 2); +define('OCI_EXACT_FETCH', 2); /** * Used with to set the seek position. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_SEEK_SET', 0); +define('OCI_SEEK_SET', 0); /** * Used with to set the seek position. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_SEEK_CUR', 1); +define('OCI_SEEK_CUR', 1); /** * Used with to set the seek position. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_SEEK_END', 2); +define('OCI_SEEK_END', 2); /** * Used with to free * buffers used. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_LOB_BUFFER_FREE', 1); +define('OCI_LOB_BUFFER_FREE', 1); /** * The same as OCI_B_BFILE. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_BFILEE', 114); +define('SQLT_BFILEE', 114); /** * The same as OCI_B_CFILEE. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_CFILEE', 115); +define('SQLT_CFILEE', 115); /** * The same as OCI_B_CLOB. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_CLOB', 112); +define('SQLT_CLOB', 112); /** * The same as OCI_B_BLOB. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_BLOB', 113); +define('SQLT_BLOB', 113); /** * The same as OCI_B_ROWID. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_RDD', 104); +define('SQLT_RDD', 104); /** * The same as OCI_B_INT. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_INT', 3); +define('SQLT_INT', 3); /** * The same as OCI_B_NUM. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_NUM', 2); +define('SQLT_NUM', 2); /** * The same as OCI_B_CURSOR. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_RSET', 116); +define('SQLT_RSET', 116); /** * Used with {@see oci_bind_array_by_name} to bind arrays of * CHAR. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_AFC', 96); +define('SQLT_AFC', 96); /** * Used with {@see oci_bind_array_by_name} to bind arrays of @@ -2413,85 +2410,85 @@ function ocicollassign($to, $from ) {} * Also used with {@see oci_bind_by_name}. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_CHR', 1); +define('SQLT_CHR', 1); /** * Used with {@see oci_bind_array_by_name} to bind arrays of * VARCHAR. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_VCS', 9); +define('SQLT_VCS', 9); /** * Used with {@see oci_bind_array_by_name} to bind arrays of * VARCHAR2. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_AVC', 97); +define('SQLT_AVC', 97); /** * Used with {@see oci_bind_array_by_name} to bind arrays of * STRING. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_STR', 5); +define('SQLT_STR', 5); /** * Used with {@see oci_bind_array_by_name} to bind arrays of * LONG VARCHAR. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_LVC', 94); +define('SQLT_LVC', 94); /** * Used with {@see oci_bind_array_by_name} to bind arrays of * FLOAT. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_FLT', 4); +define('SQLT_FLT', 4); /** * Not supported. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_UIN', 68); +define('SQLT_UIN', 68); /** * Used with {@see oci_bind_by_name} to bind LONG values. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_LNG', 8); +define('SQLT_LNG', 8); /** * Used with {@see oci_bind_by_name} to bind LONG RAW values. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_LBI', 24); +define('SQLT_LBI', 24); /** * The same as OCI_B_BIN. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_BIN', 23); +define('SQLT_BIN', 23); /** * Used with {@see oci_bind_array_by_name} to bind arrays of * LONG. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_ODT', 156); +define('SQLT_ODT', 156); /** * Not supported. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_BDOUBLE', 22); +define('SQLT_BDOUBLE', 22); /** * Not supported. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_BFLOAT', 21); +define('SQLT_BFLOAT', 21); /** * Used with {@see oci_bind_by_name} when binding @@ -2499,54 +2496,54 @@ function ocicollassign($to, $from ) {} * OCI_B_SQLT_NTY. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_NTY', 108); +define('OCI_B_NTY', 108); /** * The same as OCI_B_NTY. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_NTY', 108); +define('SQLT_NTY', 108); /** * Obsolete. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_SYSDATE', "SYSDATE"); +define('OCI_SYSDATE', "SYSDATE"); /** * Used with {@see oci_bind_by_name} when binding * BFILEs. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_BFILE', 114); +define('OCI_B_BFILE', 114); /** * Used with {@see oci_bind_by_name} when binding * CFILEs. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_CFILEE', 115); +define('OCI_B_CFILEE', 115); /** * Used with {@see oci_bind_by_name} when binding * CLOBs. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_CLOB', 112); +define('OCI_B_CLOB', 112); /** * Used with {@see oci_bind_by_name} when * binding BLOBs. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_BLOB', 113); +define('OCI_B_BLOB', 113); /** * Used with {@see oci_bind_by_name} when binding * ROWIDs. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_ROWID', 104); +define('OCI_B_ROWID', 104); /** * Used with {@see oci_bind_by_name} when binding @@ -2554,39 +2551,39 @@ function ocicollassign($to, $from ) {} * with {@see oci_new_descriptor}. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_CURSOR', 116); +define('OCI_B_CURSOR', 116); /** * Used with {@see oci_bind_by_name} to bind RAW values. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_BIN', 23); +define('OCI_B_BIN', 23); /** * Used with {@see oci_bind_array_by_name} to bind arrays of * INTEGER. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_INT', 3); +define('OCI_B_INT', 3); /** * Used with {@see oci_bind_array_by_name} to bind arrays of * NUMBER. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_NUM', 2); +define('OCI_B_NUM', 2); /** * Default mode of {@see oci_fetch_all}. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_FETCHSTATEMENT_BY_COLUMN', 16); +define('OCI_FETCHSTATEMENT_BY_COLUMN', 16); /** * Alternative mode of {@see oci_fetch_all}. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_FETCHSTATEMENT_BY_ROW', 32); +define('OCI_FETCHSTATEMENT_BY_ROW', 32); /** * Used with {@see oci_fetch_all} and @@ -2594,7 +2591,7 @@ function ocicollassign($to, $from ) {} * array. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_ASSOC', 1); +define('OCI_ASSOC', 1); /** * Used with {@see oci_fetch_all} and @@ -2602,7 +2599,7 @@ function ocicollassign($to, $from ) {} * enumerated array. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_NUM', 2); +define('OCI_NUM', 2); /** * Used with {@see oci_fetch_all} and @@ -2610,81 +2607,81 @@ function ocicollassign($to, $from ) {} * array with both associative and number indices. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_BOTH', 3); +define('OCI_BOTH', 3); /** * Used with {@see oci_fetch_array} to get empty * array elements if the row items value is NULL. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_RETURN_NULLS', 4); +define('OCI_RETURN_NULLS', 4); /** * Used with {@see oci_fetch_array} to get the * data value of the LOB instead of the descriptor. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_RETURN_LOBS', 8); +define('OCI_RETURN_LOBS', 8); /** * This flag tells {@see oci_new_descriptor} to * initialize a new FILE descriptor. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_DTYPE_FILE', 56); +define('OCI_DTYPE_FILE', 56); /** * This flag tells {@see oci_new_descriptor} to * initialize a new LOB descriptor. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_DTYPE_LOB', 50); +define('OCI_DTYPE_LOB', 50); /** * This flag tells {@see oci_new_descriptor} to * initialize a new ROWID descriptor. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_DTYPE_ROWID', 54); +define('OCI_DTYPE_ROWID', 54); /** * The same as OCI_DTYPE_FILE. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_D_FILE', 56); +define('OCI_D_FILE', 56); /** * The same as OCI_DTYPE_LOB. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_D_LOB', 50); +define('OCI_D_LOB', 50); /** * The same as OCI_DTYPE_ROWID. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_D_ROWID', 54); +define('OCI_D_ROWID', 54); /** * Used with * to indicate that a temporary CLOB should be created. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_TEMP_CLOB', 2); +define('OCI_TEMP_CLOB', 2); /** * Used with * to indicate that a temporary BLOB should be created. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_TEMP_BLOB', 1); +define('OCI_TEMP_BLOB', 1); /** * (PECL OCI8 >= 2.0.7)
    * The same as OCI_B_BOL. * @link https://php.net/manual/en/oci8.constants.php */ -define ('SQLT_BOL', 252); +define('SQLT_BOL', 252); /** * (PECL OCI8 >= 2.0.7)
    @@ -2692,6 +2689,6 @@ function ocicollassign($to, $from ) {} * binding PL/SQL BOOLEAN. * @link https://php.net/manual/en/oci8.constants.php */ -define ('OCI_B_BOL', 252); +define('OCI_B_BOL', 252); // End of oci8 v.2.0.7 diff --git a/odbc/odbc.php b/odbc/odbc.php index d6c63c3d5..3526753e4 100644 --- a/odbc/odbc.php +++ b/odbc/odbc.php @@ -21,7 +21,7 @@ * success and FALSE on failure. *

    */ -function odbc_autocommit ($connection_id, $OnOff = false) {} +function odbc_autocommit($connection_id, $OnOff = false) {} /** * Handling of binary column data @@ -43,7 +43,7 @@ function odbc_autocommit ($connection_id, $OnOff = false) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function odbc_binmode ($result_id, $mode) {} +function odbc_binmode($result_id, $mode) {} /** * Close an ODBC connection @@ -52,14 +52,14 @@ function odbc_binmode ($result_id, $mode) {} * see odbc_connect for details.

    * @return void No value is returned. */ -function odbc_close ($connection_id) {} +function odbc_close($connection_id) {} /** * Close all ODBC connections * @link https://php.net/manual/en/function.odbc-close-all.php * @return void No value is returned. */ -function odbc_close_all () {} +function odbc_close_all() {} /** * Lists the column names in specified tables @@ -99,7 +99,7 @@ function odbc_close_all () {} * TABLE_NAME. *

    */ -function odbc_columns ($connection_id, $qualifier = null, $schema = null, $table_name = null, $column_name = null) {} +function odbc_columns($connection_id, $qualifier = null, $schema = null, $table_name = null, $column_name = null) {} /** * Commit an ODBC transaction @@ -108,7 +108,7 @@ function odbc_columns ($connection_id, $qualifier = null, $schema = null, $table * see odbc_connect for details.

    * @return bool TRUE on success or FALSE on failure. */ -function odbc_commit ($connection_id) {} +function odbc_commit($connection_id) {} /** * Connect to a datasource @@ -134,7 +134,7 @@ function odbc_commit ($connection_id) {} *

    * @return resource|false an ODBC connection or (FALSE) on error. */ -function odbc_connect ($dsn, $user, $password, $cursor_type = null) {} +function odbc_connect($dsn, $user, $password, $cursor_type = null) {} /** * Get cursorname @@ -144,7 +144,7 @@ function odbc_connect ($dsn, $user, $password, $cursor_type = null) {} *

    * @return string the cursor name, as a string. */ -function odbc_cursor ($result_id) {} +function odbc_cursor($result_id) {} /** * Returns information about a current connection @@ -159,7 +159,7 @@ function odbc_cursor ($result_id) {} *

    * @return array|false FALSE on error, and an array upon success. */ -function odbc_data_source ($connection_id, $fetch_type) {} +function odbc_data_source($connection_id, $fetch_type) {} /** * Execute a prepared statement @@ -187,7 +187,7 @@ function odbc_data_source ($connection_id, $fetch_type) {} * executing the query directly with odbc_exec). * @return bool TRUE on success or FALSE on failure. */ -function odbc_execute ($result_id, array $parameters_array = null) {} +function odbc_execute($result_id, array $parameters_array = null) {} /** * Get the last error code @@ -202,7 +202,7 @@ function odbc_execute ($result_id, array $parameters_array = null) {} * (i.e. odbc_exec returned FALSE). *

    */ -function odbc_error ($connection_id = null) {} +function odbc_error($connection_id = null) {} /** * Get the last error message @@ -217,7 +217,7 @@ function odbc_error ($connection_id = null) {} * (i.e. odbc_exec returned FALSE). *

    */ -function odbc_errormsg ($connection_id = null) {} +function odbc_errormsg($connection_id = null) {} /** * Prepare and execute an SQL statement @@ -234,7 +234,7 @@ function odbc_errormsg ($connection_id = null) {} * successfully, or FALSE on error. */ #[PhpStormStubsElementAvailable(to: '7.4')] -function odbc_exec ($connection_id, $query_string, $flags = null) {} +function odbc_exec($connection_id, $query_string, $flags = null) {} /** * Prepare and execute an SQL statement @@ -248,9 +248,7 @@ function odbc_exec ($connection_id, $query_string, $flags = null) {} * successfully, or FALSE on error. */ #[PhpStormStubsElementAvailable('8.0')] -function odbc_exec($connection_id, $query_string) -{ -} +function odbc_exec($connection_id, $query_string) {} /** * Fetch a result row as an associative array @@ -264,7 +262,7 @@ function odbc_exec($connection_id, $query_string) * @return array|false an array that corresponds to the fetched row, or FALSE if there * are no more rows. */ -function odbc_fetch_array ($result, $rownumber = null) {} +function odbc_fetch_array($result, $rownumber = null) {} /** * Fetch a result row as an object @@ -278,7 +276,7 @@ function odbc_fetch_array ($result, $rownumber = null) {} * @return object|false an object that corresponds to the fetched row, or FALSE if there * are no more rows. */ -function odbc_fetch_object ($result, $rownumber = null) {} +function odbc_fetch_object($result, $rownumber = null) {} /** * Fetch a row @@ -303,7 +301,7 @@ function odbc_fetch_object ($result, $rownumber = null) {} *

    * @return bool TRUE if there was a row, FALSE otherwise. */ -function odbc_fetch_row ($result_id, $row_number = null) {} +function odbc_fetch_row($result_id, $row_number = null) {} /** * Fetch one result row into array @@ -323,7 +321,7 @@ function odbc_fetch_row ($result_id, $row_number = null) {} * @return int the number of columns in the result; * FALSE on error. */ -function odbc_fetch_into ($result_id, array &$result_array, $rownumber = null) {} +function odbc_fetch_into($result_id, array &$result_array, $rownumber = null) {} /** * Get the length (precision) of a field @@ -336,7 +334,7 @@ function odbc_fetch_into ($result_id, array &$result_array, $rownumber = null) { *

    * @return int|false the field name as a string, or FALSE on error. */ -function odbc_field_len ($result_id, $field_number) {} +function odbc_field_len($result_id, $field_number) {} /** * Get the scale of a field @@ -349,7 +347,7 @@ function odbc_field_len ($result_id, $field_number) {} *

    * @return int|false the field scale as a integer, or FALSE on error. */ -function odbc_field_scale ($result_id, $field_number) {} +function odbc_field_scale($result_id, $field_number) {} /** * Get the columnname @@ -362,7 +360,7 @@ function odbc_field_scale ($result_id, $field_number) {} *

    * @return string|false the field name as a string, or FALSE on error. */ -function odbc_field_name ($result_id, $field_number) {} +function odbc_field_name($result_id, $field_number) {} /** * Datatype of a field @@ -375,7 +373,7 @@ function odbc_field_name ($result_id, $field_number) {} *

    * @return string|false the field type as a string, or FALSE on error. */ -function odbc_field_type ($result_id, $field_number) {} +function odbc_field_type($result_id, $field_number) {} /** * Return column number @@ -389,7 +387,7 @@ function odbc_field_type ($result_id, $field_number) {} * @return int|false the field number as a integer, or FALSE on error. * Field numbering starts at 1. */ -function odbc_field_num ($result_id, $field_name) {} +function odbc_field_num($result_id, $field_name) {} /** * Free resources associated with a result @@ -399,7 +397,7 @@ function odbc_field_num ($result_id, $field_name) {} *

    * @return bool Always returns TRUE. */ -function odbc_free_result ($result_id) {} +function odbc_free_result($result_id) {} /** * Retrieves information about data types supported by the data source @@ -434,7 +432,7 @@ function odbc_free_result ($result_id) {} * The result set is ordered by DATA_TYPE and TYPE_NAME. *

    */ -function odbc_gettypeinfo ($connection_id, $data_type = null) {} +function odbc_gettypeinfo($connection_id, $data_type = null) {} /** * Handling of LONG columns @@ -449,7 +447,7 @@ function odbc_gettypeinfo ($connection_id, $data_type = null) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function odbc_longreadlen ($result_id, $length) {} +function odbc_longreadlen($result_id, $length) {} /** * Checks if multiple results are available @@ -459,7 +457,7 @@ function odbc_longreadlen ($result_id, $length) {} *

    * @return bool TRUE if there are more result sets, FALSE otherwise. */ -function odbc_next_result ($result_id) {} +function odbc_next_result($result_id) {} /** * Number of columns in a result @@ -469,7 +467,7 @@ function odbc_next_result ($result_id) {} *

    * @return int the number of fields, or -1 on error. */ -function odbc_num_fields ($result_id) {} +function odbc_num_fields($result_id) {} /** * Number of rows in a result @@ -480,7 +478,7 @@ function odbc_num_fields ($result_id) {} * @return int the number of rows in an ODBC result. * This function will return -1 on error. */ -function odbc_num_rows ($result_id) {} +function odbc_num_rows($result_id) {} /** * Open a persistent database connection @@ -492,7 +490,7 @@ function odbc_num_rows ($result_id) {} * @return resource|false an ODBC connection id or 0 (FALSE) on * error. */ -function odbc_pconnect ($dsn, $user, $password, $cursor_type = null) {} +function odbc_pconnect($dsn, $user, $password, $cursor_type = null) {} /** * Prepares a statement for execution @@ -505,7 +503,7 @@ function odbc_pconnect ($dsn, $user, $password, $cursor_type = null) {} * @return resource|false an ODBC result identifier if the SQL command was prepared * successfully. Returns FALSE on error. */ -function odbc_prepare ($connection_id, $query_string) {} +function odbc_prepare($connection_id, $query_string) {} /** * Get result data @@ -521,7 +519,7 @@ function odbc_prepare ($connection_id, $query_string) {} * @return mixed the string contents of the field, FALSE on error, NULL for * NULL data, or TRUE for binary data. */ -function odbc_result ($result_id, $field) {} +function odbc_result($result_id, $field) {} /** * Print result as HTML table @@ -534,7 +532,7 @@ function odbc_result ($result_id, $field) {} *

    * @return int|false the number of rows in the result or FALSE on error. */ -function odbc_result_all ($result_id, $format = null) {} +function odbc_result_all($result_id, $format = null) {} /** * Rollback a transaction @@ -543,7 +541,7 @@ function odbc_result_all ($result_id, $format = null) {} * see odbc_connect for details.

    * @return bool TRUE on success or FALSE on failure. */ -function odbc_rollback ($connection_id) {} +function odbc_rollback($connection_id) {} /** * Adjust ODBC settings @@ -566,7 +564,7 @@ function odbc_rollback ($connection_id) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function odbc_setoption ($id, $function, $option, $param) {} +function odbc_setoption($id, $function, $option, $param) {} /** * Retrieves special columns @@ -609,7 +607,7 @@ function odbc_setoption ($id, $function, $option, $param) {} * PSEUDO_COLUMN *

    */ -function odbc_specialcolumns ($connection_id, $type, $qualifier, $owner, $table, $scope, $nullable) {} +function odbc_specialcolumns($connection_id, $type, $qualifier, $owner, $table, $scope, $nullable) {} /** * Retrieve statistics about a table @@ -649,7 +647,7 @@ function odbc_specialcolumns ($connection_id, $type, $qualifier, $owner, $table, * FILTER_CONDITION *

    */ -function odbc_statistics ($connection_id, $qualifier, $owner, $table_name, $unique, $accuracy) {} +function odbc_statistics($connection_id, $qualifier, $owner, $table_name, $unique, $accuracy) {} /** * Get the list of table names stored in a specific data source @@ -687,7 +685,7 @@ function odbc_statistics ($connection_id, $qualifier, $owner, $table_name, $uniq * REMARKS *

    */ -function odbc_tables ($connection_id, $qualifier = null, $owner = null, $name = null, $types = null) {} +function odbc_tables($connection_id, $qualifier = null, $owner = null, $name = null, $types = null) {} /** * Gets the primary keys for a table @@ -708,7 +706,7 @@ function odbc_tables ($connection_id, $qualifier = null, $owner = null, $name = * PK_NAME *

    */ -function odbc_primarykeys ($connection_id, $qualifier, $owner, $table) {} +function odbc_primarykeys($connection_id, $qualifier, $owner, $table) {} /** * Lists columns and associated privileges for the given table @@ -747,7 +745,7 @@ function odbc_primarykeys ($connection_id, $qualifier, $owner, $table) {} * TABLE_NAME. *

    */ -function odbc_columnprivileges ($connection_id, $qualifier, $owner, $table_name, $column_name) {} +function odbc_columnprivileges($connection_id, $qualifier, $owner, $table_name, $column_name) {} /** * Lists tables and the privileges associated with each table @@ -777,7 +775,7 @@ function odbc_columnprivileges ($connection_id, $qualifier, $owner, $table_name, * IS_GRANTABLE *

    */ -function odbc_tableprivileges ($connection_id, $qualifier, $owner, $name) {} +function odbc_tableprivileges($connection_id, $qualifier, $owner, $name) {} /** * Retrieves a list of foreign keys @@ -836,7 +834,7 @@ function odbc_tableprivileges ($connection_id, $qualifier, $owner, $name) {} * pk_table *

    */ -function odbc_foreignkeys ($connection_id, $pk_qualifier, $pk_owner, $pk_table, $fk_qualifier, $fk_owner, $fk_table) {} +function odbc_foreignkeys($connection_id, $pk_qualifier, $pk_owner, $pk_table, $fk_qualifier, $fk_owner, $fk_table) {} /** * Get the list of procedures stored in a specific data source @@ -858,7 +856,7 @@ function odbc_foreignkeys ($connection_id, $pk_qualifier, $pk_owner, $pk_table, * PROCEDURE_TYPE *

    */ -function odbc_procedures ($connection_id) {} +function odbc_procedures($connection_id) {} /** * Retrieve information about parameters to procedures @@ -886,7 +884,7 @@ function odbc_procedures ($connection_id) {} * REMARKS *

    */ -function odbc_procedurecolumns ($connection_id) {} +function odbc_procedurecolumns($connection_id) {} /** * Alias of odbc_exec @@ -895,7 +893,7 @@ function odbc_procedurecolumns ($connection_id) {} * @param $query * @param $flags [optional] */ -function odbc_do ($connection_id, $query, $flags) {} +function odbc_do($connection_id, $query, $flags) {} /** * Alias of odbc_field_len @@ -903,66 +901,64 @@ function odbc_do ($connection_id, $query, $flags) {} * @param $result_id * @param $field_number */ -function odbc_field_precision ($result_id, $field_number) {} - -define ('ODBC_TYPE', "unixODBC"); -define ('ODBC_BINMODE_PASSTHRU', 0); -define ('ODBC_BINMODE_RETURN', 1); -define ('ODBC_BINMODE_CONVERT', 2); -define ('SQL_ODBC_CURSORS', 110); -define ('SQL_CUR_USE_DRIVER', 2); -define ('SQL_CUR_USE_IF_NEEDED', 0); -define ('SQL_CUR_USE_ODBC', 1); -define ('SQL_CONCURRENCY', 7); -define ('SQL_CONCUR_READ_ONLY', 1); -define ('SQL_CONCUR_LOCK', 2); -define ('SQL_CONCUR_ROWVER', 3); -define ('SQL_CONCUR_VALUES', 4); -define ('SQL_CURSOR_TYPE', 6); -define ('SQL_CURSOR_FORWARD_ONLY', 0); -define ('SQL_CURSOR_KEYSET_DRIVEN', 1); -define ('SQL_CURSOR_DYNAMIC', 2); -define ('SQL_CURSOR_STATIC', 3); -define ('SQL_KEYSET_SIZE', 8); -define ('SQL_FETCH_FIRST', 2); -define ('SQL_FETCH_NEXT', 1); -define ('SQL_CHAR', 1); -define ('SQL_VARCHAR', 12); -define ('SQL_LONGVARCHAR', -1); -define ('SQL_DECIMAL', 3); -define ('SQL_NUMERIC', 2); -define ('SQL_BIT', -7); -define ('SQL_TINYINT', -6); -define ('SQL_SMALLINT', 5); -define ('SQL_INTEGER', 4); -define ('SQL_BIGINT', -5); -define ('SQL_REAL', 7); -define ('SQL_FLOAT', 6); -define ('SQL_DOUBLE', 8); -define ('SQL_BINARY', -2); -define ('SQL_VARBINARY', -3); -define ('SQL_LONGVARBINARY', -4); -define ('SQL_DATE', 9); -define ('SQL_TIME', 10); -define ('SQL_TIMESTAMP', 11); -define ('SQL_TYPE_DATE', 91); -define ('SQL_TYPE_TIME', 92); -define ('SQL_TYPE_TIMESTAMP', 93); -define ('SQL_WCHAR', -8); -define ('SQL_WVARCHAR', -9); -define ('SQL_WLONGVARCHAR', -10); -define ('SQL_BEST_ROWID', 1); -define ('SQL_ROWVER', 2); -define ('SQL_SCOPE_CURROW', 0); -define ('SQL_SCOPE_TRANSACTION', 1); -define ('SQL_SCOPE_SESSION', 2); -define ('SQL_NO_NULLS', 0); -define ('SQL_NULLABLE', 1); -define ('SQL_INDEX_UNIQUE', 0); -define ('SQL_INDEX_ALL', 1); -define ('SQL_ENSURE', 1); -define ('SQL_QUICK', 0); - +function odbc_field_precision($result_id, $field_number) {} + +define('ODBC_TYPE', "unixODBC"); +define('ODBC_BINMODE_PASSTHRU', 0); +define('ODBC_BINMODE_RETURN', 1); +define('ODBC_BINMODE_CONVERT', 2); +define('SQL_ODBC_CURSORS', 110); +define('SQL_CUR_USE_DRIVER', 2); +define('SQL_CUR_USE_IF_NEEDED', 0); +define('SQL_CUR_USE_ODBC', 1); +define('SQL_CONCURRENCY', 7); +define('SQL_CONCUR_READ_ONLY', 1); +define('SQL_CONCUR_LOCK', 2); +define('SQL_CONCUR_ROWVER', 3); +define('SQL_CONCUR_VALUES', 4); +define('SQL_CURSOR_TYPE', 6); +define('SQL_CURSOR_FORWARD_ONLY', 0); +define('SQL_CURSOR_KEYSET_DRIVEN', 1); +define('SQL_CURSOR_DYNAMIC', 2); +define('SQL_CURSOR_STATIC', 3); +define('SQL_KEYSET_SIZE', 8); +define('SQL_FETCH_FIRST', 2); +define('SQL_FETCH_NEXT', 1); +define('SQL_CHAR', 1); +define('SQL_VARCHAR', 12); +define('SQL_LONGVARCHAR', -1); +define('SQL_DECIMAL', 3); +define('SQL_NUMERIC', 2); +define('SQL_BIT', -7); +define('SQL_TINYINT', -6); +define('SQL_SMALLINT', 5); +define('SQL_INTEGER', 4); +define('SQL_BIGINT', -5); +define('SQL_REAL', 7); +define('SQL_FLOAT', 6); +define('SQL_DOUBLE', 8); +define('SQL_BINARY', -2); +define('SQL_VARBINARY', -3); +define('SQL_LONGVARBINARY', -4); +define('SQL_DATE', 9); +define('SQL_TIME', 10); +define('SQL_TIMESTAMP', 11); +define('SQL_TYPE_DATE', 91); +define('SQL_TYPE_TIME', 92); +define('SQL_TYPE_TIMESTAMP', 93); +define('SQL_WCHAR', -8); +define('SQL_WVARCHAR', -9); +define('SQL_WLONGVARCHAR', -10); +define('SQL_BEST_ROWID', 1); +define('SQL_ROWVER', 2); +define('SQL_SCOPE_CURROW', 0); +define('SQL_SCOPE_TRANSACTION', 1); +define('SQL_SCOPE_SESSION', 2); +define('SQL_NO_NULLS', 0); +define('SQL_NULLABLE', 1); +define('SQL_INDEX_UNIQUE', 0); +define('SQL_INDEX_ALL', 1); +define('SQL_ENSURE', 1); +define('SQL_QUICK', 0); // End of odbc v.1.0 -?> diff --git a/openssl/openssl.php b/openssl/openssl.php index fdd42c048..727686893 100644 --- a/openssl/openssl.php +++ b/openssl/openssl.php @@ -13,7 +13,7 @@ * @return void */ #[Deprecated(since: '8.0')] -function openssl_pkey_free(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $key): void { } +function openssl_pkey_free(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $key): void {} /** * Generates a new private key @@ -28,8 +28,7 @@ function openssl_pkey_free(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetric * error. */ #[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")] -function openssl_pkey_new(?array $options) -{ } +function openssl_pkey_new(?array $options) {} /** * Gets an exportable representation of a key into a string @@ -47,8 +46,7 @@ function openssl_pkey_new(?array $options) *

    * @return bool true on success or false on failure. */ -function openssl_pkey_export($key, &$output, ?string $passphrase, ?array $options): bool -{ } +function openssl_pkey_export($key, &$output, ?string $passphrase, ?array $options): bool {} /** * Gets an exportable representation of a key into a file @@ -69,8 +67,7 @@ function openssl_pkey_export($key, &$output, ?string $passphrase, ?array $option *

    * @return bool true on success or false on failure. */ -function openssl_pkey_export_to_file($key, string $output_filename, ?string $passphrase, ?array $options): bool -{ } +function openssl_pkey_export_to_file($key, string $output_filename, ?string $passphrase, ?array $options): bool {} /** * Get a private key @@ -92,8 +89,7 @@ function openssl_pkey_export_to_file($key, string $output_filename, ?string $pas * @return OpenSSLAsymmetricKey|resource|false Returns a positive key resource identifier on success, or FALSE on error. */ #[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")] -function openssl_pkey_get_private($private_key, ?string $passphrase = "") -{ } +function openssl_pkey_get_private($private_key, ?string $passphrase = "") {} /** * Extract public key from certificate and prepare it for use @@ -110,8 +106,7 @@ function openssl_pkey_get_private($private_key, ?string $passphrase = "") * @return OpenSSLAsymmetricKey|resource|false a positive key resource identifier on success, or false on error. */ #[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")] -function openssl_pkey_get_public($public_key) -{ } +function openssl_pkey_get_public($public_key) {} /** * Returns an array with the key details @@ -132,8 +127,7 @@ function openssl_pkey_get_public($public_key) * Depending on the key type used, additional details may be returned. Note that * some elements may not always be available. */ -function openssl_pkey_get_details(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $key): array|false -{ } +function openssl_pkey_get_details(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $key): array|false {} /** * Free key resource @@ -142,7 +136,7 @@ function openssl_pkey_get_details(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsy * @return void */ #[Deprecated(since: '8.0')] -function openssl_free_key(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $key): void { } +function openssl_free_key(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $key): void {} /** * Alias of openssl_pkey_get_private @@ -164,8 +158,7 @@ function openssl_free_key(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricK * @return OpenSSLAsymmetricKey|resource|false Returns a positive key resource identifier on success, or FALSE on error. */ #[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")] -function openssl_get_privatekey($private_key, ?string $passphrase) -{ } +function openssl_get_privatekey($private_key, ?string $passphrase) {} /** * Alias of openssl_pkey_get_public @@ -183,8 +176,7 @@ function openssl_get_privatekey($private_key, ?string $passphrase) * @return OpenSSLAsymmetricKey|false a positive key resource identifier on success, or FALSE on error. */ #[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")] -function openssl_get_publickey($public_key) -{ } +function openssl_get_publickey($public_key) {} /** * Generate a new signed public key and challenge @@ -201,9 +193,7 @@ function openssl_get_publickey($public_key) * @return string|false Returns a signed public key and challenge string or NULL on failure. * @since 5.6 */ -function openssl_spki_new(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $private_key, string $challenge, int $digest_algo = 2): string|false -{} - +function openssl_spki_new(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $private_key, string $challenge, int $digest_algo = 2): string|false {} /** * Verifies a signed public key and challenge @@ -212,8 +202,7 @@ function openssl_spki_new(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricK * @return bool Returns a boolean on success or failure. * @since 5.6 */ -function openssl_spki_verify(string $spki): bool -{} +function openssl_spki_verify(string $spki): bool {} /** * Exports the challenge associated with a signed public key and challenge @@ -222,8 +211,7 @@ function openssl_spki_verify(string $spki): bool * @return string|false Returns the associated challenge string or NULL on failure. * @since 5.6 */ -function openssl_spki_export_challenge (string $spki): string|false -{} +function openssl_spki_export_challenge(string $spki): string|false {} /** * Exports a valid PEM formatted public key signed public key and challenge @@ -232,8 +220,7 @@ function openssl_spki_export_challenge (string $spki): string|false * @return string|false Returns the associated PEM formatted public key or NULL on failure. * @since 5.6 */ -function openssl_spki_export (string $spki ): string|false -{} +function openssl_spki_export(string $spki): string|false {} /** * Parse an X.509 certificate and return a resource identifier for * it @@ -242,8 +229,7 @@ function openssl_spki_export (string $spki ): string|false * @return OpenSSLCertificate|resource|false a resource identifier on success or false on failure. */ #[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|false"], default: "resource|false")] -function openssl_x509_read(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate) -{ } +function openssl_x509_read(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate) {} /** * @param string $certificate @@ -252,8 +238,7 @@ function openssl_x509_read(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificat * @return string|false FALSE on failure * @since 5.6 */ -function openssl_x509_fingerprint(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, string $digest_algo = 'sha1', bool $binary = false): string|false -{} +function openssl_x509_fingerprint(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, string $digest_algo = 'sha1', bool $binary = false): string|false {} /** * Free certificate resource * @link https://php.net/manual/en/function.openssl-x509-free.php @@ -261,7 +246,7 @@ function openssl_x509_fingerprint(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCer * @return void */ #[Deprecated(since: '8.0')] -function openssl_x509_free(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate"], default: "resource|string")] $certificate): void { } +function openssl_x509_free(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate"], default: "resource|string")] $certificate): void {} /** * Parse an X509 certificate and return the information as an array @@ -276,8 +261,7 @@ function openssl_x509_free(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificat * @return array|false The structure of the returned data is (deliberately) not * yet documented, as it is still subject to change. */ -function openssl_x509_parse(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, bool $short_names = true): array|false -{ } +function openssl_x509_parse(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, bool $short_names = true): array|false {} /** * Verifies if a certificate can be used for a particular purpose @@ -339,8 +323,7 @@ function openssl_x509_parse(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertifica * @return int|bool true if the certificate can be used for the intended purpose, * false if it cannot, or -1 on error. */ -function openssl_x509_checkpurpose(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, int $purpose, array $ca_info, ?string $untrusted_certificates_file): int|bool -{ } +function openssl_x509_checkpurpose(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, int $purpose, array $ca_info, ?string $untrusted_certificates_file): int|bool {} /** * Checks if a private key corresponds to a certificate @@ -354,8 +337,7 @@ function openssl_x509_checkpurpose(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCe * @return bool true if key is the private key that * corresponds to cert, or false otherwise. */ -function openssl_x509_check_private_key(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, $private_key): bool -{ } +function openssl_x509_check_private_key(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, $private_key): bool {} /** * Exports a certificate as a string @@ -367,8 +349,7 @@ function openssl_x509_check_private_key(#[LanguageLevelTypeAware(["8.0" => "Open * @param bool $no_text [optional] * @return bool true on success or false on failure. */ -function openssl_x509_export(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, &$output, bool $no_text = true): bool -{ } +function openssl_x509_export(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, &$output, bool $no_text = true): bool {} /** * Exports a certificate to file @@ -380,8 +361,7 @@ function openssl_x509_export(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertific * @param bool $no_text [optional] * @return bool true on success or false on failure. */ -function openssl_x509_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, string $output_filename, bool $no_text = true): bool -{ } +function openssl_x509_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, string $output_filename, bool $no_text = true): bool {} /** * Verifies digital signature of x509 certificate against a public key @@ -391,7 +371,7 @@ function openssl_x509_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenSSL * @return int Returns 1 if the signature is correct, 0 if it is incorrect, and -1 on error. * @since 7.4 */ -function openssl_x509_verify(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, $public_key) : int {} +function openssl_x509_verify(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, $public_key): int {} /** * Exports a PKCS#12 Compatible Certificate Store File to variable. @@ -410,8 +390,7 @@ function openssl_x509_verify(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertific * @return bool true on success or false on failure. * @since 5.2.2 */ -function openssl_pkcs12_export(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, &$output, $private_key, string $passphrase, array $options): bool -{ } +function openssl_pkcs12_export(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, &$output, $private_key, string $passphrase, array $options): bool {} /** * Exports a PKCS#12 Compatible Certificate Store File @@ -430,8 +409,7 @@ function openssl_pkcs12_export(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertif * @return bool true on success or false on failure. * @since 5.2.2 */ -function openssl_pkcs12_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, string $output_filename, $private_key, string $passphrase, array $options): bool -{ } +function openssl_pkcs12_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, string $output_filename, $private_key, string $passphrase, array $options): bool {} /** * Parse a PKCS#12 Certificate Store into an array @@ -446,8 +424,7 @@ function openssl_pkcs12_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenS * @return bool true on success or false on failure. * @since 5.2.2 */ -function openssl_pkcs12_read(string $pkcs12, &$certificates, string $passphrase): bool -{ } +function openssl_pkcs12_read(string $pkcs12, &$certificates, string $passphrase): bool {} /** * Generates a CSR @@ -543,8 +520,7 @@ function openssl_pkcs12_read(string $pkcs12, &$certificates, string $passphrase) * @return OpenSSLCertificateSigningRequest|resource|false the CSR. */ #[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|false"], default: "resource|false")] -function openssl_csr_new(array $distinguished_names, &$private_key, ?array $options, ?array $extra_attributes) -{ } +function openssl_csr_new(array $distinguished_names, &$private_key, ?array $options, ?array $extra_attributes) {} /** * Exports a CSR as a string @@ -554,8 +530,7 @@ function openssl_csr_new(array $distinguished_names, &$private_key, ?array $opti * @param bool $no_text [optional] * @return bool true on success or false on failure. */ -function openssl_csr_export(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|string"], default: "resource|string")] $csr, &$output, bool $no_text = true): bool -{ } +function openssl_csr_export(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|string"], default: "resource|string")] $csr, &$output, bool $no_text = true): bool {} /** * Exports a CSR to a file @@ -567,8 +542,7 @@ function openssl_csr_export(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertifica * @param bool $no_text [optional] * @return bool true on success or false on failure. */ -function openssl_csr_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|string"], default: "resource|string")] $csr, string $output_filename, bool $no_text = true): bool -{ } +function openssl_csr_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|string"], default: "resource|string")] $csr, string $output_filename, bool $no_text = true): bool {} /** * Sign a CSR with another certificate (or itself) and generate a certificate @@ -604,8 +578,7 @@ function openssl_csr_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenSSLC * @return OpenSSLCertificate|resource|false an x509 certificate resource on success, false on failure. */ #[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|false"], default: "resource|false")] -function openssl_csr_sign(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|string"], default: "resource|string")] $csr, #[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string|null"], default: "resource|string|null")] $ca_certificate, $private_key, int $days, ?array $options, int $serial = 0) -{ } +function openssl_csr_sign(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|string"], default: "resource|string")] $csr, #[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string|null"], default: "resource|string|null")] $ca_certificate, $private_key, int $days, ?array $options, int $serial = 0) {} /** * Returns the subject of a CERT @@ -614,8 +587,7 @@ function openssl_csr_sign(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate * @param bool $short_names [optional] * @return array|false */ -function openssl_csr_get_subject(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|string"], default: "resource|string")] $csr, bool $short_names = true): array|false -{ } +function openssl_csr_get_subject(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|string"], default: "resource|string")] $csr, bool $short_names = true): array|false {} /** * Returns the public key of a CERT @@ -625,8 +597,7 @@ function openssl_csr_get_subject(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCert * @return OpenSSLAsymmetricKey|resource|false */ #[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")] -function openssl_csr_get_public_key(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|string"], default: "resource|string")] $csr, bool $short_names = true) -{ } +function openssl_csr_get_public_key(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificateSigningRequest|string"], default: "resource|string")] $csr, bool $short_names = true) {} /** * Computes a digest @@ -643,8 +614,7 @@ function openssl_csr_get_public_key(#[LanguageLevelTypeAware(["8.0" => "OpenSSLC *

    * @return string|false the digested hash value on success or false on failure. */ -function openssl_digest(string $data, string $digest_algo, bool $binary = false): string|false -{ } +function openssl_digest(string $data, string $digest_algo, bool $binary = false): string|false {} /** * Encrypts data @@ -671,8 +641,7 @@ function openssl_digest(string $data, string $digest_algo, bool $binary = false) *

    * @return string|false the encrypted string on success or false on failure. */ -function openssl_encrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", &$tag, string $aad = "", int $tag_length = 16): string|false -{ } +function openssl_encrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", &$tag, string $aad = "", int $tag_length = 16): string|false {} /** * Decrypts data @@ -700,8 +669,7 @@ function openssl_encrypt(string $data, string $cipher_algo, string $passphrase, * @param string $aad [optional]

    Additional authentication data.

    * @return string|false The decrypted string on success or false on failure. */ -function openssl_decrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", string $tag = "", string $aad = ""): string|false -{ } +function openssl_decrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", string $tag = "", string $aad = ""): string|false {} /** * (PHP 5 >= PHP 5.3.3)
    @@ -712,8 +680,7 @@ function openssl_decrypt(string $data, string $cipher_algo, string $passphrase, *

    * @return int|false the cipher length on success, or false on failure. */ -function openssl_cipher_iv_length(string $cipher_algo): int|false -{ } +function openssl_cipher_iv_length(string $cipher_algo): int|false {} /** * Generate signature @@ -729,8 +696,7 @@ function openssl_cipher_iv_length(string $cipher_algo): int|false *

    * @return bool true on success or false on failure. */ -function openssl_sign(string $data, &$signature, $private_key, string|int $algorithm = OPENSSL_ALGO_SHA1): bool -{ } +function openssl_sign(string $data, &$signature, $private_key, string|int $algorithm = OPENSSL_ALGO_SHA1): bool {} /** * Verify signature @@ -744,8 +710,7 @@ function openssl_sign(string $data, &$signature, $private_key, string|int $algor * @return int|false 1 if the signature is correct, 0 if it is incorrect, and * -1 on error. */ -function openssl_verify(string $data, string $signature, $public_key, string|int $algorithm = OPENSSL_ALGO_SHA1): int|false -{ } +function openssl_verify(string $data, string $signature, $public_key, string|int $algorithm = OPENSSL_ALGO_SHA1): int|false {} /** * Seal (encrypt) data @@ -761,8 +726,7 @@ function openssl_verify(string $data, string $signature, $public_key, string|int * sealed_data, and the envelope keys in * env_keys. */ -function openssl_seal(string $data, &$sealed_data, &$encrypted_keys, array $public_key, string $cipher_algo, &$iv = ''): int|false -{ } +function openssl_seal(string $data, &$sealed_data, &$encrypted_keys, array $public_key, string $cipher_algo, &$iv = ''): int|false {} /** * Open sealed data @@ -778,8 +742,7 @@ function openssl_seal(string $data, &$sealed_data, &$encrypted_keys, array $publ * @param string|null $iv [optional] The initialization vector. * @return bool true on success or false on failure. */ -function openssl_open(string $data, &$output, string $encrypted_key, $private_key, string $cipher_algo = "RC4", ?string $iv): bool -{ } +function openssl_open(string $data, &$output, string $encrypted_key, $private_key, string $cipher_algo = "RC4", ?string $iv): bool {} /** * Generates a PKCS5 v2 PBKDF2 string, defaults to SHA-1 @@ -792,8 +755,7 @@ function openssl_open(string $data, &$output, string $encrypted_key, $private_ke * @return string|false Returns string or FALSE on failure. * @since 5.5 */ -function openssl_pbkdf2(string $password, string $salt, int $key_length, int $iterations, string $digest_algo = 'sha1'): string|false -{ } +function openssl_pbkdf2(string $password, string $salt, int $key_length, int $iterations, string $digest_algo = 'sha1'): string|false {} /** * Verifies the signature of an S/MIME signed message @@ -831,8 +793,7 @@ function openssl_pbkdf2(string $password, string $salt, int $key_length, int $it * (the message has been tampered with, or the signing certificate is invalid), * or -1 on error. */ -function openssl_pkcs7_verify(string $input_filename, int $flags, ?string $signers_certificates_filename, array $ca_info, ?string $untrusted_certificates_filename, ?string $content, ?string $output_filename): int|bool -{ } +function openssl_pkcs7_verify(string $input_filename, int $flags, ?string $signers_certificates_filename, array $ca_info, ?string $untrusted_certificates_filename, ?string $content, ?string $output_filename): int|bool {} /** * Decrypts an S/MIME encrypted message @@ -846,8 +807,7 @@ function openssl_pkcs7_verify(string $input_filename, int $flags, ?string $signe * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null $private_key [optional] * @return bool true on success or false on failure. */ -function openssl_pkcs7_decrypt(string $input_filename, string $output_filename, $certificate, $private_key): bool -{ } +function openssl_pkcs7_decrypt(string $input_filename, string $output_filename, $certificate, $private_key): bool {} /** * Sign an S/MIME message @@ -872,8 +832,7 @@ function openssl_pkcs7_decrypt(string $input_filename, string $output_filename, *

    * @return bool true on success or false on failure. */ -function openssl_pkcs7_sign(string $input_filename, string $output_filename, #[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, $private_key, ?array $headers, int $flags = PKCS7_DETACHED, ?string $untrusted_certificates_filename): bool -{ } +function openssl_pkcs7_sign(string $input_filename, string $output_filename, #[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, $private_key, ?array $headers, int $flags = PKCS7_DETACHED, ?string $untrusted_certificates_filename): bool {} /** * Encrypt an S/MIME message @@ -902,8 +861,7 @@ function openssl_pkcs7_sign(string $input_filename, string $output_filename, #[L *

    * @return bool true on success or false on failure. */ -function openssl_pkcs7_encrypt(string $input_filename, string $output_filename, $certificate, ?array $headers, int $flags = 0, int $cipher_algo = OPENSSL_CIPHER_RC2_40): bool -{ } +function openssl_pkcs7_encrypt(string $input_filename, string $output_filename, $certificate, ?array $headers, int $flags = 0, int $cipher_algo = OPENSSL_CIPHER_RC2_40): bool {} /** * Encrypts data with private key @@ -918,8 +876,7 @@ function openssl_pkcs7_encrypt(string $input_filename, string $output_filename, *

    * @return bool true on success or false on failure. */ -function openssl_private_encrypt(string $data, &$encrypted_data, $private_key, int $padding = OPENSSL_PKCS1_PADDING): bool -{ } +function openssl_private_encrypt(string $data, &$encrypted_data, $private_key, int $padding = OPENSSL_PKCS1_PADDING): bool {} /** * Decrypts data with private key @@ -939,8 +896,7 @@ function openssl_private_encrypt(string $data, &$encrypted_data, $private_key, i *

    * @return bool true on success or false on failure. */ -function openssl_private_decrypt(string $data, &$decrypted_data, $private_key, int $padding = OPENSSL_PKCS1_PADDING): bool -{ } +function openssl_private_decrypt(string $data, &$decrypted_data, $private_key, int $padding = OPENSSL_PKCS1_PADDING): bool {} /** * Encrypts data with public key @@ -961,8 +917,7 @@ function openssl_private_decrypt(string $data, &$decrypted_data, $private_key, i *

    * @return bool true on success or false on failure. */ -function openssl_public_encrypt(string $data, &$encrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): bool -{ } +function openssl_public_encrypt(string $data, &$encrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): bool {} /** * Decrypts data with public key @@ -980,8 +935,7 @@ function openssl_public_encrypt(string $data, &$encrypted_data, $public_key, int *

    * @return bool true on success or false on failure. */ -function openssl_public_decrypt(string $data, &$decrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): bool -{ } +function openssl_public_decrypt(string $data, &$decrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): bool {} /** * Gets available digest methods @@ -992,8 +946,7 @@ function openssl_public_decrypt(string $data, &$decrypted_data, $public_key, int *

    * @return array An array of available digest methods. */ -function openssl_get_md_methods(bool $aliases = false): array -{ } +function openssl_get_md_methods(bool $aliases = false): array {} /** * Gets available cipher methods @@ -1004,8 +957,7 @@ function openssl_get_md_methods(bool $aliases = false): array *

    * @return array An array of available cipher methods. */ -function openssl_get_cipher_methods(bool $aliases = false): array -{ } +function openssl_get_cipher_methods(bool $aliases = false): array {} /** * (No version information available, might only be in SVN)
    @@ -1019,8 +971,7 @@ function openssl_get_cipher_methods(bool $aliases = false): array *

    * @return string|false computed key on success or false on failure. */ -function openssl_dh_compute_key(string $public_key, #[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $private_key): string|false -{ } +function openssl_dh_compute_key(string $public_key, #[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $private_key): string|false {} /** * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key @@ -1048,8 +999,7 @@ function openssl_pkey_derive($public_key, $private_key, int $key_length = 0): st * @return string|false the generated string of bytes on success, or false on failure. */ #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function openssl_random_pseudo_bytes(int $length, &$strong_result) -{ } +function openssl_random_pseudo_bytes(int $length, &$strong_result) {} /** * Return openSSL error message @@ -1057,8 +1007,7 @@ function openssl_random_pseudo_bytes(int $length, &$strong_result) * @return string|false an error message string, or false if there are no more error * messages to return. */ -function openssl_error_string(): string|false -{ } +function openssl_error_string(): string|false {} /** * Retrieve the available certificate locations @@ -1066,8 +1015,7 @@ function openssl_error_string(): string|false * @return array an array with the available certificate locations * @since 5.6 */ -function openssl_get_cert_locations(): array -{ } +function openssl_get_cert_locations(): array {} function openssl_get_curve_names(): array|false {} @@ -1077,8 +1025,7 @@ function openssl_get_curve_names(): array|false {} * @return bool * @since 7.2 */ -function openssl_pkcs7_read(string $input_filename, &$certificates): bool -{} +function openssl_pkcs7_read(string $input_filename, &$certificates): bool {} /** * Verifies that the data block is intact, the signer is who they say they are, and returns the certs of the signers. @@ -1146,31 +1093,31 @@ function openssl_cms_decrypt(string $input_filename, string $output_filename, $c */ function openssl_cms_read(string $input_filename, &$certificates): bool {} -define ('OPENSSL_VERSION_TEXT', "OpenSSL 1.0.0e 6 Sep 2011"); -define ('OPENSSL_VERSION_NUMBER', 268435551); -define ('X509_PURPOSE_SSL_CLIENT', 1); -define ('X509_PURPOSE_SSL_SERVER', 2); -define ('X509_PURPOSE_NS_SSL_SERVER', 3); -define ('X509_PURPOSE_SMIME_SIGN', 4); -define ('X509_PURPOSE_SMIME_ENCRYPT', 5); -define ('X509_PURPOSE_CRL_SIGN', 6); -define ('X509_PURPOSE_ANY', 7); +define('OPENSSL_VERSION_TEXT', "OpenSSL 1.0.0e 6 Sep 2011"); +define('OPENSSL_VERSION_NUMBER', 268435551); +define('X509_PURPOSE_SSL_CLIENT', 1); +define('X509_PURPOSE_SSL_SERVER', 2); +define('X509_PURPOSE_NS_SSL_SERVER', 3); +define('X509_PURPOSE_SMIME_SIGN', 4); +define('X509_PURPOSE_SMIME_ENCRYPT', 5); +define('X509_PURPOSE_CRL_SIGN', 6); +define('X509_PURPOSE_ANY', 7); /** * Used as default algorithm by openssl_sign and * openssl_verify. * @link https://php.net/manual/en/openssl.constants.php */ -define ('OPENSSL_ALGO_SHA1', 1); -define ('OPENSSL_ALGO_MD5', 2); -define ('OPENSSL_ALGO_MD4', 3); -define ('OPENSSL_ALGO_MD2', 4); -define ('OPENSSL_ALGO_DSS1', 5); -define ('OPENSSL_ALGO_SHA224', 6); -define ('OPENSSL_ALGO_SHA256', 7); -define ('OPENSSL_ALGO_SHA384', 8); -define ('OPENSSL_ALGO_SHA512', 9); -define ('OPENSSL_ALGO_RMD160', 10); +define('OPENSSL_ALGO_SHA1', 1); +define('OPENSSL_ALGO_MD5', 2); +define('OPENSSL_ALGO_MD4', 3); +define('OPENSSL_ALGO_MD2', 4); +define('OPENSSL_ALGO_DSS1', 5); +define('OPENSSL_ALGO_SHA224', 6); +define('OPENSSL_ALGO_SHA256', 7); +define('OPENSSL_ALGO_SHA384', 8); +define('OPENSSL_ALGO_SHA512', 9); +define('OPENSSL_ALGO_RMD160', 10); /** * When signing a message, use cleartext signing with the MIME * type "multipart/signed". This is the default @@ -1181,7 +1128,7 @@ function openssl_cms_read(string $input_filename, &$certificates): bool {} * but cannot be read by mail agents that do not support S/MIME. * @link https://php.net/manual/en/openssl.constants.php */ -define ('PKCS7_DETACHED', 64); +define('PKCS7_DETACHED', 64); /** * Adds text/plain content type headers to encrypted/signed @@ -1190,7 +1137,7 @@ function openssl_cms_read(string $input_filename, &$certificates): bool {} * text/plain then an error will occur. * @link https://php.net/manual/en/openssl.constants.php */ -define ('PKCS7_TEXT', 1); +define('PKCS7_TEXT', 1); /** * When verifying a message, certificates (if @@ -1202,21 +1149,21 @@ function openssl_cms_read(string $input_filename, &$certificates): bool {} * untrusted CAs however. * @link https://php.net/manual/en/openssl.constants.php */ -define ('PKCS7_NOINTERN', 16); +define('PKCS7_NOINTERN', 16); /** * Do not verify the signers certificate of a signed * message. * @link https://php.net/manual/en/openssl.constants.php */ -define ('PKCS7_NOVERIFY', 32); +define('PKCS7_NOVERIFY', 32); /** * Do not chain verification of signers certificates: that is * don't use the certificates in the signed message as untrusted CAs. * @link https://php.net/manual/en/openssl.constants.php */ -define ('PKCS7_NOCHAIN', 8); +define('PKCS7_NOCHAIN', 8); /** * When signing a message the signer's certificate is normally @@ -1227,7 +1174,7 @@ function openssl_cms_read(string $input_filename, &$certificates): bool {} * openssl_pkcs7_verify for example). * @link https://php.net/manual/en/openssl.constants.php */ -define ('PKCS7_NOCERTS', 2); +define('PKCS7_NOCERTS', 2); /** * Normally when a message is signed, a set of attributes are @@ -1235,7 +1182,7 @@ function openssl_cms_read(string $input_filename, &$certificates): bool {} * algorithms. With this option they are not included. * @link https://php.net/manual/en/openssl.constants.php */ -define ('PKCS7_NOATTR', 256); +define('PKCS7_NOATTR', 256); /** * Normally the input message is converted to "canonical" format @@ -1245,36 +1192,35 @@ function openssl_cms_read(string $input_filename, &$certificates): bool {} * handling binary data which may not be in MIME format. * @link https://php.net/manual/en/openssl.constants.php */ -define ('PKCS7_BINARY', 128); +define('PKCS7_BINARY', 128); /** * Don't try and verify the signatures on a message * @link https://php.net/manual/en/openssl.constants.php */ -define ('PKCS7_NOSIGS', 4); -define ('OPENSSL_PKCS1_PADDING', 1); -define ('OPENSSL_SSLV23_PADDING', 2); -define ('OPENSSL_NO_PADDING', 3); -define ('OPENSSL_PKCS1_OAEP_PADDING', 4); -define ('OPENSSL_CIPHER_RC2_40', 0); -define ('OPENSSL_CIPHER_RC2_128', 1); -define ('OPENSSL_CIPHER_RC2_64', 2); -define ('OPENSSL_CIPHER_DES', 3); -define ('OPENSSL_CIPHER_3DES', 4); -define ('OPENSSL_KEYTYPE_RSA', 0); -define ('OPENSSL_KEYTYPE_DSA', 1); -define ('OPENSSL_KEYTYPE_DH', 2); -define ('OPENSSL_KEYTYPE_EC', 3); +define('PKCS7_NOSIGS', 4); +define('OPENSSL_PKCS1_PADDING', 1); +define('OPENSSL_SSLV23_PADDING', 2); +define('OPENSSL_NO_PADDING', 3); +define('OPENSSL_PKCS1_OAEP_PADDING', 4); +define('OPENSSL_CIPHER_RC2_40', 0); +define('OPENSSL_CIPHER_RC2_128', 1); +define('OPENSSL_CIPHER_RC2_64', 2); +define('OPENSSL_CIPHER_DES', 3); +define('OPENSSL_CIPHER_3DES', 4); +define('OPENSSL_KEYTYPE_RSA', 0); +define('OPENSSL_KEYTYPE_DSA', 1); +define('OPENSSL_KEYTYPE_DH', 2); +define('OPENSSL_KEYTYPE_EC', 3); /** * Whether SNI support is available or not. * @link https://php.net/manual/en/openssl.constants.php */ -define ('OPENSSL_TLSEXT_SERVER_NAME', 1); +define('OPENSSL_TLSEXT_SERVER_NAME', 1); // End of openssl v. - /** @link https://php.net/manual/en/openssl.ciphers.php */ define('OPENSSL_CIPHER_AES_128_CBC', 5); /** @link https://php.net/manual/en/openssl.ciphers.php */ @@ -1341,32 +1287,35 @@ function openssl_cms_read(string $input_filename, &$certificates): bool {} /** * @since 8.0 */ -final class OpenSSLCertificate{ +final class OpenSSLCertificate +{ /** * Cannot directly construct OpenSSLCertificate, use openssl_x509_read() instead * @see openssl_x509_read() */ - private function __construct(){} + private function __construct() {} } /** * @since 8.0 */ -final class OpenSSLCertificateSigningRequest{ +final class OpenSSLCertificateSigningRequest +{ /** * Cannot directly construct OpenSSLCertificateSigningRequest, use openssl_csr_new() instead * @see openssl_csr_new() */ - private function __construct(){} + private function __construct() {} } /** * @since 8.0 */ -final class OpenSSLAsymmetricKey{ +final class OpenSSLAsymmetricKey +{ /** * Cannot directly construct OpenSSLAsymmetricKey, use openssl_pkey_new() instead * @see openssl_pkey_new() */ - private function __construct(){} + private function __construct() {} } diff --git a/parallel/parallel.php b/parallel/parallel.php index 86cfe2f7b..6d10c8199 100644 --- a/parallel/parallel.php +++ b/parallel/parallel.php @@ -12,7 +12,7 @@ * @throws Runtime\Error\Bootstrap if previously called for this process. * @throws Runtime\Error\Bootstrap if called after @see run(). */ -function bootstrap(string $file) : void{} +function bootstrap(string $file): void {} /** * @see Runtime::run() for more details @@ -35,11 +35,11 @@ function bootstrap(string $file) : void{} * @throws Runtime\Error\IllegalParameter if task accepts or argv contains illegal variables. * @throws Runtime\Error\IllegalReturn if task returns illegally. */ -function run(Closure $task, array $argv = null) : ?Future{} +function run(Closure $task, array $argv = null): ?Future {} #ifdef ZEND_DEBUG /** * @return int */ -function count() : int{} +function count(): int {} #endif diff --git a/parallel/parallel/Channel.php b/parallel/parallel/Channel.php index c0362cad7..6c90b3e3b 100644 --- a/parallel/parallel/Channel.php +++ b/parallel/parallel/Channel.php @@ -32,78 +32,78 @@ * The anonymous channel constructor allows the programmer to avoid assigning names to every channel: parallel will * generate a unique name for anonymous channels. */ -final class Channel{ +final class Channel +{ + /** + * Constant for Infinitely Buffered + */ + public const Infinite = -1; - /** - * Constant for Infinitely Buffered - */ - public const Infinite = -1; + /* Anonymous Constructor */ - /* Anonymous Constructor */ + /** + * Shall make an anonymous unbuffered channel + * Shall make an anonymous buffered channel with the given capacity + * + * @param null|int $capacity May be Channel::Infinite or a positive integer + */ + public function __construct(?int $capacity = null) {} - /** - * Shall make an anonymous unbuffered channel - * Shall make an anonymous buffered channel with the given capacity - * - * @param null|int $capacity May be Channel::Infinite or a positive integer - */ - public function __construct(?int $capacity = null){} + /* Access */ - /* Access */ + /** + * Shall make an unbuffered channel with the given name + * Shall make a buffered channel with the given name and capacity + * + * @param string $name The name of the channel. + * @param null|int $capacity May be Channel::Infinite or a positive integer + * + * @return Channel + * + * @throws Channel\Error\Existence if channel already exists. + */ + public static function make(string $name, ?int $capacity = null): Channel {} - /** - * Shall make an unbuffered channel with the given name - * Shall make a buffered channel with the given name and capacity - * - * @param string $name The name of the channel. - * @param null|int $capacity May be Channel::Infinite or a positive integer - * - * @return Channel - * - * @throws Channel\Error\Existence if channel already exists. - */ - public static function make(string $name, ?int $capacity = null) : Channel{} + /** + * Shall open the channel with the given name + * + * @param string $name + * @return Channel + * + * @throws Channel\Error\Existence if channel does not exist. + */ + public static function open(string $name): Channel {} - /** - * Shall open the channel with the given name - * - * @param string $name - * @return Channel - * - * @throws Channel\Error\Existence if channel does not exist. - */ - public static function open(string $name) : Channel{} + /* Sharing */ - /* Sharing */ + /** + * Shall send the given value on this channel + * @param mixed $value + * + * @throws Channel\Error\Closed if channel is closed. + * @throws Channel\Error\IllegalValue if value is illegal. + */ + public function send($value): void {} - /** - * Shall send the given value on this channel - * @param mixed $value - * - * @throws Channel\Error\Closed if channel is closed. - * @throws Channel\Error\IllegalValue if value is illegal. - */ - public function send($value) : void{} + /** + * Shall recv a value from this channel + * @return mixed + * + * @throws Channel\Error\Closed if channel is closed. + */ + public function recv() {} - /** - * Shall recv a value from this channel - * @return mixed - * - * @throws Channel\Error\Closed if channel is closed. - */ - public function recv(){} + /* Closing */ - /* Closing */ + /** + * Shall close this channel + * @throws Channel\Error\Closed if channel is closed. + */ + public function close(): void {} - /** - * Shall close this channel - * @throws Channel\Error\Closed if channel is closed. - */ - public function close() : void{} - - /** - * Returns name of channel - * @return string - */ - public function __toString() : string{} + /** + * Returns name of channel + * @return string + */ + public function __toString(): string {} } diff --git a/parallel/parallel/Channel/Error.php b/parallel/parallel/Channel/Error.php index 879093d74..8911fe70a 100644 --- a/parallel/parallel/Channel/Error.php +++ b/parallel/parallel/Channel/Error.php @@ -2,5 +2,4 @@ namespace parallel\Channel; -class Error extends \parallel\Error{ -} +class Error extends \parallel\Error {} diff --git a/parallel/parallel/Channel/Error/Closed.php b/parallel/parallel/Channel/Error/Closed.php index 33166b426..8354fc381 100644 --- a/parallel/parallel/Channel/Error/Closed.php +++ b/parallel/parallel/Channel/Error/Closed.php @@ -4,5 +4,4 @@ use parallel\Channel\Error; -class Closed extends Error{ -} +class Closed extends Error {} diff --git a/parallel/parallel/Channel/Error/Existence.php b/parallel/parallel/Channel/Error/Existence.php index f74d3bb86..ed8c3cfe2 100644 --- a/parallel/parallel/Channel/Error/Existence.php +++ b/parallel/parallel/Channel/Error/Existence.php @@ -4,5 +4,4 @@ use parallel\Channel\Error; -class Existence extends Error{ -} +class Existence extends Error {} diff --git a/parallel/parallel/Channel/Error/IllegalValue.php b/parallel/parallel/Channel/Error/IllegalValue.php index 8c839e095..3af30b9c3 100644 --- a/parallel/parallel/Channel/Error/IllegalValue.php +++ b/parallel/parallel/Channel/Error/IllegalValue.php @@ -4,5 +4,4 @@ use parallel\Channel\Error; -class IllegalValue extends Error{ -} +class IllegalValue extends Error {} diff --git a/parallel/parallel/Error.php b/parallel/parallel/Error.php index 0c9c7ef22..73479480f 100644 --- a/parallel/parallel/Error.php +++ b/parallel/parallel/Error.php @@ -2,5 +2,4 @@ namespace parallel; -class Error extends \Error{ -} +class Error extends \Error {} diff --git a/parallel/parallel/Events.php b/parallel/parallel/Events.php index f08d5401e..d47a6487a 100644 --- a/parallel/parallel/Events.php +++ b/parallel/parallel/Events.php @@ -3,7 +3,8 @@ namespace parallel; use Countable; -use parallel\Events\{Event, Input}; +use parallel\Events\Event; +use parallel\Events\Input; use Traversable; /** @@ -13,100 +14,100 @@ * (Future::value(), Channel::recv()) and write (Channel::send()) operations as the targets become available and the * operations may be performed without blocking the event loop. */ -final class Events implements Countable, Traversable{ - - /* Input */ - - /** - * Shall set input for this event loop - * @param Events\Input $input - */ - public function setInput(Input $input) : void{} - - /* Targets */ - - /** - * Shall watch for events on the given channel - * @param Channel $channel - * - * @throws Events\Error\Existence if channel was already added. - */ - public function addChannel(Channel $channel) : void{} - - /** - * Shall watch for events on the given future - * - * @param string $name - * @param Future $future - * - * @throws Events\Error\Existence if target with the given name was already added. - */ - public function addFuture(string $name, Future $future) : void{} - - /** - * Shall remove the given target - * @param string $target - * - * @throws Events\Error\Existence if target with the given name was not found. - */ - public function remove(string $target) : void{} - - /* Behaviour */ - - /** - * Shall set blocking mode - * - * By default when events are polled for, blocking will occur (at the PHP level) until the first event can be - * returned: Setting blocking mode to false will cause poll to return control if the first target polled is not - * ready. - * - * This differs from setting a timeout of 0 with @see Events::setTimeout(), since a timeout of 0, while - * allowed, will cause an exception to be raised, which may be extremely slow or wasteful if what is really desired - * is non-blocking behaviour. - * - * A non-blocking loop effects the return value of @see Events::poll(), such that it may be null before all events - * have been processed. - * - * @param bool $blocking - * - * @throws Events\Error if loop has timeout set. - */ - public function setBlocking(bool $blocking) : void{} - - /* Behaviour */ - - /** - * Shall set the timeout in microseconds - * - * By default when events are polled for, blocking will occur (at the PHP level) until the first event can be - * returned: Setting the timeout causes an exception to be thrown when the timeout is reached. - * - * This differs from setting blocking mode to false with @see Events::setBlocking(), which will not cause an - * exception to be thrown. - * - * @throws Events\Error if loop is non-blocking. - * - * @param int $timeout - */ - public function setTimeout(int $timeout) : void{} - - /* Polling */ - - /** - * Shall poll for the next event - * - * Should there be no targets remaining, null shall be returned - * Should this be a non-blocking loop, and blocking would occur, null shall be returned - * Otherwise, the Event returned describes the event. - * - * @return Event|null - * - * @throws Events\Error\Timeout if timeout is used and reached. - */ - public function poll() : ?Event{} - - /** - * @return int - */ - public function count() : int{} +final class Events implements Countable, Traversable +{ + /* Input */ + + /** + * Shall set input for this event loop + * @param Events\Input $input + */ + public function setInput(Input $input): void {} + + /* Targets */ + + /** + * Shall watch for events on the given channel + * @param Channel $channel + * + * @throws Events\Error\Existence if channel was already added. + */ + public function addChannel(Channel $channel): void {} + + /** + * Shall watch for events on the given future + * + * @param string $name + * @param Future $future + * + * @throws Events\Error\Existence if target with the given name was already added. + */ + public function addFuture(string $name, Future $future): void {} + + /** + * Shall remove the given target + * @param string $target + * + * @throws Events\Error\Existence if target with the given name was not found. + */ + public function remove(string $target): void {} + + /* Behaviour */ + + /** + * Shall set blocking mode + * + * By default when events are polled for, blocking will occur (at the PHP level) until the first event can be + * returned: Setting blocking mode to false will cause poll to return control if the first target polled is not + * ready. + * + * This differs from setting a timeout of 0 with @see Events::setTimeout(), since a timeout of 0, while + * allowed, will cause an exception to be raised, which may be extremely slow or wasteful if what is really desired + * is non-blocking behaviour. + * + * A non-blocking loop effects the return value of @see Events::poll(), such that it may be null before all events + * have been processed. + * + * @param bool $blocking + * + * @throws Events\Error if loop has timeout set. + */ + public function setBlocking(bool $blocking): void {} + + /* Behaviour */ + + /** + * Shall set the timeout in microseconds + * + * By default when events are polled for, blocking will occur (at the PHP level) until the first event can be + * returned: Setting the timeout causes an exception to be thrown when the timeout is reached. + * + * This differs from setting blocking mode to false with @see Events::setBlocking(), which will not cause an + * exception to be thrown. + * + * @throws Events\Error if loop is non-blocking. + * + * @param int $timeout + */ + public function setTimeout(int $timeout): void {} + + /* Polling */ + + /** + * Shall poll for the next event + * + * Should there be no targets remaining, null shall be returned + * Should this be a non-blocking loop, and blocking would occur, null shall be returned + * Otherwise, the Event returned describes the event. + * + * @return Event|null + * + * @throws Events\Error\Timeout if timeout is used and reached. + */ + public function poll(): ?Event {} + + /** + * @return int + */ + public function count(): int {} } diff --git a/parallel/parallel/Events/Error.php b/parallel/parallel/Events/Error.php index 343f5fccf..0776bac4c 100644 --- a/parallel/parallel/Events/Error.php +++ b/parallel/parallel/Events/Error.php @@ -2,5 +2,4 @@ namespace parallel\Events; -class Error extends \parallel\Error{ -} +class Error extends \parallel\Error {} diff --git a/parallel/parallel/Events/Error/Existence.php b/parallel/parallel/Events/Error/Existence.php index fb8f5d894..ba1f7682e 100644 --- a/parallel/parallel/Events/Error/Existence.php +++ b/parallel/parallel/Events/Error/Existence.php @@ -4,5 +4,4 @@ use parallel\Events\Error; -class Existence extends Error{ -} +class Existence extends Error {} diff --git a/parallel/parallel/Events/Error/Timeout.php b/parallel/parallel/Events/Error/Timeout.php index f783d5bc3..1aaebce9f 100644 --- a/parallel/parallel/Events/Error/Timeout.php +++ b/parallel/parallel/Events/Error/Timeout.php @@ -4,5 +4,4 @@ use parallel\Events\Error; -class Timeout extends Error{ -} +class Timeout extends Error {} diff --git a/parallel/parallel/Events/Event.php b/parallel/parallel/Events/Event.php index e428abf17..b56bfe62e 100644 --- a/parallel/parallel/Events/Event.php +++ b/parallel/parallel/Events/Event.php @@ -6,28 +6,29 @@ * When an Event is returned, @see Event::$object shall be removed from the loop that returned it, should the event be a * write event the Input for @see Event::$source shall also be removed. */ -final class Event{ - /** - * Shall be one of Event\Type constants - * @var int - */ - public $type; +final class Event +{ + /** + * Shall be one of Event\Type constants + * @var int + */ + public $type; - /** - * Shall be the source of the event (target name) - * @var string - */ - public $source; + /** + * Shall be the source of the event (target name) + * @var string + */ + public $source; - /** - * Shall be either Future or Channel - * @var object - */ - public $object; + /** + * Shall be either Future or Channel + * @var object + */ + public $object; - /** - * Shall be set for Read/Error events - * @var mixed - */ - public $value; + /** + * Shall be set for Read/Error events + * @var mixed + */ + public $value; } diff --git a/parallel/parallel/Events/Event/Error.php b/parallel/parallel/Events/Event/Error.php index cdb52fe4e..c3acc59b2 100644 --- a/parallel/parallel/Events/Event/Error.php +++ b/parallel/parallel/Events/Event/Error.php @@ -2,5 +2,4 @@ namespace parallel\Events\Event; -class Error extends \parallel\Error{ -} +class Error extends \parallel\Error {} diff --git a/parallel/parallel/Events/Event/Type.php b/parallel/parallel/Events/Event/Type.php index 33772709f..89231739a 100644 --- a/parallel/parallel/Events/Event/Type.php +++ b/parallel/parallel/Events/Event/Type.php @@ -2,22 +2,23 @@ namespace parallel\Events\Event; -final class Type{ - /** Event::$object was read into Event::$value */ - public const Read = 1; +final class Type +{ + /** Event::$object was read into Event::$value */ + public const Read = 1; - /** Input for Event::$source written to Event::$object */ - public const Write = 2; + /** Input for Event::$source written to Event::$object */ + public const Write = 2; - /** Event::$object (Channel) was closed */ - public const Close = 3; + /** Event::$object (Channel) was closed */ + public const Close = 3; - /** Event::$object (Future) was cancelled */ - public const Cancel = 5; + /** Event::$object (Future) was cancelled */ + public const Cancel = 5; - /** Runtime executing Event::$object (Future) was killed */ - public const Kill = 6; + /** Runtime executing Event::$object (Future) was killed */ + public const Kill = 6; - /** Event::$object (Future) raised error */ - public const Error = 4; + /** Event::$object (Future) raised error */ + public const Error = 4; } diff --git a/parallel/parallel/Events/Input.php b/parallel/parallel/Events/Input.php index d9817475f..6b224e65e 100644 --- a/parallel/parallel/Events/Input.php +++ b/parallel/parallel/Events/Input.php @@ -12,28 +12,28 @@ * Note: When a parallel\Events object performs a write, the target is removed from the input object as if * @see Input::remove() were called. */ -final class Input{ +final class Input +{ + /** + * Shall set input for the given target + * + * @param string $target + * @param mixed $value + * + * @throws Input\Error\Existence if input for target already exists. + * @throws Input\Error\IllegalValue if value is illegal (object, null). + */ + public function add(string $target, $value): void {} - /** - * Shall set input for the given target - * - * @param string $target - * @param mixed $value - * - * @throws Input\Error\Existence if input for target already exists. - * @throws Input\Error\IllegalValue if value is illegal (object, null). - */ - public function add(string $target, $value) : void{} + /** + * Shall remove input for the given target + * @param string $target + * @throws Input\Error\Existence if input for target does not exist. + */ + public function remove(string $target): void {} - /** - * Shall remove input for the given target - * @param string $target - * @throws Input\Error\Existence if input for target does not exist. - */ - public function remove(string $target) : void{} - - /** - * Shall remove input for all targets - */ - public function clear() : void{} + /** + * Shall remove input for all targets + */ + public function clear(): void {} } diff --git a/parallel/parallel/Events/Input/Error.php b/parallel/parallel/Events/Input/Error.php index 36118e587..047d22ab4 100644 --- a/parallel/parallel/Events/Input/Error.php +++ b/parallel/parallel/Events/Input/Error.php @@ -2,5 +2,4 @@ namespace parallel\Events\Input; -class Error extends \parallel\Error{ -} +class Error extends \parallel\Error {} diff --git a/parallel/parallel/Events/Input/Error/Existence.php b/parallel/parallel/Events/Input/Error/Existence.php index 97a6cefc5..3160a88a8 100644 --- a/parallel/parallel/Events/Input/Error/Existence.php +++ b/parallel/parallel/Events/Input/Error/Existence.php @@ -4,5 +4,4 @@ use parallel\Events\Input\Error; -class Existence extends Error{ -} +class Existence extends Error {} diff --git a/parallel/parallel/Events/Input/Error/IllegalValue.php b/parallel/parallel/Events/Input/Error/IllegalValue.php index dc7ae2a86..d08d5ade7 100644 --- a/parallel/parallel/Events/Input/Error/IllegalValue.php +++ b/parallel/parallel/Events/Input/Error/IllegalValue.php @@ -4,5 +4,4 @@ use parallel\Events\Input\Error; -class IllegalValue extends Error{ -} +class IllegalValue extends Error {} diff --git a/parallel/parallel/Future.php b/parallel/parallel/Future.php index ac4cb03bd..c14b9220d 100644 --- a/parallel/parallel/Future.php +++ b/parallel/parallel/Future.php @@ -12,48 +12,48 @@ * * @see https://www.php.net/manual/en/class.parallel-future.php */ -final class Future{ - - /* Resolution */ - - /** - * Shall return (and if necessary wait for) return from task - * - * @return mixed - * - * @throws Future\Error if waiting failed (internal error). - * @throws Future\Error\Killed if \parallel\Runtime executing task was killed. - * @throws Future\Error\Cancelled if task was cancelled. - * @throws Future\Error\Foreign if task raised an unrecognized uncaught exception. - * @throws Throwable Shall rethrow \Throwable uncaught in task - */ - public function value(){} - - /* State */ - - /** - * Shall indicate if the task is completed - * @return bool - */ - public function done() : bool{} - - /** - * Shall indicate if the task was cancelled - * @return bool - */ - public function cancelled() : bool{} - - /* Cancellation */ - - /** - * Shall try to cancel the task - * Note: If task is running, it will be interrupted. - * Warning: Internal function calls in progress cannot be interrupted. - * - * @return bool - * - * @throws Future\Error\Killed if \parallel\Runtime executing task was killed. - * @throws Future\Error\Cancelled if task was already cancelled. - */ - public function cancel() : bool{} +final class Future +{ + /* Resolution */ + + /** + * Shall return (and if necessary wait for) return from task + * + * @return mixed + * + * @throws Future\Error if waiting failed (internal error). + * @throws Future\Error\Killed if \parallel\Runtime executing task was killed. + * @throws Future\Error\Cancelled if task was cancelled. + * @throws Future\Error\Foreign if task raised an unrecognized uncaught exception. + * @throws Throwable Shall rethrow \Throwable uncaught in task + */ + public function value() {} + + /* State */ + + /** + * Shall indicate if the task is completed + * @return bool + */ + public function done(): bool {} + + /** + * Shall indicate if the task was cancelled + * @return bool + */ + public function cancelled(): bool {} + + /* Cancellation */ + + /** + * Shall try to cancel the task + * Note: If task is running, it will be interrupted. + * Warning: Internal function calls in progress cannot be interrupted. + * + * @return bool + * + * @throws Future\Error\Killed if \parallel\Runtime executing task was killed. + * @throws Future\Error\Cancelled if task was already cancelled. + */ + public function cancel(): bool {} } diff --git a/parallel/parallel/Future/Error.php b/parallel/parallel/Future/Error.php index c9badbd54..54b9671bc 100644 --- a/parallel/parallel/Future/Error.php +++ b/parallel/parallel/Future/Error.php @@ -2,5 +2,4 @@ namespace parallel\Future; -class Error extends \parallel\Error{ -} +class Error extends \parallel\Error {} diff --git a/parallel/parallel/Future/Error/Cancelled.php b/parallel/parallel/Future/Error/Cancelled.php index 7b2bd963d..a7559901e 100644 --- a/parallel/parallel/Future/Error/Cancelled.php +++ b/parallel/parallel/Future/Error/Cancelled.php @@ -4,5 +4,4 @@ use parallel\Error; -class Cancelled extends Error{ -} +class Cancelled extends Error {} diff --git a/parallel/parallel/Future/Error/Foreign.php b/parallel/parallel/Future/Error/Foreign.php index e0291dc96..54201b8cd 100644 --- a/parallel/parallel/Future/Error/Foreign.php +++ b/parallel/parallel/Future/Error/Foreign.php @@ -4,5 +4,4 @@ use parallel\Error; -class Foreign extends Error{ -} +class Foreign extends Error {} diff --git a/parallel/parallel/Future/Error/Killed.php b/parallel/parallel/Future/Error/Killed.php index 56620ccc7..8f549f162 100644 --- a/parallel/parallel/Future/Error/Killed.php +++ b/parallel/parallel/Future/Error/Killed.php @@ -4,5 +4,4 @@ use parallel\Error; -class Killed extends Error{ -} +class Killed extends Error {} diff --git a/parallel/parallel/Runtime.php b/parallel/parallel/Runtime.php index 7c141b5a4..1b885436c 100644 --- a/parallel/parallel/Runtime.php +++ b/parallel/parallel/Runtime.php @@ -20,98 +20,98 @@ * Note: preloading may be used in conjunction with parallel, in this case preloaded code is available without * bootstrapping */ -final class Runtime{ +final class Runtime +{ + /* Create */ - /* Create */ + /** + * Shall construct a new runtime without bootstrapping. + * Shall construct a bootstrapped runtime. + * + * @param null|string $bootstrap The location of a bootstrap file, generally an autoloader. + * + * @throws Runtime\Error if thread could not be created + * @throws Runtime\Error\Bootstrap if bootstrapping failed + */ + public function __construct(?string $bootstrap = null) {} - /** - * Shall construct a new runtime without bootstrapping. - * Shall construct a bootstrapped runtime. - * - * @param null|string $bootstrap The location of a bootstrap file, generally an autoloader. - * - * @throws Runtime\Error if thread could not be created - * @throws Runtime\Error\Bootstrap if bootstrapping failed - */ - public function __construct(?string $bootstrap = null){} + /* Execute */ - /* Execute */ + /** + * Shall schedule task for execution in parallel, passing argv at execution time. + * + * @param Closure $task A Closure with specific characteristics. + * @param null|array $argv An array of arguments with specific characteristics to be passed to task at execution + * time. + * + * ### Task Characteristics + * ----------------------------------------------------------------------------------------------------------------- + * Closures scheduled for parallel execution must not: + * - accept or return by reference + * - accept or return internal objects (see notes) + * - execute a limited set of instructions + * + * Instructions prohibited in Closures intended for parallel execution are: + * - yield + * - use by-reference + * - declare class + * - declare named function + * + * Note: Nested closures may yield or use by-reference, but must not contain class or named function declarations. + * Note: No instructions are prohibited in the files which the task may include. + * + * ### Arguments Characteristics + * ----------------------------------------------------------------------------------------------------------------- + * Arguments must not: + * - contain references + * - contain resources + * - contain internal objects (see notes) + * + * Note: In the case of file stream resources, the resource will be cast to the file descriptor and passed as int + * where possible, this is unsupported on Windows + * + * ### Internal Objects Notes + * ----------------------------------------------------------------------------------------------------------------- + * Internal objects generally use a custom structure which cannot be copied by value safely, PHP currently lacks + * the mechanics to do this (without serialization) and so only objects that do not use a custom structure may + * be shared. + * + * Some internal objects do not use a custom structure, for example @see \parallel\Events\Event and so may be + * shared. Closures are a special kind of internal object and support being copied by value, and so may be + * shared. Channels are central to writing parallel code and support concurrent access and execution by + * necessity, and so may be shared. + * + * Warning: A user class that extends an internal class may use a custom structure as defined by the internal + * class, in which case they cannot be copied by value safely, and so may not be shared. + * + * @return Future|null The return Future must not be ignored when the task contains a return or throw + * statement. + * + * @throws Runtime\Error\Closed if \parallel\Runtime was closed. + * @throws Runtime\Error\IllegalFunction if task is a closure created from an internal function. + * @throws Runtime\Error\IllegalInstruction if task contains illegal instructions. + * @throws Runtime\Error\IllegalParameter if task accepts or argv contains illegal variables. + * @throws Runtime\Error\IllegalReturn if task returns illegally. + */ + public function run(Closure $task, ?array $argv = null): ?Future {} - /** - * Shall schedule task for execution in parallel, passing argv at execution time. - * - * @param Closure $task A Closure with specific characteristics. - * @param null|array $argv An array of arguments with specific characteristics to be passed to task at execution - * time. - * - * ### Task Characteristics - * ----------------------------------------------------------------------------------------------------------------- - * Closures scheduled for parallel execution must not: - * - accept or return by reference - * - accept or return internal objects (see notes) - * - execute a limited set of instructions - * - * Instructions prohibited in Closures intended for parallel execution are: - * - yield - * - use by-reference - * - declare class - * - declare named function - * - * Note: Nested closures may yield or use by-reference, but must not contain class or named function declarations. - * Note: No instructions are prohibited in the files which the task may include. - * - * ### Arguments Characteristics - * ----------------------------------------------------------------------------------------------------------------- - * Arguments must not: - * - contain references - * - contain resources - * - contain internal objects (see notes) - * - * Note: In the case of file stream resources, the resource will be cast to the file descriptor and passed as int - * where possible, this is unsupported on Windows - * - * ### Internal Objects Notes - * ----------------------------------------------------------------------------------------------------------------- - * Internal objects generally use a custom structure which cannot be copied by value safely, PHP currently lacks - * the mechanics to do this (without serialization) and so only objects that do not use a custom structure may - * be shared. - * - * Some internal objects do not use a custom structure, for example @see \parallel\Events\Event and so may be - * shared. Closures are a special kind of internal object and support being copied by value, and so may be - * shared. Channels are central to writing parallel code and support concurrent access and execution by - * necessity, and so may be shared. - * - * Warning: A user class that extends an internal class may use a custom structure as defined by the internal - * class, in which case they cannot be copied by value safely, and so may not be shared. - * - * @return Future|null The return Future must not be ignored when the task contains a return or throw - * statement. - * - * @throws Runtime\Error\Closed if \parallel\Runtime was closed. - * @throws Runtime\Error\IllegalFunction if task is a closure created from an internal function. - * @throws Runtime\Error\IllegalInstruction if task contains illegal instructions. - * @throws Runtime\Error\IllegalParameter if task accepts or argv contains illegal variables. - * @throws Runtime\Error\IllegalReturn if task returns illegally. - */ - public function run(Closure $task, ?array $argv = null) : ?Future{} + /* Join */ - /* Join */ + /** + * Shall request that the runtime shutsdown. + * Note: Tasks scheduled for execution will be executed before the shutdown occurs. + * + * @throws Runtime\Error\Closed if Runtime was already closed. + */ + public function close(): void {} - /** - * Shall request that the runtime shutsdown. - * Note: Tasks scheduled for execution will be executed before the shutdown occurs. - * - * @throws Runtime\Error\Closed if Runtime was already closed. - */ - public function close() : void{} - - /** - * Shall attempt to force the runtime to shutdown. - * - * Note: Tasks scheduled for execution will not be executed, the currently running task shall be interrupted. - * Warning: Internal function calls in progress cannot be interrupted. - * - * @throws Runtime\Error\Closed if Runtime was closed. - */ - public function kill() : void{} + /** + * Shall attempt to force the runtime to shutdown. + * + * Note: Tasks scheduled for execution will not be executed, the currently running task shall be interrupted. + * Warning: Internal function calls in progress cannot be interrupted. + * + * @throws Runtime\Error\Closed if Runtime was closed. + */ + public function kill(): void {} } diff --git a/parallel/parallel/Runtime/Error.php b/parallel/parallel/Runtime/Error.php index 254cec538..a2586bf9f 100644 --- a/parallel/parallel/Runtime/Error.php +++ b/parallel/parallel/Runtime/Error.php @@ -2,5 +2,4 @@ namespace parallel\Runtime; -class Error extends \parallel\Error{ -} +class Error extends \parallel\Error {} diff --git a/parallel/parallel/Runtime/Error/Bootstrap.php b/parallel/parallel/Runtime/Error/Bootstrap.php index e5304f46c..2a4b88dac 100644 --- a/parallel/parallel/Runtime/Error/Bootstrap.php +++ b/parallel/parallel/Runtime/Error/Bootstrap.php @@ -4,5 +4,4 @@ use parallel\Runtime\Error; -class Bootstrap extends Error{ -} +class Bootstrap extends Error {} diff --git a/parallel/parallel/Runtime/Error/Closed.php b/parallel/parallel/Runtime/Error/Closed.php index 9d52223d4..1efe272aa 100644 --- a/parallel/parallel/Runtime/Error/Closed.php +++ b/parallel/parallel/Runtime/Error/Closed.php @@ -4,5 +4,4 @@ use parallel\Runtime\Error; -class Closed extends Error{ -} +class Closed extends Error {} diff --git a/parallel/parallel/Runtime/Error/IllegalFunction.php b/parallel/parallel/Runtime/Error/IllegalFunction.php index a53c470ed..7607faa8e 100644 --- a/parallel/parallel/Runtime/Error/IllegalFunction.php +++ b/parallel/parallel/Runtime/Error/IllegalFunction.php @@ -4,5 +4,4 @@ use parallel\Runtime\Error; -class IllegalFunction extends Error{ -} +class IllegalFunction extends Error {} diff --git a/parallel/parallel/Runtime/Error/IllegalInstruction.php b/parallel/parallel/Runtime/Error/IllegalInstruction.php index beb24c3f7..236b2a7b7 100644 --- a/parallel/parallel/Runtime/Error/IllegalInstruction.php +++ b/parallel/parallel/Runtime/Error/IllegalInstruction.php @@ -4,5 +4,4 @@ use parallel\Runtime\Error; -class IllegalInstruction extends Error{ -} +class IllegalInstruction extends Error {} diff --git a/parallel/parallel/Runtime/Error/IllegalParameter.php b/parallel/parallel/Runtime/Error/IllegalParameter.php index ea81377e9..8879810cb 100644 --- a/parallel/parallel/Runtime/Error/IllegalParameter.php +++ b/parallel/parallel/Runtime/Error/IllegalParameter.php @@ -4,5 +4,4 @@ use parallel\Runtime\Error; -class IllegalParameter extends Error{ -} +class IllegalParameter extends Error {} diff --git a/parallel/parallel/Runtime/Error/IllegalReturn.php b/parallel/parallel/Runtime/Error/IllegalReturn.php index fd91c4d31..c98ef5d34 100644 --- a/parallel/parallel/Runtime/Error/IllegalReturn.php +++ b/parallel/parallel/Runtime/Error/IllegalReturn.php @@ -4,5 +4,4 @@ use parallel\Runtime\Error; -class IllegalReturn extends Error{ -} +class IllegalReturn extends Error {} diff --git a/parallel/parallel/Runtime/Error/IllegalVariable.php b/parallel/parallel/Runtime/Error/IllegalVariable.php index c7c89b5e6..052eb5b0d 100644 --- a/parallel/parallel/Runtime/Error/IllegalVariable.php +++ b/parallel/parallel/Runtime/Error/IllegalVariable.php @@ -4,5 +4,4 @@ use parallel\Runtime\Error; -class IllegalVariable extends Error{ -} +class IllegalVariable extends Error {} diff --git a/parallel/parallel/Runtime/Error/Killed.php b/parallel/parallel/Runtime/Error/Killed.php index a9a0b7088..adddcc533 100644 --- a/parallel/parallel/Runtime/Error/Killed.php +++ b/parallel/parallel/Runtime/Error/Killed.php @@ -4,5 +4,4 @@ use parallel\Runtime\Error; -class Killed extends Error{ -} +class Killed extends Error {} diff --git a/parallel/parallel/Runtime/Object/Unavailable.php b/parallel/parallel/Runtime/Object/Unavailable.php index 8f357be24..d748829a6 100644 --- a/parallel/parallel/Runtime/Object/Unavailable.php +++ b/parallel/parallel/Runtime/Object/Unavailable.php @@ -2,5 +2,4 @@ namespace parallel\Runtime\Object; -class Unavailable{ -} +class Unavailable {} diff --git a/parallel/parallel/Runtime/Type/Unavailable.php b/parallel/parallel/Runtime/Type/Unavailable.php index 90c6928b2..675663641 100644 --- a/parallel/parallel/Runtime/Type/Unavailable.php +++ b/parallel/parallel/Runtime/Type/Unavailable.php @@ -2,5 +2,4 @@ namespace parallel\Runtime\Type; -class Unavailable{ -} +class Unavailable {} diff --git a/parallel/parallel/Sync.php b/parallel/parallel/Sync.php index 0475192f7..a287bf11c 100644 --- a/parallel/parallel/Sync.php +++ b/parallel/parallel/Sync.php @@ -9,55 +9,55 @@ * Synchronization for most applications is much better implemented using channels, however, in some cases authors of * low level code may find it useful to be able to access these lower level mechanisms. */ -final class Sync{ - - /* Constructor */ - - /** - * Shall construct a new synchronization object with no value - * Shall construct a new synchronization object containing the given scalar value - * - * @param string|int|float|bool $value - * - * @throws Sync\Error\IllegalValue if value is non-scalar. - */ - public function __construct($value = null){} - - /* Access */ - - /** - * Shall atomically return the synchronization objects value - * @return string|int|float|bool - */ - public function get(){} - - /** - * Shall atomically set the value of the synchronization object - * @param string|int|float|bool $value - * - * @throws Sync\Error\IllegalValue if value is non-scalar. - */ - public function set($value){} - - /* Synchronization */ - - /** - * Shall wait for notification on this synchronization object - * @return bool - */ - public function wait() : bool{} - - /** - * Shall notify one (by default) or all threads waiting on the synchronization object - * @param bool $all - * - * @return bool - */ - public function notify(bool $all = null) : bool{} - - /** - * Shall exclusively enter into the critical code - * @param callable $block - */ - public function __invoke(callable $block){} +final class Sync +{ + /* Constructor */ + + /** + * Shall construct a new synchronization object with no value + * Shall construct a new synchronization object containing the given scalar value + * + * @param string|int|float|bool $value + * + * @throws Sync\Error\IllegalValue if value is non-scalar. + */ + public function __construct($value = null) {} + + /* Access */ + + /** + * Shall atomically return the synchronization objects value + * @return string|int|float|bool + */ + public function get() {} + + /** + * Shall atomically set the value of the synchronization object + * @param string|int|float|bool $value + * + * @throws Sync\Error\IllegalValue if value is non-scalar. + */ + public function set($value) {} + + /* Synchronization */ + + /** + * Shall wait for notification on this synchronization object + * @return bool + */ + public function wait(): bool {} + + /** + * Shall notify one (by default) or all threads waiting on the synchronization object + * @param bool $all + * + * @return bool + */ + public function notify(bool $all = null): bool {} + + /** + * Shall exclusively enter into the critical code + * @param callable $block + */ + public function __invoke(callable $block) {} } diff --git a/parallel/parallel/Sync/Error.php b/parallel/parallel/Sync/Error.php index ec4524c9d..af870c7a1 100644 --- a/parallel/parallel/Sync/Error.php +++ b/parallel/parallel/Sync/Error.php @@ -2,5 +2,4 @@ namespace parallel\Sync; -class Error extends \parallel\Error{ -} +class Error extends \parallel\Error {} diff --git a/parallel/parallel/Sync/Error/IllegalValue.php b/parallel/parallel/Sync/Error/IllegalValue.php index 277090ab5..af9b9d3a0 100644 --- a/parallel/parallel/Sync/Error/IllegalValue.php +++ b/parallel/parallel/Sync/Error/IllegalValue.php @@ -4,5 +4,4 @@ use parallel\Sync\Error; -class IllegalValue extends Error{ -} +class IllegalValue extends Error {} diff --git a/pcntl/pcntl.php b/pcntl/pcntl.php index 3a814e82a..9b38a2058 100644 --- a/pcntl/pcntl.php +++ b/pcntl/pcntl.php @@ -13,8 +13,7 @@ * parent's context, no child process will be created, and a PHP * error is raised. */ -function pcntl_fork (): int -{} +function pcntl_fork(): int {} /** * Waits on or returns the status of a forked child @@ -95,8 +94,7 @@ function pcntl_fork (): int * child which exited, -1 on error or zero if WNOHANG was used and no * child was available */ -function pcntl_waitpid (int $process_id, &$status, int $flags = 0, &$resource_usage): int -{} +function pcntl_waitpid(int $process_id, &$status, int $flags = 0, &$resource_usage): int {} /** * Waits on or returns the status of a forked child @@ -142,8 +140,7 @@ function pcntl_waitpid (int $process_id, &$status, int $flags = 0, &$resource_us * child which exited, -1 on error or zero if WNOHANG was provided as an * option (on wait3-available systems) and no child was available. */ -function pcntl_wait (&$status, int $flags = 0, &$resource_usage): int -{} +function pcntl_wait(&$status, int $flags = 0, &$resource_usage): int {} /** * Installs a signal handler @@ -173,16 +170,14 @@ function pcntl_wait (&$status, int $flags = 0, &$resource_usage): int *

    * @return bool TRUE on success or FALSE on failure. */ -function pcntl_signal (int $signal, $handler, bool $restart_syscalls = true): bool -{} +function pcntl_signal(int $signal, $handler, bool $restart_syscalls = true): bool {} /** * Calls signal handlers for pending signals * @link https://php.net/manual/en/function.pcntl-signal-dispatch.php * @return bool TRUE on success or FALSE on failure. */ -function pcntl_signal_dispatch (): bool -{} +function pcntl_signal_dispatch(): bool {} /** * Checks if status code represents a normal exit @@ -194,8 +189,7 @@ function pcntl_signal_dispatch (): bool * otherwise. */ #[Pure] -function pcntl_wifexited (int $status): bool -{} +function pcntl_wifexited(int $status): bool {} /** * Checks whether the child process is currently stopped @@ -207,8 +201,7 @@ function pcntl_wifexited (int $status): bool * currently stopped, FALSE otherwise. */ #[Pure] -function pcntl_wifstopped (int $status): bool -{} +function pcntl_wifstopped(int $status): bool {} /** * Checks whether the status code represents a termination due to a signal @@ -220,8 +213,7 @@ function pcntl_wifstopped (int $status): bool * not caught, FALSE otherwise. */ #[Pure] -function pcntl_wifsignaled (int $status): bool -{} +function pcntl_wifsignaled(int $status): bool {} /** * Returns the return code of a terminated child @@ -232,16 +224,14 @@ function pcntl_wifsignaled (int $status): bool * @return int|false the return code, as an integer. */ #[Pure] -function pcntl_wexitstatus (int $status): int|false -{} +function pcntl_wexitstatus(int $status): int|false {} /** * @param int $status * @return bool */ #[Pure] -function pcntl_wifcontinued (int $status): bool -{} +function pcntl_wifcontinued(int $status): bool {} /** * Returns the signal which caused the child to terminate @@ -252,8 +242,7 @@ function pcntl_wifcontinued (int $status): bool * @return int|false the signal number, as an integer. */ #[Pure] -function pcntl_wtermsig (int $status): int|false -{} +function pcntl_wtermsig(int $status): int|false {} /** * Returns the signal which caused the child to stop @@ -264,8 +253,7 @@ function pcntl_wtermsig (int $status): int|false * @return int|false the signal number. */ #[Pure] -function pcntl_wstopsig (int $status): int|false -{} +function pcntl_wstopsig(int $status): int|false {} /** * Executes specified program in current process space @@ -288,8 +276,7 @@ function pcntl_wstopsig (int $status): int|false *

    * @return bool FALSE on error and does not return on success. */ -function pcntl_exec (string $path, array $args, array $env_vars): bool -{} +function pcntl_exec(string $path, array $args, array $env_vars): bool {} /** * Set an alarm clock for delivery of a signal @@ -302,8 +289,7 @@ function pcntl_exec (string $path, array $args, array $env_vars): bool * remaining before it was to be delivered, or 0 if there * was no previously scheduled alarm. */ -function pcntl_alarm (int $seconds): int -{} +function pcntl_alarm(int $seconds): int {} /** * Retrieve the error number set by the last pcntl function which failed @@ -312,8 +298,7 @@ function pcntl_alarm (int $seconds): int * @since 5.3.4 */ #[Pure] -function pcntl_get_last_error (): int -{} +function pcntl_get_last_error(): int {} /** * Alias of pcntl_get_last_error @@ -322,8 +307,7 @@ function pcntl_get_last_error (): int * @since 5.3.4 */ #[Pure] -function pcntl_errno (): int -{} +function pcntl_errno(): int {} /** * Retrieve the system error message associated with the given errno @@ -335,8 +319,7 @@ function pcntl_errno (): int */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function pcntl_strerror (int $error_code): false|string -{} +function pcntl_strerror(int $error_code): false|string {} /** * Get the priority of any process @@ -353,8 +336,7 @@ function pcntl_strerror (int $error_code): false|string * scheduling. */ #[Pure] -function pcntl_getpriority (?int $process_id, int $mode = PRIO_PROCESS): int|false -{} +function pcntl_getpriority(?int $process_id, int $mode = PRIO_PROCESS): int|false {} /** * Change the priority of any process @@ -376,8 +358,7 @@ function pcntl_getpriority (?int $process_id, int $mode = PRIO_PROCESS): int|fal *

    * @return bool TRUE on success or FALSE on failure. */ -function pcntl_setpriority (int $priority, ?int $process_id, int $mode = PRIO_PROCESS): bool -{} +function pcntl_setpriority(int $priority, ?int $process_id, int $mode = PRIO_PROCESS): bool {} /** * Sets and retrieves blocked signals @@ -401,8 +382,7 @@ function pcntl_setpriority (int $priority, ?int $process_id, int $mode = PRIO_PR *

    * @return bool TRUE on success or FALSE on failure. */ -function pcntl_sigprocmask (int $mode, array $signals, &$old_signals): bool -{} +function pcntl_sigprocmask(int $mode, array $signals, &$old_signals): bool {} /** * Waits for signals @@ -442,8 +422,7 @@ function pcntl_sigprocmask (int $mode, array $signals, &$old_signals): bool *

    * @return int|false On success, pcntl_sigwaitinfo returns a signal number. */ -function pcntl_sigwaitinfo (array $signals, &$info): int|false -{} +function pcntl_sigwaitinfo(array $signals, &$info): int|false {} /** * Waits for signals, with a timeout @@ -464,8 +443,7 @@ function pcntl_sigwaitinfo (array $signals, &$info): int|false *

    * @return int|false On success, pcntl_sigtimedwait returns a signal number. */ -function pcntl_sigtimedwait (array $signals, &$info, int $seconds = 0, int $nanoseconds = 0): int|false -{} +function pcntl_sigtimedwait(array $signals, &$info, int $seconds = 0, int $nanoseconds = 0): int|false {} /** * Enable/disable asynchronous signal handling or return the old setting.
    @@ -480,8 +458,7 @@ function pcntl_sigtimedwait (array $signals, &$info, int $seconds = 0, int $nano * @return bool * @since 7.1 */ -function pcntl_async_signals(?bool $enable): bool -{} +function pcntl_async_signals(?bool $enable): bool {} /** * Get the current handler for specified signal. @@ -494,328 +471,326 @@ function pcntl_async_signals(?bool $enable): bool * @return bool|resource * @since 7.1 */ - -function pcntl_signal_get_handler(int $signal) -{} +function pcntl_signal_get_handler(int $signal) {} /** * @param int $flags * @return bool * @since 7.4 */ -function pcntl_unshare(int $flags): bool{} +function pcntl_unshare(int $flags): bool {} -define ('WNOHANG', 1); -define ('WUNTRACED', 2); -define ('WCONTINUED', 8); -define ('SIG_IGN', 1); -define ('SIG_DFL', 0); -define ('SIG_ERR', -1); -define ('SIGHUP', 1); -define ('SIGINT', 2); -define ('SIGQUIT', 3); -define ('SIGILL', 4); -define ('SIGTRAP', 5); -define ('SIGABRT', 6); -define ('SIGIOT', 6); -define ('SIGBUS', 7); -define ('SIGFPE', 8); -define ('SIGKILL', 9); -define ('SIGUSR1', 10); -define ('SIGSEGV', 11); -define ('SIGUSR2', 12); -define ('SIGPIPE', 13); -define ('SIGALRM', 14); -define ('SIGTERM', 15); -define ('SIGSTKFLT', 16); -define ('SIGCLD', 17); -define ('SIGCHLD', 17); -define ('SIGCONT', 18); -define ('SIGSTOP', 19); -define ('SIGTSTP', 20); -define ('SIGTTIN', 21); -define ('SIGTTOU', 22); -define ('SIGURG', 23); -define ('SIGXCPU', 24); -define ('SIGXFSZ', 25); -define ('SIGVTALRM', 26); -define ('SIGPROF', 27); -define ('SIGWINCH', 28); -define ('SIGPOLL', 29); -define ('SIGIO', 29); -define ('SIGPWR', 30); -define ('SIGSYS', 31); -define ('SIGBABY', 31); -define ('PRIO_PGRP', 1); -define ('PRIO_USER', 2); -define ('PRIO_PROCESS', 0); +define('WNOHANG', 1); +define('WUNTRACED', 2); +define('WCONTINUED', 8); +define('SIG_IGN', 1); +define('SIG_DFL', 0); +define('SIG_ERR', -1); +define('SIGHUP', 1); +define('SIGINT', 2); +define('SIGQUIT', 3); +define('SIGILL', 4); +define('SIGTRAP', 5); +define('SIGABRT', 6); +define('SIGIOT', 6); +define('SIGBUS', 7); +define('SIGFPE', 8); +define('SIGKILL', 9); +define('SIGUSR1', 10); +define('SIGSEGV', 11); +define('SIGUSR2', 12); +define('SIGPIPE', 13); +define('SIGALRM', 14); +define('SIGTERM', 15); +define('SIGSTKFLT', 16); +define('SIGCLD', 17); +define('SIGCHLD', 17); +define('SIGCONT', 18); +define('SIGSTOP', 19); +define('SIGTSTP', 20); +define('SIGTTIN', 21); +define('SIGTTOU', 22); +define('SIGURG', 23); +define('SIGXCPU', 24); +define('SIGXFSZ', 25); +define('SIGVTALRM', 26); +define('SIGPROF', 27); +define('SIGWINCH', 28); +define('SIGPOLL', 29); +define('SIGIO', 29); +define('SIGPWR', 30); +define('SIGSYS', 31); +define('SIGBABY', 31); +define('PRIO_PGRP', 1); +define('PRIO_USER', 2); +define('PRIO_PROCESS', 0); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SIG_BLOCK', 0); +define('SIG_BLOCK', 0); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SIG_UNBLOCK', 1); +define('SIG_UNBLOCK', 1); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SIG_SETMASK', 2); +define('SIG_SETMASK', 2); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SIGRTMIN', 35); +define('SIGRTMIN', 35); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SIGRTMAX', 64); +define('SIGRTMAX', 64); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SI_USER', 0); +define('SI_USER', 0); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SI_KERNEL', 128); +define('SI_KERNEL', 128); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SI_QUEUE', -1); +define('SI_QUEUE', -1); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SI_TIMER', -2); -define ('SI_MESGQ', -3); +define('SI_TIMER', -2); +define('SI_MESGQ', -3); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SI_ASYNCIO', -4); +define('SI_ASYNCIO', -4); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SI_SIGIO', -5); +define('SI_SIGIO', -5); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SI_TKILL', -6); +define('SI_TKILL', -6); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('CLD_EXITED', 1); +define('CLD_EXITED', 1); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('CLD_KILLED', 2); +define('CLD_KILLED', 2); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('CLD_DUMPED', 3); +define('CLD_DUMPED', 3); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('CLD_TRAPPED', 4); +define('CLD_TRAPPED', 4); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('CLD_STOPPED', 5); +define('CLD_STOPPED', 5); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('CLD_CONTINUED', 6); +define('CLD_CONTINUED', 6); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('TRAP_BRKPT', 1); +define('TRAP_BRKPT', 1); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('TRAP_TRACE', 2); +define('TRAP_TRACE', 2); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('POLL_IN', 1); +define('POLL_IN', 1); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('POLL_OUT', 2); +define('POLL_OUT', 2); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('POLL_MSG', 3); +define('POLL_MSG', 3); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('POLL_ERR', 4); +define('POLL_ERR', 4); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('POLL_PRI', 5); +define('POLL_PRI', 5); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('POLL_HUP', 6); +define('POLL_HUP', 6); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('ILL_ILLOPC', 1); +define('ILL_ILLOPC', 1); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('ILL_ILLOPN', 2); +define('ILL_ILLOPN', 2); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('ILL_ILLADR', 3); +define('ILL_ILLADR', 3); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('ILL_ILLTRP', 4); +define('ILL_ILLTRP', 4); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('ILL_PRVOPC', 5); +define('ILL_PRVOPC', 5); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('ILL_PRVREG', 6); +define('ILL_PRVREG', 6); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('ILL_COPROC', 7); +define('ILL_COPROC', 7); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('ILL_BADSTK', 8); +define('ILL_BADSTK', 8); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('FPE_INTDIV', 1); +define('FPE_INTDIV', 1); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('FPE_INTOVF', 2); +define('FPE_INTOVF', 2); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('FPE_FLTDIV', 3); +define('FPE_FLTDIV', 3); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('FPE_FLTOVF', 4); +define('FPE_FLTOVF', 4); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('FPE_FLTUND', 7); +define('FPE_FLTUND', 7); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('FPE_FLTRES', 6); +define('FPE_FLTRES', 6); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('FPE_FLTINV', 7); +define('FPE_FLTINV', 7); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('FPE_FLTSUB', 8); +define('FPE_FLTSUB', 8); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SEGV_MAPERR', 1); +define('SEGV_MAPERR', 1); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('SEGV_ACCERR', 2); +define('SEGV_ACCERR', 2); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('BUS_ADRALN', 1); +define('BUS_ADRALN', 1); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('BUS_ADRERR', 2); +define('BUS_ADRERR', 2); /** * @link https://php.net/manual/en/pcntl.constants.php */ -define ('BUS_OBJERR', 3); -define ('PCNTL_EINTR', 4); -define ('PCNTL_ECHILD', 10); -define ('PCNTL_EINVAL', 22); -define ('PCNTL_EAGAIN', 11); -define ('PCNTL_ESRCH', 3); -define ('PCNTL_EACCES', 13); -define ('PCNTL_EPERM', 1); -define ('PCNTL_ENOMEM', 12); -define ('PCNTL_E2BIG', 7); -define ('PCNTL_EFAULT', 14); -define ('PCNTL_EIO', 5); -define ('PCNTL_EISDIR', 21); -define ('PCNTL_ELIBBAD', 80); -define ('PCNTL_ELOOP', 40); -define ('PCNTL_EMFILE', 24); -define ('PCNTL_ENAMETOOLONG', 36); -define ('PCNTL_ENFILE', 23); -define ('PCNTL_ENOENT', 2); -define ('PCNTL_ENOEXEC', 8); -define ('PCNTL_ENOTDIR', 20); -define ('PCNTL_ETXTBSY', 26); +define('BUS_OBJERR', 3); +define('PCNTL_EINTR', 4); +define('PCNTL_ECHILD', 10); +define('PCNTL_EINVAL', 22); +define('PCNTL_EAGAIN', 11); +define('PCNTL_ESRCH', 3); +define('PCNTL_EACCES', 13); +define('PCNTL_EPERM', 1); +define('PCNTL_ENOMEM', 12); +define('PCNTL_E2BIG', 7); +define('PCNTL_EFAULT', 14); +define('PCNTL_EIO', 5); +define('PCNTL_EISDIR', 21); +define('PCNTL_ELIBBAD', 80); +define('PCNTL_ELOOP', 40); +define('PCNTL_EMFILE', 24); +define('PCNTL_ENAMETOOLONG', 36); +define('PCNTL_ENFILE', 23); +define('PCNTL_ENOENT', 2); +define('PCNTL_ENOEXEC', 8); +define('PCNTL_ENOTDIR', 20); +define('PCNTL_ETXTBSY', 26); /** * @since 7.4 */ -define ('PCNTL_ENOSPC', 28); +define('PCNTL_ENOSPC', 28); /** * @since 7.4 */ -define ('PCNTL_EUSERS', 87); +define('PCNTL_EUSERS', 87); /** * @since 7.4 @@ -853,4 +828,3 @@ function pcntl_unshare(int $flags): bool{} define('CLONE_NEWCGROUP', 33554432); // End of pcntl v. -?> diff --git a/pcov/pcov.php b/pcov/pcov.php index cde07f3d4..ddfab2fde 100644 --- a/pcov/pcov.php +++ b/pcov/pcov.php @@ -1,68 +1,68 @@ - - * Shall start recording coverage information - * @return void - */ - function start () {} +namespace pcov +{ + /** + * (PHP >= 7.0, PECL pcov >= 1.0.0)
    + * Shall start recording coverage information + * @return void + */ + function start() {} - /** - * (PHP >= 7.0, PECL pcov >= 1.0.0)
    - * Shall stop recording coverage information - * @return void - */ + /** + * (PHP >= 7.0, PECL pcov >= 1.0.0)
    + * Shall stop recording coverage information + * @return void + */ function stop() {} - /** - * (PHP >= 7.0, PECL pcov >= 1.0.0)
    - * Shall collect coverage information - * @param int $type [optional]

    - * pcov\all shall collect coverage information for all files - * pcov\inclusive shall collect coverage information for the specified files - * pcov\exclusive shall collect coverage information for all but the specified files - *

    - * @param array $filter

    - * path of files (realpath) that should be filtered - *

    - * @return array - */ + /** + * (PHP >= 7.0, PECL pcov >= 1.0.0)
    + * Shall collect coverage information + * @param int $type [optional]

    + * pcov\all shall collect coverage information for all files + * pcov\inclusive shall collect coverage information for the specified files + * pcov\exclusive shall collect coverage information for all but the specified files + *

    + * @param array $filter

    + * path of files (realpath) that should be filtered + *

    + * @return array + */ function collect(int $type = all, array $filter = []) {} - /** - * (PHP >= 7.0, PECL pcov >= 1.0.0)
    - * Shall clear stored information - * @param bool $files [optional]

    - * set true to clear file tables - * Note: clearing the file tables may have surprising consequences - *

    - * @return void - */ + /** + * (PHP >= 7.0, PECL pcov >= 1.0.0)
    + * Shall clear stored information + * @param bool $files [optional]

    + * set true to clear file tables + * Note: clearing the file tables may have surprising consequences + *

    + * @return void + */ function clear(bool $files = false) {} - /** - * (PHP >= 7.0, PECL pcov >= 1.0.0)
    - * Shall return list of files waiting to be collected - * @return array - */ + /** + * (PHP >= 7.0, PECL pcov >= 1.0.0)
    + * Shall return list of files waiting to be collected + * @return array + */ function waiting() {} - /** - * (PHP >= 7.0, PECL pcov >= 1.0.0)
    - * Shall return the current size of the trace and cfg arena - * @return int - */ - function memory() {} + /** + * (PHP >= 7.0, PECL pcov >= 1.0.0)
    + * Shall return the current size of the trace and cfg arena + * @return int + */ + function memory() {} } diff --git a/pcre/pcre.php b/pcre/pcre.php index be3dae1df..ff557aedf 100644 --- a/pcre/pcre.php +++ b/pcre/pcre.php @@ -155,8 +155,7 @@ * matches given subject, 0 if it does not, or FALSE * if an error occurred. */ -function preg_match (string $pattern, string $subject, &$matches, int $flags = 0, int $offset = 0): int|false -{} +function preg_match(string $pattern, string $subject, &$matches, int $flags = 0, int $offset = 0): int|false {} /** * Perform a global regular expression match @@ -214,8 +213,7 @@ function preg_match (string $pattern, string $subject, &$matches, int $flags = 0 * @return int|false|null the number of full pattern matches (which might be zero), * or FALSE if an error occurred. */ -function preg_match_all (string $pattern, string $subject, &$matches, int $flags = PREG_PATTERN_ORDER, int $offset = 0): int|false|null -{} +function preg_match_all(string $pattern, string $subject, &$matches, int $flags = PREG_PATTERN_ORDER, int $offset = 0): int|false|null {} /** * Perform a regular expression search and replace @@ -303,8 +301,7 @@ function preg_match_all (string $pattern, string $subject, &$matches, int $flags * be returned, otherwise subject will be * returned unchanged or NULL if an error occurred. */ -function preg_replace (array|string $pattern, array|string $replacement, array|string $subject, int $limit = -1, &$count): array|string|null -{} +function preg_replace(array|string $pattern, array|string $replacement, array|string $subject, int $limit = -1, &$count): array|string|null {} /** * Perform a regular expression search and replace using a callback @@ -375,8 +372,7 @@ function preg_replace (array|string $pattern, array|string $replacement, array|s * If matches are found, the new subject will be returned, otherwise * subject will be returned unchanged. */ -function preg_replace_callback (array|string $pattern, callable $callback, array|string $subject, int $limit = -1, &$count, int $flags = 0): array|string|null -{} +function preg_replace_callback(array|string $pattern, callable $callback, array|string $subject, int $limit = -1, &$count, int $flags = 0): array|string|null {} /** * Perform a regular expression search and replace using callbacks @@ -389,8 +385,7 @@ function preg_replace_callback (array|string $pattern, callable $callback, array * @return string|string[]|null

    preg_replace_callback_array() returns an array if the subject parameter is an array, or a string otherwise. On errors the return value is NULL

    *

    If matches are found, the new subject will be returned, otherwise subject will be returned unchanged.

    */ -function preg_replace_callback_array (array $pattern, array|string $subject , int $limit = -1, &$count, int $flags = 0): array|string|null -{} +function preg_replace_callback_array(array $pattern, array|string $subject, int $limit = -1, &$count, int $flags = 0): array|string|null {} /** * Perform a regular expression search and replace @@ -408,8 +403,7 @@ function preg_replace_callback_array (array $pattern, array|string $subject , in * is returned when subject is an array * or NULL otherwise. */ -function preg_filter (array|string $pattern, array|string $replacement, array|string $subject, int $limit = -1, &$count): array|string|null -{} +function preg_filter(array|string $pattern, array|string $replacement, array|string $subject, int $limit = -1, &$count): array|string|null {} /** * Split string by a regular expression @@ -439,8 +433,7 @@ function preg_filter (array|string $pattern, array|string $replacement, array|st * if an error occurred. */ #[Pure] -function preg_split (string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false -{} +function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false {} /** * Quote regular expression characters @@ -457,8 +450,7 @@ function preg_split (string $pattern, string $subject, int $limit = -1, int $fla * @return string the quoted (escaped) string. */ #[Pure] -function preg_quote (string $str, ?string $delimiter): string -{} +function preg_quote(string $str, ?string $delimiter): string {} /** * Return array entries that match the pattern @@ -478,8 +470,7 @@ function preg_quote (string $str, ?string $delimiter): string * input array or false when pattern cannot be compiled. */ #[Pure] -function preg_grep (string $pattern, array $array, int $flags = 0): array|false -{} +function preg_grep(string $pattern, array $array, int $flags = 0): array|false {} /** * Returns the error code of the last PCRE regex execution @@ -493,8 +484,7 @@ function preg_grep (string $pattern, array $array, int $flags = 0): array|false * PREG_BAD_UTF8_OFFSET_ERROR (since PHP 5.3.0) */ #[Pure] -function preg_last_error (): int -{} +function preg_last_error(): int {} /** * Returns the error message of the last PCRE regex execution @@ -512,41 +502,41 @@ function preg_last_error_msg(): string {} * preg_match_all. * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_PATTERN_ORDER', 1); +define('PREG_PATTERN_ORDER', 1); /** * Returned by {@see preg_last_error()} if the last PCRE function failed due to limited JIT stack space. * @since 7.0 */ -define ('PREG_JIT_STACKLIMIT_ERROR', 6); +define('PREG_JIT_STACKLIMIT_ERROR', 6); /** * Orders results so that $matches[0] is an array of first set of * matches, $matches[1] is an array of second set of matches, and so * on. This flag is only used with preg_match_all. * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_SET_ORDER', 2); +define('PREG_SET_ORDER', 2); /** * See the description of * PREG_SPLIT_OFFSET_CAPTURE. * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_OFFSET_CAPTURE', 256); +define('PREG_OFFSET_CAPTURE', 256); /** * This flag tells preg_split to return only non-empty * pieces. * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_SPLIT_NO_EMPTY', 1); +define('PREG_SPLIT_NO_EMPTY', 1); /** * This flag tells preg_split to capture * parenthesized expression in the delimiter pattern as well. * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_SPLIT_DELIM_CAPTURE', 2); +define('PREG_SPLIT_DELIM_CAPTURE', 2); /** * If this flag is set, for every occurring match the appendant string @@ -556,41 +546,41 @@ function preg_last_error_msg(): string {} * offset 1. This flag is only used for preg_split. * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_SPLIT_OFFSET_CAPTURE', 4); -define ('PREG_GREP_INVERT', 1); +define('PREG_SPLIT_OFFSET_CAPTURE', 4); +define('PREG_GREP_INVERT', 1); /** * Returned by preg_last_error if there were no * errors. * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_NO_ERROR', 0); +define('PREG_NO_ERROR', 0); /** * Returned by preg_last_error if there was an * internal PCRE error. * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_INTERNAL_ERROR', 1); +define('PREG_INTERNAL_ERROR', 1); /** * Returned by preg_last_error if backtrack limit was exhausted. * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_BACKTRACK_LIMIT_ERROR', 2); +define('PREG_BACKTRACK_LIMIT_ERROR', 2); /** * Returned by preg_last_error if recursion limit was exhausted. * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_RECURSION_LIMIT_ERROR', 3); +define('PREG_RECURSION_LIMIT_ERROR', 3); /** * Returned by preg_last_error if the last error was * caused by malformed UTF-8 data (only when running a regex in UTF-8 mode). * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_BAD_UTF8_ERROR', 4); +define('PREG_BAD_UTF8_ERROR', 4); /** * Returned by preg_last_error if the offset didn't @@ -599,7 +589,7 @@ function preg_last_error_msg(): string {} * mode). * @link https://php.net/manual/en/pcre.constants.php */ -define ('PREG_BAD_UTF8_OFFSET_ERROR', 5); +define('PREG_BAD_UTF8_OFFSET_ERROR', 5); /** * This flag tells {@see preg_match()} and {@see preg_match_all()} @@ -608,22 +598,22 @@ function preg_last_error_msg(): string {} * as if they were empty matches. Setting this flag allows to distinguish between these two cases. * @since 7.2 */ -define ('PREG_UNMATCHED_AS_NULL', 512); +define('PREG_UNMATCHED_AS_NULL', 512); /** * PCRE version and release date (e.g. "7.0 18-Dec-2006"). * @link https://php.net/manual/en/pcre.constants.php */ -define ('PCRE_VERSION', "8.31 2012-07-06"); +define('PCRE_VERSION', "8.31 2012-07-06"); /** * @since 7.3 */ -define ('PCRE_VERSION_MAJOR', 10); +define('PCRE_VERSION_MAJOR', 10); /** * @since 7.3 */ -define ('PCRE_VERSION_MINOR', 35); +define('PCRE_VERSION_MINOR', 35); /** * @since 7.3 diff --git a/pdflib/PDFlib.php b/pdflib/PDFlib.php index e946f7876..b95dc4397 100644 --- a/pdflib/PDFlib.php +++ b/pdflib/PDFlib.php @@ -4,1683 +4,1636 @@ class PDFlib { - /** - * Activates a previously created structure element or other content item. - * @param $id - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-activate-item.php - */ - function activate_item($id){} - - /** - * Adds a link to a web resource. - * @param float $llx - * @param float $lly - * @param float $urx - * @param float $ury - * @param string $filename - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-add-launchlink.php - * @see PDF_create_action() - */ - #[Deprecated(" This function is deprecated since PDFlib version 6, use PDF_create_action() with type=Launch and PDF_create_annotation() with type=Link instead.")] - function add_launchlink($llx, $lly, $urx, $ury, $filename){} - - /** - * Add a link annotation to a target within the current PDF file. - * - * @param float $lowerleftx - * @param float $lowerlefty - * @param float $upperrightx - * @param float $upperrighty - * @param int $page - * @param string $dest - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-add-locallink.php + /** + * Activates a previously created structure element or other content item. + * @param $id + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-activate-item.php + */ + public function activate_item($id) {} + + /** + * Adds a link to a web resource. + * @param float $llx + * @param float $lly + * @param float $urx + * @param float $ury + * @param string $filename + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-add-launchlink.php * @see PDF_create_action() - */ - #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_action() with type=GoTo and PDF_create_annotation() with type=Link instead.')] - function add_locallink($lowerleftx, $lowerlefty, $upperrightx, $upperrighty, $page, $dest){} - - /** - * Creates a named destination on an arbitrary page in the current document. - * - * @param string $name - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-add-nameddest.php - */ - function add_nameddest($name, $optlist){} - - /** - * Sets an annotation for the current page. - * - * @param float $llx - * @param float $lly - * @param float $urx - * @param float $ury - * @param string $contents - * @param string $title - * @param string $icon - * @param int $open - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-add-note.php + */ + #[Deprecated(" This function is deprecated since PDFlib version 6, use PDF_create_action() with type=Launch and PDF_create_annotation() with type=Link instead.")] + public function add_launchlink($llx, $lly, $urx, $ury, $filename) {} + + /** + * Add a link annotation to a target within the current PDF file. + * + * @param float $lowerleftx + * @param float $lowerlefty + * @param float $upperrightx + * @param float $upperrighty + * @param int $page + * @param string $dest + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-add-locallink.php + * @see PDF_create_action() + */ + #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_action() with type=GoTo and PDF_create_annotation() with type=Link instead.')] + public function add_locallink($lowerleftx, $lowerlefty, $upperrightx, $upperrighty, $page, $dest) {} + + /** + * Creates a named destination on an arbitrary page in the current document. + * + * @param string $name + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-add-nameddest.php + */ + public function add_nameddest($name, $optlist) {} + + /** + * Sets an annotation for the current page. + * + * @param float $llx + * @param float $lly + * @param float $urx + * @param float $ury + * @param string $contents + * @param string $title + * @param string $icon + * @param int $open + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-add-note.php * @see PDF_create_annotation() - */ - #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_annotation() with type=Text instead.')] - function add_note($llx, $lly, $urx, $ury, $contents, $title, $icon, $open){} - - /** - * Add a file link annotation to a PDF target. - * - * @param float $bottom_left_x - * @param float $bottom_left_y - * @param float $up_right_x - * @param float $up_right_y - * @param string $filename - * @param int $page - * @param string $dest - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-add-pdflink.php + */ + #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_annotation() with type=Text instead.')] + public function add_note($llx, $lly, $urx, $ury, $contents, $title, $icon, $open) {} + + /** + * Add a file link annotation to a PDF target. + * + * @param float $bottom_left_x + * @param float $bottom_left_y + * @param float $up_right_x + * @param float $up_right_y + * @param string $filename + * @param int $page + * @param string $dest + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-add-pdflink.php * @see PDF_create_action - */ - #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_action() with type=GoToR and PDF_create_annotation() with type=Link instead.')] - function add_pdflink($bottom_left_x, $bottom_left_y, $up_right_x, $up_right_y, $filename, $page, $dest){} - - /** - * Adds a cell to a new or existing table. - * - * @param int $table - * @param int $column - * @param int $row - * @param string $text - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-add-table-cell.php - */ - function add_table_cell($table, $column, $row, $text, $optlist){} - - /** - * Creates a Textflow object, or adds text and explicit options to an existing Textflow. - * - * @param int $textflow - * @param string $text - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-add-textflow.php - */ - function add_textflow($textflow, $text, $optlist){} - - /** - * Adds an existing image as thumbnail for the current page. - * - * @param int $image - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-add-thumbnail.php - */ - function add_thumbnail($image){} - - /** - * Adds a weblink annotation to a target url on the Web. - * - * @param float $lowerleftx - * @param float $lowerlefty - * @param float $upperrightx - * @param float $upperrighty - * @param string $url - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-add-weblink.php + */ + #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_action() with type=GoToR and PDF_create_annotation() with type=Link instead.')] + public function add_pdflink($bottom_left_x, $bottom_left_y, $up_right_x, $up_right_y, $filename, $page, $dest) {} + + /** + * Adds a cell to a new or existing table. + * + * @param int $table + * @param int $column + * @param int $row + * @param string $text + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-add-table-cell.php + */ + public function add_table_cell($table, $column, $row, $text, $optlist) {} + + /** + * Creates a Textflow object, or adds text and explicit options to an existing Textflow. + * + * @param int $textflow + * @param string $text + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-add-textflow.php + */ + public function add_textflow($textflow, $text, $optlist) {} + + /** + * Adds an existing image as thumbnail for the current page. + * + * @param int $image + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-add-thumbnail.php + */ + public function add_thumbnail($image) {} + + /** + * Adds a weblink annotation to a target url on the Web. + * + * @param float $lowerleftx + * @param float $lowerlefty + * @param float $upperrightx + * @param float $upperrighty + * @param string $url + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-add-weblink.php * @see PDF_create_action() - */ - #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_action() with type=URI and PDF_create_annotation() with type=Link instead.')] - function add_weblink($lowerleftx, $lowerlefty, $upperrightx, $upperrighty, $url){} - - /** - * Adds a counterclockwise circular arc - * - * @param float $x - * @param float $y - * @param float $r - * @param float $alpha - * @param float $beta - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-arc.php - */ - function arc($x, $y, $r, $alpha, $beta){} - - /** - * Except for the drawing direction, this function behaves exactly like PDF_arc(). - * - * @param float $x - * @param float $y - * @param float $r - * @param float $alpha - * @param float $beta - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-arcn.php - */ - function arcn($x, $y, $r, $alpha, $beta){} - - /** - * Adds a file attachment annotation. - * - * @param float $llx - * @param float $lly - * @param float $urx - * @param float $ury - * @param string $filename - * @param string $description - * @param string $author - * @param string $mimetype - * @param string $icon - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-attach-file.php + */ + #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_action() with type=URI and PDF_create_annotation() with type=Link instead.')] + public function add_weblink($lowerleftx, $lowerlefty, $upperrightx, $upperrighty, $url) {} + + /** + * Adds a counterclockwise circular arc + * + * @param float $x + * @param float $y + * @param float $r + * @param float $alpha + * @param float $beta + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-arc.php + */ + public function arc($x, $y, $r, $alpha, $beta) {} + + /** + * Except for the drawing direction, this function behaves exactly like PDF_arc(). + * + * @param float $x + * @param float $y + * @param float $r + * @param float $alpha + * @param float $beta + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-arcn.php + */ + public function arcn($x, $y, $r, $alpha, $beta) {} + + /** + * Adds a file attachment annotation. + * + * @param float $llx + * @param float $lly + * @param float $urx + * @param float $ury + * @param string $filename + * @param string $description + * @param string $author + * @param string $mimetype + * @param string $icon + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-attach-file.php * @see PDF_create_annotation() - */ - #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_annotation() with type=FileAttachment instead.')] - function attach_file($llx, $lly, $urx, $ury, $filename, $description, $author, $mimetype, $icon){} - - /** - * Creates a new PDF file subject to various options. - * - * @param string $filename - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-begin-document.php - * @link https://www.pdflib.com/fileadmin/pdflib/pdf/manuals/PDFlib-9.1.2-API-reference.pdf - */ - function begin_document($filename, $optlist){} - - /** - * Starts a Type 3 font definition. - * - * @param string $filename - * @param float $a - * @param float $b - * @param float $c - * @param float $d - * @param float $e - * @param float $f - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-begin-font.php - */ - function begin_font($filename, $a, $b, $c, $d, $e, $f, $optlist){} - - /** - * Starts a glyph definition for a Type 3 font. - * - * @param string $glyphname - * @param float $wx - * @param float $llx - * @param float $lly - * @param float $urx - * @param float $ury - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-begin-glyph.php - */ - function begin_glyph($glyphname, $wx, $llx, $lly, $urx, $ury){} - - /** - * Opens a structure element or other content item with attributes supplied as options. - * - * @param string $tag - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-begin-item.php - */ - function begin_item($tag, $optlist){} - - /** - * Starts a layer for subsequent output on the page. - * - * @param int $layer - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-begin-layer.php - */ - function begin_layer($layer){} - - /** - * Adds a new page to the document, and specifies various options. The parameters width and height are the dimensions of the new page in points. - * - * @param float $width - * @param float $height - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-begin-page-ext.php - */ - function begin_page_ext($width, $height, $optlist){} - - - /** - * Adds a new page to the document. - * - * @param float $width - * @param float $height - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-begin-page.php - * + */ + #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_annotation() with type=FileAttachment instead.')] + public function attach_file($llx, $lly, $urx, $ury, $filename, $description, $author, $mimetype, $icon) {} + + /** + * Creates a new PDF file subject to various options. + * + * @param string $filename + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-begin-document.php + * @link https://www.pdflib.com/fileadmin/pdflib/pdf/manuals/PDFlib-9.1.2-API-reference.pdf + */ + public function begin_document($filename, $optlist) {} + + /** + * Starts a Type 3 font definition. + * + * @param string $filename + * @param float $a + * @param float $b + * @param float $c + * @param float $d + * @param float $e + * @param float $f + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-begin-font.php + */ + public function begin_font($filename, $a, $b, $c, $d, $e, $f, $optlist) {} + + /** + * Starts a glyph definition for a Type 3 font. + * + * @param string $glyphname + * @param float $wx + * @param float $llx + * @param float $lly + * @param float $urx + * @param float $ury + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-begin-glyph.php + */ + public function begin_glyph($glyphname, $wx, $llx, $lly, $urx, $ury) {} + + /** + * Opens a structure element or other content item with attributes supplied as options. + * + * @param string $tag + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-begin-item.php + */ + public function begin_item($tag, $optlist) {} + + /** + * Starts a layer for subsequent output on the page. + * + * @param int $layer + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-begin-layer.php + */ + public function begin_layer($layer) {} + + /** + * Adds a new page to the document, and specifies various options. The parameters width and height are the dimensions of the new page in points. + * + * @param float $width + * @param float $height + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-begin-page-ext.php + */ + public function begin_page_ext($width, $height, $optlist) {} + + /** + * Adds a new page to the document. + * + * @param float $width + * @param float $height + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-begin-page.php + * * @see PDF_begin_page_ext() - */ - #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_begin_page_ext() instead.')] - function begin_page($width, $height){} - - /** - * Starts a new pattern definition. - * - * @param float $width - * @param float $height - * @param float $xstep - * @param float $ystep - * @param int $painttype - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-begin-pattern.php - */ - function begin_pattern($width, $height, $xstep, $ystep, $painttype){} - - /** - * Starts a new template definition. - * - * @param float $width - * @param float $height - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-begin-template-ext.php - */ - function begin_template_ext($width, $height, $optlist){} - - /** - * @param float $width - * @param float $height - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-begin-template.php - * + */ + #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_begin_page_ext() instead.')] + public function begin_page($width, $height) {} + + /** + * Starts a new pattern definition. + * + * @param float $width + * @param float $height + * @param float $xstep + * @param float $ystep + * @param int $painttype + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-begin-pattern.php + */ + public function begin_pattern($width, $height, $xstep, $ystep, $painttype) {} + + /** + * Starts a new template definition. + * + * @param float $width + * @param float $height + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-begin-template-ext.php + */ + public function begin_template_ext($width, $height, $optlist) {} + + /** + * @param float $width + * @param float $height + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-begin-template.php + * * @see PDF_begin_template_ext - */ - #[Deprecated('This function is deprecated since PDFlib version 7, use PDF_begin_template_ext() instead.')] - function begin_template($width, $height){} - - /** - * @param float $x - * @param float $y - * @param float $r - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-circle.php - */ - function circle($x, $y, $r){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-clip.php - */ - function clip(){} - - /** - * @param int $image - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-close-image.php - */ - function close_image($image){} - - /** - * Closes the page handle, and frees all page-related resources - * - * @param int $page - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-close-pdi-page.php - */ - function close_pdi_page($page){} - - /** - * @param int $doc - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-close-pdi.php - * + */ + #[Deprecated('This function is deprecated since PDFlib version 7, use PDF_begin_template_ext() instead.')] + public function begin_template($width, $height) {} + + /** + * @param float $x + * @param float $y + * @param float $r + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-circle.php + */ + public function circle($x, $y, $r) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-clip.php + */ + public function clip() {} + + /** + * @param int $image + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-close-image.php + */ + public function close_image($image) {} + + /** + * Closes the page handle, and frees all page-related resources + * + * @param int $page + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-close-pdi-page.php + */ + public function close_pdi_page($page) {} + + /** + * @param int $doc + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-close-pdi.php + * * @see PDF_close_pdi_document() - */ - #[Deprecated('This function is deprecated since PDFlib version 7, use PDF_close_pdi_document() instead.')] - function close_pdi($doc){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-close.php - * + */ + #[Deprecated('This function is deprecated since PDFlib version 7, use PDF_close_pdi_document() instead.')] + public function close_pdi($doc) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-close.php + * * @see PDF_end_document - */ - #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_end_document() instead.')] - function close(){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-closepath-fill-stroke.php - */ - function closepath_fill_stroke(){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-closepath-stroke.php - */ - function closepath_stroke(){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-closepath.php - */ - function closepath(){} - - /** - * @param float $a - * @param float $b - * @param float $c - * @param float $d - * @param float $e - * @param float $f - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-concat.php - */ - function concat($a, $b, $c, $d, $e, $f){} - - /** - * @param string $text - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-continue-text.php - */ - function continue_text($text){} - - /** - * @param string $username - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-create-3dview.php - */ - function create_3dview($username, $optlist){} - - /** - * @param string $type - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-create-action.php - */ - function create_action($type, $optlist){} - - /** - * @param float $llx - * @param float $lly - * @param float $urx - * @param float $ury - * @param string $type - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-create-annotation.php - */ - function create_annotation($llx, $lly, $urx, $ury, $type, $optlist){} - - /** - * @param string $text - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-create-bookmark.php - */ - function create_bookmark($text, $optlist){} - - /** - * @param float $llx - * @param float $lly - * @param float $urx - * @param float $ury - * @param string $name - * @param string $type - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-create-field.php - */ - function create_field($llx, $lly, $urx, $ury, $name, $type, $optlist){} - - /** - * @param string $name - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-create-fieldgroup.php - */ - function create_fieldgroup($name, $optlist){} - - /** - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-create-gstate.php - */ - function create_gstate($optlist){} - - /** - * @param string $filename - * @param string $data - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-create-pvf.php - */ - function create_pvf($filename, $data, $optlist){} - - /** - * @param string $text - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-create-textflow.php - */ - function create_textflow($text, $optlist){} - - /** - * @param float $x1 - * @param float $y1 - * @param float $x2 - * @param float $y2 - * @param float $x3 - * @param float $y3 - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-curveto.php - */ - function curveto($x1, $y1, $x2, $y2, $x3, $y3){} - - /** - * @param string $name - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-define-layer.php - */ - function define_layer($name, $optlist){} - - /** - * @param string $filename - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-delete-pvf.php - */ - function delete_pvf($filename){} - - /** - * @param int $table - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-delete-table.php - */ - function delete_table($table, $optlist){} - - /** - * @param int $textflow - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-delete-textflow.php - */ - function delete_textflow($textflow){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-delete.php - */ - function delete(){} - - /** - * @param string $encoding - * @param int $slot - * @param string $glyphname - * @param int $uv - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-encoding-set-char.php - */ - function encoding_set_char($encoding, $slot, $glyphname, $uv){} - - /** - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-end-document.php - */ - function end_document($optlist){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-end-font.php - */ - function end_font(){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-end-glyph.php - */ - function end_glyph(){} - - /** - * @param int $id - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-end-item.php - */ - function end_item($id){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-end-layer.php - */ - function end_layer(){} - - /** - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-end-page-ext.php - */ - function end_page_ext($optlist){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-end-page.php - */ - function end_page($p){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-end-pattern.php - */ - function end_pattern($p){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-end-template.php - */ - function end_template($p){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-endpath.php - */ - function endpath($p){} - - /** - * @param int $page - * @param string $blockname - * @param int $image - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-fill-imageblock.php - */ - function fill_imageblock($page, $blockname, $image, $optlist){} - - /** - * @param int $page - * @param string $blockname - * @param int $contents - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-fill-pdfblock.php - */ - function fill_pdfblock($page, $blockname, $contents, $optlist){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-fill-stroke.php - */ - function fill_stroke(){} - - /** - * @param int $page - * @param string $blockname - * @param string $text - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-fill-textblock.php - - */ - function fill_textblock($page, $blockname, $text, $optlist){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-fill.php - - */ - function fill(){} - /** - * @param string $fontname - * @param string $encoding - * @param int $embed - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-findfont.php(Dep) - - */ - function findfont($fontname , $encoding , $embed){} - /** - * @param int $image - * @param float $x - * @param float $y - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-fit-image.php - - */ - function fit_image($image , $x , $y , $optlist){} - /** - * @param int $page - * @param float $x - * @param float $y - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-fit-pdi-page.php - - */ - function fit_pdi_page($page , $x , $y , $optlist){} - /** - * @param int $table - * @param float $llx - * @param float $lly - * @param float $urx - * @param float $ury - * @param string $optlist - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-fit-table.php - - */ - function fit_table($table , $llx , $lly , $urx , $ury , $optlist){} - /** - * @param int $textflow - * @param float $llx - * @param float $lly - * @param float $urx - * @param float $ury - * @param string $optlist - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-fit-textflow.php - - */ - function fit_textflow($textflow , $llx , $lly , $urx , $ury , $optlist){} - /** - * @param string $text - * @param float $x - * @param float $y - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-fit-textline.php - - */ - function fit_textline($text , $x , $y , $optlist){} - /** - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-get-apiname.php - - */ - function get_apiname(){} - /** - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-get-buffer.php - - */ - function get_buffer(){} - /** - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-get-errmsg.php - - */ - function get_errmsg(){} - /** - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-get-errnum.php - - */ - function get_errnum(){} - /** - * @param void $ - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-get-majorversion.php(dep) - - */ - function get_majorversion(){} - /** - * @param void $ - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-get-minorversion.php(dep) - - */ - function get_minorversion(){} - /** - * @param string $key - * @param float $modifier - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-get-parameter.php - - */ - function get_parameter($key , $modifier){} - /** - * @param string $key - * @param int $doc - * @param int $page - * @param int $reserved - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-get-pdi-parameter.php - - */ - function get_pdi_parameter($key , $doc , $page , $reserved){} - /** - * @param string $key - * @param int $doc - * @param int $page - * @param int $reserved - * - * @return float - * - * @link https://secure.php.net/manual/en/function.pdf-get-pdi-value.php - - */ - function get_pdi_value($key , $doc , $page , $reserved){} - /** - * @param string $key - * @param float $modifier - * - * @return float - * - * @link https://secure.php.net/manual/en/function.pdf-get-value.php - - */ - function get_value($key , $modifier){} - /** - * @param int $font - * @param string $keyword - * @param string $optlist - * - * @return float - * - * @link https://secure.php.net/manual/en/function.pdf-info-font.php - - */ - function info_font($font , $keyword , $optlist){} - /** - * @param string $boxname - * @param int $num - * @param string $keyword - * - * @return float - * - * @link https://secure.php.net/manual/en/function.pdf-info-matchbox.php - - */ - function info_matchbox($boxname , $num , $keyword){} - /** - * @param int $table - * @param string $keyword - * - * @return float - * - * @link https://secure.php.net/manual/en/function.pdf-info-table.php - - */ - function info_table($table , $keyword){} - /** - * @param int $textflow - * @param string $keyword - * - * @return float - * - * @link https://secure.php.net/manual/en/function.pdf-info-textflow.php - - */ - function info_textflow($textflow , $keyword){} - - /** - * @param string $text - * @param string $keyword - * @param string $optlist - * - * @return float - * - * @link https://secure.php.net/manual/en/function.pdf-info-textline.php - */ - function info_textline($text , $keyword , $optlist){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-initgraphics.php - */ - function initgraphics(){} - - /** - * @param float $x - * @param float $y - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-lineto.php - */ - function lineto($x , $y){} - - /** - * @param string $filename - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-load-3ddata.php - */ - function load_3ddata($filename , $optlist){} - - /** - * @param string $fontname - * @param string $encoding - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-load-font.php - */ - function load_font($fontname , $encoding , $optlist){} - - /** - * @param string $profilename - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-load-iccprofile.php - */ - function load_iccprofile($profilename , $optlist){} - - /** - * @param string $imagetype - * @param string $filename - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-load-image.php - */ - function load_image($imagetype , $filename , $optlist){} - - /** - * @param string $spotname - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-makespotcolor.php - */ - function makespotcolor($spotname){} - - /** - * @param float $x - * @param float $y - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-moveto.php - */ - function moveto($x , $y){} - - /** - * @param string $filename - * @param int $width - * @param int $height - * @param int $BitReverse - * @param int $k - * @param int $Blackls1 - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-open-ccitt.php(dep) - */ - function open_ccitt($filename , $width , $height , $BitReverse , $k , $Blackls1){} - - /** - * @param string $filename - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-open-file.php(dep) - */ - function open_file($filename){} - - /** - * @param string $imagetype - * @param string $filename - * @param string $stringparam - * @param int $intparam - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-open-image-file.php(dep) - */ - function open_image_file($imagetype , $filename , $stringparam , $intparam){} - - /** - * @param string $imagetype - * @param string $source - * @param string $data - * @param int $length - * @param int $width - * @param int $height - * @param int $components - * @param int $bpc - * @param string $params - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-open-image.php(dep) - */ - function open_image($imagetype , $source , $data , $length , $width , $height , $components , $bpc , $params){} - - /** - * @param resource $image - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-open-memory-image.php(not supported) - */ - function open_memory_image($image){} - - /** - * @param string $filename - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-open-pdi-document.php - */ - function open_pdi_document($filename , $optlist){} - - /** - * @param int $doc - * @param int $pagenumber - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-open-pdi-page.php - */ - function open_pdi_page($doc , $pagenumber , $optlist){} - - /** - * @param string $filename - * @param string $optlist - * @param int $len - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-open-pdi.php - */ - function open_pdi($filename , $optlist , $len){} - - /** - * @param int $doc - * @param string $path - * - * @return float - * - * @link https://secure.php.net/manual/en/function.pdf-pcos-get-number.php - */ - function pcos_get_number($doc , $path){} - - /** - * @param int $doc - * @param string $optlist - * @param string $path - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-pcos-get-stream.php - */ - function pcos_get_stream($doc, $optlist, $path){} - - /** - * @param int $doc - * @param string $path - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-pcos-get-string.php - */ - function pcos_get_string($doc, $path){} - - /** - * @param int $image - * @param float $x - * @param float $y - * @param float $scale - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-place-image.php (dep) - */ - function place_image($image, $x, $y, $scale){} - - /** - * @param int $page - * @param float $x - * @param float $y - * @param float $sx - * @param float $sy - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-place-pdi-page.php (dep) - */ - function place_pdi_page($page, $x, $y, $sx, $sy){} - - /** - * @param int $doc - * @param int $page - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-process-pdi.php - */ - function process_pdi($doc, $page, $optlist){} - - /** - * @param float $x - * @param float $y - * @param float $width - * @param float $height - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-rect.php - */ - function rect($x, $y, $width, $height){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-restore.php - */ - function restore($p){} - - /** - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-resume-page.php - */ - function resume_page($optlist){} - - /** - * @param float $phi - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-rotate.php - */ - function rotate($phi){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-save.php - */ - function save($p){} - - /** - * @param float $sx - * @param float $sy - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-scale.php - */ - function scale($sx, $sy){} - - /** - * @param float $red - * @param float $green - * @param float $blue - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-set-border-color.php (dep) - */ - function set_border_color($red, $green, $blue){} - - /** - * @param float $black - * @param float $white - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-set-border-dash.php (dep) - */ - function set_border_dash($black, $white){} - - /** - * @param string $style - * @param float $width - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-set-border-style.php (dep) - */ - function set_border_style($style, $width){} - - /** - * @param int $gstate - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-set-gstate.php - */ - function set_gstate($gstate){} - - /** - * @param string $key - * @param string $value - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-set-info.php - */ - function set_info($key, $value){} - - /** - * @param string $type - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-set-layer-dependency.php - */ - function set_layer_dependency($type, $optlist){} - - /** - * @param string $key - * @param string $value - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-set-parameter.php - */ - function set_parameter($key, $value){} - - /** - * @param float $x - * @param float $y - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-set-text-pos.php - */ - function set_text_pos($x, $y){} - - /** - * @param string $key - * @param float $value - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-set-value.php - */ - function set_value($key, $value){} - - /** - * @param string $fstype - * @param string $colorspace - * @param float $c1 - * @param float $c2 - * @param float $c3 - * @param float $c4 - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setcolor.php - */ - function setcolor($fstype, $colorspace, $c1, $c2, $c3, $c4){} - - /** - * @param float $b - * @param float $w - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setdash.php - */ - function setdash($b, $w){} - - /** - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setdashpattern.php - */ - function setdashpattern($optlist){} - - /** - * @param float $flatness - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setflat.php - */ - function setflat($flatness){} - - /** - * @param int $font - * @param float $fontsize - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setfont.php - */ - function setfont($font, $fontsize){} - - /** - * @param float $g - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setgray-fill.php (dep) - */ - function setgray_fill($g){} - - /** - * @param float $g - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setgray-stroke.php (dep) - */ - function setgray_stroke($g){} - - /** - * @param float $g - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setgray.php (dep) - */ - function setgray($g){} - - /** - * @param int $linecap - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setlinecap.php - */ - function setlinecap($linecap){} - - /** - * @param int $value - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setlinejoin.php - */ - function setlinejoin($value){} - - /** - * @param float $width - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setlinewidth.php - */ - function setlinewidth($width){} - - /** - * @param float $a - * @param float $b - * @param float $c - * @param float $d - * @param float $e - * @param float $f - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setmatrix.php - */ - function setmatrix($a, $b, $c, $d, $e, $f){} - - /** - * @param float $miter - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setmiterlimit.php - */ - function setmiterlimit($miter){} - - /** - * @param float $red - * @param float $green - * @param float $blue - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setrgbcolor-fill.php (dep) - */ - function setrgbcolor_fill($red, $green, $blue){} - - /** - * @param float $red - * @param float $green - * @param float $blue - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setrgbcolor-stroke.php (dep) - */ - function setrgbcolor_stroke($red, $green, $blue){} - - /** - * @param float $red - * @param float $green - * @param float $blue - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-setrgbcolor.php (dep) - */ - function setrgbcolor($red, $green, $blue){} - - /** - * @param int $shading - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-shading-pattern.php - */ - function shading_pattern($shading, $optlist){} - - /** - * @param string $shtype - * @param float $x0 - * @param float $y0 - * @param float $x1 - * @param float $y1 - * @param float $c1 - * @param float $c2 - * @param float $c3 - * @param float $c4 - * @param string $optlist - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-shading.php - */ - function shading($shtype, $x0, $y0, $x1, $y1, $c1, $c2, $c3, $c4, $optlist){} - - /** - * @param int $shading - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-shfill.php - */ - function shfill($shading){} - - /** - * @param string $text - * @param float $left - * @param float $top - * @param float $width - * @param float $height - * @param string $mode - * @param string $feature - * - * @return int - * - * @link https://secure.php.net/manual/en/function.pdf-show-boxed.php (dep) - */ - function show_boxed($text, $left, $top, $width, $height, $mode, $feature){} - - /** - * @param string $text - * @param float $x - * @param float $y - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-show-xy.php - */ - function show_xy($text, $x, $y){} - - /** - * @param string $text - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-show.php - */ - function show($text){} - - /** - * @param float $alpha - * @param float $beta - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-skew.php - */ - function skew($alpha, $beta){} - - /** - * @param string $text - * @param int $font - * @param float $fontsize - * - * @return float - * - * @link https://secure.php.net/manual/en/function.pdf-stringwidth.php - */ - function stringwidth($text, $font, $fontsize){} - - /** - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-stroke.php - */ - function stroke(){} - - /** - * @param string $optlist - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-suspend-page.php - */ - function suspend_page($optlist){} - - /** - * @param float $tx - * @param float $ty - * - * @return bool - * - * @link https://secure.php.net/manual/en/function.pdf-translate.php - */ - function translate($tx, $ty){} - - /** - * @param string $utf16string - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-utf16-to-utf8.php - */ - function utf16_to_utf8($utf16string){} - - /** - * @param string $utf32string - * @param string $ordering - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-utf32-to-utf16.php - */ - function utf32_to_utf16($utf32string, $ordering){} - - /** - * @param string $utf8string - * @param string $ordering - * - * @return string - * - * @link https://secure.php.net/manual/en/function.pdf-utf8-to-utf16.php - */ - function utf8_to_utf16($utf8string, $ordering){} - + */ + #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_end_document() instead.')] + public function close() {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-closepath-fill-stroke.php + */ + public function closepath_fill_stroke() {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-closepath-stroke.php + */ + public function closepath_stroke() {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-closepath.php + */ + public function closepath() {} + + /** + * @param float $a + * @param float $b + * @param float $c + * @param float $d + * @param float $e + * @param float $f + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-concat.php + */ + public function concat($a, $b, $c, $d, $e, $f) {} + + /** + * @param string $text + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-continue-text.php + */ + public function continue_text($text) {} + + /** + * @param string $username + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-create-3dview.php + */ + public function create_3dview($username, $optlist) {} + + /** + * @param string $type + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-create-action.php + */ + public function create_action($type, $optlist) {} + + /** + * @param float $llx + * @param float $lly + * @param float $urx + * @param float $ury + * @param string $type + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-create-annotation.php + */ + public function create_annotation($llx, $lly, $urx, $ury, $type, $optlist) {} + + /** + * @param string $text + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-create-bookmark.php + */ + public function create_bookmark($text, $optlist) {} + + /** + * @param float $llx + * @param float $lly + * @param float $urx + * @param float $ury + * @param string $name + * @param string $type + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-create-field.php + */ + public function create_field($llx, $lly, $urx, $ury, $name, $type, $optlist) {} + + /** + * @param string $name + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-create-fieldgroup.php + */ + public function create_fieldgroup($name, $optlist) {} + + /** + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-create-gstate.php + */ + public function create_gstate($optlist) {} + + /** + * @param string $filename + * @param string $data + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-create-pvf.php + */ + public function create_pvf($filename, $data, $optlist) {} + + /** + * @param string $text + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-create-textflow.php + */ + public function create_textflow($text, $optlist) {} + + /** + * @param float $x1 + * @param float $y1 + * @param float $x2 + * @param float $y2 + * @param float $x3 + * @param float $y3 + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-curveto.php + */ + public function curveto($x1, $y1, $x2, $y2, $x3, $y3) {} + + /** + * @param string $name + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-define-layer.php + */ + public function define_layer($name, $optlist) {} + + /** + * @param string $filename + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-delete-pvf.php + */ + public function delete_pvf($filename) {} + + /** + * @param int $table + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-delete-table.php + */ + public function delete_table($table, $optlist) {} + + /** + * @param int $textflow + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-delete-textflow.php + */ + public function delete_textflow($textflow) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-delete.php + */ + public function delete() {} + + /** + * @param string $encoding + * @param int $slot + * @param string $glyphname + * @param int $uv + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-encoding-set-char.php + */ + public function encoding_set_char($encoding, $slot, $glyphname, $uv) {} + + /** + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-end-document.php + */ + public function end_document($optlist) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-end-font.php + */ + public function end_font() {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-end-glyph.php + */ + public function end_glyph() {} + + /** + * @param int $id + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-end-item.php + */ + public function end_item($id) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-end-layer.php + */ + public function end_layer() {} + + /** + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-end-page-ext.php + */ + public function end_page_ext($optlist) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-end-page.php + */ + public function end_page($p) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-end-pattern.php + */ + public function end_pattern($p) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-end-template.php + */ + public function end_template($p) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-endpath.php + */ + public function endpath($p) {} + + /** + * @param int $page + * @param string $blockname + * @param int $image + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-fill-imageblock.php + */ + public function fill_imageblock($page, $blockname, $image, $optlist) {} + + /** + * @param int $page + * @param string $blockname + * @param int $contents + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-fill-pdfblock.php + */ + public function fill_pdfblock($page, $blockname, $contents, $optlist) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-fill-stroke.php + */ + public function fill_stroke() {} + + /** + * @param int $page + * @param string $blockname + * @param string $text + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-fill-textblock.php + */ + public function fill_textblock($page, $blockname, $text, $optlist) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-fill.php + */ + public function fill() {} + /** + * @param string $fontname + * @param string $encoding + * @param int $embed + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-findfont.php(Dep) + */ + public function findfont($fontname, $encoding, $embed) {} + /** + * @param int $image + * @param float $x + * @param float $y + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-fit-image.php + */ + public function fit_image($image, $x, $y, $optlist) {} + /** + * @param int $page + * @param float $x + * @param float $y + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-fit-pdi-page.php + */ + public function fit_pdi_page($page, $x, $y, $optlist) {} + /** + * @param int $table + * @param float $llx + * @param float $lly + * @param float $urx + * @param float $ury + * @param string $optlist + * + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-fit-table.php + */ + public function fit_table($table, $llx, $lly, $urx, $ury, $optlist) {} + /** + * @param int $textflow + * @param float $llx + * @param float $lly + * @param float $urx + * @param float $ury + * @param string $optlist + * + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-fit-textflow.php + */ + public function fit_textflow($textflow, $llx, $lly, $urx, $ury, $optlist) {} + /** + * @param string $text + * @param float $x + * @param float $y + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-fit-textline.php + */ + public function fit_textline($text, $x, $y, $optlist) {} + /** + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-get-apiname.php + */ + public function get_apiname() {} + /** + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-get-buffer.php + */ + public function get_buffer() {} + /** + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-get-errmsg.php + */ + public function get_errmsg() {} + /** + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-get-errnum.php + */ + public function get_errnum() {} + /** + * @param void $ + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-get-majorversion.php(dep) + */ + public function get_majorversion() {} + /** + * @param void $ + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-get-minorversion.php(dep) + */ + public function get_minorversion() {} + /** + * @param string $key + * @param float $modifier + * + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-get-parameter.php + */ + public function get_parameter($key, $modifier) {} + /** + * @param string $key + * @param int $doc + * @param int $page + * @param int $reserved + * + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-get-pdi-parameter.php + */ + public function get_pdi_parameter($key, $doc, $page, $reserved) {} + /** + * @param string $key + * @param int $doc + * @param int $page + * @param int $reserved + * + * @return float + * + * @link https://secure.php.net/manual/en/function.pdf-get-pdi-value.php + */ + public function get_pdi_value($key, $doc, $page, $reserved) {} + /** + * @param string $key + * @param float $modifier + * + * @return float + * + * @link https://secure.php.net/manual/en/function.pdf-get-value.php + */ + public function get_value($key, $modifier) {} + /** + * @param int $font + * @param string $keyword + * @param string $optlist + * + * @return float + * + * @link https://secure.php.net/manual/en/function.pdf-info-font.php + */ + public function info_font($font, $keyword, $optlist) {} + /** + * @param string $boxname + * @param int $num + * @param string $keyword + * + * @return float + * + * @link https://secure.php.net/manual/en/function.pdf-info-matchbox.php + */ + public function info_matchbox($boxname, $num, $keyword) {} + /** + * @param int $table + * @param string $keyword + * + * @return float + * + * @link https://secure.php.net/manual/en/function.pdf-info-table.php + */ + public function info_table($table, $keyword) {} + /** + * @param int $textflow + * @param string $keyword + * + * @return float + * + * @link https://secure.php.net/manual/en/function.pdf-info-textflow.php + */ + public function info_textflow($textflow, $keyword) {} + + /** + * @param string $text + * @param string $keyword + * @param string $optlist + * + * @return float + * + * @link https://secure.php.net/manual/en/function.pdf-info-textline.php + */ + public function info_textline($text, $keyword, $optlist) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-initgraphics.php + */ + public function initgraphics() {} + + /** + * @param float $x + * @param float $y + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-lineto.php + */ + public function lineto($x, $y) {} + + /** + * @param string $filename + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-load-3ddata.php + */ + public function load_3ddata($filename, $optlist) {} + + /** + * @param string $fontname + * @param string $encoding + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-load-font.php + */ + public function load_font($fontname, $encoding, $optlist) {} + + /** + * @param string $profilename + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-load-iccprofile.php + */ + public function load_iccprofile($profilename, $optlist) {} + + /** + * @param string $imagetype + * @param string $filename + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-load-image.php + */ + public function load_image($imagetype, $filename, $optlist) {} + + /** + * @param string $spotname + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-makespotcolor.php + */ + public function makespotcolor($spotname) {} + + /** + * @param float $x + * @param float $y + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-moveto.php + */ + public function moveto($x, $y) {} + + /** + * @param string $filename + * @param int $width + * @param int $height + * @param int $BitReverse + * @param int $k + * @param int $Blackls1 + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-open-ccitt.php(dep) + */ + public function open_ccitt($filename, $width, $height, $BitReverse, $k, $Blackls1) {} + + /** + * @param string $filename + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-open-file.php(dep) + */ + public function open_file($filename) {} + + /** + * @param string $imagetype + * @param string $filename + * @param string $stringparam + * @param int $intparam + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-open-image-file.php(dep) + */ + public function open_image_file($imagetype, $filename, $stringparam, $intparam) {} + + /** + * @param string $imagetype + * @param string $source + * @param string $data + * @param int $length + * @param int $width + * @param int $height + * @param int $components + * @param int $bpc + * @param string $params + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-open-image.php(dep) + */ + public function open_image($imagetype, $source, $data, $length, $width, $height, $components, $bpc, $params) {} + + /** + * @param resource $image + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-open-memory-image.php(not supported) + */ + public function open_memory_image($image) {} + + /** + * @param string $filename + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-open-pdi-document.php + */ + public function open_pdi_document($filename, $optlist) {} + + /** + * @param int $doc + * @param int $pagenumber + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-open-pdi-page.php + */ + public function open_pdi_page($doc, $pagenumber, $optlist) {} + + /** + * @param string $filename + * @param string $optlist + * @param int $len + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-open-pdi.php + */ + public function open_pdi($filename, $optlist, $len) {} + + /** + * @param int $doc + * @param string $path + * + * @return float + * + * @link https://secure.php.net/manual/en/function.pdf-pcos-get-number.php + */ + public function pcos_get_number($doc, $path) {} + + /** + * @param int $doc + * @param string $optlist + * @param string $path + * + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-pcos-get-stream.php + */ + public function pcos_get_stream($doc, $optlist, $path) {} + + /** + * @param int $doc + * @param string $path + * + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-pcos-get-string.php + */ + public function pcos_get_string($doc, $path) {} + + /** + * @param int $image + * @param float $x + * @param float $y + * @param float $scale + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-place-image.php (dep) + */ + public function place_image($image, $x, $y, $scale) {} + + /** + * @param int $page + * @param float $x + * @param float $y + * @param float $sx + * @param float $sy + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-place-pdi-page.php (dep) + */ + public function place_pdi_page($page, $x, $y, $sx, $sy) {} + + /** + * @param int $doc + * @param int $page + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-process-pdi.php + */ + public function process_pdi($doc, $page, $optlist) {} + + /** + * @param float $x + * @param float $y + * @param float $width + * @param float $height + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-rect.php + */ + public function rect($x, $y, $width, $height) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-restore.php + */ + public function restore($p) {} + + /** + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-resume-page.php + */ + public function resume_page($optlist) {} + + /** + * @param float $phi + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-rotate.php + */ + public function rotate($phi) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-save.php + */ + public function save($p) {} + + /** + * @param float $sx + * @param float $sy + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-scale.php + */ + public function scale($sx, $sy) {} + + /** + * @param float $red + * @param float $green + * @param float $blue + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-set-border-color.php (dep) + */ + public function set_border_color($red, $green, $blue) {} + + /** + * @param float $black + * @param float $white + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-set-border-dash.php (dep) + */ + public function set_border_dash($black, $white) {} + + /** + * @param string $style + * @param float $width + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-set-border-style.php (dep) + */ + public function set_border_style($style, $width) {} + + /** + * @param int $gstate + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-set-gstate.php + */ + public function set_gstate($gstate) {} + + /** + * @param string $key + * @param string $value + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-set-info.php + */ + public function set_info($key, $value) {} + + /** + * @param string $type + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-set-layer-dependency.php + */ + public function set_layer_dependency($type, $optlist) {} + + /** + * @param string $key + * @param string $value + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-set-parameter.php + */ + public function set_parameter($key, $value) {} + + /** + * @param float $x + * @param float $y + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-set-text-pos.php + */ + public function set_text_pos($x, $y) {} + + /** + * @param string $key + * @param float $value + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-set-value.php + */ + public function set_value($key, $value) {} + + /** + * @param string $fstype + * @param string $colorspace + * @param float $c1 + * @param float $c2 + * @param float $c3 + * @param float $c4 + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setcolor.php + */ + public function setcolor($fstype, $colorspace, $c1, $c2, $c3, $c4) {} + + /** + * @param float $b + * @param float $w + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setdash.php + */ + public function setdash($b, $w) {} + + /** + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setdashpattern.php + */ + public function setdashpattern($optlist) {} + + /** + * @param float $flatness + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setflat.php + */ + public function setflat($flatness) {} + + /** + * @param int $font + * @param float $fontsize + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setfont.php + */ + public function setfont($font, $fontsize) {} + + /** + * @param float $g + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setgray-fill.php (dep) + */ + public function setgray_fill($g) {} + + /** + * @param float $g + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setgray-stroke.php (dep) + */ + public function setgray_stroke($g) {} + + /** + * @param float $g + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setgray.php (dep) + */ + public function setgray($g) {} + + /** + * @param int $linecap + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setlinecap.php + */ + public function setlinecap($linecap) {} + + /** + * @param int $value + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setlinejoin.php + */ + public function setlinejoin($value) {} + + /** + * @param float $width + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setlinewidth.php + */ + public function setlinewidth($width) {} + + /** + * @param float $a + * @param float $b + * @param float $c + * @param float $d + * @param float $e + * @param float $f + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setmatrix.php + */ + public function setmatrix($a, $b, $c, $d, $e, $f) {} + + /** + * @param float $miter + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setmiterlimit.php + */ + public function setmiterlimit($miter) {} + + /** + * @param float $red + * @param float $green + * @param float $blue + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setrgbcolor-fill.php (dep) + */ + public function setrgbcolor_fill($red, $green, $blue) {} + + /** + * @param float $red + * @param float $green + * @param float $blue + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setrgbcolor-stroke.php (dep) + */ + public function setrgbcolor_stroke($red, $green, $blue) {} + + /** + * @param float $red + * @param float $green + * @param float $blue + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-setrgbcolor.php (dep) + */ + public function setrgbcolor($red, $green, $blue) {} + + /** + * @param int $shading + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-shading-pattern.php + */ + public function shading_pattern($shading, $optlist) {} + + /** + * @param string $shtype + * @param float $x0 + * @param float $y0 + * @param float $x1 + * @param float $y1 + * @param float $c1 + * @param float $c2 + * @param float $c3 + * @param float $c4 + * @param string $optlist + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-shading.php + */ + public function shading($shtype, $x0, $y0, $x1, $y1, $c1, $c2, $c3, $c4, $optlist) {} + + /** + * @param int $shading + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-shfill.php + */ + public function shfill($shading) {} + + /** + * @param string $text + * @param float $left + * @param float $top + * @param float $width + * @param float $height + * @param string $mode + * @param string $feature + * + * @return int + * + * @link https://secure.php.net/manual/en/function.pdf-show-boxed.php (dep) + */ + public function show_boxed($text, $left, $top, $width, $height, $mode, $feature) {} + + /** + * @param string $text + * @param float $x + * @param float $y + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-show-xy.php + */ + public function show_xy($text, $x, $y) {} + + /** + * @param string $text + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-show.php + */ + public function show($text) {} + + /** + * @param float $alpha + * @param float $beta + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-skew.php + */ + public function skew($alpha, $beta) {} + + /** + * @param string $text + * @param int $font + * @param float $fontsize + * + * @return float + * + * @link https://secure.php.net/manual/en/function.pdf-stringwidth.php + */ + public function stringwidth($text, $font, $fontsize) {} + + /** + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-stroke.php + */ + public function stroke() {} + + /** + * @param string $optlist + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-suspend-page.php + */ + public function suspend_page($optlist) {} + + /** + * @param float $tx + * @param float $ty + * + * @return bool + * + * @link https://secure.php.net/manual/en/function.pdf-translate.php + */ + public function translate($tx, $ty) {} + + /** + * @param string $utf16string + * + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-utf16-to-utf8.php + */ + public function utf16_to_utf8($utf16string) {} + + /** + * @param string $utf32string + * @param string $ordering + * + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-utf32-to-utf16.php + */ + public function utf32_to_utf16($utf32string, $ordering) {} + + /** + * @param string $utf8string + * @param string $ordering + * + * @return string + * + * @link https://secure.php.net/manual/en/function.pdf-utf8-to-utf16.php + */ + public function utf8_to_utf16($utf8string, $ordering) {} } /** @@ -1692,7 +1645,7 @@ function utf8_to_utf16($utf8string, $ordering){} * * @link https://secure.php.net/manual/en/function.pdf-activate-item.php */ -function PDF_activate_item($pdf, $id){} +function PDF_activate_item($pdf, $id) {} /** * Add launch annotation for current page [deprecated]. @@ -1709,7 +1662,7 @@ function PDF_activate_item($pdf, $id){} * @see PDF_create_action */ #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_action() with type=Launch and PDF_create_annotation() with type=Link instead.')] -function PDF_add_launchlink($pdf, $llx, $lly, $urx, $ury, $filename){} +function PDF_add_launchlink($pdf, $llx, $lly, $urx, $ury, $filename) {} /** * Add a link annotation to a target within the current PDF file. @@ -1728,7 +1681,7 @@ function PDF_add_launchlink($pdf, $llx, $lly, $urx, $ury, $filename){} * @see PDF_create_action */ #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_action() with type=GoTo and PDF_create_annotation() with type=Link instead.')] -function PDF_add_locallink($pdf, $lowerleftx, $lowerlefty, $upperrightx, $upperrighty, $page, $dest){} +function PDF_add_locallink($pdf, $lowerleftx, $lowerlefty, $upperrightx, $upperrighty, $page, $dest) {} /** * Creates a named destination on an arbitrary page in the current document. @@ -1741,7 +1694,7 @@ function PDF_add_locallink($pdf, $lowerleftx, $lowerlefty, $upperrightx, $upperr * * @link https://secure.php.net/manual/en/function.pdf-add-nameddest.php */ -function PDF_add_nameddest($pdf, $name, $optlist){} +function PDF_add_nameddest($pdf, $name, $optlist) {} /** * Sets an annotation for the current page. @@ -1762,7 +1715,7 @@ function PDF_add_nameddest($pdf, $name, $optlist){} * @see PDF_create_annotation */ #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_annotation() with type=Text instead.')] -function PDF_add_note($pdf, $llx, $lly, $urx, $ury, $contents, $title, $icon, $open){} +function PDF_add_note($pdf, $llx, $lly, $urx, $ury, $contents, $title, $icon, $open) {} /** * Add a file link annotation to a PDF target. @@ -1782,7 +1735,7 @@ function PDF_add_note($pdf, $llx, $lly, $urx, $ury, $contents, $title, $icon, $o * @see PDF_create_action */ #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_action() with type=GoToR and PDF_create_annotation() with type=Link instead.')] -function PDF_add_pdflink($pdf, $bottom_left_x, $bottom_left_y, $up_right_x, $up_right_y, $filename, $page, $dest){} +function PDF_add_pdflink($pdf, $bottom_left_x, $bottom_left_y, $up_right_x, $up_right_y, $filename, $page, $dest) {} /** * Adds a cell to a new or existing table. @@ -1798,7 +1751,7 @@ function PDF_add_pdflink($pdf, $bottom_left_x, $bottom_left_y, $up_right_x, $up_ * * @link https://secure.php.net/manual/en/function.pdf-add-table-cell.php */ -function PDF_add_table_cell($pdf, $table, $column, $row, $text, $optlist){} +function PDF_add_table_cell($pdf, $table, $column, $row, $text, $optlist) {} /** * Creates a Textflow object, or adds text and explicit options to an existing Textflow. @@ -1812,7 +1765,7 @@ function PDF_add_table_cell($pdf, $table, $column, $row, $text, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-add-textflow.php */ -function PDF_add_textflow($pdf , $textflow , $text , $optlist){} +function PDF_add_textflow($pdf, $textflow, $text, $optlist) {} /** * Adds an existing image as thumbnail for the current page. @@ -1824,7 +1777,7 @@ function PDF_add_textflow($pdf , $textflow , $text , $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-add-thumbnail.php */ -function PDF_add_thumbnail($pdf, $image){} +function PDF_add_thumbnail($pdf, $image) {} /** * Adds a weblink annotation to a target url on the Web. @@ -1842,7 +1795,7 @@ function PDF_add_thumbnail($pdf, $image){} * @see PDF_create_action */ #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_action() with type=URI and PDF_create_annotation() with type=Link instead.')] -function PDF_add_weblink($pdf, $lowerleftx, $lowerlefty, $upperrightx, $upperrighty, $url){} +function PDF_add_weblink($pdf, $lowerleftx, $lowerlefty, $upperrightx, $upperrighty, $url) {} /** * Adds a counterclockwise circular arc @@ -1858,7 +1811,7 @@ function PDF_add_weblink($pdf, $lowerleftx, $lowerlefty, $upperrightx, $upperrig * * @link https://secure.php.net/manual/en/function.pdf-arc.php */ -function PDF_arc($pdf, $x, $y, $r, $alpha, $beta){} +function PDF_arc($pdf, $x, $y, $r, $alpha, $beta) {} /** * Except for the drawing direction, this function behaves exactly like PDF_arc(). @@ -1874,7 +1827,7 @@ function PDF_arc($pdf, $x, $y, $r, $alpha, $beta){} * * @link https://secure.php.net/manual/en/function.pdf-arcn.php */ -function PDF_arcn($pdf, $x, $y, $r, $alpha, $beta){} +function PDF_arcn($pdf, $x, $y, $r, $alpha, $beta) {} /** * Adds a file attachment annotation. @@ -1896,7 +1849,7 @@ function PDF_arcn($pdf, $x, $y, $r, $alpha, $beta){} * @see PDF_create_annotation */ #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_create_annotation() with type=FileAttachment instead.')] -function PDF_attach_file($pdf, $llx, $lly, $urx, $ury, $filename, $description, $author, $mimetype, $icon){} +function PDF_attach_file($pdf, $llx, $lly, $urx, $ury, $filename, $description, $author, $mimetype, $icon) {} /** * Creates a new PDF file subject to various options. @@ -1910,7 +1863,7 @@ function PDF_attach_file($pdf, $llx, $lly, $urx, $ury, $filename, $description, * @link https://secure.php.net/manual/en/function.pdf-begin-document.php * @link https://www.pdflib.com/fileadmin/pdflib/pdf/manuals/PDFlib-9.1.2-API-reference.pdf */ -function PDF_begin_document($pdf, $filename, $optlist){} +function PDF_begin_document($pdf, $filename, $optlist) {} /** * Starts a Type 3 font definition. @@ -1929,7 +1882,7 @@ function PDF_begin_document($pdf, $filename, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-begin-font.php */ -function PDF_begin_font($pdf, $filename, $a, $b, $c, $d, $e, $f, $optlist){} +function PDF_begin_font($pdf, $filename, $a, $b, $c, $d, $e, $f, $optlist) {} /** * Starts a glyph definition for a Type 3 font. @@ -1946,7 +1899,7 @@ function PDF_begin_font($pdf, $filename, $a, $b, $c, $d, $e, $f, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-begin-glyph.php */ -function PDF_begin_glyph($pdf, $glyphname, $wx, $llx, $lly, $urx, $ury){} +function PDF_begin_glyph($pdf, $glyphname, $wx, $llx, $lly, $urx, $ury) {} /** * Opens a structure element or other content item with attributes supplied as options. @@ -1959,7 +1912,7 @@ function PDF_begin_glyph($pdf, $glyphname, $wx, $llx, $lly, $urx, $ury){} * * @link https://secure.php.net/manual/en/function.pdf-begin-item.php */ -function PDF_begin_item($pdf, $tag, $optlist){} +function PDF_begin_item($pdf, $tag, $optlist) {} /** * Starts a layer for subsequent output on the page. @@ -1971,7 +1924,7 @@ function PDF_begin_item($pdf, $tag, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-begin-layer.php */ -function PDF_begin_layer($pdf, $layer){} +function PDF_begin_layer($pdf, $layer) {} /** * Adds a new page to the document, and specifies various options. The parameters width and height are the dimensions of the new page in points. @@ -1985,8 +1938,7 @@ function PDF_begin_layer($pdf, $layer){} * * @link https://secure.php.net/manual/en/function.pdf-begin-page-ext.php */ -function PDF_begin_page_ext($pdf, $width, $height, $optlist){} - +function PDF_begin_page_ext($pdf, $width, $height, $optlist) {} /** * Adds a new page to the document. @@ -2001,7 +1953,7 @@ function PDF_begin_page_ext($pdf, $width, $height, $optlist){} * @see PDF_begin_page_ext */ #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_begin_page_ext() instead.')] -function PDF_begin_page($pdf, $width, $height){} +function PDF_begin_page($pdf, $width, $height) {} /** * Starts a new pattern definition. @@ -2017,7 +1969,7 @@ function PDF_begin_page($pdf, $width, $height){} * * @link https://secure.php.net/manual/en/function.pdf-begin-pattern.php */ -function PDF_begin_pattern($pdf, $width, $height, $xstep, $ystep, $painttype){} +function PDF_begin_pattern($pdf, $width, $height, $xstep, $ystep, $painttype) {} /** * Starts a new template definition. @@ -2031,7 +1983,7 @@ function PDF_begin_pattern($pdf, $width, $height, $xstep, $ystep, $painttype){} * * @link https://secure.php.net/manual/en/function.pdf-begin-template-ext.php */ -function PDF_begin_template_ext($pdf, $width, $height, $optlist){} +function PDF_begin_template_ext($pdf, $width, $height, $optlist) {} /** * Start template definition [deprecated] @@ -2045,7 +1997,7 @@ function PDF_begin_template_ext($pdf, $width, $height, $optlist){} * @see PDF_begin_template_ext */ #[Deprecated('This function is deprecated since PDFlib version 7, use PDF_begin_template_ext() instead.')] -function PDF_begin_template($pdf, $width, $height){} +function PDF_begin_template($pdf, $width, $height) {} /** * Draw a circle @@ -2058,7 +2010,7 @@ function PDF_begin_template($pdf, $width, $height){} * * @link https://secure.php.net/manual/en/function.pdf-circle.php */ -function PDF_circle($pdf, $x, $y, $r){} +function PDF_circle($pdf, $x, $y, $r) {} /** * Clip to current path @@ -2068,7 +2020,7 @@ function PDF_circle($pdf, $x, $y, $r){} * * @link https://secure.php.net/manual/en/function.pdf-clip.php */ -function PDF_clip($pdf){} +function PDF_clip($pdf) {} /** * Close image @@ -2079,7 +2031,7 @@ function PDF_clip($pdf){} * * @link https://secure.php.net/manual/en/function.pdf-close-image.php */ -function PDF_close_image($pdf, $image){} +function PDF_close_image($pdf, $image) {} /** * Closes the page handle, and frees all page-related resources @@ -2091,7 +2043,7 @@ function PDF_close_image($pdf, $image){} * * @link https://secure.php.net/manual/en/function.pdf-close-pdi-page.php */ -function PDF_close_pdi_page($pdf, $page){} +function PDF_close_pdi_page($pdf, $page) {} /** * Close the input pdf document [deprecated] @@ -2104,7 +2056,7 @@ function PDF_close_pdi_page($pdf, $page){} * @see PDF_close_pdi_document */ #[Deprecated('This function is deprecated since PDFlib version 7, use PDF_close_pdi_document() instead.')] -function PDF_close_pdi($pdf, $doc){} +function PDF_close_pdi($pdf, $doc) {} /** * Close pdf resource [deprecated] @@ -2117,7 +2069,7 @@ function PDF_close_pdi($pdf, $doc){} * @see PDF_end_document */ #[Deprecated('This function is deprecated since PDFlib version 6, use PDF_end_document() instead.')] -function PDF_close($pdf){} +function PDF_close($pdf) {} /** * Close, fill and stroke current path @@ -2127,7 +2079,7 @@ function PDF_close($pdf){} * * @link https://secure.php.net/manual/en/function.pdf-closepath-fill-stroke.php */ -function PDF_closepath_fill_stroke($pdf){} +function PDF_closepath_fill_stroke($pdf) {} /** * Close and stroke path @@ -2137,7 +2089,7 @@ function PDF_closepath_fill_stroke($pdf){} * * @link https://secure.php.net/manual/en/function.pdf-closepath-stroke.php */ -function PDF_closepath_stroke($pdf){} +function PDF_closepath_stroke($pdf) {} /** * Close current path @@ -2147,7 +2099,7 @@ function PDF_closepath_stroke($pdf){} * * @link https://secure.php.net/manual/en/function.pdf-closepath.php */ -function PDF_closepath($pdf){} +function PDF_closepath($pdf) {} /** * Concatenate a matrix to the ctm @@ -2163,7 +2115,7 @@ function PDF_closepath($pdf){} * * @link https://secure.php.net/manual/en/function.pdf-concat.php */ -function PDF_concat($pdf, $a, $b, $c, $d, $e, $f){} +function PDF_concat($pdf, $a, $b, $c, $d, $e, $f) {} /** * Output text in next line @@ -2174,7 +2126,7 @@ function PDF_concat($pdf, $a, $b, $c, $d, $e, $f){} * * @link https://secure.php.net/manual/en/function.pdf-continue-text.php */ -function PDF_continue_text($pdf, $text){} +function PDF_continue_text($pdf, $text) {} /** * Create 3d view @@ -2186,7 +2138,7 @@ function PDF_continue_text($pdf, $text){} * * @link https://secure.php.net/manual/en/function.pdf-create-3dview.php */ -function PDF_create_3dview($pdf, $username, $optlist){} +function PDF_create_3dview($pdf, $username, $optlist) {} /** * Create action for objects or events @@ -2198,7 +2150,7 @@ function PDF_create_3dview($pdf, $username, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-create-action.php */ -function PDF_create_action($pdf, $type, $optlist){} +function PDF_create_action($pdf, $type, $optlist) {} /** * Create rectangular annotation @@ -2214,7 +2166,7 @@ function PDF_create_action($pdf, $type, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-create-annotation.php */ -function PDF_create_annotation($pdf, $llx, $lly, $urx, $ury, $type, $optlist){} +function PDF_create_annotation($pdf, $llx, $lly, $urx, $ury, $type, $optlist) {} /** * Create bookmar @@ -2226,7 +2178,7 @@ function PDF_create_annotation($pdf, $llx, $lly, $urx, $ury, $type, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-create-bookmark.php */ -function PDF_create_bookmark($pdf, $text, $optlist){} +function PDF_create_bookmark($pdf, $text, $optlist) {} /** * Create form field @@ -2243,7 +2195,7 @@ function PDF_create_bookmark($pdf, $text, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-create-field.php */ -function PDF_create_field($pdf, $llx, $lly, $urx, $ury, $name, $type, $optlist){} +function PDF_create_field($pdf, $llx, $lly, $urx, $ury, $name, $type, $optlist) {} /** * Create form field group @@ -2255,7 +2207,7 @@ function PDF_create_field($pdf, $llx, $lly, $urx, $ury, $name, $type, $optlist){ * * @link https://secure.php.net/manual/en/function.pdf-create-fieldgroup.php */ -function PDF_create_fieldgroup($pdf, $name, $optlist){} +function PDF_create_fieldgroup($pdf, $name, $optlist) {} /** * Create graphics state object @@ -2266,7 +2218,7 @@ function PDF_create_fieldgroup($pdf, $name, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-create-gstate.php */ -function PDF_create_gstate($pdf, $optlist){} +function PDF_create_gstate($pdf, $optlist) {} /** * Create pdflib virtual file @@ -2279,7 +2231,7 @@ function PDF_create_gstate($pdf, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-create-pvf.php */ -function PDF_create_pvf($pdf, $filename, $data, $optlist){} +function PDF_create_pvf($pdf, $filename, $data, $optlist) {} /** * Create textflow object @@ -2291,7 +2243,7 @@ function PDF_create_pvf($pdf, $filename, $data, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-create-textflow.php */ -function PDF_create_textflow($pdf, $text, $optlist){} +function PDF_create_textflow($pdf, $text, $optlist) {} /** * Draw bezier curve @@ -2307,7 +2259,7 @@ function PDF_create_textflow($pdf, $text, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-curveto.php */ -function PDF_curveto($pdf, $x1, $y1, $x2, $y2, $x3, $y3){} +function PDF_curveto($pdf, $x1, $y1, $x2, $y2, $x3, $y3) {} /** * Create layer definition @@ -2319,7 +2271,7 @@ function PDF_curveto($pdf, $x1, $y1, $x2, $y2, $x3, $y3){} * * @link https://secure.php.net/manual/en/function.pdf-define-layer.php */ -function PDF_define_layer($pdf, $name, $optlist){} +function PDF_define_layer($pdf, $name, $optlist) {} /** * Delete pdflib virtual file @@ -2330,7 +2282,7 @@ function PDF_define_layer($pdf, $name, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-delete-pvf.php */ -function PDF_delete_pvf($pdf, $filename){} +function PDF_delete_pvf($pdf, $filename) {} /** * @param resource $pdf @@ -2341,7 +2293,7 @@ function PDF_delete_pvf($pdf, $filename){} * * @link https://secure.php.net/manual/en/function.pdf-delete-table.php */ -function PDF_delete_table($pdf, $table, $optlist){} +function PDF_delete_table($pdf, $table, $optlist) {} /** * @param resource $pdf @@ -2351,7 +2303,7 @@ function PDF_delete_table($pdf, $table, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-delete-textflow.php */ -function PDF_delete_textflow($pdf, $textflow){} +function PDF_delete_textflow($pdf, $textflow) {} /** * @param resource $pdf @@ -2360,7 +2312,7 @@ function PDF_delete_textflow($pdf, $textflow){} * * @link https://secure.php.net/manual/en/function.pdf-delete.php */ -function PDF_delete($pdf){} +function PDF_delete($pdf) {} /** * @param resource $pdf @@ -2373,7 +2325,7 @@ function PDF_delete($pdf){} * * @link https://secure.php.net/manual/en/function.pdf-encoding-set-char.php */ -function PDF_encoding_set_char($pdf, $encoding, $slot, $glyphname, $uv){} +function PDF_encoding_set_char($pdf, $encoding, $slot, $glyphname, $uv) {} /** * @param resource $pdf @@ -2383,7 +2335,7 @@ function PDF_encoding_set_char($pdf, $encoding, $slot, $glyphname, $uv){} * * @link https://secure.php.net/manual/en/function.pdf-end-document.php */ -function PDF_end_document($pdf, $optlist){} +function PDF_end_document($pdf, $optlist) {} /** * @param resource $pdf @@ -2392,7 +2344,7 @@ function PDF_end_document($pdf, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-end-font.php */ -function PDF_end_font($pdf){} +function PDF_end_font($pdf) {} /** * @param resource $pdf @@ -2401,7 +2353,7 @@ function PDF_end_font($pdf){} * * @link https://secure.php.net/manual/en/function.pdf-end-glyph.php */ -function PDF_end_glyph($pdf){} +function PDF_end_glyph($pdf) {} /** * @param resource $pdf @@ -2411,7 +2363,7 @@ function PDF_end_glyph($pdf){} * * @link https://secure.php.net/manual/en/function.pdf-end-item.php */ -function PDF_end_item($pdf, $id){} +function PDF_end_item($pdf, $id) {} /** * @param resource $pdf @@ -2420,7 +2372,7 @@ function PDF_end_item($pdf, $id){} * * @link https://secure.php.net/manual/en/function.pdf-end-layer.php */ -function PDF_end_layer($pdf){} +function PDF_end_layer($pdf) {} /** * @param resource $pdf @@ -2430,7 +2382,7 @@ function PDF_end_layer($pdf){} * * @link https://secure.php.net/manual/en/function.pdf-end-page-ext.php */ -function PDF_end_page_ext($pdf, $optlist){} +function PDF_end_page_ext($pdf, $optlist) {} /** * @param resource $pdf @@ -2439,7 +2391,7 @@ function PDF_end_page_ext($pdf, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-end-page.php */ -function PDF_end_page($p){} +function PDF_end_page($p) {} /** * @param resource $pdf @@ -2448,7 +2400,7 @@ function PDF_end_page($p){} * * @link https://secure.php.net/manual/en/function.pdf-end-pattern.php */ -function PDF_end_pattern($p){} +function PDF_end_pattern($p) {} /** * @param resource $pdf @@ -2457,7 +2409,7 @@ function PDF_end_pattern($p){} * * @link https://secure.php.net/manual/en/function.pdf-end-template.php */ -function PDF_end_template($p){} +function PDF_end_template($p) {} /** * @param resource $pdf @@ -2466,7 +2418,7 @@ function PDF_end_template($p){} * * @link https://secure.php.net/manual/en/function.pdf-endpath.php */ -function PDF_endpath($p){} +function PDF_endpath($p) {} /** * @param resource $pdf @@ -2479,7 +2431,7 @@ function PDF_endpath($p){} * * @link https://secure.php.net/manual/en/function.pdf-fill-imageblock.php */ -function PDF_fill_imageblock($pdf, $page, $blockname, $image, $optlist){} +function PDF_fill_imageblock($pdf, $page, $blockname, $image, $optlist) {} /** * @param resource $pdf @@ -2492,7 +2444,7 @@ function PDF_fill_imageblock($pdf, $page, $blockname, $image, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-fill-pdfblock.php */ -function PDF_fill_pdfblock($pdf, $page, $blockname, $contents, $optlist){} +function PDF_fill_pdfblock($pdf, $page, $blockname, $contents, $optlist) {} /** * @param resource $pdf @@ -2501,7 +2453,7 @@ function PDF_fill_pdfblock($pdf, $page, $blockname, $contents, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-fill-stroke.php */ -function PDF_fill_stroke($pdf){} +function PDF_fill_stroke($pdf) {} /** * @param resource $pdf @@ -2513,9 +2465,8 @@ function PDF_fill_stroke($pdf){} * @return int * * @link https://secure.php.net/manual/en/function.pdf-fill-textblock.php - */ -function PDF_fill_textblock($pdf, $page, $blockname, $text, $optlist){} +function PDF_fill_textblock($pdf, $page, $blockname, $text, $optlist) {} /** * @param resource $pdf @@ -2523,9 +2474,8 @@ function PDF_fill_textblock($pdf, $page, $blockname, $text, $optlist){} * @return bool * * @link https://secure.php.net/manual/en/function.pdf-fill.php - */ -function PDF_fill($pdf){} +function PDF_fill($pdf) {} /** * @param resource $pdf * @param string $fontname @@ -2535,9 +2485,8 @@ function PDF_fill($pdf){} * @return int * * @link https://secure.php.net/manual/en/function.pdf-findfont.php(Dep) - */ -function PDF_findfont($pdf, $fontname , $encoding , $embed){} +function PDF_findfont($pdf, $fontname, $encoding, $embed) {} /** * @param resource $pdf * @param int $image @@ -2548,9 +2497,8 @@ function PDF_findfont($pdf, $fontname , $encoding , $embed){} * @return bool * * @link https://secure.php.net/manual/en/function.pdf-fit-image.php - */ -function PDF_fit_image($pdf, $image , $x , $y , $optlist){} +function PDF_fit_image($pdf, $image, $x, $y, $optlist) {} /** * @param resource $pdf * @param int $page @@ -2561,9 +2509,8 @@ function PDF_fit_image($pdf, $image , $x , $y , $optlist){} * @return bool * * @link https://secure.php.net/manual/en/function.pdf-fit-pdi-page.php - */ -function PDF_fit_pdi_page($pdf, $page , $x , $y , $optlist){} +function PDF_fit_pdi_page($pdf, $page, $x, $y, $optlist) {} /** * @param resource $pdf * @param int $table @@ -2576,9 +2523,8 @@ function PDF_fit_pdi_page($pdf, $page , $x , $y , $optlist){} * @return string * * @link https://secure.php.net/manual/en/function.pdf-fit-table.php - */ -function PDF_fit_table($pdf, $table , $llx , $lly , $urx , $ury , $optlist){} +function PDF_fit_table($pdf, $table, $llx, $lly, $urx, $ury, $optlist) {} /** * @param resource $pdf * @param int $textflow @@ -2591,9 +2537,8 @@ function PDF_fit_table($pdf, $table , $llx , $lly , $urx , $ury , $optlist){} * @return string * * @link https://secure.php.net/manual/en/function.pdf-fit-textflow.php - */ -function PDF_fit_textflow($pdf, $textflow , $llx , $lly , $urx , $ury , $optlist){} +function PDF_fit_textflow($pdf, $textflow, $llx, $lly, $urx, $ury, $optlist) {} /** * @param resource $pdf * @param string $text @@ -2604,63 +2549,56 @@ function PDF_fit_textflow($pdf, $textflow , $llx , $lly , $urx , $ury , $optlist * @return bool * * @link https://secure.php.net/manual/en/function.pdf-fit-textline.php - */ -function PDF_fit_textline($pdf, $text , $x , $y , $optlist){} +function PDF_fit_textline($pdf, $text, $x, $y, $optlist) {} /** * @param resource $pdf * * @return string * * @link https://secure.php.net/manual/en/function.pdf-get-apiname.php - */ -function PDF_get_apiname($pdf){} +function PDF_get_apiname($pdf) {} /** * @param resource $pdf * * @return string * * @link https://secure.php.net/manual/en/function.pdf-get-buffer.php - */ -function PDF_get_buffer($pdf){} +function PDF_get_buffer($pdf) {} /** * @param resource $pdf * * @return string * * @link https://secure.php.net/manual/en/function.pdf-get-errmsg.php - */ -function PDF_get_errmsg($pdf){} +function PDF_get_errmsg($pdf) {} /** * @param resource $pdf * * @return int * * @link https://secure.php.net/manual/en/function.pdf-get-errnum.php - */ -function PDF_get_errnum($pdf){} +function PDF_get_errnum($pdf) {} /** * @param void $ * * @return int * * @link https://secure.php.net/manual/en/function.pdf-get-majorversion.php(dep) - */ -function PDF_get_majorversion(){} +function PDF_get_majorversion() {} /** * @param void $ * * @return int * * @link https://secure.php.net/manual/en/function.pdf-get-minorversion.php(dep) - */ -function PDF_get_minorversion(){} +function PDF_get_minorversion() {} /** * @param resource $pdf * @param string $key @@ -2669,9 +2607,8 @@ function PDF_get_minorversion(){} * @return string * * @link https://secure.php.net/manual/en/function.pdf-get-parameter.php - */ -function PDF_get_parameter($pdf, $key , $modifier){} +function PDF_get_parameter($pdf, $key, $modifier) {} /** * @param resource $pdf * @param string $key @@ -2682,9 +2619,8 @@ function PDF_get_parameter($pdf, $key , $modifier){} * @return string * * @link https://secure.php.net/manual/en/function.pdf-get-pdi-parameter.php - */ -function PDF_get_pdi_parameter($pdf, $key , $doc , $page , $reserved){} +function PDF_get_pdi_parameter($pdf, $key, $doc, $page, $reserved) {} /** * @param resource $pdf * @param string $key @@ -2695,9 +2631,8 @@ function PDF_get_pdi_parameter($pdf, $key , $doc , $page , $reserved){} * @return float * * @link https://secure.php.net/manual/en/function.pdf-get-pdi-value.php - */ -function PDF_get_pdi_value($pdf, $key , $doc , $page , $reserved){} +function PDF_get_pdi_value($pdf, $key, $doc, $page, $reserved) {} /** * @param resource $pdf * @param string $key @@ -2706,9 +2641,8 @@ function PDF_get_pdi_value($pdf, $key , $doc , $page , $reserved){} * @return float * * @link https://secure.php.net/manual/en/function.pdf-get-value.php - */ -function PDF_get_value($pdf, $key , $modifier){} +function PDF_get_value($pdf, $key, $modifier) {} /** * @param resource $pdf * @param int $font @@ -2718,9 +2652,8 @@ function PDF_get_value($pdf, $key , $modifier){} * @return float * * @link https://secure.php.net/manual/en/function.pdf-info-font.php - */ -function PDF_info_font($pdf, $font , $keyword , $optlist){} +function PDF_info_font($pdf, $font, $keyword, $optlist) {} /** * @param resource $pdf * @param string $boxname @@ -2730,9 +2663,8 @@ function PDF_info_font($pdf, $font , $keyword , $optlist){} * @return float * * @link https://secure.php.net/manual/en/function.pdf-info-matchbox.php - */ -function PDF_info_matchbox($pdf, $boxname , $num , $keyword){} +function PDF_info_matchbox($pdf, $boxname, $num, $keyword) {} /** * @param resource $pdf * @param int $table @@ -2741,9 +2673,8 @@ function PDF_info_matchbox($pdf, $boxname , $num , $keyword){} * @return float * * @link https://secure.php.net/manual/en/function.pdf-info-table.php - */ -function PDF_info_table($pdf, $table , $keyword){} +function PDF_info_table($pdf, $table, $keyword) {} /** * @param resource $pdf * @param int $textflow @@ -2752,9 +2683,8 @@ function PDF_info_table($pdf, $table , $keyword){} * @return float * * @link https://secure.php.net/manual/en/function.pdf-info-textflow.php - */ -function PDF_info_textflow($pdf, $textflow , $keyword){} +function PDF_info_textflow($pdf, $textflow, $keyword) {} /** * @param resource $pdf @@ -2766,7 +2696,7 @@ function PDF_info_textflow($pdf, $textflow , $keyword){} * * @link https://secure.php.net/manual/en/function.pdf-info-textline.php */ -function PDF_info_textline($pdf, $text , $keyword , $optlist){} +function PDF_info_textline($pdf, $text, $keyword, $optlist) {} /** * @param resource $pdf @@ -2775,7 +2705,7 @@ function PDF_info_textline($pdf, $text , $keyword , $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-initgraphics.php */ -function PDF_initgraphics($pdf){} +function PDF_initgraphics($pdf) {} /** * @param resource $pdf @@ -2786,7 +2716,7 @@ function PDF_initgraphics($pdf){} * * @link https://secure.php.net/manual/en/function.pdf-lineto.php */ -function PDF_lineto($pdf, $x , $y){} +function PDF_lineto($pdf, $x, $y) {} /** * @param resource $pdf @@ -2797,7 +2727,7 @@ function PDF_lineto($pdf, $x , $y){} * * @link https://secure.php.net/manual/en/function.pdf-load-3ddata.php */ -function PDF_load_3ddata($pdf, $filename , $optlist){} +function PDF_load_3ddata($pdf, $filename, $optlist) {} /** * @param resource $pdf @@ -2809,7 +2739,7 @@ function PDF_load_3ddata($pdf, $filename , $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-load-font.php */ -function PDF_load_font($pdf, $fontname , $encoding , $optlist){} +function PDF_load_font($pdf, $fontname, $encoding, $optlist) {} /** * @param resource $pdf @@ -2820,7 +2750,7 @@ function PDF_load_font($pdf, $fontname , $encoding , $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-load-iccprofile.php */ -function PDF_load_iccprofile($pdf, $profilename , $optlist){} +function PDF_load_iccprofile($pdf, $profilename, $optlist) {} /** * @param resource $pdf @@ -2832,7 +2762,7 @@ function PDF_load_iccprofile($pdf, $profilename , $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-load-image.php */ -function PDF_load_image($pdf, $imagetype , $filename , $optlist){} +function PDF_load_image($pdf, $imagetype, $filename, $optlist) {} /** * @param resource $pdf @@ -2842,7 +2772,7 @@ function PDF_load_image($pdf, $imagetype , $filename , $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-makespotcolor.php */ -function PDF_makespotcolor($pdf, $spotname){} +function PDF_makespotcolor($pdf, $spotname) {} /** * @param resource $pdf @@ -2853,14 +2783,14 @@ function PDF_makespotcolor($pdf, $spotname){} * * @link https://secure.php.net/manual/en/function.pdf-moveto.php */ -function PDF_moveto($pdf, $x , $y){} +function PDF_moveto($pdf, $x, $y) {} /** * @return resource * * @link https://secure.php.net/manual/en/function.pdf-new.php */ -function PDF_new(){} +function PDF_new() {} /** * @param resource $pdf @@ -2875,7 +2805,7 @@ function PDF_new(){} * * @link https://secure.php.net/manual/en/function.pdf-open-ccitt.php(dep) */ -function PDF_open_ccitt($pdf, $filename , $width , $height , $BitReverse , $k , $Blackls1){} +function PDF_open_ccitt($pdf, $filename, $width, $height, $BitReverse, $k, $Blackls1) {} /** * @param resource $pdf @@ -2885,7 +2815,7 @@ function PDF_open_ccitt($pdf, $filename , $width , $height , $BitReverse , $k , * * @link https://secure.php.net/manual/en/function.pdf-open-file.php(dep) */ -function PDF_open_file($pdf, $filename){} +function PDF_open_file($pdf, $filename) {} /** * @param resource $pdf @@ -2898,7 +2828,7 @@ function PDF_open_file($pdf, $filename){} * * @link https://secure.php.net/manual/en/function.pdf-open-image-file.php(dep) */ -function PDF_open_image_file($pdf, $imagetype , $filename , $stringparam , $intparam){} +function PDF_open_image_file($pdf, $imagetype, $filename, $stringparam, $intparam) {} /** * @param resource $pdf @@ -2916,7 +2846,7 @@ function PDF_open_image_file($pdf, $imagetype , $filename , $stringparam , $intp * * @link https://secure.php.net/manual/en/function.pdf-open-image.php(dep) */ -function PDF_open_image($pdf, $imagetype , $source , $data , $length , $width , $height , $components , $bpc , $params){} +function PDF_open_image($pdf, $imagetype, $source, $data, $length, $width, $height, $components, $bpc, $params) {} /** * @param resource $pdf @@ -2926,7 +2856,7 @@ function PDF_open_image($pdf, $imagetype , $source , $data , $length , $width , * * @link https://secure.php.net/manual/en/function.pdf-open-memory-image.php(not supported) */ -function PDF_open_memory_image($pdf, $image){} +function PDF_open_memory_image($pdf, $image) {} /** * @param resource $pdf @@ -2937,7 +2867,7 @@ function PDF_open_memory_image($pdf, $image){} * * @link https://secure.php.net/manual/en/function.pdf-open-pdi-document.php */ -function PDF_open_pdi_document($pdf, $filename , $optlist){} +function PDF_open_pdi_document($pdf, $filename, $optlist) {} /** * @param resource $pdf @@ -2949,7 +2879,7 @@ function PDF_open_pdi_document($pdf, $filename , $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-open-pdi-page.php */ -function PDF_open_pdi_page($pdf, $doc , $pagenumber , $optlist){} +function PDF_open_pdi_page($pdf, $doc, $pagenumber, $optlist) {} /** * @param resource $pdf @@ -2961,7 +2891,7 @@ function PDF_open_pdi_page($pdf, $doc , $pagenumber , $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-open-pdi.php */ -function PDF_open_pdi($pdf, $filename , $optlist , $len){} +function PDF_open_pdi($pdf, $filename, $optlist, $len) {} /** * @param resource $pdf @@ -2972,7 +2902,7 @@ function PDF_open_pdi($pdf, $filename , $optlist , $len){} * * @link https://secure.php.net/manual/en/function.pdf-pcos-get-number.php */ -function PDF_pcos_get_number($pdf, $doc , $path){} +function PDF_pcos_get_number($pdf, $doc, $path) {} /** * @param resource $pdf @@ -2984,7 +2914,7 @@ function PDF_pcos_get_number($pdf, $doc , $path){} * * @link https://secure.php.net/manual/en/function.pdf-pcos-get-stream.php */ -function PDF_pcos_get_stream($pdf, $doc, $optlist, $path){} +function PDF_pcos_get_stream($pdf, $doc, $optlist, $path) {} /** * @param resource $pdf @@ -2995,7 +2925,7 @@ function PDF_pcos_get_stream($pdf, $doc, $optlist, $path){} * * @link https://secure.php.net/manual/en/function.pdf-pcos-get-string.php */ -function PDF_pcos_get_string($pdf, $doc, $path){} +function PDF_pcos_get_string($pdf, $doc, $path) {} /** * @param resource $pdf @@ -3008,7 +2938,7 @@ function PDF_pcos_get_string($pdf, $doc, $path){} * * @link https://secure.php.net/manual/en/function.pdf-place-image.php (dep) */ -function PDF_place_image($pdf, $image, $x, $y, $scale){} +function PDF_place_image($pdf, $image, $x, $y, $scale) {} /** * @param resource $pdf @@ -3022,7 +2952,7 @@ function PDF_place_image($pdf, $image, $x, $y, $scale){} * * @link https://secure.php.net/manual/en/function.pdf-place-pdi-page.php (dep) */ -function PDF_place_pdi_page($pdf, $page, $x, $y, $sx, $sy){} +function PDF_place_pdi_page($pdf, $page, $x, $y, $sx, $sy) {} /** * @param resource $pdf @@ -3034,7 +2964,7 @@ function PDF_place_pdi_page($pdf, $page, $x, $y, $sx, $sy){} * * @link https://secure.php.net/manual/en/function.pdf-process-pdi.php */ -function PDF_process_pdi($pdf, $doc, $page, $optlist){} +function PDF_process_pdi($pdf, $doc, $page, $optlist) {} /** * @param resource $pdf @@ -3047,7 +2977,7 @@ function PDF_process_pdi($pdf, $doc, $page, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-rect.php */ -function PDF_rect($pdf, $x, $y, $width, $height){} +function PDF_rect($pdf, $x, $y, $width, $height) {} /** * @param resource $pdf @@ -3056,7 +2986,7 @@ function PDF_rect($pdf, $x, $y, $width, $height){} * * @link https://secure.php.net/manual/en/function.pdf-restore.php */ -function PDF_restore($p){} +function PDF_restore($p) {} /** * @param resource $pdf @@ -3066,7 +2996,7 @@ function PDF_restore($p){} * * @link https://secure.php.net/manual/en/function.pdf-resume-page.php */ -function PDF_resume_page($pdf, $optlist){} +function PDF_resume_page($pdf, $optlist) {} /** * @param resource $pdf @@ -3076,7 +3006,7 @@ function PDF_resume_page($pdf, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-rotate.php */ -function PDF_rotate($pdf, $phi){} +function PDF_rotate($pdf, $phi) {} /** * @param resource $pdf @@ -3085,7 +3015,7 @@ function PDF_rotate($pdf, $phi){} * * @link https://secure.php.net/manual/en/function.pdf-save.php */ -function PDF_save($p){} +function PDF_save($p) {} /** * @param resource $pdf @@ -3096,7 +3026,7 @@ function PDF_save($p){} * * @link https://secure.php.net/manual/en/function.pdf-scale.php */ -function PDF_scale($pdf, $sx, $sy){} +function PDF_scale($pdf, $sx, $sy) {} /** * @param resource $pdf @@ -3108,7 +3038,7 @@ function PDF_scale($pdf, $sx, $sy){} * * @link https://secure.php.net/manual/en/function.pdf-set-border-color.php (dep) */ -function PDF_set_border_color($pdf, $red, $green, $blue){} +function PDF_set_border_color($pdf, $red, $green, $blue) {} /** * @param resource $pdf @@ -3119,7 +3049,7 @@ function PDF_set_border_color($pdf, $red, $green, $blue){} * * @link https://secure.php.net/manual/en/function.pdf-set-border-dash.php (dep) */ -function PDF_set_border_dash($pdf, $black, $white){} +function PDF_set_border_dash($pdf, $black, $white) {} /** * @param resource $pdf @@ -3130,7 +3060,7 @@ function PDF_set_border_dash($pdf, $black, $white){} * * @link https://secure.php.net/manual/en/function.pdf-set-border-style.php (dep) */ -function PDF_set_border_style($pdf, $style, $width){} +function PDF_set_border_style($pdf, $style, $width) {} /** * @param resource $pdf @@ -3140,7 +3070,7 @@ function PDF_set_border_style($pdf, $style, $width){} * * @link https://secure.php.net/manual/en/function.pdf-set-gstate.php */ -function PDF_set_gstate($pdf, $gstate){} +function PDF_set_gstate($pdf, $gstate) {} /** * @param resource $pdf @@ -3151,7 +3081,7 @@ function PDF_set_gstate($pdf, $gstate){} * * @link https://secure.php.net/manual/en/function.pdf-set-info.php */ -function PDF_set_info($pdf, $key, $value){} +function PDF_set_info($pdf, $key, $value) {} /** * @param resource $pdf @@ -3162,7 +3092,7 @@ function PDF_set_info($pdf, $key, $value){} * * @link https://secure.php.net/manual/en/function.pdf-set-layer-dependency.php */ -function PDF_set_layer_dependency($pdf, $type, $optlist){} +function PDF_set_layer_dependency($pdf, $type, $optlist) {} /** * @param resource $pdf @@ -3173,7 +3103,7 @@ function PDF_set_layer_dependency($pdf, $type, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-set-parameter.php */ -function PDF_set_parameter($pdf, $key, $value){} +function PDF_set_parameter($pdf, $key, $value) {} /** * @param resource $pdf @@ -3184,7 +3114,7 @@ function PDF_set_parameter($pdf, $key, $value){} * * @link https://secure.php.net/manual/en/function.pdf-set-text-pos.php */ -function PDF_set_text_pos($pdf, $x, $y){} +function PDF_set_text_pos($pdf, $x, $y) {} /** * @param resource $pdf @@ -3195,7 +3125,7 @@ function PDF_set_text_pos($pdf, $x, $y){} * * @link https://secure.php.net/manual/en/function.pdf-set-value.php */ -function PDF_set_value($pdf, $key, $value){} +function PDF_set_value($pdf, $key, $value) {} /** * @param resource $pdf @@ -3210,7 +3140,7 @@ function PDF_set_value($pdf, $key, $value){} * * @link https://secure.php.net/manual/en/function.pdf-setcolor.php */ -function PDF_setcolor($pdf, $fstype, $colorspace, $c1, $c2, $c3, $c4){} +function PDF_setcolor($pdf, $fstype, $colorspace, $c1, $c2, $c3, $c4) {} /** * @param resource $pdf @@ -3221,7 +3151,7 @@ function PDF_setcolor($pdf, $fstype, $colorspace, $c1, $c2, $c3, $c4){} * * @link https://secure.php.net/manual/en/function.pdf-setdash.php */ -function PDF_setdash($pdf, $b, $w){} +function PDF_setdash($pdf, $b, $w) {} /** * @param resource $pdf @@ -3231,7 +3161,7 @@ function PDF_setdash($pdf, $b, $w){} * * @link https://secure.php.net/manual/en/function.pdf-setdashpattern.php */ -function PDF_setdashpattern($pdf, $optlist){} +function PDF_setdashpattern($pdf, $optlist) {} /** * @param resource $pdf @@ -3241,7 +3171,7 @@ function PDF_setdashpattern($pdf, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-setflat.php */ -function PDF_setflat($pdf, $flatness){} +function PDF_setflat($pdf, $flatness) {} /** * @param resource $pdf @@ -3252,7 +3182,7 @@ function PDF_setflat($pdf, $flatness){} * * @link https://secure.php.net/manual/en/function.pdf-setfont.php */ -function PDF_setfont($pdf, $font, $fontsize){} +function PDF_setfont($pdf, $font, $fontsize) {} /** * @param resource $pdf @@ -3262,7 +3192,7 @@ function PDF_setfont($pdf, $font, $fontsize){} * * @link https://secure.php.net/manual/en/function.pdf-setgray-fill.php (dep) */ -function PDF_setgray_fill($pdf, $g){} +function PDF_setgray_fill($pdf, $g) {} /** * @param resource $pdf @@ -3272,7 +3202,7 @@ function PDF_setgray_fill($pdf, $g){} * * @link https://secure.php.net/manual/en/function.pdf-setgray-stroke.php (dep) */ -function PDF_setgray_stroke($pdf, $g){} +function PDF_setgray_stroke($pdf, $g) {} /** * @param resource $pdf @@ -3282,7 +3212,7 @@ function PDF_setgray_stroke($pdf, $g){} * * @link https://secure.php.net/manual/en/function.pdf-setgray.php (dep) */ -function PDF_setgray($pdf, $g){} +function PDF_setgray($pdf, $g) {} /** * @param resource $pdf @@ -3292,7 +3222,7 @@ function PDF_setgray($pdf, $g){} * * @link https://secure.php.net/manual/en/function.pdf-setlinecap.php */ -function PDF_setlinecap($pdf, $linecap){} +function PDF_setlinecap($pdf, $linecap) {} /** * @param resource $pdf @@ -3302,7 +3232,7 @@ function PDF_setlinecap($pdf, $linecap){} * * @link https://secure.php.net/manual/en/function.pdf-setlinejoin.php */ -function PDF_setlinejoin($pdf, $value){} +function PDF_setlinejoin($pdf, $value) {} /** * @param resource $pdf @@ -3312,7 +3242,7 @@ function PDF_setlinejoin($pdf, $value){} * * @link https://secure.php.net/manual/en/function.pdf-setlinewidth.php */ -function PDF_setlinewidth($pdf, $width){} +function PDF_setlinewidth($pdf, $width) {} /** * @param resource $pdf @@ -3327,7 +3257,7 @@ function PDF_setlinewidth($pdf, $width){} * * @link https://secure.php.net/manual/en/function.pdf-setmatrix.php */ -function PDF_setmatrix($pdf, $a, $b, $c, $d, $e, $f){} +function PDF_setmatrix($pdf, $a, $b, $c, $d, $e, $f) {} /** * @param resource $pdf @@ -3337,7 +3267,7 @@ function PDF_setmatrix($pdf, $a, $b, $c, $d, $e, $f){} * * @link https://secure.php.net/manual/en/function.pdf-setmiterlimit.php */ -function PDF_setmiterlimit($pdf, $miter){} +function PDF_setmiterlimit($pdf, $miter) {} /** * @param resource $pdf @@ -3349,7 +3279,7 @@ function PDF_setmiterlimit($pdf, $miter){} * * @link https://secure.php.net/manual/en/function.pdf-setrgbcolor-fill.php (dep) */ -function PDF_setrgbcolor_fill($pdf, $red, $green, $blue){} +function PDF_setrgbcolor_fill($pdf, $red, $green, $blue) {} /** * @param resource $pdf @@ -3361,7 +3291,7 @@ function PDF_setrgbcolor_fill($pdf, $red, $green, $blue){} * * @link https://secure.php.net/manual/en/function.pdf-setrgbcolor-stroke.php (dep) */ -function PDF_setrgbcolor_stroke($pdf, $red, $green, $blue){} +function PDF_setrgbcolor_stroke($pdf, $red, $green, $blue) {} /** * @param resource $pdf @@ -3373,7 +3303,7 @@ function PDF_setrgbcolor_stroke($pdf, $red, $green, $blue){} * * @link https://secure.php.net/manual/en/function.pdf-setrgbcolor.php (dep) */ -function PDF_setrgbcolor($pdf, $red, $green, $blue){} +function PDF_setrgbcolor($pdf, $red, $green, $blue) {} /** * @param resource $pdf @@ -3384,7 +3314,7 @@ function PDF_setrgbcolor($pdf, $red, $green, $blue){} * * @link https://secure.php.net/manual/en/function.pdf-shading-pattern.php */ -function PDF_shading_pattern($pdf, $shading, $optlist){} +function PDF_shading_pattern($pdf, $shading, $optlist) {} /** * @param resource $pdf @@ -3403,7 +3333,7 @@ function PDF_shading_pattern($pdf, $shading, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-shading.php */ -function PDF_shading($pdf, $shtype, $x0, $y0, $x1, $y1, $c1, $c2, $c3, $c4, $optlist){} +function PDF_shading($pdf, $shtype, $x0, $y0, $x1, $y1, $c1, $c2, $c3, $c4, $optlist) {} /** * @param resource $pdf @@ -3413,7 +3343,7 @@ function PDF_shading($pdf, $shtype, $x0, $y0, $x1, $y1, $c1, $c2, $c3, $c4, $opt * * @link https://secure.php.net/manual/en/function.pdf-shfill.php */ -function PDF_shfill($pdf, $shading){} +function PDF_shfill($pdf, $shading) {} /** * @param resource $pdf @@ -3429,7 +3359,7 @@ function PDF_shfill($pdf, $shading){} * * @link https://secure.php.net/manual/en/function.pdf-show-boxed.php (dep) */ -function PDF_show_boxed($pdf, $text, $left, $top, $width, $height, $mode, $feature){} +function PDF_show_boxed($pdf, $text, $left, $top, $width, $height, $mode, $feature) {} /** * @param resource $pdf @@ -3441,7 +3371,7 @@ function PDF_show_boxed($pdf, $text, $left, $top, $width, $height, $mode, $featu * * @link https://secure.php.net/manual/en/function.pdf-show-xy.php */ -function PDF_show_xy($pdf, $text, $x, $y){} +function PDF_show_xy($pdf, $text, $x, $y) {} /** * @param resource $pdf @@ -3451,7 +3381,7 @@ function PDF_show_xy($pdf, $text, $x, $y){} * * @link https://secure.php.net/manual/en/function.pdf-show.php */ -function PDF_show($pdf, $text){} +function PDF_show($pdf, $text) {} /** * @param resource $pdf @@ -3462,7 +3392,7 @@ function PDF_show($pdf, $text){} * * @link https://secure.php.net/manual/en/function.pdf-skew.php */ -function PDF_skew($pdf, $alpha, $beta){} +function PDF_skew($pdf, $alpha, $beta) {} /** * @param resource $pdf @@ -3474,7 +3404,7 @@ function PDF_skew($pdf, $alpha, $beta){} * * @link https://secure.php.net/manual/en/function.pdf-stringwidth.php */ -function PDF_stringwidth($pdf, $text, $font, $fontsize){} +function PDF_stringwidth($pdf, $text, $font, $fontsize) {} /** * @param resource $pdf @@ -3483,7 +3413,7 @@ function PDF_stringwidth($pdf, $text, $font, $fontsize){} * * @link https://secure.php.net/manual/en/function.pdf-stroke.php */ -function PDF_stroke($p){} +function PDF_stroke($p) {} /** * @param resource $pdf @@ -3493,7 +3423,7 @@ function PDF_stroke($p){} * * @link https://secure.php.net/manual/en/function.pdf-suspend-page.php */ -function PDF_suspend_page($pdf, $optlist){} +function PDF_suspend_page($pdf, $optlist) {} /** * @param resource $pdf @@ -3504,7 +3434,7 @@ function PDF_suspend_page($pdf, $optlist){} * * @link https://secure.php.net/manual/en/function.pdf-translate.php */ -function PDF_translate($pdf, $tx, $ty){} +function PDF_translate($pdf, $tx, $ty) {} /** * @param resource $pdf @@ -3514,7 +3444,7 @@ function PDF_translate($pdf, $tx, $ty){} * * @link https://secure.php.net/manual/en/function.pdf-utf16-to-utf8.php */ -function PDF_utf16_to_utf8($pdf, $utf16string){} +function PDF_utf16_to_utf8($pdf, $utf16string) {} /** * @param resource $pdf @@ -3525,7 +3455,7 @@ function PDF_utf16_to_utf8($pdf, $utf16string){} * * @link https://secure.php.net/manual/en/function.pdf-utf32-to-utf16.php */ -function PDF_utf32_to_utf16($pdf, $utf32string, $ordering){} +function PDF_utf32_to_utf16($pdf, $utf32string, $ordering) {} /** * @param resource $pdf @@ -3536,4 +3466,4 @@ function PDF_utf32_to_utf16($pdf, $utf32string, $ordering){} * * @link https://secure.php.net/manual/en/function.pdf-utf8-to-utf16.php */ -function PDF_utf8_to_utf16($pdf, $utf8string, $ordering){} +function PDF_utf8_to_utf16($pdf, $utf8string, $ordering) {} diff --git a/pdo_ibm/pdo_ibm.php b/pdo_ibm/pdo_ibm.php index f9b9f6346..e84a94d39 100644 --- a/pdo_ibm/pdo_ibm.php +++ b/pdo_ibm/pdo_ibm.php @@ -2,7 +2,6 @@ // Start of pdo_ibm v.1.2.3 -function confirm_pdo_ibm_compiled () {} +function confirm_pdo_ibm_compiled() {} // End of pdo_ibm v.1.2.3 -?> diff --git a/pdo_mysql/pdo_mysql.php b/pdo_mysql/pdo_mysql.php index b6fdd63d6..77870f4f1 100644 --- a/pdo_mysql/pdo_mysql.php +++ b/pdo_mysql/pdo_mysql.php @@ -2,4 +2,3 @@ // Start of pdo_mysql v.1.0.2 // End of pdo_mysql v.1.0.2 -?> diff --git a/pdo_pgsql/pdo_pgsql.php b/pdo_pgsql/pdo_pgsql.php index e551b7ae6..5dab8b540 100644 --- a/pdo_pgsql/pdo_pgsql.php +++ b/pdo_pgsql/pdo_pgsql.php @@ -2,4 +2,3 @@ // Start of pdo_pgsql v.1.0.2 // End of pdo_pgsql v.1.0.2 -?> diff --git a/pdo_sqlite/pdo_sqlite.php b/pdo_sqlite/pdo_sqlite.php index d33f2d2ae..b63019a5b 100644 --- a/pdo_sqlite/pdo_sqlite.php +++ b/pdo_sqlite/pdo_sqlite.php @@ -2,4 +2,3 @@ // Start of pdo_sqlite v.1.0.1 // End of pdo_sqlite v.1.0.1 -?> diff --git a/pgsql/pgsql.php b/pgsql/pgsql.php index 6ce5a1d12..ce819f12f 100644 --- a/pgsql/pgsql.php +++ b/pgsql/pgsql.php @@ -37,7 +37,7 @@ *

    * @return resource|false PostgreSQL connection resource on success, FALSE on failure. */ -function pg_connect ($connection_string, $connect_type = null) {} +function pg_connect($connection_string, $connect_type = null) {} /** * Open a persistent PostgreSQL connection @@ -68,7 +68,7 @@ function pg_connect ($connection_string, $connect_type = null) {} *

    * @return resource|false PostgreSQL connection resource on success, FALSE on failure. */ -function pg_pconnect ($connection_string, $connect_type = null) {} +function pg_pconnect($connection_string, $connect_type = null) {} /** * Closes a PostgreSQL connection @@ -81,7 +81,7 @@ function pg_pconnect ($connection_string, $connect_type = null) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_close ($connection = null) {} +function pg_close($connection = null) {} /** * Poll the status of an in-progress asynchronous PostgreSQL connection attempt. @@ -93,7 +93,7 @@ function pg_close ($connection = null) {} * PGSQL_POLLING_OK, or PGSQL_POLLING_ACTIVE. * @since 5.6 */ -function pg_connect_poll ($connection = null) {} +function pg_connect_poll($connection = null) {} /** * Get connection status @@ -104,7 +104,7 @@ function pg_connect_poll ($connection = null) {} * @return int PGSQL_CONNECTION_OK or * PGSQL_CONNECTION_BAD. */ -function pg_connection_status ($connection) {} +function pg_connection_status($connection) {} /** * Get connection is busy or not @@ -114,7 +114,7 @@ function pg_connection_status ($connection) {} *

    * @return bool TRUE if the connection is busy, FALSE otherwise. */ -function pg_connection_busy ($connection) {} +function pg_connection_busy($connection) {} /** * Reset connection (reconnect) @@ -124,7 +124,7 @@ function pg_connection_busy ($connection) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_connection_reset ($connection) {} +function pg_connection_reset($connection) {} /** * Get a read only handle to the socket underlying a PostgreSQL connection @@ -135,7 +135,7 @@ function pg_connection_reset ($connection) {} * @return resource|false A socket resource on success or FALSE on failure. * @since 5.6 */ -function pg_socket ($connection) {} +function pg_socket($connection) {} /** * Returns the host name associated with the connection @@ -149,7 +149,7 @@ function pg_socket ($connection) {} * @return string|false A string containing the name of the host the * connection is to, or FALSE on error. */ -function pg_host ($connection = null) {} +function pg_host($connection = null) {} /** * Get the database name @@ -163,7 +163,7 @@ function pg_host ($connection = null) {} * @return string|false A string containing the name of the database the * connection is to, or FALSE on error. */ -function pg_dbname ($connection = null) {} +function pg_dbname($connection = null) {} /** * Return the port number associated with the connection @@ -178,7 +178,7 @@ function pg_dbname ($connection = null) {} * server the connection is to, * or FALSE on error. */ -function pg_port ($connection = null) {} +function pg_port($connection = null) {} /** * Return the TTY name associated with the connection @@ -192,7 +192,7 @@ function pg_port ($connection = null) {} * @return string A string containing the debug TTY of * the connection, or FALSE on error. */ -function pg_tty ($connection = null) {} +function pg_tty($connection = null) {} /** * Get the options associated with the connection @@ -206,7 +206,7 @@ function pg_tty ($connection = null) {} * @return string A string containing the connection * options, or FALSE on error. */ -function pg_options ($connection = null) {} +function pg_options($connection = null) {} /** * Returns an array with client, protocol and server version (when available) @@ -221,7 +221,7 @@ function pg_options ($connection = null) {} * and server keys and values (if available). Returns * FALSE on error or invalid connection. */ -function pg_version ($connection = null) {} +function pg_version($connection = null) {} /** * Ping database connection @@ -234,7 +234,7 @@ function pg_version ($connection = null) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_ping ($connection = null) {} +function pg_ping($connection = null) {} /** * Looks up a current parameter setting of the server. @@ -255,7 +255,7 @@ function pg_ping ($connection = null) {} * @return string|false A string containing the value of the parameter, FALSE on failure or invalid * param_name. */ -function pg_parameter_status ($connection = null, $param_name) {} +function pg_parameter_status($connection = null, $param_name) {} /** * Returns the current in-transaction status of the server. @@ -271,7 +271,7 @@ function pg_parameter_status ($connection = null, $param_name) {} * PGSQL_TRANSACTION_ACTIVE is reported only when a query * has been sent to the server and not yet completed. */ -function pg_transaction_status ($connection) {} +function pg_transaction_status($connection) {} /** * Execute a query @@ -301,7 +301,7 @@ function pg_transaction_status ($connection) {} *

    * @return resource|false A query result resource on success or FALSE on failure. */ -function pg_query ($connection = null, $query) {} +function pg_query($connection = null, $query) {} /** * Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text. @@ -337,7 +337,7 @@ function pg_query ($connection = null, $query) {} *

    * @return resource|false A query result resource on success or FALSE on failure. */ -function pg_query_params ($connection = null, $query, array $params) {} +function pg_query_params($connection = null, $query, array $params) {} /** * Submits a request to create a prepared statement with the @@ -361,7 +361,7 @@ function pg_query_params ($connection = null, $query, array $params) {} *

    * @return resource|false A query result resource on success or FALSE on failure. */ -function pg_prepare ($connection = null, $stmtname, $query) {} +function pg_prepare($connection = null, $stmtname, $query) {} /** * Sends a request to execute a prepared statement with given parameters, and waits for the result. @@ -389,7 +389,7 @@ function pg_prepare ($connection = null, $stmtname, $query) {} *

    * @return resource|false A query result resource on success or FALSE on failure. */ -function pg_execute ($connection = null, $stmtname, array $params) {} +function pg_execute($connection = null, $stmtname, array $params) {} /** * Sends asynchronous query @@ -407,7 +407,7 @@ function pg_execute ($connection = null, $stmtname, array $params) {} *

    * Use pg_get_result to determine the query result. */ -function pg_send_query ($connection, $query) {} +function pg_send_query($connection, $query) {} /** * Submits a command and separate parameters to the server without waiting for the result(s). @@ -429,7 +429,7 @@ function pg_send_query ($connection, $query) {} *

    * Use pg_get_result to determine the query result. */ -function pg_send_query_params ($connection, $query, array $params) {} +function pg_send_query_params($connection, $query, array $params) {} /** * Sends a request to create a prepared statement with the given parameters, without waiting for completion. @@ -453,7 +453,7 @@ function pg_send_query_params ($connection, $query, array $params) {} * @return bool TRUE on success, FALSE on failure. Use pg_get_result * to determine the query result. */ -function pg_send_prepare ($connection, $stmtname, $query) {} +function pg_send_prepare($connection, $stmtname, $query) {} /** * Sends a request to execute a prepared statement with given parameters, without waiting for the result(s). @@ -479,7 +479,7 @@ function pg_send_prepare ($connection, $stmtname, $query) {} * @return bool TRUE on success, FALSE on failure. Use pg_get_result * to determine the query result. */ -function pg_send_execute ($connection, $stmtname, array $params) {} +function pg_send_execute($connection, $stmtname, array $params) {} /** * Cancel an asynchronous query @@ -489,7 +489,7 @@ function pg_send_execute ($connection, $stmtname, array $params) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_cancel_query ($connection) {} +function pg_cancel_query($connection) {} /** * Returns values from a result resource @@ -518,7 +518,7 @@ function pg_cancel_query ($connection) {} * FALSE is returned if row exceeds the number * of rows in the set, or on any other error. */ -function pg_fetch_result ($result, $row = null, $field) {} +function pg_fetch_result($result, $row = null, $field) {} /** * Get a row as an enumerated array @@ -541,7 +541,7 @@ function pg_fetch_result ($result, $row = null, $field) {} * FALSE is returned if row exceeds the number * of rows in the set, there are no more rows, or on any other error. */ -function pg_fetch_row ($result, $row = null, $result_type = null) {} +function pg_fetch_row($result, $row = null, $result_type = null) {} /** * Fetch a row as an associative array @@ -564,7 +564,7 @@ function pg_fetch_row ($result, $row = null, $result_type = null) {} * FALSE is returned if row exceeds the number * of rows in the set, there are no more rows, or on any other error. */ -function pg_fetch_assoc ($result, $row = null) {} +function pg_fetch_assoc($result, $row = null) {} /** * Fetch a row as an array @@ -600,7 +600,7 @@ function pg_fetch_assoc ($result, $row = null) {} * FALSE is returned if row exceeds the number * of rows in the set, there are no more rows, or on any other error. */ -function pg_fetch_array ($result, $row = null, $result_type = PGSQL_BOTH) {} +function pg_fetch_array($result, $row = null, $result_type = PGSQL_BOTH) {} /** * Fetch a row as an object @@ -625,7 +625,7 @@ function pg_fetch_array ($result, $row = null, $result_type = PGSQL_BOTH) {} * FALSE is returned if row exceeds the number * of rows in the set, there are no more rows, or on any other error. */ -function pg_fetch_object ($result, $row = null, $result_type = PGSQL_ASSOC) {} +function pg_fetch_object($result, $row = null, $result_type = PGSQL_ASSOC) {} /** * Fetches all rows from a result as an array @@ -654,7 +654,7 @@ function pg_fetch_object ($result, $row = null, $result_type = PGSQL_ASSOC) {} * FALSE is returned if there are no rows in the result, or on any * other error. */ -function pg_fetch_all ($result, $result_type = PGSQL_ASSOC) {} +function pg_fetch_all($result, $result_type = PGSQL_ASSOC) {} /** * Fetches all rows in a particular result column as an array @@ -674,7 +674,7 @@ function pg_fetch_all ($result, $result_type = PGSQL_ASSOC) {} * of columns in the result, or on any other error. *

    */ -function pg_fetch_all_columns ($result, $column = 0) {} +function pg_fetch_all_columns($result, $column = 0) {} /** * Returns number of affected records (tuples) @@ -687,7 +687,7 @@ function pg_fetch_all_columns ($result, $column = 0) {} * @return int The number of rows affected by the query. If no tuple is * affected, it will return 0. */ -function pg_affected_rows ($result) {} +function pg_affected_rows($result) {} /** * Get asynchronous query result @@ -697,7 +697,7 @@ function pg_affected_rows ($result) {} *

    * @return resource|false The result resource, or FALSE if no more results are available. */ -function pg_get_result ($connection = null) {} +function pg_get_result($connection = null) {} /** * Set internal row offset in result resource @@ -713,7 +713,7 @@ function pg_get_result ($connection = null) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_result_seek ($result, $offset) {} +function pg_result_seek($result, $offset) {} /** * Get status of query result @@ -735,7 +735,7 @@ function pg_result_seek ($result, $offset) {} * PGSQL_FATAL_ERROR if PGSQL_STATUS_LONG is * specified. Otherwise, a string containing the PostgreSQL command tag is returned. */ -function pg_result_status ($result, $type = PGSQL_STATUS_LONG) {} +function pg_result_status($result, $type = PGSQL_STATUS_LONG) {} /** * Free result memory @@ -747,7 +747,7 @@ function pg_result_status ($result, $type = PGSQL_STATUS_LONG) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_free_result ($result) {} +function pg_free_result($result) {} /** * Returns the last row's OID @@ -761,7 +761,7 @@ function pg_free_result ($result) {} * row in the specified connection, or FALSE on error or * no available OID. */ -function pg_last_oid ($result) {} +function pg_last_oid($result) {} /** * Returns the number of rows in a result @@ -773,7 +773,7 @@ function pg_last_oid ($result) {} *

    * @return int The number of rows in the result. On error, -1 is returned. */ -function pg_num_rows ($result) {} +function pg_num_rows($result) {} /** * Returns the number of fields in a result @@ -785,7 +785,7 @@ function pg_num_rows ($result) {} *

    * @return int The number of fields (columns) in the result. On error, -1 is returned. */ -function pg_num_fields ($result) {} +function pg_num_fields($result) {} /** * Returns the name of a field @@ -800,7 +800,7 @@ function pg_num_fields ($result) {} *

    * @return string|false The field name, or FALSE on error. */ -function pg_field_name ($result, $field_number) {} +function pg_field_name($result, $field_number) {} /** * Returns the field number of the named field @@ -815,7 +815,7 @@ function pg_field_name ($result, $field_number) {} *

    * @return int The field number (numbered from 0), or -1 on error. */ -function pg_field_num ($result, $field_name) {} +function pg_field_num($result, $field_name) {} /** * Returns the internal storage size of the named field @@ -831,7 +831,7 @@ function pg_field_num ($result, $field_name) {} * @return int The internal field storage size (in bytes). -1 indicates a variable * length field. FALSE is returned on error. */ -function pg_field_size ($result, $field_number) {} +function pg_field_size($result, $field_number) {} /** * Returns the type name for the corresponding field number @@ -847,7 +847,7 @@ function pg_field_size ($result, $field_number) {} * @return string|false A string containing the base name of the field's type, or FALSE * on error. */ -function pg_field_type ($result, $field_number) {} +function pg_field_type($result, $field_number) {} /** * Returns the type ID (OID) for the corresponding field number @@ -862,7 +862,7 @@ function pg_field_type ($result, $field_number) {} *

    * @return int|false The OID of the field's base type. FALSE is returned on error. */ -function pg_field_type_oid ($result, $field_number) {} +function pg_field_type_oid($result, $field_number) {} /** * Returns the printed length @@ -876,7 +876,7 @@ function pg_field_type_oid ($result, $field_number) {} * @param mixed $field_name_or_number * @return int|false The field printed length, or FALSE on error. */ -function pg_field_prtlen ($result, $row_number, $field_name_or_number) {} +function pg_field_prtlen($result, $row_number, $field_name_or_number) {} /** * Test if a field is SQL NULL @@ -897,7 +897,7 @@ function pg_field_prtlen ($result, $row_number, $field_name_or_number) {} * @return int 1 if the field in the given row is SQL NULL, 0 * if not. FALSE is returned if the row is out of range, or upon any other error. */ -function pg_field_is_null ($result, $row, $field) {} +function pg_field_is_null($result, $row, $field) {} /** * Returns the name or oid of the tables field @@ -917,7 +917,7 @@ function pg_field_is_null ($result, $row, $field) {} *

    * @return mixed On success either the fields table name or oid. Or, FALSE on failure. */ -function pg_field_table ($result, $field_number, $oid_only = false) {} +function pg_field_table($result, $field_number, $oid_only = false) {} /** * Gets SQL NOTIFY message @@ -940,7 +940,7 @@ function pg_field_table ($result, $field_number, $oid_only = false) {} * @return array|false An array containing the NOTIFY message name and backend PID. * Otherwise if no NOTIFY is waiting, then FALSE is returned. */ -function pg_get_notify ($connection, $result_type = null) {} +function pg_get_notify($connection, $result_type = null) {} /** * Gets the backend's process ID @@ -950,7 +950,7 @@ function pg_get_notify ($connection, $result_type = null) {} *

    * @return int The backend database process ID. */ -function pg_get_pid ($connection) {} +function pg_get_pid($connection) {} /** * Get error message associated with result @@ -963,7 +963,7 @@ function pg_get_pid ($connection) {} * @return string a string if there is an error associated with the * result parameter, FALSE otherwise. */ -function pg_result_error ($result) {} +function pg_result_error($result) {} /** * Returns an individual field of an error report. @@ -986,7 +986,7 @@ function pg_result_error ($result) {} * @return string|null|false A string containing the contents of the error field, NULL if the field does not exist or FALSE * on failure. */ -function pg_result_error_field ($result, $fieldcode) {} +function pg_result_error_field($result, $fieldcode) {} /** * Get the last error message string of a connection @@ -1000,7 +1000,7 @@ function pg_result_error_field ($result, $fieldcode) {} * @return string A string containing the last error message on the * given connection, or FALSE on error. */ -function pg_last_error ($connection = null) {} +function pg_last_error($connection = null) {} /** * Returns the last notice message from PostgreSQL server @@ -1019,7 +1019,7 @@ function pg_last_error ($connection = null) {} * a bool with PGSQL_NOTICE_CLEAR, or * FALSE on error. */ -function pg_last_notice ($connection, $option = PGSQL_NOTICE_LAST) {} +function pg_last_notice($connection, $option = PGSQL_NOTICE_LAST) {} /** * Send a NULL-terminated string to PostgreSQL backend @@ -1036,7 +1036,7 @@ function pg_last_notice ($connection, $option = PGSQL_NOTICE_LAST) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_put_line ($connection = null, $data) {} +function pg_put_line($connection = null, $data) {} /** * Sync with PostgreSQL backend @@ -1049,7 +1049,7 @@ function pg_put_line ($connection = null, $data) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_end_copy ($connection = null) {} +function pg_end_copy($connection = null) {} /** * Copy a table to an array @@ -1071,7 +1071,7 @@ function pg_end_copy ($connection = null) {} * @return array|false An array with one element for each line of COPY data. * It returns FALSE on failure. */ -function pg_copy_to ($connection, $table_name, $delimiter = null, $null_as = null) {} +function pg_copy_to($connection, $table_name, $delimiter = null, $null_as = null) {} /** * Insert records into a table from an array @@ -1098,7 +1098,7 @@ function pg_copy_to ($connection, $table_name, $delimiter = null, $null_as = nul *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_copy_from ($connection, $table_name, array $rows, $delimiter = null, $null_as = null) {} +function pg_copy_from($connection, $table_name, array $rows, $delimiter = null, $null_as = null) {} /** * Enable tracing a PostgreSQL connection @@ -1118,7 +1118,7 @@ function pg_copy_from ($connection, $table_name, array $rows, $delimiter = null, *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_trace ($pathname, $mode = "w", $connection = null) {} +function pg_trace($pathname, $mode = "w", $connection = null) {} /** * Disable tracing of a PostgreSQL connection @@ -1131,7 +1131,7 @@ function pg_trace ($pathname, $mode = "w", $connection = null) {} *

    * @return bool Always returns TRUE. */ -function pg_untrace ($connection = null) {} +function pg_untrace($connection = null) {} /** * Create a large object @@ -1151,7 +1151,7 @@ function pg_untrace ($connection = null) {} *

    * @return int|false A large object OID or FALSE on error. */ -function pg_lo_create ($connection = null, $object_id = null) {} +function pg_lo_create($connection = null, $object_id = null) {} /** * Delete a large object @@ -1167,7 +1167,7 @@ function pg_lo_create ($connection = null, $object_id = null) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_lo_unlink ($connection, $oid) {} +function pg_lo_unlink($connection, $oid) {} /** * Open a large object @@ -1187,7 +1187,7 @@ function pg_lo_unlink ($connection, $oid) {} *

    * @return resource|false A large object resource or FALSE on error. */ -function pg_lo_open ($connection, $oid, $mode) {} +function pg_lo_open($connection, $oid, $mode) {} /** * Close a large object @@ -1195,7 +1195,7 @@ function pg_lo_open ($connection, $oid, $mode) {} * @param resource $large_object * @return bool TRUE on success or FALSE on failure. */ -function pg_lo_close ($large_object) {} +function pg_lo_close($large_object) {} /** * Read a large object @@ -1209,7 +1209,7 @@ function pg_lo_close ($large_object) {} * @return string A string containing len bytes from the * large object, or FALSE on error. */ -function pg_lo_read ($large_object, $len = 8192) {} +function pg_lo_read($large_object, $len = 8192) {} /** * Write to a large object @@ -1229,7 +1229,7 @@ function pg_lo_read ($large_object, $len = 8192) {} *

    * @return int|false The number of bytes written to the large object, or FALSE on error. */ -function pg_lo_write ($large_object, $data, $len = null) {} +function pg_lo_write($large_object, $data, $len = null) {} /** * Reads an entire large object and send straight to browser @@ -1239,7 +1239,7 @@ function pg_lo_write ($large_object, $data, $len = null) {} *

    * @return int|false Number of bytes read or FALSE on error. */ -function pg_lo_read_all ($large_object) {} +function pg_lo_read_all($large_object) {} /** * Import a large object from file @@ -1265,7 +1265,7 @@ function pg_lo_read_all ($large_object) {} * FALSE on failure. */ #[PhpStormStubsElementAvailable(to: '7.4')] -function pg_lo_import ($connection = null, $pathname, $object_id = null) {} +function pg_lo_import($connection = null, $pathname, $object_id = null) {} /** * Import a large object from file @@ -1291,7 +1291,7 @@ function pg_lo_import ($connection = null, $pathname, $object_id = null) {} * FALSE on failure. */ #[PhpStormStubsElementAvailable('8.0')] -function pg_lo_import ($connection, $pathname, $object_id = null) {} +function pg_lo_import($connection, $pathname, $object_id = null) {} /** * Export a large object to file @@ -1312,7 +1312,7 @@ function pg_lo_import ($connection, $pathname, $object_id = null) {} * @return bool TRUE on success or FALSE on failure. */ #[PhpStormStubsElementAvailable(to: '7.4')] -function pg_lo_export ($connection = null, $oid, $pathname) {} +function pg_lo_export($connection = null, $oid, $pathname) {} /** * Export a large object to file @@ -1333,7 +1333,7 @@ function pg_lo_export ($connection = null, $oid, $pathname) {} * @return bool TRUE on success or FALSE on failure. */ #[PhpStormStubsElementAvailable('8.0')] -function pg_lo_export ($connection, $oid, $pathname) {} +function pg_lo_export($connection, $oid, $pathname) {} /** * Seeks position within a large object @@ -1351,7 +1351,7 @@ function pg_lo_export ($connection, $oid, $pathname) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pg_lo_seek ($large_object, $offset, $whence = PGSQL_SEEK_CUR) {} +function pg_lo_seek($large_object, $offset, $whence = PGSQL_SEEK_CUR) {} /** * Returns current seek position a of large object @@ -1362,7 +1362,7 @@ function pg_lo_seek ($large_object, $offset, $whence = PGSQL_SEEK_CUR) {} * @return int The current seek offset (in number of bytes) from the beginning of the large * object. If there is an error, the return value is negative. */ -function pg_lo_tell ($large_object) {} +function pg_lo_tell($large_object) {} /** * Escape a string for query @@ -1378,7 +1378,7 @@ function pg_lo_tell ($large_object) {} *

    * @return string A string containing the escaped data. */ -function pg_escape_string ($connection = null, $data) {} +function pg_escape_string($connection = null, $data) {} /** * Escape a string for insertion into a bytea field @@ -1395,7 +1395,7 @@ function pg_escape_string ($connection = null, $data) {} *

    * @return string A string containing the escaped data. */ -function pg_escape_bytea ($connection = null, $data) {} +function pg_escape_bytea($connection = null, $data) {} /** * Escape a identifier for insertion into a text field @@ -1412,7 +1412,7 @@ function pg_escape_bytea ($connection = null, $data) {} * @return string A string containing the escaped data. * @since 5.4.4 */ -function pg_escape_identifier ($connection = null, $data) {} +function pg_escape_identifier($connection = null, $data) {} /** * Escape a literal for insertion into a text field @@ -1429,7 +1429,7 @@ function pg_escape_identifier ($connection = null, $data) {} * @return string A string containing the escaped data. * @since 5.4.4 */ -function pg_escape_literal ($connection = null, $data) {} +function pg_escape_literal($connection = null, $data) {} /** * Unescape binary for bytea type @@ -1440,7 +1440,7 @@ function pg_escape_literal ($connection = null, $data) {} *

    * @return string A string containing the unescaped data. */ -function pg_unescape_bytea ($data) {} +function pg_unescape_bytea($data) {} /** * Determines the verbosity of messages returned by pg_last_error @@ -1461,7 +1461,7 @@ function pg_unescape_bytea ($data) {} * PGSQL_ERRORS_DEFAULT * or PGSQL_ERRORS_VERBOSE. */ -function pg_set_error_verbosity ($connection = null, $verbosity) {} +function pg_set_error_verbosity($connection = null, $verbosity) {} /** * Gets the client encoding @@ -1474,7 +1474,7 @@ function pg_set_error_verbosity ($connection = null, $verbosity) {} *

    * @return string|false The client encoding, or FALSE on error. */ -function pg_client_encoding ($connection = null) {} +function pg_client_encoding($connection = null) {} /** * Set the client encoding @@ -1498,7 +1498,7 @@ function pg_client_encoding ($connection = null) {} *

    * @return int 0 on success or -1 on error. */ -function pg_set_client_encoding ($connection = null, $encoding) {} +function pg_set_client_encoding($connection = null, $encoding) {} /** * Get meta data for table @@ -1511,7 +1511,7 @@ function pg_set_client_encoding ($connection = null, $encoding) {} *

    * @return array An array of the table definition, or FALSE on error. */ -function pg_meta_data ($connection, $table_name) {} +function pg_meta_data($connection, $table_name) {} /** * Convert associative array values into suitable for SQL statement @@ -1532,7 +1532,7 @@ function pg_meta_data ($connection, $table_name) {} *

    * @return array An array of converted values, or FALSE on error. */ -function pg_convert ($connection, $table_name, array $assoc_array, $options = 0) {} +function pg_convert($connection, $table_name, array $assoc_array, $options = 0) {} /** * Insert array into table @@ -1559,7 +1559,7 @@ function pg_convert ($connection, $table_name, array $assoc_array, $options = 0) * @return mixed TRUE on success or FALSE on failure. Returns string if PGSQL_DML_STRING is passed * via options. */ -function pg_insert ($connection, $table_name, array $assoc_array, $options = PGSQL_DML_EXEC) {} +function pg_insert($connection, $table_name, array $assoc_array, $options = PGSQL_DML_EXEC) {} /** * Update table @@ -1588,7 +1588,7 @@ function pg_insert ($connection, $table_name, array $assoc_array, $options = PGS * @return mixed TRUE on success or FALSE on failure. Returns string if PGSQL_DML_STRING is passed * via options. */ -function pg_update ($connection, $table_name, array $data, array $condition, $options = PGSQL_DML_EXEC) {} +function pg_update($connection, $table_name, array $data, array $condition, $options = PGSQL_DML_EXEC) {} /** * Deletes records @@ -1613,7 +1613,7 @@ function pg_update ($connection, $table_name, array $data, array $condition, $op * @return mixed TRUE on success or FALSE on failure. Returns string if PGSQL_DML_STRING is passed * via options. */ -function pg_delete ($connection, $table_name, array $assoc_array, $options = PGSQL_DML_EXEC) {} +function pg_delete($connection, $table_name, array $assoc_array, $options = PGSQL_DML_EXEC) {} /** * Select records @@ -1651,71 +1651,71 @@ function pg_delete ($connection, $table_name, array $assoc_array, $options = PGS * @return mixed TRUE on success or FALSE on failure. Returns string if PGSQL_DML_STRING is passed * via options. */ -function pg_select ($connection, $table_name, array $assoc_array, $options = PGSQL_DML_EXEC, $result_type = PGSQL_ASSOC) {} +function pg_select($connection, $table_name, array $assoc_array, $options = PGSQL_DML_EXEC, $result_type = PGSQL_ASSOC) {} /** * @param $connection [optional] * @param $query [optional] * @return mixed */ -function pg_exec ($connection, $query) {} +function pg_exec($connection, $query) {} /** * @param $result * @return string */ -function pg_getlastoid ($result) {} +function pg_getlastoid($result) {} /** * @param $result */ -function pg_cmdtuples ($result) {} // TODO remove +function pg_cmdtuples($result) {} // TODO remove /** * @param $connection [optional] * @return string */ -function pg_errormessage ($connection) {} +function pg_errormessage($connection) {} /** * @param $result * @return int */ -function pg_numrows ($result) {} +function pg_numrows($result) {} /** * @param $result * @return int */ -function pg_numfields ($result) {} +function pg_numfields($result) {} /** * @param $result * @param $field_number * @return string */ -function pg_fieldname ($result, $field_number) {} +function pg_fieldname($result, $field_number) {} /** * @param $result * @param $field_number * @return int */ -function pg_fieldsize ($result, $field_number) {} +function pg_fieldsize($result, $field_number) {} /** * @param $result * @param $field_number * @return string */ -function pg_fieldtype ($result, $field_number) {} +function pg_fieldtype($result, $field_number) {} /** * @param $result * @param $field_name * @return int */ -function pg_fieldnum ($result, $field_name) {} +function pg_fieldnum($result, $field_name) {} /** * @param $result @@ -1723,7 +1723,7 @@ function pg_fieldnum ($result, $field_name) {} * @param $field_name_or_number [optional] * @return int */ -function pg_fieldprtlen ($result, $row, $field_name_or_number) {} +function pg_fieldprtlen($result, $row, $field_name_or_number) {} /** * @param $result @@ -1731,37 +1731,37 @@ function pg_fieldprtlen ($result, $row, $field_name_or_number) {} * @param $field_name_or_number [optional] * @return int */ -function pg_fieldisnull ($result, $row, $field_name_or_number) {} +function pg_fieldisnull($result, $row, $field_name_or_number) {} /** * @param $result * @return bool */ -function pg_freeresult ($result) {} +function pg_freeresult($result) {} /** * @param $connection */ -function pg_result ($connection) {} // TODO remove +function pg_result($connection) {} // TODO remove /** * @param $large_object */ -function pg_loreadall ($large_object) {} // TODO remove +function pg_loreadall($large_object) {} // TODO remove /** * @param $connection [optional] * @param $large_object_id [optional] * @return int */ -function pg_locreate ($connection, $large_object_id) {} +function pg_locreate($connection, $large_object_id) {} /** * @param $connection [optional] * @param $large_object_oid [optional] * @return bool */ -function pg_lounlink ($connection, $large_object_oid) {} +function pg_lounlink($connection, $large_object_oid) {} /** * @param $connection [optional] @@ -1769,20 +1769,20 @@ function pg_lounlink ($connection, $large_object_oid) {} * @param $mode [optional] * @return resource */ -function pg_loopen ($connection, $large_object_oid, $mode) {} +function pg_loopen($connection, $large_object_oid, $mode) {} /** * @param $large_object * @return bool */ -function pg_loclose ($large_object) {} +function pg_loclose($large_object) {} /** * @param $large_object * @param $len [optional] * @return string */ -function pg_loread ($large_object, $len) {} +function pg_loread($large_object, $len) {} /** * @param $large_object @@ -1790,7 +1790,7 @@ function pg_loread ($large_object, $len) {} * @param $len [optional] * @return int */ -function pg_lowrite ($large_object, $buf, $len) {} +function pg_lowrite($large_object, $buf, $len) {} /** * @param $connection [optional] @@ -1798,7 +1798,7 @@ function pg_lowrite ($large_object, $buf, $len) {} * @param $large_object_oid [optional] * @return int */ -function pg_loimport ($connection, $filename, $large_object_oid) {} +function pg_loimport($connection, $filename, $large_object_oid) {} /** * @param $connection [optional] @@ -1806,72 +1806,72 @@ function pg_loimport ($connection, $filename, $large_object_oid) {} * @param $filename [optional] * @return bool */ -function pg_loexport ($connection, $objoid, $filename) {} +function pg_loexport($connection, $objoid, $filename) {} /** * @param $connection [optional] * @return string */ -function pg_clientencoding ($connection) {} +function pg_clientencoding($connection) {} /** * @param $connection [optional] * @param $encoding [optional] * @return int */ -function pg_setclientencoding ($connection, $encoding) {} +function pg_setclientencoding($connection, $encoding) {} -define ('PGSQL_LIBPQ_VERSION', "9.1.10"); -define ('PGSQL_LIBPQ_VERSION_STR', "PostgreSQL 9.1.10 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu/Linaro 4.8.1-10ubuntu7) 4.8.1, 64-bit"); +define('PGSQL_LIBPQ_VERSION', "9.1.10"); +define('PGSQL_LIBPQ_VERSION_STR', "PostgreSQL 9.1.10 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu/Linaro 4.8.1-10ubuntu7) 4.8.1, 64-bit"); /** * Passed to pg_connect to force the creation of a new connection, * rather than re-using an existing identical connection. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_CONNECT_FORCE_NEW', 2); +define('PGSQL_CONNECT_FORCE_NEW', 2); /** * Passed to pg_fetch_array. Return an associative array of field * names and values. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_ASSOC', 1); +define('PGSQL_ASSOC', 1); /** * Passed to pg_fetch_array. Return a numerically indexed array of field * numbers and values. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_NUM', 2); +define('PGSQL_NUM', 2); /** * Passed to pg_fetch_array. Return an array of field values * that is both numerically indexed (by field number) and associated (by field name). * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_BOTH', 3); +define('PGSQL_BOTH', 3); /** * Returned by pg_connection_status indicating that the database * connection is in an invalid state. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_CONNECTION_BAD', 1); +define('PGSQL_CONNECTION_BAD', 1); /** * Returned by pg_connection_status indicating that the database * connection is in a valid state. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_CONNECTION_OK', 0); +define('PGSQL_CONNECTION_OK', 0); /** * Returned by pg_transaction_status. Connection is * currently idle, not in a transaction. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_TRANSACTION_IDLE', 0); +define('PGSQL_TRANSACTION_IDLE', 0); /** * Returned by pg_transaction_status. A command @@ -1879,28 +1879,28 @@ function pg_setclientencoding ($connection, $encoding) {} * and not yet completed. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_TRANSACTION_ACTIVE', 1); +define('PGSQL_TRANSACTION_ACTIVE', 1); /** * Returned by pg_transaction_status. The connection * is idle, in a transaction block. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_TRANSACTION_INTRANS', 2); +define('PGSQL_TRANSACTION_INTRANS', 2); /** * Returned by pg_transaction_status. The connection * is idle, in a failed transaction block. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_TRANSACTION_INERROR', 3); +define('PGSQL_TRANSACTION_INERROR', 3); /** * Returned by pg_transaction_status. The connection * is bad. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_TRANSACTION_UNKNOWN', 4); +define('PGSQL_TRANSACTION_UNKNOWN', 4); /** * Passed to pg_set_error_verbosity. @@ -1908,7 +1908,7 @@ function pg_setclientencoding ($connection, $encoding) {} * and position only; this will normally fit on a single line. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_ERRORS_TERSE', 0); +define('PGSQL_ERRORS_TERSE', 0); /** * Passed to pg_set_error_verbosity. @@ -1917,105 +1917,105 @@ function pg_setclientencoding ($connection, $encoding) {} * multiple lines). * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_ERRORS_DEFAULT', 1); +define('PGSQL_ERRORS_DEFAULT', 1); /** * Passed to pg_set_error_verbosity. * The verbose mode includes all available fields. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_ERRORS_VERBOSE', 2); +define('PGSQL_ERRORS_VERBOSE', 2); /** * Passed to pg_lo_seek. Seek operation is to begin * from the start of the object. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_SEEK_SET', 0); +define('PGSQL_SEEK_SET', 0); /** * Passed to pg_lo_seek. Seek operation is to begin * from the current position. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_SEEK_CUR', 1); +define('PGSQL_SEEK_CUR', 1); /** * Passed to pg_lo_seek. Seek operation is to begin * from the end of the object. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_SEEK_END', 2); +define('PGSQL_SEEK_END', 2); /** * Passed to pg_result_status. Indicates that * numerical result code is desired. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_STATUS_LONG', 1); +define('PGSQL_STATUS_LONG', 1); /** * Passed to pg_result_status. Indicates that * textual result command tag is desired. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_STATUS_STRING', 2); +define('PGSQL_STATUS_STRING', 2); /** * Returned by pg_result_status. The string sent to the server * was empty. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_EMPTY_QUERY', 0); +define('PGSQL_EMPTY_QUERY', 0); /** * Returned by pg_result_status. Successful completion of a * command returning no data. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_COMMAND_OK', 1); +define('PGSQL_COMMAND_OK', 1); /** * Returned by pg_result_status. Successful completion of a command * returning data (such as a SELECT or SHOW). * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_TUPLES_OK', 2); +define('PGSQL_TUPLES_OK', 2); /** * Returned by pg_result_status. Copy Out (from server) data * transfer started. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_COPY_OUT', 3); +define('PGSQL_COPY_OUT', 3); /** * Returned by pg_result_status. Copy In (to server) data * transfer started. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_COPY_IN', 4); +define('PGSQL_COPY_IN', 4); /** * Returned by pg_result_status. The server's response * was not understood. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_BAD_RESPONSE', 5); +define('PGSQL_BAD_RESPONSE', 5); /** * Returned by pg_result_status. A nonfatal error * (a notice or warning) occurred. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_NONFATAL_ERROR', 6); +define('PGSQL_NONFATAL_ERROR', 6); /** * Returned by pg_result_status. A fatal error * occurred. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_FATAL_ERROR', 7); +define('PGSQL_FATAL_ERROR', 7); /** * Passed to pg_result_error_field. @@ -2026,7 +2026,7 @@ function pg_setclientencoding ($connection, $encoding) {} * translation of one of these. Always present. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_SEVERITY', 83); +define('PGSQL_DIAG_SEVERITY', 83); /** * Passed to pg_result_error_field. @@ -2036,21 +2036,21 @@ function pg_setclientencoding ($connection, $encoding) {} * This field is not localizable, and is always present. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_SQLSTATE', 67); +define('PGSQL_DIAG_SQLSTATE', 67); /** * Passed to pg_result_error_field. * The primary human-readable error message (typically one line). Always present. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_MESSAGE_PRIMARY', 77); +define('PGSQL_DIAG_MESSAGE_PRIMARY', 77); /** * Passed to pg_result_error_field. * Detail: an optional secondary error message carrying more detail about the problem. May run to multiple lines. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_MESSAGE_DETAIL', 68); +define('PGSQL_DIAG_MESSAGE_DETAIL', 68); /** * Passed to pg_result_error_field. @@ -2058,7 +2058,7 @@ function pg_setclientencoding ($connection, $encoding) {} * offers advice (potentially inappropriate) rather than hard facts. May run to multiple lines. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_MESSAGE_HINT', 72); +define('PGSQL_DIAG_MESSAGE_HINT', 72); /** * Passed to pg_result_error_field. @@ -2066,7 +2066,7 @@ function pg_setclientencoding ($connection, $encoding) {} * statement string. The first character has index 1, and positions are measured in characters not bytes. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_STATEMENT_POSITION', 80); +define('PGSQL_DIAG_STATEMENT_POSITION', 80); /** * Passed to pg_result_error_field. @@ -2077,7 +2077,7 @@ function pg_setclientencoding ($connection, $encoding) {} * field appears. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_INTERNAL_POSITION', 112); +define('PGSQL_DIAG_INTERNAL_POSITION', 112); /** * Passed to pg_result_error_field. @@ -2085,7 +2085,7 @@ function pg_setclientencoding ($connection, $encoding) {} * SQL query issued by a PL/pgSQL function. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_INTERNAL_QUERY', 113); +define('PGSQL_DIAG_INTERNAL_QUERY', 113); /** * Passed to pg_result_error_field. @@ -2095,7 +2095,7 @@ function pg_setclientencoding ($connection, $encoding) {} * per line, most recent first. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_CONTEXT', 87); +define('PGSQL_DIAG_CONTEXT', 87); /** * Passed to pg_result_error_field. @@ -2103,7 +2103,7 @@ function pg_setclientencoding ($connection, $encoding) {} * was reported. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_SOURCE_FILE', 70); +define('PGSQL_DIAG_SOURCE_FILE', 70); /** * Passed to pg_result_error_field. @@ -2111,45 +2111,45 @@ function pg_setclientencoding ($connection, $encoding) {} * error was reported. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_SOURCE_LINE', 76); +define('PGSQL_DIAG_SOURCE_LINE', 76); /** * Passed to pg_result_error_field. * The name of the PostgreSQL source-code function reporting the error. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_DIAG_SOURCE_FUNCTION', 82); +define('PGSQL_DIAG_SOURCE_FUNCTION', 82); /** * Passed to pg_convert. * Ignore default values in the table during conversion. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_CONV_IGNORE_DEFAULT', 2); +define('PGSQL_CONV_IGNORE_DEFAULT', 2); /** * Passed to pg_convert. * Use SQL NULL in place of an empty string. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_CONV_FORCE_NULL', 4); +define('PGSQL_CONV_FORCE_NULL', 4); /** * Passed to pg_convert. * Ignore conversion of NULL into SQL NOT NULL columns. * @link https://php.net/manual/en/pgsql.constants.php */ -define ('PGSQL_CONV_IGNORE_NOT_NULL', 8); -define ('PGSQL_DML_NO_CONV', 256); -define ('PGSQL_DML_EXEC', 512); -define ('PGSQL_DML_ASYNC', 1024); -define ('PGSQL_DML_STRING', 2048); +define('PGSQL_CONV_IGNORE_NOT_NULL', 8); +define('PGSQL_DML_NO_CONV', 256); +define('PGSQL_DML_EXEC', 512); +define('PGSQL_DML_ASYNC', 1024); +define('PGSQL_DML_STRING', 2048); /** * @link https://php.net/manual/en/function.pg-last-notice.php * @since 7.1 */ -define ('PGSQL_NOTICE_LAST', 1); +define('PGSQL_NOTICE_LAST', 1); /** * @link https://php.net/manual/en/function.pg-last-notice.php diff --git a/posix/posix.php b/posix/posix.php index 14eabdcec..3b14217fb 100644 --- a/posix/posix.php +++ b/posix/posix.php @@ -14,8 +14,7 @@ *

    * @return bool TRUE on success or FALSE on failure. */ -function posix_kill (int $process_id, int $signal): bool -{} +function posix_kill(int $process_id, int $signal): bool {} /** * Return the current process identifier @@ -23,8 +22,7 @@ function posix_kill (int $process_id, int $signal): bool * @return int the identifier, as an integer. */ #[Pure] -function posix_getpid (): int -{} +function posix_getpid(): int {} /** * Return the parent process identifier @@ -32,8 +30,7 @@ function posix_getpid (): int * @return int the identifier, as an integer. */ #[Pure] -function posix_getppid (): int -{} +function posix_getppid(): int {} /** * Return the real user ID of the current process @@ -41,8 +38,7 @@ function posix_getppid (): int * @return int the user id, as an integer */ #[Pure] -function posix_getuid (): int -{} +function posix_getuid(): int {} /** * Set the UID of the current process @@ -52,8 +48,7 @@ function posix_getuid (): int *

    * @return bool TRUE on success or FALSE on failure. */ -function posix_setuid (int $user_id): bool -{} +function posix_setuid(int $user_id): bool {} /** * Return the effective user ID of the current process @@ -61,8 +56,7 @@ function posix_setuid (int $user_id): bool * @return int the user id, as an integer */ #[Pure] -function posix_geteuid (): int -{} +function posix_geteuid(): int {} /** * Set the effective UID of the current process @@ -72,8 +66,7 @@ function posix_geteuid (): int *

    * @return bool TRUE on success or FALSE on failure. */ -function posix_seteuid (int $user_id): bool -{} +function posix_seteuid(int $user_id): bool {} /** * Set system resource limits @@ -88,16 +81,14 @@ function posix_seteuid (int $user_id): bool * @return bool Returns TRUE on success or FALSE on failure. * @since 7.0 */ -function posix_setrlimit (int $resource, int $soft_limit, int $hard_limit): bool -{} +function posix_setrlimit(int $resource, int $soft_limit, int $hard_limit): bool {} /** * Return the real group ID of the current process * @link https://php.net/manual/en/function.posix-getgid.php * @return int the real group id, as an integer. */ #[Pure] -function posix_getgid (): int -{} +function posix_getgid(): int {} /** * Set the GID of the current process @@ -107,8 +98,7 @@ function posix_getgid (): int *

    * @return bool TRUE on success or FALSE on failure. */ -function posix_setgid (int $group_id): bool -{} +function posix_setgid(int $group_id): bool {} /** * Return the effective group ID of the current process @@ -116,8 +106,7 @@ function posix_setgid (int $group_id): bool * @return int an integer of the effective group ID. */ #[Pure] -function posix_getegid (): int -{} +function posix_getegid(): int {} /** * Set the effective GID of the current process @@ -127,8 +116,7 @@ function posix_getegid (): int *

    * @return bool TRUE on success or FALSE on failure. */ -function posix_setegid (int $group_id): bool -{} +function posix_setegid(int $group_id): bool {} /** * Return the group set of the current process @@ -137,8 +125,7 @@ function posix_setegid (int $group_id): bool * set of the current process. */ #[Pure] -function posix_getgroups (): array|false -{} +function posix_getgroups(): array|false {} /** * Return login name @@ -146,8 +133,7 @@ function posix_getgroups (): array|false * @return string|false the login name of the user, as a string. */ #[Pure] -function posix_getlogin (): string|false -{} +function posix_getlogin(): string|false {} /** * Return the current process group identifier @@ -155,16 +141,14 @@ function posix_getlogin (): string|false * @return int the identifier, as an integer. */ #[Pure] -function posix_getpgrp (): int -{} +function posix_getpgrp(): int {} /** * Make the current process a session leader * @link https://php.net/manual/en/function.posix-setsid.php * @return int the session id, or -1 on errors. */ -function posix_setsid (): int -{} +function posix_setsid(): int {} /** * Set process group id for job control @@ -177,8 +161,7 @@ function posix_setsid (): int *

    * @return bool TRUE on success or FALSE on failure. */ -function posix_setpgid (int $process_id, int $process_group_id): bool -{} +function posix_setpgid(int $process_id, int $process_group_id): bool {} /** * Get process group id for job control @@ -189,8 +172,7 @@ function posix_setpgid (int $process_id, int $process_group_id): bool * @return int|false the identifier, as an integer. */ #[Pure] -function posix_getpgid (int $process_id): int|false -{} +function posix_getpgid(int $process_id): int|false {} /** * Get the current sid of the process @@ -204,8 +186,7 @@ function posix_getpgid (int $process_id): int|false * @return int|false the identifier, as an integer. */ #[Pure] -function posix_getsid (int $process_id): int|false -{} +function posix_getsid(int $process_id): int|false {} /** * Get system name @@ -226,8 +207,7 @@ function posix_getsid (int $process_id): int|false * libc. */ #[Pure] -function posix_uname (): array|false -{} +function posix_uname(): array|false {} /** * Get process times @@ -242,8 +222,7 @@ function posix_uname (): array|false * cstime - system time used by current process and children. */ #[Pure] -function posix_times (): array|false -{} +function posix_times(): array|false {} /** * Get path name of controlling terminal @@ -253,8 +232,7 @@ function posix_times (): array|false * is set, which can be checked with posix_get_last_error. */ #[Pure] -function posix_ctermid (): string|false -{} +function posix_ctermid(): string|false {} /** * Determine terminal device name @@ -266,8 +244,7 @@ function posix_ctermid (): string|false * fd. On failure, returns FALSE */ #[Pure] -function posix_ttyname ($file_descriptor): string|false -{} +function posix_ttyname($file_descriptor): string|false {} /** * Determine if a file descriptor is an interactive terminal @@ -282,8 +259,7 @@ function posix_ttyname ($file_descriptor): string|false * to a terminal and FALSE otherwise. */ #[Pure] -function posix_isatty ($file_descriptor): bool -{} +function posix_isatty($file_descriptor): bool {} /** * Pathname of current directory @@ -293,8 +269,7 @@ function posix_isatty ($file_descriptor): bool * posix_get_last_error. */ #[Pure] -function posix_getcwd (): string|false -{} +function posix_getcwd(): string|false {} /** * Create a fifo special file (a named pipe) @@ -311,8 +286,7 @@ function posix_getcwd (): string|false *

    * @return bool TRUE on success or FALSE on failure. */ -function posix_mkfifo (string $filename, int $permissions): bool -{} +function posix_mkfifo(string $filename, int $permissions): bool {} /** * Create a special or ordinary file (POSIX.1) @@ -336,8 +310,7 @@ function posix_mkfifo (string $filename, int $permissions): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function posix_mknod (string $filename, int $flags, int $major = 0, int $minor = 0): bool -{} +function posix_mknod(string $filename, int $flags, int $major = 0, int $minor = 0): bool {} /** * Determine accessibility of a file @@ -359,8 +332,7 @@ function posix_mknod (string $filename, int $flags, int $major = 0, int $minor = *

    * @return bool TRUE on success or FALSE on failure. */ -function posix_access (string $filename, int $flags = POSIX_F_OK): bool -{} +function posix_access(string $filename, int $flags = POSIX_F_OK): bool {} /** * Return info about a group by name @@ -407,8 +379,7 @@ function posix_access (string $filename, int $flags = POSIX_F_OK): bool * */ #[Pure] -function posix_getgrnam (string $name): array|false -{} +function posix_getgrnam(string $name): array|false {} /** * Return info about a group by group id @@ -457,8 +428,7 @@ function posix_getgrnam (string $name): array|false * */ #[Pure] -function posix_getgrgid (int $group_id): array|false -{} +function posix_getgrgid(int $group_id): array|false {} /** * Return info about a user by username @@ -535,8 +505,7 @@ function posix_getgrgid (int $group_id): array|false * */ #[Pure] -function posix_getpwnam (string $username): array|false -{} +function posix_getpwnam(string $username): array|false {} /** * Return info about a user by user id @@ -612,8 +581,7 @@ function posix_getpwnam (string $username): array|false * */ #[Pure] -function posix_getpwuid (int $user_id): array|false -{} +function posix_getpwuid(int $user_id): array|false {} /** * Return info about system resource limits @@ -698,8 +666,7 @@ function posix_getpwuid (int $user_id): array|false * */ #[Pure] -function posix_getrlimit (): array|false -{} +function posix_getrlimit(): array|false {} /** * Retrieve the error number set by the last posix function that failed @@ -708,15 +675,14 @@ function posix_getrlimit (): array|false * failed. If no errors exist, 0 is returned. */ #[Pure] -function posix_get_last_error (): int -{} +function posix_get_last_error(): int {} /** * Alias of posix_get_last_error * @link https://php.net/manual/en/function.posix-errno.php */ #[Pure] -function posix_errno (): int {} +function posix_errno(): int {} /** * Retrieve the system error message associated with the given errno @@ -729,8 +695,7 @@ function posix_errno (): int {} * @return string the error message, as a string. */ #[Pure] -function posix_strerror (int $error_code): string -{} +function posix_strerror(int $error_code): string {} /** * Calculate the group access list @@ -744,74 +709,72 @@ function posix_strerror (int $error_code): string * @return bool TRUE on success or FALSE on failure. */ #[Pure] -function posix_initgroups (string $username, int $group_id): bool -{} - +function posix_initgroups(string $username, int $group_id): bool {} /** * Check whether the file exists. * @link https://php.net/manual/en/posix.constants.php */ -define ('POSIX_F_OK', 0); +define('POSIX_F_OK', 0); /** * Check whether the file exists and has execute permissions. * @link https://php.net/manual/en/posix.constants.php */ -define ('POSIX_X_OK', 1); +define('POSIX_X_OK', 1); /** * Check whether the file exists and has write permissions. * @link https://php.net/manual/en/posix.constants.php */ -define ('POSIX_W_OK', 2); +define('POSIX_W_OK', 2); /** * Check whether the file exists and has read permissions. * @link https://php.net/manual/en/posix.constants.php */ -define ('POSIX_R_OK', 4); +define('POSIX_R_OK', 4); /** * Normal file * @link https://php.net/manual/en/posix.constants.php */ -define ('POSIX_S_IFREG', 32768); +define('POSIX_S_IFREG', 32768); /** * Character special file * @link https://php.net/manual/en/posix.constants.php */ -define ('POSIX_S_IFCHR', 8192); +define('POSIX_S_IFCHR', 8192); /** * Block special file * @link https://php.net/manual/en/posix.constants.php */ -define ('POSIX_S_IFBLK', 24576); +define('POSIX_S_IFBLK', 24576); /** * FIFO (named pipe) special file * @link https://php.net/manual/en/posix.constants.php */ -define ('POSIX_S_IFIFO', 4096); +define('POSIX_S_IFIFO', 4096); /** * Socket * @link https://php.net/manual/en/posix.constants.php */ -define ('POSIX_S_IFSOCK', 49152); +define('POSIX_S_IFSOCK', 49152); /** * The maximum size of the process's address space in bytes. See also PHP's memory_limit configuration directive. * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_AS', 5); +define('POSIX_RLIMIT_AS', 5); /** * The maximum size of a core file. If the limit is set to 0, no core file will be generated. * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_CORE', 4); +define('POSIX_RLIMIT_CORE', 4); /** * The maximum amount of CPU time that the process can use, in seconds. @@ -820,7 +783,7 @@ function posix_initgroups (string $username, int $group_id): bool * at which point an uncatchable SIGKILL signal is sent. See also set_time_limit(). * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_CPU', 0); +define('POSIX_RLIMIT_CPU', 0); /** * The maximum size of the process's data segment, in bytes. @@ -828,13 +791,13 @@ function posix_initgroups (string $username, int $group_id): bool * the execution of PHP unless an extension is in use that calls brk() or sbrk(). * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_DATA', 2); +define('POSIX_RLIMIT_DATA', 2); /** * The maximum size of files that the process can create, in bytes. * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_FSIZE', 1); +define('POSIX_RLIMIT_FSIZE', 1); /** * The maximum number of locks that the process can create. @@ -880,40 +843,37 @@ function posix_initgroups (string $username, int $group_id): bool * The maximum number of bytes that can be locked into memory. * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_MEMLOCK', 6); +define('POSIX_RLIMIT_MEMLOCK', 6); /** * A value one greater than the maximum file descriptor number that can be opened by this process. * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_NOFILE', 8); +define('POSIX_RLIMIT_NOFILE', 8); /** * The maximum number of processes (and/or threads, on some operating systems) * that can be created for the real user ID of the process. * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_NPROC', 7); +define('POSIX_RLIMIT_NPROC', 7); /** * The maximum size of the process's resident set, in pages. * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_RSS', 5); +define('POSIX_RLIMIT_RSS', 5); /** * The maximum size of the process stack, in bytes. * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_STACK', 3); +define('POSIX_RLIMIT_STACK', 3); /** * Used to indicate an infinite value for a resource limit. * @link https://php.net/manual/en/posix.constants.setrlimit.php */ -define ('POSIX_RLIMIT_INFINITY', 9223372036854775807); - - +define('POSIX_RLIMIT_INFINITY', 9223372036854775807); // End of posix v. -?> diff --git a/pq/pq.php b/pq/pq.php index 1881d1e50..1b5a58083 100644 --- a/pq/pq.php +++ b/pq/pq.php @@ -9,990 +9,1000 @@ * * Fetching simple [multi-dimensional array maps](pq/Result/map). * * Working [Gateway implementation](https://bitbucket.org/m6w6/pq-gateway). */ + namespace pq; + use pq; + /** * Fast import/export using COPY. */ -class COPY { - /** - * Start a COPY operation from STDIN to the PostgreSQL server. - */ - const FROM_STDIN = 0; - /** - * Start a COPY operation from the server to STDOUT. - */ - const TO_STDOUT = 1; - /** - * The connection to the PostgreSQL server. - * - * @public - * @readonly - * @var \pq\Connection - */ - public $connection; - /** - * The expression of the COPY statement used to start the operation. - * - * @public - * @readonly - * @var string - */ - public $expression; - /** - * The drection of the COPY operation (pq\COPY::FROM_STDIN or pq\COPY::TO_STDOUT). - * - * @public - * @readonly - * @var int - */ - public $direction; - /** - * Any additional options used to start the COPY operation. - * - * @public - * @readonly - * @var string - */ - public $options; - /** - * Start a COPY operation. - * - * @param \pq\Connection $conn The connection to use for the COPY operation. - * @param string $expression The expression generating the data to copy. - * @param int $direction Data direction (pq\COPY::FROM_STDIN or pq\COPY::TO_STDOUT). - * @param string $options Any COPY options (see the [official PostgreSQL documentation](http://www.postgresql.org/docs/current/static/sql-copy.html) for details. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function __construct(\pq\Connection $conn, string $expression, int $direction, string $options = null) {} - /** - * End the COPY operation to the server during pq\Result::COPY_IN state. - * - * @param string $error If set, the COPY operation will abort with provided message. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function end(string $error = null) {} - /** - * Receive data from the server during pq\Result::COPY_OUT state. - * - * @param string &$data Data read from the server. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return bool success. - */ - function get(string &$data) {} - /** - * Send data to the server during pq\Result::COPY_IN state. - * - * @param string $data Data to send to the server. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function put(string $data) {} +class COPY +{ + /** + * Start a COPY operation from STDIN to the PostgreSQL server. + */ + public const FROM_STDIN = 0; + /** + * Start a COPY operation from the server to STDOUT. + */ + public const TO_STDOUT = 1; + /** + * The connection to the PostgreSQL server. + * + * @public + * @readonly + * @var \pq\Connection + */ + public $connection; + /** + * The expression of the COPY statement used to start the operation. + * + * @public + * @readonly + * @var string + */ + public $expression; + /** + * The drection of the COPY operation (pq\COPY::FROM_STDIN or pq\COPY::TO_STDOUT). + * + * @public + * @readonly + * @var int + */ + public $direction; + /** + * Any additional options used to start the COPY operation. + * + * @public + * @readonly + * @var string + */ + public $options; + /** + * Start a COPY operation. + * + * @param \pq\Connection $conn The connection to use for the COPY operation. + * @param string $expression The expression generating the data to copy. + * @param int $direction Data direction (pq\COPY::FROM_STDIN or pq\COPY::TO_STDOUT). + * @param string $options Any COPY options (see the [official PostgreSQL documentation](http://www.postgresql.org/docs/current/static/sql-copy.html) for details. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function __construct(pq\Connection $conn, string $expression, int $direction, string $options = null) {} + /** + * End the COPY operation to the server during pq\Result::COPY_IN state. + * + * @param string $error If set, the COPY operation will abort with provided message. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function end(string $error = null) {} + /** + * Receive data from the server during pq\Result::COPY_OUT state. + * + * @param string &$data Data read from the server. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return bool success. + */ + public function get(string &$data) {} + /** + * Send data to the server during pq\Result::COPY_IN state. + * + * @param string $data Data to send to the server. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function put(string $data) {} } /** * Request cancellation of an asynchronous query. */ -class Cancel { - /** - * The connection to cancel the query on. - * - * @public - * @readonly - * @var \pq\Connection - */ - public $connection; - /** - * Create a new cancellation request for an [asynchronous](pq/Connection/: Asynchronous Usage) query. - * - * @param \pq\Connection $conn The connection to request cancellation on. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function __construct(\pq\Connection $conn) {} - /** - * Perform the cancellation request. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function cancel() {} +class Cancel +{ + /** + * The connection to cancel the query on. + * + * @public + * @readonly + * @var \pq\Connection + */ + public $connection; + /** + * Create a new cancellation request for an [asynchronous](pq/Connection/: Asynchronous Usage) query. + * + * @param \pq\Connection $conn The connection to request cancellation on. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function __construct(pq\Connection $conn) {} + /** + * Perform the cancellation request. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function cancel() {} } /** * The connection to the PostgreSQL server. * * See the [General Usage](pq/Connection/: General Usage) page for an introduction on how to use this class. */ -class Connection { - /** - * (Re-)open a persistent connection. - */ - const PERSISTENT = 2; - /** - * If the connection is not already open, perform the connection attempt [asynchronously](pq/Connection/: Asynchronous Usage). - */ - const ASYNC = 1; - /** - * Everything well; if a connection has been newly and synchronously created, the connection will always have this status right after creation. - */ - const OK = 0; - /** - * Broken connection; consider pq\Connection::reset() or recreation. - */ - const BAD = 1; - /** - * Waiting for connection to be made. - */ - const STARTED = 2; - /** - * Connection okay; waiting to send. - */ - const MADE = 3; - /** - * Waiting for a response from the server. - */ - const AWAITING_RESPONSE = 4; - /** - * Received authentication; waiting for backend start-up to finish. - */ - const AUTH_OK = 5; - /** - * Negotiating SSL encryption. - */ - const SSL_STARTUP = 7; - /** - * Negotiating environment-driven parameter settings. - */ - const SETENV = 6; - /** - * No active transaction. - */ - const TRANS_IDLE = 0; - /** - * A transaction command is in progress. - */ - const TRANS_ACTIVE = 1; - /** - * Idling in a valid transaction block. - */ - const TRANS_INTRANS = 2; - /** - * Idling in a failed transaction block. - */ - const TRANS_INERROR = 3; - /** - * Bad connection. - */ - const TRANS_UNKNOWN = 4; - /** - * The connection procedure has failed. - */ - const POLLING_FAILED = 0; - /** - * Select for read-readiness. - */ - const POLLING_READING = 1; - /** - * Select for write-readiness. - */ - const POLLING_WRITING = 2; - /** - * The connection has been successfully made. - */ - const POLLING_OK = 3; - /** - * Register the event handler for notices. - */ - const EVENT_NOTICE = 'notice'; - /** - * Register the event handler for any created results. - */ - const EVENT_RESULT = 'result'; - /** - * Register the event handler for connection resets. - */ - const EVENT_RESET = 'reset'; - /** - * A [connection status constant](pq/Connection#Connection.Status:) value. - * - * @public - * @readonly - * @var int - */ - public $status; - /** - * A [transaction status constant](pq/Connection#Transaction.Status:) value. - * - * @public - * @readonly - * @var int - */ - public $transactionStatus; - /** - * The server socket resource. - * - * @public - * @readonly - * @var resource - */ - public $socket; - /** - * Whether the connection is busy with [asynchronous operations](pq/Connection/: Asynchronous Usage). - * - * @public - * @readonly - * @var bool - */ - public $busy; - /** - * Any error message on failure. - * - * @public - * @readonly - * @var string - */ - public $errorMessage; - /** - * List of registered event handlers. - * - * @public - * @readonly - * @var array - */ - public $eventHandlers; - /** - * Connection character set. - * - * @public - * @var string - */ - public $encoding = null; - /** - * Whether to fetch [asynchronous](pq/Connection/: Asynchronous Usage) results in unbuffered mode, i.e. each row generates a distinct pq\Result. - * - * @public - * @var bool - */ - public $unbuffered = false; - /** - * Whether to set the underlying socket nonblocking, useful for asynchronous handling of writes. See also pq\Connection::flush(). - * - * ### Connection Information: - * - * @public - * @var bool - */ - public $nonblocking = false; - /** - * The database name of the connection. - * - * @public - * @readonly - * @var string - */ - public $db; - /** - * The user name of the connection. - * - * @public - * @readonly - * @var string - */ - public $user; - /** - * The password of the connection. - * - * @public - * @readonly - * @var string - */ - public $pass; - /** - * The server host name of the connection. - * - * @public - * @readonly - * @var string - */ - public $host; - /** - * The port of the connection. - * - * @public - * @readonly - * @var string - */ - public $port; - /** - * The command-line options passed in the connection request. - * - * ### Inheritable Defaults: - * - * @public - * @readonly - * @var string - */ - public $options; - /** - * Default fetch type for future pq\Result instances. - * - * @public - * @var int - */ - public $defaultFetchType = \pq\Result::FETCH_ARRAY; - /** - * Default conversion bitmask for future pq\Result instances. - * - * @public - * @var int - */ - public $defaultAutoConvert = \pq\Result::CONV_ALL; - /** - * Default transaction isolation level for future pq\Transaction instances. - * - * @public - * @var int - */ - public $defaultTransactionIsolation = \pq\Transaction::READ_COMMITTED; - /** - * Default transaction readonlyness for future pq\Transaction instances. - * - * @public - * @var bool - */ - public $defaultTransactionReadonly = false; - /** - * Default transaction deferrability for future pq\Transaction instances. - * - * @public - * @var bool - */ - public $defaultTransactionDeferrable = false; - /** - * Create a new PostgreSQL connection. - * See also [General Usage](pq/Connection/: General Usage). - * - * @param string $dsn A ***connection string*** as described [in the PostgreSQL documentation](http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING). - * @param int $flags See [connection flag constants](pq/Connection#Connection.Flags:). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function __construct(string $dsn = "", int $flags = 0) {} - /** - * Declare a cursor for a query. - * - * @param string $name The identifying name of the cursor. - * @param int $flags Any combination of pq\Cursor constants. - * @param string $query The query for which to open a cursor. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\BadMethodCallException - * @return \pq\Cursor an open cursor instance. - */ - function declare(string $name, int $flags, string $query) {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) declare a cursor for a query. - * - * > ***NOTE***: - * If pq\Connection::$unbuffered is TRUE, each call to pq\Connection::getResult() will generate a distinct pq\Result containing exactly one row. - * - * @param string $name The identifying name of the cursor. - * @param int $flags Any combination of pq\Cursor constants. - * @param string $query The query for which to open a cursor. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\BadMethodCallException - * @return \pq\Cursor an open cursor instance. - */ - function declareAsync(string $name, int $flags, string $query) {} - /** - * Escape binary data for use within a query with the type bytea. - * - * ***NOTE:*** - * The result is not wrapped in single quotes. - * - * @param string $binary The binary data to escape. - * @throws \pq\Exception\BadMethodCallException - * @return string|FALSE string the escaped binary data. - * or FALSE if escaping fails. - */ - function escapeBytea(string $binary) {} - /** - * [Execute one or multiple SQL queries](pq/Connection/: Executing Queries) on the connection. - * - * ***NOTE:*** - * Only the last result will be returned, if the query string contains more than one SQL query. - * - * @param string $query The queries to send to the server, separated by semi-colon. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\DomainException - * @return \pq\Result - */ - function exec(string $query) {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) [execute an SQL query](pq/Connection: Executing Queries) on the connection. - * - * > ***NOTE***: - * If pq\Connection::$unbuffered is TRUE, each call to pq\Connection::getResult() will generate a distinct pq\Result containing exactly one row. - * - * @param string $query The query to send to the server. - * @param callable $callback as function(pq\Result $res) - * The callback to execute when the query finishes. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function execAsync(string $query, callable $callback = null) {} - /** - * [Execute an SQL query](pq/Connection: Executing Queries) with properly escaped parameters substituted. - * - * @param string $query The query to execute. - * @param array $params The parameter list to substitute. - * @param array $types Corresponding list of type OIDs for the parameters. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\DomainException - * @return \pq\Result - */ - function execParams(string $query, array $params, array $types = null) {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) [execute an SQL query](pq/Connection: Executing Queries) with properly escaped parameters substituted. - * - * > ***NOTE***: - * If pq\Connection::$unbuffered is TRUE, each call to pq\Connection::getResult() will generate a distinct pq\Result containing exactly one row. - * - * @param string $query The query to execute. - * @param array $params The parameter list to substitute. - * @param array $types Corresponding list of type OIDs for the parameters. - * @param callable $cb as function(\pq\Result $res) : void - * Result handler callback. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\BadMethodCallException - */ - function execParamsAsync(string $query, array $params, array $types = null, callable $cb = null) {} - /** - * Flush pending writes on the connection. - * Call after sending any command or data on a nonblocking connection. - * - * If it returns FALSE, wait for the socket to become read or write-ready. - * If it becomes write-ready, call pq\Connection::flush() again. - * If it becomes read-ready, call pq\Connection::poll(), then call pq\Connection::flush() again. - * Repeat until pq\Connection::flush() returns TRUE. - * - * ***NOTE:*** - * This method was added in v1.1.0, resp. v2.1.0. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\RuntimeException - * @return bool whether everything has been flushed. - */ - function flush() {} - /** - * Fetch the result of an [asynchronous](pq/Connection/: Asynchronous Usage) query. - * - * If the query hasn't finished yet, the call will block until the result is available. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @return \pq\Result|null NULL if there has not been a query - * or \pq\Result when the query has finished - */ - function getResult() {} - /** - * Listen on $channel for notifications. - * See pq\Connection::unlisten(). - * - * @param string $channel The channel to listen on. - * @param callable $listener as function(string $channel, string $message, int $pid) - * A callback automatically called whenever a notification on $channel arrives. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function listen(string $channel, callable $listener) {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) start listening on $channel for notifications. - * See pq\Connection::listen(). - * - * @param string $channel The channel to listen on. - * @param callable $listener as function(string $channel, string $message, int $pid) - * A callback automatically called whenever a notification on $channel arrives. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function listenAsync(string $channel, callable $listener) {} - /** - * Notify all listeners on $channel with $message. - * - * @param string $channel The channel to notify. - * @param string $message The message to send. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function notify(string $channel, string $message) {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) start notifying all listeners on $channel with $message. - * - * @param string $channel The channel to notify. - * @param string $message The message to send. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function notifyAsync(string $channel, string $message) {} - /** - * Stops listening for an event type. - * - * @param string $event Any pq\Connection::EVENT_*. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @return bool success. - */ - function off(string $event) {} - /** - * Listen for an event. - * - * @param string $event Any pq\Connection::EVENT_*. - * @param callable $callback as function(pq\Connection $c[, pq\Result $r) - * The callback to invoke on event. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @return int number of previously attached event listeners. - */ - function on(string $event, callable $callback) {} - /** - * Poll an [asynchronously](pq/Connection/: Asynchronous Usage) operating connection. - * See pq\Connection::resetAsync() for an usage example. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\BadMethodCallException - * @return int pq\Connection::POLLING_* constant - */ - function poll() {} - /** - * Prepare a named statement for later execution with pq\Statement::execute(). - * - * @param string $name The identifying name of the prepared statement. - * @param string $query The query to prepare. - * @param array $types An array of type OIDs for the substitution parameters. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return \pq\Statement a prepared statement instance. - */ - function prepare(string $name, string $query, array $types = null) {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) prepare a named statement for later execution with pq\Statement::exec(). - * - * > ***NOTE***: - * If pq\Connection::$unbuffered is TRUE, each call to pq\Connection::getResult() will generate a distinct pq\Result containing exactly one row. - * - * @param string $name The identifying name of the prepared statement. - * @param string $query The query to prepare. - * @param array $types An array of type OIDs for the substitution parameters. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return \pq\Statement a prepared statement instance. - */ - function prepareAsync(string $name, string $query, array $types = null) {} - /** - * Quote a string for safe use in a query. - * The result is truncated at any zero byte and wrapped in single quotes. - * - * ***NOTE:*** - * Beware of matching character encodings. - * - * @param string $payload The payload to quote for use in a query. - * @throws \pq\Exception\BadMethodCallException - * @return string|FALSE string a single-quote wrapped string safe for literal use in a query. - * or FALSE if quoting fails. - */ - function quote(string $payload) {} - /** - * Quote an identifier for safe usage as name. - * - * ***NOTE:*** - * Beware of case-sensitivity. - * - * @param string $name The name to quote. - * @throws \pq\Exception\BadMethodCallException - * @return string|FALSE string the quoted identifier. - * or FALSE if quoting fails. - */ - function quoteName(string $name) {} - /** - * Attempt to reset a possibly broken connection to a working state. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function reset() {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) reset a possibly broken connection to a working state. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function resetAsync() {} - /** - * Set a data type converter. - * - * @param \pq\Converter $converter An instance implementing pq\Converter. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - */ - function setConverter(\pq\Converter $converter) {} - /** - * Begin a transaction. - * - * @param int $isolation Any pq\Transaction isolation level constant - * (defaults to pq\Connection::$defaultTransactionIsolation). - * @param bool $readonly Whether the transaction executes only reads - * (defaults to pq\Connection::$defaultTransactionReadonly). - * @param bool $deferrable Whether the transaction is deferrable - * (defaults to pq\Connection::$defaultTransactionDeferrable). - * - * ***NOTE:*** - * A transaction can only be deferrable if it also is readonly and serializable. - * See the official [PostgreSQL documentation](http://www.postgresql.org/docs/current/static/sql-set-transaction.html) for further information. +class Connection +{ + /** + * (Re-)open a persistent connection. + */ + public const PERSISTENT = 2; + /** + * If the connection is not already open, perform the connection attempt [asynchronously](pq/Connection/: Asynchronous Usage). + */ + public const ASYNC = 1; + /** + * Everything well; if a connection has been newly and synchronously created, the connection will always have this status right after creation. + */ + public const OK = 0; + /** + * Broken connection; consider pq\Connection::reset() or recreation. + */ + public const BAD = 1; + /** + * Waiting for connection to be made. + */ + public const STARTED = 2; + /** + * Connection okay; waiting to send. + */ + public const MADE = 3; + /** + * Waiting for a response from the server. + */ + public const AWAITING_RESPONSE = 4; + /** + * Received authentication; waiting for backend start-up to finish. + */ + public const AUTH_OK = 5; + /** + * Negotiating SSL encryption. + */ + public const SSL_STARTUP = 7; + /** + * Negotiating environment-driven parameter settings. + */ + public const SETENV = 6; + /** + * No active transaction. + */ + public const TRANS_IDLE = 0; + /** + * A transaction command is in progress. + */ + public const TRANS_ACTIVE = 1; + /** + * Idling in a valid transaction block. + */ + public const TRANS_INTRANS = 2; + /** + * Idling in a failed transaction block. + */ + public const TRANS_INERROR = 3; + /** + * Bad connection. + */ + public const TRANS_UNKNOWN = 4; + /** + * The connection procedure has failed. + */ + public const POLLING_FAILED = 0; + /** + * Select for read-readiness. + */ + public const POLLING_READING = 1; + /** + * Select for write-readiness. + */ + public const POLLING_WRITING = 2; + /** + * The connection has been successfully made. + */ + public const POLLING_OK = 3; + /** + * Register the event handler for notices. + */ + public const EVENT_NOTICE = 'notice'; + /** + * Register the event handler for any created results. + */ + public const EVENT_RESULT = 'result'; + /** + * Register the event handler for connection resets. + */ + public const EVENT_RESET = 'reset'; + /** + * A [connection status constant](pq/Connection#Connection.Status:) value. + * + * @public + * @readonly + * @var int + */ + public $status; + /** + * A [transaction status constant](pq/Connection#Transaction.Status:) value. + * + * @public + * @readonly + * @var int + */ + public $transactionStatus; + /** + * The server socket resource. + * + * @public + * @readonly + * @var resource + */ + public $socket; + /** + * Whether the connection is busy with [asynchronous operations](pq/Connection/: Asynchronous Usage). + * + * @public + * @readonly + * @var bool + */ + public $busy; + /** + * Any error message on failure. + * + * @public + * @readonly + * @var string + */ + public $errorMessage; + /** + * List of registered event handlers. + * + * @public + * @readonly + * @var array + */ + public $eventHandlers; + /** + * Connection character set. + * + * @public + * @var string + */ + public $encoding = null; + /** + * Whether to fetch [asynchronous](pq/Connection/: Asynchronous Usage) results in unbuffered mode, i.e. each row generates a distinct pq\Result. + * + * @public + * @var bool + */ + public $unbuffered = false; + /** + * Whether to set the underlying socket nonblocking, useful for asynchronous handling of writes. See also pq\Connection::flush(). + * + * ### Connection Information: + * + * @public + * @var bool + */ + public $nonblocking = false; + /** + * The database name of the connection. + * + * @public + * @readonly + * @var string + */ + public $db; + /** + * The user name of the connection. + * + * @public + * @readonly + * @var string + */ + public $user; + /** + * The password of the connection. + * + * @public + * @readonly + * @var string + */ + public $pass; + /** + * The server host name of the connection. + * + * @public + * @readonly + * @var string + */ + public $host; + /** + * The port of the connection. + * + * @public + * @readonly + * @var string + */ + public $port; + /** + * The command-line options passed in the connection request. + * + * ### Inheritable Defaults: + * + * @public + * @readonly + * @var string + */ + public $options; + /** + * Default fetch type for future pq\Result instances. + * + * @public + * @var int + */ + public $defaultFetchType = \pq\Result::FETCH_ARRAY; + /** + * Default conversion bitmask for future pq\Result instances. + * + * @public + * @var int + */ + public $defaultAutoConvert = \pq\Result::CONV_ALL; + /** + * Default transaction isolation level for future pq\Transaction instances. + * + * @public + * @var int + */ + public $defaultTransactionIsolation = \pq\Transaction::READ_COMMITTED; + /** + * Default transaction readonlyness for future pq\Transaction instances. + * + * @public + * @var bool + */ + public $defaultTransactionReadonly = false; + /** + * Default transaction deferrability for future pq\Transaction instances. + * + * @public + * @var bool + */ + public $defaultTransactionDeferrable = false; + /** + * Create a new PostgreSQL connection. + * See also [General Usage](pq/Connection/: General Usage). + * + * @param string $dsn A ***connection string*** as described [in the PostgreSQL documentation](http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING). + * @param int $flags See [connection flag constants](pq/Connection#Connection.Flags:). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function __construct(string $dsn = "", int $flags = 0) {} + /** + * Declare a cursor for a query. + * + * @param string $name The identifying name of the cursor. + * @param int $flags Any combination of pq\Cursor constants. + * @param string $query The query for which to open a cursor. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\BadMethodCallException + * @return \pq\Cursor an open cursor instance. + */ + public function declare(string $name, int $flags, string $query) {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) declare a cursor for a query. + * + * > ***NOTE***: + * If pq\Connection::$unbuffered is TRUE, each call to pq\Connection::getResult() will generate a distinct pq\Result containing exactly one row. + * + * @param string $name The identifying name of the cursor. + * @param int $flags Any combination of pq\Cursor constants. + * @param string $query The query for which to open a cursor. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\BadMethodCallException + * @return \pq\Cursor an open cursor instance. + */ + public function declareAsync(string $name, int $flags, string $query) {} + /** + * Escape binary data for use within a query with the type bytea. + * + * ***NOTE:*** + * The result is not wrapped in single quotes. + * + * @param string $binary The binary data to escape. + * @throws \pq\Exception\BadMethodCallException + * @return string|false string the escaped binary data. + * or FALSE if escaping fails. + */ + public function escapeBytea(string $binary) {} + /** + * [Execute one or multiple SQL queries](pq/Connection/: Executing Queries) on the connection. + * + * ***NOTE:*** + * Only the last result will be returned, if the query string contains more than one SQL query. + * + * @param string $query The queries to send to the server, separated by semi-colon. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\DomainException + * @return \pq\Result + */ + public function exec(string $query) {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) [execute an SQL query](pq/Connection: Executing Queries) on the connection. + * + * > ***NOTE***: + * If pq\Connection::$unbuffered is TRUE, each call to pq\Connection::getResult() will generate a distinct pq\Result containing exactly one row. + * + * @param string $query The query to send to the server. + * @param callable $callback as function(pq\Result $res) + * The callback to execute when the query finishes. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function execAsync(string $query, callable $callback = null) {} + /** + * [Execute an SQL query](pq/Connection: Executing Queries) with properly escaped parameters substituted. + * + * @param string $query The query to execute. + * @param array $params The parameter list to substitute. + * @param array $types Corresponding list of type OIDs for the parameters. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\DomainException + * @return \pq\Result + */ + public function execParams(string $query, array $params, array $types = null) {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) [execute an SQL query](pq/Connection: Executing Queries) with properly escaped parameters substituted. + * + * > ***NOTE***: + * If pq\Connection::$unbuffered is TRUE, each call to pq\Connection::getResult() will generate a distinct pq\Result containing exactly one row. + * + * @param string $query The query to execute. + * @param array $params The parameter list to substitute. + * @param array $types Corresponding list of type OIDs for the parameters. + * @param callable $cb as function(\pq\Result $res) : void + * Result handler callback. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\BadMethodCallException + */ + public function execParamsAsync(string $query, array $params, array $types = null, callable $cb = null) {} + /** + * Flush pending writes on the connection. + * Call after sending any command or data on a nonblocking connection. + * + * If it returns FALSE, wait for the socket to become read or write-ready. + * If it becomes write-ready, call pq\Connection::flush() again. + * If it becomes read-ready, call pq\Connection::poll(), then call pq\Connection::flush() again. + * Repeat until pq\Connection::flush() returns TRUE. + * + * ***NOTE:*** + * This method was added in v1.1.0, resp. v2.1.0. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\RuntimeException + * @return bool whether everything has been flushed. + */ + public function flush() {} + /** + * Fetch the result of an [asynchronous](pq/Connection/: Asynchronous Usage) query. + * + * If the query hasn't finished yet, the call will block until the result is available. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @return \pq\Result|null NULL if there has not been a query + * or \pq\Result when the query has finished + */ + public function getResult() {} + /** + * Listen on $channel for notifications. + * See pq\Connection::unlisten(). + * + * @param string $channel The channel to listen on. + * @param callable $listener as function(string $channel, string $message, int $pid) + * A callback automatically called whenever a notification on $channel arrives. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function listen(string $channel, callable $listener) {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) start listening on $channel for notifications. + * See pq\Connection::listen(). + * + * @param string $channel The channel to listen on. + * @param callable $listener as function(string $channel, string $message, int $pid) + * A callback automatically called whenever a notification on $channel arrives. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function listenAsync(string $channel, callable $listener) {} + /** + * Notify all listeners on $channel with $message. + * + * @param string $channel The channel to notify. + * @param string $message The message to send. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function notify(string $channel, string $message) {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) start notifying all listeners on $channel with $message. + * + * @param string $channel The channel to notify. + * @param string $message The message to send. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function notifyAsync(string $channel, string $message) {} + /** + * Stops listening for an event type. + * + * @param string $event Any pq\Connection::EVENT_*. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @return bool success. + */ + public function off(string $event) {} + /** + * Listen for an event. + * + * @param string $event Any pq\Connection::EVENT_*. + * @param callable $callback as function(pq\Connection $c[, pq\Result $r) + * The callback to invoke on event. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @return int number of previously attached event listeners. + */ + public function on(string $event, callable $callback) {} + /** + * Poll an [asynchronously](pq/Connection/: Asynchronous Usage) operating connection. + * See pq\Connection::resetAsync() for an usage example. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\BadMethodCallException + * @return int pq\Connection::POLLING_* constant + */ + public function poll() {} + /** + * Prepare a named statement for later execution with pq\Statement::execute(). + * + * @param string $name The identifying name of the prepared statement. + * @param string $query The query to prepare. + * @param array $types An array of type OIDs for the substitution parameters. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return \pq\Statement a prepared statement instance. + */ + public function prepare(string $name, string $query, array $types = null) {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) prepare a named statement for later execution with pq\Statement::exec(). + * + * > ***NOTE***: + * If pq\Connection::$unbuffered is TRUE, each call to pq\Connection::getResult() will generate a distinct pq\Result containing exactly one row. + * + * @param string $name The identifying name of the prepared statement. + * @param string $query The query to prepare. + * @param array $types An array of type OIDs for the substitution parameters. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return \pq\Statement a prepared statement instance. + */ + public function prepareAsync(string $name, string $query, array $types = null) {} + /** + * Quote a string for safe use in a query. + * The result is truncated at any zero byte and wrapped in single quotes. + * + * ***NOTE:*** + * Beware of matching character encodings. + * + * @param string $payload The payload to quote for use in a query. + * @throws \pq\Exception\BadMethodCallException + * @return string|false string a single-quote wrapped string safe for literal use in a query. + * or FALSE if quoting fails. + */ + public function quote(string $payload) {} + /** + * Quote an identifier for safe usage as name. + * + * ***NOTE:*** + * Beware of case-sensitivity. + * + * @param string $name The name to quote. + * @throws \pq\Exception\BadMethodCallException + * @return string|false string the quoted identifier. + * or FALSE if quoting fails. + */ + public function quoteName(string $name) {} + /** + * Attempt to reset a possibly broken connection to a working state. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function reset() {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) reset a possibly broken connection to a working state. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function resetAsync() {} + /** + * Set a data type converter. + * + * @param \pq\Converter $converter An instance implementing pq\Converter. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + */ + public function setConverter(pq\Converter $converter) {} + /** + * Begin a transaction. + * + * @param int $isolation Any pq\Transaction isolation level constant + * (defaults to pq\Connection::$defaultTransactionIsolation). + * @param bool $readonly Whether the transaction executes only reads + * (defaults to pq\Connection::$defaultTransactionReadonly). + * @param bool $deferrable Whether the transaction is deferrable + * (defaults to pq\Connection::$defaultTransactionDeferrable). + * + * ***NOTE:*** + * A transaction can only be deferrable if it also is readonly and serializable. + * See the official [PostgreSQL documentation](http://www.postgresql.org/docs/current/static/sql-set-transaction.html) for further information. * * @return \pq\Transaction a begun transaction instance. - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\InvalidArgumentException - */ - function startTransaction(int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) begin a transaction. - * - * @param int $isolation Any pq\Transaction isolation level constant - * (defaults to pq\Connection::$defaultTransactionIsolation). - * @param bool $readonly Whether the transaction executes only reads - * (defaults to pq\Connection::$defaultTransactionReadonly). - * @param bool $deferrable Whether the transaction is deferrable - * (defaults to pq\Connection::$defaultTransactionDeferrable). - * - * ***NOTE:*** - * A transaction can only be deferrable if it also is readonly and serializable. - * See the official [PostgreSQL documentation](http://www.postgresql.org/docs/current/static/sql-set-transaction.html) for further information. + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\InvalidArgumentException + */ + public function startTransaction(int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) begin a transaction. + * + * @param int $isolation Any pq\Transaction isolation level constant + * (defaults to pq\Connection::$defaultTransactionIsolation). + * @param bool $readonly Whether the transaction executes only reads + * (defaults to pq\Connection::$defaultTransactionReadonly). + * @param bool $deferrable Whether the transaction is deferrable + * (defaults to pq\Connection::$defaultTransactionDeferrable). + * + * ***NOTE:*** + * A transaction can only be deferrable if it also is readonly and serializable. + * See the official [PostgreSQL documentation](http://www.postgresql.org/docs/current/static/sql-set-transaction.html) for further information. * * @return \pq\Transaction an asynchronously begun transaction instance. - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\InvalidArgumentException - */ - function startTransactionAsync(int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {} - /** - * Trace protocol communication with the server. - * - * ***NOTE:*** - * Calling pq\Connection::trace() without argument or NULL stops tracing. - * - * @param resource $stream The resource to which the protocol trace will be output. - * (The stream must be castable to STDIO). - * @throws \pq\Exception\BadMethodCallException - * @return bool success. - */ - function trace($stream = null) {} - /** - * Unescape bytea data retrieved from the server. - * - * @param string $bytea Bytea data retrieved from the server. - * @throws \pq\Exception\BadMethodCallException - * @return string|FALSE string unescaped binary data. - * or FALSE if unescaping fails. - */ - function unescapeBytea(string $bytea) {} - /** - * Stop listening for notifications on channel $channel. - * See pq\Connection::listen(). - * - * @param string $channel The name of a channel which is currently listened on. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function unlisten(string $channel) {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) stop listening for notifications on channel $channel. - * See pq\Connection::unlisten() and pq\Connection::listenAsync(). - * - * @param string $channel The name of a channel which is currently listened on. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function unlistenAsync(string $channel) {} - /** - * Stop applying a data type converter. - * - * @param \pq\Converter $converter A converter previously set with pq\Connection::setConverter(). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - */ - function unsetConverter(\pq\Converter $converter) {} + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\InvalidArgumentException + */ + public function startTransactionAsync(int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {} + /** + * Trace protocol communication with the server. + * + * ***NOTE:*** + * Calling pq\Connection::trace() without argument or NULL stops tracing. + * + * @param resource $stream The resource to which the protocol trace will be output. + * (The stream must be castable to STDIO). + * @throws \pq\Exception\BadMethodCallException + * @return bool success. + */ + public function trace($stream = null) {} + /** + * Unescape bytea data retrieved from the server. + * + * @param string $bytea Bytea data retrieved from the server. + * @throws \pq\Exception\BadMethodCallException + * @return string|false string unescaped binary data. + * or FALSE if unescaping fails. + */ + public function unescapeBytea(string $bytea) {} + /** + * Stop listening for notifications on channel $channel. + * See pq\Connection::listen(). + * + * @param string $channel The name of a channel which is currently listened on. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function unlisten(string $channel) {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) stop listening for notifications on channel $channel. + * See pq\Connection::unlisten() and pq\Connection::listenAsync(). + * + * @param string $channel The name of a channel which is currently listened on. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function unlistenAsync(string $channel) {} + /** + * Stop applying a data type converter. + * + * @param \pq\Converter $converter A converter previously set with pq\Connection::setConverter(). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + */ + public function unsetConverter(pq\Converter $converter) {} } /** * Interface for type conversions. */ -interface Converter { - /** - * Convert a string received from the PostgreSQL server back to a PHP type. - * - * @param string $data String data received from the server. - * @param int $type The type OID of the data. Irrelevant for single-type converters. - * @return mixed the value converted to a PHP type. - */ - function convertFromString(string $data, int $type); - /** - * Convert a value to a string for use in a query. - * - * @param mixed $value The PHP value which should be converted to a string. - * @param int $type The type OID the converter should handle. Irrelevant for singly-type converters. - * @return string a textual representation of the value accepted by the PostgreSQL server. - */ - function convertToString($value, int $type); - /** - * Announce which types the implementing converter can handle. - * - * @return array OIDs of handled types. - */ - function convertTypes(); +interface Converter +{ + /** + * Convert a string received from the PostgreSQL server back to a PHP type. + * + * @param string $data String data received from the server. + * @param int $type The type OID of the data. Irrelevant for single-type converters. + * @return mixed the value converted to a PHP type. + */ + public function convertFromString(string $data, int $type); + /** + * Convert a value to a string for use in a query. + * + * @param mixed $value The PHP value which should be converted to a string. + * @param int $type The type OID the converter should handle. Irrelevant for singly-type converters. + * @return string a textual representation of the value accepted by the PostgreSQL server. + */ + public function convertToString($value, int $type); + /** + * Announce which types the implementing converter can handle. + * + * @return array OIDs of handled types. + */ + public function convertTypes(); } /** * Declare a cursor. */ -class Cursor { - /** - * Causes the cursor to return data in binary rather than in text format. You probably do not want to use that. - */ - const BINARY = 1; - /** - * The data returned by the cursor should be unaffected by updates to the tables underlying the cursor that take place after the cursor was opened. - */ - const INSENSITIVE = 2; - /** - * The cursor should stay usable after the transaction that created it was successfully committed. - */ - const WITH_HOLD = 4; - /** - * Force that rows can be retrieved in any order from the cursor. - */ - const SCROLL = 16; - /** - * Force that rows are only retrievable in sequiential order. - * - * ***NOTE:*** - * See the [notes in the official PostgreSQL documentation](http://www.postgresql.org/docs/current/static/sql-declare.html#SQL-DECLARE-NOTES) for more information. - */ - const NO_SCROLL = 32; - /** - * The connection the cursor was declared on. - * - * @public - * @readonly - * @var \pq\Connection - */ - public $connection; - /** - * The identifying name of the cursor. - * - * @public - * @readonly - * @var string - */ - public $name; - /** - * Declare a cursor. - * See pq\Connection::declare(). - * - * @param \pq\Connection $connection The connection on which the cursor should be declared. - * @param string $name The name of the cursor. - * @param int $flags See pq\Cursor constants. - * @param string $query The query for which the cursor should be opened. - * @param bool $async Whether to declare the cursor [asynchronously](pq/Connection/: Asynchronous Usage). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function __construct(\pq\Connection $connection, string $name, int $flags, string $query, bool $async) {} - /** - * Close an open cursor. - * This is a no-op on already closed cursors. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function close() {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) close an open cursor. - * See pq\Cursor::close(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function closeAsync() {} - /** - * Fetch rows from the cursor. - * See pq\Cursor::move(). - * - * @param string $spec What to fetch. - * - * ### Fetch argument: - * - * FETCH and MOVE usually accepts arguments like the following, where `count` is the number of rows: - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return \pq\Result the fetched row(s). - */ - function fetch(string $spec = "1") {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) fetch rows from the cursor. - * See pq\Cursor::fetch(). - * - * @param string $spec What to fetch. - * @param callable $callback as function(pq\Result $res) - * A callback to execute when the result is ready. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function fetchAsync(string $spec = "1", callable $callback = null) {} - /** - * Move the cursor. - * See pq\Cursor::fetch(). - * - * @param string $spec What to fetch. - * - * ### Fetch argument: - * - * FETCH and MOVE usually accepts arguments like the following, where `count` is the number of rows: - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return \pq\Result command status. - */ - function move(string $spec = "1") {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) move the cursor. - * See pq\Cursor::move(). - * - * @param string $spec What to fetch. - * @param callable $callback as function(pq\Result $res) - * A callback to execute when the command completed. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function moveAsync(string $spec = "1", callable $callback = null) {} - /** - * Reopen a cursor. - * This is a no-op on already open cursors. - * - * ***NOTE:*** - * Only cursors closed by pq\Cursor::close() will be reopened. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function open() {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) reopen a cursor. - * See pq\Cursor::open(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function openAsync() {} +class Cursor +{ + /** + * Causes the cursor to return data in binary rather than in text format. You probably do not want to use that. + */ + public const BINARY = 1; + /** + * The data returned by the cursor should be unaffected by updates to the tables underlying the cursor that take place after the cursor was opened. + */ + public const INSENSITIVE = 2; + /** + * The cursor should stay usable after the transaction that created it was successfully committed. + */ + public const WITH_HOLD = 4; + /** + * Force that rows can be retrieved in any order from the cursor. + */ + public const SCROLL = 16; + /** + * Force that rows are only retrievable in sequiential order. + * + * ***NOTE:*** + * See the [notes in the official PostgreSQL documentation](http://www.postgresql.org/docs/current/static/sql-declare.html#SQL-DECLARE-NOTES) for more information. + */ + public const NO_SCROLL = 32; + /** + * The connection the cursor was declared on. + * + * @public + * @readonly + * @var \pq\Connection + */ + public $connection; + /** + * The identifying name of the cursor. + * + * @public + * @readonly + * @var string + */ + public $name; + /** + * Declare a cursor. + * See pq\Connection::declare(). + * + * @param \pq\Connection $connection The connection on which the cursor should be declared. + * @param string $name The name of the cursor. + * @param int $flags See pq\Cursor constants. + * @param string $query The query for which the cursor should be opened. + * @param bool $async Whether to declare the cursor [asynchronously](pq/Connection/: Asynchronous Usage). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function __construct(pq\Connection $connection, string $name, int $flags, string $query, bool $async) {} + /** + * Close an open cursor. + * This is a no-op on already closed cursors. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function close() {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) close an open cursor. + * See pq\Cursor::close(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function closeAsync() {} + /** + * Fetch rows from the cursor. + * See pq\Cursor::move(). + * + * @param string $spec What to fetch. + * + * ### Fetch argument: + * + * FETCH and MOVE usually accepts arguments like the following, where `count` is the number of rows: + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return \pq\Result the fetched row(s). + */ + public function fetch(string $spec = "1") {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) fetch rows from the cursor. + * See pq\Cursor::fetch(). + * + * @param string $spec What to fetch. + * @param callable $callback as function(pq\Result $res) + * A callback to execute when the result is ready. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function fetchAsync(string $spec = "1", callable $callback = null) {} + /** + * Move the cursor. + * See pq\Cursor::fetch(). + * + * @param string $spec What to fetch. + * + * ### Fetch argument: + * + * FETCH and MOVE usually accepts arguments like the following, where `count` is the number of rows: + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return \pq\Result command status. + */ + public function move(string $spec = "1") {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) move the cursor. + * See pq\Cursor::move(). + * + * @param string $spec What to fetch. + * @param callable $callback as function(pq\Result $res) + * A callback to execute when the command completed. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function moveAsync(string $spec = "1", callable $callback = null) {} + /** + * Reopen a cursor. + * This is a no-op on already open cursors. + * + * ***NOTE:*** + * Only cursors closed by pq\Cursor::close() will be reopened. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function open() {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) reopen a cursor. + * See pq\Cursor::open(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function openAsync() {} } /** * A simple DateTime wrapper with predefined formats which supports stringification and JSON. */ -class DateTime extends \DateTime implements \JsonSerializable { - /** - * The default format of any date/time type automatically converted by pq\Result (depends on the actual type of the column). - * - * @public - * @var string - */ - public $format = "Y-m-d H:i:s.uO"; - /** - * Stringify the DateTime instance according to pq\DateTime::$format. - * - * @return string the DateTime as string. - */ - function __toString() {} - /** - * Serialize to JSON. - * Alias of pq\DateTime::__toString(). - * - * @return string the DateTime stringified according to pq\DateTime::$format. - */ - function jsonSerialize() {} +class DateTime extends \DateTime implements \JsonSerializable +{ + /** + * The default format of any date/time type automatically converted by pq\Result (depends on the actual type of the column). + * + * @public + * @var string + */ + public $format = "Y-m-d H:i:s.uO"; + /** + * Stringify the DateTime instance according to pq\DateTime::$format. + * + * @return string the DateTime as string. + */ + public function __toString() {} + /** + * Serialize to JSON. + * Alias of pq\DateTime::__toString(). + * + * @return string the DateTime stringified according to pq\DateTime::$format. + */ + public function jsonSerialize() {} } /** * A base interface for all pq\Exception classes. */ -interface Exception { - /** - * An invalid argument was passed to a method (pq\Exception\InvalidArgumentException). - */ - const INVALID_ARGUMENT = 0; - /** - * A runtime exception occurred (pq\Exception\RuntimeException). - */ - const RUNTIME = 1; - /** - * The connection failed (pq\Exception\RuntimeException). - */ - const CONNECTION_FAILED = 2; - /** - * An input/output exception occurred (pq\Exception\RuntimeException). - */ - const IO = 3; - /** - * Escaping an argument or identifier failed internally (pq\Exception\RuntimeException). - */ - const ESCAPE = 4; - /** - * An object's constructor was not called (pq\Exception\BadMethodCallException). - */ - const UNINITIALIZED = 6; - /** - * Calling this method was not expected (yet) (pq\Exception\BadMethodCallException). - */ - const BAD_METHODCALL = 5; - /** - * SQL syntax error (pq\Exception\DomainException). - */ - const SQL = 8; - /** - * Implementation domain error (pq\Exception\DomainException). - */ - const DOMAIN = 7; +interface Exception +{ + /** + * An invalid argument was passed to a method (pq\Exception\InvalidArgumentException). + */ + public const INVALID_ARGUMENT = 0; + /** + * A runtime exception occurred (pq\Exception\RuntimeException). + */ + public const RUNTIME = 1; + /** + * The connection failed (pq\Exception\RuntimeException). + */ + public const CONNECTION_FAILED = 2; + /** + * An input/output exception occurred (pq\Exception\RuntimeException). + */ + public const IO = 3; + /** + * Escaping an argument or identifier failed internally (pq\Exception\RuntimeException). + */ + public const ESCAPE = 4; + /** + * An object's constructor was not called (pq\Exception\BadMethodCallException). + */ + public const UNINITIALIZED = 6; + /** + * Calling this method was not expected (yet) (pq\Exception\BadMethodCallException). + */ + public const BAD_METHODCALL = 5; + /** + * SQL syntax error (pq\Exception\DomainException). + */ + public const SQL = 8; + /** + * Implementation domain error (pq\Exception\DomainException). + */ + public const DOMAIN = 7; } /** * A *large object*. @@ -1000,496 +1010,499 @@ interface Exception { * ***NOTE:*** * Working with *large objects* requires an active transaction. */ -class LOB { - /** - * 0, representing an invalid OID. - */ - const INVALID_OID = 0; - /** - * Read/write mode. - */ - const RW = 393216; - /** - * The transaction wrapping the operations on the *large object*. - * - * @public - * @readonly - * @var \pq\Transaction - */ - public $transaction; - /** - * The OID of the *large object*. - * - * @public - * @readonly - * @var int - */ - public $oid; - /** - * The stream connected to the *large object*. - * - * @public - * @readonly - * @var resource - */ - public $stream; - /** - * Open or create a *large object*. - * See pq\Transaction::openLOB() and pq\Transaction::createLOB(). - * - * @param \pq\Transaction $txn The transaction which wraps the *large object* operations. - * @param int $oid The OID of the existing *large object* to open. - * @param int $mode Access mode (read, write or read/write). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function __construct(\pq\Transaction $txn, int $oid = \pq\LOB::INVALID_OID, int $mode = \pq\LOB::RW) {} - /** - * Read a string of data from the current position of the *large object*. - * - * @param int $length The amount of bytes to read from the *large object*. - * @param int &$read The amount of bytes actually read from the *large object*. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return string the data read. - */ - function read(int $length = 0x1000, int &$read = null) {} - /** - * Seek to a position within the *large object*. - * - * @param int $offset The position to seek to. - * @param int $whence From where to seek (SEEK_SET, SEEK_CUR or SEEK_END). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return int the new position. - */ - function seek(int $offset, int $whence = SEEK_SET) {} - /** - * Retrieve the current position within the *large object*. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return int the current position. - */ - function tell() {} - /** - * Truncate the *large object*. - * - * @param int $length The length to truncate to. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function truncate(int $length = 0) {} - /** - * Write data to the *large object*. - * - * @param string $data The data that should be written to the current position. - * @return int the number of bytes written. - */ - function write(string $data) {} +class LOB +{ + /** + * 0, representing an invalid OID. + */ + public const INVALID_OID = 0; + /** + * Read/write mode. + */ + public const RW = 393216; + /** + * The transaction wrapping the operations on the *large object*. + * + * @public + * @readonly + * @var \pq\Transaction + */ + public $transaction; + /** + * The OID of the *large object*. + * + * @public + * @readonly + * @var int + */ + public $oid; + /** + * The stream connected to the *large object*. + * + * @public + * @readonly + * @var resource + */ + public $stream; + /** + * Open or create a *large object*. + * See pq\Transaction::openLOB() and pq\Transaction::createLOB(). + * + * @param \pq\Transaction $txn The transaction which wraps the *large object* operations. + * @param int $oid The OID of the existing *large object* to open. + * @param int $mode Access mode (read, write or read/write). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function __construct(pq\Transaction $txn, int $oid = \pq\LOB::INVALID_OID, int $mode = \pq\LOB::RW) {} + /** + * Read a string of data from the current position of the *large object*. + * + * @param int $length The amount of bytes to read from the *large object*. + * @param int &$read The amount of bytes actually read from the *large object*. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return string the data read. + */ + public function read(int $length = 0x1000, int &$read = null) {} + /** + * Seek to a position within the *large object*. + * + * @param int $offset The position to seek to. + * @param int $whence From where to seek (SEEK_SET, SEEK_CUR or SEEK_END). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return int the new position. + */ + public function seek(int $offset, int $whence = SEEK_SET) {} + /** + * Retrieve the current position within the *large object*. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return int the current position. + */ + public function tell() {} + /** + * Truncate the *large object*. + * + * @param int $length The length to truncate to. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function truncate(int $length = 0) {} + /** + * Write data to the *large object*. + * + * @param string $data The data that should be written to the current position. + * @return int the number of bytes written. + */ + public function write(string $data) {} } /** * A query result. * * See [Fetching Results](pq/Result/: Fetching Results) for a general overview. */ -class Result implements \Traversable, \Countable { - /** - * The query sent to the server was empty. - */ - const EMPTY_QUERY = 0; - /** - * The query did not generate a result set and completed successfully. - */ - const COMMAND_OK = 1; - /** - * The query successfully generated a result set. - */ - const TUPLES_OK = 2; - /** - * The result contains a single row of the result set when using pq\Connection::$unbuffered. - */ - const SINGLE_TUPLE = 9; - /** - * COPY data can be received from the server. - */ - const COPY_OUT = 3; - /** - * COPY data can be sent to the server. - */ - const COPY_IN = 4; - /** - * COPY in/out data transfer in progress. - */ - const COPY_BOTH = 8; - /** - * The server sent a bad response. - */ - const BAD_RESPONSE = 5; - /** - * A nonfatal error (notice or warning) occurred. - */ - const NONFATAL_ERROR = 6; - /** - * A fatal error occurred. - */ - const FATAL_ERROR = 7; - /** - * Fetch rows numerically indexed, where the index start with 0. - */ - const FETCH_ARRAY = 0; - /** - * Fetch rows associatively indexed by column name. - */ - const FETCH_ASSOC = 1; - /** - * Fetch rows as stdClass instance, where the column names are the property names. - */ - const FETCH_OBJECT = 2; - /** - * Automatically convert 'f' and 't' to FALSE and TRUE and vice versa. - */ - const CONV_BOOL = 1; - /** - * Automatically convert integral strings to either int if it fits into maximum integer size or else to float and vice versa. - */ - const CONV_INT = 2; - /** - * Automatically convert floating point numbers. - */ - const CONV_FLOAT = 4; - /** - * Do all scalar conversions listed above. - */ - const CONV_SCALAR = 15; - /** - * Automatically convert arrays. - */ - const CONV_ARRAY = 16; - /** - * Automatically convert date strings to pq\DateTime and vice versa. - */ - const CONV_DATETIME = 32; - /** - * Automatically convert JSON. - */ - const CONV_JSON = 256; - /** - * Do all of the above. - */ - const CONV_ALL = 65535; - /** - * A [status constant](pq/Result#Status.values:). - * - * @public - * @readonly - * @var int - */ - public $status; - /** - * The accompanying status message. - * - * @public - * @readonly - * @var string - */ - public $statusMessage; - /** - * Any error message if $status indicates an error. - * - * @public - * @readonly - * @var string - */ - public $errorMessage; - /** - * The number of rows in the result set. - * - * @public - * @readonly - * @var int - */ - public $numRows; - /** - * The number of fields in a single tuple of the result set. - * - * @public - * @readonly - * @var int - */ - public $numCols; - /** - * The number of rows affected by a statement. - * - * @public - * @readonly - * @var int - */ - public $affectedRows; - /** - * Error details. See [PQresultErrorField](https://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQRESULTERRORFIELD) docs. - * - * @public - * @readonly - * @var array - */ - public $diag; - /** - * The [type of return value](pq/Result#Fetch.types:) the fetch methods should return when no fetch type argument was given. Defaults to pq\Connection::$defaultFetchType. - * - * @public - * @var int - */ - public $fetchType = \pq\Result::FETCH_ARRAY; - /** - * What [type of conversions](pq/Result#Conversion.bits:) to perform automatically. - * - * @public - * @var int - */ - public $autoConvert = \pq\Result::CONV_ALL; - /** - * Bind a variable to a result column. - * See pq\Result::fetchBound(). - * - * @param mixed $col The column name or index to bind to. - * @param mixed $var The variable reference. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @return bool success. - */ - function bind($col, $var) {} - /** - * Count number of rows in this result set. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @return int the number of rows. - */ - function count() {} - /** - * Describe a prepared statement. - * - * ***NOTE:*** - * This will only return meaningful information for a result of pq\Statement::desc(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @return array list of parameter type OIDs for the prepared statement. - */ - function desc() {} - /** - * Fetch all rows at once. - * - * @param int $fetch_type The type the return value should have, see pq\Result::FETCH_* constants, defaults to pq\Result::$fetchType. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @return array all fetched rows. - */ - function fetchAll(int $fetch_type = null) {} - /** - * Fetch all rows of a single column. - * - * @param int $col The column name or index to fetch. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return array list of column values. - */ - function fetchAllCols(int $col = 0) {} - /** - * Iteratively fetch a row into bound variables. - * See pq\Result::bind(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return array|null array the fetched row as numerically indexed array. - * or NULL when iteration ends. - */ - function fetchBound() {} - /** - * Iteratively fetch a single column. - * - * @param mixed $ref The variable where the column value will be stored in. - * @param mixed $col The column name or index. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return bool|null bool success. - * or NULL when iteration ends. - */ - function fetchCol($ref, $col = 0) {} - /** - * Iteratively fetch a row. - * - * @param int $fetch_type The type the return value should have, see pq\Result::FETCH_* constants, defaults to pq\Result::$fetchType. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return array|array|object|null array numerically indexed for pq\Result::FETCH_ARRAY - * or array associatively indexed for pq\Result::FETCH_ASSOC - * or object stdClass instance for pq\Result::FETCH_OBJECT - * or NULL when iteration ends. - */ - function fetchRow(int $fetch_type = null) {} - /** - * Fetch the complete result set as a simple map, a *multi dimensional array*, each dimension indexed by a column. - * - * @param mixed $keys The the column indices/names used to index the map. - * @param mixed $vals The column indices/names which should build up the leaf entry of the map. - * @param int $fetch_type The type the return value should have, see pq\Result::FETCH_* constants, defaults to pq\Result::$fetchType. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return array |object, the mapped columns. - */ - function map($keys = 0, $vals = null, int $fetch_type = null) {} +class Result implements \Traversable, \Countable +{ + /** + * The query sent to the server was empty. + */ + public const EMPTY_QUERY = 0; + /** + * The query did not generate a result set and completed successfully. + */ + public const COMMAND_OK = 1; + /** + * The query successfully generated a result set. + */ + public const TUPLES_OK = 2; + /** + * The result contains a single row of the result set when using pq\Connection::$unbuffered. + */ + public const SINGLE_TUPLE = 9; + /** + * COPY data can be received from the server. + */ + public const COPY_OUT = 3; + /** + * COPY data can be sent to the server. + */ + public const COPY_IN = 4; + /** + * COPY in/out data transfer in progress. + */ + public const COPY_BOTH = 8; + /** + * The server sent a bad response. + */ + public const BAD_RESPONSE = 5; + /** + * A nonfatal error (notice or warning) occurred. + */ + public const NONFATAL_ERROR = 6; + /** + * A fatal error occurred. + */ + public const FATAL_ERROR = 7; + /** + * Fetch rows numerically indexed, where the index start with 0. + */ + public const FETCH_ARRAY = 0; + /** + * Fetch rows associatively indexed by column name. + */ + public const FETCH_ASSOC = 1; + /** + * Fetch rows as stdClass instance, where the column names are the property names. + */ + public const FETCH_OBJECT = 2; + /** + * Automatically convert 'f' and 't' to FALSE and TRUE and vice versa. + */ + public const CONV_BOOL = 1; + /** + * Automatically convert integral strings to either int if it fits into maximum integer size or else to float and vice versa. + */ + public const CONV_INT = 2; + /** + * Automatically convert floating point numbers. + */ + public const CONV_FLOAT = 4; + /** + * Do all scalar conversions listed above. + */ + public const CONV_SCALAR = 15; + /** + * Automatically convert arrays. + */ + public const CONV_ARRAY = 16; + /** + * Automatically convert date strings to pq\DateTime and vice versa. + */ + public const CONV_DATETIME = 32; + /** + * Automatically convert JSON. + */ + public const CONV_JSON = 256; + /** + * Do all of the above. + */ + public const CONV_ALL = 65535; + /** + * A [status constant](pq/Result#Status.values:). + * + * @public + * @readonly + * @var int + */ + public $status; + /** + * The accompanying status message. + * + * @public + * @readonly + * @var string + */ + public $statusMessage; + /** + * Any error message if $status indicates an error. + * + * @public + * @readonly + * @var string + */ + public $errorMessage; + /** + * The number of rows in the result set. + * + * @public + * @readonly + * @var int + */ + public $numRows; + /** + * The number of fields in a single tuple of the result set. + * + * @public + * @readonly + * @var int + */ + public $numCols; + /** + * The number of rows affected by a statement. + * + * @public + * @readonly + * @var int + */ + public $affectedRows; + /** + * Error details. See [PQresultErrorField](https://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQRESULTERRORFIELD) docs. + * + * @public + * @readonly + * @var array + */ + public $diag; + /** + * The [type of return value](pq/Result#Fetch.types:) the fetch methods should return when no fetch type argument was given. Defaults to pq\Connection::$defaultFetchType. + * + * @public + * @var int + */ + public $fetchType = \pq\Result::FETCH_ARRAY; + /** + * What [type of conversions](pq/Result#Conversion.bits:) to perform automatically. + * + * @public + * @var int + */ + public $autoConvert = \pq\Result::CONV_ALL; + /** + * Bind a variable to a result column. + * See pq\Result::fetchBound(). + * + * @param mixed $col The column name or index to bind to. + * @param mixed $var The variable reference. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @return bool success. + */ + public function bind($col, $var) {} + /** + * Count number of rows in this result set. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @return int the number of rows. + */ + public function count() {} + /** + * Describe a prepared statement. + * + * ***NOTE:*** + * This will only return meaningful information for a result of pq\Statement::desc(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @return array list of parameter type OIDs for the prepared statement. + */ + public function desc() {} + /** + * Fetch all rows at once. + * + * @param int $fetch_type The type the return value should have, see pq\Result::FETCH_* constants, defaults to pq\Result::$fetchType. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @return array all fetched rows. + */ + public function fetchAll(int $fetch_type = null) {} + /** + * Fetch all rows of a single column. + * + * @param int $col The column name or index to fetch. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return array list of column values. + */ + public function fetchAllCols(int $col = 0) {} + /** + * Iteratively fetch a row into bound variables. + * See pq\Result::bind(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return array|null array the fetched row as numerically indexed array. + * or NULL when iteration ends. + */ + public function fetchBound() {} + /** + * Iteratively fetch a single column. + * + * @param mixed $ref The variable where the column value will be stored in. + * @param mixed $col The column name or index. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return bool|null bool success. + * or NULL when iteration ends. + */ + public function fetchCol($ref, $col = 0) {} + /** + * Iteratively fetch a row. + * + * @param int $fetch_type The type the return value should have, see pq\Result::FETCH_* constants, defaults to pq\Result::$fetchType. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return array|array|object|null array numerically indexed for pq\Result::FETCH_ARRAY + * or array associatively indexed for pq\Result::FETCH_ASSOC + * or object stdClass instance for pq\Result::FETCH_OBJECT + * or NULL when iteration ends. + */ + public function fetchRow(int $fetch_type = null) {} + /** + * Fetch the complete result set as a simple map, a *multi dimensional array*, each dimension indexed by a column. + * + * @param mixed $keys The the column indices/names used to index the map. + * @param mixed $vals The column indices/names which should build up the leaf entry of the map. + * @param int $fetch_type The type the return value should have, see pq\Result::FETCH_* constants, defaults to pq\Result::$fetchType. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return array |object, the mapped columns. + */ + public function map($keys = 0, $vals = null, int $fetch_type = null) {} } /** * A named prepared statement. * See pq\Connection::prepare(). */ -class Statement { - /** - * The connection to the server. - * - * @public - * @readonly - * @var \pq\Connection - */ - public $connection; - /** - * The identifiying name of the prepared statement. - * - * @public - * @readonly - * @var string - */ - public $name; - /** - * The query string used to prepare the statement. - * - * @public - * @readonly - * @var string - */ - public $query; - /** - * List of corresponding query parameter type OIDs for the prepared statement. - * - * @public - * @readonly - * @var array - */ - public $types; - /** - * Prepare a new statement. - * See pq\Connection::prepare(). - * - * @param \pq\Connection $conn The connection to prepare the statement on. - * @param string $name The name identifying this statement. - * @param string $query The actual query to prepare. - * @param array $types A list of corresponding query parameter type OIDs. - * @param bool $async Whether to prepare the statement [asynchronously](pq/Connection/: Asynchronous Usage). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\DomainException - */ - function __construct(\pq\Connection $conn, string $name, string $query, array $types = null, bool $async = false) {} - /** - * Bind a variable to an input parameter. - * - * @param int $param_no The parameter index to bind to. - * @param mixed &$param_ref The variable to bind. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - */ - function bind(int $param_no, &$param_ref) {} - /** - * Free the server resources used by the prepared statement, so it can no longer be executed. - * This is done implicitly when the object is destroyed. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function deallocate() {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) free the server resources used by the - * prepared statement, so it can no longer be executed. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function deallocateAsync() {} - /** - * Describe the parameters of the prepared statement. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\DomainException - * @return array list of type OIDs of the substitution parameters. - */ - function desc() {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) describe the parameters of the prepared statement. - * - * @param callable $callback as function(array $oids) - * A callback to receive list of type OIDs of the substitution parameters. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function descAsync(callable $callback) {} - /** - * Execute the prepared statement. - * - * @param array $params Any parameters to substitute in the prepared statement (defaults to any bou - * nd variables). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return \pq\Result the result of the execution of the prepared statement. - */ - function exec(array $params = null) {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) execute the prepared statement. - * - * @param array $params Any parameters to substitute in the prepared statement (defaults to any bou - * nd variables). - * @param callable $cb as function(\pq\Result $res) : void - * Result handler callback. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function execAsync(array $params = null, callable $cb = null) {} - /** - * Re-prepare a statement that has been deallocated. This is a no-op on already open statements. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function prepare() {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) re-prepare a statement that has been - * deallocated. This is a no-op on already open statements. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function prepareAsync() {} +class Statement +{ + /** + * The connection to the server. + * + * @public + * @readonly + * @var \pq\Connection + */ + public $connection; + /** + * The identifiying name of the prepared statement. + * + * @public + * @readonly + * @var string + */ + public $name; + /** + * The query string used to prepare the statement. + * + * @public + * @readonly + * @var string + */ + public $query; + /** + * List of corresponding query parameter type OIDs for the prepared statement. + * + * @public + * @readonly + * @var array + */ + public $types; + /** + * Prepare a new statement. + * See pq\Connection::prepare(). + * + * @param \pq\Connection $conn The connection to prepare the statement on. + * @param string $name The name identifying this statement. + * @param string $query The actual query to prepare. + * @param array $types A list of corresponding query parameter type OIDs. + * @param bool $async Whether to prepare the statement [asynchronously](pq/Connection/: Asynchronous Usage). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\DomainException + */ + public function __construct(pq\Connection $conn, string $name, string $query, array $types = null, bool $async = false) {} + /** + * Bind a variable to an input parameter. + * + * @param int $param_no The parameter index to bind to. + * @param mixed &$param_ref The variable to bind. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + */ + public function bind(int $param_no, &$param_ref) {} + /** + * Free the server resources used by the prepared statement, so it can no longer be executed. + * This is done implicitly when the object is destroyed. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function deallocate() {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) free the server resources used by the + * prepared statement, so it can no longer be executed. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function deallocateAsync() {} + /** + * Describe the parameters of the prepared statement. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\DomainException + * @return array list of type OIDs of the substitution parameters. + */ + public function desc() {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) describe the parameters of the prepared statement. + * + * @param callable $callback as function(array $oids) + * A callback to receive list of type OIDs of the substitution parameters. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function descAsync(callable $callback) {} + /** + * Execute the prepared statement. + * + * @param array $params Any parameters to substitute in the prepared statement (defaults to any bou + * nd variables). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return \pq\Result the result of the execution of the prepared statement. + */ + public function exec(array $params = null) {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) execute the prepared statement. + * + * @param array $params Any parameters to substitute in the prepared statement (defaults to any bou + * nd variables). + * @param callable $cb as function(\pq\Result $res) : void + * Result handler callback. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function execAsync(array $params = null, callable $cb = null) {} + /** + * Re-prepare a statement that has been deallocated. This is a no-op on already open statements. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function prepare() {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) re-prepare a statement that has been + * deallocated. This is a no-op on already open statements. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function prepareAsync() {} } /** * A database transaction. @@ -1497,891 +1510,893 @@ function prepareAsync() {} * ***NOTE:*** * Transactional properties like pq\Transaction::$isolation, pq\Transaction::$readonly and pq\Transaction::$deferrable can be changed after the transaction begun and the first query has been executed. Doing this will lead to appropriate `SET TRANSACTION` queries. */ -class Transaction { - /** - * Transaction isolation level where only rows committed before the transaction began can be seen. - */ - const READ_COMMITTED = 0; - /** - * Transaction isolation level where only rows committed before the first query was executed in this transaction. - */ - const REPEATABLE_READ = 1; - /** - * Transaction isolation level that guarantees serializable repeatability which might lead to serialization_failure on high concurrency. - */ - const SERIALIZABLE = 2; - /** - * The connection the transaction was started on. - * - * @public - * @readonly - * @var \pq\Connection - */ - public $connection; - /** - * The transaction isolation level. - * - * @public - * @var int - */ - public $isolation = \pq\Transaction::READ_COMMITTED; - /** - * Whether this transaction performs read only queries. - * - * @public - * @var bool - */ - public $readonly = false; - /** - * Whether the transaction is deferrable. See pq\Connection::startTransaction(). - * - * @public - * @var bool - */ - public $deferrable = false; - /** - * Start a transaction. - * See pq\Connection::startTransaction(). - * - * @param \pq\Connection $conn The connection to start the transaction on. - * @param bool $async Whether to start the transaction [asynchronously](pq/Connection/: Asynchronous Usage). - * @param int $isolation The transaction isolation level (defaults to pq\Connection::$defaultTransactionIsolation). - * @param bool $readonly Whether the transaction is readonly (defaults to pq\Connection::$defaultTransactionReadonly). - * @param bool $deferrable Whether the transaction is deferrable (defaults to pq\Connection::$defaultTransactionDeferrable). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function __construct(\pq\Connection $conn, bool $async = false, int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {} - /** - * Commit the transaction or release the previous savepoint. - * See pq\Transaction::savepoint(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\DomainException - */ - function commit() {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) commit the transaction or release the previous savepoint. - * See pq\Transaction::commit() and pq\Transaction::savepoint(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function commitAsync() {} - /** - * Create a new *large object* and open it. - * See pq\Transaction::openLOB(). - * - * @param int $mode How to open the *large object* (read, write or both; see pq\LOB constants). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return \pq\LOB instance of the new *large object*. - */ - function createLOB(int $mode = \pq\LOB::RW) {} - /** - * Export a *large object* to a local file. - * See pq\Transaction::importLOB(). - * - * @param int $oid The OID of the *large object*. - * @param string $path The path of a local file to export to. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function exportLOB(int $oid, string $path) {} - /** - * Export a snapshot for transaction synchronization. - * See pq\Transaction::importSnapshot(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\DomainException - * @return string the snapshot identifier usable with pq\Transaction::importSnapshot(). - */ - function exportSnapshot() {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) export a snapshot for transaction synchronization. - * See pq\Transaction::exportSnapshot(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function exportSnapshotAsync() {} - /** - * Import a local file into a *large object*. - * - * @param string $local_path A path to a local file to import. - * @param int $oid The target OID. A new *large object* will be created if INVALID_OID. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return int the (new) OID of the *large object*. - */ - function importLOB(string $local_path, int $oid = \pq\LOB::INVALID_OID) {} - /** - * Import a snapshot from another transaction to synchronize with. - * See pq\Transaction::exportSnapshot(). - * - * ***NOTE:*** - * The transaction must have an isolation level of at least pq\Transaction::REPEATABLE_READ. - * - * @param string $snapshot_id The snapshot identifier obtained by exporting a snapshot from a transaction. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\DomainException - */ - function importSnapshot(string $snapshot_id) {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) import a snapshot from another transaction to synchronize with. - * See pq\Transaction::importSnapshot(). - * - * ***NOTE:*** - * The transaction must have an isolation level of at least pq\Transaction::REPEATABLE_READ. - * - * @param string $snapshot_id The snapshot identifier obtained by exporting a snapshot from a transaction. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function importSnapshotAsync(string $snapshot_id) {} - /** - * Open a *large object*. - * See pq\Transaction::createLOB(). - * - * @param int $oid The OID of the *large object*. - * @param int $mode Operational mode; read, write or both. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return \pq\LOB instance of the opened *large object*. - */ - function openLOB(int $oid, int $mode = \pq\LOB::RW) {} - /** - * Rollback the transaction or to the previous savepoint within this transaction. - * See pq\Transaction::commit() and pq\Transaction::savepoint(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @throws \pq\Exception\DomainException - */ - function rollback() {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) rollback the transaction or to the previous savepoint within this transaction. - * See pq\Transaction::rollback() and pq\Transaction::savepoint(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function rollbackAsync() {} - /** - * Create a `SAVEPOINT` within this transaction. - * - * ***NOTE:*** - * pq\Transaction tracks an internal counter as savepoint identifier. - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function savepoint() {} - /** - * [Asynchronously](pq/Connection/: Asynchronous Usage) create a `SAVEPOINT` within this transaction. - * See pq\Transaction::savepoint(). - * - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function savepointAsync() {} - /** - * Unlink a *large object*. - * See pq\Transaction::createLOB(). - * - * @param int $oid The OID of the *large object*. - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - * @return \pq\LOB instance of the opened *large object*. - */ - function unlinkLOB(int $oid) {} +class Transaction +{ + /** + * Transaction isolation level where only rows committed before the transaction began can be seen. + */ + public const READ_COMMITTED = 0; + /** + * Transaction isolation level where only rows committed before the first query was executed in this transaction. + */ + public const REPEATABLE_READ = 1; + /** + * Transaction isolation level that guarantees serializable repeatability which might lead to serialization_failure on high concurrency. + */ + public const SERIALIZABLE = 2; + /** + * The connection the transaction was started on. + * + * @public + * @readonly + * @var \pq\Connection + */ + public $connection; + /** + * The transaction isolation level. + * + * @public + * @var int + */ + public $isolation = \pq\Transaction::READ_COMMITTED; + /** + * Whether this transaction performs read only queries. + * + * @public + * @var bool + */ + public $readonly = false; + /** + * Whether the transaction is deferrable. See pq\Connection::startTransaction(). + * + * @public + * @var bool + */ + public $deferrable = false; + /** + * Start a transaction. + * See pq\Connection::startTransaction(). + * + * @param \pq\Connection $conn The connection to start the transaction on. + * @param bool $async Whether to start the transaction [asynchronously](pq/Connection/: Asynchronous Usage). + * @param int $isolation The transaction isolation level (defaults to pq\Connection::$defaultTransactionIsolation). + * @param bool $readonly Whether the transaction is readonly (defaults to pq\Connection::$defaultTransactionReadonly). + * @param bool $deferrable Whether the transaction is deferrable (defaults to pq\Connection::$defaultTransactionDeferrable). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function __construct(pq\Connection $conn, bool $async = false, int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {} + /** + * Commit the transaction or release the previous savepoint. + * See pq\Transaction::savepoint(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\DomainException + */ + public function commit() {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) commit the transaction or release the previous savepoint. + * See pq\Transaction::commit() and pq\Transaction::savepoint(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function commitAsync() {} + /** + * Create a new *large object* and open it. + * See pq\Transaction::openLOB(). + * + * @param int $mode How to open the *large object* (read, write or both; see pq\LOB constants). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return \pq\LOB instance of the new *large object*. + */ + public function createLOB(int $mode = \pq\LOB::RW) {} + /** + * Export a *large object* to a local file. + * See pq\Transaction::importLOB(). + * + * @param int $oid The OID of the *large object*. + * @param string $path The path of a local file to export to. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function exportLOB(int $oid, string $path) {} + /** + * Export a snapshot for transaction synchronization. + * See pq\Transaction::importSnapshot(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\DomainException + * @return string the snapshot identifier usable with pq\Transaction::importSnapshot(). + */ + public function exportSnapshot() {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) export a snapshot for transaction synchronization. + * See pq\Transaction::exportSnapshot(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function exportSnapshotAsync() {} + /** + * Import a local file into a *large object*. + * + * @param string $local_path A path to a local file to import. + * @param int $oid The target OID. A new *large object* will be created if INVALID_OID. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return int the (new) OID of the *large object*. + */ + public function importLOB(string $local_path, int $oid = \pq\LOB::INVALID_OID) {} + /** + * Import a snapshot from another transaction to synchronize with. + * See pq\Transaction::exportSnapshot(). + * + * ***NOTE:*** + * The transaction must have an isolation level of at least pq\Transaction::REPEATABLE_READ. + * + * @param string $snapshot_id The snapshot identifier obtained by exporting a snapshot from a transaction. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\DomainException + */ + public function importSnapshot(string $snapshot_id) {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) import a snapshot from another transaction to synchronize with. + * See pq\Transaction::importSnapshot(). + * + * ***NOTE:*** + * The transaction must have an isolation level of at least pq\Transaction::REPEATABLE_READ. + * + * @param string $snapshot_id The snapshot identifier obtained by exporting a snapshot from a transaction. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function importSnapshotAsync(string $snapshot_id) {} + /** + * Open a *large object*. + * See pq\Transaction::createLOB(). + * + * @param int $oid The OID of the *large object*. + * @param int $mode Operational mode; read, write or both. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return \pq\LOB instance of the opened *large object*. + */ + public function openLOB(int $oid, int $mode = \pq\LOB::RW) {} + /** + * Rollback the transaction or to the previous savepoint within this transaction. + * See pq\Transaction::commit() and pq\Transaction::savepoint(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @throws \pq\Exception\DomainException + */ + public function rollback() {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) rollback the transaction or to the previous savepoint within this transaction. + * See pq\Transaction::rollback() and pq\Transaction::savepoint(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function rollbackAsync() {} + /** + * Create a `SAVEPOINT` within this transaction. + * + * ***NOTE:*** + * pq\Transaction tracks an internal counter as savepoint identifier. + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function savepoint() {} + /** + * [Asynchronously](pq/Connection/: Asynchronous Usage) create a `SAVEPOINT` within this transaction. + * See pq\Transaction::savepoint(). + * + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function savepointAsync() {} + /** + * Unlink a *large object*. + * See pq\Transaction::createLOB(). + * + * @param int $oid The OID of the *large object*. + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + * @return \pq\LOB instance of the opened *large object*. + */ + public function unlinkLOB(int $oid) {} } /** * Accessor to the PostgreSQL `pg_type` relation. * See [here for an overview](pq/Types/: Overview). */ -class Types implements \ArrayAccess { - /** - * OID of the `bool` type. - */ - const BOOL = 16; - /** - * OID of the `bytea` type. - */ - const BYTEA = 17; - /** - * OID of the `char` type. - */ - const CHAR = 18; - /** - * OID of the `name` type. - */ - const NAME = 19; - /** - * OID of the `int8` type. - */ - const INT8 = 20; - /** - * OID of the `int2` type. - */ - const INT2 = 21; - /** - * OID of the `int2vector` type. - */ - const INT2VECTOR = 22; - /** - * OID of the `int4` type. - */ - const INT4 = 23; - /** - * OID of the `regproc` type. - */ - const REGPROC = 24; - /** - * OID of the `text` type. - */ - const TEXT = 25; - /** - * OID of the `oid` type. - */ - const OID = 26; - /** - * OID of the `tid` type. - */ - const TID = 27; - /** - * OID of the `xid` type. - */ - const XID = 28; - /** - * OID of the `cid` type. - */ - const CID = 29; - /** - * OID of the `oidvector` type. - */ - const OIDVECTOR = 30; - /** - * OID of the `pg_type` type. - */ - const PG_TYPE = 71; - /** - * OID of the `pg_attribute` type. - */ - const PG_ATTRIBUTE = 75; - /** - * OID of the `pg_proc` type. - */ - const PG_PROC = 81; - /** - * OID of the `pg_class` type. - */ - const PG_CLASS = 83; - /** - * OID of the `json` type. - */ - const JSON = 114; - /** - * OID of the `xml` type. - */ - const XML = 142; - /** - * OID of the `xmlarray` type. - */ - const XMLARRAY = 143; - /** - * OID of the `jsonarray` type. - */ - const JSONARRAY = 199; - /** - * OID of the `pg_node_tree` type. - */ - const PG_NODE_TREE = 194; - /** - * OID of the `smgr` type. - */ - const SMGR = 210; - /** - * OID of the `point` type. - */ - const POINT = 600; - /** - * OID of the `lseg` type. - */ - const LSEG = 601; - /** - * OID of the `path` type. - */ - const PATH = 602; - /** - * OID of the `box` type. - */ - const BOX = 603; - /** - * OID of the `polygon` type. - */ - const POLYGON = 604; - /** - * OID of the `line` type. - */ - const LINE = 628; - /** - * OID of the `linearray` type. - */ - const LINEARRAY = 629; - /** - * OID of the `float4` type. - */ - const FLOAT4 = 700; - /** - * OID of the `float8` type. - */ - const FLOAT8 = 701; - /** - * OID of the `abstime` type. - */ - const ABSTIME = 702; - /** - * OID of the `reltime` type. - */ - const RELTIME = 703; - /** - * OID of the `tinterval` type. - */ - const TINTERVAL = 704; - /** - * OID of the `unknown` type. - */ - const UNKNOWN = 705; - /** - * OID of the `circle` type. - */ - const CIRCLE = 718; - /** - * OID of the `circlearray` type. - */ - const CIRCLEARRAY = 719; - /** - * OID of the `money` type. - */ - const MONEY = 790; - /** - * OID of the `moneyarray` type. - */ - const MONEYARRAY = 791; - /** - * OID of the `macaddr` type. - */ - const MACADDR = 829; - /** - * OID of the `inet` type. - */ - const INET = 869; - /** - * OID of the `cidr` type. - */ - const CIDR = 650; - /** - * OID of the `boolarray` type. - */ - const BOOLARRAY = 1000; - /** - * OID of the `byteaarray` type. - */ - const BYTEAARRAY = 1001; - /** - * OID of the `chararray` type. - */ - const CHARARRAY = 1002; - /** - * OID of the `namearray` type. - */ - const NAMEARRAY = 1003; - /** - * OID of the `int2array` type. - */ - const INT2ARRAY = 1005; - /** - * OID of the `int2vectorarray` type. - */ - const INT2VECTORARRAY = 1006; - /** - * OID of the `int4array` type. - */ - const INT4ARRAY = 1007; - /** - * OID of the `regprocarray` type. - */ - const REGPROCARRAY = 1008; - /** - * OID of the `textarray` type. - */ - const TEXTARRAY = 1009; - /** - * OID of the `oidarray` type. - */ - const OIDARRAY = 1028; - /** - * OID of the `tidarray` type. - */ - const TIDARRAY = 1010; - /** - * OID of the `xidarray` type. - */ - const XIDARRAY = 1011; - /** - * OID of the `cidarray` type. - */ - const CIDARRAY = 1012; - /** - * OID of the `oidvectorarray` type. - */ - const OIDVECTORARRAY = 1013; - /** - * OID of the `bpchararray` type. - */ - const BPCHARARRAY = 1014; - /** - * OID of the `varchararray` type. - */ - const VARCHARARRAY = 1015; - /** - * OID of the `int8array` type. - */ - const INT8ARRAY = 1016; - /** - * OID of the `pointarray` type. - */ - const POINTARRAY = 1017; - /** - * OID of the `lsegarray` type. - */ - const LSEGARRAY = 1018; - /** - * OID of the `patharray` type. - */ - const PATHARRAY = 1019; - /** - * OID of the `boxarray` type. - */ - const BOXARRAY = 1020; - /** - * OID of the `float4array` type. - */ - const FLOAT4ARRAY = 1021; - /** - * OID of the `float8array` type. - */ - const FLOAT8ARRAY = 1022; - /** - * OID of the `abstimearray` type. - */ - const ABSTIMEARRAY = 1023; - /** - * OID of the `reltimearray` type. - */ - const RELTIMEARRAY = 1024; - /** - * OID of the `tintervalarray` type. - */ - const TINTERVALARRAY = 1025; - /** - * OID of the `polygonarray` type. - */ - const POLYGONARRAY = 1027; - /** - * OID of the `aclitem` type. - */ - const ACLITEM = 1033; - /** - * OID of the `aclitemarray` type. - */ - const ACLITEMARRAY = 1034; - /** - * OID of the `macaddrarray` type. - */ - const MACADDRARRAY = 1040; - /** - * OID of the `inetarray` type. - */ - const INETARRAY = 1041; - /** - * OID of the `cidrarray` type. - */ - const CIDRARRAY = 651; - /** - * OID of the `cstringarray` type. - */ - const CSTRINGARRAY = 1263; - /** - * OID of the `bpchar` type. - */ - const BPCHAR = 1042; - /** - * OID of the `varchar` type. - */ - const VARCHAR = 1043; - /** - * OID of the `date` type. - */ - const DATE = 1082; - /** - * OID of the `time` type. - */ - const TIME = 1083; - /** - * OID of the `timestamp` type. - */ - const TIMESTAMP = 1114; - /** - * OID of the `timestamparray` type. - */ - const TIMESTAMPARRAY = 1115; - /** - * OID of the `datearray` type. - */ - const DATEARRAY = 1182; - /** - * OID of the `timearray` type. - */ - const TIMEARRAY = 1183; - /** - * OID of the `timestamptz` type. - */ - const TIMESTAMPTZ = 1184; - /** - * OID of the `timestamptzarray` type. - */ - const TIMESTAMPTZARRAY = 1185; - /** - * OID of the `interval` type. - */ - const INTERVAL = 1186; - /** - * OID of the `intervalarray` type. - */ - const INTERVALARRAY = 1187; - /** - * OID of the `numericarray` type. - */ - const NUMERICARRAY = 1231; - /** - * OID of the `timetz` type. - */ - const TIMETZ = 1266; - /** - * OID of the `timetzarray` type. - */ - const TIMETZARRAY = 1270; - /** - * OID of the `bit` type. - */ - const BIT = 1560; - /** - * OID of the `bitarray` type. - */ - const BITARRAY = 1561; - /** - * OID of the `varbit` type. - */ - const VARBIT = 1562; - /** - * OID of the `varbitarray` type. - */ - const VARBITARRAY = 1563; - /** - * OID of the `numeric` type. - */ - const NUMERIC = 1700; - /** - * OID of the `refcursor` type. - */ - const REFCURSOR = 1790; - /** - * OID of the `refcursorarray` type. - */ - const REFCURSORARRAY = 2201; - /** - * OID of the `regprocedure` type. - */ - const REGPROCEDURE = 2202; - /** - * OID of the `regoper` type. - */ - const REGOPER = 2203; - /** - * OID of the `regoperator` type. - */ - const REGOPERATOR = 2204; - /** - * OID of the `regclass` type. - */ - const REGCLASS = 2205; - /** - * OID of the `regtype` type. - */ - const REGTYPE = 2206; - /** - * OID of the `regprocedurearray` type. - */ - const REGPROCEDUREARRAY = 2207; - /** - * OID of the `regoperarray` type. - */ - const REGOPERARRAY = 2208; - /** - * OID of the `regoperatorarray` type. - */ - const REGOPERATORARRAY = 2209; - /** - * OID of the `regclassarray` type. - */ - const REGCLASSARRAY = 2210; - /** - * OID of the `regtypearray` type. - */ - const REGTYPEARRAY = 2211; - /** - * OID of the `uuid` type. - */ - const UUID = 2950; - /** - * OID of the `uuidarray` type. - */ - const UUIDARRAY = 2951; - /** - * OID of the `tsvector` type. - */ - const TSVECTOR = 3614; - /** - * OID of the `gtsvector` type. - */ - const GTSVECTOR = 3642; - /** - * OID of the `tsquery` type. - */ - const TSQUERY = 3615; - /** - * OID of the `regconfig` type. - */ - const REGCONFIG = 3734; - /** - * OID of the `regdictionary` type. - */ - const REGDICTIONARY = 3769; - /** - * OID of the `tsvectorarray` type. - */ - const TSVECTORARRAY = 3643; - /** - * OID of the `gtsvectorarray` type. - */ - const GTSVECTORARRAY = 3644; - /** - * OID of the `tsqueryarray` type. - */ - const TSQUERYARRAY = 3645; - /** - * OID of the `regconfigarray` type. - */ - const REGCONFIGARRAY = 3735; - /** - * OID of the `regdictionaryarray` type. - */ - const REGDICTIONARYARRAY = 3770; - /** - * OID of the `txid_snapshot` type. - */ - const TXID_SNAPSHOT = 2970; - /** - * OID of the `txid_snapshotarray` type. - */ - const TXID_SNAPSHOTARRAY = 2949; - /** - * OID of the `int4range` type. - */ - const INT4RANGE = 3904; - /** - * OID of the `int4rangearray` type. - */ - const INT4RANGEARRAY = 3905; - /** - * OID of the `numrange` type. - */ - const NUMRANGE = 3906; - /** - * OID of the `numrangearray` type. - */ - const NUMRANGEARRAY = 3907; - /** - * OID of the `tsrange` type. - */ - const TSRANGE = 3908; - /** - * OID of the `tsrangearray` type. - */ - const TSRANGEARRAY = 3909; - /** - * OID of the `tstzrange` type. - */ - const TSTZRANGE = 3910; - /** - * OID of the `tstzrangearray` type. - */ - const TSTZRANGEARRAY = 3911; - /** - * OID of the `daterange` type. - */ - const DATERANGE = 3912; - /** - * OID of the `daterangearray` type. - */ - const DATERANGEARRAY = 3913; - /** - * OID of the `int8range` type. - */ - const INT8RANGE = 3926; - /** - * OID of the `int8rangearray` type. - */ - const INT8RANGEARRAY = 3927; - /** - * OID of the `record` type. - */ - const RECORD = 2249; - /** - * OID of the `recordarray` type. - */ - const RECORDARRAY = 2287; - /** - * OID of the `cstring` type. - */ - const CSTRING = 2275; - /** - * OID of the `any` type. - */ - const ANY = 2276; - /** - * OID of the `anyarray` type. - */ - const ANYARRAY = 2277; - /** - * OID of the `void` type. - */ - const VOID = 2278; - /** - * OID of the `trigger` type. - */ - const TRIGGER = 2279; - /** - * OID of the `event_trigger` type. - */ - const EVENT_TRIGGER = 3838; - /** - * OID of the `language_handler` type. - */ - const LANGUAGE_HANDLER = 2280; - /** - * OID of the `internal` type. - */ - const INTERNAL = 2281; - /** - * OID of the `opaque` type. - */ - const OPAQUE = 2282; - /** - * OID of the `anyelement` type. - */ - const ANYELEMENT = 2283; - /** - * OID of the `anynonarray` type. - */ - const ANYNONARRAY = 2776; - /** - * OID of the `anyenum` type. - */ - const ANYENUM = 3500; - /** - * OID of the `fdw_handler` type. - */ - const FDW_HANDLER = 3115; - /** - * OID of the `anyrange` type. - */ - const ANYRANGE = 3831; - /** - * The connection which was used to obtain type information. - * - * @public - * @readonly - * @var \pq\Connection - */ - public $connection; - /** - * Create a new instance populated with information obtained from the `pg_type` relation. - * - * @param \pq\Connection $conn The connection to use. - * @param array $namespaces Which namespaces to query (defaults to `public` and `pg_catalog`). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function __construct(\pq\Connection $conn, array $namespaces = null) {} - /** - * Refresh type information from `pg_type`. - * - * @param array $namespaces Which namespaces to query (defaults to `public` and `pg_catalog`). - * @throws \pq\Exception\InvalidArgumentException - * @throws \pq\Exception\BadMethodCallException - * @throws \pq\Exception\RuntimeException - */ - function refresh(array $namespaces = null) {} +class Types implements \ArrayAccess +{ + /** + * OID of the `bool` type. + */ + public const BOOL = 16; + /** + * OID of the `bytea` type. + */ + public const BYTEA = 17; + /** + * OID of the `char` type. + */ + public const CHAR = 18; + /** + * OID of the `name` type. + */ + public const NAME = 19; + /** + * OID of the `int8` type. + */ + public const INT8 = 20; + /** + * OID of the `int2` type. + */ + public const INT2 = 21; + /** + * OID of the `int2vector` type. + */ + public const INT2VECTOR = 22; + /** + * OID of the `int4` type. + */ + public const INT4 = 23; + /** + * OID of the `regproc` type. + */ + public const REGPROC = 24; + /** + * OID of the `text` type. + */ + public const TEXT = 25; + /** + * OID of the `oid` type. + */ + public const OID = 26; + /** + * OID of the `tid` type. + */ + public const TID = 27; + /** + * OID of the `xid` type. + */ + public const XID = 28; + /** + * OID of the `cid` type. + */ + public const CID = 29; + /** + * OID of the `oidvector` type. + */ + public const OIDVECTOR = 30; + /** + * OID of the `pg_type` type. + */ + public const PG_TYPE = 71; + /** + * OID of the `pg_attribute` type. + */ + public const PG_ATTRIBUTE = 75; + /** + * OID of the `pg_proc` type. + */ + public const PG_PROC = 81; + /** + * OID of the `pg_class` type. + */ + public const PG_CLASS = 83; + /** + * OID of the `json` type. + */ + public const JSON = 114; + /** + * OID of the `xml` type. + */ + public const XML = 142; + /** + * OID of the `xmlarray` type. + */ + public const XMLARRAY = 143; + /** + * OID of the `jsonarray` type. + */ + public const JSONARRAY = 199; + /** + * OID of the `pg_node_tree` type. + */ + public const PG_NODE_TREE = 194; + /** + * OID of the `smgr` type. + */ + public const SMGR = 210; + /** + * OID of the `point` type. + */ + public const POINT = 600; + /** + * OID of the `lseg` type. + */ + public const LSEG = 601; + /** + * OID of the `path` type. + */ + public const PATH = 602; + /** + * OID of the `box` type. + */ + public const BOX = 603; + /** + * OID of the `polygon` type. + */ + public const POLYGON = 604; + /** + * OID of the `line` type. + */ + public const LINE = 628; + /** + * OID of the `linearray` type. + */ + public const LINEARRAY = 629; + /** + * OID of the `float4` type. + */ + public const FLOAT4 = 700; + /** + * OID of the `float8` type. + */ + public const FLOAT8 = 701; + /** + * OID of the `abstime` type. + */ + public const ABSTIME = 702; + /** + * OID of the `reltime` type. + */ + public const RELTIME = 703; + /** + * OID of the `tinterval` type. + */ + public const TINTERVAL = 704; + /** + * OID of the `unknown` type. + */ + public const UNKNOWN = 705; + /** + * OID of the `circle` type. + */ + public const CIRCLE = 718; + /** + * OID of the `circlearray` type. + */ + public const CIRCLEARRAY = 719; + /** + * OID of the `money` type. + */ + public const MONEY = 790; + /** + * OID of the `moneyarray` type. + */ + public const MONEYARRAY = 791; + /** + * OID of the `macaddr` type. + */ + public const MACADDR = 829; + /** + * OID of the `inet` type. + */ + public const INET = 869; + /** + * OID of the `cidr` type. + */ + public const CIDR = 650; + /** + * OID of the `boolarray` type. + */ + public const BOOLARRAY = 1000; + /** + * OID of the `byteaarray` type. + */ + public const BYTEAARRAY = 1001; + /** + * OID of the `chararray` type. + */ + public const CHARARRAY = 1002; + /** + * OID of the `namearray` type. + */ + public const NAMEARRAY = 1003; + /** + * OID of the `int2array` type. + */ + public const INT2ARRAY = 1005; + /** + * OID of the `int2vectorarray` type. + */ + public const INT2VECTORARRAY = 1006; + /** + * OID of the `int4array` type. + */ + public const INT4ARRAY = 1007; + /** + * OID of the `regprocarray` type. + */ + public const REGPROCARRAY = 1008; + /** + * OID of the `textarray` type. + */ + public const TEXTARRAY = 1009; + /** + * OID of the `oidarray` type. + */ + public const OIDARRAY = 1028; + /** + * OID of the `tidarray` type. + */ + public const TIDARRAY = 1010; + /** + * OID of the `xidarray` type. + */ + public const XIDARRAY = 1011; + /** + * OID of the `cidarray` type. + */ + public const CIDARRAY = 1012; + /** + * OID of the `oidvectorarray` type. + */ + public const OIDVECTORARRAY = 1013; + /** + * OID of the `bpchararray` type. + */ + public const BPCHARARRAY = 1014; + /** + * OID of the `varchararray` type. + */ + public const VARCHARARRAY = 1015; + /** + * OID of the `int8array` type. + */ + public const INT8ARRAY = 1016; + /** + * OID of the `pointarray` type. + */ + public const POINTARRAY = 1017; + /** + * OID of the `lsegarray` type. + */ + public const LSEGARRAY = 1018; + /** + * OID of the `patharray` type. + */ + public const PATHARRAY = 1019; + /** + * OID of the `boxarray` type. + */ + public const BOXARRAY = 1020; + /** + * OID of the `float4array` type. + */ + public const FLOAT4ARRAY = 1021; + /** + * OID of the `float8array` type. + */ + public const FLOAT8ARRAY = 1022; + /** + * OID of the `abstimearray` type. + */ + public const ABSTIMEARRAY = 1023; + /** + * OID of the `reltimearray` type. + */ + public const RELTIMEARRAY = 1024; + /** + * OID of the `tintervalarray` type. + */ + public const TINTERVALARRAY = 1025; + /** + * OID of the `polygonarray` type. + */ + public const POLYGONARRAY = 1027; + /** + * OID of the `aclitem` type. + */ + public const ACLITEM = 1033; + /** + * OID of the `aclitemarray` type. + */ + public const ACLITEMARRAY = 1034; + /** + * OID of the `macaddrarray` type. + */ + public const MACADDRARRAY = 1040; + /** + * OID of the `inetarray` type. + */ + public const INETARRAY = 1041; + /** + * OID of the `cidrarray` type. + */ + public const CIDRARRAY = 651; + /** + * OID of the `cstringarray` type. + */ + public const CSTRINGARRAY = 1263; + /** + * OID of the `bpchar` type. + */ + public const BPCHAR = 1042; + /** + * OID of the `varchar` type. + */ + public const VARCHAR = 1043; + /** + * OID of the `date` type. + */ + public const DATE = 1082; + /** + * OID of the `time` type. + */ + public const TIME = 1083; + /** + * OID of the `timestamp` type. + */ + public const TIMESTAMP = 1114; + /** + * OID of the `timestamparray` type. + */ + public const TIMESTAMPARRAY = 1115; + /** + * OID of the `datearray` type. + */ + public const DATEARRAY = 1182; + /** + * OID of the `timearray` type. + */ + public const TIMEARRAY = 1183; + /** + * OID of the `timestamptz` type. + */ + public const TIMESTAMPTZ = 1184; + /** + * OID of the `timestamptzarray` type. + */ + public const TIMESTAMPTZARRAY = 1185; + /** + * OID of the `interval` type. + */ + public const INTERVAL = 1186; + /** + * OID of the `intervalarray` type. + */ + public const INTERVALARRAY = 1187; + /** + * OID of the `numericarray` type. + */ + public const NUMERICARRAY = 1231; + /** + * OID of the `timetz` type. + */ + public const TIMETZ = 1266; + /** + * OID of the `timetzarray` type. + */ + public const TIMETZARRAY = 1270; + /** + * OID of the `bit` type. + */ + public const BIT = 1560; + /** + * OID of the `bitarray` type. + */ + public const BITARRAY = 1561; + /** + * OID of the `varbit` type. + */ + public const VARBIT = 1562; + /** + * OID of the `varbitarray` type. + */ + public const VARBITARRAY = 1563; + /** + * OID of the `numeric` type. + */ + public const NUMERIC = 1700; + /** + * OID of the `refcursor` type. + */ + public const REFCURSOR = 1790; + /** + * OID of the `refcursorarray` type. + */ + public const REFCURSORARRAY = 2201; + /** + * OID of the `regprocedure` type. + */ + public const REGPROCEDURE = 2202; + /** + * OID of the `regoper` type. + */ + public const REGOPER = 2203; + /** + * OID of the `regoperator` type. + */ + public const REGOPERATOR = 2204; + /** + * OID of the `regclass` type. + */ + public const REGCLASS = 2205; + /** + * OID of the `regtype` type. + */ + public const REGTYPE = 2206; + /** + * OID of the `regprocedurearray` type. + */ + public const REGPROCEDUREARRAY = 2207; + /** + * OID of the `regoperarray` type. + */ + public const REGOPERARRAY = 2208; + /** + * OID of the `regoperatorarray` type. + */ + public const REGOPERATORARRAY = 2209; + /** + * OID of the `regclassarray` type. + */ + public const REGCLASSARRAY = 2210; + /** + * OID of the `regtypearray` type. + */ + public const REGTYPEARRAY = 2211; + /** + * OID of the `uuid` type. + */ + public const UUID = 2950; + /** + * OID of the `uuidarray` type. + */ + public const UUIDARRAY = 2951; + /** + * OID of the `tsvector` type. + */ + public const TSVECTOR = 3614; + /** + * OID of the `gtsvector` type. + */ + public const GTSVECTOR = 3642; + /** + * OID of the `tsquery` type. + */ + public const TSQUERY = 3615; + /** + * OID of the `regconfig` type. + */ + public const REGCONFIG = 3734; + /** + * OID of the `regdictionary` type. + */ + public const REGDICTIONARY = 3769; + /** + * OID of the `tsvectorarray` type. + */ + public const TSVECTORARRAY = 3643; + /** + * OID of the `gtsvectorarray` type. + */ + public const GTSVECTORARRAY = 3644; + /** + * OID of the `tsqueryarray` type. + */ + public const TSQUERYARRAY = 3645; + /** + * OID of the `regconfigarray` type. + */ + public const REGCONFIGARRAY = 3735; + /** + * OID of the `regdictionaryarray` type. + */ + public const REGDICTIONARYARRAY = 3770; + /** + * OID of the `txid_snapshot` type. + */ + public const TXID_SNAPSHOT = 2970; + /** + * OID of the `txid_snapshotarray` type. + */ + public const TXID_SNAPSHOTARRAY = 2949; + /** + * OID of the `int4range` type. + */ + public const INT4RANGE = 3904; + /** + * OID of the `int4rangearray` type. + */ + public const INT4RANGEARRAY = 3905; + /** + * OID of the `numrange` type. + */ + public const NUMRANGE = 3906; + /** + * OID of the `numrangearray` type. + */ + public const NUMRANGEARRAY = 3907; + /** + * OID of the `tsrange` type. + */ + public const TSRANGE = 3908; + /** + * OID of the `tsrangearray` type. + */ + public const TSRANGEARRAY = 3909; + /** + * OID of the `tstzrange` type. + */ + public const TSTZRANGE = 3910; + /** + * OID of the `tstzrangearray` type. + */ + public const TSTZRANGEARRAY = 3911; + /** + * OID of the `daterange` type. + */ + public const DATERANGE = 3912; + /** + * OID of the `daterangearray` type. + */ + public const DATERANGEARRAY = 3913; + /** + * OID of the `int8range` type. + */ + public const INT8RANGE = 3926; + /** + * OID of the `int8rangearray` type. + */ + public const INT8RANGEARRAY = 3927; + /** + * OID of the `record` type. + */ + public const RECORD = 2249; + /** + * OID of the `recordarray` type. + */ + public const RECORDARRAY = 2287; + /** + * OID of the `cstring` type. + */ + public const CSTRING = 2275; + /** + * OID of the `any` type. + */ + public const ANY = 2276; + /** + * OID of the `anyarray` type. + */ + public const ANYARRAY = 2277; + /** + * OID of the `void` type. + */ + public const VOID = 2278; + /** + * OID of the `trigger` type. + */ + public const TRIGGER = 2279; + /** + * OID of the `event_trigger` type. + */ + public const EVENT_TRIGGER = 3838; + /** + * OID of the `language_handler` type. + */ + public const LANGUAGE_HANDLER = 2280; + /** + * OID of the `internal` type. + */ + public const INTERNAL = 2281; + /** + * OID of the `opaque` type. + */ + public const OPAQUE = 2282; + /** + * OID of the `anyelement` type. + */ + public const ANYELEMENT = 2283; + /** + * OID of the `anynonarray` type. + */ + public const ANYNONARRAY = 2776; + /** + * OID of the `anyenum` type. + */ + public const ANYENUM = 3500; + /** + * OID of the `fdw_handler` type. + */ + public const FDW_HANDLER = 3115; + /** + * OID of the `anyrange` type. + */ + public const ANYRANGE = 3831; + /** + * The connection which was used to obtain type information. + * + * @public + * @readonly + * @var \pq\Connection + */ + public $connection; + /** + * Create a new instance populated with information obtained from the `pg_type` relation. + * + * @param \pq\Connection $conn The connection to use. + * @param array $namespaces Which namespaces to query (defaults to `public` and `pg_catalog`). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function __construct(pq\Connection $conn, array $namespaces = null) {} + /** + * Refresh type information from `pg_type`. + * + * @param array $namespaces Which namespaces to query (defaults to `public` and `pg_catalog`). + * @throws \pq\Exception\InvalidArgumentException + * @throws \pq\Exception\BadMethodCallException + * @throws \pq\Exception\RuntimeException + */ + public function refresh(array $namespaces = null) {} } + namespace pq\Exception; + /** * A method call was not expected. */ -class BadMethodCallException extends \BadMethodCallException implements \pq\Exception { -} +class BadMethodCallException extends \BadMethodCallException implements \pq\Exception {} /** * Implementation or SQL syntax error. */ -class DomainException extends \DomainException implements \pq\Exception { - /** - * The SQLSTATE code, see the [official documentation](http://www.postgresql.org/docs/current/static/errcodes-appendix.html) for further information. - * - * @public - * @readonly - * @var string - */ - public $sqlstate; +class DomainException extends \DomainException implements \pq\Exception +{ + /** + * The SQLSTATE code, see the [official documentation](http://www.postgresql.org/docs/current/static/errcodes-appendix.html) for further information. + * + * @public + * @readonly + * @var string + */ + public $sqlstate; } /** * An invalid argument was passed to a method. */ -class InvalidArgumentException extends \InvalidArgumentException implements \pq\Exception { -} +class InvalidArgumentException extends \InvalidArgumentException implements \pq\Exception {} /** * A runtime exception occurred. */ -class RuntimeException extends \RuntimeException implements \pq\Exception { -} +class RuntimeException extends \RuntimeException implements \pq\Exception {} diff --git a/pspell/pspell.php b/pspell/pspell.php index a8cc8ca92..38a7d0253 100644 --- a/pspell/pspell.php +++ b/pspell/pspell.php @@ -34,7 +34,7 @@ * suggestions)

    * @return int|false the dictionary link identifier on success or FALSE on failure. */ -function pspell_new ($language, $spelling = null, $jargon = null, $encoding = null, $mode = 0) {} +function pspell_new($language, $spelling = null, $jargon = null, $encoding = null, $mode = 0) {} /** * Load a new dictionary with personal wordlist @@ -71,7 +71,7 @@ function pspell_new ($language, $spelling = null, $jargon = null, $encoding = nu * suggestions)

    * @return int the dictionary link identifier for use in other pspell functions. */ -function pspell_new_personal ($personal, $language, $spelling = null, $jargon = null, $encoding = null, $mode = 0) {} +function pspell_new_personal($personal, $language, $spelling = null, $jargon = null, $encoding = null, $mode = 0) {} /** * Load a new dictionary with settings based on a given config @@ -82,7 +82,7 @@ function pspell_new_personal ($personal, $language, $spelling = null, $jargon = *

    * @return int a dictionary link identifier on success. */ -function pspell_new_config ($config) {} +function pspell_new_config($config) {} /** * Check a word @@ -93,7 +93,7 @@ function pspell_new_config ($config) {} *

    * @return bool TRUE if the spelling is correct, FALSE if not. */ -function pspell_check ($dictionary_link, $word) {} +function pspell_check($dictionary_link, $word) {} /** * Suggest spellings of a word @@ -104,7 +104,7 @@ function pspell_check ($dictionary_link, $word) {} *

    * @return array an array of possible spellings. */ -function pspell_suggest ($dictionary_link, $word) {} +function pspell_suggest($dictionary_link, $word) {} /** * Store a replacement pair for a word @@ -121,7 +121,7 @@ function pspell_suggest ($dictionary_link, $word) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pspell_store_replacement ($dictionary_link, $misspelled, $correct) {} +function pspell_store_replacement($dictionary_link, $misspelled, $correct) {} /** * Add the word to a personal wordlist @@ -132,7 +132,7 @@ function pspell_store_replacement ($dictionary_link, $misspelled, $correct) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pspell_add_to_personal ($dictionary_link, $word) {} +function pspell_add_to_personal($dictionary_link, $word) {} /** * Add the word to the wordlist in the current session @@ -143,7 +143,7 @@ function pspell_add_to_personal ($dictionary_link, $word) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pspell_add_to_session ($dictionary_link, $word) {} +function pspell_add_to_session($dictionary_link, $word) {} /** * Clear the current session @@ -151,7 +151,7 @@ function pspell_add_to_session ($dictionary_link, $word) {} * @param int $dictionary_link * @return bool TRUE on success or FALSE on failure. */ -function pspell_clear_session ($dictionary_link) {} +function pspell_clear_session($dictionary_link) {} /** * Save the personal wordlist to a file @@ -162,7 +162,7 @@ function pspell_clear_session ($dictionary_link) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pspell_save_wordlist ($dictionary_link) {} +function pspell_save_wordlist($dictionary_link) {} /** * Create a config used to open a dictionary @@ -191,7 +191,7 @@ function pspell_save_wordlist ($dictionary_link) {} *

    * @return int|false Retuns a pspell config identifier, or FALSE on error. */ -function pspell_config_create ($language, $spelling = null, $jargon = null, $encoding = null) {} +function pspell_config_create($language, $spelling = null, $jargon = null, $encoding = null) {} /** * Consider run-together words as valid compounds @@ -203,7 +203,7 @@ function pspell_config_create ($language, $spelling = null, $jargon = null, $enc *

    * @return bool TRUE on success or FALSE on failure. */ -function pspell_config_runtogether ($dictionary_link, $flag) {} +function pspell_config_runtogether($dictionary_link, $flag) {} /** * Change the mode number of suggestions returned @@ -216,7 +216,7 @@ function pspell_config_runtogether ($dictionary_link, $flag) {} * suggestions)

    * @return bool TRUE on success or FALSE on failure. */ -function pspell_config_mode ($dictionary_link, $mode) {} +function pspell_config_mode($dictionary_link, $mode) {} /** * Ignore words less than N characters long @@ -227,7 +227,7 @@ function pspell_config_mode ($dictionary_link, $mode) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pspell_config_ignore ($dictionary_link, $n) {} +function pspell_config_ignore($dictionary_link, $n) {} /** * Set a file that contains personal wordlist @@ -239,7 +239,7 @@ function pspell_config_ignore ($dictionary_link, $n) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pspell_config_personal ($dictionary_link, $file) {} +function pspell_config_personal($dictionary_link, $file) {} /** * Location of the main word list @@ -248,7 +248,7 @@ function pspell_config_personal ($dictionary_link, $file) {} * @param string $directory * @return bool TRUE on success or FALSE on failure. */ -function pspell_config_dict_dir ($conf, $directory) {} +function pspell_config_dict_dir($conf, $directory) {} /** * location of language data files @@ -257,7 +257,7 @@ function pspell_config_dict_dir ($conf, $directory) {} * @param string $directory * @return bool TRUE on success or FALSE on failure. */ -function pspell_config_data_dir ($conf, $directory) {} +function pspell_config_data_dir($conf, $directory) {} /** * Set a file that contains replacement pairs @@ -268,7 +268,7 @@ function pspell_config_data_dir ($conf, $directory) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pspell_config_repl ($dictionary_link, $file) {} +function pspell_config_repl($dictionary_link, $file) {} /** * Determine whether to save a replacement pairs list @@ -280,12 +280,11 @@ function pspell_config_repl ($dictionary_link, $file) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function pspell_config_save_repl ($dictionary_link, $flag) {} +function pspell_config_save_repl($dictionary_link, $flag) {} -define ('PSPELL_FAST', 1); -define ('PSPELL_NORMAL', 2); -define ('PSPELL_BAD_SPELLERS', 3); -define ('PSPELL_RUN_TOGETHER', 8); +define('PSPELL_FAST', 1); +define('PSPELL_NORMAL', 2); +define('PSPELL_BAD_SPELLERS', 3); +define('PSPELL_RUN_TOGETHER', 8); // End of pspell v. -?> diff --git a/pthreads/pthreads.php b/pthreads/pthreads.php index 389b192ea..05cd71ae7 100644 --- a/pthreads/pthreads.php +++ b/pthreads/pthreads.php @@ -65,7 +65,8 @@ * including the management of references in the way required by pthreads. * @link https://secure.php.net/manual/en/class.pool.php */ -class Pool { +class Pool +{ /** * Maximum number of Workers this Pool can use * @var int @@ -107,7 +108,7 @@ class Pool { * @param array $ctor [optional]

    An array of arguments to be passed to new * Workers

    */ - public function __construct( int $size, string $class = 'Worker', array $ctor = [] ) {} + public function __construct(int $size, string $class = 'Worker', array $ctor = []) {} /** * (PECL pthreads >= 2.0.0)
    @@ -119,7 +120,7 @@ public function __construct( int $size, string $class = 'Worker', array $ctor = * a custom collector need to be used.

    * @return int

    The number of remaining tasks in the pool to be collected

    */ - public function collect( ?callable $collector = null ) {} + public function collect(?callable $collector = null) {} /** * (PECL pthreads >= 2.0.0)
    @@ -128,7 +129,7 @@ public function collect( ?callable $collector = null ) {} * @param int $size

    The maximum number of Workers this Pool can create

    * @return void */ - public function resize( int $size ) {} + public function resize(int $size) {} /** * (PECL pthreads >= 2.0.0)
    @@ -146,7 +147,7 @@ public function shutdown() {} * @param Threaded $task

    The task for execution

    * @return int

    the identifier of the Worker executing the object

    */ - public function submit( Threaded $task ) {} + public function submit(Threaded $task) {} /** * (PECL pthreads >= 2.0.0)
    @@ -158,7 +159,7 @@ public function submit( Threaded $task ) {} * @param Threaded $task

    The task for execution

    * @return int

    The identifier of the worker that accepted the task

    */ - public function submitTo( int $worker, Threaded $task ) {} + public function submitTo(int $worker, Threaded $task) {} } /** @@ -170,7 +171,8 @@ public function submitTo( int $worker, Threaded $task ) {} * * @link https://secure.php.net/manual/en/class.threaded.php */ -class Threaded implements Collectable, Traversable, Countable, ArrayAccess { +class Threaded implements Collectable, Traversable, Countable, ArrayAccess +{ /** * Worker object in which this Threaded is being executed * @var Worker @@ -193,7 +195,7 @@ public function addRef() {} * @param bool $preserve [optional]

    Preserve the keys of members, by default false

    * @return array

    An array of items from the objects property table

    */ - public function chunk( $size, $preserve = false ) {} + public function chunk($size, $preserve = false) {} /** * (PECL pthreads >= 2.0.0)
    @@ -217,7 +219,7 @@ public function delRef() {} * @param string $class

    The class to extend

    * @return bool

    A boolean indication of success

    */ - public static function extend( $class ) {} + public static function extend($class) {} /** * (PECL pthreads >= 3.0.0)
    @@ -239,7 +241,7 @@ public function isRunning() {} * @inheritdoc * @see Collectable::isGarbage() */ - public function isGarbage(): bool{} + public function isGarbage(): bool {} /** * (PECL pthreads >= 2.0.0)
    @@ -254,11 +256,11 @@ public function isTerminated() {} * (PECL pthreads >= 2.0.0)
    * Merges data into the current object * @link https://secure.php.net/manual/en/threaded.merge.php - * @var mixed $from

    The data to merge

    - * @var bool $overwrite [optional]

    Overwrite existing keys, by default true

    + * @var mixed

    The data to merge

    + * @var bool [optional]

    Overwrite existing keys, by default true

    * @return bool

    A boolean indication of success

    */ - public function merge( $from, $overwrite = true ) {} + public function merge($from, $overwrite = true) {} /** * (PECL pthreads >= 2.0.0)
    @@ -313,7 +315,7 @@ public function shift() {} * to use as function arguments to the block

    * @return mixed

    The return value from the block

    */ - public function synchronized( Closure $block, ...$_ ) {} + public function synchronized(Closure $block, ...$_) {} /** * (PECL pthreads >= 2.0.0)
    @@ -323,32 +325,31 @@ public function synchronized( Closure $block, ...$_ ) {} * @param int $timeout [optional]

    An optional timeout in microseconds

    * @return bool

    A boolean indication of success

    */ - public function wait( int $timeout = 0 ) {} - + public function wait(int $timeout = 0) {} /** * @inheritdoc * @see ArrayAccess::offsetExists() */ - public function offsetExists( $offset ) {} + public function offsetExists($offset) {} /** * @inheritdoc * @see ArrayAccess::offsetGet() */ - public function offsetGet( $offset ) {} + public function offsetGet($offset) {} /** * @inheritdoc * @see ArrayAccess::offsetSet() */ - public function offsetSet( $offset, $value ) {} + public function offsetSet($offset, $value) {} /** * @inheritdoc * @see ArrayAccess::offsetUnset() */ - public function offsetUnset( $offset ) {} + public function offsetUnset($offset) {} } /** @@ -360,8 +361,8 @@ public function offsetUnset( $offset ) {} * * @link https://secure.php.net/manual/en/class.thread.php */ -class Thread extends Threaded implements Countable, Traversable, ArrayAccess { - +class Thread extends Threaded implements Countable, Traversable, ArrayAccess +{ /** * (PECL pthreads >= 2.0.0)
    * Will return the identity of the Thread that created the referenced Thread @@ -426,7 +427,7 @@ public function join() {} * constants, by default {@link PTHREADS_INHERIT_ALL}

    * @return bool

    A boolean indication of success

    */ - public function start( int $options = PTHREADS_INHERIT_ALL ) {} + public function start(int $options = PTHREADS_INHERIT_ALL) {} } /** @@ -443,7 +444,8 @@ public function start( int $options = PTHREADS_INHERIT_ALL ) {} * objects run method. * @link https://secure.php.net/manual/en/class.worker.php */ -class Worker extends Thread implements Traversable, Countable, ArrayAccess { +class Worker extends Thread implements Traversable, Countable, ArrayAccess +{ /** * (PECL pthreads >= 3.0.0)
    * Allows the worker to collect references determined to be garbage by the @@ -455,7 +457,7 @@ class Worker extends Thread implements Traversable, Countable, ArrayAccess { * @return int

    The number of remaining tasks on the worker's stack to be * collected

    */ - public function collect( ?callable $collector = null ) {} + public function collect(?callable $collector = null) {} /** * (PECL pthreads >= 2.0.0)
    @@ -489,7 +491,7 @@ public function shutdown() {} * @param Threaded $work

    A Threaded object to be executed by the Worker

    * @return int

    The new size of the stack

    */ - public function stack( Threaded $work ) {} + public function stack(Threaded $work) {} /** * (PECL pthreads >= 2.0.0)
    @@ -505,7 +507,8 @@ public function unstack() {} * Represents a garbage-collectable object. * @link https://secure.php.net/manual/en/class.collectable.php */ -interface Collectable { +interface Collectable +{ /** * (PECL pthreads >= 2.0.8)
    * Can be called in {@link Pool::collect()} to determine if this object is garbage @@ -524,7 +527,4 @@ public function isGarbage(): bool; * @see Threaded * @link https://secure.php.net/manual/en/class.volatile.php */ -class Volatile extends Threaded implements Collectable, Traversable - { - - } +class Volatile extends Threaded implements Collectable, Traversable {} diff --git a/radius/radius.php b/radius/radius.php index 438d0ba82..a1c49852d 100644 --- a/radius/radius.php +++ b/radius/radius.php @@ -323,7 +323,7 @@ * @return resource|false Returns a handle on success, FALSE on error. This function only fails if insufficient memory is available. * @since 1.1.0 */ -function radius_acct_open() { } +function radius_acct_open() {} /** * radius_add_server() may be called multiple times, and it may be used together with {@see radius_config()}. At most 10 servers may be specified. When multiple servers are given, they are tried in round-robin fashion until a valid response is received, or until each server's max_tries limit has been reached. @@ -340,7 +340,7 @@ function radius_acct_open() { } * @see radius_config() * @since 1.1.0 */ -function radius_add_server($radius_handle , $hostname, $port , $secret, $timeout, $max_tries) { } +function radius_add_server($radius_handle, $hostname, $port, $secret, $timeout, $max_tries) {} /** * Creates a Radius handle for authentication @@ -348,7 +348,7 @@ function radius_add_server($radius_handle , $hostname, $port , $secret, $timeout * @return resource|false Returns a handle on success, FALSE on error. This function only fails if insufficient memory is available. * @since 1.1.0 */ -function radius_auth_open() { } +function radius_auth_open() {} /** * Free all resources. It is not needed to call this function because php frees all resources at the end of each request. @@ -357,7 +357,7 @@ function radius_auth_open() { } * @return bool Returns TRUE on success or FALSE on failure. * @since 1.1.0 */ -function radius_close($radius_handle) { } +function radius_close($radius_handle) {} /** * Before issuing any Radius requests, the library must be made aware of the servers it can contact. The easiest way to configure the library is to call radius_config(). radius_config() causes the library to read a configuration file whose format is described in radius.conf. @@ -369,7 +369,7 @@ function radius_close($radius_handle) { } * @see radius_add_server() * @since 1.1.0 */ -function radius_config($radius_handle, $file) { } +function radius_config($radius_handle, $file) {} /** * A Radius request consists of a code specifying the kind of request, and zero or more attributes which provide additional information. To begin constructing a new request, call radius_create_request().
    @@ -381,4 +381,4 @@ function radius_config($radius_handle, $file) { } * @see radius_send_request() * @since 1.1.0 */ -function radius_create_request($radius_handle, $type) { } +function radius_create_request($radius_handle, $type) {} diff --git a/rar/rar.php b/rar/rar.php index dd132c31a..d28767b76 100644 --- a/rar/rar.php +++ b/rar/rar.php @@ -28,9 +28,7 @@ final class RarArchive implements Traversable * * @return RarArchive|false the requested RarArchive instance or FALSE on failure. */ - public static function open($filename, $password = null, ?callable $volume_callback = null) - { - } + public static function open($filename, $password = null, ?callable $volume_callback = null) {} /** * Close RAR archive and free all resources * @@ -38,9 +36,7 @@ public static function open($filename, $password = null, ?callable $volume_callb * * @return bool TRUE on success or FALSE on failure */ - public function close() - { - } + public function close() {} /** * Get comment text from the RAR archive * @@ -48,17 +44,13 @@ public function close() * * @return string|null the comment or NULL if there is none */ - public function getComment() - { - } + public function getComment() {} /** * Get full list of entries from the RAR archive * * @return RarEntry[]|false array of {@see RarEntry} objects or FALSE on failure */ - public function getEntries() - { - } + public function getEntries() {} /** * Get entry object from the RAR archive * @@ -70,9 +62,7 @@ public function getEntries() * * @return RarEntry|false the matching RarEntry object or FALSE on failure */ - public function getEntry($entryname) - { - } + public function getEntry($entryname) {} /** * Test whether an archive is broken (incomplete) * @@ -85,9 +75,7 @@ public function getEntry($entryname) * exceptions with {@see RarException::setUsingExceptions()}; however, this should be unnecessary as a program * should not operate on closed files. */ - public function isBroken() - { - } + public function isBroken() {} /** * Check whether the RAR archive is solid * @@ -97,9 +85,7 @@ public function isBroken() * * @return bool TRUE if the archive is solid, FALSE otherwise */ - public function isSolid() - { - } + public function isSolid() {} /** * Whether opening broken archives is allowed * @@ -113,9 +99,7 @@ public function isSolid() * * @return bool TRUE или FALSE в случае возникновения ошибки. It will only fail if the file has already been closed */ - public function setAllowBroken($allow_broken) - { - } + public function setAllowBroken($allow_broken) {} /** * Get text representation * @@ -129,9 +113,7 @@ public function setAllowBroken($allow_broken) * @return string A textual representation of this RarArchive object. The content of this * representation is unspecified. */ - public function __toString() - { - } + public function __toString() {} } /** * A RAR entry, representing a directory or a compressed file inside a RAR archive @@ -144,169 +126,169 @@ final class RarEntry * If the return value of {@see RarEntry::getHostOs()} equals this constant, MS-DOS was used to add this entry. * Use instead of {@see RAR_HOST_MSDOS}. */ - const HOST_MSDOS = 0; + public const HOST_MSDOS = 0; /** * If the return value of {@see RarEntry::getHostOs()} equals this constant, OS/2 was used to add this entry. * Intended to replace {@see RAR_HOST_OS2}. */ - const HOST_OS2 = 1; + public const HOST_OS2 = 1; /** * If the return value of {@see RarEntry::getHostOs()} equals this constant, Microsoft Windows was used to add this entry. * Intended to replace {@see RAR_HOST_WIN32} */ - const HOST_WIN32 = 2; + public const HOST_WIN32 = 2; /** * If the return value of {@see RarEntry::getHostOs()} equals this constant, an unspecified UNIX OS was used to add * this entry. Intended to replace {@see RAR_HOST_UNIX}. */ - const HOST_UNIX = 3; + public const HOST_UNIX = 3; /** * If the return value of {@see RarEntry::getHostOs()} equals this constant, Mac OS was used to add this entry. */ - const HOST_MACOS = 4; + public const HOST_MACOS = 4; /** * If the return value of {@see RarEntry::getHostOs()} equals this constant, BeOS was used to add this entry. * Intended to replace {@see RAR_HOST_BEOS}. */ - const HOST_BEOS = 5; + public const HOST_BEOS = 5; /** * Bit that represents a Windows entry with a read-only attribute. To be used with {@see RarEntry::getAttr()} on * entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_READONLY = 1; + public const ATTRIBUTE_WIN_READONLY = 1; /** * Bit that represents a Windows entry with a hidden attribute. To be used with {@see RarEntry::getAttr()} on * entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_HIDDEN = 2; + public const ATTRIBUTE_WIN_HIDDEN = 2; /** * Bit that represents a Windows entry with a system attribute. To be used with {@see RarEntry::getAttr()} on * entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_SYSTEM = 4; + public const ATTRIBUTE_WIN_SYSTEM = 4; /** * Bit that represents a Windows entry with a directory attribute (entry is a directory). To be used with * {@see RarEntry::getAttr()} on entries whose host OS is Microsoft Windows. See also * {@see RarEntry::isDirectory()}, which also works with entries that were not added in WinRAR. */ - const ATTRIBUTE_WIN_DIRECTORY = 16; + public const ATTRIBUTE_WIN_DIRECTORY = 16; /** * Bit that represents a Windows entry with an archive attribute. To be used with {@see RarEntry::getAttr()} on * entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_ARCHIVE = 32; + public const ATTRIBUTE_WIN_ARCHIVE = 32; /** * Bit that represents a Windows entry with a device attribute. To be used with {@see RarEntry::getAttr()} on * entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_DEVICE = 64; + public const ATTRIBUTE_WIN_DEVICE = 64; /** * Bit that represents a Windows entry with a normal file attribute (entry is NOT a directory). To be used with * {@see RarEntry::getAttr()} on entries whose host OS is Microsoft Windows. See also * {@see RarEntry::isDirectory()}, which also works with entries that were not added in WinRAR. */ - const ATTRIBUTE_WIN_NORMAL = 128; + public const ATTRIBUTE_WIN_NORMAL = 128; /** * Bit that represents a Windows entry with a temporary attribute. To be used with {@see RarEntry::getAttr()} on * entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_TEMPORARY = 256; + public const ATTRIBUTE_WIN_TEMPORARY = 256; /** * Bit that represents a Windows entry with a sparse file attribute (file is an NTFS sparse file). To be used with * {@see RarEntry::getAttr()} on entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_SPARSE_FILE = 512; + public const ATTRIBUTE_WIN_SPARSE_FILE = 512; /** * Bit that represents a Windows entry with a reparse point attribute (entry is an NTFS reparse point, e.g. a * directory junction or a mount file system). To be used with {@see RarEntry::getAttr()} on entries whose host OS * is Microsoft Windows. */ - const ATTRIBUTE_WIN_REPARSE_POINT = 1024; + public const ATTRIBUTE_WIN_REPARSE_POINT = 1024; /** * Bit that represents a Windows entry with a compressed attribute (NTFS only). To be used with * {@see RarEntry::getAttr()} on entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_COMPRESSED = 2048; + public const ATTRIBUTE_WIN_COMPRESSED = 2048; /** * Bit that represents a Windows entry with an offline attribute (entry is offline and not accessible). To be used * with {@see RarEntry::getAttr()} on entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_OFFLINE = 4096; + public const ATTRIBUTE_WIN_OFFLINE = 4096; /** * Bit that represents a Windows entry with a not content indexed attribute (entry is to be indexed). To be used * with {@see RarEntry::getAttr()} on entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_NOT_CONTENT_INDEXED = 8192; + public const ATTRIBUTE_WIN_NOT_CONTENT_INDEXED = 8192; /** * Bit that represents a Windows entry with an encrypted attribute (NTFS only). To be used with * {@see RarEntry::getAttr()} on entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_ENCRYPTED = 16384; + public const ATTRIBUTE_WIN_ENCRYPTED = 16384; /** * Bit that represents a Windows entry with a virtual attribute. To be used with {@see RarEntry::getAttr()} * on entries whose host OS is Microsoft Windows. */ - const ATTRIBUTE_WIN_VIRTUAL = 65536; + public const ATTRIBUTE_WIN_VIRTUAL = 65536; /** * Bit that represents a UNIX entry that is world executable. To be used with {@see RarEntry::getAttr()} on entries * whose host OS is UNIX. */ - const ATTRIBUTE_UNIX_WORLD_EXECUTE = 1; + public const ATTRIBUTE_UNIX_WORLD_EXECUTE = 1; /** * Bit that represents a UNIX entry that is world writable. To be used with {@see RarEntry::getAttr()} on entries * whose host OS is UNIX. */ - const ATTRIBUTE_UNIX_WORLD_WRITE = 2; + public const ATTRIBUTE_UNIX_WORLD_WRITE = 2; /** * Bit that represents a UNIX entry that is world readable. To be used with {@see RarEntry::getAttr()} on entries * whose host OS is UNIX. */ - const ATTRIBUTE_UNIX_WORLD_READ = 4; + public const ATTRIBUTE_UNIX_WORLD_READ = 4; /** * Bit that represents a UNIX entry that is group executable. To be used with {@see RarEntry::getAttr()} on entries * whose host OS is UNIX. */ - const ATTRIBUTE_UNIX_GROUP_EXECUTE = 8; + public const ATTRIBUTE_UNIX_GROUP_EXECUTE = 8; /** * Bit that represents a UNIX entry that is group writable. To be used with {@see RarEntry::getAttr()} on entries * whose host OS is UNIX. */ - const ATTRIBUTE_UNIX_GROUP_WRITE = 16; + public const ATTRIBUTE_UNIX_GROUP_WRITE = 16; /** * Bit that represents a UNIX entry that is group readable. To be used with {@see RarEntry::getAttr()} on entries * whose host OS is UNIX. */ - const ATTRIBUTE_UNIX_GROUP_READ = 32; + public const ATTRIBUTE_UNIX_GROUP_READ = 32; /** * Bit that represents a UNIX entry that is owner executable. To be used with {@see RarEntry::getAttr()} on entries * whose host OS is UNIX. */ - const ATTRIBUTE_UNIX_OWNER_EXECUTE = 64; + public const ATTRIBUTE_UNIX_OWNER_EXECUTE = 64; /** * Bit that represents a UNIX entry that is owner writable. To be used with {@see RarEntry::getAttr()} on entries * whose host OS is UNIX. */ - const ATTRIBUTE_UNIX_OWNER_WRITE = 128; + public const ATTRIBUTE_UNIX_OWNER_WRITE = 128; /** * Bit that represents a UNIX entry that is owner readable. To be used with {@see RarEntry::getAttr()} on entries * whose host OS is UNIX. */ - const ATTRIBUTE_UNIX_OWNER_READ = 256; + public const ATTRIBUTE_UNIX_OWNER_READ = 256; /** * Bit that represents the UNIX sticky bit. To be used with {@see RarEntry::getAttr()} on entries whose host OS is * UNIX. */ - const ATTRIBUTE_UNIX_STICKY = 512; + public const ATTRIBUTE_UNIX_STICKY = 512; /** * Bit that represents the UNIX setgid attribute. To be used with {@see RarEntry::getAttr()} on entries whose host * OS is UNIX. */ - const ATTRIBUTE_UNIX_SETGID = 1024; + public const ATTRIBUTE_UNIX_SETGID = 1024; /** * Bit that represents the UNIX setuid attribute. To be used with {@see RarEntry::getAttr()} on entries whose host * OS is UNIX. */ - const ATTRIBUTE_UNIX_SETUID = 2048; + public const ATTRIBUTE_UNIX_SETUID = 2048; /** * Mask to isolate the last four bits (nibble) of UNIX attributes (_S_IFMT, the type of file mask). To be used with * {@see RarEntry::getAttr()} on entries whose host OS is UNIX and with the constants @@ -315,18 +297,18 @@ final class RarEntry * {@see RarEntry::ATTRIBUTE_UNIX_REGULAR_FILE}, * {@see RarEntry::ATTRIBUTE_UNIX_SYM_LINK} and {@see RarEntry::ATTRIBUTE_UNIX_SOCKET}. */ - const ATTRIBUTE_UNIX_FINAL_QUARTET = 61440; + public const ATTRIBUTE_UNIX_FINAL_QUARTET = 61440; /** * Unix FIFOs will have attributes whose last four bits have this value. To be used with {@see RarEntry::getAttr()} * on entries whose host OS is UNIX and with the constant {@see RarEntry::ATTRIBUTE_UNIX_FINAL_QUARTET}. */ - const ATTRIBUTE_UNIX_FIFO = 4096; + public const ATTRIBUTE_UNIX_FIFO = 4096; /** * Unix character devices will have attributes whose last four bits have this value. To be used with * {@see RarEntry::getAttr()} on entries whose host OS is UNIX and with the constant * {@see RarEntry::ATTRIBUTE_UNIX_FINAL_QUARTET}. */ - const ATTRIBUTE_UNIX_CHAR_DEV = 8192; + public const ATTRIBUTE_UNIX_CHAR_DEV = 8192; /** * Unix directories will have attributes whose last four bits have this value. To be used with * {@see RarEntry::getAttr()} on entries whose host OS is UNIX and with the constant @@ -335,32 +317,32 @@ final class RarEntry * See also {@see RarEntry::isDirectory()}, which also works with entries that were added in other operating * systems. */ - const ATTRIBUTE_UNIX_DIRECTORY = 16384; + public const ATTRIBUTE_UNIX_DIRECTORY = 16384; /** * Unix block devices will have attributes whose last four bits have this value. To be used with * {@see RarEntry::getAttr()} on entries whose host OS is UNIX and with the constant * {@see RarEntry::ATTRIBUTE_UNIX_FINAL_QUARTET}. */ - const ATTRIBUTE_UNIX_BLOCK_DEV = 24576; + public const ATTRIBUTE_UNIX_BLOCK_DEV = 24576; /** * Unix regular files (not directories) will have attributes whose last four bits have this value. To be used with * {@see RarEntry::getAttr()} on entries whose host OS is UNIX and with the constant * {@see RarEntry::ATTRIBUTE_UNIX_FINAL_QUARTET}. See also {@see RarEntry::isDirectory()}, which also works with * entries that were added in other operating systems. */ - const ATTRIBUTE_UNIX_REGULAR_FILE = 32768; + public const ATTRIBUTE_UNIX_REGULAR_FILE = 32768; /** * Unix symbolic links will have attributes whose last four bits have this value. To be used with * {@see RarEntry::getAttr()} on entries whose host OS is UNIX and with the constant * {@see RarEntry::ATTRIBUTE_UNIX_FINAL_QUARTET}. */ - const ATTRIBUTE_UNIX_SYM_LINK = 40960; + public const ATTRIBUTE_UNIX_SYM_LINK = 40960; /** * Unix sockets will have attributes whose last four bits have this value. To be used with * {@see RarEntry::getAttr()} on entries whose host OS is UNIX and with the constant * {@see RarEntry::ATTRIBUTE_UNIX_FINAL_QUARTET}. */ - const ATTRIBUTE_UNIX_SOCKET = 49152; + public const ATTRIBUTE_UNIX_SOCKET = 49152; /** * Extract entry from the archive * @@ -385,9 +367,7 @@ final class RarEntry * * @return bool TRUE on success or FALSE on failure */ - public function extract($dir, $filepath = "", $password = null, $extended_data = false) - { - } + public function extract($dir, $filepath = "", $password = null, $extended_data = false) {} /** * Get attributes of the entry * @@ -397,9 +377,7 @@ public function extract($dir, $filepath = "", $password = null, $extended_data * * @return int|false the attributes or FALSE on error */ - public function getAttr() - { - } + public function getAttr() {} /** * Get CRC of the entry * @@ -409,9 +387,7 @@ public function getAttr() * * @return string|false the CRC of the archive entry or FALSE on error */ - public function getCrc() - { - } + public function getCrc() {} /** * Get entry last modification time * @@ -419,9 +395,7 @@ public function getCrc() * * @return string|false entry last modification time as string in format YYYY-MM-DD HH:II:SS, or FALSE on errors */ - public function getFileTime() - { - } + public function getFileTime() {} /** * Get entry host OS * @@ -431,9 +405,7 @@ public function getFileTime() * * @return int|false the code of the host OS, or FALSE on error */ - public function getHostOs() - { - } + public function getHostOs() {} /** * Get pack method of the entry * @@ -443,9 +415,7 @@ public function getHostOs() * * @return int|false the method number or FALSE on error */ - public function getMethod() - { - } + public function getMethod() {} /** * Get name of the entry * @@ -455,9 +425,7 @@ public function getMethod() * * @return string|false the entry name as a string, or FALSE on error. */ - public function getName() - { - } + public function getName() {} /** * Get packed size of the entry * @@ -465,9 +433,7 @@ public function getName() * * @return int|false the packed size, or FALSE on error */ - public function getPackedSize() - { - } + public function getPackedSize() {} /** * Get file handler for entry * @@ -485,17 +451,13 @@ public function getPackedSize() * * @return resource|false file handler or FALSE on failure */ - public function getStream($password = '') - { - } + public function getStream($password = '') {} /** * Get unpacked size of the entry * @link https://php.net/manual/en/rarentry.getunpackedsize.php * @return int|false the unpacked size, or FALSE on error */ - public function getUnpackedSize() - { - } + public function getUnpackedSize() {} /** * Get minimum version of RAR program required to unpack the entry * @@ -506,9 +468,7 @@ public function getUnpackedSize() * * @return int|false the version or FALSE on error */ - public function getVersion() - { - } + public function getVersion() {} /** * Test whether an entry represents a directory * @@ -516,9 +476,7 @@ public function getVersion() * * @return bool TRUE if this entry is a directory and FALSE otherwise. */ - public function isDirectory() - { - } + public function isDirectory() {} /** * Test whether an entry is encrypted * @@ -526,9 +484,7 @@ public function isDirectory() * * @return bool TRUE if the current entry is encrypted and FALSE otherwise */ - public function isEncrypted() - { - } + public function isEncrypted() {} /** * Get text representation of entry * @@ -540,9 +496,7 @@ public function isEncrypted() * * @return string A textual representation for the entry */ - public function __toString() - { - } + public function __toString() {} } /** * This class serves two purposes: @@ -576,9 +530,7 @@ final class RarException extends Exception * * @return bool TRUE if exceptions are being used, FALSE otherwise */ - public static function isUsingExceptions() - { - } + public static function isUsingExceptions() {} /** * Activate and deactivate error handling with exceptions * @@ -586,7 +538,5 @@ public static function isUsingExceptions() * * @param bool $using_exceptions Should be TRUE to activate exception throwing, FALSE to deactivate (the default) */ - public static function setUsingExceptions($using_exceptions) - { - } + public static function setUsingExceptions($using_exceptions) {} } diff --git a/rdkafka/RdKafka.php b/rdkafka/RdKafka.php index 7f687dc93..b0e7ebccb 100755 --- a/rdkafka/RdKafka.php +++ b/rdkafka/RdKafka.php @@ -13,9 +13,7 @@ abstract class RdKafka * * @return int */ - public function addBrokers($broker_list) - { - } + public function addBrokers($broker_list) {} /** * @param bool $all_topics @@ -25,16 +23,12 @@ public function addBrokers($broker_list) * @throws Exception * @return Metadata */ - public function getMetadata($all_topics, $only_topic = null, $timeout_ms) - { - } + public function getMetadata($all_topics, $only_topic = null, $timeout_ms) {} /** * @return int */ - public function getOutQLen() - { - } + public function getOutQLen() {} /** * @param string $topic_name @@ -42,27 +36,21 @@ public function getOutQLen() * * @return Topic */ - public function newTopic($topic_name, ?TopicConf $topic_conf = null) - { - } + public function newTopic($topic_name, ?TopicConf $topic_conf = null) {} /** * @param int $timeout_ms * * @return void */ - public function poll($timeout_ms) - { - } + public function poll($timeout_ms) {} /** * @param int $level * * @return void */ - public function setLogLevel($level) - { - } + public function setLogLevel($level) {} /** * @param TopicPartition[] $topicPartitions @@ -70,9 +58,7 @@ public function setLogLevel($level) * * @return TopicPartition[] */ - public function offsetsForTimes(array $topicPartitions, int $timeout_ms) - { - } + public function offsetsForTimes(array $topicPartitions, int $timeout_ms) {} /** * @param string $topic @@ -83,25 +69,19 @@ public function offsetsForTimes(array $topicPartitions, int $timeout_ms) * * @return void */ - public function queryWatermarkOffsets(string $topic, int $partition, int &$low, int &$high, int $timeout_ms) - { - } + public function queryWatermarkOffsets(string $topic, int $partition, int &$low, int &$high, int $timeout_ms) {} /** * @param int $purge_flags * * @return int */ - public function purge(int $purge_flags) - { - } + public function purge(int $purge_flags) {} /** * @param int $timeout_ms * * @return int */ - public function flush(int $timeout_ms) - { - } + public function flush(int $timeout_ms) {} } diff --git a/rdkafka/RdKafka/Conf.php b/rdkafka/RdKafka/Conf.php index 1f9eb535d..2f4ecc3ba 100755 --- a/rdkafka/RdKafka/Conf.php +++ b/rdkafka/RdKafka/Conf.php @@ -7,16 +7,12 @@ */ class Conf { - public function __construct() - { - } + public function __construct() {} /** * @return array */ - public function dump() - { - } + public function dump() {} /** * @param string $name @@ -24,79 +20,61 @@ public function dump() * * @return void */ - public function set($name, $value) - { - } + public function set($name, $value) {} /** * @param TopicConf $topic_conf * * @return void */ - public function setDefaultTopicConf(TopicConf $topic_conf) - { - } + public function setDefaultTopicConf(TopicConf $topic_conf) {} /** * @param callable $callback * * @return void */ - public function setDrMsgCb(callable $callback) - { - } + public function setDrMsgCb(callable $callback) {} /** * @param callable $callback * * @return void */ - public function setErrorCb(callable $callback) - { - } + public function setErrorCb(callable $callback) {} /** * @param callable $callback * * @return void */ - public function setRebalanceCb(callable $callback) - { - } + public function setRebalanceCb(callable $callback) {} /** * @param callable $callback * * @return void */ - public function setStatsCb(callable $callback) - { - } + public function setStatsCb(callable $callback) {} /** * @param callable $callback * * @return void */ - public function setOffsetCommitCb(callable $callback) - { - } + public function setOffsetCommitCb(callable $callback) {} /** * @param callable $callback * * @return void */ - public function setConsumeCb(callable $callback) - { - } + public function setConsumeCb(callable $callback) {} /** * @param callable $callback * * @return void */ - public function setLogCb(callable $callback) - { - } + public function setLogCb(callable $callback) {} } diff --git a/rdkafka/RdKafka/Consumer.php b/rdkafka/RdKafka/Consumer.php index 13bb5000a..ff9a32f55 100755 --- a/rdkafka/RdKafka/Consumer.php +++ b/rdkafka/RdKafka/Consumer.php @@ -7,9 +7,7 @@ class Consumer extends \RdKafka /** * @param null|Conf $conf */ - public function __construct(?Conf $conf = null) - { - } + public function __construct(?Conf $conf = null) {} /** * @param string $topic_name @@ -17,14 +15,10 @@ public function __construct(?Conf $conf = null) * * @return ConsumerTopic */ - public function newTopic($topic_name, ?TopicConf $topic_conf = null) - { - } + public function newTopic($topic_name, ?TopicConf $topic_conf = null) {} /** * @return Queue */ - public function newQueue() - { - } + public function newQueue() {} } diff --git a/rdkafka/RdKafka/ConsumerTopic.php b/rdkafka/RdKafka/ConsumerTopic.php index d742ade30..a107f9717 100755 --- a/rdkafka/RdKafka/ConsumerTopic.php +++ b/rdkafka/RdKafka/ConsumerTopic.php @@ -4,9 +4,7 @@ class ConsumerTopic extends Topic { - private function __construct() - { - } + private function __construct() {} /** * @param int $partition @@ -14,9 +12,7 @@ private function __construct() * * @return Message */ - public function consume($partition, $timeout_ms) - { - } + public function consume($partition, $timeout_ms) {} /** * @param int $partition @@ -25,9 +21,7 @@ public function consume($partition, $timeout_ms) * * @return void */ - public function consumeQueueStart($partition, $offset, Queue $queue) - { - } + public function consumeQueueStart($partition, $offset, Queue $queue) {} /** * @param int $partition @@ -35,18 +29,14 @@ public function consumeQueueStart($partition, $offset, Queue $queue) * * @return void */ - public function consumeStart($partition, $offset) - { - } + public function consumeStart($partition, $offset) {} /** * @param int $partition * * @return void */ - public function consumeStop($partition) - { - } + public function consumeStop($partition) {} /** * @param int $partition @@ -54,7 +44,5 @@ public function consumeStop($partition) * * @return void */ - public function offsetStore($partition, $offset) - { - } + public function offsetStore($partition, $offset) {} } diff --git a/rdkafka/RdKafka/Exception.php b/rdkafka/RdKafka/Exception.php index d35f1f5fc..df6ea1c19 100755 --- a/rdkafka/RdKafka/Exception.php +++ b/rdkafka/RdKafka/Exception.php @@ -2,6 +2,4 @@ namespace RdKafka; -class Exception extends \Exception -{ -} +class Exception extends \Exception {} diff --git a/rdkafka/RdKafka/KafkaConsumer.php b/rdkafka/RdKafka/KafkaConsumer.php index 3d705e622..e2ee5c688 100755 --- a/rdkafka/RdKafka/KafkaConsumer.php +++ b/rdkafka/RdKafka/KafkaConsumer.php @@ -7,9 +7,7 @@ class KafkaConsumer /** * @param Conf $conf */ - public function __construct(Conf $conf) - { - } + public function __construct(Conf $conf) {} /** * @param TopicPartition[] $topic_partitions @@ -17,9 +15,7 @@ public function __construct(Conf $conf) * @throws Exception * @return void */ - public function assign($topic_partitions = null) - { - } + public function assign($topic_partitions = null) {} /** * @param null|Message|TopicPartition[] $message_or_offsets @@ -27,9 +23,7 @@ public function assign($topic_partitions = null) * @throws Exception * @return void */ - public function commit($message_or_offsets = null) - { - } + public function commit($message_or_offsets = null) {} /** * @param null|Message|TopicPartition[] $message_or_offsets @@ -37,9 +31,7 @@ public function commit($message_or_offsets = null) * @throws Exception * @return void */ - public function commitAsync($message_or_offsets = null) - { - } + public function commitAsync($message_or_offsets = null) {} /** * @param int $timeout_ms @@ -48,17 +40,13 @@ public function commitAsync($message_or_offsets = null) * @throws \InvalidArgumentException * @return Message */ - public function consume($timeout_ms) - { - } + public function consume($timeout_ms) {} /** * @throws Exception * @return TopicPartition[] */ - public function getAssignment() - { - } + public function getAssignment() {} /** * @param bool $all_topics @@ -68,16 +56,12 @@ public function getAssignment() * @throws Exception * @return Metadata */ - public function getMetadata($all_topics, $only_topic = null, $timeout_ms) - { - } + public function getMetadata($all_topics, $only_topic = null, $timeout_ms) {} /** * @return array */ - public function getSubscription() - { - } + public function getSubscription() {} /** * @param array $topics @@ -85,17 +69,13 @@ public function getSubscription() * @throws Exception * @return void */ - public function subscribe($topics) - { - } + public function subscribe($topics) {} /** * @throws Exception * @return void */ - public function unsubscribe() - { - } + public function unsubscribe() {} /** * @param array $topics @@ -103,9 +83,7 @@ public function unsubscribe() * * @return array */ - public function getCommittedOffsets(array $topics, int $timeout_ms) - { - } + public function getCommittedOffsets(array $topics, int $timeout_ms) {} /** * @param TopicPartition[] $topicPartitions @@ -113,9 +91,7 @@ public function getCommittedOffsets(array $topics, int $timeout_ms) * * @return TopicPartition[] */ - public function offsetsForTimes(array $topicPartitions, int $timeout_ms) - { - } + public function offsetsForTimes(array $topicPartitions, int $timeout_ms) {} /** * @param string $topic @@ -126,16 +102,12 @@ public function offsetsForTimes(array $topicPartitions, int $timeout_ms) * * @return void */ - public function queryWatermarkOffsets(string $topic, int $partition, int &$low, int &$high, int $timeout_ms) - { - } + public function queryWatermarkOffsets(string $topic, int $partition, int &$low, int &$high, int $timeout_ms) {} /** * @param TopicPartition[] $topicPartitions */ - public function getOffsetPositions(array $topicPartitions) - { - } + public function getOffsetPositions(array $topicPartitions) {} /** * @param string $topic_name @@ -143,14 +115,10 @@ public function getOffsetPositions(array $topicPartitions) * * @return Topic */ - public function newTopic($topic_name, ?TopicConf $topic_conf = null) - { - } + public function newTopic($topic_name, ?TopicConf $topic_conf = null) {} /** * @return void */ - public function close() - { - } + public function close() {} } diff --git a/rdkafka/RdKafka/KafkaConsumerTopic.php b/rdkafka/RdKafka/KafkaConsumerTopic.php index 89d29cbf9..043327c30 100755 --- a/rdkafka/RdKafka/KafkaConsumerTopic.php +++ b/rdkafka/RdKafka/KafkaConsumerTopic.php @@ -10,7 +10,5 @@ class KafkaConsumerTopic extends Topic * * @return void */ - public function offsetStore($partition, $offset) - { - } + public function offsetStore($partition, $offset) {} } diff --git a/rdkafka/RdKafka/KafkaErrorException.php b/rdkafka/RdKafka/KafkaErrorException.php index b0ba96500..f9bf2bf4c 100644 --- a/rdkafka/RdKafka/KafkaErrorException.php +++ b/rdkafka/RdKafka/KafkaErrorException.php @@ -8,39 +8,29 @@ class KafkaErrorException extends \Exception * @param string $message * @param int $code * @param string $errorString - * @param boolean $isFatal - * @param boolean $isRetriable - * @param boolean $transactionRequiresAbort + * @param bool $isFatal + * @param bool $isRetriable + * @param bool $transactionRequiresAbort */ - public function __construct($message, $code, $errorString, $isFatal, $isRetriable, $transactionRequiresAbort) - { - } + public function __construct($message, $code, $errorString, $isFatal, $isRetriable, $transactionRequiresAbort) {} /** * @return string */ - public function getErrorString() - { - } + public function getErrorString() {} /** - * @return boolean + * @return bool */ - public function isFatal() - { - } + public function isFatal() {} /** - * @return boolean + * @return bool */ - public function isRetriable() - { - } + public function isRetriable() {} /** - * @return boolean + * @return bool */ - public function transactionRequiresAbort() - { - } + public function transactionRequiresAbort() {} } diff --git a/rdkafka/RdKafka/Message.php b/rdkafka/RdKafka/Message.php index 334e30e89..535b14455 100755 --- a/rdkafka/RdKafka/Message.php +++ b/rdkafka/RdKafka/Message.php @@ -52,7 +52,5 @@ class Message /** * @return string */ - public function errstr() - { - } + public function errstr() {} } diff --git a/rdkafka/RdKafka/Metadata.php b/rdkafka/RdKafka/Metadata.php index 70a820d25..6c25df620 100755 --- a/rdkafka/RdKafka/Metadata.php +++ b/rdkafka/RdKafka/Metadata.php @@ -10,28 +10,20 @@ class Metadata /** * @return Collection */ - public function getBrokers() - { - } + public function getBrokers() {} /** * @return Collection|Topic[] */ - public function getTopics() - { - } + public function getTopics() {} /** * @return int */ - public function getOrigBrokerId() - { - } + public function getOrigBrokerId() {} /** * @return string */ - public function getOrigBrokerName() - { - } + public function getOrigBrokerName() {} } diff --git a/rdkafka/RdKafka/Metadata/Collection.php b/rdkafka/RdKafka/Metadata/Collection.php index 40091e7c8..f8c7e1079 100755 --- a/rdkafka/RdKafka/Metadata/Collection.php +++ b/rdkafka/RdKafka/Metadata/Collection.php @@ -7,42 +7,30 @@ class Collection implements \Iterator, \Countable /** * @return mixed */ - public function current() - { - } + public function current() {} /** * @return void */ - public function next() - { - } + public function next() {} /** * @return mixed */ - public function key() - { - } + public function key() {} /** * @return bool */ - public function valid() - { - } + public function valid() {} /** * @return void */ - public function rewind() - { - } + public function rewind() {} /** * @return int */ - public function count() - { - } + public function count() {} } diff --git a/rdkafka/RdKafka/Metadata/Partition.php b/rdkafka/RdKafka/Metadata/Partition.php index 502929e9d..393eb117b 100755 --- a/rdkafka/RdKafka/Metadata/Partition.php +++ b/rdkafka/RdKafka/Metadata/Partition.php @@ -7,35 +7,25 @@ class Partition /** * @return int */ - public function getId() - { - } + public function getId() {} /** * @return mixed */ - public function getErr() - { - } + public function getErr() {} /** * @return mixed */ - public function getLeader() - { - } + public function getLeader() {} /** * @return mixed */ - public function getReplicas() - { - } + public function getReplicas() {} /** * @return mixed */ - public function getIsrs() - { - } + public function getIsrs() {} } diff --git a/rdkafka/RdKafka/Metadata/Topic.php b/rdkafka/RdKafka/Metadata/Topic.php index 5d98a1584..949ebec7d 100755 --- a/rdkafka/RdKafka/Metadata/Topic.php +++ b/rdkafka/RdKafka/Metadata/Topic.php @@ -7,21 +7,15 @@ class Topic /** * @return string */ - public function getTopic() - { - } + public function getTopic() {} /** * @return Partition[] */ - public function getPartitions() - { - } + public function getPartitions() {} /** * @return mixed */ - public function getErr() - { - } + public function getErr() {} } diff --git a/rdkafka/RdKafka/Producer.php b/rdkafka/RdKafka/Producer.php index 4a086f606..063b5b7cd 100755 --- a/rdkafka/RdKafka/Producer.php +++ b/rdkafka/RdKafka/Producer.php @@ -7,9 +7,7 @@ class Producer extends \RdKafka /** * @param null|Conf $conf */ - public function __construct(Conf $conf = null) - { - } + public function __construct(Conf $conf = null) {} /** * @param string $topic_name @@ -17,41 +15,31 @@ public function __construct(Conf $conf = null) * * @return ProducerTopic */ - public function newTopic($topic_name, ?TopicConf $topic_conf = null) - { - } + public function newTopic($topic_name, ?TopicConf $topic_conf = null) {} /** * @param int $timeoutMs * * @return void */ - public function initTransactions(int $timeoutMs) - { - } + public function initTransactions(int $timeoutMs) {} /** * @return void */ - public function beginTransaction() - { - } + public function beginTransaction() {} /** * @param int $timeoutMs * * @return void */ - public function commitTransaction(int $timeoutMs) - { - } + public function commitTransaction(int $timeoutMs) {} /** * @param int $timeoutMs * * @return void */ - public function abortTransaction(int $timeoutMs) - { - } + public function abortTransaction(int $timeoutMs) {} } diff --git a/rdkafka/RdKafka/ProducerTopic.php b/rdkafka/RdKafka/ProducerTopic.php index 934100ff3..973c73ac6 100755 --- a/rdkafka/RdKafka/ProducerTopic.php +++ b/rdkafka/RdKafka/ProducerTopic.php @@ -4,9 +4,7 @@ class ProducerTopic extends Topic { - private function __construct() - { - } + private function __construct() {} /** * @param int $partition @@ -16,9 +14,7 @@ private function __construct() * * @return void */ - public function produce($partition, $msgflags, $payload = null, $key = null) - { - } + public function produce($partition, $msgflags, $payload = null, $key = null) {} /** * @param int $partition @@ -30,7 +26,5 @@ public function produce($partition, $msgflags, $payload = null, $key = null) * * @return void */ - public function producev($partition, $msgflags, $payload = null, $key = null, $headers = null, $timestamp_ms = 0) - { - } + public function producev($partition, $msgflags, $payload = null, $key = null, $headers = null, $timestamp_ms = 0) {} } diff --git a/rdkafka/RdKafka/Queue.php b/rdkafka/RdKafka/Queue.php index 2257aeda3..179ac1e86 100755 --- a/rdkafka/RdKafka/Queue.php +++ b/rdkafka/RdKafka/Queue.php @@ -4,16 +4,12 @@ class Queue { - private function __construct() - { - } + private function __construct() {} /** * @param int $timeout_ms * * @return Message|null */ - public function consume($timeout_ms) - { - } + public function consume($timeout_ms) {} } diff --git a/rdkafka/RdKafka/Topic.php b/rdkafka/RdKafka/Topic.php index 2371c4805..6abe773d3 100755 --- a/rdkafka/RdKafka/Topic.php +++ b/rdkafka/RdKafka/Topic.php @@ -7,7 +7,5 @@ abstract class Topic /** * @return string */ - public function getName() - { - } + public function getName() {} } diff --git a/rdkafka/RdKafka/TopicConf.php b/rdkafka/RdKafka/TopicConf.php index 08de0c84d..c743ea8ab 100755 --- a/rdkafka/RdKafka/TopicConf.php +++ b/rdkafka/RdKafka/TopicConf.php @@ -10,9 +10,7 @@ class TopicConf /** * @return array */ - public function dump() - { - } + public function dump() {} /** * @param string $name @@ -20,16 +18,12 @@ public function dump() * * @return void */ - public function set($name, $value) - { - } + public function set($name, $value) {} /** * @param int $partitioner * * @return void */ - public function setPartitioner($partitioner) - { - } + public function setPartitioner($partitioner) {} } diff --git a/rdkafka/RdKafka/TopicPartition.php b/rdkafka/RdKafka/TopicPartition.php index 5bfa00a65..23e16dff7 100755 --- a/rdkafka/RdKafka/TopicPartition.php +++ b/rdkafka/RdKafka/TopicPartition.php @@ -9,55 +9,41 @@ class TopicPartition * @param int $partition * @param int $offset */ - public function __construct($topic, $partition, $offset = null) - { - } + public function __construct($topic, $partition, $offset = null) {} /** * @return int */ - public function getOffset() - { - } + public function getOffset() {} /** * @return int */ - public function getPartition() - { - } + public function getPartition() {} /** * @return string */ - public function getTopic() - { - } + public function getTopic() {} /** * @param int $offset * * @return void */ - public function setOffset($offset) - { - } + public function setOffset($offset) {} /** * @param int $partition * * @return void */ - public function setPartition($partition) - { - } + public function setPartition($partition) {} /** * @param string $topic_name * * @return void */ - public function setTopic($topic_name) - { - } + public function setTopic($topic_name) {} } diff --git a/rdkafka/functions.php b/rdkafka/functions.php index bc03bc3be..4c751c887 100755 --- a/rdkafka/functions.php +++ b/rdkafka/functions.php @@ -4,44 +4,36 @@ * Returns the full list of error codes. * @return array */ -function rd_kafka_get_err_descs(){} +function rd_kafka_get_err_descs() {} /** * Retrieve the current number of threads in use by librdkafka. * @return int */ -function rd_kafka_thread_cnt(){} +function rd_kafka_thread_cnt() {} /** * @param int $err Error code * * @return string Returns the error as a string. */ -function rd_kafka_err2str($err) -{ -} +function rd_kafka_err2str($err) {} /** * @param int $errnox A system errno * * @return int Returns a kafka error code as an integer. */ -function rd_kafka_errno2err($errnox) -{ -} +function rd_kafka_errno2err($errnox) {} /** * @return int Returns the system errno as an integer. */ -function rd_kafka_errno() -{ -} +function rd_kafka_errno() {} /** * @param int $cnt * * @return int Returns the special offset as an integer. */ -function rd_kafka_offset_tail($cnt) -{ -} +function rd_kafka_offset_tail($cnt) {} diff --git a/readline/readline.php b/readline/readline.php index 483948b61..40ca1cf79 100644 --- a/readline/readline.php +++ b/readline/readline.php @@ -11,7 +11,7 @@ * @return string|false a single string from the user. The line returned has the ending newline removed. * If there is no more data to read, then FALSE is returned. */ -function readline (?string $prompt): string|false {} +function readline(?string $prompt): string|false {} /** * Gets/sets various internal readline variables @@ -31,7 +31,7 @@ function readline (?string $prompt): string|false {} *

    * If called with one or two parameters, the old value is returned. */ -function readline_info (?string $var_name, $value): mixed {} +function readline_info(?string $var_name, $value): mixed {} /** * Adds a line to the history @@ -41,16 +41,14 @@ function readline_info (?string $var_name, $value): mixed {} *

    * @return bool TRUE on success or FALSE on failure. */ -function readline_add_history (string $prompt): bool -{} +function readline_add_history(string $prompt): bool {} /** * Clears the history * @link https://php.net/manual/en/function.readline-clear-history.php * @return bool TRUE on success or FALSE on failure. */ -function readline_clear_history (): bool -{} +function readline_clear_history(): bool {} /** * Lists the history @@ -58,8 +56,7 @@ function readline_clear_history (): bool * @return array an array of the entire command line history. The elements are * indexed by integers starting at zero. */ -function readline_list_history (): array -{} +function readline_list_history(): array {} /** * Reads the history @@ -69,8 +66,7 @@ function readline_list_history (): array *

    * @return bool TRUE on success or FALSE on failure. */ -function readline_read_history (?string $filename): bool -{} +function readline_read_history(?string $filename): bool {} /** * Writes the history @@ -80,8 +76,7 @@ function readline_read_history (?string $filename): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function readline_write_history (?string $filename): bool -{} +function readline_write_history(?string $filename): bool {} /** * Registers a completion function @@ -92,8 +87,7 @@ function readline_write_history (?string $filename): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function readline_completion_function (callable $callback): bool -{} +function readline_completion_function(callable $callback): bool {} /** * Initializes the readline callback interface and terminal, prints the prompt and returns immediately @@ -107,15 +101,14 @@ function readline_completion_function (callable $callback): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function readline_callback_handler_install (string $prompt, callable $callback): bool -{} +function readline_callback_handler_install(string $prompt, callable $callback): bool {} /** * Reads a character and informs the readline callback interface when a line is received * @link https://php.net/manual/en/function.readline-callback-read-char.php * @return void No value is returned. */ -function readline_callback_read_char (): void {} +function readline_callback_read_char(): void {} /** * Removes a previously installed callback handler and restores terminal settings @@ -123,24 +116,22 @@ function readline_callback_read_char (): void {} * @return bool TRUE if a previously installed callback handler was removed, or * FALSE if one could not be found. */ -function readline_callback_handler_remove (): bool -{} +function readline_callback_handler_remove(): bool {} /** * Redraws the display * @link https://php.net/manual/en/function.readline-redisplay.php * @return void No value is returned. */ -function readline_redisplay (): void {} +function readline_redisplay(): void {} /** * Inform readline that the cursor has moved to a new line * @link https://php.net/manual/en/function.readline-on-new-line.php * @return void No value is returned. */ -function readline_on_new_line (): void {} +function readline_on_new_line(): void {} -define ('READLINE_LIB', "libedit"); +define('READLINE_LIB', "libedit"); // End of readline v.5.5.3-1ubuntu2.1 -?> diff --git a/recode/recode.php b/recode/recode.php index 26f23cc44..4db76bec7 100644 --- a/recode/recode.php +++ b/recode/recode.php @@ -14,7 +14,7 @@ * @return string|false the recoded string or FALSE, if unable to * perform the recode request. */ -function recode_string ($request, $string) {} +function recode_string($request, $string) {} /** * Recode from file to file according to recode request @@ -32,7 +32,7 @@ function recode_string ($request, $string) {} *

    * @return bool FALSE, if unable to comply, TRUE otherwise. */ -function recode_file ($request, $input, $output) {} +function recode_file($request, $input, $output) {} /** * Alias of recode_string @@ -40,7 +40,6 @@ function recode_file ($request, $input, $output) {} * @param $request * @param $str */ -function recode ($request, $str) {} +function recode($request, $str) {} // End of recode v. -?> diff --git a/redis/Redis.php b/redis/Redis.php index 37577d2ad..ef63fff8f 100644 --- a/redis/Redis.php +++ b/redis/Redis.php @@ -10,96 +10,94 @@ */ class Redis { - const AFTER = 'after'; - const BEFORE = 'before'; + public const AFTER = 'after'; + public const BEFORE = 'before'; /** * Options */ - const OPT_SERIALIZER = 1; - const OPT_PREFIX = 2; - const OPT_READ_TIMEOUT = 3; - const OPT_SCAN = 4; - const OPT_FAILOVER = 5; - const OPT_TCP_KEEPALIVE = 6; - const OPT_COMPRESSION = 7; - const OPT_REPLY_LITERAL = 8; - const OPT_COMPRESSION_LEVEL = 9; + public const OPT_SERIALIZER = 1; + public const OPT_PREFIX = 2; + public const OPT_READ_TIMEOUT = 3; + public const OPT_SCAN = 4; + public const OPT_FAILOVER = 5; + public const OPT_TCP_KEEPALIVE = 6; + public const OPT_COMPRESSION = 7; + public const OPT_REPLY_LITERAL = 8; + public const OPT_COMPRESSION_LEVEL = 9; /** * Cluster options */ - const FAILOVER_NONE = 0; - const FAILOVER_ERROR = 1; - const FAILOVER_DISTRIBUTE = 2; - const FAILOVER_DISTRIBUTE_SLAVES = 3; + public const FAILOVER_NONE = 0; + public const FAILOVER_ERROR = 1; + public const FAILOVER_DISTRIBUTE = 2; + public const FAILOVER_DISTRIBUTE_SLAVES = 3; /** * SCAN options */ - const SCAN_NORETRY = 0; - const SCAN_RETRY = 1; + public const SCAN_NORETRY = 0; + public const SCAN_RETRY = 1; /** * @since 5.3.0 */ - const SCAN_PREFIX = 2; + public const SCAN_PREFIX = 2; /** * @since 5.3.0 */ - const SCAN_NOPREFIX = 3; + public const SCAN_NOPREFIX = 3; /** * Serializers */ - const SERIALIZER_NONE = 0; - const SERIALIZER_PHP = 1; - const SERIALIZER_IGBINARY = 2; - const SERIALIZER_MSGPACK = 3; - const SERIALIZER_JSON = 4; + public const SERIALIZER_NONE = 0; + public const SERIALIZER_PHP = 1; + public const SERIALIZER_IGBINARY = 2; + public const SERIALIZER_MSGPACK = 3; + public const SERIALIZER_JSON = 4; /** * Compressions */ - const COMPRESSION_NONE = 0; - const COMPRESSION_LZF = 1; - const COMPRESSION_ZSTD = 2; - const COMPRESSION_LZ4 = 3; + public const COMPRESSION_NONE = 0; + public const COMPRESSION_LZF = 1; + public const COMPRESSION_ZSTD = 2; + public const COMPRESSION_LZ4 = 3; /** * Compression ZSTD levels */ - const COMPRESSION_ZSTD_MIN = 1; - const COMPRESSION_ZSTD_DEFAULT = 3; - const COMPRESSION_ZSTD_MAX = 22; + public const COMPRESSION_ZSTD_MIN = 1; + public const COMPRESSION_ZSTD_DEFAULT = 3; + public const COMPRESSION_ZSTD_MAX = 22; /** * Multi */ - const ATOMIC = 0; - const MULTI = 1; - const PIPELINE = 2; + public const ATOMIC = 0; + public const MULTI = 1; + public const PIPELINE = 2; /** * Type */ - const REDIS_NOT_FOUND = 0; - const REDIS_STRING = 1; - const REDIS_SET = 2; - const REDIS_LIST = 3; - const REDIS_ZSET = 4; - const REDIS_HASH = 5; - const REDIS_STREAM = 6; + public const REDIS_NOT_FOUND = 0; + public const REDIS_STRING = 1; + public const REDIS_SET = 2; + public const REDIS_LIST = 3; + public const REDIS_ZSET = 4; + public const REDIS_HASH = 5; + public const REDIS_STREAM = 6; /** * Creates a Redis client * * @example $redis = new Redis(); */ - public function __construct() - { - } + public function __construct() {} /** * Connects to a Redis instance. @@ -128,8 +126,7 @@ public function connect( $reserved = null, $retryInterval = 0, $readTimeout = 0.0 - ) { - } + ) {} /** * Connects to a Redis instance. @@ -151,35 +148,28 @@ public function open( $reserved = null, $retryInterval = 0, $readTimeout = 0.0 - ) { - } + ) {} /** * A method to determine if a phpredis object thinks it's connected to a server * * @return bool Returns TRUE if phpredis thinks it's connected and FALSE if not */ - public function isConnected() - { - } + public function isConnected() {} /** * Retrieve our host or unix socket that we're connected to * * @return string|false The host or unix socket we're connected to or FALSE if we're not connected */ - public function getHost() - { - } + public function getHost() {} /** * Get the port we're connected to * * @return int|false Returns the port we're connected to or FALSE if we're not connected */ - public function getPort() - { - } + public function getPort() {} /** * Get the database number phpredis is pointed to @@ -187,18 +177,14 @@ public function getPort() * @return int|bool Returns the database number (int) phpredis thinks it's pointing to * or FALSE if we're not connected */ - public function getDbNum() - { - } + public function getDbNum() {} /** * Get the (write) timeout in use for phpredis * * @return float|false The timeout (DOUBLE) specified in our connect call or FALSE if we're not connected */ - public function getTimeout() - { - } + public function getTimeout() {} /** * Get the read timeout specified to phpredis or FALSE if we're not connected @@ -206,9 +192,7 @@ public function getTimeout() * @return float|bool Returns the read timeout (which can be set using setOption and Redis::OPT_READ_TIMEOUT) * or FALSE if we're not connected */ - public function getReadTimeout() - { - } + public function getReadTimeout() {} /** * Gets the persistent ID that phpredis is using @@ -218,9 +202,7 @@ public function getReadTimeout() * NULL if we're not using a persistent ID, * and FALSE if we're not connected */ - public function getPersistentID() - { - } + public function getPersistentID() {} /** * Get the password used to authenticate the phpredis connection @@ -228,9 +210,7 @@ public function getPersistentID() * @return string|null|bool Returns the password used to authenticate a phpredis session or NULL if none was used, * and FALSE if we're not connected */ - public function getAuth() - { - } + public function getAuth() {} /** * Connects to a Redis instance or reuse a connection already established with pconnect/popen. @@ -278,8 +258,7 @@ public function pconnect( $persistentId = null, $retryInterval = 0, $readTimeout = 0.0 - ) { - } + ) {} /** * @param string $host @@ -299,8 +278,7 @@ public function popen( $persistentId = '', $retryInterval = 0, $readTimeout = 0.0 - ) { - } + ) {} /** * Disconnects from the Redis instance. @@ -311,9 +289,7 @@ public function popen( * * @return bool TRUE on success, FALSE on error */ - public function close() - { - } + public function close() {} /** * Swap one Redis database with another atomically @@ -333,9 +309,7 @@ public function close() * $redis->swapdb(0, 1); * */ - public function swapdb(int $db1, int $db2) - { - } + public function swapdb(int $db1, int $db2) {} /** * Set client option @@ -364,9 +338,7 @@ public function swapdb(int $db1, int $db2) * $redis->setOption(Redis::OPT_SCAN, Redis::SCAN_RETRY); * */ - public function setOption($option, $value) - { - } + public function setOption($option, $value) {} /** * Get client option @@ -380,9 +352,7 @@ public function setOption($option, $value) * // return option value * $redis->getOption(Redis::OPT_SERIALIZER); */ - public function getOption($option) - { - } + public function getOption($option) {} /** * Check the current connection status @@ -394,9 +364,7 @@ public function getOption($option) * @throws RedisException * @link https://redis.io/commands/ping */ - public function ping($message = null) - { - } + public function ping($message = null) {} /** * Echo the given string @@ -407,9 +375,7 @@ public function ping($message = null) * * @link https://redis.io/commands/echo */ - public function echo($message) - { - } + public function echo($message) {} /** * Get the value related to the specified key @@ -438,9 +404,7 @@ public function echo($message) * } * */ - public function get($key) - { - } + public function get($key) {} /** * Set the string value in argument as value of the key. @@ -473,9 +437,7 @@ public function get($key) * * @link https://redis.io/commands/set */ - public function set($key, $value, $timeout = null) - { - } + public function set($key, $value, $timeout = null) {} /** * Set the string value in argument as value of the key, with a time to live. @@ -489,9 +451,7 @@ public function set($key, $value, $timeout = null) * @link https://redis.io/commands/setex * @example $redis->setex('key', 3600, 'value'); // sets key → value, with 1h TTL. */ - public function setex($key, $ttl, $value) - { - } + public function setex($key, $ttl, $value) {} /** * Set the value and expiration in milliseconds of a key. @@ -506,9 +466,7 @@ public function setex($key, $ttl, $value) * @link https://redis.io/commands/psetex * @example $redis->psetex('key', 1000, 'value'); // sets key → value, with 1sec TTL. */ - public function psetex($key, $ttl, $value) - { - } + public function psetex($key, $ttl, $value) {} /** * Set the string value in argument as value of the key if the key doesn't already exist in the database. @@ -525,9 +483,7 @@ public function psetex($key, $ttl, $value) * $redis->setnx('key', 'value'); // return FALSE * */ - public function setnx($key, $value) - { - } + public function setnx($key, $value) {} /** * Remove specified keys. @@ -549,9 +505,7 @@ public function setnx($key, $value) * $redis->del(['key3', 'key4']); // return 2 * */ - public function del($key1, ...$otherKeys) - { - } + public function del($key1, ...$otherKeys) {} /** * @param string|string[] $key1 @@ -561,9 +515,7 @@ public function del($key1, ...$otherKeys) * @return int Number of keys deleted */ #[Deprecated(replacement: "%class%->del(%parametersList%)")] - public function delete($key1, $key2 = null, $key3 = null) - { - } + public function delete($key1, $key2 = null, $key3 = null) {} /** * Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking. @@ -586,9 +538,7 @@ public function delete($key1, $key2 = null, $key3 = null) * $redis->unlink(array('key3', 'key4')); // return 2 * */ - public function unlink($key1, $key2 = null, $key3 = null) - { - } + public function unlink($key1, $key2 = null, $key3 = null) {} /** * Enter and exit transactional mode. @@ -619,9 +569,7 @@ public function unlink($key1, $key2 = null, $key3 = null) * // 3 => 'val2'); * */ - public function multi($mode = Redis::MULTI) - { - } + public function multi($mode = Redis::MULTI) {} /** * Returns a Redis instance which can simply transmitted faster to the server. @@ -650,10 +598,7 @@ public function multi($mode = Redis::MULTI) * // 4 => '+PONG'); * */ - public function pipeline() - { - } - + public function pipeline() {} /** * @return void|array @@ -661,17 +606,13 @@ public function pipeline() * @see multi() * @link https://redis.io/commands/exec */ - public function exec() - { - } + public function exec() {} /** * @see multi() * @link https://redis.io/commands/discard */ - public function discard() - { - } + public function discard() {} /** * Watches a key for modifications by another client. If the key is modified between WATCH and EXEC, @@ -691,17 +632,13 @@ public function discard() * // $ret = FALSE if x has been modified between the call to WATCH and the call to EXEC. * */ - public function watch($key) - { - } + public function watch($key) {} /** * @see watch() * @link https://redis.io/commands/unwatch */ - public function unwatch() - { - } + public function unwatch() {} /** * Subscribe to channels. @@ -736,9 +673,7 @@ public function unwatch() * $redis->subscribe(array('chan-1', 'chan-2', 'chan-3'), 'f'); // subscribe to 3 chans * */ - public function subscribe($channels, $callback) - { - } + public function subscribe($channels, $callback) {} /** * Subscribe to channels by pattern @@ -758,9 +693,7 @@ public function subscribe($channels, $callback) * } * */ - public function psubscribe($patterns, $callback) - { - } + public function psubscribe($patterns, $callback) {} /** * Publish messages to channels. @@ -775,9 +708,7 @@ public function psubscribe($patterns, $callback) * @link https://redis.io/commands/publish * @example $redis->publish('chan-1', 'hello, world!'); // send message. */ - public function publish($channel, $message) - { - } + public function publish($channel, $message) {} /** * A command allowing you to get information on the Redis pub/sub system @@ -802,9 +733,7 @@ public function publish($channel, $message) * $redis->pubsub('numpat'); // Get the number of pattern subscribers * */ - public function pubsub($keyword, $argument) - { - } + public function pubsub($keyword, $argument) {} /** * Stop listening for messages posted to the given channels. @@ -813,9 +742,7 @@ public function pubsub($keyword, $argument) * * @link https://redis.io/commands/unsubscribe */ - public function unsubscribe($channels = null) - { - } + public function unsubscribe($channels = null) {} /** * Stop listening for messages posted to the given channels. @@ -824,9 +751,7 @@ public function unsubscribe($channels = null) * * @link https://redis.io/commands/punsubscribe */ - public function punsubscribe($patterns = null) - { - } + public function punsubscribe($patterns = null) {} /** * Verify if the specified key/keys exists @@ -851,9 +776,7 @@ public function punsubscribe($patterns = null) * $redis->exists('foo', 'bar', 'baz'); // 3 * */ - public function exists($key) - { - } + public function exists($key) {} /** * Increment the number stored at key by one. @@ -871,9 +794,7 @@ public function exists($key) * $redis->incr('key1'); // 4 * */ - public function incr($key) - { - } + public function incr($key) {} /** * Increment the float value of a key by the given amount @@ -891,9 +812,7 @@ public function incr($key) * $redis->get('x'); // float(4.5) * */ - public function incrByFloat($key, $increment) - { - } + public function incrByFloat($key, $increment) {} /** * Increment the number stored at key by one. @@ -914,9 +833,7 @@ public function incrByFloat($key, $increment) * $redis->incrBy('key1', 10); // 14 * */ - public function incrBy($key, $value) - { - } + public function incrBy($key, $value) {} /** * Decrement the number stored at key by one. @@ -933,9 +850,7 @@ public function incrBy($key, $value) * $redis->decr('key1'); // -3 * */ - public function decr($key) - { - } + public function decr($key) {} /** * Decrement the number stored at key by one. @@ -955,9 +870,7 @@ public function decr($key) * $redis->decrBy('key1', 10); // -13 * */ - public function decrBy($key, $value) - { - } + public function decrBy($key, $value) {} /** * Adds the string values to the head (left) of the list. @@ -983,9 +896,7 @@ public function decrBy($key, $value) * // } * */ - public function lPush($key, ...$value1) - { - } + public function lPush($key, ...$value1) {} /** * Adds the string values to the tail (right) of the list. @@ -1011,9 +922,7 @@ public function lPush($key, ...$value1) * // } * */ - public function rPush($key, ...$value1) - { - } + public function rPush($key, ...$value1) {} /** * Adds the string value to the head (left) of the list if the list exists. @@ -1034,9 +943,7 @@ public function rPush($key, ...$value1) * // key1 now points to the following list: [ 'A', 'B', 'C' ] * */ - public function lPushx($key, $value) - { - } + public function lPushx($key, $value) {} /** * Adds the string value to the tail (right) of the list if the ist exists. FALSE in case of Failure. @@ -1057,9 +964,7 @@ public function lPushx($key, $value) * // key1 now points to the following list: [ 'A', 'B', 'C' ] * */ - public function rPushx($key, $value) - { - } + public function rPushx($key, $value) {} /** * Returns and removes the first element of the list. @@ -1077,9 +982,7 @@ public function rPushx($key, $value) * $redis->lPop('key1'); // key1 => [ 'B', 'C' ] * */ - public function lPop($key) - { - } + public function lPop($key) {} /** * Returns and removes the last element of the list. @@ -1097,9 +1000,7 @@ public function lPop($key) * $redis->rPop('key1'); // key1 => [ 'A', 'B' ] * */ - public function rPop($key) - { - } + public function rPop($key) {} /** * Is a blocking lPop primitive. If at least one of the lists contains at least one element, @@ -1141,9 +1042,7 @@ public function rPop($key) * // array('key1', 'A') is returned * */ - public function blPop($keys, $timeout) - { - } + public function blPop($keys, $timeout) {} /** * Is a blocking rPop primitive. If at least one of the lists contains at least one element, @@ -1186,9 +1085,7 @@ public function blPop($keys, $timeout) * // array('key1', 'A') is returned * */ - public function brPop(array $keys, $timeout) - { - } + public function brPop(array $keys, $timeout) {} /** * Returns the size of a list identified by Key. If the list didn't exist or is empty, @@ -1210,9 +1107,7 @@ public function brPop(array $keys, $timeout) * $redis->lLen('key1'); // 2 * */ - public function lLen($key) - { - } + public function lLen($key) {} /** * @link https://redis.io/commands/llen @@ -1222,9 +1117,7 @@ public function lLen($key) * @return int The size of the list identified by Key exists */ #[Deprecated(replacement: '%class%->lLen(%parametersList%)')] - public function lSize($key) - { - } + public function lSize($key) {} /** * Return the specified element of the list stored at the specified key. @@ -1249,9 +1142,7 @@ public function lSize($key) * $redis->lIndex('key1', 10); // `FALSE` * */ - public function lIndex($key, $index) - { - } + public function lIndex($key, $index) {} /** * @link https://redis.io/commands/lindex @@ -1261,9 +1152,7 @@ public function lIndex($key, $index) * @return mixed|bool the element at this index */ #[Deprecated(replacement: '%class%->lIndex(%parametersList%)')] - public function lGet($key, $index) - { - } + public function lGet($key, $index) {} /** * Set the list at index with the new value. @@ -1286,9 +1175,7 @@ public function lGet($key, $index) * $redis->lIndex('key1', 0); // 'X' * */ - public function lSet($key, $index, $value) - { - } + public function lSet($key, $index, $value) {} /** * Returns the specified elements of the list stored at the specified key in @@ -1310,9 +1197,7 @@ public function lSet($key, $index, $value) * $redis->lRange('key1', 0, -1); // array('A', 'B', 'C') * */ - public function lRange($key, $start, $end) - { - } + public function lRange($key, $start, $end) {} /** * @link https://redis.io/commands/lrange @@ -1323,9 +1208,7 @@ public function lRange($key, $start, $end) * @return array */ #[Deprecated(replacement: '%class%->lRange(%parametersList%)')] - public function lGetRange($key, $start, $end) - { - } + public function lGetRange($key, $start, $end) {} /** * Trims an existing list so that it will contain only a specified range of elements. @@ -1347,9 +1230,7 @@ public function lGetRange($key, $start, $end) * $redis->lRange('key1', 0, -1); // array('A', 'B') * */ - public function lTrim($key, $start, $stop) - { - } + public function lTrim($key, $start, $stop) {} /** * @link https://redis.io/commands/ltrim @@ -1359,9 +1240,7 @@ public function lTrim($key, $start, $stop) * @param int $stop */ #[Deprecated(replacement: '%class%->lTrim(%parametersList%)')] - public function listTrim($key, $start, $stop) - { - } + public function listTrim($key, $start, $stop) {} /** * Removes the first count occurrences of the value element from the list. @@ -1389,9 +1268,7 @@ public function listTrim($key, $start, $stop) * $redis->lRange('key1', 0, -1); // array('C', 'B', 'A') * */ - public function lRem($key, $value, $count) - { - } + public function lRem($key, $value, $count) {} /** * @link https://redis.io/commands/lremove @@ -1401,9 +1278,7 @@ public function lRem($key, $value, $count) * @param int $count */ #[Deprecated(replacement: '%class%->lRem(%parametersList%)')] - public function lRemove($key, $value, $count) - { - } + public function lRemove($key, $value, $count) {} /** * Insert value in the list before or after the pivot value. the parameter options @@ -1436,9 +1311,7 @@ public function lRemove($key, $value, $count) * $redis->lInsert('key1', Redis::AFTER, 'W', 'value'); // -1 * */ - public function lInsert($key, $position, $pivot, $value) - { - } + public function lInsert($key, $position, $pivot, $value) {} /** * Adds a values to the set value stored at key. @@ -1456,9 +1329,7 @@ public function lInsert($key, $position, $pivot, $value) * $redis->sAdd('k', 'v1', 'v2', 'v3'); // int(2) * */ - public function sAdd($key, ...$value1) - { - } + public function sAdd($key, ...$value1) {} /** * Removes the specified members from the set value stored at key. @@ -1480,9 +1351,7 @@ public function sAdd($key, ...$value1) * // } * */ - public function sRem($key, ...$member1) - { - } + public function sRem($key, ...$member1) {} /** * @link https://redis.io/commands/srem @@ -1491,9 +1360,7 @@ public function sRem($key, ...$member1) * @param string|mixed ...$member1 */ #[Deprecated(replacement: '%class%->sRem(%parametersList%)')] - public function sRemove($key, ...$member1) - { - } + public function sRemove($key, ...$member1) {} /** * Moves the specified member from the set at srcKey to the set at dstKey. @@ -1517,9 +1384,7 @@ public function sRemove($key, ...$member1) * // 'key2' => {'set21', 'set22', 'set13'} * */ - public function sMove($srcKey, $dstKey, $member) - { - } + public function sMove($srcKey, $dstKey, $member) {} /** * Checks if value is a member of the set stored at the key key. @@ -1540,9 +1405,7 @@ public function sMove($srcKey, $dstKey, $member) * $redis->sIsMember('key1', 'setX'); // FALSE * */ - public function sIsMember($key, $value) - { - } + public function sIsMember($key, $value) {} /** * @link https://redis.io/commands/sismember @@ -1551,9 +1414,7 @@ public function sIsMember($key, $value) * @param string|mixed $value */ #[Deprecated(replacement: '%class%->sIsMember(%parametersList%)')] - public function sContains($key, $value) - { - } + public function sContains($key, $value) {} /** * Returns the cardinality of the set identified by key. @@ -1572,9 +1433,7 @@ public function sContains($key, $value) * $redis->sCard('keyX'); // 0 * */ - public function sCard($key) - { - } + public function sCard($key) {} /** * Removes and returns a random element from the set value at Key. @@ -1605,9 +1464,7 @@ public function sCard($key) * // } * */ - public function sPop($key, $count = 1) - { - } + public function sPop($key, $count = 1) {} /** * Returns a random element(s) from the set value at Key, without removing it. @@ -1637,9 +1494,7 @@ public function sPop($key, $count = 1) * // } * */ - public function sRandMember($key, $count = 1) - { - } + public function sRandMember($key, $count = 1) {} /** * Returns the members of a set resulting from the intersection of all the sets @@ -1676,9 +1531,7 @@ public function sRandMember($key, $count = 1) * //} * */ - public function sInter($key1, ...$otherKeys) - { - } + public function sInter($key1, ...$otherKeys) {} /** * Performs a sInter command and stores the result in a new set. @@ -1716,9 +1569,7 @@ public function sInter($key1, ...$otherKeys) * //} * */ - public function sInterStore($dstKey, $key1, ...$otherKeys) - { - } + public function sInterStore($dstKey, $key1, ...$otherKeys) {} /** * Performs the union between N sets and returns it. @@ -1752,9 +1603,7 @@ public function sInterStore($dstKey, $key1, ...$otherKeys) * //} * */ - public function sUnion($key1, ...$otherKeys) - { - } + public function sUnion($key1, ...$otherKeys) {} /** * Performs the same action as sUnion, but stores the result in the first key @@ -1793,9 +1642,7 @@ public function sUnion($key1, ...$otherKeys) * //} * */ - public function sUnionStore($dstKey, $key1, ...$otherKeys) - { - } + public function sUnionStore($dstKey, $key1, ...$otherKeys) {} /** * Performs the difference between N sets and returns it. @@ -1828,9 +1675,7 @@ public function sUnionStore($dstKey, $key1, ...$otherKeys) * //} * */ - public function sDiff($key1, ...$otherKeys) - { - } + public function sDiff($key1, ...$otherKeys) {} /** * Performs the same action as sDiff, but stores the result in the first key @@ -1866,9 +1711,7 @@ public function sDiff($key1, ...$otherKeys) * //} * */ - public function sDiffStore($dstKey, $key1, ...$otherKeys) - { - } + public function sDiffStore($dstKey, $key1, ...$otherKeys) {} /** * Returns the contents of a set. @@ -1898,9 +1741,7 @@ public function sDiffStore($dstKey, $key1, ...$otherKeys) * // The order is random and corresponds to redis' own internal representation of the set structure. * */ - public function sMembers($key) - { - } + public function sMembers($key) {} /** * @link https://redis.io/commands/smembers @@ -1909,9 +1750,7 @@ public function sMembers($key) * @return array An array of elements, the contents of the set */ #[Deprecated(replacement: '%class%->sMembers(%parametersList%)')] - public function sGetMembers($key) - { - } + public function sGetMembers($key) {} /** * Scan a set for members @@ -1934,9 +1773,7 @@ public function sGetMembers($key) * } * */ - public function sScan($key, &$iterator, $pattern = null, $count = 0) - { - } + public function sScan($key, &$iterator, $pattern = null, $count = 0) {} /** * Sets a value and returns the previous entry at that key. @@ -1954,9 +1791,7 @@ public function sScan($key, &$iterator, $pattern = null, $count = 0) * $newValue = $redis->get('x')' // return 'lol' * */ - public function getSet($key, $value) - { - } + public function getSet($key, $value) {} /** * Returns a random key @@ -1970,9 +1805,7 @@ public function getSet($key, $value) * $surprise = $redis->get($key); // who knows what's in there. * */ - public function randomKey() - { - } + public function randomKey() {} /** * Switches to a given database @@ -1991,9 +1824,7 @@ public function randomKey() * $redis->get('x'); // will return 42 * */ - public function select($dbIndex) - { - } + public function select($dbIndex) {} /** * Moves a key to a different database. @@ -2013,9 +1844,7 @@ public function select($dbIndex) * $redis->get('x'); // will return 42 * */ - public function move($key, $dbIndex) - { - } + public function move($key, $dbIndex) {} /** * Renames a key @@ -2034,9 +1863,7 @@ public function move($key, $dbIndex) * $redis->get('x'); // → `FALSE` * */ - public function rename($srcKey, $dstKey) - { - } + public function rename($srcKey, $dstKey) {} /** * @link https://redis.io/commands/rename @@ -2045,9 +1872,7 @@ public function rename($srcKey, $dstKey) * @param string $dstKey */ #[Deprecated(replacement: '%class%->rename(%parametersList%)')] - public function renameKey($srcKey, $dstKey) - { - } + public function renameKey($srcKey, $dstKey) {} /** * Renames a key @@ -2069,9 +1894,7 @@ public function renameKey($srcKey, $dstKey) * $redis->get('x'); // → `FALSE` * */ - public function renameNx($srcKey, $dstKey) - { - } + public function renameNx($srcKey, $dstKey) {} /** * Sets an expiration date (a timeout) on an item @@ -2090,9 +1913,7 @@ public function renameNx($srcKey, $dstKey) * $redis->get('x'); // will return `FALSE`, as 'x' has expired. * */ - public function expire($key, $ttl) - { - } + public function expire($key, $ttl) {} /** * Sets an expiration date (a timeout in milliseconds) on an item @@ -2111,9 +1932,7 @@ public function expire($key, $ttl) * $redis->pttl('x'); // 11500 * */ - public function pExpire($key, $ttl) - { - } + public function pExpire($key, $ttl) {} /** * @link https://redis.io/commands/expire @@ -2123,9 +1942,7 @@ public function pExpire($key, $ttl) * @return bool */ #[Deprecated(replacement: '%class%->expire(%parametersList%)')] - public function setTimeout($key, $ttl) - { - } + public function setTimeout($key, $ttl) {} /** * Sets an expiration date (a timestamp) on an item. @@ -2145,9 +1962,7 @@ public function setTimeout($key, $ttl) * $redis->get('x'); // will return `FALSE`, as 'x' has expired. * */ - public function expireAt($key, $timestamp) - { - } + public function expireAt($key, $timestamp) {} /** * Sets an expiration date (a timestamp) on an item. Requires a timestamp in milliseconds @@ -2166,9 +1981,7 @@ public function expireAt($key, $timestamp) * echo $redis->pttl('x'); // 218270120575 * */ - public function pExpireAt($key, $timestamp) - { - } + public function pExpireAt($key, $timestamp) {} /** * Returns the keys that match a certain pattern. @@ -2184,18 +1997,14 @@ public function pExpireAt($key, $timestamp) * $keyWithUserPrefix = $redis->keys('user*'); * */ - public function keys($pattern) - { - } + public function keys($pattern) {} /** * @param string $pattern * @link https://redis.io/commands/keys */ #[Deprecated(replacement: '%class%->keys(%parametersList%)')] - public function getKeys($pattern) - { - } + public function getKeys($pattern) {} /** * Returns the current database's size @@ -2209,9 +2018,7 @@ public function getKeys($pattern) * echo "Redis has $count keys\n"; * */ - public function dbSize() - { - } + public function dbSize() {} /** * Authenticate the connection using a password. @@ -2224,9 +2031,7 @@ public function dbSize() * @link https://redis.io/commands/auth * @example $redis->auth('foobared'); */ - public function auth($password) - { - } + public function auth($password) {} /** * Starts the background rewrite of AOF (Append-Only File) @@ -2236,9 +2041,7 @@ public function auth($password) * @link https://redis.io/commands/bgrewriteaof * @example $redis->bgrewriteaof(); */ - public function bgrewriteaof() - { - } + public function bgrewriteaof() {} /** * Changes the slave status @@ -2257,9 +2060,7 @@ public function bgrewriteaof() * $redis->slaveof(); * */ - public function slaveof($host = '127.0.0.1', $port = 6379) - { - } + public function slaveof($host = '127.0.0.1', $port = 6379) {} /** * Access the Redis slowLog @@ -2288,10 +2089,7 @@ public function slaveof($host = '127.0.0.1', $port = 6379) * * @link https://redis.io/commands/slowlog */ - public function slowLog(string $operation, int $length = null) - { - } - + public function slowLog(string $operation, int $length = null) {} /** * Describes the object pointed to by a key. @@ -2315,9 +2113,7 @@ public function slowLog(string $operation, int $length = null) * $redis->object("idletime", "l"); // → 400 (in seconds, with a precision of 10 seconds). * */ - public function object($string = '', $key = '') - { - } + public function object($string = '', $key = '') {} /** * Performs a synchronous save. @@ -2328,9 +2124,7 @@ public function object($string = '', $key = '') * @link https://redis.io/commands/save * @example $redis->save(); */ - public function save() - { - } + public function save() {} /** * Performs a background save. @@ -2341,9 +2135,7 @@ public function save() * @link https://redis.io/commands/bgsave * @example $redis->bgSave(); */ - public function bgsave() - { - } + public function bgsave() {} /** * Returns the timestamp of the last disk save. @@ -2353,9 +2145,7 @@ public function bgsave() * @link https://redis.io/commands/lastsave * @example $redis->lastSave(); */ - public function lastSave() - { - } + public function lastSave() {} /** * Blocks the current client until all the previous write commands are successfully transferred and @@ -2370,9 +2160,7 @@ public function lastSave() * @link https://redis.io/commands/wait * @example $redis->wait(2, 1000); */ - public function wait($numSlaves, $timeout) - { - } + public function wait($numSlaves, $timeout) {} /** * Returns the type of data pointed by a given key. @@ -2392,9 +2180,7 @@ public function wait($numSlaves, $timeout) * @link https://redis.io/commands/type * @example $redis->type('key'); */ - public function type($key) - { - } + public function type($key) {} /** * Append specified string to the string stored in specified key. @@ -2412,9 +2198,7 @@ public function type($key) * $redis->get('key'); // 'value1value2' * */ - public function append($key, $value) - { - } + public function append($key, $value) {} /** * Return a substring of a larger string @@ -2433,9 +2217,7 @@ public function append($key, $value) * $redis->getRange('key', -5, -1); // 'value' * */ - public function getRange($key, $start, $end) - { - } + public function getRange($key, $start, $end) {} /** * Return a substring of a larger string @@ -2445,9 +2227,7 @@ public function getRange($key, $start, $end) * @param int $end */ #[Deprecated] - public function substr($key, $start, $end) - { - } + public function substr($key, $start, $end) {} /** * Changes a substring of a larger string. @@ -2466,9 +2246,7 @@ public function substr($key, $start, $end) * $redis->get('key'); // "Hello redis" * */ - public function setRange($key, $offset, $value) - { - } + public function setRange($key, $offset, $value) {} /** * Get the length of a string value. @@ -2483,9 +2261,7 @@ public function setRange($key, $offset, $value) * $redis->strlen('key'); // 5 * */ - public function strlen($key) - { - } + public function strlen($key) {} /** * Return the position of the first bit set to 1 or 0 in a string. The position is returned, thinking of the @@ -2520,9 +2296,7 @@ public function strlen($key) * $redis->bitpos('key', 0, 1, 5); // int(-1) * */ - public function bitpos($key, $bit, $start = 0, $end = null) - { - } + public function bitpos($key, $bit, $start = 0, $end = null) {} /** * Return a single bit out of a larger string @@ -2540,9 +2314,7 @@ public function bitpos($key, $bit, $start = 0, $end = null) * $redis->getBit('key', 1); // 1 * */ - public function getBit($key, $offset) - { - } + public function getBit($key, $offset) {} /** * Changes a single bit of a string. @@ -2562,9 +2334,7 @@ public function getBit($key, $offset) * $redis->get('key'); // chr(0x2f) = "/" = b("0010 1111") * */ - public function setBit($key, $offset, $value) - { - } + public function setBit($key, $offset, $value) {} /** * Count bits in a string @@ -2583,9 +2353,7 @@ public function setBit($key, $offset, $value) * var_dump( $redis->bitCount('bit', 0, 2) ); // int(11) * */ - public function bitCount($key) - { - } + public function bitCount($key) {} /** * Bitwise operation on multiple keys. @@ -2609,9 +2377,7 @@ public function bitCount($key) * $redis->bitOp('XOR', 'bit', 'bit1', 'bit2'); // bit = 11 * */ - public function bitOp($operation, $retKey, $key1, ...$otherKeys) - { - } + public function bitOp($operation, $retKey, $key1, ...$otherKeys) {} /** * Removes all entries from the current database. @@ -2620,9 +2386,7 @@ public function bitOp($operation, $retKey, $key1, ...$otherKeys) * @link https://redis.io/commands/flushdb * @example $redis->flushDB(); */ - public function flushDB() - { - } + public function flushDB() {} /** * Removes all entries from all databases. @@ -2632,9 +2396,7 @@ public function flushDB() * @link https://redis.io/commands/flushall * @example $redis->flushAll(); */ - public function flushAll() - { - } + public function flushAll() {} /** * Sort @@ -2666,9 +2428,7 @@ public function flushAll() * var_dump($redis->sort('s', array('sort' => 'desc', 'store' => 'out'))); // (int)5 * */ - public function sort($key, $option = null) - { - } + public function sort($key, $option = null) {} /** * Returns an associative array of strings and integers @@ -2733,9 +2493,7 @@ public function sort($key, $option = null) * $redis->info("CPU"); // just CPU information from Redis INFO * */ - public function info($option = null) - { - } + public function info($option = null) {} /** * Resets the statistics reported by Redis using the INFO command (`info()` function). @@ -2751,9 +2509,7 @@ public function info($option = null) * @example $redis->resetStat(); * @link https://redis.io/commands/config-resetstat */ - public function resetStat() - { - } + public function resetStat() {} /** * Returns the time to live left for a given key, in seconds. If the key doesn't exist, FALSE is returned. @@ -2769,9 +2525,7 @@ public function resetStat() * $redis->ttl('key'); // int(123) * */ - public function ttl($key) - { - } + public function ttl($key) {} /** * Returns a time to live left for a given key, in milliseconds. @@ -2789,9 +2543,7 @@ public function ttl($key) * $redis->pttl('key'); // int(122999) * */ - public function pttl($key) - { - } + public function pttl($key) {} /** * Remove the expiration timer from a key. @@ -2803,9 +2555,7 @@ public function pttl($key) * @link https://redis.io/commands/persist * @example $redis->persist('key'); */ - public function persist($key) - { - } + public function persist($key) {} /** * Sets multiple key-value pairs in one atomic command. @@ -2826,9 +2576,7 @@ public function persist($key) * // string(6) "value1" * */ - public function mset(array $array) - { - } + public function mset(array $array) {} /** * Get the values of all the specified keys. @@ -2848,9 +2596,7 @@ public function mset(array $array) * */ #[Deprecated(replacement: '%class%->mGet(%parametersList%)')] - public function getMultiple(array $keys) - { - } + public function getMultiple(array $keys) {} /** * Returns the values of all specified keys. @@ -2878,9 +2624,7 @@ public function getMultiple(array $keys) * // } * */ - public function mget(array $array) - { - } + public function mget(array $array) {} /** * @see mset() @@ -2889,9 +2633,7 @@ public function mget(array $array) * * @link https://redis.io/commands/msetnx */ - public function msetnx(array $array) - { - } + public function msetnx(array $array) {} /** * Pops a value from the tail of a list, and pushes it to the front of another list. @@ -2936,9 +2678,7 @@ public function msetnx(array $array) * //} * */ - public function rpoplpush($srcKey, $dstKey) - { - } + public function rpoplpush($srcKey, $dstKey) {} /** * A blocking version of rpoplpush, with an integral timeout in the third parameter. @@ -2951,9 +2691,7 @@ public function rpoplpush($srcKey, $dstKey) * * @link https://redis.io/commands/brpoplpush */ - public function brpoplpush($srcKey, $dstKey, $timeout) - { - } + public function brpoplpush($srcKey, $dstKey, $timeout) {} /** * Adds the specified member with a given score to the sorted set stored at key @@ -2997,9 +2735,7 @@ public function brpoplpush($srcKey, $dstKey, $timeout) * // ["v6"]=> float(8) * */ - public function zAdd($key, $options, $score1, $value1 = null, $score2 = null, $value2 = null, $scoreN = null, $valueN = null) - { - } + public function zAdd($key, $options, $score1, $value1 = null, $score2 = null, $value2 = null, $scoreN = null, $valueN = null) {} /** * Returns a range of elements from the ordered set stored at the specified key, @@ -3027,9 +2763,7 @@ public function zAdd($key, $options, $score1, $value1 = null, $score2 = null, $v * $redis->zRange('key1', 0, -1, true); // array('val0' => 0, 'val2' => 2, 'val10' => 10) * */ - public function zRange($key, $start, $end, $withscores = null) - { - } + public function zRange($key, $start, $end, $withscores = null) {} /** * Deletes a specified member from the ordered set. @@ -3053,9 +2787,7 @@ public function zRange($key, $start, $end, $withscores = null) * // } * */ - public function zRem($key, $member1, ...$otherMembers) - { - } + public function zRem($key, $member1, ...$otherMembers) {} /** * @link https://redis.io/commands/zrem @@ -3067,9 +2799,7 @@ public function zRem($key, $member1, ...$otherMembers) * @return int Number of deleted values */ #[Deprecated(replacement: '%class%->zRem(%parametersList%)')] - public function zDelete($key, $member1, ...$otherMembers) - { - } + public function zDelete($key, $member1, ...$otherMembers) {} /** * Returns the elements of the sorted set stored at the specified key in the range [start, end] @@ -3098,9 +2828,7 @@ public function zDelete($key, $member1, ...$otherMembers) * $redis->zRevRange('key', 0, -1, true); // array('val10' => 10, 'val2' => 2, 'val0' => 0) * */ - public function zRevRange($key, $start, $end, $withscore = null) - { - } + public function zRevRange($key, $start, $end, $withscore = null) {} /** * Returns the elements of the sorted set stored at the specified key which have scores in the @@ -3130,9 +2858,7 @@ public function zRevRange($key, $start, $end, $withscore = null) * $redis->zRangeByScore('key', 0, 3, array('withscores' => TRUE, 'limit' => array(1, 1)); // array('val2' => 2) * */ - public function zRangeByScore($key, $start, $end, array $options = array()) - { - } + public function zRangeByScore($key, $start, $end, array $options = []) {} /** * @see zRangeByScore() @@ -3143,9 +2869,7 @@ public function zRangeByScore($key, $start, $end, array $options = array()) * * @return array */ - public function zRevRangeByScore($key, $start, $end, array $options = array()) - { - } + public function zRevRangeByScore($key, $start, $end, array $options = []) {} /** * Returns a lexigraphical range of members in a sorted set, assuming the members have the same score. The @@ -3173,9 +2897,7 @@ public function zRevRangeByScore($key, $start, $end, array $options = array()) * $redis->zRangeByLex('key', '-', '[c'); // array('b', 'c') * */ - public function zRangeByLex($key, $min, $max, $offset = null, $limit = null) - { - } + public function zRangeByLex($key, $min, $max, $offset = null, $limit = null) {} /** * @see zRangeByLex() @@ -3189,9 +2911,7 @@ public function zRangeByLex($key, $min, $max, $offset = null, $limit = null) * * @link https://redis.io/commands/zrevrangebylex */ - public function zRevRangeByLex($key, $min, $max, $offset = null, $limit = null) - { - } + public function zRevRangeByLex($key, $min, $max, $offset = null, $limit = null) {} /** * Returns the number of elements of the sorted set stored at the specified key which have @@ -3213,9 +2933,7 @@ public function zRevRangeByLex($key, $min, $max, $offset = null, $limit = null) * $redis->zCount('key', 0, 3); // 2, corresponding to array('val0', 'val2') * */ - public function zCount($key, $start, $end) - { - } + public function zCount($key, $start, $end) {} /** * Deletes the elements of the sorted set stored at the specified key which have scores in the range [start,end]. @@ -3235,9 +2953,7 @@ public function zCount($key, $start, $end) * $redis->zRemRangeByScore('key', 0, 3); // 2 * */ - public function zRemRangeByScore($key, $start, $end) - { - } + public function zRemRangeByScore($key, $start, $end) {} /** * @param string $key @@ -3245,9 +2961,7 @@ public function zRemRangeByScore($key, $start, $end) * @param float $end */ #[Deprecated(replacement: '%class%->zRemRangeByScore(%parametersList%)')] - public function zDeleteRangeByScore($key, $start, $end) - { - } + public function zDeleteRangeByScore($key, $start, $end) {} /** * Deletes the elements of the sorted set stored at the specified key which have rank in the range [start,end]. @@ -3268,9 +2982,7 @@ public function zDeleteRangeByScore($key, $start, $end) * $redis->zRange('key', 0, -1, array('withscores' => TRUE)); // array('three' => 3) * */ - public function zRemRangeByRank($key, $start, $end) - { - } + public function zRemRangeByRank($key, $start, $end) {} /** * @link https://redis.io/commands/zremrangebyscore @@ -3280,9 +2992,7 @@ public function zRemRangeByRank($key, $start, $end) * @param int $end */ #[Deprecated(replacement: '%class%->zRemRangeByRank(%parametersList%)')] - public function zDeleteRangeByRank($key, $start, $end) - { - } + public function zDeleteRangeByRank($key, $start, $end) {} /** * Returns the cardinality of an ordered set. @@ -3300,18 +3010,14 @@ public function zDeleteRangeByRank($key, $start, $end) * $redis->zCard('key'); // 3 * */ - public function zCard($key) - { - } + public function zCard($key) {} /** * @param string $key * @return int */ #[Deprecated(replacement: '%class%->zCard(%parametersList%)')] - public function zSize($key) - { - } + public function zSize($key) {} /** * Returns the score of a given member in the specified sorted set. @@ -3328,9 +3034,7 @@ public function zSize($key) * $redis->zScore('key', 'val2'); // 2.5 * */ - public function zScore($key, $member) - { - } + public function zScore($key, $member) {} /** * Returns the rank of a given member in the specified sorted set, starting at 0 for the item @@ -3353,9 +3057,7 @@ public function zScore($key, $member) * $redis->zRevRank('key', 'two'); // 0 * */ - public function zRank($key, $member) - { - } + public function zRank($key, $member) {} /** * @see zRank() @@ -3366,9 +3068,7 @@ public function zRank($key, $member) * * @link https://redis.io/commands/zrevrank */ - public function zRevRank($key, $member) - { - } + public function zRevRank($key, $member) {} /** * Increments the score of a member from a sorted set by a given amount. @@ -3388,9 +3088,7 @@ public function zRevRank($key, $member) * $redis->zIncrBy('key', 1, 'member1'); // 3.5 * */ - public function zIncrBy($key, $value, $member) - { - } + public function zIncrBy($key, $value, $member) {} /** * Creates an union of sorted sets given in second argument. @@ -3431,9 +3129,7 @@ public function zIncrBy($key, $value, $member) * $redis->zUnionStore('ko3', array('k1', 'k2'), array(5, 1)); // 4, 'ko3' => array('val0', 'val2', 'val3', 'val1') * */ - public function zUnionStore($output, $zSetKeys, ?array $weights = null, $aggregateFunction = 'SUM') - { - } + public function zUnionStore($output, $zSetKeys, ?array $weights = null, $aggregateFunction = 'SUM') {} /** * @param string $Output @@ -3442,9 +3138,7 @@ public function zUnionStore($output, $zSetKeys, ?array $weights = null, $aggrega * @param string $aggregateFunction */ #[Deprecated(replacement: '%class%->zUnionStore(%parametersList%)')] - public function zUnion($Output, $ZSetKeys, array $Weights = null, $aggregateFunction = 'SUM') - { - } + public function zUnion($Output, $ZSetKeys, array $Weights = null, $aggregateFunction = 'SUM') {} /** * Creates an intersection of sorted sets given in second argument. @@ -3489,9 +3183,7 @@ public function zUnion($Output, $ZSetKeys, array $Weights = null, $aggregateFunc * $redis->zInterStore('ko4', array('k1', 'k2'), array(1, 5), 'max'); // 2, 'ko4' => array('val3', 'val1') * */ - public function zInterStore($output, $zSetKeys, array $weights = null, $aggregateFunction = 'SUM') - { - } + public function zInterStore($output, $zSetKeys, array $weights = null, $aggregateFunction = 'SUM') {} /** * @param $Output @@ -3500,9 +3192,7 @@ public function zInterStore($output, $zSetKeys, array $weights = null, $aggregat * @param string $aggregateFunction */ #[Deprecated(replacement: '%class%->zInterStore(%parametersList%)')] - public function zInter($Output, $ZSetKeys, array $Weights = null, $aggregateFunction = 'SUM') - { - } + public function zInter($Output, $ZSetKeys, array $Weights = null, $aggregateFunction = 'SUM') {} /** * Scan a sorted set for members, with optional pattern and count @@ -3525,9 +3215,7 @@ public function zInter($Output, $ZSetKeys, array $Weights = null, $aggregateFunc * } * */ - public function zScan($key, &$iterator, $pattern = null, $count = 0) - { - } + public function zScan($key, &$iterator, $pattern = null, $count = 0) {} /** * Block until Redis can pop the highest or lowest scoring members from one or more ZSETs. @@ -3553,9 +3241,7 @@ public function zScan($key, &$iterator, $pattern = null, $count = 0) * $redis->bzPopMax('zs1', 'zs2', 5); * */ - public function bzPopMax($key1, $key2, $timeout) - { - } + public function bzPopMax($key1, $key2, $timeout) {} /** * @param string|array $key1 @@ -3569,9 +3255,7 @@ public function bzPopMax($key1, $key2, $timeout) * @since >= 5.0 * @link https://redis.io/commands/bzpopmin */ - public function bzPopMin($key1, $key2, $timeout) - { - } + public function bzPopMin($key1, $key2, $timeout) {} /** * Can pop the highest scoring members from one ZSET. @@ -3592,9 +3276,7 @@ public function bzPopMin($key1, $key2, $timeout) * $redis->zPopMax('zs1', 3); * */ - public function zPopMax($key, $count = 1) - { - } + public function zPopMax($key, $count = 1) {} /** * Can pop the lowest scoring members from one ZSET. @@ -3615,9 +3297,7 @@ public function zPopMax($key, $count = 1) * $redis->zPopMin('zs1', 3); * */ - public function zPopMin($key, $count = 1) - { - } + public function zPopMin($key, $count = 1) {} /** * Adds a value to the hash stored at key. If this value is already in the hash, FALSE is returned. @@ -3641,9 +3321,7 @@ public function zPopMin($key, $count = 1) * $redis->hGet('h', 'key1'); // returns "plop" * */ - public function hSet($key, $hashKey, $value) - { - } + public function hSet($key, $hashKey, $value) {} /** * Adds a value to the hash stored at key only if this field isn't already in the hash. @@ -3663,9 +3341,7 @@ public function hSet($key, $hashKey, $value) * wasn't replaced. * */ - public function hSetNx($key, $hashKey, $value) - { - } + public function hSetNx($key, $hashKey, $value) {} /** * Gets a value from the hash stored at key. @@ -3678,9 +3354,7 @@ public function hSetNx($key, $hashKey, $value) * * @link https://redis.io/commands/hget */ - public function hGet($key, $hashKey) - { - } + public function hGet($key, $hashKey) {} /** * Returns the length of a hash, in number of items @@ -3698,9 +3372,7 @@ public function hGet($key, $hashKey) * $redis->hLen('h'); // returns 2 * */ - public function hLen($key) - { - } + public function hLen($key) {} /** * Removes a values from the hash stored at key. @@ -3733,9 +3405,7 @@ public function hLen($key) * // } * */ - public function hDel($key, $hashKey1, ...$otherHashKeys) - { - } + public function hDel($key, $hashKey1, ...$otherHashKeys) {} /** * Returns the keys in a hash, as an array of strings. @@ -3768,9 +3438,7 @@ public function hDel($key, $hashKey1, ...$otherHashKeys) * // The order is random and corresponds to redis' own internal representation of the set structure. * */ - public function hKeys($key) - { - } + public function hKeys($key) {} /** * Returns the values in a hash, as an array of strings. @@ -3803,9 +3471,7 @@ public function hKeys($key) * // The order is random and corresponds to redis' own internal representation of the set structure. * */ - public function hVals($key) - { - } + public function hVals($key) {} /** * Returns the whole hash, as an array of strings indexed by strings. @@ -3838,9 +3504,7 @@ public function hVals($key) * // The order is random and corresponds to redis' own internal representation of the set structure. * */ - public function hGetAll($key) - { - } + public function hGetAll($key) {} /** * Verify if the specified member exists in a key. @@ -3858,9 +3522,7 @@ public function hGetAll($key) * $redis->hExists('h', 'NonExistingKey'); // FALSE * */ - public function hExists($key, $hashKey) - { - } + public function hExists($key, $hashKey) {} /** * Increments the value of a member from a hash by a given amount. @@ -3879,9 +3541,7 @@ public function hExists($key, $hashKey) * $redis->hIncrBy('h', 'x', 1); // h[x] ← 2 + 1. Returns 3 * */ - public function hIncrBy($key, $hashKey, $value) - { - } + public function hIncrBy($key, $hashKey, $value) {} /** * Increment the float value of a hash field by the given amount @@ -3912,9 +3572,7 @@ public function hIncrBy($key, $hashKey, $value) * } * */ - public function hIncrByFloat($key, $field, $increment) - { - } + public function hIncrByFloat($key, $field, $increment) {} /** * Fills in a whole hash. Non-string values are converted to string, using the standard (string) cast. @@ -3933,9 +3591,7 @@ public function hIncrByFloat($key, $field, $increment) * $redis->hIncrBy('user:1', 'salary', 100); // Joe earns 100 more now. * */ - public function hMSet($key, $hashKeys) - { - } + public function hMSet($key, $hashKeys) {} /** * Retrieve the values associated to the specified fields in the hash. @@ -3955,9 +3611,7 @@ public function hMSet($key, $hashKeys) * $redis->hmGet('h', array('field1', 'field2')); // returns array('field1' => 'value1', 'field2' => 'value2') * */ - public function hMGet($key, $hashKeys) - { - } + public function hMGet($key, $hashKeys) {} /** * Scan a HASH value for members, with an optional pattern and count. @@ -3980,9 +3634,7 @@ public function hMGet($key, $hashKeys) * // } * */ - public function hScan($key, &$iterator, $pattern = null, $count = 0) - { - } + public function hScan($key, &$iterator, $pattern = null, $count = 0) {} /** * Get the string length of the value associated with field in the hash stored at key @@ -3996,9 +3648,7 @@ public function hScan($key, &$iterator, $pattern = null, $count = 0) * @link https://redis.io/commands/hstrlen * @since >= 3.2 */ - public function hStrLen(string $key, string $field) - { - } + public function hStrLen(string $key, string $field) {} /** * Add one or more geospatial items to the specified key. @@ -4026,9 +3676,7 @@ public function hStrLen(string $key, string $field) * ); // 2 * */ - public function geoadd($key, $longitude, $latitude, $member) - { - } + public function geoadd($key, $longitude, $latitude, $member) {} /** * Retrieve Geohash strings for one or more elements of a geospatial index. @@ -4054,9 +3702,7 @@ public function geoadd($key, $longitude, $latitude, $member) * // } * */ - public function geohash($key, ...$member) - { - } + public function geohash($key, ...$member) {} /** * Return longitude, latitude positions for each requested member. @@ -4087,9 +3733,7 @@ public function geohash($key, ...$member) * } * */ - public function geopos(string $key, string $member) - { - } + public function geopos(string $key, string $member) {} /** * Return the distance between two members in a geospatial set. @@ -4140,9 +3784,7 @@ public function geopos(string $key, string $member) * bool(false) * */ - public function geodist($key, $member1, $member2, $unit = null) - { - } + public function geodist($key, $member1, $member2, $unit = null) {} /** * Return members of a set with geospatial information that are within the radius specified by the caller. @@ -4242,9 +3884,7 @@ public function geodist($key, $member1, $member2, $unit = null) * } * */ - public function georadius($key, $longitude, $latitude, $radius, $unit, array $options = null) - { - } + public function georadius($key, $longitude, $latitude, $radius, $unit, array $options = null) {} /** * This method is identical to geoRadius except that instead of passing a longitude and latitude as the "source" @@ -4284,9 +3924,7 @@ public function georadius($key, $longitude, $latitude, $radius, $unit, array $op * } * */ - public function georadiusbymember($key, $member, $radius, $units, array $options = null) - { - } + public function georadiusbymember($key, $member, $radius, $units, array $options = null) {} /** * Get or Set the redis config keys. @@ -4304,9 +3942,7 @@ public function georadiusbymember($key, $member, $radius, $units, array $options * $redis->config("SET", "dir", "/var/run/redis/dumps/"); * */ - public function config($operation, $key, $value) - { - } + public function config($operation, $key, $value) {} /** * Evaluate a LUA script serverside @@ -4333,9 +3969,7 @@ public function config($operation, $key, $value) * $redis->eval("return {1,2,3,redis.call('lrange','mylist',0,-1)}}"); * */ - public function eval($script, $args = array(), $numKeys = 0) - { - } + public function eval($script, $args = [], $numKeys = 0) {} /** * @param string $script @@ -4344,9 +3978,7 @@ public function eval($script, $args = array(), $numKeys = 0) * @return mixed @see eval() */ #[Deprecated(replacement: '%class%->eval(%parametersList%)')] - public function evaluate($script, $args = array(), $numKeys = 0) - { - } + public function evaluate($script, $args = [], $numKeys = 0) {} /** * Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself. @@ -4368,9 +4000,7 @@ public function evaluate($script, $args = array(), $numKeys = 0) * $redis->evalSha($sha); // Returns 1 * */ - public function evalSha($scriptSha, $args = array(), $numKeys = 0) - { - } + public function evalSha($scriptSha, $args = [], $numKeys = 0) {} /** * @param string $scriptSha @@ -4378,9 +4008,7 @@ public function evalSha($scriptSha, $args = array(), $numKeys = 0) * @param int $numKeys */ #[Deprecated(replacement: '%class%->evalSha(%parametersList%)')] - public function evaluateSha($scriptSha, $args = array(), $numKeys = 0) - { - } + public function evaluateSha($scriptSha, $args = [], $numKeys = 0) {} /** * Execute the Redis SCRIPT command to perform various operations on the scripting subsystem. @@ -4406,9 +4034,7 @@ public function evaluateSha($scriptSha, $args = array(), $numKeys = 0) * SCRIPT KILL will return true if a script was able to be killed and false if not * SCRIPT EXISTS will return an array with TRUE or FALSE for each passed script */ - public function script($command, $script) - { - } + public function script($command, $script) {} /** * The last error message (if any) @@ -4422,9 +4048,7 @@ public function script($command, $script) * // "ERR Error compiling script (new function): user_script:1: '=' expected near '-'" * */ - public function getLastError() - { - } + public function getLastError() {} /** * Clear the last error message @@ -4442,9 +4066,7 @@ public function getLastError() * // NULL * */ - public function clearLastError() - { - } + public function clearLastError() {} /** * Issue the CLIENT command with various arguments. @@ -4477,9 +4099,7 @@ public function clearLastError() * $redis->client('kill', ); // Kill the process at ip:port * */ - public function client($command, $value = '') - { - } + public function client($command, $value = '') {} /** * A utility method to prefix the value with the prefix setting for phpredis. @@ -4495,9 +4115,7 @@ public function client($command, $value = '') * $redis->_prefix('my-value'); // Will return 'my-prefix:my-value' * */ - public function _prefix($value) - { - } + public function _prefix($value) {} /** * A utility method to unserialize data with whatever serializer is set up. If there is no serializer set, the @@ -4514,9 +4132,7 @@ public function _prefix($value) * $redis->_unserialize('a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}'); // Will return Array(1,2,3) * */ - public function _unserialize($value) - { - } + public function _unserialize($value) {} /** * A utility method to serialize values manually. This method allows you to serialize a value with whatever @@ -4538,9 +4154,7 @@ public function _unserialize($value) * $redis->_serialize("foo"); // Returns 's:3:"foo";' * */ - public function _serialize($value) - { - } + public function _serialize($value) {} /** * Dump a key out of a redis database, the value of which can later be passed into redis using the RESTORE command. @@ -4556,9 +4170,7 @@ public function _serialize($value) * $val = $redis->dump('foo'); // $val will be the Redis encoded key value * */ - public function dump($key) - { - } + public function dump($key) {} /** * Restore a key from the result of a DUMP operation. @@ -4577,9 +4189,7 @@ public function dump($key) * $redis->restore('bar', 0, $val); // The key 'bar', will now be equal to the key 'foo' * */ - public function restore($key, $ttl, $value) - { - } + public function restore($key, $ttl, $value) {} /** * Migrates a key to a different Redis instance. @@ -4600,9 +4210,7 @@ public function restore($key, $ttl, $value) * $redis->migrate('backup', 6379, 'foo', 0, 3600); * */ - public function migrate($host, $port, $key, $db, $timeout, $copy = false, $replace = false) - { - } + public function migrate($host, $port, $key, $db, $timeout, $copy = false, $replace = false) {} /** * Return the current Redis server time. @@ -4620,9 +4228,7 @@ public function migrate($host, $port, $key, $db, $timeout, $copy = false, $repla * // } * */ - public function time() - { - } + public function time() {} /** * Scan the keyspace for keys @@ -4644,9 +4250,7 @@ public function time() * } * */ - public function scan(&$iterator, $pattern = null, $count = 0) - { - } + public function scan(&$iterator, $pattern = null, $count = 0) {} /** * Adds all the element arguments to the HyperLogLog data structure stored at the key. @@ -4659,9 +4263,7 @@ public function scan(&$iterator, $pattern = null, $count = 0) * @link https://redis.io/commands/pfadd * @example $redis->pfAdd('key', array('elem1', 'elem2')) */ - public function pfAdd($key, array $elements) - { - } + public function pfAdd($key, array $elements) {} /** * When called with a single key, returns the approximated cardinality computed by the HyperLogLog data @@ -4680,9 +4282,7 @@ public function pfAdd($key, array $elements) * $redis->pfCount(array('key1', 'key2')); // int(3) * */ - public function pfCount($key) - { - } + public function pfCount($key) {} /** * Merge multiple HyperLogLog values into an unique value that will approximate the cardinality @@ -4702,9 +4302,7 @@ public function pfCount($key) * $redis->pfCount('key3'); // int(3) * */ - public function pfMerge($destKey, array $sourceKeys) - { - } + public function pfMerge($destKey, array $sourceKeys) {} /** * Send arbitrary things to the redis server. @@ -4720,9 +4318,7 @@ public function pfMerge($destKey, array $sourceKeys) * $redis->rawCommand('GET", 'key'); // string(5) "value" * */ - public function rawCommand($command, $arguments) - { - } + public function rawCommand($command, $arguments) {} /** * Detect whether we're in ATOMIC/MULTI/PIPELINE mode. @@ -4731,9 +4327,7 @@ public function rawCommand($command, $arguments) * * @example $redis->getMode(); */ - public function getMode() - { - } + public function getMode() {} /** * Acknowledge one or more messages on behalf of a consumer group. @@ -4750,9 +4344,7 @@ public function getMode() * $redis->xAck('stream', 'group1', ['1530063064286-0', '1530063064286-1']); * */ - public function xAck($stream, $group, $messages) - { - } + public function xAck($stream, $group, $messages) {} /** * Add a message to a stream @@ -4773,9 +4365,7 @@ public function xAck($stream, $group, $messages) * $redis->xAdd('mystream', "*", ['field' => 'value'], 10, true); * */ - public function xAdd($key, $id, $messages, $maxLen = 0, $isApproximate = false) - { - } + public function xAdd($key, $id, $messages, $maxLen = 0, $isApproximate = false) {} /** * Claim ownership of one or more pending messages @@ -4810,9 +4400,7 @@ public function xAdd($key, $id, $messages, $maxLen = 0, $isApproximate = false) * ); * */ - public function xClaim($key, $group, $consumer, $minIdleTime, $ids, $options = []) - { - } + public function xClaim($key, $group, $consumer, $minIdleTime, $ids, $options = []) {} /** * Delete one or more messages from a stream @@ -4828,9 +4416,7 @@ public function xClaim($key, $group, $consumer, $minIdleTime, $ids, $options = [ * $redis->xDel('mystream', ['1530115304877-0', '1530115305731-0']); * */ - public function xDel($key, $ids) - { - } + public function xDel($key, $ids) {} /** * @param string $operation e.g.: 'HELP', 'SETID', 'DELGROUP', 'CREATE', 'DELCONSUMER' @@ -4849,9 +4435,7 @@ public function xDel($key, $ids) * $redis->xGroup('DESTROY', 'mystream', 'mygroup'); * */ - public function xGroup($operation, $key, $group, $msgId = '', $mkStream = false) - { - } + public function xGroup($operation, $key, $group, $msgId = '', $mkStream = false) {} /** * Get information about a stream or consumer groups @@ -4868,9 +4452,7 @@ public function xGroup($operation, $key, $group, $msgId = '', $mkStream = false) * $redis->xInfo('STREAM', 'mystream'); * */ - public function xInfo($operation, $stream, $group) - { - } + public function xInfo($operation, $stream, $group) {} /** * Get the length of a given stream. @@ -4885,9 +4467,7 @@ public function xInfo($operation, $stream, $group) * $redis->xLen('mystream'); * */ - public function xLen($stream) - { - } + public function xLen($stream) {} /** * Get information about pending messages in a given stream @@ -4909,9 +4489,7 @@ public function xLen($stream) * $redis->xPending('mystream', 'mygroup', '-', '+', 1, 'consumer-1'); * */ - public function xPending($stream, $group, $start = null, $end = null, $count = null, $consumer = null) - { - } + public function xPending($stream, $group, $start = null, $end = null, $count = null, $consumer = null) {} /** * Get a range of messages from a given stream @@ -4932,9 +4510,7 @@ public function xPending($stream, $group, $start = null, $end = null, $count = n * $redis->xRange('mystream', '-', '+', 2); * */ - public function xRange($stream, $start, $end, $count = null) - { - } + public function xRange($stream, $start, $end, $count = null) {} /** * Read data from one or more streams and only return IDs greater than sent in the command. @@ -4951,9 +4527,7 @@ public function xRange($stream, $start, $end, $count = null) * $redis->xRead(['stream1' => '1535222584555-0', 'stream2' => '1535222584555-0']); * */ - public function xRead($streams, $count = null, $block = null) - { - } + public function xRead($streams, $count = null, $block = null) {} /** * This method is similar to xRead except that it supports reading messages for a specific consumer group. @@ -4975,9 +4549,7 @@ public function xRead($streams, $count = null, $block = null) * $redis->xReadGroup('mygroup', 'consumer2', ['s1' => 0, 's2' => 0], 1, 1000); * */ - public function xReadGroup($group, $consumer, $streams, $count = null, $block = null) - { - } + public function xReadGroup($group, $consumer, $streams, $count = null, $block = null) {} /** * This is identical to xRange except the results come back in reverse order. @@ -4996,9 +4568,7 @@ public function xReadGroup($group, $consumer, $streams, $count = null, $block = * $redis->xRevRange('mystream', '+', '-'); * */ - public function xRevRange($stream, $end, $start, $count = null) - { - } + public function xRevRange($stream, $end, $start, $count = null) {} /** * Trim the stream length to a given maximum. @@ -5020,9 +4590,7 @@ public function xRevRange($stream, $end, $start, $count = null) * $redis->xTrim('mystream', 100, true); * */ - public function xTrim($stream, $maxLen, $isApproximate) - { - } + public function xTrim($stream, $maxLen, $isApproximate) {} /** * Adds a values to the set value stored at key. @@ -5042,14 +4610,10 @@ public function xTrim($stream, $maxLen, $isApproximate) * $redis->sAddArray('k', array('v1', 'v2', 'v3')); // boolean * */ - public function sAddArray($key, array $values) - { - } + public function sAddArray($key, array $values) {} } -class RedisException extends Exception -{ -} +class RedisException extends Exception {} /** * @mixin \Redis @@ -5064,48 +4628,36 @@ class RedisArray * * @link https://github.com/nicolasff/phpredis/blob/master/arrays.markdown */ - public function __construct($hosts, ?array $opts = null) - { - } + public function __construct($hosts, ?array $opts = null) {} /** * @return array list of hosts for the selected array */ - public function _hosts() - { - } + public function _hosts() {} /** * @return string the name of the function used to extract key parts during consistent hashing */ - public function _function() - { - } + public function _function() {} /** * @param string $key The key for which you want to lookup the host * * @return string the host to be used for a certain key */ - public function _target($key) - { - } + public function _target($key) {} /** * @param string $host The host you want to retrieve the instance for * * @return Redis a redis instance connected to a specific node */ - public function _instance($host) - { - } + public function _instance($host) {} /** * Use this function when a new node is added and keys need to be rehashed. */ - public function _rehash() - { - } + public function _rehash() {} /** * Returns an associative array of strings and integers, with the following keys: @@ -5247,6 +4799,5 @@ public function _rehash() * $redis->info(); * */ - public function info() { - } + public function info() {} } diff --git a/redis/RedisCluster.php b/redis/RedisCluster.php index 01e01b01f..90f06e5d9 100644 --- a/redis/RedisCluster.php +++ b/redis/RedisCluster.php @@ -8,70 +8,70 @@ * @link https://github.com/zgb7mtr/phpredis_cluster_phpdoc * * @method mixed eval($script, $args = array(), $numKeys = 0) - * */ -class RedisCluster { - const AFTER = 'after'; - const BEFORE = 'before'; +class RedisCluster +{ + public const AFTER = 'after'; + public const BEFORE = 'before'; /** * Options */ - const OPT_SERIALIZER = 1; - const OPT_PREFIX = 2; - const OPT_READ_TIMEOUT = 3; - const OPT_SCAN = 4; - const OPT_SLAVE_FAILOVER = 5; + public const OPT_SERIALIZER = 1; + public const OPT_PREFIX = 2; + public const OPT_READ_TIMEOUT = 3; + public const OPT_SCAN = 4; + public const OPT_SLAVE_FAILOVER = 5; /** * Cluster options */ - const FAILOVER_NONE = 0; - const FAILOVER_ERROR = 1; - const FAILOVER_DISTRIBUTE = 2; - const FAILOVER_DISTRIBUTE_SLAVES = 3; + public const FAILOVER_NONE = 0; + public const FAILOVER_ERROR = 1; + public const FAILOVER_DISTRIBUTE = 2; + public const FAILOVER_DISTRIBUTE_SLAVES = 3; /** * SCAN options */ - const SCAN_NORETRY = 0; - const SCAN_RETRY = 1; + public const SCAN_NORETRY = 0; + public const SCAN_RETRY = 1; /** * @since 5.3.0 */ - const SCAN_PREFIX = 2; + public const SCAN_PREFIX = 2; /** * @since 5.3.0 */ - const SCAN_NOPREFIX = 3; + public const SCAN_NOPREFIX = 3; /** * Serializers */ - const SERIALIZER_NONE = 0; - const SERIALIZER_PHP = 1; - const SERIALIZER_IGBINARY = 2; - const SERIALIZER_MSGPACK = 3; - const SERIALIZER_JSON = 4; + public const SERIALIZER_NONE = 0; + public const SERIALIZER_PHP = 1; + public const SERIALIZER_IGBINARY = 2; + public const SERIALIZER_MSGPACK = 3; + public const SERIALIZER_JSON = 4; /** * Multi */ - const ATOMIC = 0; - const MULTI = 1; - const PIPELINE = 2; + public const ATOMIC = 0; + public const MULTI = 1; + public const PIPELINE = 2; /** * Type */ - const REDIS_NOT_FOUND = 0; - const REDIS_STRING = 1; - const REDIS_SET = 2; - const REDIS_LIST = 3; - const REDIS_ZSET = 4; - const REDIS_HASH = 5; + public const REDIS_NOT_FOUND = 0; + public const REDIS_STRING = 1; + public const REDIS_SET = 2; + public const REDIS_LIST = 3; + public const REDIS_ZSET = 4; + public const REDIS_HASH = 5; /** * Creates a Redis Cluster client @@ -104,12 +104,12 @@ class RedisCluster { * $redisClusterDev = new RedisCluster('test'); * */ - public function __construct($name, $seeds, $timeout = null, $readTimeout = null, $persistent = false, $auth = null) { } + public function __construct($name, $seeds, $timeout = null, $readTimeout = null, $persistent = false, $auth = null) {} /** * Disconnects from the Redis instance, except when pconnect is used. */ - public function close() { } + public function close() {} /** * Get the value related to the specified key @@ -125,7 +125,7 @@ public function close() { } * $redisCluster->get('key'); * */ - public function get($key) { } + public function get($key) {} /** * Set the string value in argument as value of the key. @@ -155,7 +155,7 @@ public function get($key) { } * $redisCluster->set('key', 'value', Array('xx', 'px'=>1000)); * */ - public function set($key, $value, $timeout = null) { } + public function set($key, $value, $timeout = null) {} /** * Returns the values of all specified keys. @@ -187,7 +187,7 @@ public function set($key, $value, $timeout = null) { } * // } * */ - public function mget(array $array) { } + public function mget(array $array) {} /** * Sets multiple key-value pairs in one atomic command. @@ -207,7 +207,7 @@ public function mget(array $array) { } * // string(6) "value1" * */ - public function mset(array $array) { } + public function mset(array $array) {} /** * @see mset() @@ -217,7 +217,7 @@ public function mset(array $array) { } * @return int 1 (if the keys were set) or 0 (no key was set) * @link https://redis.io/commands/msetnx */ - public function msetnx(array $array) { } + public function msetnx(array $array) {} /** * Remove specified keys. @@ -238,7 +238,7 @@ public function msetnx(array $array) { } * $redisCluster->del(array('key3', 'key4')); // return 2 * */ - public function del($key1, ...$otherKeys) { } + public function del($key1, ...$otherKeys) {} /** * Set the string value in argument as value of the key, with a time to live. @@ -254,7 +254,7 @@ public function del($key1, ...$otherKeys) { } * $redisCluster->setex('key', 3600, 'value'); // sets key → value, with 1h TTL. * */ - public function setex($key, $ttl, $value) { } + public function setex($key, $ttl, $value) {} /** * PSETEX works exactly like SETEX with the sole difference that the expire time is specified in milliseconds @@ -271,7 +271,7 @@ public function setex($key, $ttl, $value) { } * $redisCluster->psetex('key', 1000, 'value'); // sets key → value, with 1s TTL. * */ - public function psetex($key, $ttl, $value) { } + public function psetex($key, $ttl, $value) {} /** * Set the string value in argument as value of the key if the key doesn't already exist in the database. @@ -287,7 +287,7 @@ public function psetex($key, $ttl, $value) { } * $redisCluster->setnx('key', 'value'); // return FALSE * */ - public function setnx($key, $value) { } + public function setnx($key, $value) {} /** * Sets a value and returns the previous entry at that key. @@ -304,7 +304,7 @@ public function setnx($key, $value) { } * $newValue = $redisCluster->get('x'); // return 'lol' * */ - public function getSet($key, $value) { } + public function getSet($key, $value) {} /** * Verify if the specified key exists. @@ -320,7 +320,7 @@ public function getSet($key, $value) { } * $redisCluster->exists('NonExistingKey'); // FALSE * */ - public function exists($key) { } + public function exists($key) {} /** * Returns the keys that match a certain pattern. @@ -335,7 +335,7 @@ public function exists($key) { } * $keyWithUserPrefix = $redisCluster->keys('user*'); * */ - public function keys($pattern) { } + public function keys($pattern) {} /** * Returns the type of data pointed by a given key. @@ -355,7 +355,7 @@ public function keys($pattern) { } * @link https://redis.io/commands/type * @example $redisCluster->type('key'); */ - public function type($key) { } + public function type($key) {} /** * Returns and removes the first element of the list. @@ -385,7 +385,7 @@ public function type($key) { } * // } * */ - public function lPop($key) { } + public function lPop($key) {} /** * Returns and removes the last element of the list. @@ -415,7 +415,7 @@ public function lPop($key) { } * // } * */ - public function rPop($key) { } + public function rPop($key) {} /** * Set the list at index with the new value. @@ -437,7 +437,7 @@ public function rPop($key) { } * $redisCluster->lGet('key1', 0); // 'X' * */ - public function lSet($key, $index, $value) { } + public function lSet($key, $index, $value) {} /** * Removes and returns a random element from the set value at Key. @@ -459,7 +459,7 @@ public function lSet($key, $index, $value) { } * var_dump($redisCluster->sMembers('key1'));// 'key1' => {'set2'} * */ - public function sPop($key) { } + public function sPop($key) {} /** * Adds the string values to the head (left) of the list. Creates the list if the key didn't exist. @@ -485,7 +485,7 @@ public function sPop($key) { } * // } * */ - public function lPush($key, $value1, $value2 = null, $valueN = null) { } + public function lPush($key, $value1, $value2 = null, $valueN = null) {} /** * Adds the string values to the tail (right) of the list. Creates the list if the key didn't exist. @@ -511,7 +511,7 @@ public function lPush($key, $value1, $value2 = null, $valueN = null) { } * // } * */ - public function rPush($key, $value1, $value2 = null, $valueN = null) { } + public function rPush($key, $value1, $value2 = null, $valueN = null) {} /** * BLPOP is a blocking list pop primitive. @@ -554,7 +554,7 @@ public function rPush($key, $value1, $value2 = null, $valueN = null) { } * // array('key1', 'A') is returned * */ - public function blPop(array $keys, $timeout) { } + public function blPop(array $keys, $timeout) {} /** * BRPOP is a blocking list pop primitive. @@ -600,7 +600,7 @@ public function blPop(array $keys, $timeout) { } * // array('key1', 'A') is returned * */ - public function brPop(array $keys, $timeout) { } + public function brPop(array $keys, $timeout) {} /** * Adds the string value to the tail (right) of the list if the ist exists. FALSE in case of Failure. @@ -620,7 +620,7 @@ public function brPop(array $keys, $timeout) { } * // key1 now points to the following list: [ 'A', 'B', 'C' ] * */ - public function rPushx($key, $value) { } + public function rPushx($key, $value) {} /** * Adds the string value to the head (left) of the list if the list exists. @@ -640,7 +640,7 @@ public function rPushx($key, $value) { } * // key1 now points to the following list: [ 'C', 'B', 'A' ] * */ - public function lPushx($key, $value) { } + public function lPushx($key, $value) {} /** * Insert value in the list before or after the pivot value. the parameter options @@ -672,7 +672,7 @@ public function lPushx($key, $value) { } * $redisCluster->lInsert('key1', RedisCluster::AFTER, 'W', 'value'); // -1 * */ - public function lInsert($key, $position, $pivot, $value) { } + public function lInsert($key, $position, $pivot, $value) {} /** * Return the specified element of the list stored at the specified key. @@ -695,7 +695,7 @@ public function lInsert($key, $position, $pivot, $value) { } * $redisCluster->lGet('key1', 10); // `FALSE` * */ - public function lIndex($key, $index) { } + public function lIndex($key, $index) {} /** * Removes the first count occurrences of the value element from the list. @@ -722,7 +722,7 @@ public function lIndex($key, $index) { } * $redisCluster->lRange('key1', 0, -1); // array('C', 'B', 'A') * */ - public function lRem($key, $value, $count) { } + public function lRem($key, $value, $count) {} /** * A blocking version of rpoplpush, with an integral timeout in the third parameter. @@ -734,7 +734,7 @@ public function lRem($key, $value, $count) { } * @return string|false The element that was moved in case of success, FALSE in case of timeout. * @link https://redis.io/commands/brpoplpush */ - public function brpoplpush($srcKey, $dstKey, $timeout) { } + public function brpoplpush($srcKey, $dstKey, $timeout) {} /** * Pops a value from the tail of a list, and pushes it to the front of another list. @@ -778,7 +778,7 @@ public function brpoplpush($srcKey, $dstKey, $timeout) { } * //} * */ - public function rpoplpush($srcKey, $dstKey) { } + public function rpoplpush($srcKey, $dstKey) {} /** * Returns the size of a list identified by Key. If the list didn't exist or is empty, @@ -799,7 +799,7 @@ public function rpoplpush($srcKey, $dstKey) { } * $redisCluster->lLen('key1'); // 2 * */ - public function lLen($key) { } + public function lLen($key) {} /** * Returns the set cardinality (number of elements) of the set stored at key. @@ -817,7 +817,7 @@ public function lLen($key) { } * $redisCluster->sCard('keyX'); // 0 * */ - public function sCard($key) { } + public function sCard($key) {} /** * Returns all the members of the set value stored at key. @@ -849,7 +849,7 @@ public function sCard($key) { } * // The order is random and corresponds to redis' own internal representation of the set structure. * */ - public function sMembers($key) { } + public function sMembers($key) {} /** * Returns if member is a member of the set stored at key. @@ -869,7 +869,7 @@ public function sMembers($key) { } * $redisCluster->sIsMember('key1', 'setX'); // FALSE * */ - public function sIsMember($key, $value) { } + public function sIsMember($key, $value) {} /** * Adds a values to the set value stored at key. @@ -888,7 +888,7 @@ public function sIsMember($key, $value) { } * $redisCluster->sAdd('k', 'v1', 'v2', 'v3'); // int(2) * */ - public function sAdd($key, $value1, $value2 = null, $valueN = null) { } + public function sAdd($key, $value1, $value2 = null, $valueN = null) {} /** * Adds a values to the set value stored at key. @@ -904,7 +904,7 @@ public function sAdd($key, $value1, $value2 = null, $valueN = null) { } * //This is a feature in php only. Same as $redisCluster->sAdd('k', 'v1', 'v2', 'v3'); * */ - public function sAddArray($key, array $valueArray) { } + public function sAddArray($key, array $valueArray) {} /** * Removes the specified members from the set value stored at key. @@ -927,7 +927,7 @@ public function sAddArray($key, array $valueArray) { } * // } * */ - public function sRem($key, $member1, $member2 = null, $memberN = null) { } + public function sRem($key, $member1, $member2 = null, $memberN = null) {} /** * Performs the union between N sets and returns it. @@ -965,7 +965,7 @@ public function sRem($key, $member1, $member2 = null, $memberN = null) { } * //} * */ - public function sUnion($key1, $key2, $keyN = null) { } + public function sUnion($key1, $key2, $keyN = null) {} /** * Performs the same action as sUnion, but stores the result in the first key @@ -1006,7 +1006,7 @@ public function sUnion($key1, $key2, $keyN = null) { } * //} * */ - public function sUnionStore($dstKey, $key1, $key2, $keyN = null) { } + public function sUnionStore($dstKey, $key1, $key2, $keyN = null) {} /** * Returns the members of a set resulting from the intersection of all the sets @@ -1045,7 +1045,7 @@ public function sUnionStore($dstKey, $key1, $key2, $keyN = null) { } * //} * */ - public function sInter($key1, $key2, $keyN = null) { } + public function sInter($key1, $key2, $keyN = null) {} /** * Performs a sInter command and stores the result in a new set. @@ -1084,7 +1084,7 @@ public function sInter($key1, $key2, $keyN = null) { } * //} * */ - public function sInterStore($dstKey, $key1, $key2, $keyN = null) { } + public function sInterStore($dstKey, $key1, $key2, $keyN = null) {} /** * Performs the difference between N sets and returns it. @@ -1119,7 +1119,7 @@ public function sInterStore($dstKey, $key1, $key2, $keyN = null) { } * //} * */ - public function sDiff($key1, $key2, $keyN = null) { } + public function sDiff($key1, $key2, $keyN = null) {} /** * Performs the same action as sDiff, but stores the result in the first key @@ -1157,7 +1157,7 @@ public function sDiff($key1, $key2, $keyN = null) { } * //} * */ - public function sDiffStore($dstKey, $key1, $key2, $keyN = null) { } + public function sDiffStore($dstKey, $key1, $key2, $keyN = null) {} /** * Returns a random element(s) from the set value at Key, without removing it. @@ -1186,7 +1186,7 @@ public function sDiffStore($dstKey, $key1, $key2, $keyN = null) { } * // } * */ - public function sRandMember($key, $count = null) { } + public function sRandMember($key, $count = null) {} /** * Get the length of a string value. @@ -1201,7 +1201,7 @@ public function sRandMember($key, $count = null) { } * $redisCluster->strlen('key'); // 5 * */ - public function strlen($key) { } + public function strlen($key) {} /** * Remove the expiration timer from a key. @@ -1212,7 +1212,7 @@ public function strlen($key) { } * @link https://redis.io/commands/persist * @example $redisCluster->persist('key'); */ - public function persist($key) { } + public function persist($key) {} /** * Returns the remaining time to live of a key that has a timeout. @@ -1227,7 +1227,7 @@ public function persist($key) { } * @link https://redis.io/commands/ttl * @example $redisCluster->ttl('key'); */ - public function ttl($key) { } + public function ttl($key) {} /** * Returns the remaining time to live of a key that has an expire set, @@ -1242,7 +1242,7 @@ public function ttl($key) { } * @link https://redis.io/commands/pttl * @example $redisCluster->pttl('key'); */ - public function pttl($key) { } + public function pttl($key) {} /** * Returns the cardinality of an ordered set. @@ -1259,7 +1259,7 @@ public function pttl($key) { } * $redisCluster->zCard('key'); // 3 * */ - public function zCard($key) { } + public function zCard($key) {} /** * Returns the number of elements of the sorted set stored at the specified key which have @@ -1280,7 +1280,7 @@ public function zCard($key) { } * $redisCluster->zCount('key', 0, 3); // 2, corresponding to array('val0', 'val2') * */ - public function zCount($key, $start, $end) { } + public function zCount($key, $start, $end) {} /** * Deletes the elements of the sorted set stored at the specified key which have scores in the range [start,end]. @@ -1299,7 +1299,7 @@ public function zCount($key, $start, $end) { } * $redisCluster->zRemRangeByScore('key', 0, 3); // 2 * */ - public function zRemRangeByScore($key, $start, $end) { } + public function zRemRangeByScore($key, $start, $end) {} /** * Returns the score of a given member in the specified sorted set. @@ -1315,7 +1315,7 @@ public function zRemRangeByScore($key, $start, $end) { } * $redisCluster->zScore('key', 'val2'); // 2.5 * */ - public function zScore($key, $member) { } + public function zScore($key, $member) {} /** * Adds the specified member with a given score to the sorted set stored at key. @@ -1342,7 +1342,7 @@ public function zScore($key, $member) { } * // } * */ - public function zAdd($key, $score1, $value1, $score2 = null, $value2 = null, $scoreN = null, $valueN = null) { } + public function zAdd($key, $score1, $value1, $score2 = null, $value2 = null, $scoreN = null, $valueN = null) {} /** * Increments the score of a member from a sorted set by a given amount. @@ -1361,7 +1361,7 @@ public function zAdd($key, $score1, $value1, $score2 = null, $value2 = null, $sc * $redisCluster->zIncrBy('key', 1, 'member1'); // 3.5 * */ - public function zIncrBy($key, $value, $member) { } + public function zIncrBy($key, $value, $member) {} /** * Returns the length of a hash, in number of items @@ -1378,7 +1378,7 @@ public function zIncrBy($key, $value, $member) { } * $redisCluster->hLen('h'); // returns 2 * */ - public function hLen($key) { } + public function hLen($key) {} /** * Returns the keys in a hash, as an array of strings. @@ -1411,7 +1411,7 @@ public function hLen($key) { } * // The order is random and corresponds to redis' own internal representation of the set structure. * */ - public function hKeys($key) { } + public function hKeys($key) {} /** * Returns the values in a hash, as an array of strings. @@ -1444,7 +1444,7 @@ public function hKeys($key) { } * // The order is random and corresponds to redis' own internal representation of the set structure. * */ - public function hVals($key) { } + public function hVals($key) {} /** * Gets a value from the hash stored at key. @@ -1462,7 +1462,7 @@ public function hVals($key) { } * $redisCluster->hGet('h', 'a'); // 'X' * */ - public function hGet($key, $hashKey) { } + public function hGet($key, $hashKey) {} /** * Returns the whole hash, as an array of strings indexed by strings. @@ -1495,7 +1495,7 @@ public function hGet($key, $hashKey) { } * // The order is random and corresponds to redis' own internal representation of the set structure. * */ - public function hGetAll($key) { } + public function hGetAll($key) {} /** * Verify if the specified member exists in a key. @@ -1512,7 +1512,7 @@ public function hGetAll($key) { } * $redisCluster->hExists('h', 'NonExistingKey'); // FALSE * */ - public function hExists($key, $hashKey) { } + public function hExists($key, $hashKey) {} /** * Increments the value of a member from a hash by a given amount. @@ -1530,7 +1530,7 @@ public function hExists($key, $hashKey) { } * $redisCluster->hIncrBy('h', 'x', 1); // h[x] ← 2 + 1. Returns 3 * */ - public function hIncrBy($key, $hashKey, $value) { } + public function hIncrBy($key, $hashKey, $value) {} /** * Adds a value to the hash stored at key. If this value is already in the hash, FALSE is returned. @@ -1553,7 +1553,7 @@ public function hIncrBy($key, $hashKey, $value) { } * $redisCluster->hGet('h', 'key1'); // returns "plop" * */ - public function hSet($key, $hashKey, $value) { } + public function hSet($key, $hashKey, $value) {} /** * Adds a value to the hash stored at key only if this field isn't already in the hash. @@ -1572,7 +1572,7 @@ public function hSet($key, $hashKey, $value) { } * field wasn't replaced. * */ - public function hSetNx($key, $hashKey, $value) { } + public function hSetNx($key, $hashKey, $value) {} /** * Retrieve the values associated to the specified fields in the hash. @@ -1592,7 +1592,7 @@ public function hSetNx($key, $hashKey, $value) { } * 'value2') * */ - public function hMGet($key, $hashKeys) { } + public function hMGet($key, $hashKeys) {} /** * Fills in a whole hash. Non-string values are converted to string, using the standard (string) cast. @@ -1610,7 +1610,7 @@ public function hMGet($key, $hashKeys) { } * $redisCluster->hIncrBy('user:1', 'salary', 100); // Joe earns 100 more now. * */ - public function hMSet($key, $hashKeys) { } + public function hMSet($key, $hashKeys) {} /** * Removes a values from the hash stored at key. @@ -1645,7 +1645,7 @@ public function hMSet($key, $hashKeys) { } * // } * */ - public function hDel($key, $hashKey1, $hashKey2 = null, $hashKeyN = null) { } + public function hDel($key, $hashKey1, $hashKey2 = null, $hashKeyN = null) {} /** * Increment the float value of a hash field by the given amount @@ -1674,7 +1674,7 @@ public function hDel($key, $hashKey1, $hashKey2 = null, $hashKeyN = null) { } * // } * */ - public function hIncrByFloat($key, $field, $increment) { } + public function hIncrByFloat($key, $field, $increment) {} /** * Dump a key out of a redis database, the value of which can later be passed into redis using the RESTORE command. @@ -1690,7 +1690,7 @@ public function hIncrByFloat($key, $field, $increment) { } * $val = $redisCluster->dump('foo'); // $val will be the Redis encoded key value * */ - public function dump($key) { } + public function dump($key) {} /** * Returns the rank of a given member in the specified sorted set, starting at 0 for the item @@ -1712,7 +1712,7 @@ public function dump($key) { } * $redisCluster->zRevRank('key', 'two'); // 0 * */ - public function zRank($key, $member) { } + public function zRank($key, $member) {} /** * @see zRank() @@ -1723,7 +1723,7 @@ public function zRank($key, $member) { } * @return int the item's score * @link https://redis.io/commands/zrevrank */ - public function zRevRank($key, $member) { } + public function zRevRank($key, $member) {} /** * Increment the number stored at key by one. @@ -1740,7 +1740,7 @@ public function zRevRank($key, $member) { } * $redisCluster->incr('key1'); // 4 * */ - public function incr($key) { } + public function incr($key) {} /** * Decrement the number stored at key by one. @@ -1756,7 +1756,7 @@ public function incr($key) { } * $redisCluster->decr('key1'); // -3 * */ - public function decr($key) { } + public function decr($key) {} /** * Increment the number stored at key by one. If the second argument is filled, it will be used as the integer @@ -1776,7 +1776,7 @@ public function decr($key) { } * $redisCluster->incrBy('key1', 10); // 14 * */ - public function incrBy($key, $value) { } + public function incrBy($key, $value) {} /** * Decrement the number stored at key by one. If the second argument is filled, it will be used as the integer @@ -1795,7 +1795,7 @@ public function incrBy($key, $value) { } * $redisCluster->decrBy('key1', 10); // -13 * */ - public function decrBy($key, $value) { } + public function decrBy($key, $value) {} /** * Increment the float value of a key by the given amount @@ -1813,7 +1813,7 @@ public function decrBy($key, $value) { } * var_dump( $redisCluster->get('x') ); // string(3) "4.5" * */ - public function incrByFloat($key, $increment) { } + public function incrByFloat($key, $increment) {} /** * Sets an expiration date (a timeout) on an item. @@ -1831,7 +1831,7 @@ public function incrByFloat($key, $increment) { } * $redisCluster->get('x'); // will return `FALSE`, as 'x' has expired. * */ - public function expire($key, $ttl) { } + public function expire($key, $ttl) {} /** * Sets an expiration date (a timeout in milliseconds) on an item. @@ -1849,7 +1849,7 @@ public function expire($key, $ttl) { } * $redisCluster->pttl('x'); // 11500 * */ - public function pExpire($key, $ttl) { } + public function pExpire($key, $ttl) {} /** * Sets an expiration date (a timestamp) on an item. @@ -1868,7 +1868,7 @@ public function pExpire($key, $ttl) { } * $redisCluster->get('x'); // will return `FALSE`, as 'x' has expired. * */ - public function expireAt($key, $timestamp) { } + public function expireAt($key, $timestamp) {} /** * Sets an expiration date (a timestamp) on an item. Requires a timestamp in milliseconds @@ -1886,7 +1886,7 @@ public function expireAt($key, $timestamp) { } * $redisCluster->pttl('x'); // 218270120575 * */ - public function pExpireAt($key, $timestamp) { } + public function pExpireAt($key, $timestamp) {} /** * Append specified string to the string stored in specified key. @@ -1903,7 +1903,7 @@ public function pExpireAt($key, $timestamp) { } * $redisCluster->get('key'); // 'value1value2' * */ - public function append($key, $value) { } + public function append($key, $value) {} /** * Return a single bit out of a larger string @@ -1920,7 +1920,7 @@ public function append($key, $value) { } * $redisCluster->getBit('key', 1); // 1 * */ - public function getBit($key, $offset) { } + public function getBit($key, $offset) {} /** * Changes a single bit of a string. @@ -1939,7 +1939,7 @@ public function getBit($key, $offset) { } * $redisCluster->get('key'); // chr(0x2f) = "/" = b("0010 1111") * */ - public function setBit($key, $offset, $value) { } + public function setBit($key, $offset, $value) {} /** * Bitwise operation on multiple keys. @@ -1963,7 +1963,7 @@ public function setBit($key, $offset, $value) { } * $redisCluster->bitOp('XOR', 'bit', 'bit1', 'bit2'); // bit = 11 * */ - public function bitOp($operation, $retKey, $key1, $key2, $key3 = null) { } + public function bitOp($operation, $retKey, $key1, $key2, $key3 = null) {} /** * Return the position of the first bit set to 1 or 0 in a string. The position is returned, thinking of the @@ -1997,7 +1997,7 @@ public function bitOp($operation, $retKey, $key1, $key2, $key3 = null) { } * $redisCluster->bitpos('key', 0, 1, 5); // int(-1) * */ - public function bitpos($key, $bit, $start = 0, $end = null) { } + public function bitpos($key, $bit, $start = 0, $end = null) {} /** * Count bits in a string. @@ -2015,7 +2015,7 @@ public function bitpos($key, $bit, $start = 0, $end = null) { } * var_dump( $redisCluster->bitCount('bit', 0, 2) ); // int(11) * */ - public function bitCount($key) { } + public function bitCount($key) {} /** * @see lIndex() @@ -2025,7 +2025,7 @@ public function bitCount($key) { } * * @link https://redis.io/commands/lindex */ - public function lGet($key, $index) { } + public function lGet($key, $index) {} /** * Return a substring of a larger string @@ -2043,7 +2043,7 @@ public function lGet($key, $index) { } * $redisCluster->getRange('key', -5, -1); // 'value' * */ - public function getRange($key, $start, $end) { } + public function getRange($key, $start, $end) {} /** * Trims an existing list so that it will contain only a specified range of elements. @@ -2064,7 +2064,7 @@ public function getRange($key, $start, $end) { } * $redisCluster->lRange('key1', 0, -1); // array('A', 'B') * */ - public function lTrim($key, $start, $stop) { } + public function lTrim($key, $start, $stop) {} /** * Returns the specified elements of the list stored at the specified key in @@ -2085,7 +2085,7 @@ public function lTrim($key, $start, $stop) { } * $redisCluster->lRange('key1', 0, -1); // array('A', 'B', 'C') * */ - public function lRange($key, $start, $end) { } + public function lRange($key, $start, $end) {} /** * Deletes the elements of the sorted set stored at the specified key which have rank in the range [start,end]. @@ -2105,7 +2105,7 @@ public function lRange($key, $start, $end) { } * $redisCluster->zRange('key', 0, -1, true); // array('three' => 3) * */ - public function zRemRangeByRank($key, $start, $end) { } + public function zRemRangeByRank($key, $start, $end) {} /** * Publish messages to channels. Warning: this function will probably change in the future. @@ -2117,7 +2117,7 @@ public function zRemRangeByRank($key, $start, $end) { } * @return int Number of clients that received the message * @example $redisCluster->publish('chan-1', 'hello, world!'); // send message. */ - public function publish($channel, $message) { } + public function publish($channel, $message) {} /** * Renames a key. @@ -2135,7 +2135,7 @@ public function publish($channel, $message) { } * $redisCluster->get('x'); // → `FALSE` * */ - public function rename($srcKey, $dstKey) { } + public function rename($srcKey, $dstKey) {} /** * Renames a key. @@ -2156,7 +2156,7 @@ public function rename($srcKey, $dstKey) { } * $redisCluster->get('x'); // → `FALSE` * */ - public function renameNx($srcKey, $dstKey) { } + public function renameNx($srcKey, $dstKey) {} /** * When called with a single key, returns the approximated cardinality computed by the HyperLogLog data @@ -2174,7 +2174,7 @@ public function renameNx($srcKey, $dstKey) { } * $redisCluster->pfCount(array('key1', 'key2')); // int(3) * */ - public function pfCount($key) { } + public function pfCount($key) {} /** * Adds all the element arguments to the HyperLogLog data structure stored at the key. @@ -2186,7 +2186,7 @@ public function pfCount($key) { } * @link https://redis.io/commands/pfadd * @example $redisCluster->pfAdd('key', array('elem1', 'elem2')) */ - public function pfAdd($key, array $elements) { } + public function pfAdd($key, array $elements) {} /** * Merge multiple HyperLogLog values into an unique value that will approximate the cardinality @@ -2205,7 +2205,7 @@ public function pfAdd($key, array $elements) { } * $redisCluster->pfCount('key3'); // int(3) * */ - public function pfMerge($destKey, array $sourceKeys) { } + public function pfMerge($destKey, array $sourceKeys) {} /** * Changes a substring of a larger string. @@ -2223,7 +2223,7 @@ public function pfMerge($destKey, array $sourceKeys) { } * $redisCluster->get('key'); // "Hello redis" * */ - public function setRange($key, $offset, $value) { } + public function setRange($key, $offset, $value) {} /** * Restore a key from the result of a DUMP operation. @@ -2241,7 +2241,7 @@ public function setRange($key, $offset, $value) { } * $redisCluster->restore('bar', 0, $val); // The key 'bar', will now be equal to the key 'foo' * */ - public function restore($key, $ttl, $value) { } + public function restore($key, $ttl, $value) {} /** * Moves the specified member from the set at srcKey to the set at dstKey. @@ -2264,7 +2264,7 @@ public function restore($key, $ttl, $value) { } * // 'key2' => {'set21', 'set22', 'set13'} * */ - public function sMove($srcKey, $dstKey, $member) { } + public function sMove($srcKey, $dstKey, $member) {} /** * Returns a range of elements from the ordered set stored at the specified key, @@ -2291,7 +2291,7 @@ public function sMove($srcKey, $dstKey, $member) { } * $redisCluster->zRange('key1', 0, -1, true); // array('val0' => 0, 'val2' => 2, 'val10' => 10) * */ - public function zRange($key, $start, $end, $withscores = null) { } + public function zRange($key, $start, $end, $withscores = null) {} /** * Returns the elements of the sorted set stored at the specified key in the range [start, end] @@ -2319,7 +2319,7 @@ public function zRange($key, $start, $end, $withscores = null) { } * $redisCluster->zRevRange('key', 0, -1, true); // array('val10' => 10, 'val2' => 2, 'val0' => 0) * */ - public function zRevRange($key, $start, $end, $withscore = null) { } + public function zRevRange($key, $start, $end, $withscore = null) {} /** * Returns the elements of the sorted set stored at the specified key which have scores in the @@ -2354,7 +2354,7 @@ public function zRevRange($key, $start, $end, $withscore = null) { } * // array('val2'=> 2) * */ - public function zRangeByScore($key, $start, $end, array $options = array()) { } + public function zRangeByScore($key, $start, $end, array $options = []) {} /** * @see zRangeByScore() @@ -2366,7 +2366,7 @@ public function zRangeByScore($key, $start, $end, array $options = array()) { } * * @return array */ - public function zRevRangeByScore($key, $start, $end, array $options = array()) { } + public function zRevRangeByScore($key, $start, $end, array $options = []) {} /** * Returns a range of members in a sorted set, by lexicographical range @@ -2390,7 +2390,7 @@ public function zRevRangeByScore($key, $start, $end, array $options = array()) { * $redisCluster->zRevRangeByLex('key', '(c','-'); // array('b', 'a') * */ - public function zRangeByLex($key, $min, $max, $offset = null, $limit = null) { } + public function zRangeByLex($key, $min, $max, $offset = null, $limit = null) {} /** * @see zRangeByLex() @@ -2404,7 +2404,7 @@ public function zRangeByLex($key, $min, $max, $offset = null, $limit = null) { } * @return array * @link https://redis.io/commands/zrevrangebylex */ - public function zRevRangeByLex($key, $min, $max, $offset = null, $limit = null) { } + public function zRevRangeByLex($key, $min, $max, $offset = null, $limit = null) {} /** * Count the number of members in a sorted set between a given lexicographical range. @@ -2423,7 +2423,7 @@ public function zRevRangeByLex($key, $min, $max, $offset = null, $limit = null) * $redisCluster->zLexCount('key', '[b', '[f'); // 5 * */ - public function zLexCount($key, $min, $max) { } + public function zLexCount($key, $min, $max) {} /** * Remove all members in a sorted set between the given lexicographical range. @@ -2443,8 +2443,7 @@ public function zLexCount($key, $min, $max) { } * $redisCluster->zRange('key',0,-1);// array('a','b','e','f','g') * */ - public function zRemRangeByLex($key, $min, $max) { - } + public function zRemRangeByLex($key, $min, $max) {} /** * Add multiple sorted sets and store the resulting sorted set in a new key @@ -2479,7 +2478,7 @@ public function zRemRangeByLex($key, $min, $max) { * $redisCluster->zUnionStore('ko3', array('k1', 'k2'), array(5, 1)); // 4, 'ko3' => array('val0', 'val2', 'val3','val1') * */ - public function zUnionStore($Output, $ZSetKeys, ?array $Weights = null, $aggregateFunction = 'SUM') { } + public function zUnionStore($Output, $ZSetKeys, ?array $Weights = null, $aggregateFunction = 'SUM') {} /** * Intersect multiple sorted sets and store the resulting sorted set in a new key @@ -2518,7 +2517,7 @@ public function zUnionStore($Output, $ZSetKeys, ?array $Weights = null, $aggrega * $redisCluster->zInterStore('ko4', array('k1', 'k2'), array(1, 5), 'max'); // 2, 'ko4' => array('val3', 'val1') * */ - public function zInterStore($Output, $ZSetKeys, array $Weights = null, $aggregateFunction = 'SUM') { } + public function zInterStore($Output, $ZSetKeys, array $Weights = null, $aggregateFunction = 'SUM') {} /** * Deletes a specified member from the ordered set. @@ -2543,7 +2542,7 @@ public function zInterStore($Output, $ZSetKeys, array $Weights = null, $aggregat * // } * */ - public function zRem($key, $member1, $member2 = null, $memberN = null) { } + public function zRem($key, $member1, $member2 = null, $memberN = null) {} /** * Sort @@ -2574,7 +2573,7 @@ public function zRem($key, $member1, $member2 = null, $memberN = null) { } * var_dump($redisCluster->sort('s', array('sort' => 'desc', 'store' => 'out'))); // (int)5 * */ - public function sort($key, $option = null) { } + public function sort($key, $option = null) {} /** * Describes the object pointed to by a key. @@ -2596,7 +2595,7 @@ public function sort($key, $option = null) { } * $redisCluster->object("idletime", "l"); // → 400 (in seconds, with a precision of 10 seconds). * */ - public function object($string = '', $key = '') { } + public function object($string = '', $key = '') {} /** * Subscribe to channels. Warning: this function will probably change in the future. @@ -2629,7 +2628,7 @@ public function object($string = '', $key = '') { } * $redisCluster->subscribe(array('chan-1', 'chan-2', 'chan-3'), 'f'); // subscribe to 3 chans * */ - public function subscribe($channels, $callback) { } + public function subscribe($channels, $callback) {} /** * Subscribe to channels by pattern @@ -2650,7 +2649,7 @@ public function subscribe($channels, $callback) { } * } * */ - public function psubscribe($patterns, $callback) { } + public function psubscribe($patterns, $callback) {} /** * Unsubscribes the client from the given channels, or from all of them if none is given. @@ -2658,7 +2657,7 @@ public function psubscribe($patterns, $callback) { } * @param $channels * @param $callback */ - public function unSubscribe($channels, $callback) { } + public function unSubscribe($channels, $callback) {} /** * Unsubscribes the client from the given patterns, or from all of them if none is given. @@ -2666,7 +2665,7 @@ public function unSubscribe($channels, $callback) { } * @param $channels * @param $callback */ - public function punSubscribe($channels, $callback) { } + public function punSubscribe($channels, $callback) {} /** * Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself. @@ -2687,7 +2686,7 @@ public function punSubscribe($channels, $callback) { } * $redisCluster->evalSha($sha); // Returns 1 * */ - public function evalSha($scriptSha, $args = array(), $numKeys = 0) { } + public function evalSha($scriptSha, $args = [], $numKeys = 0) {} /** * Scan the keyspace for keys. @@ -2709,7 +2708,7 @@ public function evalSha($scriptSha, $args = array(), $numKeys = 0) { } * } * */ - public function scan(&$iterator, $node, $pattern = null, $count = 0) { } + public function scan(&$iterator, $node, $pattern = null, $count = 0) {} /** * Scan a set for members. @@ -2731,7 +2730,7 @@ public function scan(&$iterator, $node, $pattern = null, $count = 0) { } * } * */ - public function sScan($key, &$iterator, $pattern = null, $count = 0) { } + public function sScan($key, &$iterator, $pattern = null, $count = 0) {} /** * Scan a sorted set for members, with optional pattern and count. @@ -2753,7 +2752,7 @@ public function sScan($key, &$iterator, $pattern = null, $count = 0) { } * } * */ - public function zScan($key, &$iterator, $pattern = null, $count = 0) { } + public function zScan($key, &$iterator, $pattern = null, $count = 0) {} /** * Scan a HASH value for members, with an optional pattern and count. @@ -2775,7 +2774,7 @@ public function zScan($key, &$iterator, $pattern = null, $count = 0) { } * } * */ - public function hScan($key, &$iterator, $pattern = null, $count = 0) { } + public function hScan($key, &$iterator, $pattern = null, $count = 0) {} /** * Detect whether we're in ATOMIC/MULTI/PIPELINE mode. @@ -2783,7 +2782,7 @@ public function hScan($key, &$iterator, $pattern = null, $count = 0) { } * @return int Either RedisCluster::ATOMIC, RedisCluster::MULTI or RedisCluster::PIPELINE * @example $redisCluster->getMode(); */ - public function getMode() { } + public function getMode() {} /** * The last error message (if any) @@ -2796,7 +2795,7 @@ public function getMode() { } * // "ERR Error compiling script (new function): user_script:1: '=' expected near '-'" * */ - public function getLastError() { } + public function getLastError() {} /** * Clear the last error message @@ -2813,7 +2812,7 @@ public function getLastError() { } * // NULL * */ - public function clearLastError() { } + public function clearLastError() {} /** * Get client option @@ -2825,7 +2824,7 @@ public function clearLastError() { } * // return RedisCluster::SERIALIZER_NONE, RedisCluster::SERIALIZER_PHP, or RedisCluster::SERIALIZER_IGBINARY. * $redisCluster->getOption(RedisCluster::OPT_SERIALIZER); */ - public function getOption($name) { } + public function getOption($name) {} /** * Set client option. @@ -2842,7 +2841,7 @@ public function getOption($name) { } * $redisCluster->setOption(RedisCluster::OPT_PREFIX, 'myAppName:'); // use custom prefix on all keys * */ - public function setOption($name, $value) { } + public function setOption($name, $value) {} /** * A utility method to prefix the value with the prefix setting for phpredis. @@ -2856,7 +2855,7 @@ public function setOption($name, $value) { } * $redisCluster->_prefix('my-value'); // Will return 'my-prefix:my-value' * */ - public function _prefix($value) { } + public function _prefix($value) {} /** * A utility method to serialize values manually. This method allows you to serialize a value with whatever @@ -2878,7 +2877,7 @@ public function _prefix($value) { } * $redisCluster->_serialize("foo"); // Returns 's:3:"foo";' * */ - public function _serialize($value) { } + public function _serialize($value) {} /** * A utility method to unserialize data with whatever serializer is set up. If there is no serializer set, the @@ -2895,7 +2894,7 @@ public function _serialize($value) { } * $redisCluster->_unserialize('a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}'); // Will return Array(1,2,3) * */ - public function _unserialize($value) { } + public function _unserialize($value) {} /** * Return all redis master nodes @@ -2906,7 +2905,7 @@ public function _unserialize($value) { } * $redisCluster->_masters(); // Will return [[0=>'127.0.0.1','6379'],[0=>'127.0.0.1','6380']] * */ - public function _masters() { } + public function _masters() {} /** * Enter and exit transactional mode. @@ -2936,20 +2935,20 @@ public function _masters() { } * // 3 => 'val2'); * */ - public function multi($mode = RedisCluster::MULTI) { } + public function multi($mode = RedisCluster::MULTI) {} /** * @see multi() * @return void|array * @link https://redis.io/commands/exec */ - public function exec() { } + public function exec() {} /** * @see multi() * @link https://redis.io/commands/discard */ - public function discard() { } + public function discard() {} /** * Watches a key for modifications by another client. If the key is modified between WATCH and EXEC, @@ -2969,13 +2968,13 @@ public function discard() { } * // $ret = FALSE if x has been modified between the call to WATCH and the call to EXEC. * */ - public function watch($key) { } + public function watch($key) {} /** * @see watch() * @link https://redis.io/commands/unwatch */ - public function unwatch() { } + public function unwatch() {} /** * Performs a synchronous save at a specific node. @@ -2989,7 +2988,7 @@ public function unwatch() { } * $redisCluster->save('x'); //key * $redisCluster->save(['127.0.0.1',6379]); //[host,port] */ - public function save($nodeParams) { } + public function save($nodeParams) {} /** * Performs a background save at a specific node. @@ -3000,7 +2999,7 @@ public function save($nodeParams) { } * If a save is already running, this command will fail and return FALSE. * @link https://redis.io/commands/bgsave */ - public function bgsave($nodeParams) { } + public function bgsave($nodeParams) {} /** * Removes all entries from the current database at a specific node. @@ -3010,7 +3009,7 @@ public function bgsave($nodeParams) { } * @return bool Always TRUE. * @link https://redis.io/commands/flushdb */ - public function flushDB($nodeParams) { } + public function flushDB($nodeParams) {} /** * Removes all entries from all databases at a specific node. @@ -3020,7 +3019,7 @@ public function flushDB($nodeParams) { } * @return bool Always TRUE. * @link https://redis.io/commands/flushall */ - public function flushAll($nodeParams) { } + public function flushAll($nodeParams) {} /** * Returns the current database's size at a specific node. @@ -3035,7 +3034,7 @@ public function flushAll($nodeParams) { } * echo "Redis has $count keys\n"; * */ - public function dbSize($nodeParams) { } + public function dbSize($nodeParams) {} /** * Starts the background rewrite of AOF (Append-Only File) at a specific node. @@ -3046,7 +3045,7 @@ public function dbSize($nodeParams) { } * @link https://redis.io/commands/bgrewriteaof * @example $redisCluster->bgrewriteaof('x'); */ - public function bgrewriteaof($nodeParams) { } + public function bgrewriteaof($nodeParams) {} /** * Returns the timestamp of the last disk save at a specific node. @@ -3057,7 +3056,7 @@ public function bgrewriteaof($nodeParams) { } * @link https://redis.io/commands/lastsave * @example $redisCluster->lastSave('x'); */ - public function lastSave($nodeParams) { } + public function lastSave($nodeParams) {} /** * Returns an associative array of strings and integers @@ -3210,7 +3209,7 @@ public function lastSave($nodeParams) { } * $redisCluster->info("CPU"); // just CPU information from Redis INFO * */ - public function info($option = null) { } + public function info($option = null) {} /** * @since redis >= 2.8.12. @@ -3226,7 +3225,7 @@ public function info($option = null) { } * // [ 0=>'master',1 => 3129659, 2 => [ ['127.0.0.1','9001','3129242'], ['127.0.0.1','9002','3129543'] ] ] * */ - public function role($nodeParams) { } + public function role($nodeParams) {} /** * Returns a random key at the specified node @@ -3241,7 +3240,7 @@ public function role($nodeParams) { } * $surprise = $redisCluster->get($key); // who knows what's in there. * */ - public function randomKey($nodeParams) { } + public function randomKey($nodeParams) {} /** * Return the specified node server time. @@ -3262,7 +3261,7 @@ public function randomKey($nodeParams) { } * // } * */ - public function time($nodeParams) { } + public function time($nodeParams) {} /** * Check the specified node status @@ -3273,7 +3272,7 @@ public function time($nodeParams) { } * above. * @link https://redis.io/commands/ping */ - public function ping($nodeParams) { } + public function ping($nodeParams) {} /** * Returns message. @@ -3283,14 +3282,14 @@ public function ping($nodeParams) { } * * @return mixed */ - public function echo ($nodeParams, $msg) { } + public function echo($nodeParams, $msg) {} /** * Returns Array reply of details about all Redis Cluster commands. * * @return mixed array | bool */ - public function command() { } + public function command() {} /** * Send arbitrary things to the redis server at the specified node @@ -3301,7 +3300,7 @@ public function command() { } * * @return mixed */ - public function rawCommand($nodeParams, $command, $arguments) { } + public function rawCommand($nodeParams, $command, $arguments) {} /** * @since redis >= 3.0 @@ -3318,7 +3317,7 @@ public function rawCommand($nodeParams, $command, $arguments) { } * $redisCluster->cluster(['127.0.0.1',6379],'INFO'); * */ - public function cluster($nodeParams, $command, $arguments) { } + public function cluster($nodeParams, $command, $arguments) {} /** * Allows you to get information of the cluster client @@ -3327,7 +3326,7 @@ public function cluster($nodeParams, $command, $arguments) { } * @param string $subCmd can be: 'LIST', 'KILL', 'GETNAME', or 'SETNAME' * @param string $args optional arguments */ - public function client($nodeParams, $subCmd, $args) { } + public function client($nodeParams, $subCmd, $args) {} /** * Get or Set the redis config keys. @@ -3346,7 +3345,7 @@ public function client($nodeParams, $subCmd, $args) { } * $redisCluster->config(['127.0.0.1',6379], "SET", "dir", "/var/run/redis/dumps/"); * */ - public function config($nodeParams, $operation, $key, $value) { } + public function config($nodeParams, $operation, $key, $value) {} /** * A command allowing you to get information on the Redis pub/sub system. @@ -3373,7 +3372,7 @@ public function config($nodeParams, $operation, $key, $value) { } * $redisCluster->pubsub(['127.0.0.1',6379], 'numpat'); // Get the number of pattern subscribers * */ - public function pubsub($nodeParams, $keyword, $argument) { } + public function pubsub($nodeParams, $keyword, $argument) {} /** * Execute the Redis SCRIPT command to perform various operations on the scripting subsystem. @@ -3400,7 +3399,7 @@ public function pubsub($nodeParams, $keyword, $argument) { } * SCRIPT KILL will return true if a script was able to be killed and false if not * SCRIPT EXISTS will return an array with TRUE or FALSE for each passed script */ - public function script($nodeParams, $command, $script) { } + public function script($nodeParams, $command, $script) {} /** * This function is used in order to read and reset the Redis slow queries log. @@ -3415,7 +3414,7 @@ public function script($nodeParams, $command, $script) { } * $redisCluster->slowLog(['127.0.0.1',6379],'get','2'); * */ - public function slowLog($nodeParams, $command, $argument) { } + public function slowLog($nodeParams, $command, $argument) {} /** * Add one or more geospatial items in the geospatial index represented using a sorted set @@ -3432,7 +3431,7 @@ public function slowLog($nodeParams, $command, $argument) { } * $redisCluster->geoAdd('Sicily', 15.087269, 37.502669, "Catania"); // int(1) * */ - public function geoAdd($key, $longitude, $latitude, $member) { } + public function geoAdd($key, $longitude, $latitude, $member) {} /** * Returns members of a geospatial index as standard geohash strings @@ -3449,7 +3448,7 @@ public function geoAdd($key, $longitude, $latitude, $member) { } * $redisCluster->geohash('Sicily','Palermo','Catania');//['sqc8b49rny0','sqdtr74hyu0'] * */ - public function geohash($key, $member1, $member2 = null, $memberN = null) { } + public function geohash($key, $member1, $member2 = null, $memberN = null) {} /** * Returns longitude and latitude of members of a geospatial index @@ -3464,10 +3463,9 @@ public function geohash($key, $member1, $member2 = null, $memberN = null) { } * $redisCluster->geopos('Sicily','Palermo');//[['13.36138933897018433','38.11555639549629859']] * */ - public function geopos($key, $member1, $member2 = null, $memberN = null) { } + public function geopos($key, $member1, $member2 = null, $memberN = null) {} /** - * * Returns the distance between two members of a geospatial index * * @param string $key @@ -3488,7 +3486,7 @@ public function geopos($key, $member1, $member2 = null, $memberN = null) { } * $redisCluster->geoDist('Sicily', 'Palermo','Catania', 'km'); // float(166.2742) * */ - public function geoDist($key, $member1, $member2, $unit = 'm') { } + public function geoDist($key, $member1, $member2, $unit = 'm') {} /** * Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point @@ -3554,7 +3552,7 @@ public function geoDist($key, $member1, $member2, $unit = 'm') { } * *
          */
    -    public function geoRadius($key, $longitude, $latitude, $radius, $radiusUnit, array $options) { }
    +    public function geoRadius($key, $longitude, $latitude, $radius, $radiusUnit, array $options) {}
     
         /**
          * Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member
    @@ -3567,8 +3565,7 @@ public function geoRadius($key, $longitude, $latitude, $radius, $radiusUnit, arr
          * @param string $radiusUnit
          * @param array  $options
          */
    -    public function geoRadiusByMember($key, $member, $radius, $radiusUnit, array $options) { }
    -
    +    public function geoRadiusByMember($key, $member, $radius, $radiusUnit, array $options) {}
     }
     
     class RedisClusterException extends Exception {}
    diff --git a/redis/RedisSentinel.php b/redis/RedisSentinel.php
    index 3bfa16641..43b3d5466 100755
    --- a/redis/RedisSentinel.php
    +++ b/redis/RedisSentinel.php
    @@ -32,166 +32,166 @@
      * @author  Tawana Musewe 
      * @link    https://github.com/tbtmuse/phpredis-sentinel-phpdoc
      */
    -class RedisSentinel {
    +class RedisSentinel
    +{
    +    /**
    +     * Creates a Redis Sentinel
    +     *
    +     * @param string      $host          Sentinel IP address or hostname
    +     * @param int         $port          Sentinel Port
    +     * @param float       $timeout       Value in seconds (optional, default is 0 meaning unlimited)
    +     * @param string|null $persistent    Persistent connection id (optional, default is null meaning not persistent)
    +     * @param int         $retryInterval Value in milliseconds (optional, default is 0)
    +     * @param float       $readTimeout   Value in seconds (optional, default is 0 meaning unlimited)
    +     *
    +     * @example
    +     * // 1s timeout, 100ms delay between reconnection attempts.
    +     * $sentinel = new RedisSentinel('127.0.0.1', 26379, 1, null, 100);
    +     */
    +    public function __construct(
    +        string $host,
    +        int $port,
    +        float $timeout = 0,
    +        ?string $persistent = null,
    +        int $retryInterval = 0,
    +        float $readTimeout = 0
    +    ) {}
     
    -	/**
    -	 * Creates a Redis Sentinel
    -	 *
    -	 * @param string      $host          Sentinel IP address or hostname
    -	 * @param int         $port          Sentinel Port
    -	 * @param float       $timeout       Value in seconds (optional, default is 0 meaning unlimited)
    -	 * @param string|null $persistent    Persistent connection id (optional, default is null meaning not persistent)
    -	 * @param int         $retryInterval Value in milliseconds (optional, default is 0)
    -	 * @param float       $readTimeout   Value in seconds (optional, default is 0 meaning unlimited)
    -	 *
    -	 * @example
    -	 * // 1s timeout, 100ms delay between reconnection attempts.
    -	 * $sentinel = new RedisSentinel('127.0.0.1', 26379, 1, null, 100);
    -	 */
    -	public function __construct(
    -		string $host,
    -		int $port,
    -		float $timeout = 0,
    -		?string $persistent = null,
    -		int $retryInterval = 0,
    -		float $readTimeout = 0
    -	) {}
    +    /**
    +     * Check if the current Sentinel configuration is able to reach the quorum needed to failover a master, and the
    +     * majority needed to authorize the failover. This command should be used in monitoring systems to check if a
    +     * Sentinel deployment is ok.
    +     *
    +     * @param string $master Name of master
    +     *
    +     * @return bool True in case of success, False in case of failure.
    +     *
    +     * @example $sentinel->ckquorum('mymaster');
    +     *
    +     * @since   >= 5.2.0
    +     */
    +    public function ckquorum(string $master): bool {}
     
    -	/**
    -	 * Check if the current Sentinel configuration is able to reach the quorum needed to failover a master, and the
    -	 * majority needed to authorize the failover. This command should be used in monitoring systems to check if a
    -	 * Sentinel deployment is ok.
    -	 *
    -	 * @param string $master Name of master
    -	 *
    -	 * @return bool True in case of success, False in case of failure.
    -	 *
    -	 * @example $sentinel->ckquorum('mymaster');
    -	 *
    -	 * @since   >= 5.2.0
    -	 */
    -	public function ckquorum(string $master): bool {}
    +    /**
    +     * Force a failover as if the master was not reachable, and without asking for agreement to other Sentinels
    +     * (however a new version of the configuration will be published so that the other Sentinels will update
    +     * their configurations).
    +     *
    +     * @param string $master Name of master
    +     *
    +     * @return bool True in case of success, False in case of failure.
    +     *
    +     * @example $sentinel->failover('mymaster');
    +     *
    +     * @since   >= 5.2.0
    +     */
    +    public function failover(string $master): bool {}
     
    -	/**
    -	 * Force a failover as if the master was not reachable, and without asking for agreement to other Sentinels
    -	 * (however a new version of the configuration will be published so that the other Sentinels will update
    -	 * their configurations).
    -	 *
    -	 * @param string $master Name of master
    -	 *
    -	 * @return bool True in case of success, False in case of failure.
    -	 *
    -	 * @example $sentinel->failover('mymaster');
    -	 *
    -	 * @since   >= 5.2.0
    -	 */
    -	public function failover(string $master): bool {}
    +    /**
    +     * Force Sentinel to rewrite its configuration on disk, including the current Sentinel state.
    +     *
    +     * Normally Sentinel rewrites the configuration every time something changes in its state (in the context of the
    +     * subset of the state which is persisted on disk across restart). However sometimes it is possible that the
    +     * configuration file is lost because of operation errors, disk failures, package upgrade scripts or configuration
    +     * managers. In those cases a way to to force Sentinel to rewrite the configuration file is handy.
    +     *
    +     * This command works even if the previous configuration file is completely missing.
    +     *
    +     * @return bool True in case of success, False in case of failure.
    +     *
    +     * @example $sentinel->flushconfig();
    +     *
    +     * @since   >= 5.2.0
    +     */
    +    public function flushconfig(): bool {}
     
    -	/**
    -	 * Force Sentinel to rewrite its configuration on disk, including the current Sentinel state.
    -	 *
    -	 * Normally Sentinel rewrites the configuration every time something changes in its state (in the context of the
    -	 * subset of the state which is persisted on disk across restart). However sometimes it is possible that the
    -	 * configuration file is lost because of operation errors, disk failures, package upgrade scripts or configuration
    -	 * managers. In those cases a way to to force Sentinel to rewrite the configuration file is handy.
    -	 *
    -	 * This command works even if the previous configuration file is completely missing.
    -	 *
    -	 * @return bool True in case of success, False in case of failure.
    -	 *
    -	 * @example $sentinel->flushconfig();
    -	 *
    -	 * @since   >= 5.2.0
    -	 */
    -	public function flushconfig(): bool {}
    +    /**
    +     * Return the ip and port number of the master with that name. If a failover is in progress or terminated
    +     * successfully for this master it returns the address and port of the promoted replica.
    +     *
    +     * @param string $master Name of master
    +     *
    +     * @return array|false ['address', 'port'] in case of success, False in case of failure.
    +     *
    +     * @example $sentinel->getMasterAddrByName('mymaster');
    +     *
    +     * @since   >= 5.2.0
    +     */
    +    public function getMasterAddrByName(string $master) {}
     
    -	/**
    -	 * Return the ip and port number of the master with that name. If a failover is in progress or terminated
    -	 * successfully for this master it returns the address and port of the promoted replica.
    -	 *
    -	 * @param string $master Name of master
    -	 *
    -	 * @return array|false ['address', 'port'] in case of success, False in case of failure.
    -	 *
    -	 * @example $sentinel->getMasterAddrByName('mymaster');
    -	 *
    -	 * @since   >= 5.2.0
    -	 */
    -	public function getMasterAddrByName(string $master) {}
    +    /**
    +     * Return the state and info of the specified master
    +     *
    +     * @param string $master Name of master
    +     *
    +     * @return array|false Associative array with info in case of success, False in case of failure.
    +     *
    +     * @example $sentinel->master('mymaster');
    +     *
    +     * @since   >= 5.2.0
    +     */
    +    public function master(string $master) {}
     
    -	/**
    -	 * Return the state and info of the specified master
    -	 *
    -	 * @param string $master Name of master
    -	 *
    -	 * @return array|false Associative array with info in case of success, False in case of failure.
    -	 *
    -	 * @example $sentinel->master('mymaster');
    -	 *
    -	 * @since   >= 5.2.0
    -	 */
    -	public function master(string $master) {}
    +    /**
    +     * Return a list of monitored masters and their state
    +     *
    +     * @return array|false Array of arrays with info for each master in case of success, FALSE in case of failure.
    +     *
    +     * @example $sentinel->masters();
    +     *
    +     * @since   >= 5.2.0
    +     */
    +    public function masters() {}
     
    -	/**
    -	 * Return a list of monitored masters and their state
    -	 *
    -	 * @return array|false Array of arrays with info for each master in case of success, FALSE in case of failure.
    -	 *
    -	 * @example $sentinel->masters();
    -	 *
    -	 * @since   >= 5.2.0
    -	 */
    -	public function masters() {}
    +    /**
    +     * Ping the sentinel
    +     *
    +     * @return bool True in case of success, False in case of failure
    +     *
    +     * @example $sentinel->ping();
    +     *
    +     * @since   >= 5.2.0
    +     */
    +    public function ping(): bool {}
     
    -	/**
    -	 * Ping the sentinel
    -	 *
    -	 * @return bool True in case of success, False in case of failure
    -	 *
    -	 * @example $sentinel->ping();
    -	 *
    -	 * @since   >= 5.2.0
    -	 */
    -	public function ping(): bool {}
    +    /**
    +     * Reset all the masters with matching name. The pattern argument is a glob-style pattern.
    +     * The reset process clears any previous state in a master (including a failover in progress), and removes every
    +     * replica and sentinel already discovered and associated with the master.
    +     *
    +     * @param string $pattern Glob-style pattern
    +     *
    +     * @return bool True in case of success, False in case of failure
    +     *
    +     * @example $sentinel->reset('*');
    +     *
    +     * @since   >= 5.2.0
    +     */
    +    public function reset(string $pattern): bool {}
     
    -	/**
    -	 * Reset all the masters with matching name. The pattern argument is a glob-style pattern.
    -	 * The reset process clears any previous state in a master (including a failover in progress), and removes every
    -	 * replica and sentinel already discovered and associated with the master.
    -	 *
    -	 * @param string $pattern Glob-style pattern
    -	 *
    -	 * @return bool True in case of success, False in case of failure
    -	 *
    -	 * @example $sentinel->reset('*');
    -	 *
    -	 * @since   >= 5.2.0
    -	 */
    -	public function reset(string $pattern): bool {}
    +    /**
    +     * Return a list of sentinel instances for this master, and their state
    +     *
    +     * @param string $master Name of master
    +     *
    +     * @return array|false Array of arrays with info for each sentinel in case of success, False in case of failure
    +     *
    +     * @example $sentinel->sentinels('mymaster');
    +     *
    +     * @since   >= 5.2.0
    +     */
    +    public function sentinels(string $master) {}
     
    -	/**
    -	 * Return a list of sentinel instances for this master, and their state
    -	 *
    -	 * @param string $master Name of master
    -	 *
    -	 * @return array|false Array of arrays with info for each sentinel in case of success, False in case of failure
    -	 *
    -	 * @example $sentinel->sentinels('mymaster');
    -	 *
    -	 * @since   >= 5.2.0
    -	 */
    -	public function sentinels(string $master) {}
    -
    -	/**
    -	 * Return a list of sentinel instances for this master, and their state
    -	 *
    -	 * @param string $master Name of master
    -	 *
    -	 * @return array|false Array of arrays with info for each replica in case of success, False in case of failure
    -	 *
    -	 * @example $sentinel->slaves('mymaster');
    -	 *
    -	 * @since   >= 5.2.0
    -	 */
    -	public function slaves(string $master) {}
    +    /**
    +     * Return a list of sentinel instances for this master, and their state
    +     *
    +     * @param string $master Name of master
    +     *
    +     * @return array|false Array of arrays with info for each replica in case of success, False in case of failure
    +     *
    +     * @example $sentinel->slaves('mymaster');
    +     *
    +     * @since   >= 5.2.0
    +     */
    +    public function slaves(string $master) {}
     }
    diff --git a/regex/ereg.php b/regex/ereg.php
    index 1ec6ebf71..c94ac2f57 100644
    --- a/regex/ereg.php
    +++ b/regex/ereg.php
    @@ -36,7 +36,7 @@
      * @see preg_match()
      */
     #[Deprecated(reason: "Use preg_match() instead", since: "5.3")]
    -function ereg ($pattern, $string, ?array &$regs = null) {}
    +function ereg($pattern, $string, ?array &$regs = null) {}
     
     /**
      * Replace regular expression
    @@ -62,7 +62,7 @@ function ereg ($pattern, $string, ?array &$regs = null) {}
      * @see preg_replace()
      */
     #[Deprecated(reason: "Use preg_replace() instead", since: "5.3")]
    -function ereg_replace ($pattern, $replacement, $string) {}
    +function ereg_replace($pattern, $replacement, $string) {}
     
     /**
      * Case insensitive regular expression match
    @@ -96,7 +96,7 @@ function ereg_replace ($pattern, $replacement, $string) {}
      * @see preg_match()
      */
     #[Deprecated(reason: "Use preg_match() instead", since: "5.3")]
    -function eregi ($pattern, $string, array &$regs = null) {}
    +function eregi($pattern, $string, array &$regs = null) {}
     
     /**
      * Replace regular expression case insensitive
    @@ -122,7 +122,7 @@ function eregi ($pattern, $string, array &$regs = null) {}
      * @see preg_replace()
      */
     #[Deprecated(reason: "Use preg_replace() instead", since: "5.3")]
    -function eregi_replace ($pattern, $replacement, $string) {}
    +function eregi_replace($pattern, $replacement, $string) {}
     
     /**
      * Split string into array by regular expression
    @@ -165,7 +165,7 @@ function eregi_replace ($pattern, $replacement, $string) {}
      * @see preg_split()
      */
     #[Deprecated(reason: "Use preg_split() instead", since: "5.3")]
    -function split ($pattern, $string, $limit = -1) {}
    +function split($pattern, $string, $limit = -1) {}
     
     /**
      * Split string into array by regular expression case insensitive
    @@ -208,7 +208,7 @@ function split ($pattern, $string, $limit = -1) {}
      * @see preg_split()
      */
     #[Deprecated(reason: "Use preg_split() instead", since: "5.3")]
    -function spliti ($pattern, $string, $limit = -1) {}
    +function spliti($pattern, $string, $limit = -1) {}
     
     /**
      * Make regular expression for case insensitive match
    @@ -224,7 +224,6 @@ function spliti ($pattern, $string, $limit = -1) {}
      * @removed 7.0
      */
     #[Deprecated(since: '5.3')]
    -function sql_regcase ($string) {}
    +function sql_regcase($string) {}
     
     // End of ereg v.
    -?>
    diff --git a/rpminfo/rpminfo.php b/rpminfo/rpminfo.php
    index 984d34e0e..c0be9dacb 100644
    --- a/rpminfo/rpminfo.php
    +++ b/rpminfo/rpminfo.php
    @@ -274,7 +274,6 @@
     const RPMTAG_VERSION = 1001;
     const RPMTAG_XPM = 1013;
     
    -
     /**
      * Compare two RPM evr (epoch:version-release) strings
      *
    @@ -289,7 +288,7 @@
      * 

    * @since 0.1.0 */ -function rpmvercmp (string $evr1, string $evr2) {} +function rpmvercmp(string $evr1, string $evr2) {} /** * Retrieve information from a RPM file, reading its metadata. @@ -313,7 +312,7 @@ function rpmvercmp (string $evr1, string $evr2) {} *

    * @since 0.1.0 */ -function rpminfo (string $path, bool $full = false, ?string &$error = null) {} +function rpminfo(string $path, bool $full = false, ?string &$error = null) {} /** * Retrieve information about an installed package, from the system RPM database. @@ -330,7 +329,7 @@ function rpminfo (string $path, bool $full = false, ?string &$error = null) {} *

    * @since 0.2.0 */ -function rpmdbinfo (string $nevr, bool $full = false) {} +function rpmdbinfo(string $nevr, bool $full = false) {} /** * Retriev information from the local RPM database. @@ -354,4 +353,4 @@ function rpmdbinfo (string $nevr, bool $full = false) {} *

    * @since 0.3.0 */ -function rpmdbsearch (string $pattern, int $rpmtag = RPMTAG_NAME, int $rpmmire = -1, bool $full = false) {} +function rpmdbsearch(string $pattern, int $rpmtag = RPMTAG_NAME, int $rpmmire = -1, bool $full = false) {} diff --git a/rrd/rrd.php b/rrd/rrd.php index 9eb9a51db..256b30fcc 100644 --- a/rrd/rrd.php +++ b/rrd/rrd.php @@ -120,7 +120,7 @@ function rrd_lastupdate($file) {} * @return bool Returns TRUE on success, FALSE otherwise. * @since PECL rrd >= 0.9.0 */ -function rrd_restore($xml_file, $rrd_file, $options = array()) {} +function rrd_restore($xml_file, $rrd_file, $options = []) {} /** * Change some options in the RRD dabase header file. E.g. renames the source for the data etc. @@ -185,15 +185,15 @@ function rrd_disconnect() {} * For example, it's called automatically at the end of command line script. * It's up user whether he wants to call this function at the end of every request or otherwise. */ -function rrdc_disconnect(){} +function rrdc_disconnect() {} /** * Class for creation of RRD database file. * @link https://php.net/manual/en/class.rrdcreator.php * @since PECL rrd >= 0.9.0 */ -class RRDCreator { - +class RRDCreator +{ /** * Adds RRA - archive of data values for each data source.

    * Archive consists of a number of data values or statistics for each of the defined data-sources (DS). Data sources are defined by method RRDCreator::addDataSource(). You need call this method for each requested archive. @@ -245,7 +245,6 @@ public function __construct($path, $startTime = '', $step = 0) {} * @since PECL rrd >= 0.9.0 */ public function save() {} - } /** @@ -253,8 +252,8 @@ public function save() {} * @link https://php.net/manual/en/class.rrdgraph.php * @since PECL rrd >= 0.9.0 */ -class RRDGraph { - +class RRDGraph +{ /** * Creates new RRDGraph instance. This instance is responsible for rendering the result of RRD database query into image. * @link https://php.net/manual/en/rrdgraph.construct.php @@ -293,7 +292,6 @@ public function saveVerbose() {} * @since PECL rrd >= 0.9.0 */ public function setOptions($options) {} - } /** @@ -301,8 +299,8 @@ public function setOptions($options) {} * @link https://php.net/manual/en/class.rrdupdater.php * @since PECL rrd >= 0.9.0 */ -class RRDUpdater { - +class RRDUpdater +{ /** * Creates new RRDUpdater instance. This instance is responsible for updating the RRD database file. * RRDUpdater constructor. @@ -328,7 +326,6 @@ public function __construct($path) {} * @since PECL rrd >= 0.9.0 */ public function update($values, $time = '') {} - } // end of PECL/rrd v1.0 diff --git a/session/SessionHandler.php b/session/SessionHandler.php index 4e1f74030..302b9ffed 100644 --- a/session/SessionHandler.php +++ b/session/SessionHandler.php @@ -8,91 +8,90 @@ * @link https://php.net/manual/en/class.sessionhandlerinterface.php * @since 5.4 */ -interface SessionHandlerInterface { - - /** - * Close the session - * @link https://php.net/manual/en/sessionhandlerinterface.close.php - * @return bool

    - * The return value (usually TRUE on success, FALSE on failure). - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function close(); - - /** - * Destroy a session - * @link https://php.net/manual/en/sessionhandlerinterface.destroy.php - * @param string $id The session ID being destroyed. - * @return bool

    - * The return value (usually TRUE on success, FALSE on failure). - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function destroy($id); +interface SessionHandlerInterface +{ + /** + * Close the session + * @link https://php.net/manual/en/sessionhandlerinterface.close.php + * @return bool

    + * The return value (usually TRUE on success, FALSE on failure). + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function close(); - /** - * Cleanup old sessions - * @link https://php.net/manual/en/sessionhandlerinterface.gc.php - * @param int $max_lifetime

    - * Sessions that have not updated for - * the last maxlifetime seconds will be removed. - *

    - * @return bool

    - * The return value (usually TRUE on success, FALSE on failure). - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function gc($max_lifetime); + /** + * Destroy a session + * @link https://php.net/manual/en/sessionhandlerinterface.destroy.php + * @param string $id The session ID being destroyed. + * @return bool

    + * The return value (usually TRUE on success, FALSE on failure). + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function destroy($id); - /** - * Initialize session - * @link https://php.net/manual/en/sessionhandlerinterface.open.php - * @param string $path The path where to store/retrieve the session. - * @param string $name The session name. - * @return bool

    - * The return value (usually TRUE on success, FALSE on failure). - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function open($path, $name); + /** + * Cleanup old sessions + * @link https://php.net/manual/en/sessionhandlerinterface.gc.php + * @param int $max_lifetime

    + * Sessions that have not updated for + * the last maxlifetime seconds will be removed. + *

    + * @return bool

    + * The return value (usually TRUE on success, FALSE on failure). + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function gc($max_lifetime); + /** + * Initialize session + * @link https://php.net/manual/en/sessionhandlerinterface.open.php + * @param string $path The path where to store/retrieve the session. + * @param string $name The session name. + * @return bool

    + * The return value (usually TRUE on success, FALSE on failure). + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function open($path, $name); - /** - * Read session data - * @link https://php.net/manual/en/sessionhandlerinterface.read.php - * @param string $id The session id to read data for. - * @return string

    - * Returns an encoded string of the read data. - * If nothing was read, it must return an empty string. - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function read($id); + /** + * Read session data + * @link https://php.net/manual/en/sessionhandlerinterface.read.php + * @param string $id The session id to read data for. + * @return string

    + * Returns an encoded string of the read data. + * If nothing was read, it must return an empty string. + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function read($id); - /** - * Write session data - * @link https://php.net/manual/en/sessionhandlerinterface.write.php - * @param string $id The session id. - * @param string $data

    - * The encoded session data. This data is the - * result of the PHP internally encoding - * the $_SESSION superglobal to a serialized - * string and passing it as this parameter. - * Please note sessions use an alternative serialization method. - *

    - * @return bool

    - * The return value (usually TRUE on success, FALSE on failure). - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function write($id, $data); + /** + * Write session data + * @link https://php.net/manual/en/sessionhandlerinterface.write.php + * @param string $id The session id. + * @param string $data

    + * The encoded session data. This data is the + * result of the PHP internally encoding + * the $_SESSION superglobal to a serialized + * string and passing it as this parameter. + * Please note sessions use an alternative serialization method. + *

    + * @return bool

    + * The return value (usually TRUE on success, FALSE on failure). + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function write($id, $data); } /** @@ -100,7 +99,8 @@ public function write($id, $data); * @link https://php.net/manual/en/class.sessionidinterface.php * @since 5.5.1 */ -interface SessionIdInterface { +interface SessionIdInterface +{ /** * Create session ID * @link https://php.net/manual/en/sessionidinterface.create-sid.php @@ -116,8 +116,8 @@ public function create_sid(); * handler must implement this interface. * @since 7.0 */ -interface SessionUpdateTimestampHandlerInterface { - +interface SessionUpdateTimestampHandlerInterface +{ /** * Validate session id * @param string $id The session id @@ -140,7 +140,6 @@ public function validateId($id); * @return bool */ public function updateTimestamp($id, $data); - } /** @@ -160,17 +159,16 @@ public function updateTimestamp($id, $data); */ class SessionHandler implements SessionHandlerInterface, SessionIdInterface { - - /** - * Close the session - * @link https://php.net/manual/en/sessionhandler.close.php - * @return bool

    - * The return value (usually TRUE on success, FALSE on failure). - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function close() { } + /** + * Close the session + * @link https://php.net/manual/en/sessionhandler.close.php + * @return bool

    + * The return value (usually TRUE on success, FALSE on failure). + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function close() {} /** * Return a new session ID @@ -178,80 +176,79 @@ public function close() { } * @return string

    A session ID valid for the default session handler.

    * @since 5.5.1 */ - public function create_sid() {} - - /** - * Destroy a session - * @link https://php.net/manual/en/sessionhandler.destroy.php - * @param string $id The session ID being destroyed. - * @return bool

    - * The return value (usually TRUE on success, FALSE on failure). - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function destroy($id) { } + public function create_sid() {} - /** - * Cleanup old sessions - * @link https://php.net/manual/en/sessionhandler.gc.php - * @param int $max_lifetime

    - * Sessions that have not updated for - * the last maxlifetime seconds will be removed. - *

    - * @return bool

    - * The return value (usually TRUE on success, FALSE on failure). - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function gc($max_lifetime) { } + /** + * Destroy a session + * @link https://php.net/manual/en/sessionhandler.destroy.php + * @param string $id The session ID being destroyed. + * @return bool

    + * The return value (usually TRUE on success, FALSE on failure). + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function destroy($id) {} - /** - * Initialize session - * @link https://php.net/manual/en/sessionhandler.open.php - * @param string $path The path where to store/retrieve the session. - * @param string $name The session name. - * @return bool

    - * The return value (usually TRUE on success, FALSE on failure). - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function open($path, $name) { } + /** + * Cleanup old sessions + * @link https://php.net/manual/en/sessionhandler.gc.php + * @param int $max_lifetime

    + * Sessions that have not updated for + * the last maxlifetime seconds will be removed. + *

    + * @return bool

    + * The return value (usually TRUE on success, FALSE on failure). + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function gc($max_lifetime) {} + /** + * Initialize session + * @link https://php.net/manual/en/sessionhandler.open.php + * @param string $path The path where to store/retrieve the session. + * @param string $name The session name. + * @return bool

    + * The return value (usually TRUE on success, FALSE on failure). + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function open($path, $name) {} - /** - * Read session data - * @link https://php.net/manual/en/sessionhandler.read.php - * @param string $id The session id to read data for. - * @return string

    - * Returns an encoded string of the read data. - * If nothing was read, it must return an empty string. - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function read($id) { } + /** + * Read session data + * @link https://php.net/manual/en/sessionhandler.read.php + * @param string $id The session id to read data for. + * @return string

    + * Returns an encoded string of the read data. + * If nothing was read, it must return an empty string. + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function read($id) {} - /** - * Write session data - * @link https://php.net/manual/en/sessionhandler.write.php - * @param string $id The session id. - * @param string $data

    - * The encoded session data. This data is the - * result of the PHP internally encoding - * the $_SESSION superglobal to a serialized - * string and passing it as this parameter. - * Please note sessions use an alternative serialization method. - *

    - * @return bool

    - * The return value (usually TRUE on success, FALSE on failure). - * Note this value is returned internally to PHP for processing. - *

    - * @since 5.4 - */ - public function write($id, $data) { } + /** + * Write session data + * @link https://php.net/manual/en/sessionhandler.write.php + * @param string $id The session id. + * @param string $data

    + * The encoded session data. This data is the + * result of the PHP internally encoding + * the $_SESSION superglobal to a serialized + * string and passing it as this parameter. + * Please note sessions use an alternative serialization method. + *

    + * @return bool

    + * The return value (usually TRUE on success, FALSE on failure). + * Note this value is returned internally to PHP for processing. + *

    + * @since 5.4 + */ + public function write($id, $data) {} /** * Validate session id @@ -260,7 +257,7 @@ public function write($id, $data) { } * Note this value is returned internally to PHP for processing. *

    */ - public function validateId($session_id) { } + public function validateId($session_id) {} /** * Update timestamp of a session @@ -274,6 +271,5 @@ public function validateId($session_id) { } *

    * @return bool */ - public function updateTimestamp($session_id, $session_data) { } - + public function updateTimestamp($session_id, $session_data) {} } diff --git a/session/session.php b/session/session.php index 40a4186e3..46d585bca 100644 --- a/session/session.php +++ b/session/session.php @@ -25,8 +25,7 @@ *

    * @return string|false the name of the current session. */ -function session_name (?string $name): string|false -{} +function session_name(?string $name): string|false {} /** * Get and/or set the current session module.
    @@ -38,8 +37,7 @@ function session_name (?string $name): string|false *

    * @return string|false the name of the current session module. */ -function session_module_name (?string $module): string|false -{} +function session_module_name(?string $module): string|false {} /** * Get and/or set the current session save path @@ -58,8 +56,7 @@ function session_module_name (?string $module): string|false *

    * @return string|false the path of the current directory used for data storage. */ -function session_save_path (?string $path): string|false -{} +function session_save_path(?string $path): string|false {} /** * Get and/or set the current session id @@ -80,8 +77,7 @@ function session_save_path (?string $path): string|false * session or the empty string ("") if there is no current * session (no current session id exists). */ -function session_id (?string $id): string|false -{} +function session_id(?string $id): string|false {} /** * Update the current session id with a newly generated one @@ -91,8 +87,7 @@ function session_id (?string $id): string|false *

    * @return bool true on success or false on failure. */ -function session_regenerate_id (bool $delete_old_session = false): bool -{} +function session_regenerate_id(bool $delete_old_session = false): bool {} /** * PHP > 5.4.0
    @@ -100,7 +95,7 @@ function session_regenerate_id (bool $delete_old_session = false): bool * @link https://secure.php.net/manual/en/function.session-register-shutdown.php * @return void */ -function session_register_shutdown (): void {} +function session_register_shutdown(): void {} /** * Decodes session data from a string @@ -110,8 +105,7 @@ function session_register_shutdown (): void {} *

    * @return bool true on success or false on failure. */ -function session_decode (string $data): bool -{} +function session_decode(string $data): bool {} /** * Register one or more global variables with the current session @@ -125,8 +119,7 @@ function session_decode (string $data): bool * @removed 5.4 */ #[Deprecated(since: '5.3')] -function session_register (mixed $name, ...$_): bool -{} +function session_register(mixed $name, ...$_): bool {} /** * Unregister a global variable from the current session @@ -138,8 +131,7 @@ function session_register (mixed $name, ...$_): bool * @removed 5.4 */ #[Deprecated(since: '5.3')] -function session_unregister (string $name): bool -{} +function session_unregister(string $name): bool {} /** * Find out whether a global variable is registered in a session @@ -153,16 +145,14 @@ function session_unregister (string $name): bool * @removed 5.4 */ #[Deprecated(since: '5.3')] -function session_is_registered (string $name): bool -{} +function session_is_registered(string $name): bool {} /** * Encodes the current session data as a string * @link https://php.net/manual/en/function.session-encode.php * @return string|false the contents of the current session encoded. */ -function session_encode (): string|false -{} +function session_encode(): string|false {} /** * Initialize session data @@ -172,8 +162,7 @@ function session_encode (): string|false * @return bool This function returns true if a session was successfully started, * otherwise false. */ -function session_start (array $options = []): bool -{} +function session_start(array $options = []): bool {} /** * Create new session id @@ -185,24 +174,21 @@ function session_start (array $options = []): bool * If it is used without active session, it omits collision check. * @since 7.1 */ -function session_create_id(string $prefix): string|false -{} +function session_create_id(string $prefix): string|false {} /** * Perform session data garbage collection * @return int|false number of deleted session data for success, false for failure. * @since 7.1 */ -function session_gc(): int|false -{} +function session_gc(): int|false {} /** * Destroys all data registered to a session * @link https://php.net/manual/en/function.session-destroy.php * @return bool true on success or false on failure. */ -function session_destroy (): bool -{} +function session_destroy(): bool {} /** * Free all session variables @@ -210,8 +196,7 @@ function session_destroy (): bool * @return void|bool since 7.2.0 returns true on success or false on failure. */ #[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")] -function session_unset() -{} +function session_unset() {} /** * Sets user-level session storage functions @@ -261,8 +246,7 @@ function session_unset() * @param callback $update_timestamp [optional] * @return bool true on success or false on failure. */ -function session_set_save_handler (callable $open, callable $close, callable $read, callable $write, callable $destroy, callable $gc, $create_sid, $validate_sid, $update_timestamp): bool -{} +function session_set_save_handler(callable $open, callable $close, callable $read, callable $write, callable $destroy, callable $gc, $create_sid, $validate_sid, $update_timestamp): bool {} /** * (PHP 5.4)
    @@ -273,8 +257,7 @@ function session_set_save_handler (callable $open, callable $close, callable $re * @param bool $register_shutdown [optional] Register session_write_close() as a register_shutdown_function() function. * @return bool true on success or false on failure. */ -function session_set_save_handler (SessionHandlerInterface $session_handler, $register_shutdown = true): bool -{} +function session_set_save_handler(SessionHandlerInterface $session_handler, $register_shutdown = true): bool {} /** * Get and/or set the current cache limiter @@ -331,8 +314,7 @@ function session_set_save_handler (SessionHandlerInterface $session_handler, $re * * @return string|false the name of the current cache limiter. */ -function session_cache_limiter (?string $value): string|false -{} +function session_cache_limiter(?string $value): string|false {} /** * Return current cache expire @@ -349,8 +331,7 @@ function session_cache_limiter (?string $value): string|false * @return int|false the current setting of session.cache_expire. * The value returned should be read in minutes, defaults to 180. */ -function session_cache_expire (?int $value): int|false -{} +function session_cache_expire(?int $value): int|false {} /** * Set the session cookie parameters @@ -367,9 +348,7 @@ function session_cache_expire (?int $value): int|false * @return bool returns true on success or false on failure. * @since 7.3 */ -function session_set_cookie_params (array $options): bool -{} - +function session_set_cookie_params(array $options): bool {} /** * Set the session cookie parameters @@ -400,8 +379,7 @@ function session_set_cookie_params (array $options): bool * @return void|bool since 7.2.0 returns true on success or false on failure. */ #[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")] -function session_set_cookie_params (array|int $lifetime_or_options, ?string $path, ?string $domain, ?bool $secure = false, ?bool $httponly = false) -{} +function session_set_cookie_params(array|int $lifetime_or_options, ?string $path, ?string $domain, ?bool $secure = false, ?bool $httponly = false) {} /** * Get the session cookie parameters @@ -427,8 +405,7 @@ function session_set_cookie_params (array|int $lifetime_or_options, ?string $pat "httponly" => "bool", "samesite" => "string" ])] -function session_get_cookie_params (): array -{} +function session_get_cookie_params(): array {} /** * Write session data and end session @@ -436,8 +413,7 @@ function session_get_cookie_params (): array * @return void|bool since 7.2.0 returns true on success or false on failure. */ #[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")] -function session_write_close() -{} +function session_write_close() {} /** * Alias of session_write_close @@ -445,8 +421,7 @@ function session_write_close() * @return void|bool since 7.2.0 returns true on success or false on failure. */ #[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")] -function session_commit() -{} +function session_commit() {} /** * (PHP 5 >= 5.4.0)
    @@ -457,8 +432,7 @@ function session_commit() * PHP_SESSION_ACTIVE if sessions are enabled, and one exists. * @since 5.4 */ -function session_status (): int -{} +function session_status(): int {} /** * (PHP 5 >= 5.6.0)
    @@ -468,8 +442,7 @@ function session_status (): int * @since 5.6 */ #[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")] -function session_abort() -{} +function session_abort() {} /** * (PHP 5 >= 5.6.0)
    @@ -479,8 +452,6 @@ function session_abort() * @since 5.6 */ #[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")] -function session_reset() -{} +function session_reset() {} // End of session v. -?> diff --git a/shmop/shmop.php b/shmop/shmop.php index 6a8807c6a..23e30c6cb 100644 --- a/shmop/shmop.php +++ b/shmop/shmop.php @@ -29,7 +29,7 @@ * returned on failure. */ #[LanguageLevelTypeAware(["8.0" => "Shmop|false"], default: "resource|false")] -function shmop_open (int $key, string $mode, int $permissions, int $size) {} +function shmop_open(int $key, string $mode, int $permissions, int $size) {} /** * Read data from shared memory block @@ -47,7 +47,7 @@ function shmop_open (int $key, string $mode, int $permissions, int $size) {} * @return string|false the data or FALSE on failure. */ #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function shmop_read (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop, int $offset, int $size) {} +function shmop_read(#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop, int $offset, int $size) {} /** * Close shared memory block @@ -59,7 +59,7 @@ function shmop_read (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "reso * @return void No value is returned. */ #[Deprecated(since: '8.0')] -function shmop_close (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop): void {} +function shmop_close(#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop): void {} /** * Get size of shared memory block @@ -71,7 +71,7 @@ function shmop_close (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "res * @return int an int, which represents the number of bytes the shared memory * block occupies. */ -function shmop_size (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop): int {} +function shmop_size(#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop): int {} /** * Write data into shared memory block @@ -91,7 +91,7 @@ function shmop_size (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "reso * failure. */ #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function shmop_write (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop, string $data, int $offset) {} +function shmop_write(#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop, string $data, int $offset) {} /** * Delete shared memory block @@ -102,12 +102,11 @@ function shmop_write (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "res *

    * @return bool TRUE on success or FALSE on failure. */ -function shmop_delete (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop): bool {} +function shmop_delete(#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop): bool {} /** * @since 8.0 */ -final class Shmop{} +final class Shmop {} // End of shmop v. -?> diff --git a/snmp/snmp.php b/snmp/snmp.php index 3f6056bc0..9bf1eee90 100644 --- a/snmp/snmp.php +++ b/snmp/snmp.php @@ -6,7 +6,8 @@ * Represents SNMP session. * @link https://php.net/manual/en/class.snmp.php */ -class SNMP { +class SNMP +{ /** * @var int Maximum OID per GET/SET/GETBULK request * @link https://secure.php.net/manual/en/class.snmp.php#snmp.props.max-oids @@ -72,24 +73,23 @@ class SNMP { */ public $info; - const VERSION_1 = 0; - const VERSION_2c = 1; - const VERSION_2C = 1; - const VERSION_3 = 3; - const ERRNO_NOERROR = 0; - const ERRNO_ANY = 126; - const ERRNO_GENERIC = 2; - const ERRNO_TIMEOUT = 4; - const ERRNO_ERROR_IN_REPLY = 8; - const ERRNO_OID_NOT_INCREASING = 16; - const ERRNO_OID_PARSING_ERROR = 32; - const ERRNO_MULTIPLE_SET_QUERIES = 64; + public const VERSION_1 = 0; + public const VERSION_2c = 1; + public const VERSION_2C = 1; + public const VERSION_3 = 3; + public const ERRNO_NOERROR = 0; + public const ERRNO_ANY = 126; + public const ERRNO_GENERIC = 2; + public const ERRNO_TIMEOUT = 4; + public const ERRNO_ERROR_IN_REPLY = 8; + public const ERRNO_OID_NOT_INCREASING = 16; + public const ERRNO_OID_PARSING_ERROR = 32; + public const ERRNO_MULTIPLE_SET_QUERIES = 64; - - /** - * Creates SNMP instance representing session to remote SNMP agent - * @link https://php.net/manual/en/snmp.construct.php - * @param int $version

    SNMP protocol version: + /** + * Creates SNMP instance representing session to remote SNMP agent + * @link https://php.net/manual/en/snmp.construct.php + * @param int $version

    SNMP protocol version: * SNMP::VERSION_1, * SNMP::VERSION_2C, * SNMP::VERSION_3.

    @@ -111,7 +111,7 @@ class SNMP { * FQDN with specific port, force usage of IPv6 address[host.domain]:1161 * * - * @param string $community

    The purpuse of community is + * @param string $community

    The purpuse of community is * SNMP version specific:

    * * @@ -120,19 +120,19 @@ class SNMP { * * *
    SNMP::VERSION_3SNMPv3 securityName
    - * @param int $timeout [optional] The number of microseconds until the first timeout. - * @param int $retries [optional] The number of retries in case timeout occurs. + * @param int $timeout [optional] The number of microseconds until the first timeout. + * @param int $retries [optional] The number of retries in case timeout occurs. * @since 5.4 */ - public function __construct ($version, $hostname, $community, $timeout = 1000000, $retries = 5) {} + public function __construct($version, $hostname, $community, $timeout = 1000000, $retries = 5) {} - /** - * Close SNMP session - * @link https://php.net/manual/en/snmp.close.php - * @return bool TRUE on success or FALSE on failure. - * @since 5.4 - */ - public function close () {} + /** + * Close SNMP session + * @link https://php.net/manual/en/snmp.close.php + * @return bool TRUE on success or FALSE on failure. + * @since 5.4 + */ + public function close() {} /** * Configures security-related SNMPv3 session parameters @@ -147,53 +147,53 @@ public function close () {} * @return bool TRUE on success or FALSE on failure. * @since 5.4 */ - public function setSecurity ($sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $contextName, $contextEngineID) {} + public function setSecurity($sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $contextName, $contextEngineID) {} - /** - * Fetch an SNMP object - * @link https://php.net/manual/en/snmp.get.php - * @param mixed $object_id The SNMP object (OID) or objects + /** + * Fetch an SNMP object + * @link https://php.net/manual/en/snmp.get.php + * @param mixed $object_id The SNMP object (OID) or objects * @param bool $preserve_keys [optional] When object_id is a array and preserve_keys set to TRUE keys in results will be taken exactly as in object_id, otherwise SNMP::oid_output_format property is used to determinate the form of keys. - * @return mixed SNMP objects requested as string or array - * depending on object_id type or FALSE on error. - * @since 5.4 - */ - public function get ($object_id, $preserve_keys = false) {} + * @return mixed SNMP objects requested as string or array + * depending on object_id type or FALSE on error. + * @since 5.4 + */ + public function get($object_id, $preserve_keys = false) {} - /** - * Fetch an SNMP object which + /** + * Fetch an SNMP object which * follows the given object id - * @link https://php.net/manual/en/snmp.getnext.php - * @param mixed $object_id

    + * @link https://php.net/manual/en/snmp.getnext.php + * @param mixed $object_id

    * The SNMP object (OID) or objects *

    - * @return mixed SNMP objects requested as string or array - * depending on object_id type or FALSE on error. - * @since 5.4 - */ - public function getnext ($object_id) {} + * @return mixed SNMP objects requested as string or array + * depending on object_id type or FALSE on error. + * @since 5.4 + */ + public function getnext($object_id) {} - /** - * Fetch SNMP object subtree - * @link https://php.net/manual/en/snmp.walk.php - * @param string $object_id

    Root of subtree to be fetched

    + /** + * Fetch SNMP object subtree + * @link https://php.net/manual/en/snmp.walk.php + * @param string $object_id

    Root of subtree to be fetched

    * @param bool $suffix_as_keys [optional]

    By default full OID notation is used for keys in output array. If set to TRUE subtree prefix will be removed from keys leaving only suffix of object_id.

    * @param int $max_repetitions [optional]

    This specifies the maximum number of iterations over the repeating variables. The default is to use this value from SNMP object.

    * @param int $non_repeaters [optional]

    This specifies the number of supplied variables that should not be iterated over. The default is to use this value from SNMP object.

    * @return array|false associative array of the SNMP object ids and their values on success or FALSE on error. - * When a SNMP error occures SNMP::getErrno and - * SNMP::getError can be used for retrieving error - * number (specific to SNMP extension, see class constants) and error message - * respectively. - * @since 5.4 - */ - public function walk ($object_id, $suffix_as_keys = false, $max_repetitions, $non_repeaters) {} + * When a SNMP error occures SNMP::getErrno and + * SNMP::getError can be used for retrieving error + * number (specific to SNMP extension, see class constants) and error message + * respectively. + * @since 5.4 + */ + public function walk($object_id, $suffix_as_keys = false, $max_repetitions, $non_repeaters) {} - /** - * Set the value of an SNMP object - * @link https://php.net/manual/en/snmp.set.php - * @param string $object_id

    The SNMP object id

    - * @since 5.4 + /** + * Set the value of an SNMP object + * @link https://php.net/manual/en/snmp.set.php + * @param string $object_id

    The SNMP object id

    + * @since 5.4 * *

    When count of OIDs in object_id array is greater than * max_oids object property set method will have to use multiple queries @@ -256,28 +256,27 @@ public function walk ($object_id, $suffix_as_keys = false, $max_repetitions, $no *

    * See examples section for more details. *

    - * @param mixed $value

    + * @param mixed $value

    * The new value.

    * @return bool TRUE on success or FALSE on failure. - */ - public function set ($object_id, $type, $value) {} - - /** - * Get last error code - * @link https://php.net/manual/en/snmp.geterrno.php - * @return int one of SNMP error code values described in constants chapter. - * @since 5.4 - */ - public function getErrno () {} + */ + public function set($object_id, $type, $value) {} - /** - * Get last error message - * @link https://php.net/manual/en/snmp.geterror.php - * @return string String describing error from last SNMP request. - * @since 5.4 - */ - public function getError () {} + /** + * Get last error code + * @link https://php.net/manual/en/snmp.geterrno.php + * @return int one of SNMP error code values described in constants chapter. + * @since 5.4 + */ + public function getErrno() {} + /** + * Get last error message + * @link https://php.net/manual/en/snmp.geterror.php + * @return string String describing error from last SNMP request. + * @since 5.4 + */ + public function getError() {} } /** @@ -287,7 +286,8 @@ public function getError () {} * information about Exceptions in PHP. * @link https://php.net/manual/en/class.snmpexception.php */ -class SNMPException extends RuntimeException { +class SNMPException extends RuntimeException +{ /** * @var string Textual error message. Exception::getMessage() to access it. */ @@ -318,7 +318,7 @@ class SNMPException extends RuntimeException { *

    * @return string|false SNMP object value on success or FALSE on error. */ -function snmpget ($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {} +function snmpget($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {} /** * Fetch the SNMP object which follows the given object id @@ -331,7 +331,7 @@ function snmpget ($hostname, $community, $object_id, $timeout = 1000000, $retrie * @return string|false SNMP object value on success or FALSE on error. * In case of an error, an E_WARNING message is shown. */ -function snmpgetnext ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} +function snmpgetnext($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} /** * Fetch all the SNMP objects from an agent @@ -358,7 +358,7 @@ function snmpgetnext ($host, $community, $object_id, $timeout = 1000000, $retrie * @return array an array of SNMP object values starting from the * object_id as root or FALSE on error. */ -function snmpwalk ($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {} +function snmpwalk($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {} /** * Return all objects including their respective object ID within the specified one @@ -371,7 +371,7 @@ function snmpwalk ($hostname, $community, $object_id, $timeout = 1000000, $retri * @return array|false an associative array of the SNMP object ids and their values on success or FALSE on error. * In case of an error, an E_WARNING message is shown. */ -function snmprealwalk ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} +function snmprealwalk($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} /** * Query for a tree of information about a network entity @@ -401,7 +401,7 @@ function snmprealwalk ($host, $community, $object_id, $timeout = 1000000, $retri * object value starting from the object_id * as root or FALSE on error. */ -function snmpwalkoid ($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {} +function snmpwalkoid($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {} /** * Set the value of an SNMP object @@ -466,14 +466,14 @@ function snmpwalkoid ($hostname, $community, $object_id, $timeout = 1000000, $re * If an unknown or invalid OID is specified the warning probably reads "Could not add variable". *

    */ -function snmpset ($host, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {} +function snmpset($host, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {} /** * Fetches the current value of the UCD library's quick_print setting * @link https://php.net/manual/en/function.snmp-get-quick-print.php * @return bool TRUE if quick_print is on, FALSE otherwise. */ -function snmp_get_quick_print () {} +function snmp_get_quick_print() {} /** * Set the value of quick_print within the UCD SNMP library @@ -481,7 +481,7 @@ function snmp_get_quick_print () {} * @param bool $quick_print * @return bool No value is returned. */ -function snmp_set_quick_print ($quick_print) {} +function snmp_set_quick_print($quick_print) {} /** * Return all values that are enums with their enum value instead of the raw integer @@ -491,7 +491,7 @@ function snmp_set_quick_print ($quick_print) {} *

    * @return bool */ -function snmp_set_enum_print ($enum_print) {} +function snmp_set_enum_print($enum_print) {} /** * Set the OID output format @@ -511,7 +511,7 @@ function snmp_set_enum_print ($enum_print) {} *

    * @return bool No value is returned. */ -function snmp_set_oid_output_format ($oid_format = SNMP_OID_OUTPUT_MODULE) {} +function snmp_set_oid_output_format($oid_format = SNMP_OID_OUTPUT_MODULE) {} /** * Set the oid output format @@ -519,7 +519,7 @@ function snmp_set_oid_output_format ($oid_format = SNMP_OID_OUTPUT_MODULE) {} * @param int $oid_format * @return void */ -function snmp_set_oid_numeric_print ($oid_format) {} +function snmp_set_oid_numeric_print($oid_format) {} /** * Fetch an SNMP object @@ -541,7 +541,7 @@ function snmp_set_oid_numeric_print ($oid_format) {} *

    * @return string|false SNMP object value on success or FALSE on error. */ -function snmp2_get ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} +function snmp2_get($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} /** * Fetch the SNMP object which follows the given object id @@ -564,7 +564,7 @@ function snmp2_get ($host, $community, $object_id, $timeout = 1000000, $retries * @return string|false SNMP object value on success or FALSE on error. * In case of an error, an E_WARNING message is shown. */ -function snmp2_getnext ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} +function snmp2_getnext($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} /** * Fetch all the SNMP objects from an agent @@ -593,7 +593,7 @@ function snmp2_getnext ($host, $community, $object_id, $timeout = 1000000, $retr * @return array an array of SNMP object values starting from the * object_id as root or FALSE on error. */ -function snmp2_walk ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} +function snmp2_walk($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} /** * Return all objects including their respective object ID within the specified one @@ -616,7 +616,7 @@ function snmp2_walk ($host, $community, $object_id, $timeout = 1000000, $retries * @return array|false an associative array of the SNMP object ids and their values on success or FALSE on error. * In case of an error, an E_WARNING message is shown. */ -function snmp2_real_walk ($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} +function snmp2_real_walk($host, $community, $object_id, $timeout = 1000000, $retries = 5) {} /** * Set the value of an SNMP object @@ -683,7 +683,7 @@ function snmp2_real_walk ($host, $community, $object_id, $timeout = 1000000, $re * If an unknown or invalid OID is specified the warning probably reads "Could not add variable". *

    */ -function snmp2_set ($host, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {} +function snmp2_set($host, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {} /** * Fetch an SNMP object @@ -720,7 +720,7 @@ function snmp2_set ($host, $community, $object_id, $type, $value, $timeout = 100 *

    * @return string|false SNMP object value on success or FALSE on error. */ -function snmp3_get ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {} +function snmp3_get($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {} /** * Fetch the SNMP object which follows the given object id @@ -759,7 +759,7 @@ function snmp3_get ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphra * @return string|false SNMP object value on success or FALSE on error. * In case of an error, an E_WARNING message is shown. */ -function snmp3_getnext ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {} +function snmp3_getnext($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {} /** * Fetch all the SNMP objects from an agent @@ -803,7 +803,7 @@ function snmp3_getnext ($host, $sec_name, $sec_level, $auth_protocol, $auth_pass * @return array an array of SNMP object values starting from the * object_id as root or FALSE on error. */ -function snmp3_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {} +function snmp3_walk($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {} /** * Return all objects including their respective object ID within the specified one @@ -843,7 +843,7 @@ function snmp3_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphr * SNMP object ids and their values on success or FALSE on error. * In case of an error, an E_WARNING message is shown. */ -function snmp3_real_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = null, $retries = null) {} +function snmp3_real_walk($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = null, $retries = null) {} /** * Set the value of an SNMP object @@ -927,7 +927,7 @@ function snmp3_real_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_pa * If an unknown or invalid OID is specified the warning probably reads "Could not add variable". *

    */ -function snmp3_set ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {} +function snmp3_set($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {} /** * Specify the method how the SNMP values will be returned @@ -954,7 +954,7 @@ function snmp3_set ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphra * * @return bool */ -function snmp_set_valueretrieval ($method) {} +function snmp_set_valueretrieval($method) {} /** * Return the method how the SNMP values will be returned @@ -963,7 +963,7 @@ function snmp_set_valueretrieval ($method) {} * SNMP_VALUE_PLAIN ) with * possible SNMP_VALUE_OBJECT set. */ -function snmp_get_valueretrieval () {} +function snmp_get_valueretrieval() {} /** * Reads and parses a MIB file into the active MIB tree @@ -971,58 +971,57 @@ function snmp_get_valueretrieval () {} * @param string $filename

    The filename of the MIB.

    * @return bool */ -function snmp_read_mib ($filename) {} - +function snmp_read_mib($filename) {} /** * As of 5.4 * @link https://php.net/manual/en/snmp.constants.php */ -define ('SNMP_OID_OUTPUT_SUFFIX', 1); +define('SNMP_OID_OUTPUT_SUFFIX', 1); /** * As of 5.4 * @link https://php.net/manual/en/snmp.constants.php */ -define ('SNMP_OID_OUTPUT_MODULE', 2); +define('SNMP_OID_OUTPUT_MODULE', 2); /** * As of 5.2 * @link https://php.net/manual/en/snmp.constants.php */ -define ('SNMP_OID_OUTPUT_FULL', 3); +define('SNMP_OID_OUTPUT_FULL', 3); /** * As of 5.2 * @link https://php.net/manual/en/snmp.constants.php */ -define ('SNMP_OID_OUTPUT_NUMERIC', 4); +define('SNMP_OID_OUTPUT_NUMERIC', 4); /** * As of 5.4 * @link https://php.net/manual/en/snmp.constants.php */ -define ('SNMP_OID_OUTPUT_UCD', 5); +define('SNMP_OID_OUTPUT_UCD', 5); /** * As of 5.4 * @link https://php.net/manual/en/snmp.constants.php */ -define ('SNMP_OID_OUTPUT_NONE', 6); -define ('SNMP_VALUE_LIBRARY', 0); -define ('SNMP_VALUE_PLAIN', 1); -define ('SNMP_VALUE_OBJECT', 2); -define ('SNMP_BIT_STR', 3); -define ('SNMP_OCTET_STR', 4); -define ('SNMP_OPAQUE', 68); -define ('SNMP_NULL', 5); -define ('SNMP_OBJECT_ID', 6); -define ('SNMP_IPADDRESS', 64); -define ('SNMP_COUNTER', 66); -define ('SNMP_UNSIGNED', 66); -define ('SNMP_TIMETICKS', 67); -define ('SNMP_UINTEGER', 71); -define ('SNMP_INTEGER', 2); -define ('SNMP_COUNTER64', 70); +define('SNMP_OID_OUTPUT_NONE', 6); +define('SNMP_VALUE_LIBRARY', 0); +define('SNMP_VALUE_PLAIN', 1); +define('SNMP_VALUE_OBJECT', 2); +define('SNMP_BIT_STR', 3); +define('SNMP_OCTET_STR', 4); +define('SNMP_OPAQUE', 68); +define('SNMP_NULL', 5); +define('SNMP_OBJECT_ID', 6); +define('SNMP_IPADDRESS', 64); +define('SNMP_COUNTER', 66); +define('SNMP_UNSIGNED', 66); +define('SNMP_TIMETICKS', 67); +define('SNMP_UINTEGER', 71); +define('SNMP_INTEGER', 2); +define('SNMP_COUNTER64', 70); // End of snmp v.0.1 diff --git a/soap/soap.php b/soap/soap.php index 08be64cbb..5dbc659ca 100644 --- a/soap/soap.php +++ b/soap/soap.php @@ -8,134 +8,134 @@ * or non-WSDL mode. * @link https://php.net/manual/en/class.soapclient.php */ -class SoapClient { - - /** - * SoapClient constructor - * @link https://php.net/manual/en/soapclient.soapclient.php - * @param mixed $wsdl

    - * URI of the WSDL file or NULL if working in - * non-WSDL mode. - *

    - *

    - * During development, WSDL caching may be disabled by the - * use of the soap.wsdl_cache_ttl php.ini setting - * otherwise changes made to the WSDL file will have no effect until - * soap.wsdl_cache_ttl is expired. - *

    - * @param array $options [optional]

    - * An array of options. If working in WSDL mode, this parameter is optional. - * If working in non-WSDL mode, the location and - * uri options must be set, where location - * is the URL of the SOAP server to send the request to, and uri - * is the target namespace of the SOAP service. - *

    - *

    - * The style and use options only work in - * non-WSDL mode. In WSDL mode, they come from the WSDL file. - *

    - *

    - * The soap_version option should be one of either - * SOAP_1_1 or SOAP_1_2 to - * select SOAP 1.1 or 1.2, respectively. If omitted, 1.1 is used. - *

    - *

    - * For HTTP authentication, the login and - * password options can be used to supply credentials. - * For making an HTTP connection through - * a proxy server, the options proxy_host, - * proxy_port, proxy_login - * and proxy_password are also available. - * For HTTPS client certificate authentication use - * local_cert and passphrase options. An - * authentication may be supplied in the authentication - * option. The authentication method may be either - * SOAP_AUTHENTICATION_BASIC (default) or - * SOAP_AUTHENTICATION_DIGEST. - *

    - *

    - * The compression option allows to use compression - * of HTTP SOAP requests and responses. - *

    - *

    - * The encoding option defines internal character - * encoding. This option does not change the encoding of SOAP requests (it is - * always utf-8), but converts strings into it. - *

    - *

    - * The trace option enables tracing of request so faults - * can be backtraced. This defaults to FALSE - *

    - *

    - * The classmap option can be used to map some WSDL - * types to PHP classes. This option must be an array with WSDL types - * as keys and names of PHP classes as values. - *

    - *

    - * Setting the boolean trace option enables use of the - * methods - * SoapClient->__getLastRequest, - * SoapClient->__getLastRequestHeaders, - * SoapClient->__getLastResponse and - * SoapClient->__getLastResponseHeaders. - *

    - *

    - * The exceptions option is a boolean value defining whether - * soap errors throw exceptions of type - * SoapFault. - *

    - *

    - * The connection_timeout option defines a timeout in seconds - * for the connection to the SOAP service. This option does not define a timeout - * for services with slow responses. To limit the time to wait for calls to finish the - * default_socket_timeout setting - * is available. - *

    - *

    - * The typemap option is an array of type mappings. - * Type mapping is an array with keys type_name, - * type_ns (namespace URI), from_xml - * (callback accepting one string parameter) and to_xml - * (callback accepting one object parameter). - *

    - *

    - * The cache_wsdl option is one of - * WSDL_CACHE_NONE, - * WSDL_CACHE_DISK, - * WSDL_CACHE_MEMORY or - * WSDL_CACHE_BOTH. - *

    - *

    - * The user_agent option specifies string to use in - * User-Agent header. - *

    - *

    - * The stream_context option is a resource - * for context. - *

    - *

    - * The features option is a bitmask of - * SOAP_SINGLE_ELEMENT_ARRAYS, - * SOAP_USE_XSI_ARRAY_TYPE, - * SOAP_WAIT_ONE_WAY_CALLS. - *

    - *

    - * The keep_alive option is a boolean value defining whether - * to send the Connection: Keep-Alive header or - * Connection: close. - *

    - *

    - * The ssl_method option is one of - * SOAP_SSL_METHOD_TLS, - * SOAP_SSL_METHOD_SSLv2, - * SOAP_SSL_METHOD_SSLv3 or - * SOAP_SSL_METHOD_SSLv23. - *

    - * @since 5.0.1 - * - * @removed 8.0 - */ - public function SoapClient ($wsdl, array $options = null) {} +class SoapClient +{ + /** + * SoapClient constructor + * @link https://php.net/manual/en/soapclient.soapclient.php + * @param mixed $wsdl

    + * URI of the WSDL file or NULL if working in + * non-WSDL mode. + *

    + *

    + * During development, WSDL caching may be disabled by the + * use of the soap.wsdl_cache_ttl php.ini setting + * otherwise changes made to the WSDL file will have no effect until + * soap.wsdl_cache_ttl is expired. + *

    + * @param array $options [optional]

    + * An array of options. If working in WSDL mode, this parameter is optional. + * If working in non-WSDL mode, the location and + * uri options must be set, where location + * is the URL of the SOAP server to send the request to, and uri + * is the target namespace of the SOAP service. + *

    + *

    + * The style and use options only work in + * non-WSDL mode. In WSDL mode, they come from the WSDL file. + *

    + *

    + * The soap_version option should be one of either + * SOAP_1_1 or SOAP_1_2 to + * select SOAP 1.1 or 1.2, respectively. If omitted, 1.1 is used. + *

    + *

    + * For HTTP authentication, the login and + * password options can be used to supply credentials. + * For making an HTTP connection through + * a proxy server, the options proxy_host, + * proxy_port, proxy_login + * and proxy_password are also available. + * For HTTPS client certificate authentication use + * local_cert and passphrase options. An + * authentication may be supplied in the authentication + * option. The authentication method may be either + * SOAP_AUTHENTICATION_BASIC (default) or + * SOAP_AUTHENTICATION_DIGEST. + *

    + *

    + * The compression option allows to use compression + * of HTTP SOAP requests and responses. + *

    + *

    + * The encoding option defines internal character + * encoding. This option does not change the encoding of SOAP requests (it is + * always utf-8), but converts strings into it. + *

    + *

    + * The trace option enables tracing of request so faults + * can be backtraced. This defaults to FALSE + *

    + *

    + * The classmap option can be used to map some WSDL + * types to PHP classes. This option must be an array with WSDL types + * as keys and names of PHP classes as values. + *

    + *

    + * Setting the boolean trace option enables use of the + * methods + * SoapClient->__getLastRequest, + * SoapClient->__getLastRequestHeaders, + * SoapClient->__getLastResponse and + * SoapClient->__getLastResponseHeaders. + *

    + *

    + * The exceptions option is a boolean value defining whether + * soap errors throw exceptions of type + * SoapFault. + *

    + *

    + * The connection_timeout option defines a timeout in seconds + * for the connection to the SOAP service. This option does not define a timeout + * for services with slow responses. To limit the time to wait for calls to finish the + * default_socket_timeout setting + * is available. + *

    + *

    + * The typemap option is an array of type mappings. + * Type mapping is an array with keys type_name, + * type_ns (namespace URI), from_xml + * (callback accepting one string parameter) and to_xml + * (callback accepting one object parameter). + *

    + *

    + * The cache_wsdl option is one of + * WSDL_CACHE_NONE, + * WSDL_CACHE_DISK, + * WSDL_CACHE_MEMORY or + * WSDL_CACHE_BOTH. + *

    + *

    + * The user_agent option specifies string to use in + * User-Agent header. + *

    + *

    + * The stream_context option is a resource + * for context. + *

    + *

    + * The features option is a bitmask of + * SOAP_SINGLE_ELEMENT_ARRAYS, + * SOAP_USE_XSI_ARRAY_TYPE, + * SOAP_WAIT_ONE_WAY_CALLS. + *

    + *

    + * The keep_alive option is a boolean value defining whether + * to send the Connection: Keep-Alive header or + * Connection: close. + *

    + *

    + * The ssl_method option is one of + * SOAP_SSL_METHOD_TLS, + * SOAP_SSL_METHOD_SSLv2, + * SOAP_SSL_METHOD_SSLv3 or + * SOAP_SSL_METHOD_SSLv23. + *

    + * @since 5.0.1 + * + * @removed 8.0 + */ + public function SoapClient($wsdl, array $options = null) {} /** * SoapClient constructor @@ -261,469 +261,467 @@ public function SoapClient ($wsdl, array $options = null) {} * @throws SoapFault A SoapFault exception will be thrown if the wsdl URI cannot be loaded. * @since 5.0.1 */ - public function __construct ($wsdl, array $options = null) {} + public function __construct($wsdl, array $options = null) {} - /** - * @link https://php.net/manual/en/soapclient.call.php - * @param string $name - * @param array $args - * @return mixed - * @since 5.0.1 - */ - #[Deprecated] - public function __call ($name, $args) {} - - /** - * Calls a SOAP function - * @link https://php.net/manual/en/soapclient.soapcall.php - * @param string $name

    - * The name of the SOAP function to call. - *

    - * @param array $args

    - * An array of the arguments to pass to the function. This can be either - * an ordered or an associative array. Note that most SOAP servers require - * parameter names to be provided, in which case this must be an - * associative array. - *

    - * @param array $options [optional]

    - * An associative array of options to pass to the client. - *

    - *

    - * The location option is the URL of the remote Web service. - *

    - *

    - * The uri option is the target namespace of the SOAP service. - *

    - *

    - * The soapaction option is the action to call. - *

    - * @param mixed $inputHeaders [optional]

    - * An array of headers to be sent along with the SOAP request. - *

    - * @param array &$outputHeaders [optional]

    - * If supplied, this array will be filled with the headers from the SOAP response. - *

    - * @return mixed SOAP functions may return one, or multiple values. If only one value is returned - * by the SOAP function, the return value of __soapCall will be - * a simple value (e.g. an integer, a string, etc). If multiple values are - * returned, __soapCall will return - * an associative array of named output parameters. - *

    - *

    - * On error, if the SoapClient object was constructed with the exceptions - * option set to FALSE, a SoapFault object will be returned. - * @since 5.0.1 - */ - public function __soapCall ($name, $args, $options = null, $inputHeaders = null, &$outputHeaders = null) {} + /** + * @link https://php.net/manual/en/soapclient.call.php + * @param string $name + * @param array $args + * @return mixed + * @since 5.0.1 + */ + #[Deprecated] + public function __call($name, $args) {} - /** - * Returns last SOAP request - * @link https://php.net/manual/en/soapclient.getlastrequest.php - * @return string The last SOAP request, as an XML string. - * @since 5.0.1 - */ - public function __getLastRequest () {} + /** + * Calls a SOAP function + * @link https://php.net/manual/en/soapclient.soapcall.php + * @param string $name

    + * The name of the SOAP function to call. + *

    + * @param array $args

    + * An array of the arguments to pass to the function. This can be either + * an ordered or an associative array. Note that most SOAP servers require + * parameter names to be provided, in which case this must be an + * associative array. + *

    + * @param array $options [optional]

    + * An associative array of options to pass to the client. + *

    + *

    + * The location option is the URL of the remote Web service. + *

    + *

    + * The uri option is the target namespace of the SOAP service. + *

    + *

    + * The soapaction option is the action to call. + *

    + * @param mixed $inputHeaders [optional]

    + * An array of headers to be sent along with the SOAP request. + *

    + * @param array &$outputHeaders [optional]

    + * If supplied, this array will be filled with the headers from the SOAP response. + *

    + * @return mixed SOAP functions may return one, or multiple values. If only one value is returned + * by the SOAP function, the return value of __soapCall will be + * a simple value (e.g. an integer, a string, etc). If multiple values are + * returned, __soapCall will return + * an associative array of named output parameters. + *

    + *

    + * On error, if the SoapClient object was constructed with the exceptions + * option set to FALSE, a SoapFault object will be returned. + * @since 5.0.1 + */ + public function __soapCall($name, $args, $options = null, $inputHeaders = null, &$outputHeaders = null) {} - /** - * Returns last SOAP response - * @link https://php.net/manual/en/soapclient.getlastresponse.php - * @return string The last SOAP response, as an XML string. - * @since 5.0.1 - */ - public function __getLastResponse () {} + /** + * Returns last SOAP request + * @link https://php.net/manual/en/soapclient.getlastrequest.php + * @return string The last SOAP request, as an XML string. + * @since 5.0.1 + */ + public function __getLastRequest() {} - /** - * Returns the SOAP headers from the last request - * @link https://php.net/manual/en/soapclient.getlastrequestheaders.php - * @return string The last SOAP request headers. - * @since 5.0.1 - */ - public function __getLastRequestHeaders () {} + /** + * Returns last SOAP response + * @link https://php.net/manual/en/soapclient.getlastresponse.php + * @return string The last SOAP response, as an XML string. + * @since 5.0.1 + */ + public function __getLastResponse() {} - /** - * Returns the SOAP headers from the last response - * @link https://php.net/manual/en/soapclient.getlastresponseheaders.php - * @return string The last SOAP response headers. - * @since 5.0.1 - */ - public function __getLastResponseHeaders () {} + /** + * Returns the SOAP headers from the last request + * @link https://php.net/manual/en/soapclient.getlastrequestheaders.php + * @return string The last SOAP request headers. + * @since 5.0.1 + */ + public function __getLastRequestHeaders() {} - /** - * Returns list of available SOAP functions - * @link https://php.net/manual/en/soapclient.getfunctions.php - * @return array The array of SOAP function prototypes, detailing the return type, - * the function name and type-hinted parameters. - * @since 5.0.1 - */ - public function __getFunctions () {} + /** + * Returns the SOAP headers from the last response + * @link https://php.net/manual/en/soapclient.getlastresponseheaders.php + * @return string The last SOAP response headers. + * @since 5.0.1 + */ + public function __getLastResponseHeaders() {} - /** - * Returns a list of SOAP types - * @link https://php.net/manual/en/soapclient.gettypes.php - * @return array The array of SOAP types, detailing all structures and types. - * @since 5.0.1 - */ - public function __getTypes () {} + /** + * Returns list of available SOAP functions + * @link https://php.net/manual/en/soapclient.getfunctions.php + * @return array The array of SOAP function prototypes, detailing the return type, + * the function name and type-hinted parameters. + * @since 5.0.1 + */ + public function __getFunctions() {} - /** - * Returns a list of all cookies - * @link https://php.net/manual/en/soapclient.getcookies.php - * @return array The array of all cookies - * @since 5.4.3 - */ - public function __getCookies () {} + /** + * Returns a list of SOAP types + * @link https://php.net/manual/en/soapclient.gettypes.php + * @return array The array of SOAP types, detailing all structures and types. + * @since 5.0.1 + */ + public function __getTypes() {} - /** - * Performs a SOAP request - * @link https://php.net/manual/en/soapclient.dorequest.php - * @param string $request

    - * The XML SOAP request. - *

    - * @param string $location

    - * The URL to request. - *

    - * @param string $action

    - * The SOAP action. - *

    - * @param int $version

    - * The SOAP version. - *

    - * @param int $oneWay [optional]

    - * If one_way is set to 1, this method returns nothing. - * Use this where a response is not expected. - *

    - * @return string The XML SOAP response. - * @since 5.0.1 - */ - public function __doRequest ($request, $location, $action, $version, $oneWay = false) {} + /** + * Returns a list of all cookies + * @link https://php.net/manual/en/soapclient.getcookies.php + * @return array The array of all cookies + * @since 5.4.3 + */ + public function __getCookies() {} - /** - * The __setCookie purpose - * @link https://php.net/manual/en/soapclient.setcookie.php - * @param string $name

    - * The name of the cookie. - *

    - * @param string $value [optional]

    - * The value of the cookie. If not specified, the cookie will be deleted. - *

    - * @return void No value is returned. - * @since 5.0.4 - */ - public function __setCookie ($name, $value = null) {} + /** + * Performs a SOAP request + * @link https://php.net/manual/en/soapclient.dorequest.php + * @param string $request

    + * The XML SOAP request. + *

    + * @param string $location

    + * The URL to request. + *

    + * @param string $action

    + * The SOAP action. + *

    + * @param int $version

    + * The SOAP version. + *

    + * @param int $oneWay [optional]

    + * If one_way is set to 1, this method returns nothing. + * Use this where a response is not expected. + *

    + * @return string The XML SOAP response. + * @since 5.0.1 + */ + public function __doRequest($request, $location, $action, $version, $oneWay = false) {} - /** - * Sets the location of the Web service to use - * @link https://php.net/manual/en/soapclient.setlocation.php - * @param string|null $location [optional]

    - * The new endpoint URL. - *

    - * @return string The old endpoint URL. - * @since 5.0.1 - */ - public function __setLocation ($location = null) {} + /** + * The __setCookie purpose + * @link https://php.net/manual/en/soapclient.setcookie.php + * @param string $name

    + * The name of the cookie. + *

    + * @param string $value [optional]

    + * The value of the cookie. If not specified, the cookie will be deleted. + *

    + * @return void No value is returned. + * @since 5.0.4 + */ + public function __setCookie($name, $value = null) {} - /** - * Sets SOAP headers for subsequent calls - * @link https://php.net/manual/en/soapclient.setsoapheaders.php - * @param mixed $headers [optional]

    - * The headers to be set. It could be SoapHeader - * object or array of SoapHeader objects. - * If not specified or set to NULL, the headers will be deleted. - *

    - * @return bool TRUE on success or FALSE on failure. - * @since 5.0.5 - */ - public function __setSoapHeaders ($headers = null) {} + /** + * Sets the location of the Web service to use + * @link https://php.net/manual/en/soapclient.setlocation.php + * @param string|null $location [optional]

    + * The new endpoint URL. + *

    + * @return string The old endpoint URL. + * @since 5.0.1 + */ + public function __setLocation($location = null) {} + /** + * Sets SOAP headers for subsequent calls + * @link https://php.net/manual/en/soapclient.setsoapheaders.php + * @param mixed $headers [optional]

    + * The headers to be set. It could be SoapHeader + * object or array of SoapHeader objects. + * If not specified or set to NULL, the headers will be deleted. + *

    + * @return bool TRUE on success or FALSE on failure. + * @since 5.0.5 + */ + public function __setSoapHeaders($headers = null) {} } /** * A class representing a variable or object for use with SOAP services. * @link https://php.net/manual/en/class.soapvar.php */ -class SoapVar { - - /** - * SoapVar constructor - * @link https://php.net/manual/en/soapvar.soapvar.php - * @param mixed $data

    - * The data to pass or return. - *

    - * @param string|int $encoding

    - * The encoding ID, one of the XSD_... constants. - *

    - * @param string $typeName [optional]

    - * The type name. - *

    - * @param string $typeNamespace [optional]

    - * The type namespace. - *

    - * @param string $nodeName [optional]

    - * The XML node name. - *

    - * @param string $nodeNamespace [optional]

    - * The XML node namespace. - *

    - * @since 5.0.1 - */ - public function __construct ($data, $encoding, $typeName = null, $typeNamespace = null, $nodeName = null, $nodeNamespace = null) {} - - /** - * SoapVar constructor - * @link https://php.net/manual/en/soapvar.soapvar.php - * @param mixed $data

    - * The data to pass or return. - *

    - * @param string|int $encoding

    - * The encoding ID, one of the XSD_... constants. - *

    - * @param string $type_name [optional]

    - * The type name. - *

    - * @param string $type_namespace [optional]

    - * The type namespace. - *

    - * @param string $node_name [optional]

    - * The XML node name. - *

    - * @param string $node_namespace [optional]

    - * The XML node namespace. - *

    - * @since 5.0.1 - * @removed 8.0 - */ - public function SoapVar ($data, $encoding, $type_name = null, $type_namespace = null, $node_name = null, $node_namespace = null) {} +class SoapVar +{ + /** + * SoapVar constructor + * @link https://php.net/manual/en/soapvar.soapvar.php + * @param mixed $data

    + * The data to pass or return. + *

    + * @param string|int $encoding

    + * The encoding ID, one of the XSD_... constants. + *

    + * @param string $typeName [optional]

    + * The type name. + *

    + * @param string $typeNamespace [optional]

    + * The type namespace. + *

    + * @param string $nodeName [optional]

    + * The XML node name. + *

    + * @param string $nodeNamespace [optional]

    + * The XML node namespace. + *

    + * @since 5.0.1 + */ + public function __construct($data, $encoding, $typeName = null, $typeNamespace = null, $nodeName = null, $nodeNamespace = null) {} + /** + * SoapVar constructor + * @link https://php.net/manual/en/soapvar.soapvar.php + * @param mixed $data

    + * The data to pass or return. + *

    + * @param string|int $encoding

    + * The encoding ID, one of the XSD_... constants. + *

    + * @param string $type_name [optional]

    + * The type name. + *

    + * @param string $type_namespace [optional]

    + * The type namespace. + *

    + * @param string $node_name [optional]

    + * The XML node name. + *

    + * @param string $node_namespace [optional]

    + * The XML node namespace. + *

    + * @since 5.0.1 + * @removed 8.0 + */ + public function SoapVar($data, $encoding, $type_name = null, $type_namespace = null, $node_name = null, $node_namespace = null) {} } /** * The SoapServer class provides a server for the SOAP 1.1 and SOAP 1.2 protocols. It can be used with or without a WSDL service description. * @link https://php.net/manual/en/class.soapserver.php */ -class SoapServer { - - /** - * SoapServer constructor - * @link https://php.net/manual/en/soapserver.soapserver.php - * @param mixed $wsdl

    - * To use the SoapServer in WSDL mode, pass the URI of a WSDL file. - * Otherwise, pass NULL and set the uri option to the - * target namespace for the server. - *

    - * @param array $options [optional]

    - * Allow setting a default SOAP version (soap_version), - * internal character encoding (encoding), - * and actor URI (actor). - *

    - *

    - * The classmap option can be used to map some WSDL - * types to PHP classes. This option must be an array with WSDL types - * as keys and names of PHP classes as values. - *

    - *

    - * The typemap option is an array of type mappings. - * Type mapping is an array with keys type_name, - * type_ns (namespace URI), from_xml - * (callback accepting one string parameter) and to_xml - * (callback accepting one object parameter). - *

    - *

    - * The cache_wsdl option is one of - * WSDL_CACHE_NONE, - * WSDL_CACHE_DISK, - * WSDL_CACHE_MEMORY or - * WSDL_CACHE_BOTH. - *

    - *

    - * There is also a features option which can be set to - * SOAP_WAIT_ONE_WAY_CALLS, - * SOAP_SINGLE_ELEMENT_ARRAYS, - * SOAP_USE_XSI_ARRAY_TYPE. - *

    - * @since 5.0.1 - */ - public function __construct ($wsdl, array $options = null) {} - - /** - * SoapServer constructor - * @link https://php.net/manual/en/soapserver.soapserver.php - * @param mixed $wsdl

    - * To use the SoapServer in WSDL mode, pass the URI of a WSDL file. - * Otherwise, pass NULL and set the uri option to the - * target namespace for the server. - *

    - * @param array $options [optional]

    - * Allow setting a default SOAP version (soap_version), - * internal character encoding (encoding), - * and actor URI (actor). - *

    - *

    - * The classmap option can be used to map some WSDL - * types to PHP classes. This option must be an array with WSDL types - * as keys and names of PHP classes as values. - *

    - *

    - * The typemap option is an array of type mappings. - * Type mapping is an array with keys type_name, - * type_ns (namespace URI), from_xml - * (callback accepting one string parameter) and to_xml - * (callback accepting one object parameter). - *

    - *

    - * The cache_wsdl option is one of - * WSDL_CACHE_NONE, - * WSDL_CACHE_DISK, - * WSDL_CACHE_MEMORY or - * WSDL_CACHE_BOTH. - *

    - *

    - * There is also a features option which can be set to - * SOAP_WAIT_ONE_WAY_CALLS, - * SOAP_SINGLE_ELEMENT_ARRAYS, - * SOAP_USE_XSI_ARRAY_TYPE. - *

    - * @since 5.0.1 - * @removed 8.0 - */ - public function SoapServer ($wsdl, array $options = null) {} +class SoapServer +{ + /** + * SoapServer constructor + * @link https://php.net/manual/en/soapserver.soapserver.php + * @param mixed $wsdl

    + * To use the SoapServer in WSDL mode, pass the URI of a WSDL file. + * Otherwise, pass NULL and set the uri option to the + * target namespace for the server. + *

    + * @param array $options [optional]

    + * Allow setting a default SOAP version (soap_version), + * internal character encoding (encoding), + * and actor URI (actor). + *

    + *

    + * The classmap option can be used to map some WSDL + * types to PHP classes. This option must be an array with WSDL types + * as keys and names of PHP classes as values. + *

    + *

    + * The typemap option is an array of type mappings. + * Type mapping is an array with keys type_name, + * type_ns (namespace URI), from_xml + * (callback accepting one string parameter) and to_xml + * (callback accepting one object parameter). + *

    + *

    + * The cache_wsdl option is one of + * WSDL_CACHE_NONE, + * WSDL_CACHE_DISK, + * WSDL_CACHE_MEMORY or + * WSDL_CACHE_BOTH. + *

    + *

    + * There is also a features option which can be set to + * SOAP_WAIT_ONE_WAY_CALLS, + * SOAP_SINGLE_ELEMENT_ARRAYS, + * SOAP_USE_XSI_ARRAY_TYPE. + *

    + * @since 5.0.1 + */ + public function __construct($wsdl, array $options = null) {} - /** - * Sets SoapServer persistence mode - * @link https://php.net/manual/en/soapserver.setpersistence.php - * @param int $mode

    - * One of the SOAP_PERSISTENCE_XXX constants. - *

    - *

    - * SOAP_PERSISTENCE_REQUEST - SoapServer data does not persist between - * requests. This is the default behavior of any SoapServer - * object after setClass is called. - *

    - *

    - * SOAP_PERSISTENCE_SESSION - SoapServer data persists between requests. - * This is accomplished by serializing the SoapServer class data into - * $_SESSION['_bogus_session_name'], because of this - * session_start must be called before this persistence mode is set. - *

    - * @return void No value is returned. - * @since 5.1.2 - */ - public function setPersistence ($mode) {} + /** + * SoapServer constructor + * @link https://php.net/manual/en/soapserver.soapserver.php + * @param mixed $wsdl

    + * To use the SoapServer in WSDL mode, pass the URI of a WSDL file. + * Otherwise, pass NULL and set the uri option to the + * target namespace for the server. + *

    + * @param array $options [optional]

    + * Allow setting a default SOAP version (soap_version), + * internal character encoding (encoding), + * and actor URI (actor). + *

    + *

    + * The classmap option can be used to map some WSDL + * types to PHP classes. This option must be an array with WSDL types + * as keys and names of PHP classes as values. + *

    + *

    + * The typemap option is an array of type mappings. + * Type mapping is an array with keys type_name, + * type_ns (namespace URI), from_xml + * (callback accepting one string parameter) and to_xml + * (callback accepting one object parameter). + *

    + *

    + * The cache_wsdl option is one of + * WSDL_CACHE_NONE, + * WSDL_CACHE_DISK, + * WSDL_CACHE_MEMORY or + * WSDL_CACHE_BOTH. + *

    + *

    + * There is also a features option which can be set to + * SOAP_WAIT_ONE_WAY_CALLS, + * SOAP_SINGLE_ELEMENT_ARRAYS, + * SOAP_USE_XSI_ARRAY_TYPE. + *

    + * @since 5.0.1 + * @removed 8.0 + */ + public function SoapServer($wsdl, array $options = null) {} - /** - * Sets the class which handles SOAP requests - * @link https://php.net/manual/en/soapserver.setclass.php - * @param string $class

    - * The name of the exported class. - *

    - * @param mixed ...$args [optional] These optional parameters will be passed to the default class constructor during object creation. - * @return void No value is returned. - * @since 5.0.1 - */ - public function setClass ($class, ...$args) {} + /** + * Sets SoapServer persistence mode + * @link https://php.net/manual/en/soapserver.setpersistence.php + * @param int $mode

    + * One of the SOAP_PERSISTENCE_XXX constants. + *

    + *

    + * SOAP_PERSISTENCE_REQUEST - SoapServer data does not persist between + * requests. This is the default behavior of any SoapServer + * object after setClass is called. + *

    + *

    + * SOAP_PERSISTENCE_SESSION - SoapServer data persists between requests. + * This is accomplished by serializing the SoapServer class data into + * $_SESSION['_bogus_session_name'], because of this + * session_start must be called before this persistence mode is set. + *

    + * @return void No value is returned. + * @since 5.1.2 + */ + public function setPersistence($mode) {} - /** - * Sets the object which will be used to handle SOAP requests - * @link https://php.net/manual/en/soapserver.setobject.php - * @param object $object

    - * The object to handle the requests. - *

    - * @return void No value is returned. - */ - public function setObject ($object) {} + /** + * Sets the class which handles SOAP requests + * @link https://php.net/manual/en/soapserver.setclass.php + * @param string $class

    + * The name of the exported class. + *

    + * @param mixed ...$args [optional] These optional parameters will be passed to the default class constructor during object creation. + * @return void No value is returned. + * @since 5.0.1 + */ + public function setClass($class, ...$args) {} - /** - * Adds one or more functions to handle SOAP requests - * @link https://php.net/manual/en/soapserver.addfunction.php - * @param mixed $functions

    - * To export one function, pass the function name into this parameter as - * a string. - *

    - *

    - * To export several functions, pass an array of function names. - *

    - *

    - * To export all the functions, pass a special constant SOAP_FUNCTIONS_ALL. - *

    - *

    - * functions must receive all input arguments in the same - * order as defined in the WSDL file (They should not receive any output parameters - * as arguments) and return one or more values. To return several values they must - * return an array with named output parameters. - *

    - * @return void No value is returned. - * @since 5.0.1 - */ - public function addFunction ($functions) {} + /** + * Sets the object which will be used to handle SOAP requests + * @link https://php.net/manual/en/soapserver.setobject.php + * @param object $object

    + * The object to handle the requests. + *

    + * @return void No value is returned. + */ + public function setObject($object) {} - /** - * Returns list of defined functions - * @link https://php.net/manual/en/soapserver.getfunctions.php - * @return array An array of the defined functions. - * @since 5.0.1 - */ - public function getFunctions () {} + /** + * Adds one or more functions to handle SOAP requests + * @link https://php.net/manual/en/soapserver.addfunction.php + * @param mixed $functions

    + * To export one function, pass the function name into this parameter as + * a string. + *

    + *

    + * To export several functions, pass an array of function names. + *

    + *

    + * To export all the functions, pass a special constant SOAP_FUNCTIONS_ALL. + *

    + *

    + * functions must receive all input arguments in the same + * order as defined in the WSDL file (They should not receive any output parameters + * as arguments) and return one or more values. To return several values they must + * return an array with named output parameters. + *

    + * @return void No value is returned. + * @since 5.0.1 + */ + public function addFunction($functions) {} - /** - * Handles a SOAP request - * @link https://php.net/manual/en/soapserver.handle.php - * @param string $request [optional]

    - * The SOAP request. If this argument is omitted, the request is assumed to be - * in the raw POST data of the HTTP request. - *

    - * @return void No value is returned. - * @since 5.0.1 - */ - public function handle ($request = null) {} + /** + * Returns list of defined functions + * @link https://php.net/manual/en/soapserver.getfunctions.php + * @return array An array of the defined functions. + * @since 5.0.1 + */ + public function getFunctions() {} - /** - * Issue SoapServer fault indicating an error - * @link https://php.net/manual/en/soapserver.fault.php - * @param string $code

    - * The error code to return - *

    - * @param string $string

    - * A brief description of the error - *

    - * @param string $actor [optional]

    - * A string identifying the actor that caused the fault. - *

    - * @param string $details [optional]

    - * More details of the fault - *

    - * @param string $name [optional]

    - * The name of the fault. This can be used to select a name from a WSDL file. - *

    - * @return void No value is returned. - * @since 5.0.1 - */ - public function fault ($code, $string, $actor = null, $details = null, $name = null) {} + /** + * Handles a SOAP request + * @link https://php.net/manual/en/soapserver.handle.php + * @param string $request [optional]

    + * The SOAP request. If this argument is omitted, the request is assumed to be + * in the raw POST data of the HTTP request. + *

    + * @return void No value is returned. + * @since 5.0.1 + */ + public function handle($request = null) {} - /** - * Add a SOAP header to the response - * @link https://php.net/manual/en/soapserver.addsoapheader.php - * @param SoapHeader $header

    - * The header to be returned. - *

    - * @return void No value is returned. - * @since 5.0.1 - */ - public function addSoapHeader (SoapHeader $header) {} + /** + * Issue SoapServer fault indicating an error + * @link https://php.net/manual/en/soapserver.fault.php + * @param string $code

    + * The error code to return + *

    + * @param string $string

    + * A brief description of the error + *

    + * @param string $actor [optional]

    + * A string identifying the actor that caused the fault. + *

    + * @param string $details [optional]

    + * More details of the fault + *

    + * @param string $name [optional]

    + * The name of the fault. This can be used to select a name from a WSDL file. + *

    + * @return void No value is returned. + * @since 5.0.1 + */ + public function fault($code, $string, $actor = null, $details = null, $name = null) {} + /** + * Add a SOAP header to the response + * @link https://php.net/manual/en/soapserver.addsoapheader.php + * @param SoapHeader $header

    + * The header to be returned. + *

    + * @return void No value is returned. + * @since 5.0.1 + */ + public function addSoapHeader(SoapHeader $header) {} } /** * Represents a SOAP fault. * @link https://php.net/manual/en/class.soapfault.php */ -class SoapFault extends Exception { +class SoapFault extends Exception +{ /** * @var string */ - public $faultcode; + public $faultcode; /** * @var string */ - public $faultstring; + public $faultstring; /** * @var string */ @@ -741,161 +739,157 @@ class SoapFault extends Exception { */ public $headerfault; - /** - * SoapFault constructor - * @link https://php.net/manual/en/soapfault.soapfault.php - * @param string $code

    - * The error code of the SoapFault. - *

    - * @param string $string

    - * The error message of the SoapFault. - *

    - * @param string $actor [optional]

    - * A string identifying the actor that caused the error. - *

    - * @param string $details [optional]

    - * More details about the cause of the error. - *

    - * @param string $name [optional]

    - * Can be used to select the proper fault encoding from WSDL. - *

    - * @param mixed $headerFault [optional]

    - * Can be used during SOAP header handling to report an error in the - * response header. - *

    - * @since 5.0.1 - */ - #[\JetBrains\PhpStorm\Pure] - public function __construct ($code, $string, $actor = null, $details = null, $name = null, $headerFault = null) {} - - /** - * SoapFault constructor - * @link https://php.net/manual/en/soapfault.soapfault.php - * @param string $faultcode

    - * The error code of the SoapFault. - *

    - * @param string $faultstring

    - * The error message of the SoapFault. - *

    - * @param string $faultactor [optional]

    - * A string identifying the actor that caused the error. - *

    - * @param string $detail [optional]

    - * More details about the cause of the error. - *

    - * @param string $faultname [optional]

    - * Can be used to select the proper fault encoding from WSDL. - *

    - * @param mixed $headerfault [optional]

    - * Can be used during SOAP header handling to report an error in the - * response header. - *

    - * @since 5.0.1 - * @removed 8.0 - */ - public function SoapFault ($faultcode, $faultstring, $faultactor = null, $detail = null, $faultname = null, $headerfault = null) {} - - /** - * Obtain a string representation of a SoapFault - * @link https://php.net/manual/en/soapfault.tostring.php - * @return string A string describing the SoapFault. - * @since 5.0.1 - */ - public function __toString () {} + /** + * SoapFault constructor + * @link https://php.net/manual/en/soapfault.soapfault.php + * @param string $code

    + * The error code of the SoapFault. + *

    + * @param string $string

    + * The error message of the SoapFault. + *

    + * @param string $actor [optional]

    + * A string identifying the actor that caused the error. + *

    + * @param string $details [optional]

    + * More details about the cause of the error. + *

    + * @param string $name [optional]

    + * Can be used to select the proper fault encoding from WSDL. + *

    + * @param mixed $headerFault [optional]

    + * Can be used during SOAP header handling to report an error in the + * response header. + *

    + * @since 5.0.1 + */ + #[\JetBrains\PhpStorm\Pure] + public function __construct($code, $string, $actor = null, $details = null, $name = null, $headerFault = null) {} + /** + * SoapFault constructor + * @link https://php.net/manual/en/soapfault.soapfault.php + * @param string $faultcode

    + * The error code of the SoapFault. + *

    + * @param string $faultstring

    + * The error message of the SoapFault. + *

    + * @param string $faultactor [optional]

    + * A string identifying the actor that caused the error. + *

    + * @param string $detail [optional]

    + * More details about the cause of the error. + *

    + * @param string $faultname [optional]

    + * Can be used to select the proper fault encoding from WSDL. + *

    + * @param mixed $headerfault [optional]

    + * Can be used during SOAP header handling to report an error in the + * response header. + *

    + * @since 5.0.1 + * @removed 8.0 + */ + public function SoapFault($faultcode, $faultstring, $faultactor = null, $detail = null, $faultname = null, $headerfault = null) {} + /** + * Obtain a string representation of a SoapFault + * @link https://php.net/manual/en/soapfault.tostring.php + * @return string A string describing the SoapFault. + * @since 5.0.1 + */ + public function __toString() {} } /** * Represents parameter to a SOAP call. * @link https://php.net/manual/en/class.soapparam.php */ -class SoapParam { - - /** - * SoapParam constructor - * @link https://php.net/manual/en/soapparam.soapparam.php - * @param mixed $data

    - * The data to pass or return. This parameter can be passed directly as PHP - * value, but in this case it will be named as paramN and - * the SOAP service may not understand it. - *

    - * @param string $name

    - * The parameter name. - *

    - * @since 5.0.1 - */ - public function __construct ($data, $name) {} - - /** - * SoapParam constructor - * @link https://php.net/manual/en/soapparam.soapparam.php - * @param mixed $data

    - * The data to pass or return. This parameter can be passed directly as PHP - * value, but in this case it will be named as paramN and - * the SOAP service may not understand it. - *

    - * @param string $name

    - * The parameter name. - *

    - * @since 5.0.1 - * @removed 8.0 - */ - public function SoapParam ($data, $name) {} +class SoapParam +{ + /** + * SoapParam constructor + * @link https://php.net/manual/en/soapparam.soapparam.php + * @param mixed $data

    + * The data to pass or return. This parameter can be passed directly as PHP + * value, but in this case it will be named as paramN and + * the SOAP service may not understand it. + *

    + * @param string $name

    + * The parameter name. + *

    + * @since 5.0.1 + */ + public function __construct($data, $name) {} + /** + * SoapParam constructor + * @link https://php.net/manual/en/soapparam.soapparam.php + * @param mixed $data

    + * The data to pass or return. This parameter can be passed directly as PHP + * value, but in this case it will be named as paramN and + * the SOAP service may not understand it. + *

    + * @param string $name

    + * The parameter name. + *

    + * @since 5.0.1 + * @removed 8.0 + */ + public function SoapParam($data, $name) {} } /** * Represents a SOAP header. * @link https://php.net/manual/en/class.soapheader.php */ -class SoapHeader { - - /** - * SoapHeader constructor - * @link https://www.php.net/manual/en/soapheader.construct.php - * @param string $namespace

    - * The namespace of the SOAP header element. - *

    - * @param string $name

    - * The name of the SoapHeader object. - *

    - * @param mixed $data [optional]

    - * A SOAP header's content. It can be a PHP value or a - * SoapVar object. - *

    - * @param bool $mustUnderstand [optional] - * @param string $actor [optional]

    - * Value of the actor attribute of the SOAP header - * element. - *

    - * @since 5.0.1 - */ - public function __construct ($namespace, $name, $data = null, $mustUnderstand = false, $actor = null) {} - - /** - * SoapHeader constructor - * @link https://php.net/manual/en/soapheader.soapheader.php - * @param string $namespace

    - * The namespace of the SOAP header element. - *

    - * @param string $name

    - * The name of the SoapHeader object. - *

    - * @param mixed $data [optional]

    - * A SOAP header's content. It can be a PHP value or a - * SoapVar object. - *

    - * @param bool $mustunderstand [optional] - * @param string $actor [optional]

    - * Value of the actor attribute of the SOAP header - * element. - *

    - * @since 5.0.1 - * @removed 8.0 - */ - public function SoapHeader ($namespace, $name, $data = null, $mustunderstand = false, $actor = null) {} +class SoapHeader +{ + /** + * SoapHeader constructor + * @link https://www.php.net/manual/en/soapheader.construct.php + * @param string $namespace

    + * The namespace of the SOAP header element. + *

    + * @param string $name

    + * The name of the SoapHeader object. + *

    + * @param mixed $data [optional]

    + * A SOAP header's content. It can be a PHP value or a + * SoapVar object. + *

    + * @param bool $mustUnderstand [optional] + * @param string $actor [optional]

    + * Value of the actor attribute of the SOAP header + * element. + *

    + * @since 5.0.1 + */ + public function __construct($namespace, $name, $data = null, $mustUnderstand = false, $actor = null) {} + /** + * SoapHeader constructor + * @link https://php.net/manual/en/soapheader.soapheader.php + * @param string $namespace

    + * The namespace of the SOAP header element. + *

    + * @param string $name

    + * The name of the SoapHeader object. + *

    + * @param mixed $data [optional]

    + * A SOAP header's content. It can be a PHP value or a + * SoapVar object. + *

    + * @param bool $mustunderstand [optional] + * @param string $actor [optional]

    + * Value of the actor attribute of the SOAP header + * element. + *

    + * @since 5.0.1 + * @removed 8.0 + */ + public function SoapHeader($namespace, $name, $data = null, $mustunderstand = false, $actor = null) {} } /** @@ -906,7 +900,7 @@ public function SoapHeader ($namespace, $name, $data = null, $mustunderstand = f *

    * @return bool the original value. */ -function use_soap_error_handler (bool $enable = true): bool {} +function use_soap_error_handler(bool $enable = true): bool {} /** * Checks if a SOAP call has failed @@ -916,109 +910,108 @@ function use_soap_error_handler (bool $enable = true): bool {} *

    * @return bool This will return TRUE on error, and FALSE otherwise. */ -function is_soap_fault (mixed $object): bool {} - -define ('SOAP_1_1', 1); -define ('SOAP_1_2', 2); -define ('SOAP_PERSISTENCE_SESSION', 1); -define ('SOAP_PERSISTENCE_REQUEST', 2); -define ('SOAP_FUNCTIONS_ALL', 999); -define ('SOAP_ENCODED', 1); -define ('SOAP_LITERAL', 2); -define ('SOAP_RPC', 1); -define ('SOAP_DOCUMENT', 2); -define ('SOAP_ACTOR_NEXT', 1); -define ('SOAP_ACTOR_NONE', 2); -define ('SOAP_ACTOR_UNLIMATERECEIVER', 3); -define ('SOAP_COMPRESSION_ACCEPT', 32); -define ('SOAP_COMPRESSION_GZIP', 0); -define ('SOAP_COMPRESSION_DEFLATE', 16); -define ('SOAP_AUTHENTICATION_BASIC', 0); -define ('SOAP_AUTHENTICATION_DIGEST', 1); -define ('UNKNOWN_TYPE', 999998); -define ('XSD_STRING', 101); -define ('XSD_BOOLEAN', 102); -define ('XSD_DECIMAL', 103); -define ('XSD_FLOAT', 104); -define ('XSD_DOUBLE', 105); -define ('XSD_DURATION', 106); -define ('XSD_DATETIME', 107); -define ('XSD_TIME', 108); -define ('XSD_DATE', 109); -define ('XSD_GYEARMONTH', 110); -define ('XSD_GYEAR', 111); -define ('XSD_GMONTHDAY', 112); -define ('XSD_GDAY', 113); -define ('XSD_GMONTH', 114); -define ('XSD_HEXBINARY', 115); -define ('XSD_BASE64BINARY', 116); -define ('XSD_ANYURI', 117); -define ('XSD_QNAME', 118); -define ('XSD_NOTATION', 119); -define ('XSD_NORMALIZEDSTRING', 120); -define ('XSD_TOKEN', 121); -define ('XSD_LANGUAGE', 122); -define ('XSD_NMTOKEN', 123); -define ('XSD_NAME', 124); -define ('XSD_NCNAME', 125); -define ('XSD_ID', 126); -define ('XSD_IDREF', 127); -define ('XSD_IDREFS', 128); -define ('XSD_ENTITY', 129); -define ('XSD_ENTITIES', 130); -define ('XSD_INTEGER', 131); -define ('XSD_NONPOSITIVEINTEGER', 132); -define ('XSD_NEGATIVEINTEGER', 133); -define ('XSD_LONG', 134); -define ('XSD_INT', 135); -define ('XSD_SHORT', 136); -define ('XSD_BYTE', 137); -define ('XSD_NONNEGATIVEINTEGER', 138); -define ('XSD_UNSIGNEDLONG', 139); -define ('XSD_UNSIGNEDINT', 140); -define ('XSD_UNSIGNEDSHORT', 141); -define ('XSD_UNSIGNEDBYTE', 142); -define ('XSD_POSITIVEINTEGER', 143); -define ('XSD_NMTOKENS', 144); -define ('XSD_ANYTYPE', 145); -define ('XSD_ANYXML', 147); -define ('APACHE_MAP', 200); -define ('SOAP_ENC_OBJECT', 301); -define ('SOAP_ENC_ARRAY', 300); -define ('XSD_1999_TIMEINSTANT', 401); -define ('XSD_NAMESPACE', "http://www.w3.org/2001/XMLSchema"); -define ('XSD_1999_NAMESPACE', "http://www.w3.org/1999/XMLSchema"); -define ('SOAP_SINGLE_ELEMENT_ARRAYS', 1); -define ('SOAP_WAIT_ONE_WAY_CALLS', 2); -define ('SOAP_USE_XSI_ARRAY_TYPE', 4); -define ('WSDL_CACHE_NONE', 0); -define ('WSDL_CACHE_DISK', 1); -define ('WSDL_CACHE_MEMORY', 2); -define ('WSDL_CACHE_BOTH', 3); +function is_soap_fault(mixed $object): bool {} + +define('SOAP_1_1', 1); +define('SOAP_1_2', 2); +define('SOAP_PERSISTENCE_SESSION', 1); +define('SOAP_PERSISTENCE_REQUEST', 2); +define('SOAP_FUNCTIONS_ALL', 999); +define('SOAP_ENCODED', 1); +define('SOAP_LITERAL', 2); +define('SOAP_RPC', 1); +define('SOAP_DOCUMENT', 2); +define('SOAP_ACTOR_NEXT', 1); +define('SOAP_ACTOR_NONE', 2); +define('SOAP_ACTOR_UNLIMATERECEIVER', 3); +define('SOAP_COMPRESSION_ACCEPT', 32); +define('SOAP_COMPRESSION_GZIP', 0); +define('SOAP_COMPRESSION_DEFLATE', 16); +define('SOAP_AUTHENTICATION_BASIC', 0); +define('SOAP_AUTHENTICATION_DIGEST', 1); +define('UNKNOWN_TYPE', 999998); +define('XSD_STRING', 101); +define('XSD_BOOLEAN', 102); +define('XSD_DECIMAL', 103); +define('XSD_FLOAT', 104); +define('XSD_DOUBLE', 105); +define('XSD_DURATION', 106); +define('XSD_DATETIME', 107); +define('XSD_TIME', 108); +define('XSD_DATE', 109); +define('XSD_GYEARMONTH', 110); +define('XSD_GYEAR', 111); +define('XSD_GMONTHDAY', 112); +define('XSD_GDAY', 113); +define('XSD_GMONTH', 114); +define('XSD_HEXBINARY', 115); +define('XSD_BASE64BINARY', 116); +define('XSD_ANYURI', 117); +define('XSD_QNAME', 118); +define('XSD_NOTATION', 119); +define('XSD_NORMALIZEDSTRING', 120); +define('XSD_TOKEN', 121); +define('XSD_LANGUAGE', 122); +define('XSD_NMTOKEN', 123); +define('XSD_NAME', 124); +define('XSD_NCNAME', 125); +define('XSD_ID', 126); +define('XSD_IDREF', 127); +define('XSD_IDREFS', 128); +define('XSD_ENTITY', 129); +define('XSD_ENTITIES', 130); +define('XSD_INTEGER', 131); +define('XSD_NONPOSITIVEINTEGER', 132); +define('XSD_NEGATIVEINTEGER', 133); +define('XSD_LONG', 134); +define('XSD_INT', 135); +define('XSD_SHORT', 136); +define('XSD_BYTE', 137); +define('XSD_NONNEGATIVEINTEGER', 138); +define('XSD_UNSIGNEDLONG', 139); +define('XSD_UNSIGNEDINT', 140); +define('XSD_UNSIGNEDSHORT', 141); +define('XSD_UNSIGNEDBYTE', 142); +define('XSD_POSITIVEINTEGER', 143); +define('XSD_NMTOKENS', 144); +define('XSD_ANYTYPE', 145); +define('XSD_ANYXML', 147); +define('APACHE_MAP', 200); +define('SOAP_ENC_OBJECT', 301); +define('SOAP_ENC_ARRAY', 300); +define('XSD_1999_TIMEINSTANT', 401); +define('XSD_NAMESPACE', "http://www.w3.org/2001/XMLSchema"); +define('XSD_1999_NAMESPACE', "http://www.w3.org/1999/XMLSchema"); +define('SOAP_SINGLE_ELEMENT_ARRAYS', 1); +define('SOAP_WAIT_ONE_WAY_CALLS', 2); +define('SOAP_USE_XSI_ARRAY_TYPE', 4); +define('WSDL_CACHE_NONE', 0); +define('WSDL_CACHE_DISK', 1); +define('WSDL_CACHE_MEMORY', 2); +define('WSDL_CACHE_BOTH', 3); /** * @link https://php.net/manual/en/soap.constants.php * @since 5.5 */ -define ('SOAP_SSL_METHOD_TLS', 0); +define('SOAP_SSL_METHOD_TLS', 0); /** * @link https://php.net/manual/en/soap.constants.php * @since 5.5 */ -define ('SOAP_SSL_METHOD_SSLv2', 1); +define('SOAP_SSL_METHOD_SSLv2', 1); /** * @link https://php.net/manual/en/soap.constants.php * @since 5.5 */ -define ('SOAP_SSL_METHOD_SSLv3', 2); +define('SOAP_SSL_METHOD_SSLv3', 2); /** * @link https://php.net/manual/en/soap.constants.php * @since 5.5 */ -define ('SOAP_SSL_METHOD_SSLv23', 3); +define('SOAP_SSL_METHOD_SSLv23', 3); // End of soap v. -?> diff --git a/sockets/sockets.php b/sockets/sockets.php index a0808ccd2..574411886 100644 --- a/sockets/sockets.php +++ b/sockets/sockets.php @@ -105,7 +105,7 @@ function socket_addrinfo_explain(AddressInfo $address): array {} * } * */ -function socket_select (?array &$read, ?array &$write, ?array &$except, ?int $seconds, int $microseconds = 0): int|false {} +function socket_select(?array &$read, ?array &$write, ?array &$except, ?int $seconds, int $microseconds = 0): int|false {} /** * Create a socket (endpoint for communication) @@ -243,7 +243,7 @@ function socket_select (?array &$read, ?array &$write, ?array &$except, ?int $se * socket_strerror to get a textual explanation of the * error. */ -function socket_create (int $domain, int $type, int $protocol): Socket|false {} +function socket_create(int $domain, int $type, int $protocol): Socket|false {} /** * @param resource|Socket $socket @@ -270,7 +270,7 @@ function socket_export_stream(Socket $socket) {} * socket_strerror to get a textual explanation of the * error. */ -function socket_create_listen (int $port, int $backlog = 128): Socket|false {} +function socket_create_listen(int $port, int $backlog = 128): Socket|false {} /** * Creates a pair of indistinguishable sockets and stores them in an array @@ -303,7 +303,7 @@ function socket_create_listen (int $port, int $backlog = 128): Socket|false {} *

    * @return bool TRUE on success or FALSE on failure. */ -function socket_create_pair (int $domain, int $type, int $protocol, &$pair): bool {} +function socket_create_pair(int $domain, int $type, int $protocol, &$pair): bool {} /** * Accepts a connection on a socket @@ -317,7 +317,7 @@ function socket_create_pair (int $domain, int $type, int $protocol, &$pair): boo * socket_strerror to get a textual explanation of the * error. */ -function socket_accept (Socket $socket): Socket|false {} +function socket_accept(Socket $socket): Socket|false {} /** * Sets nonblocking mode for file descriptor fd @@ -328,7 +328,7 @@ function socket_accept (Socket $socket): Socket|false {} *

    * @return bool TRUE on success or FALSE on failure. */ -function socket_set_nonblock (Socket $socket):bool {} +function socket_set_nonblock(Socket $socket): bool {} /** * Sets blocking mode on a socket resource @@ -339,7 +339,7 @@ function socket_set_nonblock (Socket $socket):bool {} *

    * @return bool TRUE on success or FALSE on failure. */ -function socket_set_block (Socket $socket): bool {} +function socket_set_block(Socket $socket): bool {} /** * Listens for a connection on a socket @@ -368,7 +368,7 @@ function socket_set_block (Socket $socket): bool {} * socket_strerror to get a textual explanation of the * error. */ -function socket_listen (Socket $socket, int $backlog = 0): bool {} +function socket_listen(Socket $socket, int $backlog = 0): bool {} /** * Closes a socket resource @@ -379,7 +379,7 @@ function socket_listen (Socket $socket, int $backlog = 0): bool {} *

    * @return void No value is returned. */ -function socket_close (Socket $socket): void {} +function socket_close(Socket $socket): void {} /** * Write to a socket @@ -406,7 +406,7 @@ function socket_close (Socket $socket): void {} * === operator to check for FALSE in case of an * error. */ -function socket_write (Socket $socket, string $data, ?int $length = 0): int|false {} +function socket_write(Socket $socket, string $data, ?int $length = 0): int|false {} /** * Reads a maximum of length bytes from a socket @@ -437,7 +437,7 @@ function socket_write (Socket $socket, string $data, ?int $length = 0): int|fals * socket_read returns a zero length string ("") * when there is no more data to read.

    */ -function socket_read (Socket $socket, int $length, int $mode = PHP_BINARY_READ): string|false {} +function socket_read(Socket $socket, int $length, int $mode = PHP_BINARY_READ): string|false {} /** * Queries the local side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type @@ -468,7 +468,7 @@ function socket_read (Socket $socket, int $length, int $mode = PHP_BINARY_READ): * AF_INET6, or AF_UNIX, in which * case the last socket error code is not updated. */ -function socket_getsockname (Socket $socket, &$address, &$port = null): bool {} +function socket_getsockname(Socket $socket, &$address, &$port = null): bool {} /** * Queries the remote side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type @@ -501,7 +501,7 @@ function socket_getsockname (Socket $socket, &$address, &$port = null): bool {} * AF_INET6, or AF_UNIX, in which * case the last socket error code is not updated. */ -function socket_getpeername (Socket $socket, &$address, &$port = null): bool {} +function socket_getpeername(Socket $socket, &$address, &$port = null): bool {} /** * Initiates a connection on a socket @@ -531,7 +531,7 @@ function socket_getpeername (Socket $socket, &$address, &$port = null): bool {} * If the socket is non-blocking then this function returns FALSE with an * error Operation now in progress. */ -function socket_connect (Socket $socket, string $address, ?int $port = 0): bool {} +function socket_connect(Socket $socket, string $address, ?int $port = 0): bool {} /** * Return a string describing a socket error @@ -543,7 +543,7 @@ function socket_connect (Socket $socket, string $address, ?int $port = 0): bool * @return string the error message associated with the errno * parameter. */ -function socket_strerror (int $error_code): string {} +function socket_strerror(int $error_code): string {} /** * Binds a name to a socket @@ -573,7 +573,7 @@ function socket_strerror (int $error_code): string {} * textual explanation of the error. *

    */ -function socket_bind (Socket $socket, string $address, int $port = 0): bool {} +function socket_bind(Socket $socket, string $address, int $port = 0): bool {} /** * Receives data from a connected socket @@ -637,7 +637,7 @@ function socket_bind (Socket $socket, string $address, int $port = 0): bool {} * passed to socket_strerror to get a textual explanation * of the error. */ -function socket_recv (Socket $socket, &$data, int $length, int $flags): int|false {} +function socket_recv(Socket $socket, &$data, int $length, int $flags): int|false {} /** * Sends data to a connected socket @@ -689,7 +689,7 @@ function socket_recv (Socket $socket, &$data, int $length, int $flags): int|fals *

    * @return int|false socket_send returns the number of bytes sent, or FALSE on error. */ -function socket_send (Socket $socket, string $data, int $length, int $flags): int|false {} +function socket_send(Socket $socket, string $data, int $length, int $flags): int|false {} /** * (PHP 5 >=5.5.0)
    @@ -701,7 +701,7 @@ function socket_send (Socket $socket, string $data, int $length, int $flags): in * @return int|false * @since 5.5 */ -function socket_sendmsg (Socket $socket, array $message, int $flags = 0): int|false {} +function socket_sendmsg(Socket $socket, array $message, int $flags = 0): int|false {} /** * Receives data from a socket whether or not it is connection-oriented @@ -775,7 +775,7 @@ function socket_sendmsg (Socket $socket, array $message, int $flags = 0): int|fa * passed to socket_strerror to get a textual explanation * of the error. */ -function socket_recvfrom (Socket $socket, &$data, int $length, int $flags, &$address, &$port = null): int|false {} +function socket_recvfrom(Socket $socket, &$data, int $length, int $flags, &$address, &$port = null): int|false {} /** * Read a message @@ -786,7 +786,7 @@ function socket_recvfrom (Socket $socket, &$data, int $length, int $flags, &$add * @return int|false * @since 5.5 */ -function socket_recvmsg (Socket $socket , array &$message, int $flags): int|false {} +function socket_recvmsg(Socket $socket, array &$message, int $flags): int|false {} /** * Sends a message to a socket, whether it is connected or not @@ -845,7 +845,7 @@ function socket_recvmsg (Socket $socket , array &$message, int $flags): int|fals * @return int|false socket_sendto returns the number of bytes sent to the * remote host, or FALSE if an error occurred. */ -function socket_sendto (Socket $socket, string $data, int $length, int $flags, string $address, ?int $port = 0): int|false {} +function socket_sendto(Socket $socket, string $data, int $length, int $flags, string $address, ?int $port = 0): int|false {} /** * Gets socket options for the socket @@ -1211,7 +1211,7 @@ function socket_sendto (Socket $socket, string $data, int $length, int $flags, s * * @return array|int|false the value of the given option, or FALSE on errors. */ -function socket_get_option (Socket $socket, int $level, int $option): array|int|false {} +function socket_get_option(Socket $socket, int $level, int $option): array|int|false {} /** * Sets socket options for the socket @@ -1238,7 +1238,7 @@ function socket_get_option (Socket $socket, int $level, int $option): array|int| *

    * @return bool TRUE on success or FALSE on failure. */ -function socket_set_option (Socket $socket, int $level, int $option, $value): bool {} +function socket_set_option(Socket $socket, int $level, int $option, $value): bool {} /** * Shuts down a socket for receiving, sending, or both @@ -1272,7 +1272,7 @@ function socket_set_option (Socket $socket, int $level, int $option, $value): bo *

    * @return bool TRUE on success or FALSE on failure. */ -function socket_shutdown (Socket $socket, int $mode = 2): bool {} +function socket_shutdown(Socket $socket, int $mode = 2): bool {} /** * Returns the last error on the socket @@ -1282,7 +1282,7 @@ function socket_shutdown (Socket $socket, int $mode = 2): bool {} *

    * @return int This function returns a socket error code. */ -function socket_last_error (?Socket $socket = null): int {} +function socket_last_error(?Socket $socket = null): int {} /** * Clears the error on the socket or the last error code @@ -1292,7 +1292,7 @@ function socket_last_error (?Socket $socket = null): int {} *

    * @return void No value is returned. */ -function socket_clear_error (?Socket $socket = null): void {} +function socket_clear_error(?Socket $socket = null): void {} /** * Import a stream @@ -1303,7 +1303,7 @@ function socket_clear_error (?Socket $socket = null): void {} * @return resource|Socket|false|null FALSE or NULL on failure. * @since 5.4 */ -function socket_import_stream ($stream): Socket|false {} +function socket_import_stream($stream): Socket|false {} /** * Calculate message buffer size @@ -1314,7 +1314,7 @@ function socket_import_stream ($stream): Socket|false {} * @return int|null * @since 5.5 */ -function socket_cmsg_space ($level, $type, $n = 0): ?int {} +function socket_cmsg_space($level, $type, $n = 0): ?int {} /** * Alias of {@see socket_get_option} @@ -1322,7 +1322,7 @@ function socket_cmsg_space ($level, $type, $n = 0): ?int {} * @param int $level * @param int $option */ -function socket_getopt (Socket $socket, int $level, int $option): array|int|false {} +function socket_getopt(Socket $socket, int $level, int $option): array|int|false {} /** * Alias of {@see socket_set_option} @@ -1332,7 +1332,7 @@ function socket_getopt (Socket $socket, int $level, int $option): array|int|fals * @param $value * @return bool */ -function socket_setopt (Socket $socket, int $level, int $option, $value): bool {} +function socket_setopt(Socket $socket, int $level, int $option, $value): bool {} /** * Exports the WSAPROTOCOL_INFO Structure @@ -1371,47 +1371,46 @@ function socket_wsaprotocol_info_import($info_id) {} */ function socket_wsaprotocol_info_release($info_id) {} - -define ('AF_UNIX', 1); -define ('AF_INET', 2); +define('AF_UNIX', 1); +define('AF_INET', 2); /** * Only available if compiled with IPv6 support. * @link https://php.net/manual/en/sockets.constants.php */ -define ('AF_INET6', 10); -define ('SOCK_STREAM', 1); -define ('SOCK_DGRAM', 2); -define ('SOCK_RAW', 3); -define ('SOCK_SEQPACKET', 5); -define ('SOCK_RDM', 4); -define ('MSG_OOB', 1); -define ('MSG_WAITALL', 256); -define ('MSG_CTRUNC', 8); -define ('MSG_TRUNC', 32); -define ('MSG_PEEK', 2); -define ('MSG_DONTROUTE', 4); +define('AF_INET6', 10); +define('SOCK_STREAM', 1); +define('SOCK_DGRAM', 2); +define('SOCK_RAW', 3); +define('SOCK_SEQPACKET', 5); +define('SOCK_RDM', 4); +define('MSG_OOB', 1); +define('MSG_WAITALL', 256); +define('MSG_CTRUNC', 8); +define('MSG_TRUNC', 32); +define('MSG_PEEK', 2); +define('MSG_DONTROUTE', 4); /** * Not available on Windows platforms. * @link https://php.net/manual/en/sockets.constants.php */ -define ('MSG_EOR', 128); +define('MSG_EOR', 128); /** * Not available on Windows platforms. * @link https://php.net/manual/en/sockets.constants.php */ -define ('MSG_EOF', 512); -define ('MSG_CONFIRM', 2048); -define ('MSG_ERRQUEUE', 8192); -define ('MSG_NOSIGNAL', 16384); -define ('MSG_DONTWAIT', 64); -define ('MSG_MORE', 32768); -define ('MSG_WAITFORONE', 65536); -define ('MSG_CMSG_CLOEXEC', 1073741824); -define ('SO_DEBUG', 1); -define ('SO_REUSEADDR', 2); +define('MSG_EOF', 512); +define('MSG_CONFIRM', 2048); +define('MSG_ERRQUEUE', 8192); +define('MSG_NOSIGNAL', 16384); +define('MSG_DONTWAIT', 64); +define('MSG_MORE', 32768); +define('MSG_WAITFORONE', 65536); +define('MSG_CMSG_CLOEXEC', 1073741824); +define('SO_DEBUG', 1); +define('SO_REUSEADDR', 2); /** * This constant is only available in PHP 5.4.10 or later on platforms that @@ -1419,32 +1418,32 @@ function socket_wsaprotocol_info_release($info_id) {} * includes Mac OS X and FreeBSD, but does not include Linux or Windows. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SO_REUSEPORT', 15); -define ('SO_KEEPALIVE', 9); -define ('SO_DONTROUTE', 5); -define ('SO_LINGER', 13); -define ('SO_BROADCAST', 6); -define ('SO_OOBINLINE', 10); -define ('SO_SNDBUF', 7); -define ('SO_RCVBUF', 8); -define ('SO_SNDLOWAT', 19); -define ('SO_RCVLOWAT', 18); -define ('SO_SNDTIMEO', 21); -define ('SO_RCVTIMEO', 20); -define ('SO_TYPE', 3); -define ('SO_ERROR', 4); -define ('SO_BINDTODEVICE', 25); -define ('SOL_SOCKET', 1); -define ('SOMAXCONN', 128); +define('SO_REUSEPORT', 15); +define('SO_KEEPALIVE', 9); +define('SO_DONTROUTE', 5); +define('SO_LINGER', 13); +define('SO_BROADCAST', 6); +define('SO_OOBINLINE', 10); +define('SO_SNDBUF', 7); +define('SO_RCVBUF', 8); +define('SO_SNDLOWAT', 19); +define('SO_RCVLOWAT', 18); +define('SO_SNDTIMEO', 21); +define('SO_RCVTIMEO', 20); +define('SO_TYPE', 3); +define('SO_ERROR', 4); +define('SO_BINDTODEVICE', 25); +define('SOL_SOCKET', 1); +define('SOMAXCONN', 128); /** * Used to disable Nagle TCP algorithm. * Added in PHP 5.2.7. * @link https://php.net/manual/en/sockets.constants.php */ -define ('TCP_NODELAY', 1); -define ('PHP_NORMAL_READ', 1); -define ('PHP_BINARY_READ', 2); +define('TCP_NODELAY', 1); +define('PHP_NORMAL_READ', 1); +define('PHP_BINARY_READ', 2); /** * Joins a multicast group. * @since 5.4 @@ -1528,656 +1527,658 @@ function socket_wsaprotocol_info_release($info_id) {} * @link https://php.net/manual/en/function.socket-get-option.php */ define('IPV6_MULTICAST_LOOP', 19); -define ('IPV6_V6ONLY', 26); +define('IPV6_V6ONLY', 26); /** * Operation not permitted. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EPERM', 1); +define('SOCKET_EPERM', 1); /** * No such file or directory. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOENT', 2); +define('SOCKET_ENOENT', 2); /** * Interrupted system call. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EINTR', 4); +define('SOCKET_EINTR', 4); /** * I/O error. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EIO', 5); +define('SOCKET_EIO', 5); /** * No such device or address. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENXIO', 6); +define('SOCKET_ENXIO', 6); /** * Arg list too long. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_E2BIG', 7); +define('SOCKET_E2BIG', 7); /** * Bad file number. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EBADF', 9); +define('SOCKET_EBADF', 9); /** * Try again. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EAGAIN', 11); +define('SOCKET_EAGAIN', 11); /** * Out of memory. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOMEM', 12); +define('SOCKET_ENOMEM', 12); /** * Permission denied. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EACCES', 13); +define('SOCKET_EACCES', 13); /** * Bad address. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EFAULT', 14); +define('SOCKET_EFAULT', 14); /** * Block device required. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOTBLK', 15); +define('SOCKET_ENOTBLK', 15); /** * Device or resource busy. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EBUSY', 16); +define('SOCKET_EBUSY', 16); /** * File exists. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EEXIST', 17); +define('SOCKET_EEXIST', 17); /** * Cross-device link. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EXDEV', 18); +define('SOCKET_EXDEV', 18); /** * No such device. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENODEV', 19); +define('SOCKET_ENODEV', 19); /** * Not a directory. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOTDIR', 20); +define('SOCKET_ENOTDIR', 20); /** * Is a directory. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EISDIR', 21); +define('SOCKET_EISDIR', 21); /** * Invalid argument. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EINVAL', 22); +define('SOCKET_EINVAL', 22); /** * File table overflow. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENFILE', 23); +define('SOCKET_ENFILE', 23); /** * Too many open files. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EMFILE', 24); +define('SOCKET_EMFILE', 24); /** * Not a typewriter. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOTTY', 25); +define('SOCKET_ENOTTY', 25); /** * No space left on device. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOSPC', 28); +define('SOCKET_ENOSPC', 28); /** * Illegal seek. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ESPIPE', 29); +define('SOCKET_ESPIPE', 29); /** * Read-only file system. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EROFS', 30); +define('SOCKET_EROFS', 30); /** * Too many links. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EMLINK', 31); +define('SOCKET_EMLINK', 31); /** * Broken pipe. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EPIPE', 32); +define('SOCKET_EPIPE', 32); /** * File name too long. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENAMETOOLONG', 36); +define('SOCKET_ENAMETOOLONG', 36); /** * No record locks available. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOLCK', 37); +define('SOCKET_ENOLCK', 37); /** * Function not implemented. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOSYS', 38); +define('SOCKET_ENOSYS', 38); /** * Directory not empty. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOTEMPTY', 39); +define('SOCKET_ENOTEMPTY', 39); /** * Too many symbolic links encountered. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ELOOP', 40); +define('SOCKET_ELOOP', 40); /** * Operation would block. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EWOULDBLOCK', 11); +define('SOCKET_EWOULDBLOCK', 11); /** * No message of desired type. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOMSG', 42); +define('SOCKET_ENOMSG', 42); /** * Identifier removed. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EIDRM', 43); +define('SOCKET_EIDRM', 43); /** * Channel number out of range. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ECHRNG', 44); +define('SOCKET_ECHRNG', 44); /** * Level 2 not synchronized. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EL2NSYNC', 45); +define('SOCKET_EL2NSYNC', 45); /** * Level 3 halted. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EL3HLT', 46); +define('SOCKET_EL3HLT', 46); /** * Level 3 reset. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EL3RST', 47); +define('SOCKET_EL3RST', 47); /** * Link number out of range. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ELNRNG', 48); +define('SOCKET_ELNRNG', 48); /** * Protocol driver not attached. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EUNATCH', 49); +define('SOCKET_EUNATCH', 49); /** * No CSI structure available. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOCSI', 50); +define('SOCKET_ENOCSI', 50); /** * Level 2 halted. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EL2HLT', 51); +define('SOCKET_EL2HLT', 51); /** * Invalid exchange. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EBADE', 52); +define('SOCKET_EBADE', 52); /** * Invalid request descriptor. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EBADR', 53); +define('SOCKET_EBADR', 53); /** * Exchange full. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EXFULL', 54); +define('SOCKET_EXFULL', 54); /** * No anode. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOANO', 55); +define('SOCKET_ENOANO', 55); /** * Invalid request code. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EBADRQC', 56); +define('SOCKET_EBADRQC', 56); /** * Invalid slot. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EBADSLT', 57); +define('SOCKET_EBADSLT', 57); /** * Device not a stream. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOSTR', 60); +define('SOCKET_ENOSTR', 60); /** * No data available. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENODATA', 61); +define('SOCKET_ENODATA', 61); /** * Timer expired. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ETIME', 62); +define('SOCKET_ETIME', 62); /** * Out of streams resources. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOSR', 63); +define('SOCKET_ENOSR', 63); /** * Machine is not on the network. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENONET', 64); +define('SOCKET_ENONET', 64); /** * Object is remote. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EREMOTE', 66); +define('SOCKET_EREMOTE', 66); /** * Link has been severed. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOLINK', 67); +define('SOCKET_ENOLINK', 67); /** * Advertise error. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EADV', 68); +define('SOCKET_EADV', 68); /** * Srmount error. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ESRMNT', 69); +define('SOCKET_ESRMNT', 69); /** * Communication error on send. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ECOMM', 70); +define('SOCKET_ECOMM', 70); /** * Protocol error. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EPROTO', 71); +define('SOCKET_EPROTO', 71); /** * Multihop attempted. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EMULTIHOP', 72); +define('SOCKET_EMULTIHOP', 72); /** * Not a data message. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EBADMSG', 74); +define('SOCKET_EBADMSG', 74); /** * Name not unique on network. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOTUNIQ', 76); +define('SOCKET_ENOTUNIQ', 76); /** * File descriptor in bad state. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EBADFD', 77); +define('SOCKET_EBADFD', 77); /** * Remote address changed. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EREMCHG', 78); +define('SOCKET_EREMCHG', 78); /** * Interrupted system call should be restarted. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ERESTART', 85); +define('SOCKET_ERESTART', 85); /** * Streams pipe error. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ESTRPIPE', 86); +define('SOCKET_ESTRPIPE', 86); /** * Too many users. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EUSERS', 87); +define('SOCKET_EUSERS', 87); /** * Socket operation on non-socket. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOTSOCK', 88); +define('SOCKET_ENOTSOCK', 88); /** * Destination address required. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EDESTADDRREQ', 89); +define('SOCKET_EDESTADDRREQ', 89); /** * Message too long. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EMSGSIZE', 90); +define('SOCKET_EMSGSIZE', 90); /** * Protocol wrong type for socket. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EPROTOTYPE', 91); -define ('SOCKET_ENOPROTOOPT', 92); +define('SOCKET_EPROTOTYPE', 91); +define('SOCKET_ENOPROTOOPT', 92); /** * Protocol not supported. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EPROTONOSUPPORT', 93); +define('SOCKET_EPROTONOSUPPORT', 93); /** * Socket type not supported. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ESOCKTNOSUPPORT', 94); +define('SOCKET_ESOCKTNOSUPPORT', 94); /** * Operation not supported on transport endpoint. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EOPNOTSUPP', 95); +define('SOCKET_EOPNOTSUPP', 95); /** * Protocol family not supported. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EPFNOSUPPORT', 96); +define('SOCKET_EPFNOSUPPORT', 96); /** * Address family not supported by protocol. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EAFNOSUPPORT', 97); -define ('SOCKET_EADDRINUSE', 98); +define('SOCKET_EAFNOSUPPORT', 97); +define('SOCKET_EADDRINUSE', 98); /** * Cannot assign requested address. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EADDRNOTAVAIL', 99); +define('SOCKET_EADDRNOTAVAIL', 99); /** * Network is down. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENETDOWN', 100); +define('SOCKET_ENETDOWN', 100); /** * Network is unreachable. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENETUNREACH', 101); +define('SOCKET_ENETUNREACH', 101); /** * Network dropped connection because of reset. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENETRESET', 102); +define('SOCKET_ENETRESET', 102); /** * Software caused connection abort. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ECONNABORTED', 103); +define('SOCKET_ECONNABORTED', 103); /** * Connection reset by peer. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ECONNRESET', 104); +define('SOCKET_ECONNRESET', 104); /** * No buffer space available. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOBUFS', 105); +define('SOCKET_ENOBUFS', 105); /** * Transport endpoint is already connected. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EISCONN', 106); +define('SOCKET_EISCONN', 106); /** * Transport endpoint is not connected. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOTCONN', 107); +define('SOCKET_ENOTCONN', 107); /** * Cannot send after transport endpoint shutdown. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ESHUTDOWN', 108); +define('SOCKET_ESHUTDOWN', 108); /** * Too many references: cannot splice. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ETOOMANYREFS', 109); +define('SOCKET_ETOOMANYREFS', 109); /** * Connection timed out. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ETIMEDOUT', 110); +define('SOCKET_ETIMEDOUT', 110); /** * Connection refused. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ECONNREFUSED', 111); +define('SOCKET_ECONNREFUSED', 111); /** * Host is down. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EHOSTDOWN', 112); +define('SOCKET_EHOSTDOWN', 112); /** * No route to host. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EHOSTUNREACH', 113); +define('SOCKET_EHOSTUNREACH', 113); /** * Operation already in progress. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EALREADY', 114); +define('SOCKET_EALREADY', 114); /** * Operation now in progress. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EINPROGRESS', 115); +define('SOCKET_EINPROGRESS', 115); /** * Is a named type file. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EISNAM', 120); +define('SOCKET_EISNAM', 120); /** * Remote I/O error. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EREMOTEIO', 121); +define('SOCKET_EREMOTEIO', 121); /** * Quota exceeded. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EDQUOT', 122); +define('SOCKET_EDQUOT', 122); /** * No medium found. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_ENOMEDIUM', 123); +define('SOCKET_ENOMEDIUM', 123); /** * Wrong medium type. * @link https://php.net/manual/en/sockets.constants.php */ -define ('SOCKET_EMEDIUMTYPE', 124); -define ('IPPROTO_IP', 0); -define ('IPPROTO_IPV6', 41); -define ('SOL_TCP', 6); -define ('SOL_UDP', 17); -define ('IPV6_UNICAST_HOPS', 16); -define ('IPV6_RECVPKTINFO', 49); -define ('IPV6_PKTINFO', 50); -define ('IPV6_RECVHOPLIMIT', 51); -define ('IPV6_HOPLIMIT', 52); -define ('IPV6_RECVTCLASS', 66); -define ('IPV6_TCLASS', 67); -define ('SCM_RIGHTS', 1); -define ('SCM_CREDENTIALS', 2); -define ('SO_PASSCRED', 16); - -define ('SOCKET_EPROCLIM', 10067); -define ('SOCKET_ESTALE', 10070); -define ('SOCKET_EDISCON', 10101); -define ('SOCKET_SYSNOTREADY', 10091); -define ('SOCKET_VERNOTSUPPORTED', 10092); -define ('SOCKET_NOTINITIALISED', 10093); -define ('SOCKET_HOST_NOT_FOUND', 11001); -define ('SOCKET_TRY_AGAIN', 11002); -define ('SOCKET_NO_RECOVERY', 11003); -define ('SOCKET_NO_DATA', 11004); -define ('SOCKET_NO_ADDRESS', 11004); - -define ('AI_PASSIVE', 1); -define ('AI_CANONNAME', 2); -define ('AI_NUMERICHOST', 4); -define ('AI_ADDRCONFIG', 32); -define ('AI_NUMERICSERV', 1024); -define ('AI_V4MAPPED', 8); -define ('AI_ALL', 16); +define('SOCKET_EMEDIUMTYPE', 124); +define('IPPROTO_IP', 0); +define('IPPROTO_IPV6', 41); +define('SOL_TCP', 6); +define('SOL_UDP', 17); +define('IPV6_UNICAST_HOPS', 16); +define('IPV6_RECVPKTINFO', 49); +define('IPV6_PKTINFO', 50); +define('IPV6_RECVHOPLIMIT', 51); +define('IPV6_HOPLIMIT', 52); +define('IPV6_RECVTCLASS', 66); +define('IPV6_TCLASS', 67); +define('SCM_RIGHTS', 1); +define('SCM_CREDENTIALS', 2); +define('SO_PASSCRED', 16); + +define('SOCKET_EPROCLIM', 10067); +define('SOCKET_ESTALE', 10070); +define('SOCKET_EDISCON', 10101); +define('SOCKET_SYSNOTREADY', 10091); +define('SOCKET_VERNOTSUPPORTED', 10092); +define('SOCKET_NOTINITIALISED', 10093); +define('SOCKET_HOST_NOT_FOUND', 11001); +define('SOCKET_TRY_AGAIN', 11002); +define('SOCKET_NO_RECOVERY', 11003); +define('SOCKET_NO_DATA', 11004); +define('SOCKET_NO_ADDRESS', 11004); + +define('AI_PASSIVE', 1); +define('AI_CANONNAME', 2); +define('AI_NUMERICHOST', 4); +define('AI_ADDRCONFIG', 32); +define('AI_NUMERICSERV', 1024); +define('AI_V4MAPPED', 8); +define('AI_ALL', 16); /** * @since 8.0 */ -final class Socket { +final class Socket +{ /** * Cannot directly construct Socket, use socket_create() instead * @see socket_create() */ - private function __construct(){} + private function __construct() {} } /** * @since 8.0 */ -final class AddressInfo { +final class AddressInfo +{ /** * Cannot directly construct AddressInfo, use socket_addrinfo_lookup() instead * @see socket_addrinfo_lookup() */ - private function __construct(){} + private function __construct() {} } diff --git a/sodium/sodium.php b/sodium/sodium.php index 215545245..e73cb52a5 100644 --- a/sodium/sodium.php +++ b/sodium/sodium.php @@ -73,7 +73,7 @@ const SODIUM_CRYPTO_PWHASH_MEMLIMIT_MODERATE = 268435456; const SODIUM_CRYPTO_PWHASH_OPSLIMIT_SENSITIVE = 4; const SODIUM_CRYPTO_PWHASH_MEMLIMIT_SENSITIVE = 1073741824; -const SODIUM_LIBRARY_VERSION="1.0.18"; +const SODIUM_LIBRARY_VERSION = "1.0.18"; const SODIUM_LIBRARY_MAJOR_VERSION = 10; const SODIUM_LIBRARY_MINOR_VERSION = 3; const SODIUM_CRYPTO_KDF_BYTES_MIN = 16; @@ -216,7 +216,7 @@ function sodium_crypto_auth_keygen(): string {} * @throws SodiumException * @since 7.2 */ -function sodium_crypto_kx_keypair (): string {} +function sodium_crypto_kx_keypair(): string {} /** * @link https://php.net/manual/en/function.sodium-crypto-kx-publickey.php @@ -226,7 +226,7 @@ function sodium_crypto_kx_keypair (): string {} * @throws SodiumException * @since 7.2 */ -function sodium_crypto_kx_publickey (string $key_pair): string {} +function sodium_crypto_kx_publickey(string $key_pair): string {} /** * @link https://php.net/manual/en/function.sodium-crypto-kx-secretkey.php @@ -235,7 +235,7 @@ function sodium_crypto_kx_publickey (string $key_pair): string {} * @throws SodiumException * @since 7.2 */ -function sodium_crypto_kx_secretkey (string $key_pair): string {} +function sodium_crypto_kx_secretkey(string $key_pair): string {} /** * @link https://php.net/manual/en/function.sodium-crypto-kx-seed-keypair.php @@ -245,7 +245,7 @@ function sodium_crypto_kx_secretkey (string $key_pair): string {} * @throws SodiumException * @since 7.2 */ -function sodium_crypto_kx_seed_keypair (string $seed): string {} +function sodium_crypto_kx_seed_keypair(string $seed): string {} /** * @link https://php.net/manual/en/function.sodium-crypto-kx-server-session-keys.php @@ -256,7 +256,7 @@ function sodium_crypto_kx_seed_keypair (string $seed): string {} * @throws SodiumException * @since 7.2 */ -function sodium_crypto_kx_server_session_keys (string $server_key_pair , string $client_key): array {} +function sodium_crypto_kx_server_session_keys(string $server_key_pair, string $client_key): array {} /** * Get random bytes for key @@ -266,7 +266,6 @@ function sodium_crypto_kx_server_session_keys (string $server_key_pair , string */ function sodium_crypto_generichash_keygen(): string {} - /** * @link https://php.net/manual/en/function.sodium-crypto-kx-client-session-keys.php * @param string $client_key_pair @@ -275,7 +274,7 @@ function sodium_crypto_generichash_keygen(): string {} * @throws SodiumException * @since 7.2 */ -function sodium_crypto_kx_client_session_keys (string $client_key_pair, string $server_key): array {} +function sodium_crypto_kx_client_session_keys(string $client_key_pair, string $server_key): array {} /** * @link https://www.php.net/manual/en/function.sodium-crypto-kdf-derive-from-key.php @@ -287,7 +286,7 @@ function sodium_crypto_kx_client_session_keys (string $client_key_pair, string $ * @throws SodiumException * @since 7.2 */ -function sodium_crypto_kdf_derive_from_key (int $subkey_length, int $subkey_id, string $context, string $key): string {} +function sodium_crypto_kdf_derive_from_key(int $subkey_length, int $subkey_id, string $context, string $key): string {} /** * Get random bytes for key @@ -322,7 +321,7 @@ function sodium_crypto_stream_keygen(): string {} * @throws SodiumException * @since 7.2 */ -function sodium_pad (string $string, int $length): string {} +function sodium_pad(string $string, int $length): string {} /** * Remove padding data @@ -333,9 +332,7 @@ function sodium_pad (string $string, int $length): string {} * @throws SodiumException * @since 7.2 */ -function sodium_unpad (string $string, int $block_size): string {} - - +function sodium_unpad(string $string, int $block_size): string {} /** * Secret-key message verification @@ -714,7 +711,6 @@ function sodium_crypto_sign_ed25519_sk_to_curve25519(string $secret_key): string */ function sodium_crypto_sign_keypair(): string {} - /** * Create an Ed25519 keypair from an Ed25519 secret key + Ed25519 public key * @link https://www.php.net/manual/en/function.sodium-crypto-sign-keypair-from-secretkey-and-publickey.php @@ -1030,7 +1026,7 @@ function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt(string $message, stri * @since 7.2 * @see https://www.php.net/manual/en/function.sodium-crypto-aead-xchacha20poly1305-ietf-keygen.php */ -function sodium_crypto_aead_xchacha20poly1305_ietf_keygen():string {} +function sodium_crypto_aead_xchacha20poly1305_ietf_keygen(): string {} /** * @param string $password @@ -1096,7 +1092,7 @@ function sodium_crypto_secretstream_xchacha20poly1305_pull(string &$state, strin * @since 7.2 * @see https://www.php.net/manual/en/function.sodium-crypto-secretstream-xchacha20poly1305-rekey.php */ -function sodium_crypto_secretstream_xchacha20poly1305_rekey(string &$state): void{} +function sodium_crypto_secretstream_xchacha20poly1305_rekey(string &$state): void {} /** * @param string $string @@ -1119,6 +1115,4 @@ function sodium_bin2base64(string $string, int $id): string {} */ function sodium_base642bin(string $string, int $id, string $ignore = ''): string {} -class SodiumException extends Exception { - -} +class SodiumException extends Exception {} diff --git a/solr/Documents/SolrDocument.php b/solr/Documents/SolrDocument.php index 9e6cccfd2..96c9a1ee2 100644 --- a/solr/Documents/SolrDocument.php +++ b/solr/Documents/SolrDocument.php @@ -12,395 +12,394 @@ * This class represents a Solr document retrieved from a query response. * @link https://php.net/manual/en/class.solrinputdocument.php */ -final class SolrDocument implements ArrayAccess, Iterator, Serializable { - - /** @var int Sorts the fields in ascending order. */ - const SORT_DEFAULT = 1 ; - - /** @var int Sorts the fields in ascending order. */ - const SORT_ASC = 1 ; - - /** @var int Sorts the fields in descending order. */ - const SORT_DESC = 2 ; - - /** @var int Sorts the fields by name */ - const SORT_FIELD_NAME = 1 ; - - /** @var int Sorts the fields by number of values. */ - const SORT_FIELD_VALUE_COUNT = 2 ; - - /** @var int Sorts the fields by boost value. */ - const SORT_FIELD_BOOST_VALUE = 4 ; - - /** - * (PECL solr >= 0.9.2)
    - * Adds a field to the document - * @link https://php.net/manual/en/solrdocument.addfield.php - * @param string $fieldName

    - * The name of the field - *

    - * @param string $fieldValue

    - * The value for the field. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function addField($fieldName, $fieldValue) {} - - /** - * (PECL solr >= 0.9.2)
    - * Drops all the fields in the document - * @link https://php.net/manual/en/solrdocument.clear.php - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function clear() {} - - /** - * (PECL solr >= 0.9.2)
    - * Creates a copy of a SolrDocument object - * @link https://php.net/manual/en/solrdocument.clone.php - */ - public function __clone() {} - - /** - * (PECL solr >= 0.9.2)
    - * SolrDocument constructor. - * @link https://php.net/manual/en/solrdocument.construct.php - */ - public function __construct () {} - - /** - * (PECL solr >= 0.9.2)
    - * Retrieves the current field - * @link https://php.net/manual/en/solrdocument.current.php - * @return SolrDocumentField

    - * Returns the field - *

    - */ - public function current() {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes a field from the document - * @link https://php.net/manual/en/solrdocument.deletefield.php - * @param string $fieldName

    - * The name of the field. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function deleteField($fieldName) {} - - /** - * (PECL solr >= 0.9.2)
    - * Destructor - * @link https://php.net/manual/en/solrdocument.destruct.php - */ - public function __destruct() {} - - /** - * (PECL solr >= 0.9.2)
    - * Checks if a field exists in the document - * @link https://php.net/manual/en/solrdocument.fieldexists.php - * @param string $fieldName

    - * Name of the field. - *

    - * @return bool

    - * Returns TRUE if the field is present and FALSE if it does not. - *

    - */ - public function fieldExists($fieldName) {} - - /** - * (PECL solr >= 0.9.2)
    - * Access the field as a property - * @link https://php.net/manual/en/solrdocument.get.php - * @param string $fieldName

    - * The name of the field. - *

    - * @return SolrDocumentField

    - * Returns a SolrDocumentField instance. - *

    - */ - public function __get($fieldName) {} - - /** - * (PECL solr >= 2.3.0)
    - * Returns an array of child documents (SolrInputDocument) - * @link https://php.net/manual/en/solrdocument.getchilddocuments.php - * @return SolrInputDocument[] - */ - public function getChildDocuments() {} - - /** - * (PECL solr >= 2.3.0)
    - * Returns the number of child documents - * @link https://php.net/manual/en/solrdocument.getchilddocumentscount.php - * @return int - */ - public function getChildDocumentsCount() {} - - /** - * (PECL solr >= 0.9.2)
    - * Retrieves a field by name - * @link https://php.net/manual/en/solrdocument.getfield.php - * @param string $fieldName

    - * The name of the field. - *

    - * @return SolrDocumentField|false Returns a SolrDocumentField object on success and FALSE on failure - */ - public function getField($fieldName) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the number of fields in this document - * @link https://php.net/manual/en/solrdocument.getfieldcount.php - * @return int|false

    - * Returns an integer on success and FALSE on failure. - *

    - */ - public function getFieldCount() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns an array containing all the fields in the document - * @link https://php.net/manual/en/solrdocument.getfieldnames.php - * @return array|false

    - * Returns an array on success and FALSE on failure. - *

    - */ - public function getFieldNames() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns a SolrInputDocument equivalent of the object - * @link https://php.net/manual/en/solrdocument.getinputdocument.php - * @return SolrInputDocument

    - * Returns a SolrInputDocument on success and NULL on failure. - *

    - */ - public function getInputDocument() {} - - /** - * (PECL solr >= 2.3.0)
    - * Checks whether the document has any child documents - * @link https://php.net/manual/en/solrdocument.haschilddocuments.php - * @return bool

    - * Returns TRUE if the document has any child documents - *

    - */ - public function hasChildDocuments() {} - - /** - * (PECL solr >= 0.9.2)
    - * Checks if a field exists - * @link https://php.net/manual/en/solrdocument.isset.php - * @param string $fieldName

    - * Name of the field. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function __isset($fieldName) {} - - /** - * (PECL solr >= 0.9.2)
    - * Retrieves the current key - * @link https://php.net/manual/en/solrdocument.key.php - * @return string

    - * Returns the current key. - *

    - */ - public function key() {} - - /** - * (PECL solr >= 0.9.2)
    - * Merges one input document into another - * @link https://php.net/manual/en/solrdocument.merge.php - * @param SolrInputDocument $sourceDoc

    - * The source document. - *

    - * @param bool $overwrite [optional]

    - * If this is TRUE then fields with the same name in the destination document will be overwritten. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function merge(SolrInputDocument $sourceDoc, $overwrite = true) {} - - /** - * (PECL solr >= 0.9.2)
    - * Moves the internal pointer to the next field - * @link https://php.net/manual/en/solrdocument.next.php - */ - public function next() {} - - /** - * (PECL solr >= 0.9.2)
    - * Checks if a particular field exists - * @link https://php.net/manual/en/solrdocument.offsetexists.php - * @param string $fieldName

    - * The name of the field. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function offsetExists($fieldName) {} - - /** - * (PECL solr >= 0.9.2)
    - * Retrieves a field - * @link https://php.net/manual/en/solrdocument.offsetget.php - * @param string $fieldName

    - * The name of the field. - *

    - * @return SolrDocumentField

    - * Returns a SolrDocumentField object. - *

    - */ - public function offsetGet($fieldName) {} - - /** - * (PECL solr >= 0.9.2)
    - * Adds a field to the document - * @link https://php.net/manual/en/solrdocument.offsetset.php - * @param string $fieldName

    - * The name of the field. - *

    - * @param string $fieldValue

    - * The value for this field. - *

    +final class SolrDocument implements ArrayAccess, Iterator, Serializable +{ + /** @var int Sorts the fields in ascending order. */ + public const SORT_DEFAULT = 1; + + /** @var int Sorts the fields in ascending order. */ + public const SORT_ASC = 1; + + /** @var int Sorts the fields in descending order. */ + public const SORT_DESC = 2; + + /** @var int Sorts the fields by name */ + public const SORT_FIELD_NAME = 1; + + /** @var int Sorts the fields by number of values. */ + public const SORT_FIELD_VALUE_COUNT = 2; + + /** @var int Sorts the fields by boost value. */ + public const SORT_FIELD_BOOST_VALUE = 4; + + /** + * (PECL solr >= 0.9.2)
    + * Adds a field to the document + * @link https://php.net/manual/en/solrdocument.addfield.php + * @param string $fieldName

    + * The name of the field + *

    + * @param string $fieldValue

    + * The value for the field. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function addField($fieldName, $fieldValue) {} + + /** + * (PECL solr >= 0.9.2)
    + * Drops all the fields in the document + * @link https://php.net/manual/en/solrdocument.clear.php + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function clear() {} + + /** + * (PECL solr >= 0.9.2)
    + * Creates a copy of a SolrDocument object + * @link https://php.net/manual/en/solrdocument.clone.php + */ + public function __clone() {} + + /** + * (PECL solr >= 0.9.2)
    + * SolrDocument constructor. + * @link https://php.net/manual/en/solrdocument.construct.php + */ + public function __construct() {} + + /** + * (PECL solr >= 0.9.2)
    + * Retrieves the current field + * @link https://php.net/manual/en/solrdocument.current.php + * @return SolrDocumentField

    + * Returns the field + *

    + */ + public function current() {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes a field from the document + * @link https://php.net/manual/en/solrdocument.deletefield.php + * @param string $fieldName

    + * The name of the field. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function deleteField($fieldName) {} + + /** + * (PECL solr >= 0.9.2)
    + * Destructor + * @link https://php.net/manual/en/solrdocument.destruct.php + */ + public function __destruct() {} + + /** + * (PECL solr >= 0.9.2)
    + * Checks if a field exists in the document + * @link https://php.net/manual/en/solrdocument.fieldexists.php + * @param string $fieldName

    + * Name of the field. + *

    + * @return bool

    + * Returns TRUE if the field is present and FALSE if it does not. + *

    + */ + public function fieldExists($fieldName) {} + + /** + * (PECL solr >= 0.9.2)
    + * Access the field as a property + * @link https://php.net/manual/en/solrdocument.get.php + * @param string $fieldName

    + * The name of the field. + *

    + * @return SolrDocumentField

    + * Returns a SolrDocumentField instance. + *

    + */ + public function __get($fieldName) {} + + /** + * (PECL solr >= 2.3.0)
    + * Returns an array of child documents (SolrInputDocument) + * @link https://php.net/manual/en/solrdocument.getchilddocuments.php + * @return SolrInputDocument[] + */ + public function getChildDocuments() {} + + /** + * (PECL solr >= 2.3.0)
    + * Returns the number of child documents + * @link https://php.net/manual/en/solrdocument.getchilddocumentscount.php + * @return int + */ + public function getChildDocumentsCount() {} + + /** + * (PECL solr >= 0.9.2)
    + * Retrieves a field by name + * @link https://php.net/manual/en/solrdocument.getfield.php + * @param string $fieldName

    + * The name of the field. + *

    + * @return SolrDocumentField|false Returns a SolrDocumentField object on success and FALSE on failure + */ + public function getField($fieldName) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the number of fields in this document + * @link https://php.net/manual/en/solrdocument.getfieldcount.php + * @return int|false

    + * Returns an integer on success and FALSE on failure. + *

    + */ + public function getFieldCount() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns an array containing all the fields in the document + * @link https://php.net/manual/en/solrdocument.getfieldnames.php + * @return array|false

    + * Returns an array on success and FALSE on failure. + *

    + */ + public function getFieldNames() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns a SolrInputDocument equivalent of the object + * @link https://php.net/manual/en/solrdocument.getinputdocument.php + * @return SolrInputDocument

    + * Returns a SolrInputDocument on success and NULL on failure. + *

    + */ + public function getInputDocument() {} + + /** + * (PECL solr >= 2.3.0)
    + * Checks whether the document has any child documents + * @link https://php.net/manual/en/solrdocument.haschilddocuments.php + * @return bool

    + * Returns TRUE if the document has any child documents + *

    + */ + public function hasChildDocuments() {} + + /** + * (PECL solr >= 0.9.2)
    + * Checks if a field exists + * @link https://php.net/manual/en/solrdocument.isset.php + * @param string $fieldName

    + * Name of the field. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function __isset($fieldName) {} + + /** + * (PECL solr >= 0.9.2)
    + * Retrieves the current key + * @link https://php.net/manual/en/solrdocument.key.php + * @return string

    + * Returns the current key. + *

    + */ + public function key() {} + + /** + * (PECL solr >= 0.9.2)
    + * Merges one input document into another + * @link https://php.net/manual/en/solrdocument.merge.php + * @param SolrInputDocument $sourceDoc

    + * The source document. + *

    + * @param bool $overwrite [optional]

    + * If this is TRUE then fields with the same name in the destination document will be overwritten. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function merge(SolrInputDocument $sourceDoc, $overwrite = true) {} + + /** + * (PECL solr >= 0.9.2)
    + * Moves the internal pointer to the next field + * @link https://php.net/manual/en/solrdocument.next.php + */ + public function next() {} + + /** + * (PECL solr >= 0.9.2)
    + * Checks if a particular field exists + * @link https://php.net/manual/en/solrdocument.offsetexists.php + * @param string $fieldName

    + * The name of the field. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function offsetExists($fieldName) {} + + /** + * (PECL solr >= 0.9.2)
    + * Retrieves a field + * @link https://php.net/manual/en/solrdocument.offsetget.php + * @param string $fieldName

    + * The name of the field. + *

    + * @return SolrDocumentField

    + * Returns a SolrDocumentField object. + *

    + */ + public function offsetGet($fieldName) {} + + /** + * (PECL solr >= 0.9.2)
    + * Adds a field to the document + * @link https://php.net/manual/en/solrdocument.offsetset.php + * @param string $fieldName

    + * The name of the field. + *

    + * @param string $fieldValue

    + * The value for this field. + *

    * @return bool - */ - public function offsetSet($fieldName , $fieldValue) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes a field - * @link https://php.net/manual/en/solrdocument.offsetunset.php - * @param string $fieldName

    - * The name of the field. - *

    - */ - public function offsetUnset($fieldName) {} - - /** - * (PECL solr >= 0.9.2)
    - * This is an alias of SolrDocument::clear - * @link https://php.net/manual/en/solrdocument.reset.php - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function reset() {} - - /** - * (PECL solr >= 0.9.2)
    - * Resets the internal pointer to the beginning - * @link https://php.net/manual/en/solrdocument.rewind.php - */ - public function rewind() {} - - /** - * (PECL solr >= 0.9.2)
    - * Used for custom serialization - * @link https://php.net/manual/en/solrdocument.serialize.php - * @return string

    - * Returns a string representing the serialized Solr document. - *

    - */ - public function serialize() {} - - /** - * (PECL solr >= 0.9.2)
    - * Adds another field to the document - * @link https://php.net/manual/en/solrdocument.set.php - * @param string $fieldName

    - * Name of the field. - *

    - * @param string $fieldValue

    - * Field value. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function __set($fieldName, $fieldValue) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sorts the fields within the document - * @link https://php.net/manual/en/solrdocument.sort.php - * @param int $sortOrderBy

    - * The sort criteria, must be one of : - *

      - *
    • SolrDocument::SORT_FIELD_NAME
    • - *
    • SolrDocument::SORT_FIELD_BOOST_VALUE
    • - *
    • SolrDocument::SORT_FIELD_VALUE_COUNT
    • - *
    - *

    - * @param int $sortDirection [optional]

    - * The sort direction, can be one of : - *

      - *
    • SolrDocument::SORT_DEFAULT
    • - *
    • SolrDocument::SORT_ASC
    • - *
    • SolrDocument::SORT_DESC
    • - *
    - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function sort($sortOrderBy, $sortDirection = SolrInputDocument::SORT_ASC) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns an array representation of the document - * @link https://secure.php.net/manual/en/solrdocument.toarray.php - * @return array

    - * Returns an array representation of the document. - *

    - */ - public function toArray() {} - - /** - * (PECL solr >= 0.9.2)
    - * Custom serialization of SolrDocument objects - * @link https://php.net/manual/en/solrdocument.unserialize.php - * @param string $serialized

    - * An XML representation of the document. - *

    - */ - public function unserialize($serialized) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes a field from the document - * @link https://php.net/manual/en/solrdocument.unset.php - * @param string $fieldName

    - * The name of the field. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function __unset($fieldName) {} - - /** - * (PECL solr >= 0.9.2)
    - * Checks if the current position internally is still valid - * @link https://php.net/manual/en/solrdocument.valid.php - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function valid() {} - + */ + public function offsetSet($fieldName, $fieldValue) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes a field + * @link https://php.net/manual/en/solrdocument.offsetunset.php + * @param string $fieldName

    + * The name of the field. + *

    + */ + public function offsetUnset($fieldName) {} + + /** + * (PECL solr >= 0.9.2)
    + * This is an alias of SolrDocument::clear + * @link https://php.net/manual/en/solrdocument.reset.php + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function reset() {} + + /** + * (PECL solr >= 0.9.2)
    + * Resets the internal pointer to the beginning + * @link https://php.net/manual/en/solrdocument.rewind.php + */ + public function rewind() {} + + /** + * (PECL solr >= 0.9.2)
    + * Used for custom serialization + * @link https://php.net/manual/en/solrdocument.serialize.php + * @return string

    + * Returns a string representing the serialized Solr document. + *

    + */ + public function serialize() {} + + /** + * (PECL solr >= 0.9.2)
    + * Adds another field to the document + * @link https://php.net/manual/en/solrdocument.set.php + * @param string $fieldName

    + * Name of the field. + *

    + * @param string $fieldValue

    + * Field value. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function __set($fieldName, $fieldValue) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sorts the fields within the document + * @link https://php.net/manual/en/solrdocument.sort.php + * @param int $sortOrderBy

    + * The sort criteria, must be one of : + *

      + *
    • SolrDocument::SORT_FIELD_NAME
    • + *
    • SolrDocument::SORT_FIELD_BOOST_VALUE
    • + *
    • SolrDocument::SORT_FIELD_VALUE_COUNT
    • + *
    + *

    + * @param int $sortDirection [optional]

    + * The sort direction, can be one of : + *

      + *
    • SolrDocument::SORT_DEFAULT
    • + *
    • SolrDocument::SORT_ASC
    • + *
    • SolrDocument::SORT_DESC
    • + *
    + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function sort($sortOrderBy, $sortDirection = SolrInputDocument::SORT_ASC) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns an array representation of the document + * @link https://secure.php.net/manual/en/solrdocument.toarray.php + * @return array

    + * Returns an array representation of the document. + *

    + */ + public function toArray() {} + + /** + * (PECL solr >= 0.9.2)
    + * Custom serialization of SolrDocument objects + * @link https://php.net/manual/en/solrdocument.unserialize.php + * @param string $serialized

    + * An XML representation of the document. + *

    + */ + public function unserialize($serialized) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes a field from the document + * @link https://php.net/manual/en/solrdocument.unset.php + * @param string $fieldName

    + * The name of the field. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function __unset($fieldName) {} + + /** + * (PECL solr >= 0.9.2)
    + * Checks if the current position internally is still valid + * @link https://php.net/manual/en/solrdocument.valid.php + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function valid() {} } diff --git a/solr/Documents/SolrDocumentField.php b/solr/Documents/SolrDocumentField.php index c12ce5e7d..79cfd146f 100644 --- a/solr/Documents/SolrDocumentField.php +++ b/solr/Documents/SolrDocumentField.php @@ -12,29 +12,28 @@ * This class represents a field in a Solr document. All its properties are read-only. * @link https://php.net/manual/en/class.solrdocumentfield.php */ -final class SolrDocumentField { +final class SolrDocumentField +{ + /** @var string [readonly] The name of the field. */ + public $name; - /** @var string [readonly] The name of the field. */ - public $name; + /** @var string [readonly] The boost value for the field */ + public $boost; - /** @var string [readonly] The boost value for the field */ - public $boost; + /** @var string [readonly] An array of values for this field */ + public $values; - /** @var string [readonly] An array of values for this field */ - public $values; - - /** - * (PECL solr >= 0.9.2)
    - * SolrDocument constructor. - * @link https://php.net/manual/en/solrdocumentfield.construct.php - */ - public function __construct () {} - - /** - * (PECL solr >= 0.9.2)
    - * Destructor - * @link https://php.net/manual/en/solrdocumentfield.destruct.php - */ - public function __destruct() {} + /** + * (PECL solr >= 0.9.2)
    + * SolrDocument constructor. + * @link https://php.net/manual/en/solrdocumentfield.construct.php + */ + public function __construct() {} + /** + * (PECL solr >= 0.9.2)
    + * Destructor + * @link https://php.net/manual/en/solrdocumentfield.destruct.php + */ + public function __destruct() {} } diff --git a/solr/Documents/SolrInputDocument.php b/solr/Documents/SolrInputDocument.php index b968ea426..3be945308 100644 --- a/solr/Documents/SolrInputDocument.php +++ b/solr/Documents/SolrInputDocument.php @@ -12,294 +12,293 @@ * This class represents a Solr document that is about to be submitted to the Solr index. * @link https://php.net/manual/en/class.solrinputdocument.php */ -final class SolrInputDocument { +final class SolrInputDocument +{ + /** @var int Sorts the fields in ascending order. */ + public const SORT_DEFAULT = 1; - /** @var int Sorts the fields in ascending order. */ - const SORT_DEFAULT = 1 ; + /** @var int Sorts the fields in ascending order. */ + public const SORT_ASC = 1; - /** @var int Sorts the fields in ascending order. */ - const SORT_ASC = 1 ; + /** @var int Sorts the fields in descending order. */ + public const SORT_DESC = 2; - /** @var int Sorts the fields in descending order. */ - const SORT_DESC = 2 ; + /** @var int Sorts the fields by name */ + public const SORT_FIELD_NAME = 1; - /** @var int Sorts the fields by name */ - const SORT_FIELD_NAME = 1 ; + /** @var int Sorts the fields by number of values. */ + public const SORT_FIELD_VALUE_COUNT = 2; - /** @var int Sorts the fields by number of values. */ - const SORT_FIELD_VALUE_COUNT = 2 ; + /** @var int Sorts the fields by boost value. */ + public const SORT_FIELD_BOOST_VALUE = 4; - /** @var int Sorts the fields by boost value. */ - const SORT_FIELD_BOOST_VALUE = 4 ; + /** + * (PECL solr >= 2.3.0)
    + * Adds a child document for block indexing + * @link https://php.net/manual/en/solrinputdocument.addchilddocument.php + * @param SolrInputDocument $child

    + * A SolrInputDocument object. + *

    + * @throws SolrIllegalArgumentException + * @throws SolrException + */ + public function addChildDocument(SolrInputDocument $child) {} - /** - * (PECL solr >= 2.3.0)
    - * Adds a child document for block indexing - * @link https://php.net/manual/en/solrinputdocument.addchilddocument.php - * @param SolrInputDocument $child

    - * A SolrInputDocument object. - *

    - * @throws SolrIllegalArgumentException - * @throws SolrException - */ - public function addChildDocument(SolrInputDocument $child) {} + /** + * (PECL solr >= 2.3.0)
    + * Adds an array of child documents + * @link https://php.net/manual/en/solrinputdocument.addchilddocuments.php + * @param array &$docs

    + * An array of SolrInputDocument objects. + *

    + * @throws SolrIllegalArgumentException + * @throws SolrException + */ + public function addChildDocuments(array &$docs) {} - /** - * (PECL solr >= 2.3.0)
    - * Adds an array of child documents - * @link https://php.net/manual/en/solrinputdocument.addchilddocuments.php - * @param array &$docs

    - * An array of SolrInputDocument objects. - *

    - * @throws SolrIllegalArgumentException - * @throws SolrException - */ - public function addChildDocuments(array &$docs) {} + /** + * (PECL solr >= 0.9.2)
    + * Adds a field to the document + * @link https://php.net/manual/en/solrinputdocument.addfield.php + * @param string $fieldName

    + * The name of the field + *

    + * @param string $fieldValue

    + * The value for the field. + *

    + * @param float $fieldBoostValue [optional]

    + * The index time boost for the field. Though this cannot be negative, you can still pass values less than 1.0 but + * they must be greater than zero. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function addField($fieldName, $fieldValue, $fieldBoostValue = 0.0) {} - /** - * (PECL solr >= 0.9.2)
    - * Adds a field to the document - * @link https://php.net/manual/en/solrinputdocument.addfield.php - * @param string $fieldName

    - * The name of the field - *

    - * @param string $fieldValue

    - * The value for the field. - *

    - * @param float $fieldBoostValue [optional]

    - * The index time boost for the field. Though this cannot be negative, you can still pass values less than 1.0 but - * they must be greater than zero. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function addField($fieldName, $fieldValue, $fieldBoostValue = 0.0) {} + /** + * (PECL solr >= 0.9.2)
    + * Resets the input document + * @link https://php.net/manual/en/solrinputdocument.clear.php + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function clear() {} - /** - * (PECL solr >= 0.9.2)
    - * Resets the input document - * @link https://php.net/manual/en/solrinputdocument.clear.php - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function clear() {} + /** + * (PECL solr >= 0.9.2)
    + * Creates a copy of a SolrDocument + * @link https://php.net/manual/en/solrinputdocument.clone.php + */ + public function __clone() {} - /** - * (PECL solr >= 0.9.2)
    - * Creates a copy of a SolrDocument - * @link https://php.net/manual/en/solrinputdocument.clone.php - */ - public function __clone() {} + /** + * (PECL solr >= 0.9.2)
    + * SolrInputDocument constructor. + * @link https://php.net/manual/en/solrinputdocument.construct.php + */ + public function __construct() {} - /** - * (PECL solr >= 0.9.2)
    - * SolrInputDocument constructor. - * @link https://php.net/manual/en/solrinputdocument.construct.php - */ - public function __construct () {} + /** + * (PECL solr >= 0.9.2)
    + * Removes a field from the document + * @link https://php.net/manual/en/solrinputdocument.construct.php + * @param string $fieldName

    + * The name of the field. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function deleteField($fieldName) {} - /** - * (PECL solr >= 0.9.2)
    - * Removes a field from the document - * @link https://php.net/manual/en/solrinputdocument.construct.php - * @param string $fieldName

    - * The name of the field. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function deleteField($fieldName) {} + /** + * (PECL solr >= 0.9.2)
    + * Destructor + * @link https://php.net/manual/en/solrinputdocument.destruct.php + */ + public function __destruct() {} - /** - * (PECL solr >= 0.9.2)
    - * Destructor - * @link https://php.net/manual/en/solrinputdocument.destruct.php - */ - public function __destruct() {} + /** + * (PECL solr >= 0.9.2)
    + * Checks if a field exists + * @link https://php.net/manual/en/solrinputdocument.fieldexists.php + * @param string $fieldName

    + * Name of the field. + *

    + * @return bool

    + * Returns TRUE if the field was found and FALSE if it was not found. + *

    + */ + public function fieldExists($fieldName) {} - /** - * (PECL solr >= 0.9.2)
    - * Checks if a field exists - * @link https://php.net/manual/en/solrinputdocument.fieldexists.php - * @param string $fieldName

    - * Name of the field. - *

    - * @return bool

    - * Returns TRUE if the field was found and FALSE if it was not found. - *

    - */ - public function fieldExists($fieldName) {} + /** + * (PECL solr >= 0.9.2)
    + * Retrieves the current boost value for the document + * @link https://php.net/manual/en/solrinputdocument.getboost.php + * @return float|false

    + * Returns the boost value on success and FALSE on failure. + *

    + */ + public function getBoost() {} - /** - * (PECL solr >= 0.9.2)
    - * Retrieves the current boost value for the document - * @link https://php.net/manual/en/solrinputdocument.getboost.php - * @return float|false

    - * Returns the boost value on success and FALSE on failure. - *

    - */ - public function getBoost() {} + /** + * (PECL solr >= 2.3.0)
    + * Returns an array of child documents (SolrInputDocument) + * @link https://php.net/manual/en/solrinputdocument.getchilddocuments.php + * @return SolrInputDocument[] + */ + public function getChildDocuments() {} - /** - * (PECL solr >= 2.3.0)
    - * Returns an array of child documents (SolrInputDocument) - * @link https://php.net/manual/en/solrinputdocument.getchilddocuments.php - * @return SolrInputDocument[] - */ - public function getChildDocuments() {} + /** + * (PECL solr >= 2.3.0)
    + * Returns the number of child documents + * @link https://php.net/manual/en/solrinputdocument.getchilddocumentscount.php + * @return int + */ + public function getChildDocumentsCount() {} - /** - * (PECL solr >= 2.3.0)
    - * Returns the number of child documents - * @link https://php.net/manual/en/solrinputdocument.getchilddocumentscount.php - * @return int - */ - public function getChildDocumentsCount() {} + /** + * (PECL solr >= 0.9.2)
    + * Retrieves a field by name + * @link https://php.net/manual/en/solrinputdocument.getfield.php + * @param string $fieldName

    + * The name of the field. + *

    + * @return SolrDocumentField|false Returns a SolrDocumentField object on success and FALSE on failure. + */ + public function getField($fieldName) {} - /** - * (PECL solr >= 0.9.2)
    - * Retrieves a field by name - * @link https://php.net/manual/en/solrinputdocument.getfield.php - * @param string $fieldName

    - * The name of the field. - *

    - * @return SolrDocumentField|false Returns a SolrDocumentField object on success and FALSE on failure. - */ - public function getField($fieldName) {} + /** + * (PECL solr >= 0.9.2)
    + * Retrieves the boost value for a particular field + * @link https://php.net/manual/en/solrinputdocument.getfieldboost.php + * @param string $fieldName

    + * The name of the field. + *

    + * @return float|false

    + * Returns the boost value for the field or FALSE if there was an error. + *

    + */ + public function getFieldBoost($fieldName) {} - /** - * (PECL solr >= 0.9.2)
    - * Retrieves the boost value for a particular field - * @link https://php.net/manual/en/solrinputdocument.getfieldboost.php - * @param string $fieldName

    - * The name of the field. - *

    - * @return float|false

    - * Returns the boost value for the field or FALSE if there was an error. - *

    - */ - public function getFieldBoost($fieldName) {} + /** + * (PECL solr >= 0.9.2)
    + * Returns the number of fields in the document + * @link https://php.net/manual/en/solrinputdocument.getfieldcount.php + * @return int|false

    + * Returns an integer on success or FALSE on failure. + *

    + */ + public function getFieldCount() {} - /** - * (PECL solr >= 0.9.2)
    - * Returns the number of fields in the document - * @link https://php.net/manual/en/solrinputdocument.getfieldcount.php - * @return int|false

    - * Returns an integer on success or FALSE on failure. - *

    - */ - public function getFieldCount() {} + /** + * (PECL solr >= 0.9.2)
    + * Returns an array containing all the fields in the document + * @link https://php.net/manual/en/solrinputdocument.getfieldnames.php + * @return array|false

    + * Returns an array on success and FALSE on failure. + *

    + */ + public function getFieldNames() {} - /** - * (PECL solr >= 0.9.2)
    - * Returns an array containing all the fields in the document - * @link https://php.net/manual/en/solrinputdocument.getfieldnames.php - * @return array|false

    - * Returns an array on success and FALSE on failure. - *

    - */ - public function getFieldNames() {} + /** + * (PECL solr >= 2.3.0)
    + * Checks whether the document has any child documents + * @link https://php.net/manual/en/solrinputdocument.haschilddocuments.php + * @return bool

    + * Returns TRUE if the document has any child documents + *

    + */ + public function hasChildDocuments() {} - /** - * (PECL solr >= 2.3.0)
    - * Checks whether the document has any child documents - * @link https://php.net/manual/en/solrinputdocument.haschilddocuments.php - * @return bool

    - * Returns TRUE if the document has any child documents - *

    - */ - public function hasChildDocuments() {} + /** + * (PECL solr >= 0.9.2)
    + * Merges one input document into another + * @link https://php.net/manual/en/solrinputdocument.merge.php + * @param SolrInputDocument $sourceDoc

    + * The source document. + *

    + * @param bool $overwrite [optional]

    + * If this is TRUE it will replace matching fields in the destination document. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. In the future, this will be modified to return the + * number of fields in the new document. + *

    + */ + public function merge(SolrInputDocument $sourceDoc, $overwrite = true) {} - /** - * (PECL solr >= 0.9.2)
    - * Merges one input document into another - * @link https://php.net/manual/en/solrinputdocument.merge.php - * @param SolrInputDocument $sourceDoc

    - * The source document. - *

    - * @param bool $overwrite [optional]

    - * If this is TRUE it will replace matching fields in the destination document. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. In the future, this will be modified to return the - * number of fields in the new document. - *

    - */ - public function merge(SolrInputDocument $sourceDoc, $overwrite = true) {} + /** + * (PECL solr >= 0.9.2)
    + * This is an alias of SolrInputDocument::clear + * @link https://php.net/manual/en/solrinputdocument.reset.php + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function reset() {} - /** - * (PECL solr >= 0.9.2)
    - * This is an alias of SolrInputDocument::clear - * @link https://php.net/manual/en/solrinputdocument.reset.php - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function reset() {} + /** + * (PECL solr >= 0.9.2)
    + * Sets the boost value for this document + * @link https://php.net/manual/en/solrinputdocument.setboost.php + * @param float $documentBoostValue

    + * The index-time boost value for this document. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function setBoost($documentBoostValue) {} - /** - * (PECL solr >= 0.9.2)
    - * Sets the boost value for this document - * @link https://php.net/manual/en/solrinputdocument.setboost.php - * @param float $documentBoostValue

    - * The index-time boost value for this document. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function setBoost($documentBoostValue) {} + /** + * (PECL solr >= 0.9.2)
    + * Sets the index-time boost value for a field + * https://php.net/manual/en/solrinputdocument.setfieldboost.php + * @param string $fieldName

    + * The name of the field. + *

    + * @param float $fieldBoostValue

    + * The index time boost value. + *

    + */ + public function setFieldBoost($fieldName, $fieldBoostValue) {} - /** - * (PECL solr >= 0.9.2)
    - * Sets the index-time boost value for a field - * https://php.net/manual/en/solrinputdocument.setfieldboost.php - * @param string $fieldName

    - * The name of the field. - *

    - * @param float $fieldBoostValue

    - * The index time boost value. - *

    - */ - public function setFieldBoost($fieldName, $fieldBoostValue) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sorts the fields within the document - * @link https://php.net/manual/en/solrinputdocument.sort.php - * @param int $sortOrderBy

    - * The sort criteria, must be one of : - *

      - *
    • SolrInputDocument::SORT_FIELD_NAME
    • - *
    • SolrInputDocument::SORT_FIELD_BOOST_VALUE
    • - *
    • SolrInputDocument::SORT_FIELD_VALUE_COUNT
    • - *
    - *

    - * @param int $sortDirection [optional]

    - * The sort direction, can be one of : - *

      - *
    • SolrInputDocument::SORT_DEFAULT
    • - *
    • SolrInputDocument::SORT_ASC
    • - *
    • SolrInputDocument::SORT_DESC
    • - *
    - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function sort($sortOrderBy, $sortDirection = SolrInputDocument::SORT_ASC) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns an array representation of the input document - * @link https://php.net/manual/en/solrinputdocument.toarray.php - * @return array|false

    - * Returns an array containing the fields. It returns FALSE on failure. - *

    - */ - public function toArray() {} + /** + * (PECL solr >= 0.9.2)
    + * Sorts the fields within the document + * @link https://php.net/manual/en/solrinputdocument.sort.php + * @param int $sortOrderBy

    + * The sort criteria, must be one of : + *

      + *
    • SolrInputDocument::SORT_FIELD_NAME
    • + *
    • SolrInputDocument::SORT_FIELD_BOOST_VALUE
    • + *
    • SolrInputDocument::SORT_FIELD_VALUE_COUNT
    • + *
    + *

    + * @param int $sortDirection [optional]

    + * The sort direction, can be one of : + *

      + *
    • SolrInputDocument::SORT_DEFAULT
    • + *
    • SolrInputDocument::SORT_ASC
    • + *
    • SolrInputDocument::SORT_DESC
    • + *
    + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function sort($sortOrderBy, $sortDirection = SolrInputDocument::SORT_ASC) {} + /** + * (PECL solr >= 0.9.2)
    + * Returns an array representation of the input document + * @link https://php.net/manual/en/solrinputdocument.toarray.php + * @return array|false

    + * Returns an array containing the fields. It returns FALSE on failure. + *

    + */ + public function toArray() {} } diff --git a/solr/Exceptions/SolrClientException.php b/solr/Exceptions/SolrClientException.php index 7d7f20f4e..3c7a87777 100644 --- a/solr/Exceptions/SolrClientException.php +++ b/solr/Exceptions/SolrClientException.php @@ -12,17 +12,16 @@ * An exception thrown when there is an error while making a request to the server from the client. * @link https://php.net/manual/en/class.solrclientexception.php */ -class SolrClientException extends SolrException { - - /** - * (PECL solr >= 0.9.2)
    - * Returns internal information where the Exception was thrown - * @link https://php.net/manual/en/solrclientexception.getinternalinfo.php - * @return array

    - * Returns an array containing internal information where the error was thrown. Used only for debugging by extension - * developers. - *

    - */ - public function getInternalInfo() {} - +class SolrClientException extends SolrException +{ + /** + * (PECL solr >= 0.9.2)
    + * Returns internal information where the Exception was thrown + * @link https://php.net/manual/en/solrclientexception.getinternalinfo.php + * @return array

    + * Returns an array containing internal information where the error was thrown. Used only for debugging by extension + * developers. + *

    + */ + public function getInternalInfo() {} } diff --git a/solr/Exceptions/SolrException.php b/solr/Exceptions/SolrException.php index be5fc067d..71af42801 100644 --- a/solr/Exceptions/SolrException.php +++ b/solr/Exceptions/SolrException.php @@ -12,26 +12,25 @@ * This is the base class for all exception thrown by the Solr extension classes. * @link https://php.net/manual/en/class.solrexception.php */ -class SolrException extends Exception { +class SolrException extends Exception +{ + /** @var int The line in c-space source file where exception was generated */ + protected $sourceline; - /** @var int The line in c-space source file where exception was generated */ - protected $sourceline; + /** @var string The c-space source file where exception was generated */ + protected $sourcefile; - /** @var string The c-space source file where exception was generated */ - protected $sourcefile; - - /** @var string The c-space function where exception was generated */ - protected $zif_name; - - /** - * (PECL solr >= 0.9.2)
    - * Returns internal information where the Exception was thrown - * @link https://php.net/manual/en/solrexception.getinternalinfo.php - * @return array

    - * Returns an array containing internal information where the error was thrown. Used only for debugging by extension - * developers. - *

    - */ - public function getInternalInfo() {} + /** @var string The c-space function where exception was generated */ + protected $zif_name; + /** + * (PECL solr >= 0.9.2)
    + * Returns internal information where the Exception was thrown + * @link https://php.net/manual/en/solrexception.getinternalinfo.php + * @return array

    + * Returns an array containing internal information where the error was thrown. Used only for debugging by extension + * developers. + *

    + */ + public function getInternalInfo() {} } diff --git a/solr/Exceptions/SolrIllegalArgumentException.php b/solr/Exceptions/SolrIllegalArgumentException.php index 285628dfc..aa3b3fba2 100644 --- a/solr/Exceptions/SolrIllegalArgumentException.php +++ b/solr/Exceptions/SolrIllegalArgumentException.php @@ -12,17 +12,16 @@ * This object is thrown when an illegal or invalid argument is passed to a method. * @link https://php.net/manual/en/class.solrillegalargumentexception.php */ -class SolrIllegalArgumentException extends SolrException { - - /** - * (PECL solr >= 0.9.2)
    - * Returns internal information where the Exception was thrown - * @link https://php.net/manual/en/solrillegalargumentexception.getinternalinfo.php - * @return array

    - * Returns an array containing internal information where the error was thrown. Used only for debugging by extension - * developers. - *

    - */ - public function getInternalInfo() {} - +class SolrIllegalArgumentException extends SolrException +{ + /** + * (PECL solr >= 0.9.2)
    + * Returns internal information where the Exception was thrown + * @link https://php.net/manual/en/solrillegalargumentexception.getinternalinfo.php + * @return array

    + * Returns an array containing internal information where the error was thrown. Used only for debugging by extension + * developers. + *

    + */ + public function getInternalInfo() {} } diff --git a/solr/Exceptions/SolrIllegalOperationException.php b/solr/Exceptions/SolrIllegalOperationException.php index 701098992..e7b4f0755 100644 --- a/solr/Exceptions/SolrIllegalOperationException.php +++ b/solr/Exceptions/SolrIllegalOperationException.php @@ -12,17 +12,16 @@ * This object is thrown when an illegal or unsupported operation is performed on an object. * @link https://php.net/manual/en/class.solrillegaloperationexception.php */ -class SolrIllegalOperationException extends SolrException { - - /** - * (PECL solr >= 0.9.2)
    - * Returns internal information where the Exception was thrown - * @link https://php.net/manual/en/solrillegaloperationexception.getinternalinfo.php - * @return array

    - * Returns an array containing internal information where the error was thrown. Used only for debugging by extension - * developers. - *

    - */ - public function getInternalInfo() {} - +class SolrIllegalOperationException extends SolrException +{ + /** + * (PECL solr >= 0.9.2)
    + * Returns internal information where the Exception was thrown + * @link https://php.net/manual/en/solrillegaloperationexception.getinternalinfo.php + * @return array

    + * Returns an array containing internal information where the error was thrown. Used only for debugging by extension + * developers. + *

    + */ + public function getInternalInfo() {} } diff --git a/solr/Exceptions/SolrMissingMandatoryParameterException.php b/solr/Exceptions/SolrMissingMandatoryParameterException.php index dbe692468..79995d48a 100644 --- a/solr/Exceptions/SolrMissingMandatoryParameterException.php +++ b/solr/Exceptions/SolrMissingMandatoryParameterException.php @@ -11,6 +11,4 @@ * Class SolrMissingMandatoryParameterException
    * @link https://php.net/manual/en/class.solrmissingmandatoryparameterexception.php */ -class SolrMissingMandatoryParameterException extends SolrException { - -} +class SolrMissingMandatoryParameterException extends SolrException {} diff --git a/solr/Exceptions/SolrServerException.php b/solr/Exceptions/SolrServerException.php index 31a175061..54d46797c 100644 --- a/solr/Exceptions/SolrServerException.php +++ b/solr/Exceptions/SolrServerException.php @@ -12,17 +12,16 @@ * An exception thrown when there is an error produced by the Solr Server itself. * @link https://php.net/manual/en/class.solrserverexception.php */ -class SolrServerException extends SolrException { - - /** - * (PECL solr >= 1.1.0, >=2.0.0)
    - * Returns internal information where the Exception was thrown - * @link https://php.net/manual/en/solrserverexception.getinternalinfo.php - * @return array

    - * Returns an array containing internal information where the error was thrown. Used only for debugging by extension - * developers. - *

    - */ - public function getInternalInfo() {} - +class SolrServerException extends SolrException +{ + /** + * (PECL solr >= 1.1.0, >=2.0.0)
    + * Returns internal information where the Exception was thrown + * @link https://php.net/manual/en/solrserverexception.getinternalinfo.php + * @return array

    + * Returns an array containing internal information where the error was thrown. Used only for debugging by extension + * developers. + *

    + */ + public function getInternalInfo() {} } diff --git a/solr/Queries/SolrCollapseFunction.php b/solr/Queries/SolrCollapseFunction.php index c95cba16d..08c41c619 100644 --- a/solr/Queries/SolrCollapseFunction.php +++ b/solr/Queries/SolrCollapseFunction.php @@ -11,141 +11,140 @@ * Class SolrCollapseFunction * @link https://php.net/manual/en/class.solrcollapsefunction.php */ -class SolrCollapseFunction { - - /** @var string */ - const NULLPOLICY_IGNORE = 'ignore'; - - /** @var string */ - const NULLPOLICY_EXPAND = 'expand'; - - /** @var string */ - const NULLPOLICY_COLLAPSE = 'collapse'; - - /** - * (PECL solr >= 2.2.0)
    - * SolrCollapseFunction constructor. - * @link https://php.net/manual/en/solrcollapsefunction.construct.php - * @param string $field [optional]

    - * The field name to collapse on.
    - * In order to collapse a result. The field type must be a single valued String, Int or Float. - *

    - */ - public function __construct ($field) {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the field that is being collapsed on. - * @link https://php.net/manual/en/solrcollapsefunction.getfield.php - * @return string - */ - public function getField() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns collapse hint - * @link https://php.net/manual/en/solrcollapsefunction.gethint.php - * @return string - */ - public function getHint() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns max parameter - * @link https://php.net/manual/en/solrcollapsefunction.getmax.php - * @return string - */ - public function getMax() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns min parameter - * @link https://php.net/manual/en/solrcollapsefunction.getmin.php - * @return string - */ - public function getMin() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns null policy - * @link https://php.net/manual/en/solrcollapsefunction.getnullpolicy.php - * @return string - */ - public function getNullPolicy() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns size parameter - * @link https://php.net/manual/en/solrcollapsefunction.getsize.php - * @return int - */ - public function getSize() {} - - /** - * (PECL solr >= 2.2.0)
    - * Sets the field to collapse on - * @link https://php.net/manual/en/solrcollapsefunction.setfield.php - * @param string $fieldName

    - * The field name to collapse on. In order to collapse a result. The field type must be a single valued String, Int - * or Float. - *

    - * @return SolrCollapseFunction - */ - public function setField($fieldName) {} - - /** - * (PECL solr >= 2.2.0)
    - * Sets collapse hint - * @link https://php.net/manual/en/solrcollapsefunction.sethint.php - * @param string $hint

    - * Currently there is only one hint available "top_fc", which stands for top level FieldCache - *

    - * @return SolrCollapseFunction - */ - public function setHint($hint) {} - - /** - * (PECL solr >= 2.2.0)
    - * Selects the group heads by the max value of a numeric field or function query. - * @link https://php.net/manual/en/solrcollapsefunction.setmax.php - * @param string $max - * @return SolrCollapseFunction - */ - public function setMax($max) {} - - /** - * (PECL solr >= 2.2.0)
    - * Sets the initial size of the collapse data structures when collapsing on a numeric field only - * @link https://php.net/manual/en/solrcollapsefunction.setmin.php - * @param string $min - * @return SolrCollapseFunction - */ - public function setMin($min) {} - - /** - * (PECL solr >= 2.2.0)
    - * Sets the NULL Policy - * @link https://php.net/manual/en/solrcollapsefunction.setnullpolicy.php - * @param string $nullPolicy - * @return SolrCollapseFunction - */ - public function setNullPolicy($nullPolicy) {} - - /** - * (PECL solr >= 2.2.0)
    - * Sets the initial size of the collapse data structures when collapsing on a numeric field only. - * @link https://php.net/manual/en/solrcollapsefunction.setsize.php - * @param int $size - * @return SolrCollapseFunction - */ - public function setSize($size) {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns a string representing the constructed collapse function - * @link https://php.net/manual/en/solrcollapsefunction.tostring.php - * @return string - */ - public function __toString() {} - +class SolrCollapseFunction +{ + /** @var string */ + public const NULLPOLICY_IGNORE = 'ignore'; + + /** @var string */ + public const NULLPOLICY_EXPAND = 'expand'; + + /** @var string */ + public const NULLPOLICY_COLLAPSE = 'collapse'; + + /** + * (PECL solr >= 2.2.0)
    + * SolrCollapseFunction constructor. + * @link https://php.net/manual/en/solrcollapsefunction.construct.php + * @param string $field [optional]

    + * The field name to collapse on.
    + * In order to collapse a result. The field type must be a single valued String, Int or Float. + *

    + */ + public function __construct($field) {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the field that is being collapsed on. + * @link https://php.net/manual/en/solrcollapsefunction.getfield.php + * @return string + */ + public function getField() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns collapse hint + * @link https://php.net/manual/en/solrcollapsefunction.gethint.php + * @return string + */ + public function getHint() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns max parameter + * @link https://php.net/manual/en/solrcollapsefunction.getmax.php + * @return string + */ + public function getMax() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns min parameter + * @link https://php.net/manual/en/solrcollapsefunction.getmin.php + * @return string + */ + public function getMin() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns null policy + * @link https://php.net/manual/en/solrcollapsefunction.getnullpolicy.php + * @return string + */ + public function getNullPolicy() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns size parameter + * @link https://php.net/manual/en/solrcollapsefunction.getsize.php + * @return int + */ + public function getSize() {} + + /** + * (PECL solr >= 2.2.0)
    + * Sets the field to collapse on + * @link https://php.net/manual/en/solrcollapsefunction.setfield.php + * @param string $fieldName

    + * The field name to collapse on. In order to collapse a result. The field type must be a single valued String, Int + * or Float. + *

    + * @return SolrCollapseFunction + */ + public function setField($fieldName) {} + + /** + * (PECL solr >= 2.2.0)
    + * Sets collapse hint + * @link https://php.net/manual/en/solrcollapsefunction.sethint.php + * @param string $hint

    + * Currently there is only one hint available "top_fc", which stands for top level FieldCache + *

    + * @return SolrCollapseFunction + */ + public function setHint($hint) {} + + /** + * (PECL solr >= 2.2.0)
    + * Selects the group heads by the max value of a numeric field or function query. + * @link https://php.net/manual/en/solrcollapsefunction.setmax.php + * @param string $max + * @return SolrCollapseFunction + */ + public function setMax($max) {} + + /** + * (PECL solr >= 2.2.0)
    + * Sets the initial size of the collapse data structures when collapsing on a numeric field only + * @link https://php.net/manual/en/solrcollapsefunction.setmin.php + * @param string $min + * @return SolrCollapseFunction + */ + public function setMin($min) {} + + /** + * (PECL solr >= 2.2.0)
    + * Sets the NULL Policy + * @link https://php.net/manual/en/solrcollapsefunction.setnullpolicy.php + * @param string $nullPolicy + * @return SolrCollapseFunction + */ + public function setNullPolicy($nullPolicy) {} + + /** + * (PECL solr >= 2.2.0)
    + * Sets the initial size of the collapse data structures when collapsing on a numeric field only. + * @link https://php.net/manual/en/solrcollapsefunction.setsize.php + * @param int $size + * @return SolrCollapseFunction + */ + public function setSize($size) {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns a string representing the constructed collapse function + * @link https://php.net/manual/en/solrcollapsefunction.tostring.php + * @return string + */ + public function __toString() {} } diff --git a/solr/Queries/SolrDisMaxQuery.php b/solr/Queries/SolrDisMaxQuery.php index b0da56662..fa2581a79 100644 --- a/solr/Queries/SolrDisMaxQuery.php +++ b/solr/Queries/SolrDisMaxQuery.php @@ -13,339 +13,338 @@ * Class SolrDisMaxQuery
    * @link https://php.net/manual/en/class.solrdismaxquery.php */ -class SolrDisMaxQuery extends SolrQuery implements Serializable { +class SolrDisMaxQuery extends SolrQuery implements Serializable +{ + /** + * (PECL solr >= 2.1.0)
    + * Adds a Phrase Bigram Field (pf2 parameter) + * @link https://php.net/manual/en/solrdismaxquery.addbigramphrasefield.php + * @param string $field

    + * Field name + *

    + * @param string $boost [optional]

    + * Boost value. Boosts documents with matching terms. + *

    + * @param string $slop [optional]

    + * Field Slop + *

    + * @return SolrDisMaxQuery + */ + public function addBigramPhraseField($field, $boost, $slop) {} - /** - * (PECL solr >= 2.1.0)
    - * Adds a Phrase Bigram Field (pf2 parameter) - * @link https://php.net/manual/en/solrdismaxquery.addbigramphrasefield.php - * @param string $field

    - * Field name - *

    - * @param string $boost [optional]

    - * Boost value. Boosts documents with matching terms. - *

    - * @param string $slop [optional]

    - * Field Slop - *

    - * @return SolrDisMaxQuery - */ - public function addBigramPhraseField($field, $boost, $slop) {} + /** + * (PECL solr >= 2.1.0)
    + * Adds a boost query field with value and optional boost (bq parameter) + * @link https://php.net/manual/en/solrdismaxquery.addboostquery.php + * @param string $field

    + * Field name + *

    + * @param string $value + * @param string $boost [optional]

    + * Boost value. Boosts documents with matching terms. + *

    + * @return SolrDisMaxQuery + */ + public function addBoostQuery($field, $value, $boost) {} - /** - * (PECL solr >= 2.1.0)
    - * Adds a boost query field with value and optional boost (bq parameter) - * @link https://php.net/manual/en/solrdismaxquery.addboostquery.php - * @param string $field

    - * Field name - *

    - * @param string $value - * @param string $boost [optional]

    - * Boost value. Boosts documents with matching terms. - *

    - * @return SolrDisMaxQuery - */ - public function addBoostQuery($field, $value, $boost) {} + /** + * (PECL solr >= 2.1.0)
    + * Adds a Phrase Field (pf parameter) + * @link https://php.net/manual/en/solrdismaxquery.addphrasefield.php + * @param string $field

    + * Field name + *

    + * @param string $boost [optional]

    + * Boost value. Boosts documents with matching terms. + *

    + * @param string $slop [optional]

    + * Field Slop + *

    + * @return SolrDisMaxQuery + */ + public function addPhraseField($field, $boost, $slop) {} - /** - * (PECL solr >= 2.1.0)
    - * Adds a Phrase Field (pf parameter) - * @link https://php.net/manual/en/solrdismaxquery.addphrasefield.php - * @param string $field

    - * Field name - *

    - * @param string $boost [optional]

    - * Boost value. Boosts documents with matching terms. - *

    - * @param string $slop [optional]

    - * Field Slop - *

    - * @return SolrDisMaxQuery - */ - public function addPhraseField($field, $boost, $slop) {} + /** + * (PECL solr >= 2.1.0)
    + * Add a query field with optional boost (qf parameter) + * @link https://php.net/manual/en/solrdismaxquery.addqueryfield.php + * @param string $field

    + * Field name + *

    + * @param string $boost [optional]

    + * Boost value. Boosts documents with matching terms. + *

    + * @return SolrDisMaxQuery + */ + public function addQueryField($field, $boost) {} - /** - * (PECL solr >= 2.1.0)
    - * Add a query field with optional boost (qf parameter) - * @link https://php.net/manual/en/solrdismaxquery.addqueryfield.php - * @param string $field

    - * Field name - *

    - * @param string $boost [optional]

    - * Boost value. Boosts documents with matching terms. - *

    - * @return SolrDisMaxQuery - */ - public function addQueryField($field, $boost) {} + /** + * (PECL solr >= 2.1.0)
    + * Adds a Trigram Phrase Field (pf3 parameter) + * @link https://php.net/manual/en/solrdismaxquery.addtrigramphrasefield.php + * @param string $field

    + * Field name + *

    + * @param string $boost [optional]

    + * Boost value. Boosts documents with matching terms. + *

    + * @param string $slop [optional]

    + * Field Slop + *

    + * @return SolrDisMaxQuery + */ + public function addTrigramPhraseField($field, $boost, $slop) {} - /** - * (PECL solr >= 2.1.0)
    - * Adds a Trigram Phrase Field (pf3 parameter) - * @link https://php.net/manual/en/solrdismaxquery.addtrigramphrasefield.php - * @param string $field

    - * Field name - *

    - * @param string $boost [optional]

    - * Boost value. Boosts documents with matching terms. - *

    - * @param string $slop [optional]

    - * Field Slop - *

    - * @return SolrDisMaxQuery - */ - public function addTrigramPhraseField($field, $boost, $slop) {} + /** + * (PECL solr >= 2.1.0)
    + * Adds a field to User Fields Parameter (uf) + * @link https://php.net/manual/en/solrdismaxquery.adduserfield.php + * @param string $field

    + * Field name + *

    + * @return SolrDisMaxQuery + */ + public function addUserField($field) {} - /** - * (PECL solr >= 2.1.0)
    - * Adds a field to User Fields Parameter (uf) - * @link https://php.net/manual/en/solrdismaxquery.adduserfield.php - * @param string $field

    - * Field name - *

    - * @return SolrDisMaxQuery - */ - public function addUserField($field) {} + /** + * (PECL solr >= 2.1.0)
    + * Removes phrase bigram field (pf2 parameter) + * @link https://php.net/manual/en/solrdismaxquery.removebigramphrasefield.php + * @param string $field

    + * Field name + *

    + * @return SolrDisMaxQuery + */ + public function removeBigramPhraseField($field) {} - /** - * (PECL solr >= 2.1.0)
    - * Removes phrase bigram field (pf2 parameter) - * @link https://php.net/manual/en/solrdismaxquery.removebigramphrasefield.php - * @param string $field

    - * Field name - *

    - * @return SolrDisMaxQuery - */ - public function removeBigramPhraseField($field) {} + /** + * (PECL solr >= 2.1.0)
    + * Removes a boost query partial by field name (bq) + * @link https://php.net/manual/en/solrdismaxquery.removeboostquery.php + * @param string $field

    + * Field name + *

    + * @return SolrDisMaxQuery + */ + public function removeBoostQuery($field) {} - /** - * (PECL solr >= 2.1.0)
    - * Removes a boost query partial by field name (bq) - * @link https://php.net/manual/en/solrdismaxquery.removeboostquery.php - * @param string $field

    - * Field name - *

    - * @return SolrDisMaxQuery - */ - public function removeBoostQuery($field) {} + /** + * (PECL solr >= 2.1.0)
    + * Removes a Phrase Field (pf parameter) + * @link https://php.net/manual/en/solrdismaxquery.removephrasefield.php + * @param string $field

    + * Field name + *

    + * @return SolrDisMaxQuery + */ + public function removePhraseField($field) {} - /** - * (PECL solr >= 2.1.0)
    - * Removes a Phrase Field (pf parameter) - * @link https://php.net/manual/en/solrdismaxquery.removephrasefield.php - * @param string $field

    - * Field name - *

    - * @return SolrDisMaxQuery - */ - public function removePhraseField($field) {} + /** + * (PECL solr >= 2.1.0)
    + * Removes a Query Field (qf parameter) + * @link https://php.net/manual/en/solrdismaxquery.removequeryfield.php + * @param string $field

    + * Field name + *

    + * @return SolrDisMaxQuery + */ + public function removeQueryField($field) {} - /** - * (PECL solr >= 2.1.0)
    - * Removes a Query Field (qf parameter) - * @link https://php.net/manual/en/solrdismaxquery.removequeryfield.php - * @param string $field

    - * Field name - *

    - * @return SolrDisMaxQuery - */ - public function removeQueryField($field) {} + /** + * (PECL solr >= 2.1.0)
    + * Removes a Trigram Phrase Field (pf3 parameter) + * @link https://php.net/manual/en/solrdismaxquery.removetrigramphrasefield.php + * @param string $field

    + * Field name + *

    + * @return SolrDisMaxQuery + */ + public function removeTrigramPhraseField($field) {} - /** - * (PECL solr >= 2.1.0)
    - * Removes a Trigram Phrase Field (pf3 parameter) - * @link https://php.net/manual/en/solrdismaxquery.removetrigramphrasefield.php - * @param string $field

    - * Field name - *

    - * @return SolrDisMaxQuery - */ - public function removeTrigramPhraseField($field) {} + /** + * (PECL solr >= 2.1.0)
    + * Removes a field from The User Fields Parameter (uf) + *
    + * Warning
    + * This function is currently not documented; only its argument list is available. + *
    + * @link https://php.net/manual/en/solrdismaxquery.removeuserfield.php + * @param string $field

    + * Field name + *

    + * @return SolrDisMaxQuery + */ + public function removeUserField($field) {} - /** - * (PECL solr >= 2.1.0)
    - * Removes a field from The User Fields Parameter (uf) - *
    - * Warning
    - * This function is currently not documented; only its argument list is available. - *
    - * @link https://php.net/manual/en/solrdismaxquery.removeuserfield.php - * @param string $field

    - * Field name - *

    - * @return SolrDisMaxQuery - */ - public function removeUserField($field) {} + /** + * (PECL solr >= 2.1.0)
    + * Sets Bigram Phrase Fields and their boosts (and slops) using pf2 parameter + * @link https://php.net/manual/en/solrdismaxquery.setbigramphrasefields.php + * @param string $fields

    + * Fields boosts (slops) + *

    + * @return SolrDisMaxQuery + */ + public function setBigramPhraseFields($fields) {} - /** - * (PECL solr >= 2.1.0)
    - * Sets Bigram Phrase Fields and their boosts (and slops) using pf2 parameter - * @link https://php.net/manual/en/solrdismaxquery.setbigramphrasefields.php - * @param string $fields

    - * Fields boosts (slops) - *

    - * @return SolrDisMaxQuery - */ - public function setBigramPhraseFields($fields) {} + /** + * (PECL solr >= 2.1.0)
    + * Sets Bigram Phrase Slop (ps2 parameter) + * @link https://php.net/manual/en/solrdismaxquery.setbigramphraseslop.php + * @param string $slop

    + * A default slop for Bigram phrase fields. + *

    + * @return SolrDisMaxQuery + */ + public function setBigramPhraseSlop($slop) {} - /** - * (PECL solr >= 2.1.0)
    - * Sets Bigram Phrase Slop (ps2 parameter) - * @link https://php.net/manual/en/solrdismaxquery.setbigramphraseslop.php - * @param string $slop

    - * A default slop for Bigram phrase fields. - *

    - * @return SolrDisMaxQuery - */ - public function setBigramPhraseSlop($slop) {} + /** + * (PECL solr >= 2.1.0)
    + * Sets a Boost Function (bf parameter). + * @link https://php.net/manual/en/solrdismaxquery.setboostfunction.php + * @param string $function

    + * Functions (with optional boosts) that will be included in the user's query to influence the score. Any function + * supported natively by Solr can be used, along with a boost value. e.g.:
    + * recip(rord(myfield),1,2,3)^1.5 + *

    + * @return SolrDisMaxQuery + */ + public function setBoostFunction($function) {} - /** - * (PECL solr >= 2.1.0)
    - * Sets a Boost Function (bf parameter). - * @link https://php.net/manual/en/solrdismaxquery.setboostfunction.php - * @param string $function

    - * Functions (with optional boosts) that will be included in the user's query to influence the score. Any function - * supported natively by Solr can be used, along with a boost value. e.g.:
    - * recip(rord(myfield),1,2,3)^1.5 - *

    - * @return SolrDisMaxQuery - */ - public function setBoostFunction($function) {} + /** + * (PECL solr >= 2.1.0)
    + * Directly Sets Boost Query Parameter (bq) + * @link https://php.net/manual/en/solrdismaxquery.setboostquery.php + * @param string $q + * @return SolrDisMaxQuery + */ + public function setBoostQuery($q) {} - /** - * (PECL solr >= 2.1.0)
    - * Directly Sets Boost Query Parameter (bq) - * @link https://php.net/manual/en/solrdismaxquery.setboostquery.php - * @param string $q - * @return SolrDisMaxQuery - */ - public function setBoostQuery($q) {} + /** + * (PECL solr >= 2.1.0)
    + * Set Minimum "Should" Match (mm) + * @link https://php.net/manual/en/solrdismaxquery.setminimummatch.php + * @param string $value

    + * Minimum match value/expression
    + * Set Minimum "Should" Match parameter (mm). If the default query operator is AND then mm=100%, if the default + * query operator (q.op) is OR, then mm=0%. + *

    + * @return SolrDisMaxQuery + */ + public function setMinimumMatch($value) {} - /** - * (PECL solr >= 2.1.0)
    - * Set Minimum "Should" Match (mm) - * @link https://php.net/manual/en/solrdismaxquery.setminimummatch.php - * @param string $value

    - * Minimum match value/expression
    - * Set Minimum "Should" Match parameter (mm). If the default query operator is AND then mm=100%, if the default - * query operator (q.op) is OR, then mm=0%. - *

    - * @return SolrDisMaxQuery - */ - public function setMinimumMatch($value) {} + /** + * (PECL solr >= 2.1.0)
    + * Sets Phrase Fields and their boosts (and slops) using pf2 parameter + * @link https://php.net/manual/en/solrdismaxquery.setphrasefields.php + * @param string $fields

    + * Fields, boosts [, slops] + *

    + * @return SolrDisMaxQuery + */ + public function setPhraseFields($fields) {} - /** - * (PECL solr >= 2.1.0)
    - * Sets Phrase Fields and their boosts (and slops) using pf2 parameter - * @link https://php.net/manual/en/solrdismaxquery.setphrasefields.php - * @param string $fields

    - * Fields, boosts [, slops] - *

    - * @return SolrDisMaxQuery - */ - public function setPhraseFields($fields) {} + /** + * (PECL solr >= 2.1.0)
    + * Sets the default slop on phrase queries (ps parameter) + * @link https://php.net/manual/en/solrdismaxquery.setphraseslop.php + * @param string $slop

    + * Sets the default amount of slop on phrase queries built with "pf", "pf2" and/or "pf3" fields (affects boosting). + * "ps" parameter + *

    + * @return SolrDisMaxQuery + */ + public function setPhraseSlop($slop) {} - /** - * (PECL solr >= 2.1.0)
    - * Sets the default slop on phrase queries (ps parameter) - * @link https://php.net/manual/en/solrdismaxquery.setphraseslop.php - * @param string $slop

    - * Sets the default amount of slop on phrase queries built with "pf", "pf2" and/or "pf3" fields (affects boosting). - * "ps" parameter - *

    - * @return SolrDisMaxQuery - */ - public function setPhraseSlop($slop) {} + /** + * (PECL solr >= 2.1.0)
    + * Set Query Alternate (q.alt parameter) + * @link https://php.net/manual/en/solrdismaxquery.setqueryalt.php + * @param string $q

    + * Query String + *

    + * @return SolrDisMaxQuery + */ + public function setQueryAlt($q) {} - /** - * (PECL solr >= 2.1.0)
    - * Set Query Alternate (q.alt parameter) - * @link https://php.net/manual/en/solrdismaxquery.setqueryalt.php - * @param string $q

    - * Query String - *

    - * @return SolrDisMaxQuery - */ - public function setQueryAlt($q) {} + /** + * (PECL solr >= 2.1.0)
    + * Specifies the amount of slop permitted on phrase queries explicitly included in the user's query string (qf + * parameter) + * @link https://php.net/manual/en/solrdismaxquery.setqueryphraseslop.php + * @param string $slop

    + * Amount of slop
    + * The Query Phrase Slop is the amount of slop permitted on phrase queries explicitly included in the user's query + * string with the qf parameter.
    + *
    + * slop refers to the number of positions one token needs to be moved in relation to another token in order to match + * a phrase specified in a query. + *

    + * @return SolrDisMaxQuery + */ + public function setQueryPhraseSlop($slop) {} - /** - * (PECL solr >= 2.1.0)
    - * Specifies the amount of slop permitted on phrase queries explicitly included in the user's query string (qf - * parameter) - * @link https://php.net/manual/en/solrdismaxquery.setqueryphraseslop.php - * @param string $slop

    - * Amount of slop
    - * The Query Phrase Slop is the amount of slop permitted on phrase queries explicitly included in the user's query - * string with the qf parameter.
    - *
    - * slop refers to the number of positions one token needs to be moved in relation to another token in order to match - * a phrase specified in a query. - *

    - * @return SolrDisMaxQuery - */ - public function setQueryPhraseSlop($slop) {} + /** + * (PECL solr >= 2.1.0)
    + * Sets Tie Breaker parameter (tie parameter) + * @link https://php.net/manual/en/solrdismaxquery.settiebreaker.php + * @param string $tieBreaker

    + * The tie parameter specifies a float value (which should be something much less than 1) to use as tiebreaker in + * DisMax queries. + *

    + * @return SolrDisMaxQuery + */ + public function setTieBreaker($tieBreaker) {} - /** - * (PECL solr >= 2.1.0)
    - * Sets Tie Breaker parameter (tie parameter) - * @link https://php.net/manual/en/solrdismaxquery.settiebreaker.php - * @param string $tieBreaker

    - * The tie parameter specifies a float value (which should be something much less than 1) to use as tiebreaker in - * DisMax queries. - *

    - * @return SolrDisMaxQuery - */ - public function setTieBreaker($tieBreaker) {} + /** + * (PECL solr >= 2.1.0)
    + * Directly Sets Trigram Phrase Fields (pf3 parameter) + * @link https://php.net/manual/en/solrdismaxquery.settrigramphrasefields.php + * @param string $fields

    + * Trigram Phrase Fields + *

    + * @return SolrDisMaxQuery + */ + public function setTrigramPhraseFields($fields) {} - /** - * (PECL solr >= 2.1.0)
    - * Directly Sets Trigram Phrase Fields (pf3 parameter) - * @link https://php.net/manual/en/solrdismaxquery.settrigramphrasefields.php - * @param string $fields

    - * Trigram Phrase Fields - *

    - * @return SolrDisMaxQuery - */ - public function setTrigramPhraseFields($fields) {} + /** + * (PECL solr >= 2.1.0)
    + * Sets Trigram Phrase Slop (ps3 parameter) + * @link https://php.net/manual/en/solrdismaxquery.settrigramphraseslop.php + * @param string $slop

    + * Phrase slop + *

    + * @return SolrDisMaxQuery + */ + public function setTrigramPhraseSlop($slop) {} - /** - * (PECL solr >= 2.1.0)
    - * Sets Trigram Phrase Slop (ps3 parameter) - * @link https://php.net/manual/en/solrdismaxquery.settrigramphraseslop.php - * @param string $slop

    - * Phrase slop - *

    - * @return SolrDisMaxQuery - */ - public function setTrigramPhraseSlop($slop) {} + /** + * (PECL solr >= 2.1.0)
    + * Sets User Fields parameter (uf) + * @link https://php.net/manual/en/solrdismaxquery.setuserfields.php + * @param string $fields

    + * Fields names separated by space
    + * This parameter supports wildcards. + *

    + * @return SolrDisMaxQuery + */ + public function setUserFields($fields) {} - /** - * (PECL solr >= 2.1.0)
    - * Sets User Fields parameter (uf) - * @link https://php.net/manual/en/solrdismaxquery.setuserfields.php - * @param string $fields

    - * Fields names separated by space
    - * This parameter supports wildcards. - *

    - * @return SolrDisMaxQuery - */ - public function setUserFields($fields) {} - - /** - * (PECL solr >= 2.1.0)
    - * Switch QueryParser to be DisMax Query Parser - * @link https://php.net/manual/en/solrdismaxquery.usedismaxqueryparser.php - * @return SolrDisMaxQuery - */ - public function useDisMaxQueryParser() {} - - /** - * (PECL solr >= 2.1.0)
    - * Switch QueryParser to be EDisMax
    - * By default the query builder uses edismax, if it was switched using - * SolrDisMaxQuery::useDisMaxQueryParser(), it can be switched back using this method. - * @link https://php.net/manual/en/solrdismaxquery.useedismaxqueryparser.php - * @return SolrDisMaxQuery - */ - public function useEDisMaxQueryParser() {} + /** + * (PECL solr >= 2.1.0)
    + * Switch QueryParser to be DisMax Query Parser + * @link https://php.net/manual/en/solrdismaxquery.usedismaxqueryparser.php + * @return SolrDisMaxQuery + */ + public function useDisMaxQueryParser() {} + /** + * (PECL solr >= 2.1.0)
    + * Switch QueryParser to be EDisMax
    + * By default the query builder uses edismax, if it was switched using + * SolrDisMaxQuery::useDisMaxQueryParser(), it can be switched back using this method. + * @link https://php.net/manual/en/solrdismaxquery.useedismaxqueryparser.php + * @return SolrDisMaxQuery + */ + public function useEDisMaxQueryParser() {} } diff --git a/solr/Queries/SolrModifiableParams.php b/solr/Queries/SolrModifiableParams.php index 30d4144da..769ade59b 100644 --- a/solr/Queries/SolrModifiableParams.php +++ b/solr/Queries/SolrModifiableParams.php @@ -12,20 +12,19 @@ * This class represents a collection of name-value pairs sent to the Solr server during a request. * @link https://php.net/manual/en/class.solrmodifiableparams.php */ -class SolrModifiableParams extends SolrParams implements Serializable { - - /** - * (PECL solr >= 0.9.2)
    - * SolrModifiableParams constructor. - * @link https://php.net/manual/en/solrmodifiableparams.construct.php - */ - public function __construct() {} - - /** - * (PECL solr >= 0.9.2)
    - * Destructor - * @link https://php.net/manual/en/solrmodifiableparams.destruct.php - */ - public function __destruct() {} +class SolrModifiableParams extends SolrParams implements Serializable +{ + /** + * (PECL solr >= 0.9.2)
    + * SolrModifiableParams constructor. + * @link https://php.net/manual/en/solrmodifiableparams.construct.php + */ + public function __construct() {} + /** + * (PECL solr >= 0.9.2)
    + * Destructor + * @link https://php.net/manual/en/solrmodifiableparams.destruct.php + */ + public function __destruct() {} } diff --git a/solr/Queries/SolrParams.php b/solr/Queries/SolrParams.php index 9e949b9ec..4e34bbf2b 100644 --- a/solr/Queries/SolrParams.php +++ b/solr/Queries/SolrParams.php @@ -12,149 +12,148 @@ * This class represents a a collection of name-value pairs sent to the Solr server during a request. * @link https://php.net/manual/en/class.solrparams.php */ -abstract class SolrParams implements Serializable { +abstract class SolrParams implements Serializable +{ + /** + * (PECL solr >= 0.9.2)
    + * This is an alias for SolrParams::addParam + * @link https://php.net/manual/en/solrparams.add.php + * @param string $name

    + * The name of the parameter + *

    + * @param string $value

    + * The value of the parameter + *

    + * @return SolrParams|false

    + * Returns a SolrParams instance on success and FALSE on failure. + *

    + */ + public function add($name, $value) {} - /** - * (PECL solr >= 0.9.2)
    - * This is an alias for SolrParams::addParam - * @link https://php.net/manual/en/solrparams.add.php - * @param string $name

    - * The name of the parameter - *

    - * @param string $value

    - * The value of the parameter - *

    - * @return SolrParams|false

    - * Returns a SolrParams instance on success and FALSE on failure. - *

    - */ - public function add($name, $value) {} + /** + * (PECL solr >= 0.9.2)
    + * Adds a parameter to the object + * @link https://php.net/manual/en/solrparams.addparam.php + * @param string $name

    + * The name of the parameter + *

    + * @param string $value

    + * The value of the parameter + *

    + * @return SolrParams|false

    + * Returns a SolrParams instance on success and FALSE on failure. + *

    + */ + public function addParam($name, $value) {} - /** - * (PECL solr >= 0.9.2)
    - * Adds a parameter to the object - * @link https://php.net/manual/en/solrparams.addparam.php - * @param string $name

    - * The name of the parameter - *

    - * @param string $value

    - * The value of the parameter - *

    - * @return SolrParams|false

    - * Returns a SolrParams instance on success and FALSE on failure. - *

    - */ - public function addParam($name, $value) {} + /** + * (PECL solr >= 0.9.2)
    + * This is an alias for SolrParams::getParam + * @link https://php.net/manual/en/solrparams.get.php + * @param string $param_name

    + * The name of the parameter + *

    + * @return mixed

    + * Returns an array or string depending on the type of parameter + *

    + */ + final public function get($param_name) {} - /** - * (PECL solr >= 0.9.2)
    - * This is an alias for SolrParams::getParam - * @link https://php.net/manual/en/solrparams.get.php - * @param string $param_name

    - * The name of the parameter - *

    - * @return mixed

    - * Returns an array or string depending on the type of parameter - *

    - */ - final public function get($param_name) {} + /** + * (PECL solr >= 0.9.2)
    + * Returns a parameter value + * @link https://php.net/manual/en/solrparams.getparam.php + * @param string $param_name

    + * The name of the parameter + *

    + * @return mixed

    + * Returns an array or string depending on the type of parameter + *

    + */ + final public function getParam($param_name) {} - /** - * (PECL solr >= 0.9.2)
    - * Returns a parameter value - * @link https://php.net/manual/en/solrparams.getparam.php - * @param string $param_name

    - * The name of the parameter - *

    - * @return mixed

    - * Returns an array or string depending on the type of parameter - *

    - */ - final public function getParam($param_name) {} + /** + * (PECL solr >= 0.9.2)
    + * Returns an array of non URL-encoded parameters + * @link https://php.net/manual/en/solrparams.getparams.php + * @return array

    + * Returns an array of non URL-encoded parameters + *

    + */ + final public function getParams() {} - /** - * (PECL solr >= 0.9.2)
    - * Returns an array of non URL-encoded parameters - * @link https://php.net/manual/en/solrparams.getparams.php - * @return array

    - * Returns an array of non URL-encoded parameters - *

    - */ - final public function getParams() {} + /** + * (PECL solr >= 0.9.2)
    + * Returns an array of URL-encoded parameters + * @link https://php.net/manual/en/solrparams.getpreparedparams.php + * @return array

    + * Returns an array of URL-encoded parameters + *

    + */ + final public function getPreparedParams() {} - /** - * (PECL solr >= 0.9.2)
    - * Returns an array of URL-encoded parameters - * @link https://php.net/manual/en/solrparams.getpreparedparams.php - * @return array

    - * Returns an array of URL-encoded parameters - *

    - */ - final public function getPreparedParams() {} + /** + * (PECL solr >= 0.9.2)
    + * Used for custom serialization + * @link https://php.net/manual/en/solrparams.serialize.php + * @return string

    + * Used for custom serialization + *

    + */ + final public function serialize() {} - /** - * (PECL solr >= 0.9.2)
    - * Used for custom serialization - * @link https://php.net/manual/en/solrparams.serialize.php - * @return string

    - * Used for custom serialization - *

    - */ - final public function serialize() {} + /** + * (PECL solr >= 0.9.2)
    + * An alias of SolrParams::setParam + * @link https://php.net/manual/en/solrparams.set.php + * @param string $name

    + * The name of the parameter + *

    + * @param string $value

    + * The parameter value + *

    + * @return SolrParams|false

    + * Returns a SolrParams instance on success and FALSE on failure. + *

    + */ + final public function set($name, $value) {} - /** - * (PECL solr >= 0.9.2)
    - * An alias of SolrParams::setParam - * @link https://php.net/manual/en/solrparams.set.php - * @param string $name

    - * The name of the parameter - *

    - * @param string $value

    - * The parameter value - *

    - * @return SolrParams|false

    - * Returns a SolrParams instance on success and FALSE on failure. - *

    - */ - final public function set($name, $value) {} + /** + * (PECL solr >= 0.9.2)
    + * Sets the parameter to the specified value + * @link https://php.net/manual/en/solrparams.setparam.php + * @param string $name

    + * The name of the parameter + *

    + * @param string $value

    + * The parameter value + *

    + * @return SolrParams|false

    + * Returns a SolrParams instance on success and FALSE on failure. + *

    + */ + public function setParam($name, $value) {} - /** - * (PECL solr >= 0.9.2)
    - * Sets the parameter to the specified value - * @link https://php.net/manual/en/solrparams.setparam.php - * @param string $name

    - * The name of the parameter - *

    - * @param string $value

    - * The parameter value - *

    - * @return SolrParams|false

    - * Returns a SolrParams instance on success and FALSE on failure. - *

    - */ - public function setParam($name, $value) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns all the name-value pair parameters in the object - * @link https://php.net/manual/en/solrparams.tostring.php - * @param bool $url_encode

    - * Whether to return URL-encoded values - *

    - * @return string|false

    - * Returns a string on success and FALSE on failure. - *

    - */ - final public function toString($url_encode = false) {} - - /** - * (PECL solr >= 0.9.2)
    - * Used for custom serialization - * @link https://php.net/manual/en/solrparams.unserialize.php - * @param string $serialized

    - * The serialized representation of the object - *

    - */ - final public function unserialize($serialized) {} + /** + * (PECL solr >= 0.9.2)
    + * Returns all the name-value pair parameters in the object + * @link https://php.net/manual/en/solrparams.tostring.php + * @param bool $url_encode

    + * Whether to return URL-encoded values + *

    + * @return string|false

    + * Returns a string on success and FALSE on failure. + *

    + */ + final public function toString($url_encode = false) {} + /** + * (PECL solr >= 0.9.2)
    + * Used for custom serialization + * @link https://php.net/manual/en/solrparams.unserialize.php + * @param string $serialized

    + * The serialized representation of the object + *

    + */ + final public function unserialize($serialized) {} } diff --git a/solr/Queries/SolrQuery.php b/solr/Queries/SolrQuery.php index dc6a7d848..3bea5c615 100644 --- a/solr/Queries/SolrQuery.php +++ b/solr/Queries/SolrQuery.php @@ -12,2415 +12,2414 @@ * This class represents a collection of name-value pairs sent to the Solr server during a request. * @link https://php.net/manual/en/class.solrquery.php */ -class SolrQuery extends SolrModifiableParams implements Serializable { - - /** @var int Used to specify that the sorting should be in acending order */ - const ORDER_ASC = 0; - - /** @var int Used to specify that the sorting should be in descending order */ - const ORDER_DESC = 1; - - /** @var int Used to specify that the facet should sort by index */ - const FACET_SORT_INDEX = 0; - - /** @var int Used to specify that the facet should sort by count */ - const FACET_SORT_COUNT = 1; - - /** @var int Used in the TermsComponent */ - const TERMS_SORT_INDEX = 0; - - /** @var int Used in the TermsComponent */ - const TERMS_SORT_COUNT = 1; - - /** - * (PECL solr >= 2.2.0)
    - * Overrides main filter query, determines which documents to include in the main group. - * @link https://php.net/manual/en/solrquery.addexpandfilterquery.php - * @param string $fq - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function addExpandFilterQuery($fq) {} - - /** - * (PECL solr >= 2.2.0)
    - * Orders the documents within the expanded groups (expand.sort parameter). - * @link https://php.net/manual/en/solrquery.addexpandsortfield.php - * @param string $field

    - * Field name - *

    - * @param string $order [optional]

    - * Order ASC/DESC, utilizes SolrQuery::ORDER_* constants. - *

    - *

    - * Default: SolrQuery::ORDER_DESC - *

    - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function addExpandSortField($field, $order) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to facet.date - * @link https://php.net/manual/en/solrquery.addfacetdatefield.php - * @param string $dateField

    - * The name of the date field. - *

    - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function addFacetDateField($dateField) {} - - /** - * (PECL solr >= 0.9.2)
    - * Adds another facet.date.other parameter - * @link https://php.net/manual/en/solrquery.addfacetdateother.php - * @param string $value

    - * The value to use. - *

    - * @param string $field_override

    - * The field name for the override. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function addFacetDateOther($value, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Adds another field to the facet - * @link https://php.net/manual/en/solrquery.addfacetfield.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function addFacetField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Adds a facet query - * @link https://php.net/manual/en/solrquery.addfacetquery.php - * @param string $facetQuery

    - * The facet query - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function addFacetQuery($facetQuery) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies which fields to return in the result - * @link https://php.net/manual/en/solrquery.addfield.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function addField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies a filter query - * @link https://php.net/manual/en/solrquery.addfilterquery.php - * @param string $fq

    - * The filter query - *

    - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function addFilterQuery($fq) {} - - /** - * (PECL solr >= 2.2.0)
    - * Add a field to be used to group results. - * @link https://php.net/manual/en/solrquery.addgroupfield.php - * @param string $value - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function addGroupField($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * Allows grouping results based on the unique values of a function query (group.func parameter). - * @link https://php.net/manual/en/solrquery.addgroupfunction.php - * @param string $value - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function addGroupFunction($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * Allows grouping of documents that match the given query. - * @link https://php.net/manual/en/solrquery.addgroupquery.php - * @param string $value - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function addGroupQuery($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * Add a group sort field (group.sort parameter). - * @link https://php.net/manual/en/solrquery.addgroupsortfield.php - * @param string $field

    - * Field name - *

    - * @param int $order

    - * Order ASC/DESC, utilizes SolrQuery::ORDER_* constants - *

    - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function addGroupSortField($field, $order) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to hl.fl - * @link https://php.net/manual/en/solrquery.addhighlightfield.php - * @param string $field

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function addHighlightField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets a field to use for similarity - * @link https://php.net/manual/en/solrquery.addmltfield.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function addMltField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to mlt.qf - * @link https://php.net/manual/en/solrquery.addmltqueryfield.php - * @param string $field

    - * The name of the field - *

    - * @param float $boost

    - * Its boost value - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function addMltQueryField($field, $boost) {} - - /** - * (PECL solr >= 0.9.2)
    - * Used to control how the results should be sorted - * @link https://php.net/manual/en/solrquery.addsortfield.php - * @param string $field

    - * The name of the field - *

    - * @param int $order

    - * The sort direction. This should be either SolrQuery::ORDER_ASC or SolrQuery::ORDER_DESC. - *

    - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function addSortField($field, $order = SolrQuery::ORDER_DESC) {} - - /** - * (PECL solr >= 0.9.2)
    - * Requests a return of sub results for values within the given facet - * @link https://php.net/manual/en/solrquery.addstatsfacet.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function addStatsFacet($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to stats.field parameter - * @link https://php.net/manual/en/solrquery.addstatsfield.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function addStatsField($field) {} - - /** - * (No version information available, might only be in Git)
    - * Collapses the result set to a single document per group - * @link https://php.net/manual/en/solrquery.collapse.php - * @param SolrCollapseFunction $collapseFunction - * @return SolrQuery

    - * Returns a SolrQuery object. - *

    - */ - public function collapse(SolrCollapseFunction $collapseFunction) {} - - /** - * (PECL solr >= 0.9.2)
    - * SolrQuery constructor. - * @link https://php.net/manual/en/solrquery.construct.php - * @param string $q

    - * Optional search query - *

    - */ - public function __construct($q = '') {} - - /** - * (PECL solr >= 0.9.2)
    - * Destructor - * @link https://php.net/manual/en/solrquery.destruct.php - */ - public function __destruct() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns true if group expanding is enabled - * @link https://php.net/manual/en/solrquery.getexpand.php - * @return bool

    - * Returns TRUE if group expanding is enabled - *

    - */ - public function getExpand() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the expand filter queries - * @link https://php.net/manual/en/solrquery.getexpandfilterqueries.php - * @return array

    - * Returns the expand filter queries - *

    - */ - public function getExpandFilterQueries() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the expand query expand.q parameter - * @link https://php.net/manual/en/solrquery.getexpandquery.php - * @return array

    - * Returns the expand query expand.q parameter - *

    - */ - public function getExpandQuery() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns The number of rows to display in each group (expand.rows) - * @link https://php.net/manual/en/solrquery.getexpandrows.php - * @return int

    - * Returns The number of rows to display in each group (expand.rows) - *

    - */ - public function getExpandRows() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns an array of fields - * @link https://php.net/manual/en/solrquery.getexpandsortfields.php - * @return array

    - * Returns an array of fields - *

    - */ - public function getExpandSortFields() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the value of the facet parameter - * @link https://php.net/manual/en/solrquery.getfacet.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getFacet() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the value for the facet.date.end parameter - * @link https://php.net/manual/en/solrquery.getfacetdateend.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getFacetDateEnd($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns all the facet.date fields - * @link https://php.net/manual/en/solrquery.getfacetdatefields.php - * @return array|null

    - * Returns all the facet.date fields as an array or NULL if none was set - *

    - */ - public function getFacetDateFields() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the value of the facet.date.gap parameter - * @link https://php.net/manual/en/solrquery.getfacetdategap.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getFacetDateGap($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the value of the facet.date.hardend parameter - * @link https://php.net/manual/en/solrquery.getfacetdatehardend.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getFacetDateHardEnd($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the value for the facet.date.other parameter - * @link https://php.net/manual/en/solrquery.getfacetdatehardend.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return array|null

    - * Returns an array on success and NULL if not set - *

    - */ - public function getFacetDateOther($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the lower bound for the first date range for all date faceting on this field - * @link https://php.net/manual/en/solrquery.getfacetdatestart.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getFacetDateStart($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns all the facet fields - * @link https://php.net/manual/en/solrquery.getfacetfields.php - * @return array|null

    - * Returns an array of all the fields and NULL if none was set - *

    - */ - public function getFacetFields() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum number of constraint counts that should be returned for the facet fields - * @link https://php.net/manual/en/solrquery.getfacetlimit.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getFacetLimit($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the value of the facet.method parameter - * @link https://php.net/manual/en/solrquery.getfacetmethod.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getFacetMethod($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the minimum counts for facet fields should be included in the response - * @link https://php.net/manual/en/solrquery.getfacetmincount.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getFacetMinCount($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the current state of the facet.missing parameter - * @link https://php.net/manual/en/solrquery.getfacetmissing.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getFacetMissing($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns an offset into the list of constraints to be used for pagination - * @link https://php.net/manual/en/solrquery.getfacetoffset.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getFacetOffset($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the facet prefix - * @link https://php.net/manual/en/solrquery.getfacetprefix.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getFacetPrefix($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns all the facet queries - * @link https://php.net/manual/en/solrquery.getfacetqueries.php - * @return string|null

    - * Returns an array on success and NULL if not set - *

    - */ - public function getFacetQueries() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the facet sort type - * @link https://php.net/manual/en/solrquery.getfacetsort.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return int|null

    - * Returns an integer (SolrQuery::FACET_SORT_INDEX or SolrQuery::FACET_SORT_COUNT) on success or NULL if not - * set. - *

    - */ - public function getFacetSort($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the list of fields that will be returned in the response - * @link https://php.net/manual/en/solrquery.getfields.php - * @return string|null

    - * Returns an array on success and NULL if not set - *

    - */ - public function getFields() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns an array of filter queries - * @link https://php.net/manual/en/solrquery.getfilterqueries.php - * @return string|null

    - * Returns an array on success and NULL if not set - *

    - */ - public function getFilterQueries() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns true if grouping is enabled - * https://secure.php.net/manual/en/solrquery.getgroup.php - * @return bool

    - * Returns true if grouping is enabled - *

    - */ - public function getGroup() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns group cache percent value - * @link https://php.net/manual/en/solrquery.getgroupcachepercent.php - * @return int

    - * Returns group cache percent value - *

    - */ - public function getGroupCachePercent() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the group.facet parameter value - * @link https://php.net/manual/en/solrquery.getgroupfacet.php - * @return bool

    - * Returns the group.facet parameter value - *

    - */ - public function getGroupFacet() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns group fields (group.field parameter values) - * @link https://php.net/manual/en/solrquery.getgroupfields.php - * @return array

    - * Returns group fields (group.field parameter values) - *

    - */ - public function getGroupFields() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the group.format value - * @link https://php.net/manual/en/solrquery.getgroupformat.php - * @return string

    - * Returns the group.format value - *

    - */ - public function getGroupFormat() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns group functions (group.func parameter values) - * @link https://php.net/manual/en/solrquery.getgroupfunctions.php - * @return array

    - * Returns group functions (group.func parameter values) - *

    - */ - public function getGroupFunctions() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the group.limit value - * @link https://php.net/manual/en/solrquery.getgrouplimit.php - * @return int

    - * Returns the group.limit value - *

    - */ - public function getGroupLimit() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the group.main value - * @link https://php.net/manual/en/solrquery.getgroupmain.php - * @return bool

    - * Returns the group.main value - *

    - */ - public function getGroupMain() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the group.ngroups value - * @link https://php.net/manual/en/solrquery.getgroupngroups.php - * @return bool

    - * Returns the group.ngroups value - *

    - */ - public function getGroupNGroups() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the group.offset value - * @link https://php.net/manual/en/solrquery.getgroupoffset.php - * @return bool

    - * Returns the group.offset value - *

    - */ - public function getGroupOffset() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns all the group.query parameter values - * @link https://php.net/manual/en/solrquery.getgroupqueries.php - * @return array

    - * Returns all the group.query parameter values - *

    - */ - public function getGroupQueries() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the group.sort value - * @link https://php.net/manual/en/solrquery.getgroupsortfields.php - * @return array

    - * Returns all the group.sort parameter values - *

    - */ - public function getGroupSortFields() {} - - /** - * (PECL solr >= 2.2.0)
    - * Returns the group.truncate value - * @link https://php.net/manual/en/solrquery.getgrouptruncate.php - * @return bool

    - * Returns the group.truncate value - *

    - */ - public function getGroupTruncate() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the state of the hl parameter - * @link https://php.net/manual/en/solrquery.gethighlight.php - * @return bool

    - * Returns the state of the hl parameter - *

    - */ - public function getHighlight() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the highlight field to use as backup or default - * @link https://php.net/manual/en/solrquery.gethighlightalternatefield.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getHighlightAlternateField($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns all the fields that Solr should generate highlighted snippets for - * @link https://php.net/manual/en/solrquery.gethighlightfields.php - * @return array|null

    - * Returns an array on success and NULL if not set - *

    - */ - public function getHighlightFields() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the formatter for the highlighted output - * @link https://php.net/manual/en/solrquery.gethighlightformatter.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getHighlightFormatter($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the text snippet generator for highlighted text - * @link https://php.net/manual/en/solrquery.gethighlightfragmenter.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getHighlightFragmenter($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the number of characters of fragments to consider for highlighting - * @link https://php.net/manual/en/solrquery.gethighlightfragsize.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getHighlightFragsize($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns whether or not to enable highlighting for range/wildcard/fuzzy/prefix queries - * @link https://php.net/manual/en/solrquery.gethighlighthighlightmultiterm.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getHighlightHighlightMultiTerm() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum number of characters of the field to return - * @link https://php.net/manual/en/solrquery.gethighlightmaxalternatefieldlength.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getHighlightMaxAlternateFieldLength($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum number of characters into a document to look for suitable snippets - * @link https://php.net/manual/en/solrquery.gethighlightmaxanalyzedchars.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getHighlightMaxAnalyzedChars() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns whether or not the collapse contiguous fragments into a single fragment - * @link https://php.net/manual/en/solrquery.gethighlightmergecontiguous.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getHighlightMergeContiguous($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum number of characters from a field when using the regex fragmenter - * @link https://php.net/manual/en/solrquery.gethighlightregexmaxanalyzedchars.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getHighlightRegexMaxAnalyzedChars() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the regular expression for fragmenting - * @link https://php.net/manual/en/solrquery.gethighlightregexpattern.php - * @return string

    - * Returns a string on success and NULL if not set - *

    - */ - public function getHighlightRegexPattern() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the deviation factor from the ideal fragment size - * @link https://php.net/manual/en/solrquery.gethighlightregexslop.php - * @return float|null

    - * Returns a double on success and NULL if not set. - *

    - */ - public function getHighlightRegexSlop() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns if a field will only be highlighted if the query matched in this particular field - * @link https://php.net/manual/en/solrquery.gethighlightrequirefieldmatch.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getHighlightRequireFieldMatch() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the text which appears after a highlighted term - * @link https://php.net/manual/en/solrquery.gethighlightsimplepost.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getHighlightSimplePost($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the text which appears before a highlighted term - * @link https://php.net/manual/en/solrquery.gethighlightsimplepre.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getHighlightSimplePre($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum number of highlighted snippets to generate per field - * @link https://php.net/manual/en/solrquery.gethighlightsnippets.php - * @param string $field_override [optional]

    - * The name of the field - *

    - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getHighlightSnippets($field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the state of the hl.usePhraseHighlighter parameter - * @link https://php.net/manual/en/solrquery.gethighlightusephrasehighlighter.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getHighlightUsePhraseHighlighter() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns whether or not MoreLikeThis results should be enabled - * @link https://php.net/manual/en/solrquery.getmlt.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getMlt() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns whether or not the query will be boosted by the interesting term relevance - * @link https://php.net/manual/en/solrquery.getmltboost.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getMltBoost() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the number of similar documents to return for each result - * @link https://php.net/manual/en/solrquery.getmltcount.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getMltCount() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns all the fields to use for similarity - * @link https://php.net/manual/en/solrquery.getmltfields.php - * @return array

    - * Returns an array on success and NULL if not set - *

    - */ - public function getMltFields() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum number of query terms that will be included in any generated query - * @link https://php.net/manual/en/solrquery.getmltmaxnumqueryterms.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getMltMaxNumQueryTerms() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum number of tokens to parse in each document field that is not stored with TermVector support - * @link https://php.net/manual/en/solrquery.getmltmaxnumtokens.php - * @return int

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getMltMaxNumTokens() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum word length above which words will be ignored - * @link https://php.net/manual/en/solrquery.getmltmaxwordlength.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getMltMaxWordLength() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the threshold frequency at which words will be ignored which do not occur in at least this many docs - * @link https://php.net/manual/en/solrquery.getmltmindocfrequency.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getMltMinDocFrequency() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the frequency below which terms will be ignored in the source document - * @link https://php.net/manual/en/solrquery.getmltmintermfrequency.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getMltMinTermFrequency() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the minimum word length below which words will be ignored - * @link https://php.net/manual/en/solrquery.getmltminwordlength.php - * @return int

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getMltMinWordLength() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the query fields and their boosts - * @link https://php.net/manual/en/solrquery.getmltqueryfields.php - * @return array|null

    - * Returns an array on success and NULL if not set - *

    - */ - public function getMltQueryFields() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the main query - * @link https://php.net/manual/en/solrquery.getquery.php - * @return string

    - * Returns a string on success and NULL if not set - *

    - */ - public function getQuery() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum number of documents - * @link https://php.net/manual/en/solrquery.getrows.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getRows() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns all the sort fields - * @link https://php.net/manual/en/solrquery.getsortfields.php - * @return array

    - * Returns an array on success and NULL if none of the parameters was set. - *

    - */ - public function getSortFields() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the offset in the complete result set - * @link https://php.net/manual/en/solrquery.getstart.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getStart() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns whether or not stats is enabled - * @link https://php.net/manual/en/solrquery.getstats.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getStats() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns all the stats facets that were set - * @link https://php.net/manual/en/solrquery.getstatsfacets.php - * @return array|null

    - * Returns an array on success and NULL if not set - *

    - */ - public function getStatsFacets() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns all the statistics fields - * @link https://php.net/manual/en/solrquery.getstatsfields.php - * @return array|null

    - * Returns an array on success and NULL if not set - *

    - */ - public function getStatsFields() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns whether or not the TermsComponent is enabled - * @link https://php.net/manual/en/solrquery.getterms.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getTerms() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the field from which the terms are retrieved - * @link https://php.net/manual/en/solrquery.gettermsfield.php - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getTermsField() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns whether or not to include the lower bound in the result set - * @link https://php.net/manual/en/solrquery.gettermsincludelowerbound.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getTermsIncludeLowerBound() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns whether or not to include the upper bound term in the result set - * @link https://php.net/manual/en/solrquery.gettermsincludeupperbound.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getTermsIncludeUpperBound() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum number of terms Solr should return - * @link https://php.net/manual/en/solrquery.gettermslimit.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getTermsLimit() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the term to start at - * @link https://php.net/manual/en/solrquery.gettermslowerbound.php - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getTermsLowerBound() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the maximum document frequency - * @link https://php.net/manual/en/solrquery.gettermsmaxcount.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getTermsMaxCount() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the minimum document frequency to return in order to be included - * @link https://php.net/manual/en/solrquery.gettermsmincount.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getTermsMinCount() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the term prefix - * @link https://php.net/manual/en/solrquery.gettermsprefix.php - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getTermsPrefix() {} - - /** - * (PECL solr >= 0.9.2)
    - * Whether or not to return raw characters - * @link https://php.net/manual/en/solrquery.gettermsreturnraw.php - * @return bool|null

    - * Returns a boolean on success and NULL if not set - *

    - */ - public function getTermsReturnRaw() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns an integer indicating how terms are sorted - * @link https://php.net/manual/en/solrquery.gettermssort.php - * @return int|null

    - * Returns an integer on success and NULL if not set
    - * SolrQuery::TERMS_SORT_INDEX indicates that the terms are returned by index order.
    - * SolrQuery::TERMS_SORT_COUNT implies that the terms are sorted by term frequency (highest count first) - *

    - */ - public function getTermsSort() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the term to stop at - * @link https://php.net/manual/en/solrquery.gettermsupperbound.php - * @return string|null

    - * Returns a string on success and NULL if not set - *

    - */ - public function getTermsUpperBound() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the time in milliseconds allowed for the query to finish - * @link https://php.net/manual/en/solrquery.gettimeallowed.php - * @return int|null

    - * Returns an integer on success and NULL if not set - *

    - */ - public function getTimeAllowed() {} - - /** - * (PECL solr >= 2.2.0)
    - * Removes an expand filter query - * @link https://php.net/manual/en/solrquery.removeexpandfilterquery.php - * @param string $fq - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeExpandFilterQuery($fq) {} - - /** - * (PECL solr >= 2.2.0)
    - * Removes an expand sort field from the expand.sort parameter. - * @link https://php.net/manual/en/solrquery.removeexpandsortfield.php - * @param string $field

    - * Field name - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeExpandSortField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes one of the facet date fields - * @link https://php.net/manual/en/solrquery.removefacetdatefield.php - * @param string $field

    - * The name of the date field to remove - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeFacetDateField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes one of the facet.date.other parameters - * @link https://php.net/manual/en/solrquery.removefacetdateother.php - * @param string $value

    - * The value - *

    - * @param string $field_override [optional]

    - * The name of the field. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeFacetDateOther($value, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes one of the facet.date parameters - * @link https://php.net/manual/en/solrquery.removefacetfield.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeFacetField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes one of the facet.query parameters - * @link https://php.net/manual/en/solrquery.removefacetquery.php - * @param string $value

    - * The value - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeFacetQuery($value) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes a field from the list of fields - * @link https://php.net/manual/en/solrquery.removefield.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes a filter query - * @link https://php.net/manual/en/solrquery.removefilterquery.php - * @param string $fq - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeFilterQuery($fq) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes one of the fields used for highlighting - * @link https://php.net/manual/en/solrquery.removehighlightfield.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeHighlightField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes one of the moreLikeThis fields - * @link https://php.net/manual/en/solrquery.removemltfield.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeMltField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes one of the moreLikeThis query fields - * @link https://php.net/manual/en/solrquery.removemltqueryfield.php - * @param string $queryField

    - * The query field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeMltQueryField($queryField) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes one of the sort fields - * @link https://php.net/manual/en/solrquery.removesortfield.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeSortField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes one of the stats.facet parameters - * @link https://php.net/manual/en/solrquery.removestatsfacet.php - * @param string $value

    - * The value - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeStatsFacet($value) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes one of the stats.field parameters - * @link https://php.net/manual/en/solrquery.removestatsfield.php - * @param string $field

    - * The name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function removeStatsField($field) {} - - /** - * (PECL solr >= 0.9.2)
    - * Toggles the echoHandler parameter - * @link https://php.net/manual/en/solrquery.setechohandler.php - * @param bool $flag

    - * TRUE or FALSE - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setEchoHandler($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Determines what kind of parameters to include in the response - * @link https://php.net/manual/en/solrquery.setechoparams.php - * @param string $type

    - * The type of parameters to include: - *

    - *
      - *
    • none: don't include any request parameters for debugging
    • - *
    • explicit: include the parameters explicitly specified by the client in the request
    • - *
    • all: include all parameters involved in this request, either specified explicitly by the client, or - * implicit because of the request handler configuration.
    • - *
    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setEchoParams($type) {} - - /** - * (PECL solr >= 2.2.0)
    - * Enables/Disables the Expand Component - * @link https://php.net/manual/en/solrquery.setexpand.php - * @param bool $value

    - * Bool flag - * - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setExpand($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * Sets the expand.q parameter - * @link https://php.net/manual/en/solrquery.setexpandquery.php - * @param string $q - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setExpandQuery($q) {} - - /** - * (PECL solr >= 2.2.0)
    - * Sets the number of rows to display in each group (expand.rows). Server Default 5 - * @link https://php.net/manual/en/solrquery.setexpandrows.php - * @param integer $value - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setExpandRows($value) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the explainOther common query parameter - * @link https://php.net/manual/en/solrquery.setexplainother.php - * @param string $query

    - * The Lucene query to identify a set of documents - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setExplainOther($query) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to the facet parameter. Enables or disables facetting - * @link https://php.net/manual/en/solrquery.setfacet.php - * @param bool $flag

    - * TRUE enables faceting and FALSE disables it. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacet($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to facet.date.end - * @link https://php.net/manual/en/solrquery.setfacetdateend.php - * @param string $value

    - * See facet.date.end - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetDateEnd($value, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to facet.date.gap - * @link https://php.net/manual/en/solrquery.setfacetdategap.php - * @param string $value

    - * See facet.date.gap - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetDateGap($value, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to facet.date.hardend - * @link https://php.net/manual/en/solrquery.setfacetdatehardend.php - * @param bool $value

    - * See facet.date.hardend - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetDateHardEnd($value, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to facet.date.start - * @link https://php.net/manual/en/solrquery.setfacetdatestart.php - * @param string $value

    - * See facet.date.start - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetDateStart($value, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the minimum document frequency used for determining term count - * @link https://php.net/manual/en/solrquery.setfacetenumcachemindefaultfrequency.php - * @param int $frequency

    - * The minimum frequency - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetEnumCacheMinDefaultFrequency($frequency, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to facet.limit - * @link https://php.net/manual/en/solrquery.setfacetlimit.php - * @param int $limit

    - * The maximum number of constraint counts - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetLimit($limit, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies the type of algorithm to use when faceting a field - * @link https://php.net/manual/en/solrquery.setfacetmethod.php - * @param string $method

    - * The method to use. - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetMethod($method, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to facet.mincount - * @link https://php.net/manual/en/solrquery.setfacetmincount.php - * @param int $mincount

    - * The minimum count - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetMinCount($mincount, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Maps to facet.missing - * @link https://php.net/manual/en/solrquery.setfacetmissing.php - * @param bool $flag

    - * TRUE turns this feature on. FALSE disables it. - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetMissing($flag, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the offset into the list of constraints to allow for pagination - * @link https://php.net/manual/en/solrquery.setfacetoffset.php - * @param int $offset

    - * The offset - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetOffset($offset, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies a string prefix with which to limits the terms on which to facet - * @link https://php.net/manual/en/solrquery.setfacetprefix.php - * @param string $prefix

    - * The prefix string - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetPrefix($prefix, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Determines the ordering of the facet field constraints - * @link https://php.net/manual/en/solrquery.setfacetsort.php - * @param int $facetSort

    - * Use SolrQuery::FACET_SORT_INDEX for sorting by index order or SolrQuery::FACET_SORT_COUNT for sorting by count. - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setFacetSort($facetSort, $field_override) {} - - /** - * (PECL solr >= 2.2.0)
    - * Enable/Disable result grouping (group parameter) - * @link https://php.net/manual/en/solrquery.setgroup.php - * @param bool $value - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setGroup($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * Enables caching for result grouping - * @link https://php.net/manual/en/solrquery.setgroupcachepercent.php - * @param int $percent

    - * Setting this parameter to a number greater than 0 enables caching for result grouping. Result Grouping executes - * two searches; this option caches the second search. The server default value is 0. Testing has shown that group - * caching only improves search time with Boolean, wildcard, and fuzzy queries. For simple queries like term or - * "match all" queries, group caching degrades performance. group.cache.percent parameter. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setGroupCachePercent($percent) {} - - /** - * (PECL solr >= 2.2.0)
    - * Sets group.facet parameter - * @link https://php.net/manual/en/solrquery.setgroupfacet.php - * @param bool $value - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setGroupFacet($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * Sets the group format, result structure (group.format parameter). - * @link https://php.net/manual/en/solrquery.setgroupformat.php - * @param string $value

    - * Sets the group.format parameter. If this parameter is set to simple, the grouped documents are presented in a - * single flat list, and the start and rows parameters affect the numbers of documents instead of groups.
    - * Accepts: grouped/simple - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setGroupFormat($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * Specifies the number of results to return for each group. The server default value is 1. - * @link https://php.net/manual/en/solrquery.setgrouplimit.php - * @param int $value - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setGroupLimit($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * If true, the result of the first field grouping command is used as the main result list in the response, using - * group.format=simple. - * @link https://php.net/manual/en/solrquery.setgroupmain.php - * @param string $value - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setGroupMain($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * If true, Solr includes the number of groups that have matched the query in the results. - * @link https://php.net/manual/en/solrquery.setgroupngroups.php - * @param bool $value - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setGroupNGroups($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * Sets the group.offset parameter. - * @link https://php.net/manual/en/solrquery.setgroupoffset.php - * @param int $value - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setGroupOffset($value) {} - - /** - * (PECL solr >= 2.2.0)
    - * If true, facet counts are based on the most relevant document of each group matching the query. - * @link https://php.net/manual/en/solrquery.setgrouptruncate.php - * @param bool $value - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setGroupTruncate($value) {} - - /** - * (PECL solr >= 0.9.2)
    - * Enables or disables highlighting - * @link https://php.net/manual/en/solrquery.sethighlight.php - * @param bool $flag

    - * Setting it to TRUE enables highlighted snippets to be generated in the query response.
    - * Setting it to FALSE disables highlighting - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlight($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies the backup field to use - * @link https://php.net/manual/en/solrquery.sethighlightalternatefield.php - * @param string $field

    - * The name of the backup field - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightAlternateField($field, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specify a formatter for the highlight output - * @link https://php.net/manual/en/solrquery.sethighlightformatter.php - * @param string $formatter

    - * Currently the only legal value is "simple" - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightFormatter($formatter, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets a text snippet generator for highlighted text - * @link https://php.net/manual/en/solrquery.sethighlightfragmenter.php - * @param string $fragmenter

    - * The standard fragmenter is gap. Another option is regex, which tries to create fragments that resembles a certain - * regular expression - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightFragmenter($fragmenter, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * The size of fragments to consider for highlighting - * @link https://php.net/manual/en/solrquery.sethighlightfragsize.php - * @param int $size

    - * The size, in characters, of fragments to consider for highlighting - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightFragsize($size, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Use SpanScorer to highlight phrase terms - * @link https://php.net/manual/en/solrquery.sethighlighthighlightmultiterm.php - * @param bool $flag

    - * Whether or not to use SpanScorer to highlight phrase terms only when they appear within the query phrase in the - * document. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightHighlightMultiTerm($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the maximum number of characters of the field to return - * @link https://php.net/manual/en/solrquery.sethighlightmaxalternatefieldlength.php - * @param int $fieldLength

    - * The length of the field - *

    - *

    - * If SolrQuery::setHighlightAlternateField() was passed the value TRUE, this parameter specifies the maximum - * number of characters of the field to return - *

    - *

    - * Any value less than or equal to 0 means unlimited. - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightMaxAlternateFieldLength($fieldLength, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies the number of characters into a document to look for suitable snippets - * @link https://php.net/manual/en/solrquery.sethighlightmaxanalyzedchars.php - * @param int $value

    - * The number of characters into a document to look for suitable snippets - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightMaxAnalyzedChars($value) {} - - /** - * (PECL solr >= 0.9.2)
    - * Whether or not to collapse contiguous fragments into a single fragment - * @link https://php.net/manual/en/solrquery.sethighlightmergecontiguous.php - * @param bool $flag

    - * Whether or not to collapse contiguous fragments into a single fragment - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightMergeContiguous($flag, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specify the maximum number of characters to analyze - * @link https://php.net/manual/en/solrquery.sethighlightregexmaxanalyzedchars.php - * @param int $maxAnalyzedChars

    - * The maximum number of characters to analyze from a field when using the regex fragmenter - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightRegexMaxAnalyzedChars($maxAnalyzedChars) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specify the regular expression for fragmenting - * @link https://php.net/manual/en/solrquery.sethighlightregexpattern.php - * @param string $value

    - * The regular expression for fragmenting. This could be used to extract sentences - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightRegexPattern($value) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the factor by which the regex fragmenter can stray from the ideal fragment size - * @link https://php.net/manual/en/solrquery.sethighlightregexslop.php - * @param float $factor

    - * The factor by which the regex fragmenter can stray from the ideal fragment size (specified by - * SolrQuery::setHighlightFragsize) to accommodate the regular expression. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightRegexSlop($factor) {} - - /** - * (PECL solr >= 0.9.2)
    - * Require field matching during highlighting - * @link https://php.net/manual/en/solrquery.sethighlightrequirefieldmatch.php - * @param bool $flag

    - * If TRUE, then a field will only be highlighted if the query matched in this particular field.
    - * This will only work if SolrQuery::setHighlightUsePhraseHighlighter() was set to TRUE. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightRequireFieldMatch($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the text which appears after a highlighted term - * @link https://php.net/manual/en/solrquery.sethighlightsimplepost.php - * @param string $simplePost

    - * Sets the text which appears after a highlighted term. The default is </em> - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightSimplePost($simplePost, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the text which appears before a highlighted term - * @link https://php.net/manual/en/solrquery.sethighlightsimplepre.php - * @param string $simplePre

    - * Sets the text which appears before a highlighted term. The default is <em> - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightSimplePre($simplePre, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the maximum number of highlighted snippets to generate per field - * @link https://php.net/manual/en/solrquery.sethighlightsnippets.php - * @param int $value

    - * The maximum number of highlighted snippets to generate per field - *

    - * @param string $field_override [optional]

    - * Name of the field - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightSnippets($value, $field_override) {} - - /** - * (PECL solr >= 0.9.2)
    - * Whether to highlight phrase terms only when they appear within the query phrase - * @link https://php.net/manual/en/solrquery.sethighlightusephrasehighlighter.php - * @param bool $flag

    - * Whether or not to use SpanScorer to highlight phrase terms only when they appear within the query phrase in the - * document. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setHighlightUsePhraseHighlighter($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Enables or disables moreLikeThis - * @link https://php.net/manual/en/solrquery.setmlt.php - * @param bool $flag

    - * TRUE enables it and FALSE turns it off. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setMlt($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Set if the query will be boosted by the interesting term relevance - * @link https://php.net/manual/en/solrquery.setmltboost.php - * @param bool $flag

    - * Sets to TRUE or FALSE - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setMltBoost($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Set the number of similar documents to return for each result - * @link https://php.net/manual/en/solrquery.setmltcount.php - * @param int $count

    - * The number of similar documents to return for each result - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setMltCount($count) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the maximum number of query terms included - * @link https://php.net/manual/en/solrquery.setmltmaxnumqueryterms.php - * @param int $value

    - * The maximum number of query terms that will be included in any generated query - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setMltMaxNumQueryTerms($value) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies the maximum number of tokens to parse - * @link https://php.net/manual/en/solrquery.setmltmaxnumtokens.php - * @param int $value

    - * The maximum number of tokens to parse - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setMltMaxNumTokens($value) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the maximum word length - * @link https://php.net/manual/en/solrquery.setmltmaxwordlength.php - * @param int $maxWordLength

    - * The maximum word length above which words will be ignored - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setMltMaxWordLength($maxWordLength) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the mltMinDoc frequency - * @link https://php.net/manual/en/solrquery.setmltmindocfrequency.php - * @param int $minDocFrequency

    - * Sets the frequency at which words will be ignored which do not occur in at least this many docs. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setMltMinDocFrequency($minDocFrequency) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the frequency below which terms will be ignored in the source docs - * @link https://php.net/manual/en/solrquery.setmltmintermfrequency.php - * @param int $minTermFrequency

    - * The frequency below which terms will be ignored in the source docs - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setMltMinTermFrequency($minTermFrequency) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the minimum word length - * @link https://php.net/manual/en/solrquery.setmltminwordlength.php - * @param int $minWordLength

    - * The minimum word length below which words will be ignored - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setMltMinWordLength($minWordLength) {} - - /** - * (PECL solr >= 0.9.2)
    - * Exclude the header from the returned results - * @link https://php.net/manual/en/solrquery.setomitheader.php - * @param bool $flag

    - * TRUE excludes the header from the result. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setOmitHeader($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the search query - * @link https://php.net/manual/en/solrquery.setquery.php - * @param string $query

    - * The search query - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setQuery($query) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies the maximum number of rows to return in the result - * @link https://php.net/manual/en/solrquery.setrows.php - * @param int $rows

    - * The maximum number of rows to return - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setRows($rows) {} - - /** - * (PECL solr >= 0.9.2)
    - * Flag to show debug information - * @link https://php.net/manual/en/solrquery.setshowdebuginfo.php - * @param bool $flag

    - * Whether to show debug info. TRUE or FALSE - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setShowDebugInfo($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies the number of rows to skip - * @link https://php.net/manual/en/solrquery.setstart.php - * @param int $start

    - * The number of rows to skip. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setStart($start) {} - - /** - * (PECL solr >= 0.9.2)
    - * Enables or disables the Stats component - * @link https://php.net/manual/en/solrquery.setstats.php - * @param bool $flag

    - * TRUE turns on the stats component and FALSE disables it. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setStats($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Enables or disables the TermsComponent - * @link https://php.net/manual/en/solrquery.setterms.php - * @param bool $flag

    - * TRUE enables it. FALSE turns it off - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTerms($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the name of the field to get the Terms from - * @link https://php.net/manual/en/solrquery.settermsfield.php - * @param string $fieldname

    - * The field name - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsField($fieldname) {} - - /** - * (PECL solr >= 0.9.2)
    - * Include the lower bound term in the result set - * @link https://php.net/manual/en/solrquery.settermsincludelowerbound.php - * @param bool $flag

    - * Include the lower bound term in the result set - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsIncludeLowerBound($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Include the upper bound term in the result set - * @link https://php.net/manual/en/solrquery.settermsincludeupperbound.php - * @param bool $flag

    - * TRUE or FALSE - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsIncludeUpperBound($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the maximum number of terms to return - * @link https://php.net/manual/en/solrquery.settermslimit.php - * @param int $limit

    - * The maximum number of terms to return. All the terms will be returned if the limit is negative. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsLimit($limit) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies the Term to start from - * @link https://php.net/manual/en/solrquery.settermslowerbound.php - * @param string $lowerBound

    - * The lower bound Term - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsLowerBound($lowerBound) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the maximum document frequency - * @link https://php.net/manual/en/solrquery.settermsmaxcount.php - * @param int $frequency

    - * The maximum document frequency. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsMaxCount($frequency) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the minimum document frequency - * @link https://php.net/manual/en/solrquery.settermsmincount.php - * @param int $frequency

    - * The minimum frequency - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsMinCount($frequency) {} - - /** - * (PECL solr >= 0.9.2)
    - * Restrict matches to terms that start with the prefix - * @link https://php.net/manual/en/solrquery.settermsprefix.php - * @param string $prefix

    - * Restrict matches to terms that start with the prefix - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsPrefix($prefix) {} - - /** - * (PECL solr >= 0.9.2)
    - * Return the raw characters of the indexed term - * @link https://php.net/manual/en/solrquery.settermsreturnraw.php - * @param bool $flag

    - * TRUE or FALSE - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsReturnRaw($flag) {} - - /** - * (PECL solr >= 0.9.2)
    - * Specifies how to sort the returned terms - * @link https://php.net/manual/en/solrquery.settermssort.php - * @param int $sortType

    - * If SolrQuery::TERMS_SORT_COUNT, sorts the terms by the term frequency (highest count first).
    - * If SolrQuery::TERMS_SORT_INDEX, returns the terms in index order - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsSort($sortType) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the term to stop at - * @link https://php.net/manual/en/solrquery.settermsupperbound.php - * @param string $upperBound

    - * The term to stop at - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTermsUpperBound($upperBound) {} - - /** - * (PECL solr >= 0.9.2)
    - * The time allowed for search to finish - * @link https://php.net/manual/en/solrquery.settimeallowed.php - * @param int $timeAllowed

    - * The time allowed for a search to finish. This value only applies to the search and not to requests in general. - * Time is in milliseconds. Values less than or equal to zero implies no time restriction. Partial results may be - * returned, if there are any. - *

    - * @return SolrQuery

    - * Returns the current SolrQuery object, if the return value is used. - *

    - */ - public function setTimeAllowed($timeAllowed) {} - +class SolrQuery extends SolrModifiableParams implements Serializable +{ + /** @var int Used to specify that the sorting should be in acending order */ + public const ORDER_ASC = 0; + + /** @var int Used to specify that the sorting should be in descending order */ + public const ORDER_DESC = 1; + + /** @var int Used to specify that the facet should sort by index */ + public const FACET_SORT_INDEX = 0; + + /** @var int Used to specify that the facet should sort by count */ + public const FACET_SORT_COUNT = 1; + + /** @var int Used in the TermsComponent */ + public const TERMS_SORT_INDEX = 0; + + /** @var int Used in the TermsComponent */ + public const TERMS_SORT_COUNT = 1; + + /** + * (PECL solr >= 2.2.0)
    + * Overrides main filter query, determines which documents to include in the main group. + * @link https://php.net/manual/en/solrquery.addexpandfilterquery.php + * @param string $fq + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function addExpandFilterQuery($fq) {} + + /** + * (PECL solr >= 2.2.0)
    + * Orders the documents within the expanded groups (expand.sort parameter). + * @link https://php.net/manual/en/solrquery.addexpandsortfield.php + * @param string $field

    + * Field name + *

    + * @param string $order [optional]

    + * Order ASC/DESC, utilizes SolrQuery::ORDER_* constants. + *

    + *

    + * Default: SolrQuery::ORDER_DESC + *

    + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function addExpandSortField($field, $order) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to facet.date + * @link https://php.net/manual/en/solrquery.addfacetdatefield.php + * @param string $dateField

    + * The name of the date field. + *

    + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function addFacetDateField($dateField) {} + + /** + * (PECL solr >= 0.9.2)
    + * Adds another facet.date.other parameter + * @link https://php.net/manual/en/solrquery.addfacetdateother.php + * @param string $value

    + * The value to use. + *

    + * @param string $field_override

    + * The field name for the override. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function addFacetDateOther($value, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Adds another field to the facet + * @link https://php.net/manual/en/solrquery.addfacetfield.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function addFacetField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Adds a facet query + * @link https://php.net/manual/en/solrquery.addfacetquery.php + * @param string $facetQuery

    + * The facet query + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function addFacetQuery($facetQuery) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies which fields to return in the result + * @link https://php.net/manual/en/solrquery.addfield.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function addField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies a filter query + * @link https://php.net/manual/en/solrquery.addfilterquery.php + * @param string $fq

    + * The filter query + *

    + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function addFilterQuery($fq) {} + + /** + * (PECL solr >= 2.2.0)
    + * Add a field to be used to group results. + * @link https://php.net/manual/en/solrquery.addgroupfield.php + * @param string $value + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function addGroupField($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * Allows grouping results based on the unique values of a function query (group.func parameter). + * @link https://php.net/manual/en/solrquery.addgroupfunction.php + * @param string $value + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function addGroupFunction($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * Allows grouping of documents that match the given query. + * @link https://php.net/manual/en/solrquery.addgroupquery.php + * @param string $value + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function addGroupQuery($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * Add a group sort field (group.sort parameter). + * @link https://php.net/manual/en/solrquery.addgroupsortfield.php + * @param string $field

    + * Field name + *

    + * @param int $order

    + * Order ASC/DESC, utilizes SolrQuery::ORDER_* constants + *

    + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function addGroupSortField($field, $order) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to hl.fl + * @link https://php.net/manual/en/solrquery.addhighlightfield.php + * @param string $field

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function addHighlightField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets a field to use for similarity + * @link https://php.net/manual/en/solrquery.addmltfield.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function addMltField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to mlt.qf + * @link https://php.net/manual/en/solrquery.addmltqueryfield.php + * @param string $field

    + * The name of the field + *

    + * @param float $boost

    + * Its boost value + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function addMltQueryField($field, $boost) {} + + /** + * (PECL solr >= 0.9.2)
    + * Used to control how the results should be sorted + * @link https://php.net/manual/en/solrquery.addsortfield.php + * @param string $field

    + * The name of the field + *

    + * @param int $order

    + * The sort direction. This should be either SolrQuery::ORDER_ASC or SolrQuery::ORDER_DESC. + *

    + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function addSortField($field, $order = SolrQuery::ORDER_DESC) {} + + /** + * (PECL solr >= 0.9.2)
    + * Requests a return of sub results for values within the given facet + * @link https://php.net/manual/en/solrquery.addstatsfacet.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function addStatsFacet($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to stats.field parameter + * @link https://php.net/manual/en/solrquery.addstatsfield.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function addStatsField($field) {} + + /** + * (No version information available, might only be in Git)
    + * Collapses the result set to a single document per group + * @link https://php.net/manual/en/solrquery.collapse.php + * @param SolrCollapseFunction $collapseFunction + * @return SolrQuery

    + * Returns a SolrQuery object. + *

    + */ + public function collapse(SolrCollapseFunction $collapseFunction) {} + + /** + * (PECL solr >= 0.9.2)
    + * SolrQuery constructor. + * @link https://php.net/manual/en/solrquery.construct.php + * @param string $q

    + * Optional search query + *

    + */ + public function __construct($q = '') {} + + /** + * (PECL solr >= 0.9.2)
    + * Destructor + * @link https://php.net/manual/en/solrquery.destruct.php + */ + public function __destruct() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns true if group expanding is enabled + * @link https://php.net/manual/en/solrquery.getexpand.php + * @return bool

    + * Returns TRUE if group expanding is enabled + *

    + */ + public function getExpand() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the expand filter queries + * @link https://php.net/manual/en/solrquery.getexpandfilterqueries.php + * @return array

    + * Returns the expand filter queries + *

    + */ + public function getExpandFilterQueries() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the expand query expand.q parameter + * @link https://php.net/manual/en/solrquery.getexpandquery.php + * @return array

    + * Returns the expand query expand.q parameter + *

    + */ + public function getExpandQuery() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns The number of rows to display in each group (expand.rows) + * @link https://php.net/manual/en/solrquery.getexpandrows.php + * @return int

    + * Returns The number of rows to display in each group (expand.rows) + *

    + */ + public function getExpandRows() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns an array of fields + * @link https://php.net/manual/en/solrquery.getexpandsortfields.php + * @return array

    + * Returns an array of fields + *

    + */ + public function getExpandSortFields() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the value of the facet parameter + * @link https://php.net/manual/en/solrquery.getfacet.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getFacet() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the value for the facet.date.end parameter + * @link https://php.net/manual/en/solrquery.getfacetdateend.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getFacetDateEnd($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns all the facet.date fields + * @link https://php.net/manual/en/solrquery.getfacetdatefields.php + * @return array|null

    + * Returns all the facet.date fields as an array or NULL if none was set + *

    + */ + public function getFacetDateFields() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the value of the facet.date.gap parameter + * @link https://php.net/manual/en/solrquery.getfacetdategap.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getFacetDateGap($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the value of the facet.date.hardend parameter + * @link https://php.net/manual/en/solrquery.getfacetdatehardend.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getFacetDateHardEnd($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the value for the facet.date.other parameter + * @link https://php.net/manual/en/solrquery.getfacetdatehardend.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return array|null

    + * Returns an array on success and NULL if not set + *

    + */ + public function getFacetDateOther($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the lower bound for the first date range for all date faceting on this field + * @link https://php.net/manual/en/solrquery.getfacetdatestart.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getFacetDateStart($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns all the facet fields + * @link https://php.net/manual/en/solrquery.getfacetfields.php + * @return array|null

    + * Returns an array of all the fields and NULL if none was set + *

    + */ + public function getFacetFields() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum number of constraint counts that should be returned for the facet fields + * @link https://php.net/manual/en/solrquery.getfacetlimit.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getFacetLimit($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the value of the facet.method parameter + * @link https://php.net/manual/en/solrquery.getfacetmethod.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getFacetMethod($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the minimum counts for facet fields should be included in the response + * @link https://php.net/manual/en/solrquery.getfacetmincount.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getFacetMinCount($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the current state of the facet.missing parameter + * @link https://php.net/manual/en/solrquery.getfacetmissing.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getFacetMissing($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns an offset into the list of constraints to be used for pagination + * @link https://php.net/manual/en/solrquery.getfacetoffset.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getFacetOffset($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the facet prefix + * @link https://php.net/manual/en/solrquery.getfacetprefix.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getFacetPrefix($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns all the facet queries + * @link https://php.net/manual/en/solrquery.getfacetqueries.php + * @return string|null

    + * Returns an array on success and NULL if not set + *

    + */ + public function getFacetQueries() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the facet sort type + * @link https://php.net/manual/en/solrquery.getfacetsort.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return int|null

    + * Returns an integer (SolrQuery::FACET_SORT_INDEX or SolrQuery::FACET_SORT_COUNT) on success or NULL if not + * set. + *

    + */ + public function getFacetSort($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the list of fields that will be returned in the response + * @link https://php.net/manual/en/solrquery.getfields.php + * @return string|null

    + * Returns an array on success and NULL if not set + *

    + */ + public function getFields() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns an array of filter queries + * @link https://php.net/manual/en/solrquery.getfilterqueries.php + * @return string|null

    + * Returns an array on success and NULL if not set + *

    + */ + public function getFilterQueries() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns true if grouping is enabled + * https://secure.php.net/manual/en/solrquery.getgroup.php + * @return bool

    + * Returns true if grouping is enabled + *

    + */ + public function getGroup() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns group cache percent value + * @link https://php.net/manual/en/solrquery.getgroupcachepercent.php + * @return int

    + * Returns group cache percent value + *

    + */ + public function getGroupCachePercent() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the group.facet parameter value + * @link https://php.net/manual/en/solrquery.getgroupfacet.php + * @return bool

    + * Returns the group.facet parameter value + *

    + */ + public function getGroupFacet() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns group fields (group.field parameter values) + * @link https://php.net/manual/en/solrquery.getgroupfields.php + * @return array

    + * Returns group fields (group.field parameter values) + *

    + */ + public function getGroupFields() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the group.format value + * @link https://php.net/manual/en/solrquery.getgroupformat.php + * @return string

    + * Returns the group.format value + *

    + */ + public function getGroupFormat() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns group functions (group.func parameter values) + * @link https://php.net/manual/en/solrquery.getgroupfunctions.php + * @return array

    + * Returns group functions (group.func parameter values) + *

    + */ + public function getGroupFunctions() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the group.limit value + * @link https://php.net/manual/en/solrquery.getgrouplimit.php + * @return int

    + * Returns the group.limit value + *

    + */ + public function getGroupLimit() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the group.main value + * @link https://php.net/manual/en/solrquery.getgroupmain.php + * @return bool

    + * Returns the group.main value + *

    + */ + public function getGroupMain() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the group.ngroups value + * @link https://php.net/manual/en/solrquery.getgroupngroups.php + * @return bool

    + * Returns the group.ngroups value + *

    + */ + public function getGroupNGroups() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the group.offset value + * @link https://php.net/manual/en/solrquery.getgroupoffset.php + * @return bool

    + * Returns the group.offset value + *

    + */ + public function getGroupOffset() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns all the group.query parameter values + * @link https://php.net/manual/en/solrquery.getgroupqueries.php + * @return array

    + * Returns all the group.query parameter values + *

    + */ + public function getGroupQueries() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the group.sort value + * @link https://php.net/manual/en/solrquery.getgroupsortfields.php + * @return array

    + * Returns all the group.sort parameter values + *

    + */ + public function getGroupSortFields() {} + + /** + * (PECL solr >= 2.2.0)
    + * Returns the group.truncate value + * @link https://php.net/manual/en/solrquery.getgrouptruncate.php + * @return bool

    + * Returns the group.truncate value + *

    + */ + public function getGroupTruncate() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the state of the hl parameter + * @link https://php.net/manual/en/solrquery.gethighlight.php + * @return bool

    + * Returns the state of the hl parameter + *

    + */ + public function getHighlight() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the highlight field to use as backup or default + * @link https://php.net/manual/en/solrquery.gethighlightalternatefield.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getHighlightAlternateField($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns all the fields that Solr should generate highlighted snippets for + * @link https://php.net/manual/en/solrquery.gethighlightfields.php + * @return array|null

    + * Returns an array on success and NULL if not set + *

    + */ + public function getHighlightFields() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the formatter for the highlighted output + * @link https://php.net/manual/en/solrquery.gethighlightformatter.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getHighlightFormatter($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the text snippet generator for highlighted text + * @link https://php.net/manual/en/solrquery.gethighlightfragmenter.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getHighlightFragmenter($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the number of characters of fragments to consider for highlighting + * @link https://php.net/manual/en/solrquery.gethighlightfragsize.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getHighlightFragsize($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns whether or not to enable highlighting for range/wildcard/fuzzy/prefix queries + * @link https://php.net/manual/en/solrquery.gethighlighthighlightmultiterm.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getHighlightHighlightMultiTerm() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum number of characters of the field to return + * @link https://php.net/manual/en/solrquery.gethighlightmaxalternatefieldlength.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getHighlightMaxAlternateFieldLength($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum number of characters into a document to look for suitable snippets + * @link https://php.net/manual/en/solrquery.gethighlightmaxanalyzedchars.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getHighlightMaxAnalyzedChars() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns whether or not the collapse contiguous fragments into a single fragment + * @link https://php.net/manual/en/solrquery.gethighlightmergecontiguous.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getHighlightMergeContiguous($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum number of characters from a field when using the regex fragmenter + * @link https://php.net/manual/en/solrquery.gethighlightregexmaxanalyzedchars.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getHighlightRegexMaxAnalyzedChars() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the regular expression for fragmenting + * @link https://php.net/manual/en/solrquery.gethighlightregexpattern.php + * @return string

    + * Returns a string on success and NULL if not set + *

    + */ + public function getHighlightRegexPattern() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the deviation factor from the ideal fragment size + * @link https://php.net/manual/en/solrquery.gethighlightregexslop.php + * @return float|null

    + * Returns a double on success and NULL if not set. + *

    + */ + public function getHighlightRegexSlop() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns if a field will only be highlighted if the query matched in this particular field + * @link https://php.net/manual/en/solrquery.gethighlightrequirefieldmatch.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getHighlightRequireFieldMatch() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the text which appears after a highlighted term + * @link https://php.net/manual/en/solrquery.gethighlightsimplepost.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getHighlightSimplePost($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the text which appears before a highlighted term + * @link https://php.net/manual/en/solrquery.gethighlightsimplepre.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getHighlightSimplePre($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum number of highlighted snippets to generate per field + * @link https://php.net/manual/en/solrquery.gethighlightsnippets.php + * @param string $field_override [optional]

    + * The name of the field + *

    + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getHighlightSnippets($field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the state of the hl.usePhraseHighlighter parameter + * @link https://php.net/manual/en/solrquery.gethighlightusephrasehighlighter.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getHighlightUsePhraseHighlighter() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns whether or not MoreLikeThis results should be enabled + * @link https://php.net/manual/en/solrquery.getmlt.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getMlt() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns whether or not the query will be boosted by the interesting term relevance + * @link https://php.net/manual/en/solrquery.getmltboost.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getMltBoost() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the number of similar documents to return for each result + * @link https://php.net/manual/en/solrquery.getmltcount.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getMltCount() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns all the fields to use for similarity + * @link https://php.net/manual/en/solrquery.getmltfields.php + * @return array

    + * Returns an array on success and NULL if not set + *

    + */ + public function getMltFields() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum number of query terms that will be included in any generated query + * @link https://php.net/manual/en/solrquery.getmltmaxnumqueryterms.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getMltMaxNumQueryTerms() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum number of tokens to parse in each document field that is not stored with TermVector support + * @link https://php.net/manual/en/solrquery.getmltmaxnumtokens.php + * @return int

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getMltMaxNumTokens() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum word length above which words will be ignored + * @link https://php.net/manual/en/solrquery.getmltmaxwordlength.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getMltMaxWordLength() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the threshold frequency at which words will be ignored which do not occur in at least this many docs + * @link https://php.net/manual/en/solrquery.getmltmindocfrequency.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getMltMinDocFrequency() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the frequency below which terms will be ignored in the source document + * @link https://php.net/manual/en/solrquery.getmltmintermfrequency.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getMltMinTermFrequency() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the minimum word length below which words will be ignored + * @link https://php.net/manual/en/solrquery.getmltminwordlength.php + * @return int

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getMltMinWordLength() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the query fields and their boosts + * @link https://php.net/manual/en/solrquery.getmltqueryfields.php + * @return array|null

    + * Returns an array on success and NULL if not set + *

    + */ + public function getMltQueryFields() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the main query + * @link https://php.net/manual/en/solrquery.getquery.php + * @return string

    + * Returns a string on success and NULL if not set + *

    + */ + public function getQuery() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum number of documents + * @link https://php.net/manual/en/solrquery.getrows.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getRows() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns all the sort fields + * @link https://php.net/manual/en/solrquery.getsortfields.php + * @return array

    + * Returns an array on success and NULL if none of the parameters was set. + *

    + */ + public function getSortFields() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the offset in the complete result set + * @link https://php.net/manual/en/solrquery.getstart.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getStart() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns whether or not stats is enabled + * @link https://php.net/manual/en/solrquery.getstats.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getStats() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns all the stats facets that were set + * @link https://php.net/manual/en/solrquery.getstatsfacets.php + * @return array|null

    + * Returns an array on success and NULL if not set + *

    + */ + public function getStatsFacets() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns all the statistics fields + * @link https://php.net/manual/en/solrquery.getstatsfields.php + * @return array|null

    + * Returns an array on success and NULL if not set + *

    + */ + public function getStatsFields() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns whether or not the TermsComponent is enabled + * @link https://php.net/manual/en/solrquery.getterms.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getTerms() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the field from which the terms are retrieved + * @link https://php.net/manual/en/solrquery.gettermsfield.php + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getTermsField() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns whether or not to include the lower bound in the result set + * @link https://php.net/manual/en/solrquery.gettermsincludelowerbound.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getTermsIncludeLowerBound() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns whether or not to include the upper bound term in the result set + * @link https://php.net/manual/en/solrquery.gettermsincludeupperbound.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getTermsIncludeUpperBound() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum number of terms Solr should return + * @link https://php.net/manual/en/solrquery.gettermslimit.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getTermsLimit() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the term to start at + * @link https://php.net/manual/en/solrquery.gettermslowerbound.php + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getTermsLowerBound() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the maximum document frequency + * @link https://php.net/manual/en/solrquery.gettermsmaxcount.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getTermsMaxCount() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the minimum document frequency to return in order to be included + * @link https://php.net/manual/en/solrquery.gettermsmincount.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getTermsMinCount() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the term prefix + * @link https://php.net/manual/en/solrquery.gettermsprefix.php + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getTermsPrefix() {} + + /** + * (PECL solr >= 0.9.2)
    + * Whether or not to return raw characters + * @link https://php.net/manual/en/solrquery.gettermsreturnraw.php + * @return bool|null

    + * Returns a boolean on success and NULL if not set + *

    + */ + public function getTermsReturnRaw() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns an integer indicating how terms are sorted + * @link https://php.net/manual/en/solrquery.gettermssort.php + * @return int|null

    + * Returns an integer on success and NULL if not set
    + * SolrQuery::TERMS_SORT_INDEX indicates that the terms are returned by index order.
    + * SolrQuery::TERMS_SORT_COUNT implies that the terms are sorted by term frequency (highest count first) + *

    + */ + public function getTermsSort() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the term to stop at + * @link https://php.net/manual/en/solrquery.gettermsupperbound.php + * @return string|null

    + * Returns a string on success and NULL if not set + *

    + */ + public function getTermsUpperBound() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the time in milliseconds allowed for the query to finish + * @link https://php.net/manual/en/solrquery.gettimeallowed.php + * @return int|null

    + * Returns an integer on success and NULL if not set + *

    + */ + public function getTimeAllowed() {} + + /** + * (PECL solr >= 2.2.0)
    + * Removes an expand filter query + * @link https://php.net/manual/en/solrquery.removeexpandfilterquery.php + * @param string $fq + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeExpandFilterQuery($fq) {} + + /** + * (PECL solr >= 2.2.0)
    + * Removes an expand sort field from the expand.sort parameter. + * @link https://php.net/manual/en/solrquery.removeexpandsortfield.php + * @param string $field

    + * Field name + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeExpandSortField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes one of the facet date fields + * @link https://php.net/manual/en/solrquery.removefacetdatefield.php + * @param string $field

    + * The name of the date field to remove + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeFacetDateField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes one of the facet.date.other parameters + * @link https://php.net/manual/en/solrquery.removefacetdateother.php + * @param string $value

    + * The value + *

    + * @param string $field_override [optional]

    + * The name of the field. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeFacetDateOther($value, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes one of the facet.date parameters + * @link https://php.net/manual/en/solrquery.removefacetfield.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeFacetField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes one of the facet.query parameters + * @link https://php.net/manual/en/solrquery.removefacetquery.php + * @param string $value

    + * The value + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeFacetQuery($value) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes a field from the list of fields + * @link https://php.net/manual/en/solrquery.removefield.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes a filter query + * @link https://php.net/manual/en/solrquery.removefilterquery.php + * @param string $fq + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeFilterQuery($fq) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes one of the fields used for highlighting + * @link https://php.net/manual/en/solrquery.removehighlightfield.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeHighlightField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes one of the moreLikeThis fields + * @link https://php.net/manual/en/solrquery.removemltfield.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeMltField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes one of the moreLikeThis query fields + * @link https://php.net/manual/en/solrquery.removemltqueryfield.php + * @param string $queryField

    + * The query field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeMltQueryField($queryField) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes one of the sort fields + * @link https://php.net/manual/en/solrquery.removesortfield.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeSortField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes one of the stats.facet parameters + * @link https://php.net/manual/en/solrquery.removestatsfacet.php + * @param string $value

    + * The value + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeStatsFacet($value) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes one of the stats.field parameters + * @link https://php.net/manual/en/solrquery.removestatsfield.php + * @param string $field

    + * The name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function removeStatsField($field) {} + + /** + * (PECL solr >= 0.9.2)
    + * Toggles the echoHandler parameter + * @link https://php.net/manual/en/solrquery.setechohandler.php + * @param bool $flag

    + * TRUE or FALSE + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setEchoHandler($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Determines what kind of parameters to include in the response + * @link https://php.net/manual/en/solrquery.setechoparams.php + * @param string $type

    + * The type of parameters to include: + *

    + *
      + *
    • none: don't include any request parameters for debugging
    • + *
    • explicit: include the parameters explicitly specified by the client in the request
    • + *
    • all: include all parameters involved in this request, either specified explicitly by the client, or + * implicit because of the request handler configuration.
    • + *
    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setEchoParams($type) {} + + /** + * (PECL solr >= 2.2.0)
    + * Enables/Disables the Expand Component + * @link https://php.net/manual/en/solrquery.setexpand.php + * @param bool $value

    + * Bool flag + * + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setExpand($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * Sets the expand.q parameter + * @link https://php.net/manual/en/solrquery.setexpandquery.php + * @param string $q + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setExpandQuery($q) {} + + /** + * (PECL solr >= 2.2.0)
    + * Sets the number of rows to display in each group (expand.rows). Server Default 5 + * @link https://php.net/manual/en/solrquery.setexpandrows.php + * @param int $value + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setExpandRows($value) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the explainOther common query parameter + * @link https://php.net/manual/en/solrquery.setexplainother.php + * @param string $query

    + * The Lucene query to identify a set of documents + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setExplainOther($query) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to the facet parameter. Enables or disables facetting + * @link https://php.net/manual/en/solrquery.setfacet.php + * @param bool $flag

    + * TRUE enables faceting and FALSE disables it. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacet($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to facet.date.end + * @link https://php.net/manual/en/solrquery.setfacetdateend.php + * @param string $value

    + * See facet.date.end + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetDateEnd($value, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to facet.date.gap + * @link https://php.net/manual/en/solrquery.setfacetdategap.php + * @param string $value

    + * See facet.date.gap + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetDateGap($value, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to facet.date.hardend + * @link https://php.net/manual/en/solrquery.setfacetdatehardend.php + * @param bool $value

    + * See facet.date.hardend + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetDateHardEnd($value, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to facet.date.start + * @link https://php.net/manual/en/solrquery.setfacetdatestart.php + * @param string $value

    + * See facet.date.start + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetDateStart($value, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the minimum document frequency used for determining term count + * @link https://php.net/manual/en/solrquery.setfacetenumcachemindefaultfrequency.php + * @param int $frequency

    + * The minimum frequency + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetEnumCacheMinDefaultFrequency($frequency, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to facet.limit + * @link https://php.net/manual/en/solrquery.setfacetlimit.php + * @param int $limit

    + * The maximum number of constraint counts + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetLimit($limit, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies the type of algorithm to use when faceting a field + * @link https://php.net/manual/en/solrquery.setfacetmethod.php + * @param string $method

    + * The method to use. + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetMethod($method, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to facet.mincount + * @link https://php.net/manual/en/solrquery.setfacetmincount.php + * @param int $mincount

    + * The minimum count + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetMinCount($mincount, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Maps to facet.missing + * @link https://php.net/manual/en/solrquery.setfacetmissing.php + * @param bool $flag

    + * TRUE turns this feature on. FALSE disables it. + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetMissing($flag, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the offset into the list of constraints to allow for pagination + * @link https://php.net/manual/en/solrquery.setfacetoffset.php + * @param int $offset

    + * The offset + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetOffset($offset, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies a string prefix with which to limits the terms on which to facet + * @link https://php.net/manual/en/solrquery.setfacetprefix.php + * @param string $prefix

    + * The prefix string + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetPrefix($prefix, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Determines the ordering of the facet field constraints + * @link https://php.net/manual/en/solrquery.setfacetsort.php + * @param int $facetSort

    + * Use SolrQuery::FACET_SORT_INDEX for sorting by index order or SolrQuery::FACET_SORT_COUNT for sorting by count. + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setFacetSort($facetSort, $field_override) {} + + /** + * (PECL solr >= 2.2.0)
    + * Enable/Disable result grouping (group parameter) + * @link https://php.net/manual/en/solrquery.setgroup.php + * @param bool $value + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setGroup($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * Enables caching for result grouping + * @link https://php.net/manual/en/solrquery.setgroupcachepercent.php + * @param int $percent

    + * Setting this parameter to a number greater than 0 enables caching for result grouping. Result Grouping executes + * two searches; this option caches the second search. The server default value is 0. Testing has shown that group + * caching only improves search time with Boolean, wildcard, and fuzzy queries. For simple queries like term or + * "match all" queries, group caching degrades performance. group.cache.percent parameter. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setGroupCachePercent($percent) {} + + /** + * (PECL solr >= 2.2.0)
    + * Sets group.facet parameter + * @link https://php.net/manual/en/solrquery.setgroupfacet.php + * @param bool $value + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setGroupFacet($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * Sets the group format, result structure (group.format parameter). + * @link https://php.net/manual/en/solrquery.setgroupformat.php + * @param string $value

    + * Sets the group.format parameter. If this parameter is set to simple, the grouped documents are presented in a + * single flat list, and the start and rows parameters affect the numbers of documents instead of groups.
    + * Accepts: grouped/simple + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setGroupFormat($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * Specifies the number of results to return for each group. The server default value is 1. + * @link https://php.net/manual/en/solrquery.setgrouplimit.php + * @param int $value + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setGroupLimit($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * If true, the result of the first field grouping command is used as the main result list in the response, using + * group.format=simple. + * @link https://php.net/manual/en/solrquery.setgroupmain.php + * @param string $value + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setGroupMain($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * If true, Solr includes the number of groups that have matched the query in the results. + * @link https://php.net/manual/en/solrquery.setgroupngroups.php + * @param bool $value + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setGroupNGroups($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * Sets the group.offset parameter. + * @link https://php.net/manual/en/solrquery.setgroupoffset.php + * @param int $value + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setGroupOffset($value) {} + + /** + * (PECL solr >= 2.2.0)
    + * If true, facet counts are based on the most relevant document of each group matching the query. + * @link https://php.net/manual/en/solrquery.setgrouptruncate.php + * @param bool $value + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setGroupTruncate($value) {} + + /** + * (PECL solr >= 0.9.2)
    + * Enables or disables highlighting + * @link https://php.net/manual/en/solrquery.sethighlight.php + * @param bool $flag

    + * Setting it to TRUE enables highlighted snippets to be generated in the query response.
    + * Setting it to FALSE disables highlighting + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlight($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies the backup field to use + * @link https://php.net/manual/en/solrquery.sethighlightalternatefield.php + * @param string $field

    + * The name of the backup field + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightAlternateField($field, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specify a formatter for the highlight output + * @link https://php.net/manual/en/solrquery.sethighlightformatter.php + * @param string $formatter

    + * Currently the only legal value is "simple" + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightFormatter($formatter, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets a text snippet generator for highlighted text + * @link https://php.net/manual/en/solrquery.sethighlightfragmenter.php + * @param string $fragmenter

    + * The standard fragmenter is gap. Another option is regex, which tries to create fragments that resembles a certain + * regular expression + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightFragmenter($fragmenter, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * The size of fragments to consider for highlighting + * @link https://php.net/manual/en/solrquery.sethighlightfragsize.php + * @param int $size

    + * The size, in characters, of fragments to consider for highlighting + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightFragsize($size, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Use SpanScorer to highlight phrase terms + * @link https://php.net/manual/en/solrquery.sethighlighthighlightmultiterm.php + * @param bool $flag

    + * Whether or not to use SpanScorer to highlight phrase terms only when they appear within the query phrase in the + * document. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightHighlightMultiTerm($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the maximum number of characters of the field to return + * @link https://php.net/manual/en/solrquery.sethighlightmaxalternatefieldlength.php + * @param int $fieldLength

    + * The length of the field + *

    + *

    + * If SolrQuery::setHighlightAlternateField() was passed the value TRUE, this parameter specifies the maximum + * number of characters of the field to return + *

    + *

    + * Any value less than or equal to 0 means unlimited. + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightMaxAlternateFieldLength($fieldLength, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies the number of characters into a document to look for suitable snippets + * @link https://php.net/manual/en/solrquery.sethighlightmaxanalyzedchars.php + * @param int $value

    + * The number of characters into a document to look for suitable snippets + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightMaxAnalyzedChars($value) {} + + /** + * (PECL solr >= 0.9.2)
    + * Whether or not to collapse contiguous fragments into a single fragment + * @link https://php.net/manual/en/solrquery.sethighlightmergecontiguous.php + * @param bool $flag

    + * Whether or not to collapse contiguous fragments into a single fragment + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightMergeContiguous($flag, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specify the maximum number of characters to analyze + * @link https://php.net/manual/en/solrquery.sethighlightregexmaxanalyzedchars.php + * @param int $maxAnalyzedChars

    + * The maximum number of characters to analyze from a field when using the regex fragmenter + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightRegexMaxAnalyzedChars($maxAnalyzedChars) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specify the regular expression for fragmenting + * @link https://php.net/manual/en/solrquery.sethighlightregexpattern.php + * @param string $value

    + * The regular expression for fragmenting. This could be used to extract sentences + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightRegexPattern($value) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the factor by which the regex fragmenter can stray from the ideal fragment size + * @link https://php.net/manual/en/solrquery.sethighlightregexslop.php + * @param float $factor

    + * The factor by which the regex fragmenter can stray from the ideal fragment size (specified by + * SolrQuery::setHighlightFragsize) to accommodate the regular expression. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightRegexSlop($factor) {} + + /** + * (PECL solr >= 0.9.2)
    + * Require field matching during highlighting + * @link https://php.net/manual/en/solrquery.sethighlightrequirefieldmatch.php + * @param bool $flag

    + * If TRUE, then a field will only be highlighted if the query matched in this particular field.
    + * This will only work if SolrQuery::setHighlightUsePhraseHighlighter() was set to TRUE. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightRequireFieldMatch($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the text which appears after a highlighted term + * @link https://php.net/manual/en/solrquery.sethighlightsimplepost.php + * @param string $simplePost

    + * Sets the text which appears after a highlighted term. The default is </em> + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightSimplePost($simplePost, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the text which appears before a highlighted term + * @link https://php.net/manual/en/solrquery.sethighlightsimplepre.php + * @param string $simplePre

    + * Sets the text which appears before a highlighted term. The default is <em> + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightSimplePre($simplePre, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the maximum number of highlighted snippets to generate per field + * @link https://php.net/manual/en/solrquery.sethighlightsnippets.php + * @param int $value

    + * The maximum number of highlighted snippets to generate per field + *

    + * @param string $field_override [optional]

    + * Name of the field + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightSnippets($value, $field_override) {} + + /** + * (PECL solr >= 0.9.2)
    + * Whether to highlight phrase terms only when they appear within the query phrase + * @link https://php.net/manual/en/solrquery.sethighlightusephrasehighlighter.php + * @param bool $flag

    + * Whether or not to use SpanScorer to highlight phrase terms only when they appear within the query phrase in the + * document. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setHighlightUsePhraseHighlighter($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Enables or disables moreLikeThis + * @link https://php.net/manual/en/solrquery.setmlt.php + * @param bool $flag

    + * TRUE enables it and FALSE turns it off. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setMlt($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Set if the query will be boosted by the interesting term relevance + * @link https://php.net/manual/en/solrquery.setmltboost.php + * @param bool $flag

    + * Sets to TRUE or FALSE + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setMltBoost($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Set the number of similar documents to return for each result + * @link https://php.net/manual/en/solrquery.setmltcount.php + * @param int $count

    + * The number of similar documents to return for each result + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setMltCount($count) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the maximum number of query terms included + * @link https://php.net/manual/en/solrquery.setmltmaxnumqueryterms.php + * @param int $value

    + * The maximum number of query terms that will be included in any generated query + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setMltMaxNumQueryTerms($value) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies the maximum number of tokens to parse + * @link https://php.net/manual/en/solrquery.setmltmaxnumtokens.php + * @param int $value

    + * The maximum number of tokens to parse + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setMltMaxNumTokens($value) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the maximum word length + * @link https://php.net/manual/en/solrquery.setmltmaxwordlength.php + * @param int $maxWordLength

    + * The maximum word length above which words will be ignored + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setMltMaxWordLength($maxWordLength) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the mltMinDoc frequency + * @link https://php.net/manual/en/solrquery.setmltmindocfrequency.php + * @param int $minDocFrequency

    + * Sets the frequency at which words will be ignored which do not occur in at least this many docs. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setMltMinDocFrequency($minDocFrequency) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the frequency below which terms will be ignored in the source docs + * @link https://php.net/manual/en/solrquery.setmltmintermfrequency.php + * @param int $minTermFrequency

    + * The frequency below which terms will be ignored in the source docs + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setMltMinTermFrequency($minTermFrequency) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the minimum word length + * @link https://php.net/manual/en/solrquery.setmltminwordlength.php + * @param int $minWordLength

    + * The minimum word length below which words will be ignored + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setMltMinWordLength($minWordLength) {} + + /** + * (PECL solr >= 0.9.2)
    + * Exclude the header from the returned results + * @link https://php.net/manual/en/solrquery.setomitheader.php + * @param bool $flag

    + * TRUE excludes the header from the result. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setOmitHeader($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the search query + * @link https://php.net/manual/en/solrquery.setquery.php + * @param string $query

    + * The search query + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setQuery($query) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies the maximum number of rows to return in the result + * @link https://php.net/manual/en/solrquery.setrows.php + * @param int $rows

    + * The maximum number of rows to return + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setRows($rows) {} + + /** + * (PECL solr >= 0.9.2)
    + * Flag to show debug information + * @link https://php.net/manual/en/solrquery.setshowdebuginfo.php + * @param bool $flag

    + * Whether to show debug info. TRUE or FALSE + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setShowDebugInfo($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies the number of rows to skip + * @link https://php.net/manual/en/solrquery.setstart.php + * @param int $start

    + * The number of rows to skip. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setStart($start) {} + + /** + * (PECL solr >= 0.9.2)
    + * Enables or disables the Stats component + * @link https://php.net/manual/en/solrquery.setstats.php + * @param bool $flag

    + * TRUE turns on the stats component and FALSE disables it. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setStats($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Enables or disables the TermsComponent + * @link https://php.net/manual/en/solrquery.setterms.php + * @param bool $flag

    + * TRUE enables it. FALSE turns it off + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTerms($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the name of the field to get the Terms from + * @link https://php.net/manual/en/solrquery.settermsfield.php + * @param string $fieldname

    + * The field name + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsField($fieldname) {} + + /** + * (PECL solr >= 0.9.2)
    + * Include the lower bound term in the result set + * @link https://php.net/manual/en/solrquery.settermsincludelowerbound.php + * @param bool $flag

    + * Include the lower bound term in the result set + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsIncludeLowerBound($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Include the upper bound term in the result set + * @link https://php.net/manual/en/solrquery.settermsincludeupperbound.php + * @param bool $flag

    + * TRUE or FALSE + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsIncludeUpperBound($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the maximum number of terms to return + * @link https://php.net/manual/en/solrquery.settermslimit.php + * @param int $limit

    + * The maximum number of terms to return. All the terms will be returned if the limit is negative. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsLimit($limit) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies the Term to start from + * @link https://php.net/manual/en/solrquery.settermslowerbound.php + * @param string $lowerBound

    + * The lower bound Term + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsLowerBound($lowerBound) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the maximum document frequency + * @link https://php.net/manual/en/solrquery.settermsmaxcount.php + * @param int $frequency

    + * The maximum document frequency. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsMaxCount($frequency) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the minimum document frequency + * @link https://php.net/manual/en/solrquery.settermsmincount.php + * @param int $frequency

    + * The minimum frequency + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsMinCount($frequency) {} + + /** + * (PECL solr >= 0.9.2)
    + * Restrict matches to terms that start with the prefix + * @link https://php.net/manual/en/solrquery.settermsprefix.php + * @param string $prefix

    + * Restrict matches to terms that start with the prefix + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsPrefix($prefix) {} + + /** + * (PECL solr >= 0.9.2)
    + * Return the raw characters of the indexed term + * @link https://php.net/manual/en/solrquery.settermsreturnraw.php + * @param bool $flag

    + * TRUE or FALSE + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsReturnRaw($flag) {} + + /** + * (PECL solr >= 0.9.2)
    + * Specifies how to sort the returned terms + * @link https://php.net/manual/en/solrquery.settermssort.php + * @param int $sortType

    + * If SolrQuery::TERMS_SORT_COUNT, sorts the terms by the term frequency (highest count first).
    + * If SolrQuery::TERMS_SORT_INDEX, returns the terms in index order + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsSort($sortType) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the term to stop at + * @link https://php.net/manual/en/solrquery.settermsupperbound.php + * @param string $upperBound

    + * The term to stop at + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTermsUpperBound($upperBound) {} + + /** + * (PECL solr >= 0.9.2)
    + * The time allowed for search to finish + * @link https://php.net/manual/en/solrquery.settimeallowed.php + * @param int $timeAllowed

    + * The time allowed for a search to finish. This value only applies to the search and not to requests in general. + * Time is in milliseconds. Values less than or equal to zero implies no time restriction. Partial results may be + * returned, if there are any. + *

    + * @return SolrQuery

    + * Returns the current SolrQuery object, if the return value is used. + *

    + */ + public function setTimeAllowed($timeAllowed) {} } diff --git a/solr/Responses/SolrGenericResponse.php b/solr/Responses/SolrGenericResponse.php index 1e3f1e381..dc09673a4 100644 --- a/solr/Responses/SolrGenericResponse.php +++ b/solr/Responses/SolrGenericResponse.php @@ -12,20 +12,19 @@ * This class represents a response from the solr server. * @link https://php.net/manual/en/class.solrgenericresponse.php */ -final class SolrGenericResponse extends SolrResponse { - - /** - * (PECL solr >= 0.9.2)
    - * SolrGenericResponse constructor. - * @link https://php.net/manual/en/solrgenericresponse.construct.php - */ - public function __construct() {} - - /** - * (PECL solr >= 0.9.2)
    - * Destructor - * @link https://php.net/manual/en/solrgenericresponse.destruct.php - */ - public function __destruct() {} +final class SolrGenericResponse extends SolrResponse +{ + /** + * (PECL solr >= 0.9.2)
    + * SolrGenericResponse constructor. + * @link https://php.net/manual/en/solrgenericresponse.construct.php + */ + public function __construct() {} + /** + * (PECL solr >= 0.9.2)
    + * Destructor + * @link https://php.net/manual/en/solrgenericresponse.destruct.php + */ + public function __destruct() {} } diff --git a/solr/Responses/SolrPingResponse.php b/solr/Responses/SolrPingResponse.php index 6204ae3f2..72ce7d5d5 100644 --- a/solr/Responses/SolrPingResponse.php +++ b/solr/Responses/SolrPingResponse.php @@ -12,31 +12,30 @@ * This class represents a response to a ping request to the server * @link https://php.net/manual/en/class.solrpingresponse.php */ -final class SolrPingResponse extends SolrResponse { +final class SolrPingResponse extends SolrResponse +{ + /** + * (PECL solr >= 0.9.2)
    + * SolrPingResponse constructor. + * @link https://php.net/manual/en/solrpingresponse.construct.php + */ + public function __construct() {} - /** - * (PECL solr >= 0.9.2)
    - * SolrPingResponse constructor. - * @link https://php.net/manual/en/solrpingresponse.construct.php - */ - public function __construct() {} - - /** - * (PECL solr >= 0.9.2)
    - * Destructor - * @link https://php.net/manual/en/solrpingresponse.destruct.php - */ - public function __destruct() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the response from the server - * @link https://php.net/manual/en/solrpingresponse.getresponse.php - * @return string

    - * Returns an empty string. (Returns the response from the server. This should be empty because the request as a - * HEAD request.) - *

    - */ - public function getResponse() {} + /** + * (PECL solr >= 0.9.2)
    + * Destructor + * @link https://php.net/manual/en/solrpingresponse.destruct.php + */ + public function __destruct() {} + /** + * (PECL solr >= 0.9.2)
    + * Returns the response from the server + * @link https://php.net/manual/en/solrpingresponse.getresponse.php + * @return string

    + * Returns an empty string. (Returns the response from the server. This should be empty because the request as a + * HEAD request.) + *

    + */ + public function getResponse() {} } diff --git a/solr/Responses/SolrQueryResponse.php b/solr/Responses/SolrQueryResponse.php index 85c1a9563..ba666bf44 100644 --- a/solr/Responses/SolrQueryResponse.php +++ b/solr/Responses/SolrQueryResponse.php @@ -12,20 +12,19 @@ * This class represents a response to a query request. * @link https://php.net/manual/en/class.solrqueryresponse.php */ -final class SolrQueryResponse extends SolrResponse { - - /** - * (PECL solr >= 0.9.2)
    - * SolrQueryResponse constructor. - * @link https://php.net/manual/en/solrqueryresponse.construct.php - */ - public function __construct() {} - - /** - * (PECL solr >= 0.9.2)
    - * Destructor - * @link https://php.net/manual/en/solrqueryresponse.destruct.php - */ - public function __destruct() {} +final class SolrQueryResponse extends SolrResponse +{ + /** + * (PECL solr >= 0.9.2)
    + * SolrQueryResponse constructor. + * @link https://php.net/manual/en/solrqueryresponse.construct.php + */ + public function __construct() {} + /** + * (PECL solr >= 0.9.2)
    + * Destructor + * @link https://php.net/manual/en/solrqueryresponse.destruct.php + */ + public function __destruct() {} } diff --git a/solr/Responses/SolrResponse.php b/solr/Responses/SolrResponse.php index 7e632f0ce..f76b3dcd7 100644 --- a/solr/Responses/SolrResponse.php +++ b/solr/Responses/SolrResponse.php @@ -12,156 +12,155 @@ * This class represents a response from the Solr server. * @link https://php.net/manual/en/class.solrresponse.php */ -abstract class SolrResponse { - - /** @var int Documents should be parsed as SolrObject instances */ - const PARSE_SOLR_OBJ = 0; - - /** @var int Documents should be parsed as SolrDocument instances. */ - const PARSE_SOLR_DOC = 1; - - /** @var int The http status of the response. */ - protected $http_status; - - /** @var int Whether to parse the solr documents as SolrObject or SolrDocument instances. */ - protected $parser_mode; - - /** @var bool Was there an error during the request */ - protected $success; - - /** @var string Detailed message on http status */ - protected $http_status_message; - - /** @var string The request URL */ - protected $http_request_url; - - /** @var string A string of raw headers sent during the request. */ - protected $http_raw_request_headers; - - /** @var string The raw request sent to the server */ - protected $http_raw_request; - - /** @var string Response headers from the Solr server. */ - protected $http_raw_response_headers; - - /** @var string The response message from the server. */ - protected $http_raw_response; - - /** @var string The response in PHP serialized format. */ - protected $http_digested_response; - - /** - * (PECL solr >= 0.9.2)
    - * Returns the XML response as serialized PHP data - * @link https://php.net/manual/en/solrresponse.getdigestedresponse.php - * @return string

    - * Returns the XML response as serialized PHP data - *

    - */ - public function getDigestedResponse() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the HTTP status of the response - * @link https://php.net/manual/en/solrresponse.gethttpstatus.php - * @return int

    - * Returns the HTTP status of the response. - *

    - */ - public function getHttpStatus() {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns more details on the HTTP status - * @link https://php.net/manual/en/solrresponse.gethttpstatusmessage.php - * @return string

    - * Returns more details on the HTTP status - *

    - */ - public function getHttpStatusMessage () {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the raw request sent to the Solr server - * @link https://php.net/manual/en/solrresponse.getrawrequest.php - * @return string

    - * Returns the raw request sent to the Solr server - *

    - */ - public function getRawRequest () {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the raw request headers sent to the Solr server - * @link https://php.net/manual/en/solrresponse.getrawrequestheaders.php - * @return string

    - * Returns the raw request headers sent to the Solr server - *

    - */ - public function getRawRequestHeaders () {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the raw response from the server - * @link https://php.net/manual/en/solrresponse.getrawresponse.php - * @return string

    - * Returns the raw response from the server. - *

    - */ - public function getRawResponse () {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the raw response headers from the server - * @link https://php.net/manual/en/solrresponse.getrawresponseheaders.php - * @return string

    - * Returns the raw response headers from the server. - *

    - */ - public function getRawResponseHeaders () {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the full URL the request was sent to - * @link https://php.net/manual/en/solrresponse.getrequesturl.php - * @return string

    - * Returns the full URL the request was sent to - *

    - */ - public function getRequestUrl () {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns a SolrObject representing the XML response from the server - * @link https://php.net/manual/en/solrresponse.getresponse.php - * @return SolrObject

    - * Returns a SolrObject representing the XML response from the server - *

    - */ - public function getResponse () {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the parse mode - * @link https://php.net/manual/en/solrresponse.setparsemode.php - * @param int $parser_mode
      - *
    • SolrResponse::PARSE_SOLR_DOC parses documents in SolrDocument instances.
    • - *
    • SolrResponse::PARSE_SOLR_OBJ parses document into SolrObjects.
    • - *
    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function setParseMode ($parser_mode = 0) {} - - /** - * (PECL solr >= 0.9.2)
    - * Was the request a success - * @link https://php.net/manual/en/solrresponse.success.php - * @return bool

    - * Returns TRUE if it was successful and FALSE if it was not. - *

    - */ - public function success () {} - +abstract class SolrResponse +{ + /** @var int Documents should be parsed as SolrObject instances */ + public const PARSE_SOLR_OBJ = 0; + + /** @var int Documents should be parsed as SolrDocument instances. */ + public const PARSE_SOLR_DOC = 1; + + /** @var int The http status of the response. */ + protected $http_status; + + /** @var int Whether to parse the solr documents as SolrObject or SolrDocument instances. */ + protected $parser_mode; + + /** @var bool Was there an error during the request */ + protected $success; + + /** @var string Detailed message on http status */ + protected $http_status_message; + + /** @var string The request URL */ + protected $http_request_url; + + /** @var string A string of raw headers sent during the request. */ + protected $http_raw_request_headers; + + /** @var string The raw request sent to the server */ + protected $http_raw_request; + + /** @var string Response headers from the Solr server. */ + protected $http_raw_response_headers; + + /** @var string The response message from the server. */ + protected $http_raw_response; + + /** @var string The response in PHP serialized format. */ + protected $http_digested_response; + + /** + * (PECL solr >= 0.9.2)
    + * Returns the XML response as serialized PHP data + * @link https://php.net/manual/en/solrresponse.getdigestedresponse.php + * @return string

    + * Returns the XML response as serialized PHP data + *

    + */ + public function getDigestedResponse() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the HTTP status of the response + * @link https://php.net/manual/en/solrresponse.gethttpstatus.php + * @return int

    + * Returns the HTTP status of the response. + *

    + */ + public function getHttpStatus() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns more details on the HTTP status + * @link https://php.net/manual/en/solrresponse.gethttpstatusmessage.php + * @return string

    + * Returns more details on the HTTP status + *

    + */ + public function getHttpStatusMessage() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the raw request sent to the Solr server + * @link https://php.net/manual/en/solrresponse.getrawrequest.php + * @return string

    + * Returns the raw request sent to the Solr server + *

    + */ + public function getRawRequest() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the raw request headers sent to the Solr server + * @link https://php.net/manual/en/solrresponse.getrawrequestheaders.php + * @return string

    + * Returns the raw request headers sent to the Solr server + *

    + */ + public function getRawRequestHeaders() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the raw response from the server + * @link https://php.net/manual/en/solrresponse.getrawresponse.php + * @return string

    + * Returns the raw response from the server. + *

    + */ + public function getRawResponse() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the raw response headers from the server + * @link https://php.net/manual/en/solrresponse.getrawresponseheaders.php + * @return string

    + * Returns the raw response headers from the server. + *

    + */ + public function getRawResponseHeaders() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns the full URL the request was sent to + * @link https://php.net/manual/en/solrresponse.getrequesturl.php + * @return string

    + * Returns the full URL the request was sent to + *

    + */ + public function getRequestUrl() {} + + /** + * (PECL solr >= 0.9.2)
    + * Returns a SolrObject representing the XML response from the server + * @link https://php.net/manual/en/solrresponse.getresponse.php + * @return SolrObject

    + * Returns a SolrObject representing the XML response from the server + *

    + */ + public function getResponse() {} + + /** + * (PECL solr >= 0.9.2)
    + * Sets the parse mode + * @link https://php.net/manual/en/solrresponse.setparsemode.php + * @param int $parser_mode
      + *
    • SolrResponse::PARSE_SOLR_DOC parses documents in SolrDocument instances.
    • + *
    • SolrResponse::PARSE_SOLR_OBJ parses document into SolrObjects.
    • + *
    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function setParseMode($parser_mode = 0) {} + + /** + * (PECL solr >= 0.9.2)
    + * Was the request a success + * @link https://php.net/manual/en/solrresponse.success.php + * @return bool

    + * Returns TRUE if it was successful and FALSE if it was not. + *

    + */ + public function success() {} } diff --git a/solr/Responses/SolrUpdateResponse.php b/solr/Responses/SolrUpdateResponse.php index 9c5e53d99..3c81f67f2 100644 --- a/solr/Responses/SolrUpdateResponse.php +++ b/solr/Responses/SolrUpdateResponse.php @@ -12,20 +12,19 @@ * This class represents a response to an update request. * @link https://php.net/manual/en/class.solrupdateresponse.php */ -final class SolrUpdateResponse extends SolrResponse { - - /** - * (PECL solr >= 0.9.2)
    - * SolrUpdateResponse constructor. - * @link https://php.net/manual/en/solrupdateresponse.construct.php - */ - public function __construct() {} - - /** - * (PECL solr >= 0.9.2)
    - * Destructor - * @link https://php.net/manual/en/solrupdateresponse.destruct.php - */ - public function __destruct() {} +final class SolrUpdateResponse extends SolrResponse +{ + /** + * (PECL solr >= 0.9.2)
    + * SolrUpdateResponse constructor. + * @link https://php.net/manual/en/solrupdateresponse.construct.php + */ + public function __construct() {} + /** + * (PECL solr >= 0.9.2)
    + * Destructor + * @link https://php.net/manual/en/solrupdateresponse.destruct.php + */ + public function __destruct() {} } diff --git a/solr/SolrClient.php b/solr/SolrClient.php index 0a4dd60c3..99a1f725a 100644 --- a/solr/SolrClient.php +++ b/solr/SolrClient.php @@ -13,486 +13,485 @@ * not supported. * @link https://php.net/manual/en/class.solrclient.php */ -final class SolrClient { - - /** @var int Used when updating the search servlet. */ - const SEARCH_SERVLET_TYPE = 1; - - /** @var int Used when updating the update servlet. */ - const UPDATE_SERVLET_TYPE = 2; - - /** @var int Used when updating the threads servlet. */ - const THREADS_SERVLET_TYPE = 4; - - /** @var int Used when updating the ping servlet. */ - const PING_SERVLET_TYPE = 8; - - /** @var int Used when updating the terms servlet. */ - const TERMS_SERVLET_TYPE = 16; - - /** @var int Used when retrieving system information from the system servlet. */ - const SYSTEM_SERVLET_TYPE = 32; - - /** @var string This is the initial value for the search servlet. */ - const DEFAULT_SEARCH_SERVLET = 'select'; - - /** @var string This is the initial value for the update servlet. */ - const DEFAULT_UPDATE_SERVLET = 'update'; - - /** @var string This is the initial value for the threads servlet. */ - const DEFAULT_THREADS_SERVLET = 'admin/threads'; - - /** @var string This is the initial value for the ping servlet. */ - const DEFAULT_PING_SERVLET = 'admin/ping'; - - /** @var string This is the initial value for the terms servlet used for the TermsComponent. */ - const DEFAULT_TERMS_SERVLET = 'terms'; - - /** @var string This is the initial value for the system servlet used to obtain Solr Server information. */ - const DEFAULT_SYSTEM_SERVLET = 'admin/system'; - - /** - * (PECL solr >= 0.9.2)
    - * Adds a document to the index - * @link https://php.net/manual/en/solrclient.adddocument.php - * @param SolrInputDocument $doc

    - * The SolrInputDocument instance. - *

    - * @param bool $overwrite [optional]

    - * Whether to overwrite existing document or not. If FALSE there will be duplicates (several documents with - * the same ID). - *

    - *
    - * Warning
    - * PECL Solr < 2.0 $allowDups was used instead of $overwrite, which does the same functionality with exact opposite - * bool flag.
    - *
    - * $allowDups = false is the same as $overwrite = true - *
    - * @param int $commitWithin [optional]

    - * Number of milliseconds within which to auto commit this document. Available since Solr 1.4 . Default (0) means - * disabled. - *

    - *

    - * When this value specified, it leaves the control of when to do the commit to Solr itself, optimizing number of - * commits to a minimum while still fulfilling the update latency requirements, and Solr will automatically do a - * commit when the oldest add in the buffer is due. - *

    - * @return SolrUpdateResponse

    - * Returns a SolrUpdateResponse object or throws an Exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function addDocument(SolrInputDocument $doc, $overwrite = true, $commitWithin = 0) {} - - /** - * (PECL solr >= 0.9.2)
    - * Adds a collection of SolrInputDocument instances to the index - * @link https://php.net/manual/en/solrclient.adddocuments.php - * @param array $docs

    - * An array containing the collection of SolrInputDocument instances. This array must be an actual variable. - *

    - * @param bool $overwrite [optional]

    - * Whether to overwrite existing document or not. If FALSE there will be duplicates (several documents with - * the same ID). - *

    - *
    - * Warning
    - * PECL Solr < 2.0 $allowDups was used instead of $overwrite, which does the same functionality with exact opposite - * bool flag.
    - *
    - * $allowDups = false is the same as $overwrite = true - *
    - * @param int $commitWithin [optional]

    - * Number of milliseconds within which to auto commit this document. Available since Solr 1.4 . Default (0) means - * disabled. - *

    - *

    - * When this value specified, it leaves the control of when to do the commit to Solr itself, optimizing number of - * commits to a minimum while still fulfilling the update latency requirements, and Solr will automatically do a - * commit when the oldest add in the buffer is due. - *

    - * @return SolrUpdateResponse

    - * Returns a SolrUpdateResponse object or throws an Exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function addDocuments(array $docs, $overwrite = true, $commitWithin = 0) {} - - /** - * (PECL solr >= 0.9.2)
    - * Finalizes all add/deletes made to the index - * @link https://php.net/manual/en/solrclient.commit.php - * @param bool $softCommit [optional]

    - * This will refresh the 'view' of the index in a more performant manner, but without "on-disk" guarantees. - * (Solr4.0+) - *

    - *

    - * A soft commit is much faster since it only makes index changes visible and does not fsync index files or write a - * new index descriptor. If the JVM crashes or there is a loss of power, changes that occurred after the last hard - * commit will be lost. Search collections that have near-real-time requirements (that want index changes to be - * quickly visible to searches) will want to soft commit often but hard commit less frequently. - *

    - * @param bool $waitSearcher [optional]

    - * block until a new searcher is opened and registered as the main query searcher, making the changes visible. - *

    - * @param bool $expungeDeletes [optional]

    - * Merge segments with deletes away. (Solr1.4+) - *

    - * @return SolrUpdateResponse

    - * Returns a SolrUpdateResponse object or throws an Exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function commit($softCommit = false, $waitSearcher = true, $expungeDeletes = false) {} - - /** - * (PECL solr >= 0.9.2)
    - * SolrClient constructor. - * @link https://php.net/manual/en/solrclient.construct.php - * @param array $clientOptions

    - * This is an array containing one of the following keys : - *

    - *
      - *
    • secure: (Boolean value indicating whether or not to connect in secure mode)
    • - *
    • hostname: (The hostname for the Solr server)
    • - *
    • port: (The port number)
    • - *
    • path: (The path to solr)
    • - *
    • wt: (The name of the response writer e.g. xml, json)
    • - *
    • login: (The username used for HTTP Authentication, if any)
    • - *
    • password: (The HTTP Authentication password)
    • - *
    • proxy_host: (The hostname for the proxy server, if any)
    • - *
    • proxy_port: (The proxy port)
    • - *
    • proxy_login: (The proxy username)
    • - *
    • proxy_password: (The proxy password)
    • - *
    • timeout: (This is maximum time in seconds allowed for the http data transfer operation. Default is 30 - * seconds)
    • - *
    • ssl_cert: (File name to a PEM-formatted file containing the private key + private certificate - * (concatenated in that order) )
    • - *
    • ssl_key: (File name to a PEM-formatted private key file only)
    • - *
    • ssl_keypassword: (Password for private key)
    • - *
    • ssl_cainfo: (Name of file holding one or more CA certificates to verify peer with)
    • - *
    • ssl_capath: (Name of directory holding multiple CA certificates to verify peer with )
    • - *
    - *

    - * Please note the if the ssl_cert file only contains the private certificate, you have to specify a separate - * ssl_key file. - *

    - *

    - * The ssl_keypassword option is required if the ssl_cert or ssl_key options are set. - *

    - * @throws SolrIllegalArgumentException - */ - public function __construct (array $clientOptions) {} - - /** - * (PECL solr >= 0.9.2)
    - * Delete by Id - * @link https://php.net/manual/en/solrclient.deletebyid.php - * @param string $id

    - * The value of the uniqueKey field declared in the schema - *

    - * @return SolrUpdateResponse

    - * Returns a SolrUpdateResponse on success and throws an exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function deleteById($id) {} - - /** - * (PECL solr >= 0.9.2)
    - * Deletes by Ids - * @link https://php.net/manual/en/solrclient.deletebyids.php - * @param array $ids

    - * An array of IDs representing the uniqueKey field declared in the schema for each document to be deleted. This - * must be an actual php variable. - *

    - * @return SolrUpdateResponse

    - * Returns a SolrUpdateResponse on success and throws an exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function deleteByIds(array $ids) {} - - /** - * (PECL solr >= 0.9.2)
    - * Removes all documents matching any of the queries - * @link https://php.net/manual/en/solrclient.deletebyqueries.php - * @param array $queries

    - * The array of queries. This must be an actual php variable. - *

    - * @return SolrUpdateResponse

    - * Returns a SolrUpdateResponse on success and throws an exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function deleteByQueries(array $queries) {} - - /** - * (PECL solr >= 0.9.2)
    - * Deletes all documents matching the given query - * @link https://php.net/manual/en/solrclient.deletebyquery.php - * @param string $query

    - * The query - *

    - * @return SolrUpdateResponse

    - * Returns a SolrUpdateResponse on success and throws an exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function deleteByQuery($query) {} - - /** - * (PECL solr >= 0.9.2)
    - * Destructor for SolrClient - * @link https://php.net/manual/en/solrclient.destruct.php - */ - public function __destruct() {} - - /** - * (PECL solr >= 2.2.0)
    - * Get Document By Id. Utilizes Solr Realtime Get (RTG). - * @link https://php.net/manual/en/solrclient.getbyid.php - * @param string $id

    - * Document ID - *

    - * @return SolrQueryResponse - */ - public function getById ($id) {} - - /** - * (PECL solr >= 2.2.0)
    - * Get Documents by their Ids. Utilizes Solr Realtime Get (RTG). - * @link https://php.net/manual/en/solrclient.getbyids.php - * @param array $ids

    - * Document ids - *

    - * @return SolrQueryResponse - */ - public function getByIds(array $ids) {} - - /** - * (PECL solr >= 0.9.7)
    - * Returns the debug data for the last connection attempt - * @link https://php.net/manual/en/solrclient.getdebug.php - * @return string

    - * Returns a string on success and null if there is nothing to return. - *

    - */ - public function getDebug () {} - - /** - * (PECL solr >= 0.9.6)
    - * Returns the client options set internally - * @link https://php.net/manual/en/solrclient.getoptions.php - * @return array

    - * Returns an array containing all the options for the SolrClient object set internally. - *

    - */ - public function getOptions() {} - - /** - * (PECL solr >= 0.9.2)
    - * Defragments the index - * @link https://php.net/manual/en/solrclient.optimize.php - * @param int $maxSegments

    - * Optimizes down to at most this number of segments. Since Solr 1.3 - *

    - * @param bool $softCommit

    - * This will refresh the 'view' of the index in a more performant manner, but without "on-disk" guarantees. - * (Solr4.0+) - *

    - * @param bool $waitSearcher

    - * Block until a new searcher is opened and registered as the main query searcher, making the changes visible. - *

    - * @return SolrUpdateResponse

    - * Returns a SolrUpdateResponse on success and throws an exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function optimize($maxSegments = 1, $softCommit = true, $waitSearcher = true) {} - - /** - * (PECL solr >= 0.9.2)
    - * Checks if Solr server is still up - * @link https://php.net/manual/en/solrclient.ping.php - * @return SolrPingResponse

    - * Returns a SolrPingResponse object on success and throws an exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function ping() {} - - /** - * (PECL solr >= 0.9.2)
    - * Sends a query to the server - * @link https://php.net/manual/en/solrclient.query.php - * @param SolrParams $query

    - * A SolrParams object. It is recommended to use SolrQuery for advanced queries. - *

    - * @return SolrQueryResponse

    - * Returns a SolrUpdateResponse on success and throws an exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function query(SolrParams $query) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sends a raw update request - * @link https://php.net/manual/en/solrclient.request.php - * @param string $raw_request

    - * An XML string with the raw request to the server. - *

    - * @return SolrUpdateResponse

    - * Returns a SolrUpdateResponse on success and throws an exception on failure. - *

    - * @throws SolrIllegalArgumentException

    - * Throws SolrIllegalArgumentException if raw_request was an empty string. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function request($raw_request) {} - - /** - * (PECL solr >= 0.9.2)
    - * Rollbacks all add/deletes made to the index since the last commit - * @link https://php.net/manual/en/solrclient.rollback.php - * @return SolrUpdateResponse

    - * Returns a SolrUpdateResponse on success and throws an exception on failure. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function rollback() {} - - /** - * (PECL solr >= 0.9.11)
    - * Sets the response writer used to prepare the response from Solr - * @link https://php.net/manual/en/solrclient.setresponsewriter.php - * @param string $responseWriter

    - * One of the following: - *

    - *
      - *
    • json
    • - *
    • phps
    • - *
    • xml
    • - *
    - */ - public function setResponseWriter($responseWriter) {} - - /** - * (PECL solr >= 0.9.2)
    - * Changes the specified servlet type to a new value - * @link https://php.net/manual/en/solrclient.setservlet.php - * @param int $type

    - * One of the following : - *

    - *
      - *
    • SolrClient::SEARCH_SERVLET_TYPE
    • - *
    • SolrClient::UPDATE_SERVLET_TYPE
    • - *
    • SolrClient::THREADS_SERVLET_TYPE
    • - *
    • SolrClient::PING_SERVLET_TYPE
    • - *
    • SolrClient::TERMS_SERVLET_TYPE
    • - *
    - * @param string $value

    - * The new value for the servlet - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function setServlet($type, $value) {} - - /** - * (PECL solr >= 2.0.0)
    - * Retrieve Solr Server information - * @link https://php.net/manual/en/solrclient.system.php - * @return SolrGenericResponse

    - * Returns a SolrGenericResponse object on success. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function system() {} - - /** - * (PECL solr >= 0.9.2)
    - * Checks the threads status - * @link https://php.net/manual/en/solrclient.threads.php - * @return SolrGenericResponse

    - * Returns a SolrGenericResponse object on success. - *

    - * @throws SolrClientException

    - * Throws SolrClientException if the client had failed, or there was a connection issue. - *

    - * @throws SolrServerException

    - * Throws SolrServerException if the Solr Server had failed to satisfy the request. - *

    - */ - public function threads() {} - +final class SolrClient +{ + /** @var int Used when updating the search servlet. */ + public const SEARCH_SERVLET_TYPE = 1; + + /** @var int Used when updating the update servlet. */ + public const UPDATE_SERVLET_TYPE = 2; + + /** @var int Used when updating the threads servlet. */ + public const THREADS_SERVLET_TYPE = 4; + + /** @var int Used when updating the ping servlet. */ + public const PING_SERVLET_TYPE = 8; + + /** @var int Used when updating the terms servlet. */ + public const TERMS_SERVLET_TYPE = 16; + + /** @var int Used when retrieving system information from the system servlet. */ + public const SYSTEM_SERVLET_TYPE = 32; + + /** @var string This is the initial value for the search servlet. */ + public const DEFAULT_SEARCH_SERVLET = 'select'; + + /** @var string This is the initial value for the update servlet. */ + public const DEFAULT_UPDATE_SERVLET = 'update'; + + /** @var string This is the initial value for the threads servlet. */ + public const DEFAULT_THREADS_SERVLET = 'admin/threads'; + + /** @var string This is the initial value for the ping servlet. */ + public const DEFAULT_PING_SERVLET = 'admin/ping'; + + /** @var string This is the initial value for the terms servlet used for the TermsComponent. */ + public const DEFAULT_TERMS_SERVLET = 'terms'; + + /** @var string This is the initial value for the system servlet used to obtain Solr Server information. */ + public const DEFAULT_SYSTEM_SERVLET = 'admin/system'; + + /** + * (PECL solr >= 0.9.2)
    + * Adds a document to the index + * @link https://php.net/manual/en/solrclient.adddocument.php + * @param SolrInputDocument $doc

    + * The SolrInputDocument instance. + *

    + * @param bool $overwrite [optional]

    + * Whether to overwrite existing document or not. If FALSE there will be duplicates (several documents with + * the same ID). + *

    + *
    + * Warning
    + * PECL Solr < 2.0 $allowDups was used instead of $overwrite, which does the same functionality with exact opposite + * bool flag.
    + *
    + * $allowDups = false is the same as $overwrite = true + *
    + * @param int $commitWithin [optional]

    + * Number of milliseconds within which to auto commit this document. Available since Solr 1.4 . Default (0) means + * disabled. + *

    + *

    + * When this value specified, it leaves the control of when to do the commit to Solr itself, optimizing number of + * commits to a minimum while still fulfilling the update latency requirements, and Solr will automatically do a + * commit when the oldest add in the buffer is due. + *

    + * @return SolrUpdateResponse

    + * Returns a SolrUpdateResponse object or throws an Exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function addDocument(SolrInputDocument $doc, $overwrite = true, $commitWithin = 0) {} + + /** + * (PECL solr >= 0.9.2)
    + * Adds a collection of SolrInputDocument instances to the index + * @link https://php.net/manual/en/solrclient.adddocuments.php + * @param array $docs

    + * An array containing the collection of SolrInputDocument instances. This array must be an actual variable. + *

    + * @param bool $overwrite [optional]

    + * Whether to overwrite existing document or not. If FALSE there will be duplicates (several documents with + * the same ID). + *

    + *
    + * Warning
    + * PECL Solr < 2.0 $allowDups was used instead of $overwrite, which does the same functionality with exact opposite + * bool flag.
    + *
    + * $allowDups = false is the same as $overwrite = true + *
    + * @param int $commitWithin [optional]

    + * Number of milliseconds within which to auto commit this document. Available since Solr 1.4 . Default (0) means + * disabled. + *

    + *

    + * When this value specified, it leaves the control of when to do the commit to Solr itself, optimizing number of + * commits to a minimum while still fulfilling the update latency requirements, and Solr will automatically do a + * commit when the oldest add in the buffer is due. + *

    + * @return SolrUpdateResponse

    + * Returns a SolrUpdateResponse object or throws an Exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function addDocuments(array $docs, $overwrite = true, $commitWithin = 0) {} + + /** + * (PECL solr >= 0.9.2)
    + * Finalizes all add/deletes made to the index + * @link https://php.net/manual/en/solrclient.commit.php + * @param bool $softCommit [optional]

    + * This will refresh the 'view' of the index in a more performant manner, but without "on-disk" guarantees. + * (Solr4.0+) + *

    + *

    + * A soft commit is much faster since it only makes index changes visible and does not fsync index files or write a + * new index descriptor. If the JVM crashes or there is a loss of power, changes that occurred after the last hard + * commit will be lost. Search collections that have near-real-time requirements (that want index changes to be + * quickly visible to searches) will want to soft commit often but hard commit less frequently. + *

    + * @param bool $waitSearcher [optional]

    + * block until a new searcher is opened and registered as the main query searcher, making the changes visible. + *

    + * @param bool $expungeDeletes [optional]

    + * Merge segments with deletes away. (Solr1.4+) + *

    + * @return SolrUpdateResponse

    + * Returns a SolrUpdateResponse object or throws an Exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function commit($softCommit = false, $waitSearcher = true, $expungeDeletes = false) {} + + /** + * (PECL solr >= 0.9.2)
    + * SolrClient constructor. + * @link https://php.net/manual/en/solrclient.construct.php + * @param array $clientOptions

    + * This is an array containing one of the following keys : + *

    + *
      + *
    • secure: (Boolean value indicating whether or not to connect in secure mode)
    • + *
    • hostname: (The hostname for the Solr server)
    • + *
    • port: (The port number)
    • + *
    • path: (The path to solr)
    • + *
    • wt: (The name of the response writer e.g. xml, json)
    • + *
    • login: (The username used for HTTP Authentication, if any)
    • + *
    • password: (The HTTP Authentication password)
    • + *
    • proxy_host: (The hostname for the proxy server, if any)
    • + *
    • proxy_port: (The proxy port)
    • + *
    • proxy_login: (The proxy username)
    • + *
    • proxy_password: (The proxy password)
    • + *
    • timeout: (This is maximum time in seconds allowed for the http data transfer operation. Default is 30 + * seconds)
    • + *
    • ssl_cert: (File name to a PEM-formatted file containing the private key + private certificate + * (concatenated in that order) )
    • + *
    • ssl_key: (File name to a PEM-formatted private key file only)
    • + *
    • ssl_keypassword: (Password for private key)
    • + *
    • ssl_cainfo: (Name of file holding one or more CA certificates to verify peer with)
    • + *
    • ssl_capath: (Name of directory holding multiple CA certificates to verify peer with )
    • + *
    + *

    + * Please note the if the ssl_cert file only contains the private certificate, you have to specify a separate + * ssl_key file. + *

    + *

    + * The ssl_keypassword option is required if the ssl_cert or ssl_key options are set. + *

    + * @throws SolrIllegalArgumentException + */ + public function __construct(array $clientOptions) {} + + /** + * (PECL solr >= 0.9.2)
    + * Delete by Id + * @link https://php.net/manual/en/solrclient.deletebyid.php + * @param string $id

    + * The value of the uniqueKey field declared in the schema + *

    + * @return SolrUpdateResponse

    + * Returns a SolrUpdateResponse on success and throws an exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function deleteById($id) {} + + /** + * (PECL solr >= 0.9.2)
    + * Deletes by Ids + * @link https://php.net/manual/en/solrclient.deletebyids.php + * @param array $ids

    + * An array of IDs representing the uniqueKey field declared in the schema for each document to be deleted. This + * must be an actual php variable. + *

    + * @return SolrUpdateResponse

    + * Returns a SolrUpdateResponse on success and throws an exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function deleteByIds(array $ids) {} + + /** + * (PECL solr >= 0.9.2)
    + * Removes all documents matching any of the queries + * @link https://php.net/manual/en/solrclient.deletebyqueries.php + * @param array $queries

    + * The array of queries. This must be an actual php variable. + *

    + * @return SolrUpdateResponse

    + * Returns a SolrUpdateResponse on success and throws an exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function deleteByQueries(array $queries) {} + + /** + * (PECL solr >= 0.9.2)
    + * Deletes all documents matching the given query + * @link https://php.net/manual/en/solrclient.deletebyquery.php + * @param string $query

    + * The query + *

    + * @return SolrUpdateResponse

    + * Returns a SolrUpdateResponse on success and throws an exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function deleteByQuery($query) {} + + /** + * (PECL solr >= 0.9.2)
    + * Destructor for SolrClient + * @link https://php.net/manual/en/solrclient.destruct.php + */ + public function __destruct() {} + + /** + * (PECL solr >= 2.2.0)
    + * Get Document By Id. Utilizes Solr Realtime Get (RTG). + * @link https://php.net/manual/en/solrclient.getbyid.php + * @param string $id

    + * Document ID + *

    + * @return SolrQueryResponse + */ + public function getById($id) {} + + /** + * (PECL solr >= 2.2.0)
    + * Get Documents by their Ids. Utilizes Solr Realtime Get (RTG). + * @link https://php.net/manual/en/solrclient.getbyids.php + * @param array $ids

    + * Document ids + *

    + * @return SolrQueryResponse + */ + public function getByIds(array $ids) {} + + /** + * (PECL solr >= 0.9.7)
    + * Returns the debug data for the last connection attempt + * @link https://php.net/manual/en/solrclient.getdebug.php + * @return string

    + * Returns a string on success and null if there is nothing to return. + *

    + */ + public function getDebug() {} + + /** + * (PECL solr >= 0.9.6)
    + * Returns the client options set internally + * @link https://php.net/manual/en/solrclient.getoptions.php + * @return array

    + * Returns an array containing all the options for the SolrClient object set internally. + *

    + */ + public function getOptions() {} + + /** + * (PECL solr >= 0.9.2)
    + * Defragments the index + * @link https://php.net/manual/en/solrclient.optimize.php + * @param int $maxSegments

    + * Optimizes down to at most this number of segments. Since Solr 1.3 + *

    + * @param bool $softCommit

    + * This will refresh the 'view' of the index in a more performant manner, but without "on-disk" guarantees. + * (Solr4.0+) + *

    + * @param bool $waitSearcher

    + * Block until a new searcher is opened and registered as the main query searcher, making the changes visible. + *

    + * @return SolrUpdateResponse

    + * Returns a SolrUpdateResponse on success and throws an exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function optimize($maxSegments = 1, $softCommit = true, $waitSearcher = true) {} + + /** + * (PECL solr >= 0.9.2)
    + * Checks if Solr server is still up + * @link https://php.net/manual/en/solrclient.ping.php + * @return SolrPingResponse

    + * Returns a SolrPingResponse object on success and throws an exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function ping() {} + + /** + * (PECL solr >= 0.9.2)
    + * Sends a query to the server + * @link https://php.net/manual/en/solrclient.query.php + * @param SolrParams $query

    + * A SolrParams object. It is recommended to use SolrQuery for advanced queries. + *

    + * @return SolrQueryResponse

    + * Returns a SolrUpdateResponse on success and throws an exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function query(SolrParams $query) {} + + /** + * (PECL solr >= 0.9.2)
    + * Sends a raw update request + * @link https://php.net/manual/en/solrclient.request.php + * @param string $raw_request

    + * An XML string with the raw request to the server. + *

    + * @return SolrUpdateResponse

    + * Returns a SolrUpdateResponse on success and throws an exception on failure. + *

    + * @throws SolrIllegalArgumentException

    + * Throws SolrIllegalArgumentException if raw_request was an empty string. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function request($raw_request) {} + + /** + * (PECL solr >= 0.9.2)
    + * Rollbacks all add/deletes made to the index since the last commit + * @link https://php.net/manual/en/solrclient.rollback.php + * @return SolrUpdateResponse

    + * Returns a SolrUpdateResponse on success and throws an exception on failure. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function rollback() {} + + /** + * (PECL solr >= 0.9.11)
    + * Sets the response writer used to prepare the response from Solr + * @link https://php.net/manual/en/solrclient.setresponsewriter.php + * @param string $responseWriter

    + * One of the following: + *

    + *
      + *
    • json
    • + *
    • phps
    • + *
    • xml
    • + *
    + */ + public function setResponseWriter($responseWriter) {} + + /** + * (PECL solr >= 0.9.2)
    + * Changes the specified servlet type to a new value + * @link https://php.net/manual/en/solrclient.setservlet.php + * @param int $type

    + * One of the following : + *

    + *
      + *
    • SolrClient::SEARCH_SERVLET_TYPE
    • + *
    • SolrClient::UPDATE_SERVLET_TYPE
    • + *
    • SolrClient::THREADS_SERVLET_TYPE
    • + *
    • SolrClient::PING_SERVLET_TYPE
    • + *
    • SolrClient::TERMS_SERVLET_TYPE
    • + *
    + * @param string $value

    + * The new value for the servlet + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function setServlet($type, $value) {} + + /** + * (PECL solr >= 2.0.0)
    + * Retrieve Solr Server information + * @link https://php.net/manual/en/solrclient.system.php + * @return SolrGenericResponse

    + * Returns a SolrGenericResponse object on success. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function system() {} + + /** + * (PECL solr >= 0.9.2)
    + * Checks the threads status + * @link https://php.net/manual/en/solrclient.threads.php + * @return SolrGenericResponse

    + * Returns a SolrGenericResponse object on success. + *

    + * @throws SolrClientException

    + * Throws SolrClientException if the client had failed, or there was a connection issue. + *

    + * @throws SolrServerException

    + * Throws SolrServerException if the Solr Server had failed to satisfy the request. + *

    + */ + public function threads() {} } diff --git a/solr/Utils/SolrObject.php b/solr/Utils/SolrObject.php index ef7d4bb1a..80a970986 100644 --- a/solr/Utils/SolrObject.php +++ b/solr/Utils/SolrObject.php @@ -13,80 +13,79 @@ * read-only. * @link https://php.net/manual/en/class.solrobject.php */ -final class SolrObject implements ArrayAccess { +final class SolrObject implements ArrayAccess +{ + /** + * (PECL solr >= 0.9.2)
    + * SolrObject constructor. + * @link https://php.net/manual/en/solrobject.construct.php + */ + public function __construct() {} - /** - * (PECL solr >= 0.9.2)
    - * SolrObject constructor. - * @link https://php.net/manual/en/solrobject.construct.php - */ - public function __construct () {} + /** + * (PECL solr >= 0.9.2)
    + * Destructor + * @link https://php.net/manual/en/solrobject.destruct.php + */ + public function __destruct() {} - /** - * (PECL solr >= 0.9.2)
    - * Destructor - * @link https://php.net/manual/en/solrobject.destruct.php - */ - public function __destruct() {} + /** + * (PECL solr >= 0.9.2)
    + * Returns an array of all the names of the properties + * @link https://php.net/manual/en/solrobject.getpropertynames.php + * @return array

    + * Returns an array. + *

    + */ + public function getPropertyNames() {} - /** - * (PECL solr >= 0.9.2)
    - * Returns an array of all the names of the properties - * @link https://php.net/manual/en/solrobject.getpropertynames.php - * @return array

    - * Returns an array. - *

    - */ - public function getPropertyNames() {} + /** + * (PECL solr >= 0.9.2)
    + * Checks if the property exists + * @link https://php.net/manual/en/solrobject.offsetexists.php + * @param string $property_name

    + * The name of the property. + *

    + * @return bool

    + * Returns TRUE on success or FALSE on failure. + *

    + */ + public function offsetExists($property_name) {} - /** - * (PECL solr >= 0.9.2)
    - * Checks if the property exists - * @link https://php.net/manual/en/solrobject.offsetexists.php - * @param string $property_name

    - * The name of the property. - *

    - * @return bool

    - * Returns TRUE on success or FALSE on failure. - *

    - */ - public function offsetExists($property_name) {} + /** + * (PECL solr >= 0.9.2)
    + * Used to retrieve a property + * @link https://php.net/manual/en/solrobject.offsetget.php + * @param string $property_name

    + * The name of the property. + *

    + * @return SolrDocumentField

    + * Returns the property value. + *

    + */ + public function offsetGet($property_name) {} - /** - * (PECL solr >= 0.9.2)
    - * Used to retrieve a property - * @link https://php.net/manual/en/solrobject.offsetget.php - * @param string $property_name

    - * The name of the property. - *

    - * @return SolrDocumentField

    - * Returns the property value. - *

    - */ - public function offsetGet($property_name) {} - - /** - * (PECL solr >= 0.9.2)
    - * Sets the value for a property - * @link https://php.net/manual/en/solrobject.offsetset.php - * @param string $property_name

    - * The name of the property. - *

    - * @param string $property_value

    - * The new value. - *

    - */ - public function offsetSet($property_name , $property_value) {} - - /** - * (PECL solr >= 0.9.2)
    - * Unsets the value for the property - * @link https://php.net/manual/en/solrobject.offsetunset.php - * @param string $property_name

    - * The name of the property. - *

    - * @return bool - */ - public function offsetUnset($property_name) {} + /** + * (PECL solr >= 0.9.2)
    + * Sets the value for a property + * @link https://php.net/manual/en/solrobject.offsetset.php + * @param string $property_name

    + * The name of the property. + *

    + * @param string $property_value

    + * The new value. + *

    + */ + public function offsetSet($property_name, $property_value) {} + /** + * (PECL solr >= 0.9.2)
    + * Unsets the value for the property + * @link https://php.net/manual/en/solrobject.offsetunset.php + * @param string $property_name

    + * The name of the property. + *

    + * @return bool + */ + public function offsetUnset($property_name) {} } diff --git a/solr/Utils/SolrUtils.php b/solr/Utils/SolrUtils.php index 1d4075cb9..ee0caaba3 100644 --- a/solr/Utils/SolrUtils.php +++ b/solr/Utils/SolrUtils.php @@ -13,65 +13,64 @@ * Also contains method for escaping query strings and parsing XML responses. * @link https://php.net/manual/en/class.solrutils.php */ -abstract class SolrUtils { +abstract class SolrUtils +{ + /** + * (PECL solr >= 0.9.2)
    + * Parses an response XML string into a SolrObject + * @link https://php.net/manual/en/solrutils.digestxmlresponse.php + * @param string $xmlresponse

    + * The XML response string from the Solr server. + *

    + * @param int $parse_mode [optional]

    + * Use SolrResponse::PARSE_SOLR_OBJ or SolrResponse::PARSE_SOLR_DOC + *

    + * @return SolrObject

    + * Returns the SolrObject representing the XML response. + *

    + *

    + * If the parse_mode parameter is set to SolrResponse::PARSE_SOLR_OBJ Solr documents will be parses as SolrObject instances. + *

    + *

    + * If it is set to SolrResponse::PARSE_SOLR_DOC, they will be parsed as SolrDocument instances. + *

    + * @throws SolrException + */ + public static function digestXmlResponse($xmlresponse, $parse_mode = 0) {} - /** - * (PECL solr >= 0.9.2)
    - * Parses an response XML string into a SolrObject - * @link https://php.net/manual/en/solrutils.digestxmlresponse.php - * @param string $xmlresponse

    - * The XML response string from the Solr server. - *

    - * @param int $parse_mode [optional]

    - * Use SolrResponse::PARSE_SOLR_OBJ or SolrResponse::PARSE_SOLR_DOC - *

    - * @return SolrObject

    - * Returns the SolrObject representing the XML response. - *

    - *

    - * If the parse_mode parameter is set to SolrResponse::PARSE_SOLR_OBJ Solr documents will be parses as SolrObject instances. - *

    - *

    - * If it is set to SolrResponse::PARSE_SOLR_DOC, they will be parsed as SolrDocument instances. - *

    - * @throws SolrException - */ - public static function digestXmlResponse($xmlresponse, $parse_mode = 0) {} + /** + * (PECL solr >= 0.9.2)
    + * Escapes a lucene query string + * @link https://php.net/manual/en/solrutils.escapequerychars.php + * @param string $str

    + * This is the query string to be escaped. + *

    + * @return string|false

    + * Returns the escaped string or FALSE on failure. + *

    + */ + public static function escapeQueryChars($str) {} - /** - * (PECL solr >= 0.9.2)
    - * Escapes a lucene query string - * @link https://php.net/manual/en/solrutils.escapequerychars.php - * @param string $str

    - * This is the query string to be escaped. - *

    - * @return string|false

    - * Returns the escaped string or FALSE on failure. - *

    - */ - public static function escapeQueryChars($str) {} - - /** - * (PECL solr >= 0.9.2)
    - * Returns the current version of the Solr extension - * @link https://php.net/manual/en/solrutils.getsolrversion.php - * @return string

    - * The current version of the Apache Solr extension. - *

    - */ - public static function getSolrVersion() {} - - /** - * (PECL solr >= 0.9.2)
    - * Prepares a phrase from an unescaped lucene string - * @link https://php.net/manual/en/solrutils.queryphrase.php - * @param string $str

    - * The lucene phrase. - *

    - * @return string

    - * Returns the phrase contained in double quotes. - *

    - */ - public static function queryPhrase($str) {} + /** + * (PECL solr >= 0.9.2)
    + * Returns the current version of the Solr extension + * @link https://php.net/manual/en/solrutils.getsolrversion.php + * @return string

    + * The current version of the Apache Solr extension. + *

    + */ + public static function getSolrVersion() {} + /** + * (PECL solr >= 0.9.2)
    + * Prepares a phrase from an unescaped lucene string + * @link https://php.net/manual/en/solrutils.queryphrase.php + * @param string $str

    + * The lucene phrase. + *

    + * @return string

    + * Returns the phrase contained in double quotes. + *

    + */ + public static function queryPhrase($str) {} } diff --git a/sqlite3/sqlite3.php b/sqlite3/sqlite3.php index 33294bc31..4e43bf312 100644 --- a/sqlite3/sqlite3.php +++ b/sqlite3/sqlite3.php @@ -7,523 +7,520 @@ * A class that interfaces SQLite 3 databases. * @link https://php.net/manual/en/class.sqlite3.php */ -class SQLite3 { - - const OK = 0; - const DENY = 1; - const IGNORE = 2; - const CREATE_INDEX = 1; - const CREATE_TABLE = 2; - const CREATE_TEMP_INDEX = 3; - const CREATE_TEMP_TABLE = 4; - const CREATE_TEMP_TRIGGER = 5; - const CREATE_TEMP_VIEW = 6; - const CREATE_TRIGGER = 7; - const CREATE_VIEW = 8; - const DELETE = 9; - const DROP_INDEX = 10; - const DROP_TABLE = 11; - const DROP_TEMP_INDEX = 12; - const DROP_TEMP_TABLE = 13; - const DROP_TEMP_TRIGGER = 14; - const DROP_TEMP_VIEW = 15; - const DROP_TRIGGER = 16; - const DROP_VIEW = 17; - const INSERT = 18; - const PRAGMA = 19; - const READ = 20; - const SELECT = 21; - const TRANSACTION = 22; - const UPDATE = 23; - const ATTACH = 24; - const DETACH = 25; - const ALTER_TABLE = 26; - const REINDEX = 27; - const ANALYZE = 28; - const CREATE_VTABLE = 29; - const DROP_VTABLE = 30; - const FUNCTION = 31; - const SAVEPOINT = 32; - const COPY = 0; - const RECURSIVE = 33; - - /** - * Opens an SQLite database - * @link https://php.net/manual/en/sqlite3.open.php - * @param string $filename

    - * Path to the SQLite database, or :memory: to use in-memory database. - *

    - * @param int $flags [optional]

    - * Optional flags used to determine how to open the SQLite database. By - * default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE. - *

    - *

    - * SQLITE3_OPEN_READONLY: Open the database for - * reading only. - *

    - * @param string $encryptionKey [optional]

    - * An optional encryption key used when encrypting and decrypting an - * SQLite database. - *

    - * @return void No value is returned. - */ - public function open ($filename, $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, $encryptionKey = null) {} - - /** - * Closes the database connection - * @link https://php.net/manual/en/sqlite3.close.php - * @return bool TRUE on success, FALSE on failure. - */ - public function close () {} - - /** - * Executes a result-less query against a given database - * @link https://php.net/manual/en/sqlite3.exec.php - * @param string $query

    - * The SQL query to execute (typically an INSERT, UPDATE, or DELETE - * query). - *

    - * @return bool TRUE if the query succeeded, FALSE on failure. - */ - public function exec ($query) {} - - /** - * Returns the SQLite3 library version as a string constant and as a number - * @link https://php.net/manual/en/sqlite3.version.php - * @return array an associative array with the keys "versionString" and - * "versionNumber". - */ - #[ArrayShape(["versionString" => "string", "versionNumber" => "int"])] - public static function version () {} - - /** - * Returns the row ID of the most recent INSERT into the database - * @link https://php.net/manual/en/sqlite3.lastinsertrowid.php - * @return int the row ID of the most recent INSERT into the database - */ - public function lastInsertRowID () {} - - /** - * Returns the numeric result code of the most recent failed SQLite request - * @link https://php.net/manual/en/sqlite3.lasterrorcode.php - * @return int an integer value representing the numeric result code of the most - * recent failed SQLite request. - */ - public function lastErrorCode () {} - - /** - * Returns English text describing the most recent failed SQLite request - * @link https://php.net/manual/en/sqlite3.lasterrormsg.php - * @return string an English string describing the most recent failed SQLite request. - */ - public function lastErrorMsg () {} - - /** - * Sets the busy connection handler - * @link https://php.net/manual/en/sqlite3.busytimeout.php - * @param int $milliseconds

    - * The milliseconds to sleep. Setting this value to a value less than - * or equal to zero, will turn off an already set timeout handler. - *

    - * @return bool TRUE on success, FALSE on failure. - * @since 5.3.3 - */ - public function busyTimeout ($milliseconds) {} - - /** - * Attempts to load an SQLite extension library - * @link https://php.net/manual/en/sqlite3.loadextension.php - * @param string $name

    - * The name of the library to load. The library must be located in the - * directory specified in the configure option sqlite3.extension_dir. - *

    - * @return bool TRUE if the extension is successfully loaded, FALSE on failure. - */ - public function loadExtension ($name) {} - - /** - * Returns the number of database rows that were changed (or inserted or - * deleted) by the most recent SQL statement - * @link https://php.net/manual/en/sqlite3.changes.php - * @return int an integer value corresponding to the number of - * database rows changed (or inserted or deleted) by the most recent SQL - * statement. - */ - public function changes () {} - - /** - * Returns a string that has been properly escaped - * @link https://php.net/manual/en/sqlite3.escapestring.php - * @param string $string

    - * The string to be escaped. - *

    - * @return string a properly escaped string that may be used safely in an SQL - * statement. - */ - public static function escapeString ($string) {} - - /** - * Prepares an SQL statement for execution - * @link https://php.net/manual/en/sqlite3.prepare.php - * @param string $query

    - * The SQL query to prepare. - *

    - * @return SQLite3Stmt|false an SQLite3Stmt object on success or FALSE on failure. - */ - public function prepare ($query) {} - - /** - * Executes an SQL query - * @link https://php.net/manual/en/sqlite3.query.php - * @param string $query

    - * The SQL query to execute. - *

    - * @return SQLite3Result an SQLite3Result object if the query returns results. Otherwise, - * returns TRUE if the query succeeded, FALSE on failure. - */ - public function query ($query) {} - - /** - * Executes a query and returns a single result - * @link https://php.net/manual/en/sqlite3.querysingle.php - * @param string $query

    - * The SQL query to execute. - *

    - * @param bool $entireRow [optional]

    - * By default, querySingle returns the value of the - * first column returned by the query. If - * entire_row is TRUE, then it returns an array - * of the entire first row. - *

    - * @return mixed the value of the first column of results or an array of the entire - * first row (if entire_row is TRUE). - *

    - *

    - * If the query is valid but no results are returned, then NULL will be - * returned if entire_row is FALSE, otherwise an - * empty array is returned. - *

    - *

    - * Invalid or failing queries will return FALSE. - */ - public function querySingle ($query, $entireRow = false) {} - - /** - * Registers a PHP function for use as an SQL scalar function - * @link https://php.net/manual/en/sqlite3.createfunction.php - * @param string $name

    - * Name of the SQL function to be created or redefined. - *

    - * @param mixed $callback

    - * The name of a PHP function or user-defined function to apply as a - * callback, defining the behavior of the SQL function. - *

    - * @param int $argCount [optional]

    - * The number of arguments that the SQL function takes. If - * this parameter is negative, then the SQL function may take - * any number of arguments. - *

    - * @param int $flags [optional] - *

    A bitwise conjunction of flags. - * Currently, only SQLITE3_DETERMINISTIC is supported, which specifies that the function always returns - * the same result given the same inputs within a single SQL statement.

    - * @return bool TRUE upon successful creation of the function, FALSE on failure. - */ - public function createFunction ($name, $callback, $argCount = -1, int $flags = 0) {} - - /** - * Registers a PHP function for use as an SQL aggregate function - * @link https://php.net/manual/en/sqlite3.createaggregate.php - * @param string $name

    - * Name of the SQL aggregate to be created or redefined. - *

    - * @param mixed $stepCallback

    - * The name of a PHP function or user-defined function to apply as a - * callback for every item in the aggregate. - *

    - * @param mixed $finalCallback

    - * The name of a PHP function or user-defined function to apply as a - * callback at the end of the aggregate data. - *

    - * @param int $argCount [optional]

    - * The number of arguments that the SQL aggregate takes. If - * this parameter is negative, then the SQL aggregate may take - * any number of arguments. - *

    - * @return bool TRUE upon successful creation of the aggregate, FALSE on - * failure. - */ - public function createAggregate ($name, $stepCallback, $finalCallback, $argCount = -1) {} - - /** - * Registers a PHP function for use as an SQL collating function - * @link https://php.net/manual/en/sqlite3.createcollation.php - * @param string $name

    - * Name of the SQL collating function to be created or redefined - *

    - * @param callable $callback

    - * The name of a PHP function or user-defined function to apply as a - * callback, defining the behavior of the collation. It should accept two - * strings and return as strcmp does, i.e. it should - * return -1, 1, or 0 if the first string sorts before, sorts after, or is - * equal to the second. - *

    - * @return bool TRUE on success or FALSE on failure. - * @since 5.3.11 - */ - public function createCollation ($name, callable $callback) {} - - /** - * Opens a stream resource to read a BLOB - * @link https://php.net/manual/en/sqlite3.openblob.php - * @param string $table

    The table name.

    - * @param string $column

    The column name.

    - * @param int $rowid

    The row ID.

    - * @param string $database [optional]

    The symbolic name of the DB

    - * @param int $flags [optional] - *

    Either SQLITE3_OPEN_READONLY or SQLITE3_OPEN_READWRITE to open the stream for reading only, or for reading and writing, respectively.

    - * @return resource|false Returns a stream resource, or FALSE on failure. - */ - public function openBlob ($table, $column, $rowid, $database = 'main', int $flags = SQLITE3_OPEN_READONLY) {} - - /** - * Enable throwing exceptions - * @link https://www.php.net/manual/en/sqlite3.enableexceptions - * @param bool $enable - * @return bool Returns the old value; true if exceptions were enabled, false otherwise. - */ - public function enableExceptions ($enable = false) {} - - /** - * Instantiates an SQLite3 object and opens an SQLite 3 database - * @link https://php.net/manual/en/sqlite3.construct.php - * @param string $filename

    - * Path to the SQLite database, or :memory: to use in-memory database. - *

    - * @param int $flags [optional]

    - * Optional flags used to determine how to open the SQLite database. By - * default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE. - *

    - *

    - * SQLITE3_OPEN_READONLY: Open the database for - * reading only. - *

    - * @param string $encryptionKey [optional]

    - * An optional encryption key used when encrypting and decrypting an - * SQLite database. - *

    - */ - public function __construct ($filename, $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, $encryptionKey = null) {} - - /** - * @return int - * @since 7.4 - */ - public function lastExtendedErrorCode(){} - - /** - * @param bool $enable - * @since 7.4 - */ - public function enableExtendedResultCodes(bool $enable = true){} - - /** - * @param SQLite3 $destination - * @param string $sourceDatabase - * @param string $destinationDatabase - * @since 7.4 - */ - public function backup(SQLite3 $destination, string $sourceDatabase = 'main', string $destinationDatabase = 'main'){} - - /** - * @param null|callable $callback - * @return bool - * @since 8.0 - */ - function setAuthorizer(?callable $callback) {} - +class SQLite3 +{ + public const OK = 0; + public const DENY = 1; + public const IGNORE = 2; + public const CREATE_INDEX = 1; + public const CREATE_TABLE = 2; + public const CREATE_TEMP_INDEX = 3; + public const CREATE_TEMP_TABLE = 4; + public const CREATE_TEMP_TRIGGER = 5; + public const CREATE_TEMP_VIEW = 6; + public const CREATE_TRIGGER = 7; + public const CREATE_VIEW = 8; + public const DELETE = 9; + public const DROP_INDEX = 10; + public const DROP_TABLE = 11; + public const DROP_TEMP_INDEX = 12; + public const DROP_TEMP_TABLE = 13; + public const DROP_TEMP_TRIGGER = 14; + public const DROP_TEMP_VIEW = 15; + public const DROP_TRIGGER = 16; + public const DROP_VIEW = 17; + public const INSERT = 18; + public const PRAGMA = 19; + public const READ = 20; + public const SELECT = 21; + public const TRANSACTION = 22; + public const UPDATE = 23; + public const ATTACH = 24; + public const DETACH = 25; + public const ALTER_TABLE = 26; + public const REINDEX = 27; + public const ANALYZE = 28; + public const CREATE_VTABLE = 29; + public const DROP_VTABLE = 30; + public const FUNCTION = 31; + public const SAVEPOINT = 32; + public const COPY = 0; + public const RECURSIVE = 33; + + /** + * Opens an SQLite database + * @link https://php.net/manual/en/sqlite3.open.php + * @param string $filename

    + * Path to the SQLite database, or :memory: to use in-memory database. + *

    + * @param int $flags [optional]

    + * Optional flags used to determine how to open the SQLite database. By + * default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE. + *

    + *

    + * SQLITE3_OPEN_READONLY: Open the database for + * reading only. + *

    + * @param string $encryptionKey [optional]

    + * An optional encryption key used when encrypting and decrypting an + * SQLite database. + *

    + * @return void No value is returned. + */ + public function open($filename, $flags = SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE, $encryptionKey = null) {} + + /** + * Closes the database connection + * @link https://php.net/manual/en/sqlite3.close.php + * @return bool TRUE on success, FALSE on failure. + */ + public function close() {} + + /** + * Executes a result-less query against a given database + * @link https://php.net/manual/en/sqlite3.exec.php + * @param string $query

    + * The SQL query to execute (typically an INSERT, UPDATE, or DELETE + * query). + *

    + * @return bool TRUE if the query succeeded, FALSE on failure. + */ + public function exec($query) {} + + /** + * Returns the SQLite3 library version as a string constant and as a number + * @link https://php.net/manual/en/sqlite3.version.php + * @return array an associative array with the keys "versionString" and + * "versionNumber". + */ + #[ArrayShape(["versionString" => "string", "versionNumber" => "int"])] + public static function version() {} + + /** + * Returns the row ID of the most recent INSERT into the database + * @link https://php.net/manual/en/sqlite3.lastinsertrowid.php + * @return int the row ID of the most recent INSERT into the database + */ + public function lastInsertRowID() {} + + /** + * Returns the numeric result code of the most recent failed SQLite request + * @link https://php.net/manual/en/sqlite3.lasterrorcode.php + * @return int an integer value representing the numeric result code of the most + * recent failed SQLite request. + */ + public function lastErrorCode() {} + + /** + * Returns English text describing the most recent failed SQLite request + * @link https://php.net/manual/en/sqlite3.lasterrormsg.php + * @return string an English string describing the most recent failed SQLite request. + */ + public function lastErrorMsg() {} + + /** + * Sets the busy connection handler + * @link https://php.net/manual/en/sqlite3.busytimeout.php + * @param int $milliseconds

    + * The milliseconds to sleep. Setting this value to a value less than + * or equal to zero, will turn off an already set timeout handler. + *

    + * @return bool TRUE on success, FALSE on failure. + * @since 5.3.3 + */ + public function busyTimeout($milliseconds) {} + + /** + * Attempts to load an SQLite extension library + * @link https://php.net/manual/en/sqlite3.loadextension.php + * @param string $name

    + * The name of the library to load. The library must be located in the + * directory specified in the configure option sqlite3.extension_dir. + *

    + * @return bool TRUE if the extension is successfully loaded, FALSE on failure. + */ + public function loadExtension($name) {} + + /** + * Returns the number of database rows that were changed (or inserted or + * deleted) by the most recent SQL statement + * @link https://php.net/manual/en/sqlite3.changes.php + * @return int an integer value corresponding to the number of + * database rows changed (or inserted or deleted) by the most recent SQL + * statement. + */ + public function changes() {} + + /** + * Returns a string that has been properly escaped + * @link https://php.net/manual/en/sqlite3.escapestring.php + * @param string $string

    + * The string to be escaped. + *

    + * @return string a properly escaped string that may be used safely in an SQL + * statement. + */ + public static function escapeString($string) {} + + /** + * Prepares an SQL statement for execution + * @link https://php.net/manual/en/sqlite3.prepare.php + * @param string $query

    + * The SQL query to prepare. + *

    + * @return SQLite3Stmt|false an SQLite3Stmt object on success or FALSE on failure. + */ + public function prepare($query) {} + + /** + * Executes an SQL query + * @link https://php.net/manual/en/sqlite3.query.php + * @param string $query

    + * The SQL query to execute. + *

    + * @return SQLite3Result an SQLite3Result object if the query returns results. Otherwise, + * returns TRUE if the query succeeded, FALSE on failure. + */ + public function query($query) {} + + /** + * Executes a query and returns a single result + * @link https://php.net/manual/en/sqlite3.querysingle.php + * @param string $query

    + * The SQL query to execute. + *

    + * @param bool $entireRow [optional]

    + * By default, querySingle returns the value of the + * first column returned by the query. If + * entire_row is TRUE, then it returns an array + * of the entire first row. + *

    + * @return mixed the value of the first column of results or an array of the entire + * first row (if entire_row is TRUE). + *

    + *

    + * If the query is valid but no results are returned, then NULL will be + * returned if entire_row is FALSE, otherwise an + * empty array is returned. + *

    + *

    + * Invalid or failing queries will return FALSE. + */ + public function querySingle($query, $entireRow = false) {} + + /** + * Registers a PHP function for use as an SQL scalar function + * @link https://php.net/manual/en/sqlite3.createfunction.php + * @param string $name

    + * Name of the SQL function to be created or redefined. + *

    + * @param mixed $callback

    + * The name of a PHP function or user-defined function to apply as a + * callback, defining the behavior of the SQL function. + *

    + * @param int $argCount [optional]

    + * The number of arguments that the SQL function takes. If + * this parameter is negative, then the SQL function may take + * any number of arguments. + *

    + * @param int $flags [optional] + *

    A bitwise conjunction of flags. + * Currently, only SQLITE3_DETERMINISTIC is supported, which specifies that the function always returns + * the same result given the same inputs within a single SQL statement.

    + * @return bool TRUE upon successful creation of the function, FALSE on failure. + */ + public function createFunction($name, $callback, $argCount = -1, int $flags = 0) {} + + /** + * Registers a PHP function for use as an SQL aggregate function + * @link https://php.net/manual/en/sqlite3.createaggregate.php + * @param string $name

    + * Name of the SQL aggregate to be created or redefined. + *

    + * @param mixed $stepCallback

    + * The name of a PHP function or user-defined function to apply as a + * callback for every item in the aggregate. + *

    + * @param mixed $finalCallback

    + * The name of a PHP function or user-defined function to apply as a + * callback at the end of the aggregate data. + *

    + * @param int $argCount [optional]

    + * The number of arguments that the SQL aggregate takes. If + * this parameter is negative, then the SQL aggregate may take + * any number of arguments. + *

    + * @return bool TRUE upon successful creation of the aggregate, FALSE on + * failure. + */ + public function createAggregate($name, $stepCallback, $finalCallback, $argCount = -1) {} + + /** + * Registers a PHP function for use as an SQL collating function + * @link https://php.net/manual/en/sqlite3.createcollation.php + * @param string $name

    + * Name of the SQL collating function to be created or redefined + *

    + * @param callable $callback

    + * The name of a PHP function or user-defined function to apply as a + * callback, defining the behavior of the collation. It should accept two + * strings and return as strcmp does, i.e. it should + * return -1, 1, or 0 if the first string sorts before, sorts after, or is + * equal to the second. + *

    + * @return bool TRUE on success or FALSE on failure. + * @since 5.3.11 + */ + public function createCollation($name, callable $callback) {} + + /** + * Opens a stream resource to read a BLOB + * @link https://php.net/manual/en/sqlite3.openblob.php + * @param string $table

    The table name.

    + * @param string $column

    The column name.

    + * @param int $rowid

    The row ID.

    + * @param string $database [optional]

    The symbolic name of the DB

    + * @param int $flags [optional] + *

    Either SQLITE3_OPEN_READONLY or SQLITE3_OPEN_READWRITE to open the stream for reading only, or for reading and writing, respectively.

    + * @return resource|false Returns a stream resource, or FALSE on failure. + */ + public function openBlob($table, $column, $rowid, $database = 'main', int $flags = SQLITE3_OPEN_READONLY) {} + + /** + * Enable throwing exceptions + * @link https://www.php.net/manual/en/sqlite3.enableexceptions + * @param bool $enable + * @return bool Returns the old value; true if exceptions were enabled, false otherwise. + */ + public function enableExceptions($enable = false) {} + + /** + * Instantiates an SQLite3 object and opens an SQLite 3 database + * @link https://php.net/manual/en/sqlite3.construct.php + * @param string $filename

    + * Path to the SQLite database, or :memory: to use in-memory database. + *

    + * @param int $flags [optional]

    + * Optional flags used to determine how to open the SQLite database. By + * default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE. + *

    + *

    + * SQLITE3_OPEN_READONLY: Open the database for + * reading only. + *

    + * @param string $encryptionKey [optional]

    + * An optional encryption key used when encrypting and decrypting an + * SQLite database. + *

    + */ + public function __construct($filename, $flags = SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE, $encryptionKey = null) {} + + /** + * @return int + * @since 7.4 + */ + public function lastExtendedErrorCode() {} + + /** + * @param bool $enable + * @since 7.4 + */ + public function enableExtendedResultCodes(bool $enable = true) {} + + /** + * @param SQLite3 $destination + * @param string $sourceDatabase + * @param string $destinationDatabase + * @since 7.4 + */ + public function backup(SQLite3 $destination, string $sourceDatabase = 'main', string $destinationDatabase = 'main') {} + + /** + * @param null|callable $callback + * @return bool + * @since 8.0 + */ + public function setAuthorizer(?callable $callback) {} } /** * A class that handles prepared statements for the SQLite 3 extension. * @link https://php.net/manual/en/class.sqlite3stmt.php */ -class SQLite3Stmt { - - /** - * Returns the number of parameters within the prepared statement - * @link https://php.net/manual/en/sqlite3stmt.paramcount.php - * @return int the number of parameters within the prepared statement. - */ - public function paramCount () {} - - /** - * Closes the prepared statement - * @link https://php.net/manual/en/sqlite3stmt.close.php - * @return bool TRUE - */ - public function close () {} - - /** - * Resets the prepared statement - * @link https://php.net/manual/en/sqlite3stmt.reset.php - * @return bool TRUE if the statement is successfully reset, FALSE on failure. - */ - public function reset () {} - - /** - * Clears all current bound parameters - * @link https://php.net/manual/en/sqlite3stmt.clear.php - * @return bool TRUE on successful clearing of bound parameters, FALSE on - * failure. - */ - public function clear () {} - - /** - * Executes a prepared statement and returns a result set object - * @link https://php.net/manual/en/sqlite3stmt.execute.php - * @return SQLite3Result an SQLite3Result object on successful execution of the prepared - * statement, FALSE on failure. - */ - public function execute () {} - - /** - * Binds a parameter to a statement variable - * @link https://php.net/manual/en/sqlite3stmt.bindparam.php - * @param string $param

    - * An string identifying the statement variable to which the - * parameter should be bound. - *

    - * @param mixed &$var

    - * The parameter to bind to a statement variable. - *

    - * @param int $type [optional]

    - * The data type of the parameter to bind. - *

    - *

    - * SQLITE3_INTEGER: The value is a signed integer, - * stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of - * the value. - *

    - * @return bool TRUE if the parameter is bound to the statement variable, FALSE - * on failure. - */ - public function bindParam ($param, &$var, $type = SQLITE3_TEXT) {} - - /** - * Binds the value of a parameter to a statement variable - * @link https://php.net/manual/en/sqlite3stmt.bindvalue.php - * @param string $param

    - * An string identifying the statement variable to which the - * value should be bound. - *

    - * @param mixed $value

    - * The value to bind to a statement variable. - *

    - * @param int $type [optional]

    - * The data type of the value to bind. - *

    - *

    - * SQLITE3_INTEGER: The value is a signed integer, - * stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of - * the value. - *

    - * @return bool TRUE if the value is bound to the statement variable, FALSE - * on failure. - */ - public function bindValue ($param, $value, $type = SQLITE3_TEXT) {} - - public function readOnly () {} - - /** - * @param SQLite3 $sqlite3 - * @param string $query - */ - private function __construct ($sqlite3, $query) {} - - /** - * Retrieves the SQL of the prepared statement. If expanded is FALSE, the unmodified SQL is retrieved. - * If expanded is TRUE, all query parameters are replaced with their bound values, or with an SQL NULL, if not already bound. - * @param bool $expand Whether to retrieve the expanded SQL. Passing TRUE is only supported as of libsqlite 3.14. - * @return string|false Returns the SQL of the prepared statement, or FALSE on failure. - * @since 7.4 - */ - public function getSQL(bool $expand = false){} - +class SQLite3Stmt +{ + /** + * Returns the number of parameters within the prepared statement + * @link https://php.net/manual/en/sqlite3stmt.paramcount.php + * @return int the number of parameters within the prepared statement. + */ + public function paramCount() {} + + /** + * Closes the prepared statement + * @link https://php.net/manual/en/sqlite3stmt.close.php + * @return bool TRUE + */ + public function close() {} + + /** + * Resets the prepared statement + * @link https://php.net/manual/en/sqlite3stmt.reset.php + * @return bool TRUE if the statement is successfully reset, FALSE on failure. + */ + public function reset() {} + + /** + * Clears all current bound parameters + * @link https://php.net/manual/en/sqlite3stmt.clear.php + * @return bool TRUE on successful clearing of bound parameters, FALSE on + * failure. + */ + public function clear() {} + + /** + * Executes a prepared statement and returns a result set object + * @link https://php.net/manual/en/sqlite3stmt.execute.php + * @return SQLite3Result an SQLite3Result object on successful execution of the prepared + * statement, FALSE on failure. + */ + public function execute() {} + + /** + * Binds a parameter to a statement variable + * @link https://php.net/manual/en/sqlite3stmt.bindparam.php + * @param string $param

    + * An string identifying the statement variable to which the + * parameter should be bound. + *

    + * @param mixed &$var

    + * The parameter to bind to a statement variable. + *

    + * @param int $type [optional]

    + * The data type of the parameter to bind. + *

    + *

    + * SQLITE3_INTEGER: The value is a signed integer, + * stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of + * the value. + *

    + * @return bool TRUE if the parameter is bound to the statement variable, FALSE + * on failure. + */ + public function bindParam($param, &$var, $type = SQLITE3_TEXT) {} + + /** + * Binds the value of a parameter to a statement variable + * @link https://php.net/manual/en/sqlite3stmt.bindvalue.php + * @param string $param

    + * An string identifying the statement variable to which the + * value should be bound. + *

    + * @param mixed $value

    + * The value to bind to a statement variable. + *

    + * @param int $type [optional]

    + * The data type of the value to bind. + *

    + *

    + * SQLITE3_INTEGER: The value is a signed integer, + * stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of + * the value. + *

    + * @return bool TRUE if the value is bound to the statement variable, FALSE + * on failure. + */ + public function bindValue($param, $value, $type = SQLITE3_TEXT) {} + + public function readOnly() {} + + /** + * @param SQLite3 $sqlite3 + * @param string $query + */ + private function __construct($sqlite3, $query) {} + + /** + * Retrieves the SQL of the prepared statement. If expanded is FALSE, the unmodified SQL is retrieved. + * If expanded is TRUE, all query parameters are replaced with their bound values, or with an SQL NULL, if not already bound. + * @param bool $expand Whether to retrieve the expanded SQL. Passing TRUE is only supported as of libsqlite 3.14. + * @return string|false Returns the SQL of the prepared statement, or FALSE on failure. + * @since 7.4 + */ + public function getSQL(bool $expand = false) {} } /** * A class that handles result sets for the SQLite 3 extension. * @link https://php.net/manual/en/class.sqlite3result.php */ -class SQLite3Result { - - /** - * Returns the number of columns in the result set - * @link https://php.net/manual/en/sqlite3result.numcolumns.php - * @return int the number of columns in the result set. - */ - public function numColumns () {} - - /** - * Returns the name of the nth column - * @link https://php.net/manual/en/sqlite3result.columnname.php - * @param int $column

    - * The numeric zero-based index of the column. - *

    - * @return string the string name of the column identified by - * column_number. - */ - public function columnName ($column) {} - - /** - * Returns the type of the nth column - * @link https://php.net/manual/en/sqlite3result.columntype.php - * @param int $column

    - * The numeric zero-based index of the column. - *

    - * @return int the data type index of the column identified by - * column_number (one of - * SQLITE3_INTEGER, SQLITE3_FLOAT, - * SQLITE3_TEXT, SQLITE3_BLOB, or - * SQLITE3_NULL). - */ - public function columnType ($column) {} - - /** - * Fetches a result row as an associative or numerically indexed array or both - * @link https://php.net/manual/en/sqlite3result.fetcharray.php - * @param int $mode [optional]

    - * Controls how the next row will be returned to the caller. This value - * must be one of either SQLITE3_ASSOC, - * SQLITE3_NUM, or SQLITE3_BOTH. - *

    - *

    - * SQLITE3_ASSOC: returns an array indexed by column - * name as returned in the corresponding result set - *

    - * @return array|false a result row as an associatively or numerically indexed array or - * both. Alternately will return FALSE if there are no more rows. - */ - public function fetchArray ($mode = SQLITE3_BOTH) {} - - /** - * Resets the result set back to the first row - * @link https://php.net/manual/en/sqlite3result.reset.php - * @return bool TRUE if the result set is successfully reset - * back to the first row, FALSE on failure. - */ - public function reset () {} - - /** - * Closes the result set - * @link https://php.net/manual/en/sqlite3result.finalize.php - * @return bool TRUE. - */ - public function finalize () {} - - private function __construct () {} - +class SQLite3Result +{ + /** + * Returns the number of columns in the result set + * @link https://php.net/manual/en/sqlite3result.numcolumns.php + * @return int the number of columns in the result set. + */ + public function numColumns() {} + + /** + * Returns the name of the nth column + * @link https://php.net/manual/en/sqlite3result.columnname.php + * @param int $column

    + * The numeric zero-based index of the column. + *

    + * @return string the string name of the column identified by + * column_number. + */ + public function columnName($column) {} + + /** + * Returns the type of the nth column + * @link https://php.net/manual/en/sqlite3result.columntype.php + * @param int $column

    + * The numeric zero-based index of the column. + *

    + * @return int the data type index of the column identified by + * column_number (one of + * SQLITE3_INTEGER, SQLITE3_FLOAT, + * SQLITE3_TEXT, SQLITE3_BLOB, or + * SQLITE3_NULL). + */ + public function columnType($column) {} + + /** + * Fetches a result row as an associative or numerically indexed array or both + * @link https://php.net/manual/en/sqlite3result.fetcharray.php + * @param int $mode [optional]

    + * Controls how the next row will be returned to the caller. This value + * must be one of either SQLITE3_ASSOC, + * SQLITE3_NUM, or SQLITE3_BOTH. + *

    + *

    + * SQLITE3_ASSOC: returns an array indexed by column + * name as returned in the corresponding result set + *

    + * @return array|false a result row as an associatively or numerically indexed array or + * both. Alternately will return FALSE if there are no more rows. + */ + public function fetchArray($mode = SQLITE3_BOTH) {} + + /** + * Resets the result set back to the first row + * @link https://php.net/manual/en/sqlite3result.reset.php + * @return bool TRUE if the result set is successfully reset + * back to the first row, FALSE on failure. + */ + public function reset() {} + + /** + * Closes the result set + * @link https://php.net/manual/en/sqlite3result.finalize.php + * @return bool TRUE. + */ + public function finalize() {} + + private function __construct() {} } /** @@ -532,7 +529,7 @@ private function __construct () {} * corresponding result set. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_ASSOC', 1); +define('SQLITE3_ASSOC', 1); /** * Specifies that the Sqlite3Result::fetchArray @@ -540,7 +537,7 @@ private function __construct () {} * corresponding result set, starting at column 0. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_NUM', 2); +define('SQLITE3_NUM', 2); /** * Specifies that the Sqlite3Result::fetchArray @@ -548,56 +545,55 @@ private function __construct () {} * returned in the corresponding result set, starting at column 0. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_BOTH', 3); +define('SQLITE3_BOTH', 3); /** * Represents the SQLite3 INTEGER storage class. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_INTEGER', 1); +define('SQLITE3_INTEGER', 1); /** * Represents the SQLite3 REAL (FLOAT) storage class. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_FLOAT', 2); +define('SQLITE3_FLOAT', 2); /** * Represents the SQLite3 TEXT storage class. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_TEXT', 3); +define('SQLITE3_TEXT', 3); /** * Represents the SQLite3 BLOB storage class. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_BLOB', 4); +define('SQLITE3_BLOB', 4); /** * Represents the SQLite3 NULL storage class. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_NULL', 5); +define('SQLITE3_NULL', 5); /** * Specifies that the SQLite3 database be opened for reading only. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_OPEN_READONLY', 1); +define('SQLITE3_OPEN_READONLY', 1); /** * Specifies that the SQLite3 database be opened for reading and writing. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_OPEN_READWRITE', 2); +define('SQLITE3_OPEN_READWRITE', 2); /** * Specifies that the SQLite3 database be created if it does not already * exist. * @link https://php.net/manual/en/sqlite3.constants.php */ -define ('SQLITE3_OPEN_CREATE', 4); +define('SQLITE3_OPEN_CREATE', 4); // End of sqlite3 v.0.7-dev -?> diff --git a/sqlsrv/sqlsrv.php b/sqlsrv/sqlsrv.php index 97520ffe3..c2f057a57 100644 --- a/sqlsrv/sqlsrv.php +++ b/sqlsrv/sqlsrv.php @@ -49,7 +49,7 @@ * Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}
    * @link https://docs.microsoft.com/en-us/sql/connect/php/constants-microsoft-drivers-for-php-for-sql-server */ -define('SQLSRV_LOG_SYSTEM_ALL',-1); +define('SQLSRV_LOG_SYSTEM_ALL', -1); /** * Turns logging off. @@ -262,7 +262,7 @@ * * @link https://docs.microsoft.com/en-us/sql/connect/php/constants-microsoft-drivers-for-php-for-sql-server */ -define('SQLSRV_ENC_CHAR','char'); +define('SQLSRV_ENC_CHAR', 'char'); /** * The column is not nullable. @@ -928,7 +928,6 @@ */ define('SQLSRV_CURSOR_CLIENT_BUFFERED', 'buffered'); - /** * Creates and opens a connection. * @@ -960,7 +959,7 @@ * See {@link http://msdn.microsoft.com/en-us/library/ff628167.aspx Connection Options} for a list of the supported keys for the array. * @return resource|false A PHP connection resource. If a connection cannot be successfully created and opened, false is returned. */ -function sqlsrv_connect($server_name, $connection_info = array()){} +function sqlsrv_connect($server_name, $connection_info = []) {} /** * Closes a connection. Frees all resources associated with the connection. @@ -975,7 +974,7 @@ function sqlsrv_connect($server_name, $connection_info = array()){} * @param resource|null $conn The connection to be closed. * @return bool The Boolean value true unless the function is called with an invalid parameter. If the function is called with an invalid parameter, false is returned. */ -function sqlsrv_close($conn){} +function sqlsrv_close($conn) {} /** * Commits a transaction that was begun with sqlsrv_begin_transaction. @@ -996,7 +995,7 @@ function sqlsrv_close($conn){} * @param resource $conn The connection on which the transaction is active. * @return bool A Boolean value: true if the transaction was successfully committed. Otherwise, false. */ -function sqlsrv_commit($conn){} +function sqlsrv_commit($conn) {} /** * Begins a database transaction. @@ -1023,7 +1022,7 @@ function sqlsrv_commit($conn){} * @param resource $conn The connection with which the transaction is associated. * @return bool A Boolean value: true if the transaction was successfully begun. Otherwise, false. */ -function sqlsrv_begin_transaction($conn){} +function sqlsrv_begin_transaction($conn) {} /** * Rolls back a transaction that was begun with {@see sqlsrv_begin_transaction}. @@ -1047,7 +1046,7 @@ function sqlsrv_begin_transaction($conn){} * @param resource $conn The connection on which the transaction is active. * @return bool A Boolean value: true if the transaction was successfully rolled back. Otherwise, false. */ -function sqlsrv_rollback($conn){} +function sqlsrv_rollback($conn) {} /** * Returns error and/or warning information about the last operation. @@ -1100,7 +1099,7 @@ function sqlsrv_rollback($conn){} * * If no errors or warnings occur, null is returned.
    */ -function sqlsrv_errors($errorsAndOrWarnings = SQLSRV_ERR_ALL){} +function sqlsrv_errors($errorsAndOrWarnings = SQLSRV_ERR_ALL) {} /** * Changes the driver error handling and logging configurations. @@ -1129,7 +1128,7 @@ function sqlsrv_errors($errorsAndOrWarnings = SQLSRV_ERR_ALL){} *
  • false (0)
  • * @return bool If sqlsrv_configure is called with an unsupported setting or value, the function returns false. Otherwise, the function returns true. */ -function sqlsrv_configure($setting, $value){} +function sqlsrv_configure($setting, $value) {} /** * Returns the current value of the specified configuration setting. @@ -1144,7 +1143,7 @@ function sqlsrv_configure($setting, $value){} * @param string $setting The configuration setting for which the value is returned. * @return mixed|false The value of the setting specified by the $setting parameter. If an invalid setting is specified, false is returned and an error is added to the error collection. */ -function sqlsrv_get_config($setting){} +function sqlsrv_get_config($setting) {} /** * Prepares a Transact-SQL query without executing it. Implicitly binds parameters. @@ -1211,7 +1210,7 @@ function sqlsrv_get_config($setting){} *
  • SQLSRV_CURSOR_CLIENT_BUFFERED
  • * @return resource|false A statement resource. If the statement resource cannot be created, false is returned. */ -function sqlsrv_prepare($conn, $tsql, $params = array(), $options = array()){} +function sqlsrv_prepare($conn, $tsql, $params = [], $options = []) {} /** * Executes a statement prepared with {@see sqlsrv_prepare} @@ -1230,7 +1229,7 @@ function sqlsrv_prepare($conn, $tsql, $params = array(), $options = array()){} * statement resource, see {@link sqlsrv_prepare() sqlsrv_prepare}. * @return bool A Boolean value: true if the statement was successfully executed. Otherwise, false. */ -function sqlsrv_execute($stmt){} +function sqlsrv_execute($stmt) {} /** * Prepares and executes a Transact-SQL query. @@ -1285,7 +1284,7 @@ function sqlsrv_execute($stmt){} *
  • SQLSRV_CURSOR_CLIENT_BUFFERED
  • * @return resource|false A statement resource. If the statement cannot be created and/or executed, false is returned. */ -function sqlsrv_query($conn, $tsql, $params = array(), $options = array()){} +function sqlsrv_query($conn, $tsql, $params = [], $options = []) {} /** * Makes the next row in a result set available for reading. @@ -1310,7 +1309,7 @@ function sqlsrv_query($conn, $tsql, $params = array(), $options = array()){} * @return bool|null If the next row of the result set was successfully retrieved, true is returned. If there are * no more results in the result set, null is returned. If an error occurred, false is returned. */ -function sqlsrv_fetch($stmt, $row = null, $offset = null){} +function sqlsrv_fetch($stmt, $row = null, $offset = null) {} /** * Retrieves a field in the current row by index. The PHP return type can be specified. @@ -1345,7 +1344,7 @@ function sqlsrv_fetch($stmt, $row = null, $offset = null){} * information about specifying PHP data types, * see {@link http://msdn.microsoft.com/en-us/library/cc296208.aspx How to: Specify PHP Data Types}. */ -function sqlsrv_get_field($stmt, $field_index, $get_as_type=null){} +function sqlsrv_get_field($stmt, $field_index, $get_as_type = null) {} /** * Retrieves the next row of data as a numerically indexed array, an associative array, or both. @@ -1393,7 +1392,7 @@ function sqlsrv_get_field($stmt, $field_index, $get_as_type=null){} * retrieve. The first record in the result set is 0. * @return array|null|false If a row of data is retrieved, an array is returned. If there are no more rows to retrieve, null is returned. If an error occurs, false is returned. */ -function sqlsrv_fetch_array($stmt, $fetch_type = null, $row = null, $offset = null){} +function sqlsrv_fetch_array($stmt, $fetch_type = null, $row = null, $offset = null) {} /** * Retrieves the next row of data as an object. @@ -1426,7 +1425,7 @@ function sqlsrv_fetch_array($stmt, $fetch_type = null, $row = null, $offset = nu * The data type of a value in the returned object will be the default PHP data type. For information on default PHP data * types, see {@link http://msdn.microsoft.com/en-us/library/cc296193.aspx Default PHP Data Types}.
    */ -function sqlsrv_fetch_object($stmt, $class_name = null, $ctor_params = null, $row = null, $offset = null){} +function sqlsrv_fetch_object($stmt, $class_name = null, $ctor_params = null, $row = null, $offset = null) {} /** * Detects if a result set has one or more rows. @@ -1440,7 +1439,7 @@ function sqlsrv_fetch_object($stmt, $class_name = null, $ctor_params = null, $ro * @return bool If there are rows in the result set, the return value will be true. If there are no rows, or if the * function call fails, the return value will be false. */ -function sqlsrv_has_rows($stmt){} +function sqlsrv_has_rows($stmt) {} /** * Retrieves the number of fields (columns) on a statemen. @@ -1456,7 +1455,7 @@ function sqlsrv_has_rows($stmt){} * @return int|false An integer value that represents the number of fields in the active result set. If an error occurs, * the Boolean value false is returned. */ -function sqlsrv_num_fields($stmt){} +function sqlsrv_num_fields($stmt) {} /** * Makes the next result of the specified statement active. @@ -1474,7 +1473,7 @@ function sqlsrv_num_fields($stmt){} * @return bool|null If the next result was successfully made active, the Boolean value true is returned. If an error occurred in * making the next result active, false is returned. If no more results are available, null is returned. */ -function sqlsrv_next_result($stmt){} +function sqlsrv_next_result($stmt) {} /** * Retrieves the number of rows in a result set. @@ -1491,7 +1490,7 @@ function sqlsrv_next_result($stmt){} * @param resource $stmt The result set for which to count the rows. * @return int|false False if there was an error calculating the number of rows. Otherwise, returns the number of rows in the result set. */ -function sqlsrv_num_rows($stmt){} +function sqlsrv_num_rows($stmt) {} /** * Returns the number of modified rows. @@ -1507,7 +1506,7 @@ function sqlsrv_num_rows($stmt){} * modified, zero (0) is returned. If no information about the number of modified rows is available, negative one (-1) * is returned. If an error occurred in retrieving the number of modified rows, false is returned. */ -function sqlsrv_rows_affected($stmt){} +function sqlsrv_rows_affected($stmt) {} /** * Provides information about the client. @@ -1525,7 +1524,7 @@ function sqlsrv_rows_affected($stmt){} *
  • DriverVer - SQL Server Native Client DLL version: 10.50.xxx (Microsoft Drivers for PHP for SQL Server version 2.0)
  • *
  • ExtensionVer - php_sqlsrv.dll version: 2.0.xxxx.x(Microsoft Drivers for PHP for SQL Server version 2.0)
  • */ -function sqlsrv_client_info($conn){} +function sqlsrv_client_info($conn) {} /** * Returns information about the server. @@ -1541,7 +1540,7 @@ function sqlsrv_client_info($conn){} *
  • SQLServerVersion - The version of SQL Server.
  • *
  • SQLServerName - The name of the server.
  • */ -function sqlsrv_server_info($conn){} +function sqlsrv_server_info($conn) {} /** * Cancels a statement; discards any pending results for the statement. @@ -1561,7 +1560,7 @@ function sqlsrv_server_info($conn){} * @param resource $stmt The statement to be canceled. * @return bool A Boolean value: true if the operation was successful. Otherwise, false. */ -function sqlsrv_cancel($stmt){} +function sqlsrv_cancel($stmt) {} /** * Closes a statement. Frees all resources associated with the statement. @@ -1582,7 +1581,7 @@ function sqlsrv_cancel($stmt){} * @return bool The Boolean value true unless the function is called with an invalid parameter. If the function is * called with an invalid parameter, false is returned. */ -function sqlsrv_free_stmt($stmt){} +function sqlsrv_free_stmt($stmt) {} /** * Returns field metadata. @@ -1613,7 +1612,7 @@ function sqlsrv_free_stmt($stmt){} * See the {@link http://msdn.microsoft.com/en-us/library/cc296197.aspx function documentation} for more information on * the keys for each sub-array. */ -function sqlsrv_field_metadata($stmt){} +function sqlsrv_field_metadata($stmt) {} /** * Sends up to eight kilobytes (8 KB) of data to the server with each call to the function. @@ -1632,7 +1631,7 @@ function sqlsrv_field_metadata($stmt){} * @param resource $stmt A statement resource corresponding to an executed statement. * @return bool Boolean : true if there is more data to be sent. Otherwise, false. */ -function sqlsrv_send_stream_data($stmt){} +function sqlsrv_send_stream_data($stmt) {} /** * Specifies the encoding of a stream of data from the server. @@ -1661,7 +1660,7 @@ function sqlsrv_send_stream_data($stmt){} * @return int Value to use in any place that accepts a SQLSRV_PHPTYPE_* constant to represent a PHP stream with the * given encoding. */ -function SQLSRV_PHPTYPE_STREAM($encoding){} +function SQLSRV_PHPTYPE_STREAM($encoding) {} /** * Specifies the encoding of a string being received form the server. @@ -1690,7 +1689,7 @@ function SQLSRV_PHPTYPE_STREAM($encoding){} * @return int Value to use in any place that accepts a SQLSRV_PHPTYPE_* constant to represent a PHP string with the * given encoding. */ -function SQLSRV_PHPTYPE_STRING($encoding){} +function SQLSRV_PHPTYPE_STRING($encoding) {} /** * Specifies a SQL Server binary field. @@ -1703,7 +1702,7 @@ function SQLSRV_PHPTYPE_STRING($encoding){} * @param int $byteCount Must be between 1 and 8000. * @return int Value to use in any place that accepts a SQLSRV_SQLTYPE_* constant to represent the 'binary' data type. */ -function SQLSRV_SQLTYPE_BINARY($byteCount){} +function SQLSRV_SQLTYPE_BINARY($byteCount) {} /** * Specifies a SQL Server varbinary field. @@ -1716,7 +1715,7 @@ function SQLSRV_SQLTYPE_BINARY($byteCount){} * @param int|string $byteCount Must be between 1 and 8000 or 'max'. * @return int Value to use in any place that accepts a SQLSRV_SQLTYPE_* constant to represent the varbinary data type. */ -function SQLSRV_SQLTYPE_VARBINARY($byteCount){} +function SQLSRV_SQLTYPE_VARBINARY($byteCount) {} /** * Specifies a SQL Server varchar filed. @@ -1744,7 +1743,7 @@ function SQLSRV_SQLTYPE_VARCHAR($charCount) {} * @param int $charCount Must be between 1 and 8000. * @return int Value to use in any place that accepts a SQLSRV_SQLTYPE_* constant to represent the char data type. */ -function SQLSRV_SQLTYPE_CHAR($charCount){} +function SQLSRV_SQLTYPE_CHAR($charCount) {} /** * Specifies a SQL Server nchar field. @@ -1757,7 +1756,7 @@ function SQLSRV_SQLTYPE_CHAR($charCount){} * @param int $charCount Must be between 1 and 4000. * @return int Value to use in any place that accepts a SQLSRV_SQLTYPE_* constant to represent the nchar data type. */ -function SQLSRV_SQLTYPE_NCHAR($charCount){} +function SQLSRV_SQLTYPE_NCHAR($charCount) {} /** * Specifies a SQL Server nvarchar field. @@ -1770,7 +1769,7 @@ function SQLSRV_SQLTYPE_NCHAR($charCount){} * @param int|string $charCount Must be between 1 and 4000 or 'max'. * @return int Value to use in any place that accepts a SQLSRV_SQLTYPE_* constant to represent the nvarchar data type. */ -function SQLSRV_SQLTYPE_NVARCHAR($charCount){} +function SQLSRV_SQLTYPE_NVARCHAR($charCount) {} /** * Specifies a SQL Server decimal field. @@ -1784,7 +1783,7 @@ function SQLSRV_SQLTYPE_NVARCHAR($charCount){} * @param int $scale Must be between 1 and $precision. * @return int Value to use in any place that accepts a SQLSRV_SQLTYPE_* constant to represent the decimal data type. */ -function SQLSRV_SQLTYPE_DECIMAL($precision, $scale){} +function SQLSRV_SQLTYPE_DECIMAL($precision, $scale) {} /** * Specifies a SQL Server numeric field. @@ -1798,4 +1797,4 @@ function SQLSRV_SQLTYPE_DECIMAL($precision, $scale){} * @param int $scale Must be between 1 and $precision. * @return int Value to use in any place that accepts a SQLSRV_SQLTYPE_* constant to represent the numeric data type. */ -function SQLSRV_SQLTYPE_NUMERIC($precision, $scale){} +function SQLSRV_SQLTYPE_NUMERIC($precision, $scale) {} diff --git a/ssh2/ssh2.php b/ssh2/ssh2.php index 5ddbe440f..ddf007b8e 100644 --- a/ssh2/ssh2.php +++ b/ssh2/ssh2.php @@ -175,7 +175,7 @@ *

    * @return resource|false a resource on success, or false on error. */ -function ssh2_connect ($host, $port = null, ?array $methods = null , ?array $callbacks = null ) {} +function ssh2_connect($host, $port = null, ?array $methods = null, ?array $callbacks = null) {} /** * (PECL ssh2 >= 1.0)
    @@ -187,7 +187,7 @@ function ssh2_connect ($host, $port = null, ?array $methods = null , ?array $cal *

    * @return bool */ -function ssh2_disconnect ($session) {} +function ssh2_disconnect($session) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -199,7 +199,7 @@ function ssh2_disconnect ($session) {} *

    * @return array */ -function ssh2_methods_negotiated ($session) {} +function ssh2_methods_negotiated($session) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -218,7 +218,7 @@ function ssh2_methods_negotiated ($session) {} *

    * @return string the hostkey hash as a string. */ -function ssh2_fingerprint ($session, $flags = null) {} +function ssh2_fingerprint($session, $flags = null) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -234,7 +234,7 @@ function ssh2_fingerprint ($session, $flags = null) {} * @return array|bool true if the server does accept "none" as an authentication * method, or an array of accepted authentication methods on failure. */ -function ssh2_auth_none ($session, $username) {} +function ssh2_auth_none($session, $username) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -252,7 +252,7 @@ function ssh2_auth_none ($session, $username) {} *

    * @return bool true on success or false on failure. */ -function ssh2_auth_password ($session, $username, $password) {} +function ssh2_auth_password($session, $username, $password) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -274,7 +274,7 @@ function ssh2_auth_password ($session, $username, $password) {} *

    * @return bool true on success or false on failure. */ -function ssh2_auth_pubkey_file ($session, $username, $pubkeyfile, $privkeyfile, $passphrase = null) {} +function ssh2_auth_pubkey_file($session, $username, $pubkeyfile, $privkeyfile, $passphrase = null) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -302,11 +302,11 @@ function ssh2_auth_pubkey_file ($session, $username, $pubkeyfile, $privkeyfile, *

    * @return bool true on success or false on failure. */ -function ssh2_auth_hostbased_file ($session, $username, $hostname, $pubkeyfile, $privkeyfile, $passphrase = null, $local_username = null) {} +function ssh2_auth_hostbased_file($session, $username, $hostname, $pubkeyfile, $privkeyfile, $passphrase = null, $local_username = null) {} -function ssh2_forward_listen () {} +function ssh2_forward_listen() {} -function ssh2_forward_accept () {} +function ssh2_forward_accept() {} /** * (PECL ssh2 >= 0.9.0)
    @@ -337,7 +337,7 @@ function ssh2_forward_accept () {} *

    * @return resource */ -function ssh2_shell ($session, $term_type = null, ?array $env = null , $width = null, $height = null, $width_height_type = null) {} +function ssh2_shell($session, $term_type = null, ?array $env = null, $width = null, $height = null, $width_height_type = null) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -368,7 +368,7 @@ function ssh2_shell ($session, $term_type = null, ?array $env = null , $width = *

    * @return resource|false a stream on success or false on failure. */ -function ssh2_exec ($session, $command, $pty = null, ?array $env = null , $width = null, $height = null, $width_height_type = null) {} +function ssh2_exec($session, $command, $pty = null, ?array $env = null, $width = null, $height = null, $width_height_type = null) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -384,7 +384,7 @@ function ssh2_exec ($session, $command, $pty = null, ?array $env = null , $width *

    * @return resource */ -function ssh2_tunnel ($session, $host, $port) {} +function ssh2_tunnel($session, $host, $port) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -402,7 +402,7 @@ function ssh2_tunnel ($session, $host, $port) {} *

    * @return bool true on success or false on failure. */ -function ssh2_scp_recv ($session, $remote_file, $local_file) {} +function ssh2_scp_recv($session, $remote_file, $local_file) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -424,7 +424,7 @@ function ssh2_scp_recv ($session, $remote_file, $local_file) {} *

    * @return bool true on success or false on failure. */ -function ssh2_scp_send ($session, $local_file, $remote_file, $create_mode = null) {} +function ssh2_scp_send($session, $local_file, $remote_file, $create_mode = null) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -437,12 +437,12 @@ function ssh2_scp_send ($session, $local_file, $remote_file, $create_mode = null *

    * @return resource the requested stream resource. */ -function ssh2_fetch_stream ($channel, $streamid) {} +function ssh2_fetch_stream($channel, $streamid) {} /** * @param array &$var1 */ -function ssh2_poll (&$var1) {} +function ssh2_poll(&$var1) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -456,7 +456,7 @@ function ssh2_poll (&$var1) {} * all other ssh2_sftp_*() methods and the * ssh2.sftp:// fopen wrapper. */ -function ssh2_sftp ($session) {} +function ssh2_sftp($session) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -473,7 +473,7 @@ function ssh2_sftp ($session) {} *

    * @return bool true on success or false on failure. */ -function ssh2_sftp_rename ($sftp, $from, $to) {} +function ssh2_sftp_rename($sftp, $from, $to) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -486,7 +486,7 @@ function ssh2_sftp_rename ($sftp, $from, $to) {} *

    * @return bool true on success or false on failure. */ -function ssh2_sftp_unlink ($sftp, $filename) {} +function ssh2_sftp_unlink($sftp, $filename) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -507,7 +507,7 @@ function ssh2_sftp_unlink ($sftp, $filename) {} *

    * @return bool true on success or false on failure. */ -function ssh2_sftp_mkdir ($sftp, $dirname, $mode = null, $recursive = null) {} +function ssh2_sftp_mkdir($sftp, $dirname, $mode = null, $recursive = null) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -520,7 +520,7 @@ function ssh2_sftp_mkdir ($sftp, $dirname, $mode = null, $recursive = null) {} *

    * @return bool true on success or false on failure. */ -function ssh2_sftp_rmdir ($sftp, $dirname) {} +function ssh2_sftp_rmdir($sftp, $dirname) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -534,7 +534,7 @@ function ssh2_sftp_rmdir ($sftp, $dirname) {} * @return array|false See the documentation for stat for details on the * values which may be returned. */ -function ssh2_sftp_stat ($sftp, $path) {} +function ssh2_sftp_stat($sftp, $path) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -548,7 +548,7 @@ function ssh2_sftp_stat ($sftp, $path) {} * @return array See the documentation for stat for details on the * values which may be returned. */ -function ssh2_sftp_lstat ($sftp, $path) {} +function ssh2_sftp_lstat($sftp, $path) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -564,7 +564,7 @@ function ssh2_sftp_lstat ($sftp, $path) {} *

    * @return bool true on success or false on failure. */ -function ssh2_sftp_symlink ($sftp, $target, $link) {} +function ssh2_sftp_symlink($sftp, $target, $link) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -578,7 +578,7 @@ function ssh2_sftp_symlink ($sftp, $target, $link) {} *

    * @return string the target of the symbolic link. */ -function ssh2_sftp_readlink ($sftp, $link) {} +function ssh2_sftp_readlink($sftp, $link) {} /** * (PECL ssh2 >= 0.9.0)
    @@ -591,7 +591,7 @@ function ssh2_sftp_readlink ($sftp, $link) {} *

    * @return string the real path as a string. */ -function ssh2_sftp_realpath ($sftp, $filename) {} +function ssh2_sftp_realpath($sftp, $filename) {} /** * (PECL ssh2 >= 0.10)
    @@ -602,7 +602,7 @@ function ssh2_sftp_realpath ($sftp, $filename) {} * @return resource|false an SSH2 Publickey Subsystem resource for use * with all other ssh2_publickey_*() methods or false on failure. */ -function ssh2_publickey_init ($session) {} +function ssh2_publickey_init($session) {} /** * (PECL ssh2 >= 0.10)
    @@ -629,7 +629,7 @@ function ssh2_publickey_init ($session) {} *

    * @return bool true on success or false on failure. */ -function ssh2_publickey_add ($pkey, $algoname, $blob, $overwrite = null, ?array $attributes = null ) {} +function ssh2_publickey_add($pkey, $algoname, $blob, $overwrite = null, ?array $attributes = null) {} /** * (PECL ssh2 >= 0.10)
    @@ -646,7 +646,7 @@ function ssh2_publickey_add ($pkey, $algoname, $blob, $overwrite = null, ?array *

    * @return bool true on success or false on failure. */ -function ssh2_publickey_remove ($pkey, $algoname, $blob) {} +function ssh2_publickey_remove($pkey, $algoname, $blob) {} /** * (PECL ssh2 >= 0.10)
    @@ -684,7 +684,7 @@ function ssh2_publickey_remove ($pkey, $algoname, $blob) {} * * */ -function ssh2_publickey_list ($pkey) {} +function ssh2_publickey_list($pkey) {} /** * (PECL ssh2 >= 0.12)
    @@ -695,7 +695,7 @@ function ssh2_publickey_list ($pkey) {} * @param int $mode

    Permissions on the file. See the chmod() for more details on this parameter.

    * @return bool

    Returns TRUE on success or FALSE on failure.

    */ -function ssh2_sftp_chmod ($sftp, $filename, $mode) {} +function ssh2_sftp_chmod($sftp, $filename, $mode) {} /** * (PECL ssh2 >= 0.12)
    @@ -711,35 +711,35 @@ function ssh2_sftp_chmod ($sftp, $filename, $mode) {} * @param string $username

    Remote user name.

    * @return bool

    Returns TRUE on success or FALSE on failure.

    */ -function ssh2_auth_agent ($session, $username) {} +function ssh2_auth_agent($session, $username) {} /** * Flag to ssh2_fingerprint requesting hostkey * fingerprint as an MD5 hash. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_FINGERPRINT_MD5', 0); +define('SSH2_FINGERPRINT_MD5', 0); /** * Flag to ssh2_fingerprint requesting hostkey * fingerprint as an SHA1 hash. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_FINGERPRINT_SHA1', 1); +define('SSH2_FINGERPRINT_SHA1', 1); /** * Flag to ssh2_fingerprint requesting hostkey * fingerprint as a string of hexits. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_FINGERPRINT_HEX', 0); +define('SSH2_FINGERPRINT_HEX', 0); /** * Flag to ssh2_fingerprint requesting hostkey * fingerprint as a raw string of 8-bit characters. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_FINGERPRINT_RAW', 2); +define('SSH2_FINGERPRINT_RAW', 2); /** * Flag to ssh2_shell specifying that @@ -747,7 +747,7 @@ function ssh2_auth_agent ($session, $username) {} * are provided as character sizes. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_TERM_UNIT_CHARS', 0); +define('SSH2_TERM_UNIT_CHARS', 0); /** * Flag to ssh2_shell specifying that @@ -755,50 +755,50 @@ function ssh2_auth_agent ($session, $username) {} * are provided in pixel units. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_TERM_UNIT_PIXELS', 1); +define('SSH2_TERM_UNIT_PIXELS', 1); /** * Default terminal type (e.g. vt102, ansi, xterm, vanilla) requested * by ssh2_shell. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_DEFAULT_TERMINAL', "vanilla"); +define('SSH2_DEFAULT_TERMINAL', "vanilla"); /** * Default terminal width requested by ssh2_shell. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_DEFAULT_TERM_WIDTH', 80); +define('SSH2_DEFAULT_TERM_WIDTH', 80); /** * Default terminal height requested by ssh2_shell. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_DEFAULT_TERM_HEIGHT', 25); +define('SSH2_DEFAULT_TERM_HEIGHT', 25); /** * Default terminal units requested by ssh2_shell. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_DEFAULT_TERM_UNIT', 0); +define('SSH2_DEFAULT_TERM_UNIT', 0); /** * Flag to ssh2_fetch_stream requesting STDIO subchannel. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_STREAM_STDIO', 0); +define('SSH2_STREAM_STDIO', 0); /** * Flag to ssh2_fetch_stream requesting STDERR subchannel. * @link https://php.net/manual/en/ssh2.constants.php */ -define ('SSH2_STREAM_STDERR', 1); -define ('SSH2_POLLIN', 1); -define ('SSH2_POLLEXT', 2); -define ('SSH2_POLLOUT', 4); -define ('SSH2_POLLERR', 8); -define ('SSH2_POLLHUP', 16); -define ('SSH2_POLLNVAL', 32); -define ('SSH2_POLL_SESSION_CLOSED', 16); -define ('SSH2_POLL_CHANNEL_CLOSED', 128); -define ('SSH2_POLL_LISTENER_CLOSED', 128); +define('SSH2_STREAM_STDERR', 1); +define('SSH2_POLLIN', 1); +define('SSH2_POLLEXT', 2); +define('SSH2_POLLOUT', 4); +define('SSH2_POLLERR', 8); +define('SSH2_POLLHUP', 16); +define('SSH2_POLLNVAL', 32); +define('SSH2_POLL_SESSION_CLOSED', 16); +define('SSH2_POLL_CHANNEL_CLOSED', 128); +define('SSH2_POLL_LISTENER_CLOSED', 128); diff --git a/standard/CSPRNG.php b/standard/CSPRNG.php index d9d30d172..e591f9412 100644 --- a/standard/CSPRNG.php +++ b/standard/CSPRNG.php @@ -7,8 +7,7 @@ * @since 7.0 * @throws Exception if it was not possible to gather sufficient entropy. */ -function random_bytes (int $length): string -{} +function random_bytes(int $length): string {} /** * Generates cryptographically secure pseudo-random integers @@ -19,5 +18,4 @@ function random_bytes (int $length): string * @since 7.0 * @throws Exception if it was not possible to gather sufficient entropy. */ -function random_int (int $min, int $max): int -{} +function random_int(int $min, int $max): int {} diff --git a/standard/_standard_manual.php b/standard/_standard_manual.php index e8f1df426..f8bfb23b1 100644 --- a/standard/_standard_manual.php +++ b/standard/_standard_manual.php @@ -9,7 +9,7 @@ * @link https://php.net/manual/en/function.halt-compiler.php * @return void */ -function PS_UNRESERVE_PREFIX___halt_compiler(){} +function PS_UNRESERVE_PREFIX___halt_compiler() {} /** * (PHP 5.1)
    @@ -17,8 +17,7 @@ function PS_UNRESERVE_PREFIX___halt_compiler(){} * @link https://php.net/manual/en/function.halt-compiler.php * @return void */ -define("__COMPILER_HALT_OFFSET__",0); - +define("__COMPILER_HALT_OFFSET__", 0); /** * Convert hexadecimal string to its binary representation. @@ -32,13 +31,11 @@ function PS_UNRESERVE_PREFIX___halt_compiler(){} * @see unpack() * @since 5.4 */ -function hex2bin(string $string): string|false -{}; +function hex2bin(string $string): string|false {}; /** * Get or Set the HTTP response code * @param int $response_code [optional] The optional response_code will set the response code. * @return int|bool The current response code. By default the return value is int(200). */ -function http_response_code(int $response_code): int|bool -{} +function http_response_code(int $response_code): int|bool {} diff --git a/standard/_types.php b/standard/_types.php index 1e8710682..5a92c1543 100644 --- a/standard/_types.php +++ b/standard/_types.php @@ -1,7 +1,6 @@ * @return array an array of the parameters. The parameters can be given an index with the => operator. */ - function PS_UNRESERVE_PREFIX_array(...$_){}; + function PS_UNRESERVE_PREFIX_array(...$_) {}; /** * Assigns a list of variables in one operation. @@ -25,7 +24,7 @@ function PS_UNRESERVE_PREFIX_array(...$_){}; * @param mixed ...$_ [optional]

    Another variable ...

    * @return array the assigned array. */ - function PS_UNRESERVE_PREFIX_list($var1, ...$_){}; + function PS_UNRESERVE_PREFIX_list($var1, ...$_) {}; /** *

    Terminates execution of the script. Shutdown functions and object destructors will always be executed even if exit is called.

    @@ -43,7 +42,7 @@ function PS_UNRESERVE_PREFIX_list($var1, ...$_){}; *

    * @return void */ - function PS_UNRESERVE_PREFIX_die($status = ""){}; + function PS_UNRESERVE_PREFIX_die($status = "") {}; /** *

    Terminates execution of the script. Shutdown functions and object destructors will always be executed even if exit is called.

    @@ -61,7 +60,7 @@ function PS_UNRESERVE_PREFIX_die($status = ""){}; *

    * @return void */ - function PS_UNRESERVE_PREFIX_exit($status = ""){}; + function PS_UNRESERVE_PREFIX_exit($status = "") {}; /** * Determine whether a variable is considered to be empty. A variable is considered empty if it does not exist or if its value @@ -90,7 +89,7 @@ function PS_UNRESERVE_PREFIX_exit($status = ""){}; * *

    */ - function PS_UNRESERVE_PREFIX_empty($var){}; + function PS_UNRESERVE_PREFIX_empty($var) {}; /** *

    Determine if a variable is set and is not NULL.

    @@ -103,7 +102,7 @@ function PS_UNRESERVE_PREFIX_empty($var){}; * @param mixed ...$_ [optional]

    Another variable ...

    * @return bool Returns TRUE if var exists and has value other than NULL, FALSE otherwise. */ - function PS_UNRESERVE_PREFIX_isset($var, ...$_){}; + function PS_UNRESERVE_PREFIX_isset($var, ...$_) {}; /** *

    Destroys the specified variables.

    @@ -113,7 +112,7 @@ function PS_UNRESERVE_PREFIX_isset($var, ...$_){}; * @param mixed ...$_ [optional]

    Another variable ...

    * @return void */ - function PS_UNRESERVE_PREFIX_unset($var, ...$_){}; + function PS_UNRESERVE_PREFIX_unset($var, ...$_) {}; /** *

    Evaluates the given code as PHP.

    @@ -145,14 +144,15 @@ function PS_UNRESERVE_PREFIX_unset($var, ...$_){}; * case eval() returned FALSE and execution of the following code continued normally. It is not possible to catch a parse * error in eval() using set_error_handler(). */ - function PS_UNRESERVE_PREFIX_eval($code){}; + function PS_UNRESERVE_PREFIX_eval($code) {}; /** * Generator objects are returned from generators, cannot be instantiated via new. * @link https://secure.php.net/manual/en/class.generator.php * @link https://wiki.php.net/rfc/generators */ - final class Generator implements Iterator { + final class Generator implements Iterator +{ /** * Throws an exception if the generator is currently after the first yield. * @return void @@ -208,18 +208,17 @@ public function getReturn() {} * @link https://php.net/manual/en/generator.wakeup.php * @return void */ - public function __wakeup(){} + public function __wakeup() {} } class ClosedGeneratorException extends Exception {} - } namespace ___PHPSTORM_HELPERS { - class PS_UNRESERVE_PREFIX_this {} class PS_UNRESERVE_PREFIX_static {} -class object { +class object +{ /** * PHP 5 allows developers to declare constructor methods for classes. * Classes which have a constructor method call this method on each newly-created object, @@ -280,14 +279,14 @@ public static function __callStatic(string $name, array $arguments) {} */ public function __get(string $name) {} - /** - * run when writing data to inaccessible members. - * - * @param string $name - * @param mixed $value - * @return void - * @link https://php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.members - */ + /** + * run when writing data to inaccessible members. + * + * @param string $name + * @param mixed $value + * @return void + * @link https://php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.members + */ public function __set(string $name, $value): void {} /** @@ -383,9 +382,7 @@ public function __clone(): void {} * @since 7.4 * @link https://wiki.php.net/rfc/custom_object_serialization */ - public function __serialize(): array - { - } + public function __serialize(): array {} /** * Restores the object state from the given data array. @@ -393,9 +390,6 @@ public function __serialize(): array * @since 7.4 * @link https://wiki.php.net/rfc/custom_object_serialization */ - public function __unserialize(array $data): void - { - } - + public function __unserialize(array $data): void {} } } diff --git a/standard/basic.php b/standard/basic.php index 9485a0530..d40ca9485 100644 --- a/standard/basic.php +++ b/standard/basic.php @@ -38,8 +38,7 @@ * @link https://php.net/manual/en/function.dl.php */ #[Deprecated(since: '5.3')] -function dl (string $extension_filename): bool -{} +function dl(string $extension_filename): bool {} /** * Sets the process title @@ -50,8 +49,7 @@ function dl (string $extension_filename): bool * @return bool TRUE on success or FALSE on failure. * @since 5.5 */ -function cli_set_process_title (string $title): bool -{} +function cli_set_process_title(string $title): bool {} /** * Returns the current process title @@ -60,8 +58,7 @@ function cli_set_process_title (string $title): bool * @since 5.5 */ #[Pure] -function cli_get_process_title (): ?string -{} +function cli_get_process_title(): ?string {} /** * Verify that the contents of a variable is accepted by the iterable pseudo-type, i.e. that it is an array or an object implementing Traversable @@ -71,8 +68,7 @@ function cli_get_process_title (): ?string * @link https://php.net/manual/en/function.is-iterable.php */ #[Pure] -function is_iterable(mixed $value): bool -{} +function is_iterable(mixed $value): bool {} /** * Encodes an ISO-8859-1 string to UTF-8 @@ -83,8 +79,7 @@ function is_iterable(mixed $value): bool * @return string the UTF-8 translation of data. */ #[Pure] -function utf8_encode (string $string): string -{} +function utf8_encode(string $string): string {} /** * Converts a string with ISO-8859-1 characters encoded with UTF-8 @@ -96,8 +91,7 @@ function utf8_encode (string $string): string * @return string the ISO-8859-1 translation of data. */ #[Pure] -function utf8_decode (string $string): string -{} +function utf8_decode(string $string): string {} /** * Clear the most recent error @@ -105,7 +99,7 @@ function utf8_decode (string $string): string * @return void * @since 7.0 */ -function error_clear_last (): void {} +function error_clear_last(): void {} /** * Get process codepage @@ -113,8 +107,7 @@ function error_clear_last (): void {} * @return int * @since 7.1 */ -function sapi_windows_cp_get(string $kind): int -{} +function sapi_windows_cp_get(string $kind): int {} /** * Set process codepage @@ -122,8 +115,7 @@ function sapi_windows_cp_get(string $kind): int * @return bool * @since 7.1 */ -function sapi_windows_cp_set(int $cp): bool -{} +function sapi_windows_cp_set(int $cp): bool {} /** * Convert string from one codepage to another @@ -133,16 +125,14 @@ function sapi_windows_cp_set(int $cp): bool * @return string * @since 7.1 */ -function sapi_windows_cp_conv(int|string $in_codepage, int|string $out_codepage, string $subject): string -{} +function sapi_windows_cp_conv(int|string $in_codepage, int|string $out_codepage, string $subject): string {} /** * Indicates whether the codepage is utf-8 compatible * @return bool * @since 7.1 */ -function sapi_windows_cp_is_utf8(): bool -{} +function sapi_windows_cp_is_utf8(): bool {} /** * Get or set VT100 support for the specified stream associated to an output buffer of a Windows console. @@ -165,8 +155,7 @@ function sapi_windows_cp_is_utf8(): bool * If enable is specified: Returns TRUE on success or FALSE on failure. * @since 7.2 */ -function sapi_windows_vt100_support ($stream, bool $enable): bool -{} +function sapi_windows_vt100_support($stream, bool $enable): bool {} /** * Set or remove a CTRL event handler. @@ -177,8 +166,7 @@ function sapi_windows_vt100_support ($stream, bool $enable): bool * @return bool TRUE on success or FALSE on failure. * @since 7.4 */ -function sapi_windows_set_ctrl_handler (callable $callable, bool $add = true): bool -{} +function sapi_windows_set_ctrl_handler(callable $callable, bool $add = true): bool {} /** * Send a CTRL event to another process. @@ -189,8 +177,7 @@ function sapi_windows_set_ctrl_handler (callable $callable, bool $add = true): b * @return bool TRUE on success or FALSE on failure. * @since 7.4 */ -function sapi_windows_generate_ctrl_event (int $event, int $pid = 0): bool -{} +function sapi_windows_generate_ctrl_event(int $event, int $pid = 0): bool {} /** * The full path and filename of the file. If used inside an include, @@ -200,13 +187,13 @@ function sapi_windows_generate_ctrl_event (int $event, int $pid = 0): bool * under some circumstances. * @link https://php.net/manual/en/language.constants.predefined.php */ -define ('__FILE__', '', true); +define('__FILE__', '', true); /** * The current line number of the file. * @link https://php.net/manual/en/language.constants.predefined.php */ -define ('__LINE__', 0, true); +define('__LINE__', 0, true); /** * The class name. (Added in PHP 4.3.0) As of PHP 5 this constant @@ -218,7 +205,7 @@ function sapi_windows_generate_ctrl_event (int $event, int $pid = 0): bool * is used in. * @link https://php.net/manual/en/language.constants.predefined.php */ -define ('__CLASS__', '', true); +define('__CLASS__', '', true); /** * The function name. (Added in PHP 4.3.0) As of PHP 5 this constant @@ -226,14 +213,14 @@ function sapi_windows_generate_ctrl_event (int $event, int $pid = 0): bool * PHP 4 its value is always lowercased. * @link https://php.net/manual/en/language.constants.predefined.php */ -define ('__FUNCTION__', '', true); +define('__FUNCTION__', '', true); /** * The class method name. (Added in PHP 5.0.0) The method name is * returned as it was declared (case-sensitive). * @link https://php.net/manual/en/language.constants.predefined.php */ -define ('__METHOD__', '', true); +define('__METHOD__', '', true); /** * The trait name. (Added in PHP 5.4.0) As of PHP 5.4 this constant @@ -242,7 +229,7 @@ function sapi_windows_generate_ctrl_event (int $event, int $pid = 0): bool * @since 5.4 * @link https://php.net/manual/en/language.constants.predefined.php */ -define ('__TRAIT__', '', true); +define('__TRAIT__', '', true); /** * The directory of the file. If used inside an include, @@ -251,11 +238,11 @@ function sapi_windows_generate_ctrl_event (int $event, int $pid = 0): bool * does not have a trailing slash unless it is the root directory. * @link https://php.net/manual/en/language.constants.predefined.php */ -define ('__DIR__', '', true); +define('__DIR__', '', true); /** * The name of the current namespace (case-sensitive). This constant * is defined in compile-time (Added in PHP 5.3.0). * @link https://php.net/manual/en/language.constants.predefined.php */ -define ('__NAMESPACE__', '', true); +define('__NAMESPACE__', '', true); diff --git a/standard/password.php b/standard/password.php index 3dc6ee2b8..e86a130bd 100644 --- a/standard/password.php +++ b/standard/password.php @@ -82,7 +82,6 @@ define("PASSWORD_BCRYPT", '2y'); /** - * * PASSWORD_ARGON2I is used to create new password hashes using the Argon2i algorithm. * * Supported Options: @@ -99,7 +98,6 @@ define('PASSWORD_ARGON2I', 'argon2i'); /** - * * PASSWORD_ARGON2ID is used to create new password hashes using the Argon2id algorithm. * * Supported Options: @@ -120,14 +118,14 @@ * Available as of PHP 7.2.0. * @since 7.2 */ -define ('PASSWORD_ARGON2_DEFAULT_MEMORY_COST', 65536); +define('PASSWORD_ARGON2_DEFAULT_MEMORY_COST', 65536); /** * Default amount of time that Argon2lib will spend trying to compute a hash. * Available as of PHP 7.2.0. * @since 7.2 */ -define ('PASSWORD_ARGON2_DEFAULT_TIME_COST', 4); +define('PASSWORD_ARGON2_DEFAULT_TIME_COST', 4); /** * Default number of threads that Argon2lib will use. @@ -163,8 +161,7 @@ */ #[ArrayShape(["algo" => "int", "algoName" => "string", "options" => "array"])] #[LanguageLevelTypeAware(['8.0' => 'array'], default: '?array')] -function password_get_info (string $hash) -{} +function password_get_info(string $hash) {} /** * (PHP 5 >= 5.5.0, PHP 5)
    @@ -184,8 +181,7 @@ function password_get_info (string $hash) * @since 5.5 */ #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false|null")] -function password_hash (string $password, string|int|null $algo, array $options = []) -{} +function password_hash(string $password, string|int|null $algo, array $options = []) {} /** * Checks if the given hash matches the given options. @@ -196,8 +192,7 @@ function password_hash (string $password, string|int|null $algo, array $options * @return bool Returns TRUE if the hash should be rehashed to match the given algo and options, or FALSE otherwise. * @since 5.5 */ -function password_needs_rehash (string $hash, string|int|null $algo, array $options = []): bool -{} +function password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool {} /** * Checks if the given hash matches the given options. @@ -207,14 +202,12 @@ function password_needs_rehash (string $hash, string|int|null $algo, array $opti * @return bool Returns TRUE if the password and hash match, or FALSE otherwise. * @since 5.5 */ -function password_verify (string $password, string $hash): bool -{} +function password_verify(string $password, string $hash): bool {} /** * Return a complete list of all registered password hashing algorithms. * @return string[] * @since 7.4 */ -function password_algos(): array -{} +function password_algos(): array {} // End of password v. diff --git a/standard/standard_0.php b/standard/standard_0.php index f6ed6c328..36560b03c 100644 --- a/standard/standard_0.php +++ b/standard/standard_0.php @@ -6,18 +6,19 @@ use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware; use JetBrains\PhpStorm\Pure; -class __PHP_Incomplete_Class { +class __PHP_Incomplete_Class +{ /** * @var string */ public $__PHP_Incomplete_Class_Name; } -class php_user_filter { +class php_user_filter +{ public $filtername; public $params; - /** * @link https://php.net/manual/en/php-user-filter.filter.php * @param resource $in

    is a resource pointing to a bucket brigadebucket objects containing data to be filtered.

    @@ -61,32 +62,25 @@ class php_user_filter { * * */ - public function filter($in, $out, &$consumed, $closing) - { - } + public function filter($in, $out, &$consumed, $closing) {} /** * @link https://php.net/manual/en/php-user-filter.oncreate.php * @return bool */ - public function onCreate() - { - } + public function onCreate() {} /** * @link https://php.net/manual/en/php-user-filter.onclose.php */ - public function onClose() - { - } - + public function onClose() {} } /** * Instances of Directory are created by calling the dir() function, not by the new operator. */ -class Directory { - +class Directory +{ /** * @var string The directory that was opened. */ @@ -103,7 +97,7 @@ class Directory { * @param resource $dir_handle [optional] * @link https://secure.php.net/manual/en/directory.close.php */ - public function close ($dir_handle = null) {} + public function close($dir_handle = null) {} /** * Rewind directory handle. @@ -111,7 +105,7 @@ public function close ($dir_handle = null) {} * @param resource $dir_handle [optional] * @link https://secure.php.net/manual/en/directory.rewind.php */ - public function rewind ($dir_handle = null) {} + public function rewind($dir_handle = null) {} /** * Read entry from directory handle. @@ -120,8 +114,7 @@ public function rewind ($dir_handle = null) {} * @return string|false * @link https://secure.php.net/manual/en/directory.read.php */ - public function read ($dir_handle = null) { } - + public function read($dir_handle = null) {} } /** @@ -134,8 +127,7 @@ public function read ($dir_handle = null) { } * defined. */ #[Pure] -function constant (string $name): mixed -{} +function constant(string $name): mixed {} /** * Convert binary data into hexadecimal representation @@ -146,8 +138,7 @@ function constant (string $name): mixed * @return string the hexadecimal representation of the given string. */ #[Pure] -function bin2hex (string $string): string -{} +function bin2hex(string $string): string {} /** * Delay execution @@ -160,8 +151,7 @@ function bin2hex (string $string): string * to sleep. */ #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function sleep (int $seconds) -{} +function sleep(int $seconds) {} /** * Delay execution in microseconds @@ -172,7 +162,7 @@ function sleep (int $seconds) *

    * @return void */ -function usleep (int $microseconds): void {} +function usleep(int $microseconds): void {} /** * Delay for a number of seconds and nanoseconds @@ -193,8 +183,7 @@ function usleep (int $microseconds): void {} * remaining in the delay *

    */ -function time_nanosleep (int $seconds, int $nanoseconds): array|bool -{} +function time_nanosleep(int $seconds, int $nanoseconds): array|bool {} /** * Make the script sleep until the specified time @@ -204,8 +193,7 @@ function time_nanosleep (int $seconds, int $nanoseconds): array|bool *

    * @return bool true on success or false on failure. */ -function time_sleep_until (float $timestamp): bool -{} +function time_sleep_until(float $timestamp): bool {} /** * Parse a time/date generated with strftime @@ -270,15 +258,14 @@ function time_sleep_until (float $timestamp): bool *

    */ #[Pure] -function strptime (string $timestamp, string $format): array|false -{} +function strptime(string $timestamp, string $format): array|false {} /** * Flush the output buffer * @link https://php.net/manual/en/function.flush.php * @return void */ -function flush (): void {} +function flush(): void {} /** * Wraps a string to a given number of characters @@ -302,8 +289,7 @@ function flush (): void {} * @return string the given string wrapped at the specified column. */ #[Pure] -function wordwrap (string $string, int $width = 75, string $break = "\n", bool $cut_long_words = false): string -{} +function wordwrap(string $string, int $width = 75, string $break = "\n", bool $cut_long_words = false): string {} /** * Convert special characters to HTML entities @@ -422,8 +408,7 @@ function wordwrap (string $string, int $width = 75, string $break = "\n", bool $ * @return string The converted string. */ #[Pure] -function htmlspecialchars (string $string, int $flags = ENT_COMPAT | ENT_HTML401, ?string $encoding = 'UTF-8', bool $double_encode = true): string -{} +function htmlspecialchars(string $string, int $flags = ENT_COMPAT|ENT_HTML401, ?string $encoding = 'UTF-8', bool $double_encode = true): string {} /** * Convert all applicable characters to HTML entities @@ -469,8 +454,7 @@ function htmlspecialchars (string $string, int $flags = ENT_COMPAT | ENT_HTML401 * @return string the encoded string. */ #[Pure] -function htmlentities (string $string, int $flags = ENT_COMPAT, ?string $encoding, bool $double_encode = true): string -{} +function htmlentities(string $string, int $flags = ENT_COMPAT, ?string $encoding, bool $double_encode = true): string {} /** * Convert HTML entities to their corresponding characters @@ -511,8 +495,7 @@ function htmlentities (string $string, int $flags = ENT_COMPAT, ?string $encodin * @return string the decoded string. */ #[Pure] -function html_entity_decode (string $string, int $flags = ENT_COMPAT, ?string $encoding): string -{} +function html_entity_decode(string $string, int $flags = ENT_COMPAT, ?string $encoding): string {} /** * Convert special HTML entities back to characters @@ -546,8 +529,7 @@ function html_entity_decode (string $string, int $flags = ENT_COMPAT, ?string $e * @return string the decoded string. */ #[Pure] -function htmlspecialchars_decode (string $string, int $flags = ENT_COMPAT): string -{} +function htmlspecialchars_decode(string $string, int $flags = ENT_COMPAT): string {} /** * Returns the translation table used by htmlspecialchars and htmlentities @@ -723,8 +705,7 @@ function htmlspecialchars_decode (string $string, int $flags = ENT_COMPAT): stri * @return array the translation table as an array. */ #[Pure] -function get_html_translation_table (int $table, int $flags = ENT_COMPAT, string $encoding = "UTF-8"): array -{} +function get_html_translation_table(int $table, int $flags = ENT_COMPAT, string $encoding = "UTF-8"): array {} /** * Calculate the sha1 hash of a string @@ -741,8 +722,7 @@ function get_html_translation_table (int $table, int $flags = ENT_COMPAT, string * @return string the sha1 hash as a string. */ #[Pure] -function sha1 (string $string, bool $binary = false): string -{} +function sha1(string $string, bool $binary = false): string {} /** * Calculate the sha1 hash of a file @@ -757,8 +737,7 @@ function sha1 (string $string, bool $binary = false): string * @return string|false a string on success, false otherwise. */ #[Pure] -function sha1_file (string $filename, bool $binary = false): string|false -{} +function sha1_file(string $filename, bool $binary = false): string|false {} /** * Calculate the md5 hash of a string @@ -774,8 +753,7 @@ function sha1_file (string $filename, bool $binary = false): string|false * @return string the hash as a 32-character hexadecimal number. */ #[Pure] -function md5 (string $string, bool $binary = false): string -{} +function md5(string $string, bool $binary = false): string {} /** * Calculates the md5 hash of a given file @@ -790,8 +768,7 @@ function md5 (string $string, bool $binary = false): string * @return string|false a string on success, false otherwise. */ #[Pure] -function md5_file (string $filename, bool $binary = false): string|false -{} +function md5_file(string $filename, bool $binary = false): string|false {} /** * Calculates the crc32 polynomial of a string @@ -802,8 +779,7 @@ function md5_file (string $filename, bool $binary = false): string|false * @return int the crc32 checksum of str as an integer..1 */ #[Pure] -function crc32 (string $string): int -{} +function crc32(string $string): int {} /** * Parse a binary IPTC block into single tags. @@ -816,8 +792,7 @@ function crc32 (string $string): int * value. It returns false on error or if no IPTC data was found. */ #[Pure] -function iptcparse (string $iptc_block): array|false -{} +function iptcparse(string $iptc_block): array|false {} /** * Embeds binary IPTC data into a JPEG image. @@ -836,8 +811,7 @@ function iptcparse (string $iptc_block): array|false * @return string|bool If success and spool flag is lower than 2 then the JPEG will not be * returned as a string, false on errors. */ -function iptcembed (string $iptc_data, string $filename, int $spool): string|bool -{} +function iptcembed(string $iptc_data, string $filename, int $spool): string|bool {} /** * Get the size of an image @@ -900,8 +874,7 @@ function iptcembed (string $iptc_data, string $filename, int $spool): string|boo * On failure, false is returned. *

    */ -function getimagesize (string $filename, &$image_info): array|false -{} +function getimagesize(string $filename, &$image_info): array|false {} /** * Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype @@ -989,8 +962,7 @@ function getimagesize (string $filename, &$image_info): array|false * */ #[Pure] -function image_type_to_mime_type (int $image_type): string -{} +function image_type_to_mime_type(int $image_type): string {} /** * Get file extension for image type @@ -1005,8 +977,7 @@ function image_type_to_mime_type (int $image_type): string * @return string|false A string with the extension corresponding to the given image type. */ #[Pure] -function image_type_to_extension (int $image_type, $include_dot = true): string|false -{} +function image_type_to_extension(int $image_type, $include_dot = true): string|false {} /** * Outputs information about PHP's configuration @@ -1092,8 +1063,7 @@ function image_type_to_extension (int $image_type, $include_dot = true): string| *

    * @return bool true on success or false on failure. */ -function phpinfo (#[ExpectedValues(flags: [INFO_GENERAL, INFO_CREDITS, INFO_CONFIGURATION, INFO_MODULES, INFO_ENVIRONMENT, INFO_VARIABLES, INFO_LICENSE, INFO_ALL])] int $flags = INFO_ALL): bool -{} +function phpinfo(#[ExpectedValues(flags: [INFO_GENERAL, INFO_CREDITS, INFO_CONFIGURATION, INFO_MODULES, INFO_ENVIRONMENT, INFO_VARIABLES, INFO_LICENSE, INFO_ALL])] int $flags = INFO_ALL): bool {} /** * Gets the current PHP version @@ -1107,8 +1077,7 @@ function phpinfo (#[ExpectedValues(flags: [INFO_GENERAL, INFO_CREDITS, INFO_CONF * the extension isn't enabled. */ #[Pure] -function phpversion (?string $extension): string|false -{} +function phpversion(?string $extension): string|false {} /** * Prints out the credits for PHP @@ -1173,8 +1142,7 @@ function phpversion (?string $extension): string|false *

    * @return bool true on success or false on failure. */ -function phpcredits (int $flags = CREDITS_ALL): bool -{} +function phpcredits(int $flags = CREDITS_ALL): bool {} /** * Gets the logo guid @@ -1183,18 +1151,17 @@ function phpcredits (int $flags = CREDITS_ALL): bool * @return string PHPE9568F34-D428-11d2-A769-00AA001ACF42. */ #[Pure] -function php_logo_guid (): string -{} +function php_logo_guid(): string {} /** * @removed 5.5 */ -function php_real_logo_guid () {} +function php_real_logo_guid() {} /** * @removed 5.5 */ -function php_egg_logo_guid () {} +function php_egg_logo_guid() {} /** * Gets the Zend guid @@ -1202,8 +1169,7 @@ function php_egg_logo_guid () {} * @link https://php.net/manual/en/function.zend-logo-guid.php * @return string PHPE9568F35-D428-11d2-A769-00AA001ACF42. */ -function zend_logo_guid (): string -{} +function zend_logo_guid(): string {} /** * Returns the type of interface between web server and PHP @@ -1223,8 +1189,7 @@ function zend_logo_guid (): string *

    */ #[Pure] -function php_sapi_name (): string|false -{} +function php_sapi_name(): string|false {} /** * Returns information about the operating system PHP is running on @@ -1237,8 +1202,7 @@ function php_sapi_name (): string|false * @return string the description, as a string. */ #[Pure] -function php_uname (string $mode = 'a'): string -{} +function php_uname(string $mode = 'a'): string {} /** * Return a list of .ini files parsed from the additional ini dir @@ -1252,8 +1216,7 @@ function php_uname (string $mode = 'a'): string * php_ini_scanned_files. */ #[Pure] -function php_ini_scanned_files (): string|false -{} +function php_ini_scanned_files(): string|false {} /** * Retrieve a path to the loaded php.ini file @@ -1262,8 +1225,7 @@ function php_ini_scanned_files (): string|false * @since 5.2.4 */ #[Pure] -function php_ini_loaded_file (): string|false -{} +function php_ini_loaded_file(): string|false {} /** * String comparisons using a "natural order" algorithm @@ -1280,8 +1242,7 @@ function php_ini_loaded_file (): string|false * str2, and 0 if they are equal. */ #[Pure] -function strnatcmp (string $string1, string $string2): int -{} +function strnatcmp(string $string1, string $string2): int {} /** * Case insensitive string comparisons using a "natural order" algorithm @@ -1298,8 +1259,7 @@ function strnatcmp (string $string1, string $string2): int * str2, and 0 if they are equal. */ #[Pure] -function strnatcasecmp (string $string1, string $string2): int -{} +function strnatcasecmp(string $string1, string $string2): int {} /** * Count the number of substring occurrences @@ -1321,8 +1281,7 @@ function strnatcasecmp (string $string1, string $string2): int * @return int This functions returns an integer. */ #[Pure] -function substr_count (string $haystack, string $needle, int $offset, ?int $length): int -{} +function substr_count(string $haystack, string $needle, int $offset, ?int $length): int {} /** * Finds the length of the initial segment of a string consisting @@ -1375,8 +1334,7 @@ function substr_count (string $haystack, string $needle, int $offset, ?int $leng * which consists entirely of characters in str2. */ #[Pure] -function strspn (string $string, string $characters, int $offset, ?int $length): int -{} +function strspn(string $string, string $characters, int $offset, ?int $length): int {} /** * Find length of initial segment not matching mask @@ -1396,8 +1354,7 @@ function strspn (string $string, string $characters, int $offset, ?int $length): * @return int the length of the segment as an integer. */ #[Pure] -function strcspn (string $string, string $characters, int $offset, ?int $length): int -{} +function strcspn(string $string, string $characters, int $offset, ?int $length): int {} /** * Tokenize string @@ -1415,5 +1372,4 @@ function strcspn (string $string, string $characters, int $offset, ?int $length) *

    * @return string|false A string token. */ -function strtok (string $string, ?string $token): string|false -{} +function strtok(string $string, ?string $token): string|false {} diff --git a/standard/standard_1.php b/standard/standard_1.php index e3cd86b1e..a97c2675c 100644 --- a/standard/standard_1.php +++ b/standard/standard_1.php @@ -5,7 +5,6 @@ use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware; use JetBrains\PhpStorm\Pure; - /** * Make a string uppercase * @link https://php.net/manual/en/function.strtoupper.php @@ -15,8 +14,7 @@ * @return string the uppercased string. */ #[Pure] -function strtoupper (string $string): string -{} +function strtoupper(string $string): string {} /** * Make a string lowercase @@ -27,8 +25,7 @@ function strtoupper (string $string): string * @return string the lowercased string. */ #[Pure] -function strtolower (string $string): string -{} +function strtolower(string $string): string {} /** * Find the position of the first occurrence of a substring in a string @@ -55,8 +52,7 @@ function strtolower (string $string): string *

    */ #[Pure] -function strpos (string $haystack, string $needle, int $offset = 0): int|false -{} +function strpos(string $haystack, string $needle, int $offset = 0): int|false {} /** * Find position of first occurrence of a case-insensitive string @@ -82,8 +78,7 @@ function strpos (string $haystack, string $needle, int $offset = 0): int|false * stripos will return boolean false. */ #[Pure] -function stripos (string $haystack, string $needle, int $offset): int|false -{} +function stripos(string $haystack, string $needle, int $offset): int|false {} /** * Find the position of the last occurrence of a substring in a string @@ -108,8 +103,7 @@ function stripos (string $haystack, string $needle, int $offset): int|false *

    */ #[Pure] -function strrpos (string $haystack, string $needle, int $offset = 0): int|false -{} +function strrpos(string $haystack, string $needle, int $offset = 0): int|false {} /** * Find position of last occurrence of a case-insensitive string in a string @@ -138,8 +132,7 @@ function strrpos (string $haystack, string $needle, int $offset = 0): int|false * If needle is not found, false is returned. */ #[Pure] -function strripos (string $haystack, string $needle, int $offset): int|false -{} +function strripos(string $haystack, string $needle, int $offset): int|false {} /** * Reverse a string @@ -150,8 +143,7 @@ function strripos (string $haystack, string $needle, int $offset): int|false * @return string the reversed string. */ #[Pure] -function strrev (string $string): string -{} +function strrev(string $string): string {} /** * Convert logical Hebrew text to visual text @@ -166,8 +158,7 @@ function strrev (string $string): string * @return string the visual string. */ #[Pure] -function hebrev (string $string, int $max_chars_per_line): string -{} +function hebrev(string $string, int $max_chars_per_line): string {} /** * Convert logical Hebrew text to visual text with newline conversion @@ -183,8 +174,7 @@ function hebrev (string $string, int $max_chars_per_line): string * @removed 8.0 */ #[Deprecated(replacement: 'nl2br(hebrev(%parameter0%))', since: '7.4')] -function hebrevc (string $hebrew_text, $max_chars_per_line): string -{} +function hebrevc(string $hebrew_text, $max_chars_per_line): string {} /** * Inserts HTML line breaks before all newlines in a string @@ -198,8 +188,7 @@ function hebrevc (string $hebrew_text, $max_chars_per_line): string * @return string the altered string. */ #[Pure] -function nl2br (string $string, bool $use_xhtml = true): string -{} +function nl2br(string $string, bool $use_xhtml = true): string {} /** * Returns trailing name component of path @@ -219,8 +208,7 @@ function nl2br (string $string, bool $use_xhtml = true): string * @return string the base name of the given path. */ #[Pure] -function basename (string $path, string $suffix): string -{} +function basename(string $path, string $suffix): string {} /** * Returns a parent directory's path @@ -244,8 +232,7 @@ function basename (string $path, string $suffix): string * /component removed. */ #[Pure] -function dirname (string $path, int $levels = 1): string -{} +function dirname(string $path, int $levels = 1): string {} /** * Returns information about a file path @@ -271,8 +258,7 @@ function dirname (string $path, int $levels = 1): string * string if not all elements are requested. */ #[Pure] -function pathinfo (string $path, int $flags = PATHINFO_ALL): array|string -{} +function pathinfo(string $path, int $flags = PATHINFO_ALL): array|string {} /** * Un-quotes a quoted string @@ -286,8 +272,7 @@ function pathinfo (string $path, int $flags = PATHINFO_ALL): array|string * backslash (\). */ #[Pure] -function stripslashes (string $string): string -{} +function stripslashes(string $string): string {} /** * Un-quote string quoted with addcslashes @@ -298,8 +283,7 @@ function stripslashes (string $string): string * @return string the unescaped string. */ #[Pure] -function stripcslashes (string $string): string -{} +function stripcslashes(string $string): string {} /** * Find the first occurrence of a string @@ -320,8 +304,7 @@ function stripcslashes (string $string): string * is not found. */ #[Pure] -function strstr (string $haystack, string $needle, bool $before_needle = false): string|false -{} +function strstr(string $haystack, string $needle, bool $before_needle = false): string|false {} /** * Case-insensitive strstr @@ -342,8 +325,7 @@ function strstr (string $haystack, string $needle, bool $before_needle = false): * found, returns false. */ #[Pure] -function stristr (string $haystack, string $needle, bool $before_needle = false): string|false -{} +function stristr(string $haystack, string $needle, bool $before_needle = false): string|false {} /** * Find the last occurrence of a character in a string @@ -365,8 +347,7 @@ function stristr (string $haystack, string $needle, bool $before_needle = false) *

    */ #[Pure] -function strrchr (string $haystack, string $needle): string|false -{} +function strrchr(string $haystack, string $needle): string|false {} /** * Randomly shuffles a string @@ -377,8 +358,7 @@ function strrchr (string $haystack, string $needle): string|false * @return string the shuffled string. */ #[Pure] -function str_shuffle (string $string): string -{} +function str_shuffle(string $string): string {} /** * Return information about words used in a string @@ -398,8 +378,7 @@ function str_shuffle (string $string): string * format chosen. */ #[Pure] -function str_word_count (string $string, int $format = 0, ?string $characters): array|int -{} +function str_word_count(string $string, int $format = 0, ?string $characters): array|int {} /** * Convert a string to an array @@ -424,8 +403,7 @@ function str_word_count (string $string, int $format = 0, ?string $characters): */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function str_split (string $string, int $length = 1): array|false -{} +function str_split(string $string, int $length = 1): array|false {} /** * Search a string for any of a set of characters @@ -440,8 +418,7 @@ function str_split (string $string, int $length = 1): array|false * not found. */ #[Pure] -function strpbrk (string $string, string $characters): string|false -{} +function strpbrk(string $string, string $characters): string|false {} /** * Binary safe comparison of two strings from an offset, up to length characters @@ -472,8 +449,7 @@ function strpbrk (string $string, string $characters): string|false * false. */ #[Pure] -function substr_compare (string $haystack, string $needle, int $offset, ?int $length, bool $case_insensitive = false): int -{} +function substr_compare(string $haystack, string $needle, int $offset, ?int $length, bool $case_insensitive = false): int {} /** * Locale based string comparison @@ -490,8 +466,7 @@ function substr_compare (string $haystack, string $needle, int $offset, ?int $le * str2, and 0 if they are equal. */ #[Pure] -function strcoll (string $string1, string $string2): int -{} +function strcoll(string $string1, string $string2): int {} /** * Formats a number as a currency string @@ -510,8 +485,7 @@ function strcoll (string $string1, string $string2): int * @see NumberFormatter */ #[Deprecated(reason: 'Use the NumberFormatter functionality', since: '7.4')] -function money_format (string $format, float $number): ?string -{} +function money_format(string $format, float $number): ?string {} /** * Return part of a string @@ -578,8 +552,7 @@ function money_format (string $format, float $number): ?string */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function substr (string $string, int $offset, ?int $length) -{} +function substr(string $string, int $offset, ?int $length) {} /** * Replace text within a portion of a string @@ -617,8 +590,7 @@ function substr (string $string, int $offset, ?int $length) * array then array is returned. */ #[Pure] -function substr_replace (array|string $string, array|string $replace, array|int $offset, array|int|null $length = null): array|string -{} +function substr_replace(array|string $string, array|string $replace, array|int $offset, array|int|null $length = null): array|string {} /** * Quote meta characters @@ -629,8 +601,7 @@ function substr_replace (array|string $string, array|string $replace, array|int * @return string the string with meta characters quoted. */ #[Pure] -function quotemeta (string $string): string -{} +function quotemeta(string $string): string {} /** * Make a string's first character uppercase @@ -641,8 +612,7 @@ function quotemeta (string $string): string * @return string the resulting string. */ #[Pure] -function ucfirst (string $string): string -{} +function ucfirst(string $string): string {} /** * Make a string's first character lowercase @@ -653,8 +623,7 @@ function ucfirst (string $string): string * @return string the resulting string. */ #[Pure] -function lcfirst (string $string): string -{} +function lcfirst(string $string): string {} /** * Uppercase the first character of each word in a string @@ -668,8 +637,7 @@ function lcfirst (string $string): string * @return string the modified string. */ #[Pure] -function ucwords (string $string, string $separators = " \t\r\n\f\v"): string -{} +function ucwords(string $string, string $separators = " \t\r\n\f\v"): string {} /** * Translate characters or replace substrings @@ -689,8 +657,7 @@ function ucwords (string $string, string $separators = " \t\r\n\f\v"): string * to. */ #[Pure] -function strtr (string $string, string $from, string $to): string -{} +function strtr(string $string, string $from, string $to): string {} /** * Translate certain characters @@ -700,8 +667,7 @@ function strtr (string $string, string $from, string $to): string * @return string A copy of str, translating all occurrences of each character in from to the corresponding character in to. */ #[Pure] -function strtr (string $str, array $replace_pairs): string -{} +function strtr(string $str, array $replace_pairs): string {} /** * Quote string with slashes @@ -712,8 +678,7 @@ function strtr (string $str, array $replace_pairs): string * @return string the escaped string. */ #[Pure] -function addslashes (string $string): string -{} +function addslashes(string $string): string {} /** * Quote string with slashes in a C style @@ -766,8 +731,7 @@ function addslashes (string $string): string * @return string the escaped string. */ #[Pure] -function addcslashes (string $string, string $characters): string -{} +function addcslashes(string $string, string $characters): string {} /** * Strip whitespace (or other characters) from the end of a string. @@ -793,8 +757,7 @@ function addcslashes (string $string, string $characters): string * @return string the modified string. */ #[Pure] -function rtrim (string $string, string $characters = " \t\n\r\0\x0B"): string -{} +function rtrim(string $string, string $characters = " \t\n\r\0\x0B"): string {} /** * Replace all occurrences of the search string with the replacement string @@ -820,8 +783,7 @@ function rtrim (string $string, string $characters = " \t\n\r\0\x0B"): string * @param int &$count [optional] If passed, this will hold the number of matched and replaced needles. * @return string|string[] This function returns a string or an array with the replaced values. */ -function str_replace (array|string $search, array|string $replace, array|string $subject, &$count): array|string -{} +function str_replace(array|string $search, array|string $replace, array|string $subject, &$count): array|string {} /** * Case-insensitive version of str_replace. @@ -845,8 +807,7 @@ function str_replace (array|string $search, array|string $replace, array|string *

    * @return string|string[] a string or an array of replacements. */ -function str_ireplace (array|string $search, array|string $replace, array|string $subject, &$count): array|string -{} +function str_ireplace(array|string $search, array|string $replace, array|string $subject, &$count): array|string {} /** * Repeat a string @@ -866,8 +827,7 @@ function str_ireplace (array|string $search, array|string $replace, array|string * @return string the repeated string. */ #[Pure] -function str_repeat (string $string, int $times): string -{} +function str_repeat(string $string, int $times): string {} /** * Return information about characters used in a string @@ -890,8 +850,7 @@ function str_repeat (string $string, int $times): string * 4 - a string containing all not used characters is returned. */ #[Pure] -function count_chars (string $string, int $mode): array|string -{} +function count_chars(string $string, int $mode): array|string {} /** * Split a string into smaller chunks @@ -908,8 +867,7 @@ function count_chars (string $string, int $mode): array|string * @return string the chunked string. */ #[Pure] -function chunk_split (string $string, int $length = 76, string $separator = "\r\n"): string -{} +function chunk_split(string $string, int $length = 76, string $separator = "\r\n"): string {} /** * Strip whitespace (or other characters) from the beginning and end of a string @@ -926,8 +884,7 @@ function chunk_split (string $string, int $length = 76, string $separator = "\r\ * @return string The trimmed string. */ #[Pure] -function trim (string $string, string $characters = " \t\n\r\0\x0B"): string -{} +function trim(string $string, string $characters = " \t\n\r\0\x0B"): string {} /** * Strip whitespace (or other characters) from the beginning of a string @@ -959,8 +916,7 @@ function trim (string $string, string $characters = " \t\n\r\0\x0B"): string * (0x0B)), a vertical tab. */ #[Pure] -function ltrim (string $string, string $characters = " \t\n\r\0\x0B"): string -{} +function ltrim(string $string, string $characters = " \t\n\r\0\x0B"): string {} /** * Strip HTML and PHP tags from a string @@ -979,8 +935,7 @@ function ltrim (string $string, string $characters = " \t\n\r\0\x0B"): string * @return string the stripped string. */ #[Pure] -function strip_tags (string $string, #[LanguageLevelTypeAware(["7.4" => "string[]|string|null"], default: "string|null")] $allowed_tags = null): string -{} +function strip_tags(string $string, #[LanguageLevelTypeAware(["7.4" => "string[]|string|null"], default: "string|null")] $allowed_tags = null): string {} /** * Calculate the similarity between two strings @@ -998,8 +953,7 @@ function strip_tags (string $string, #[LanguageLevelTypeAware(["7.4" => "string[ *

    * @return int the number of matching chars in both strings. */ -function similar_text (string $string1, string $string2, &$percent): int -{} +function similar_text(string $string1, string $string2, &$percent): int {} /** * Split a string by a string @@ -1032,8 +986,7 @@ function similar_text (string $string1, string $string2, &$percent): int */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string[]"], default: "string[]|false")] -function explode (string $separator, string $string, int $limit): array|false -{} +function explode(string $separator, string $string, int $limit): array|false {} /** * Join array elements with a string @@ -1050,8 +1003,7 @@ function explode (string $separator, string $string, int $limit): array|false * elements in the same order, with the glue string between each element. */ #[Pure] -function implode (array|string $separator = "", ?array $array): string -{} +function implode(array|string $separator = "", ?array $array): string {} /** * Alias: @@ -1069,8 +1021,7 @@ function implode (array|string $separator = "", ?array $array): string * elements in the same order, with the glue string between each element. */ #[Pure] -function join (array|string $separator = "", ?array $array): string -{} +function join(array|string $separator = "", ?array $array): string {} /** * Set locale information @@ -1141,8 +1092,7 @@ function join (array|string $separator = "", ?array $array): string * on the system that PHP is running. It returns exactly * what the system setlocale function returns.

    */ -function setlocale (int $category, array|string|int $locales, ...$rest): string|false -{} +function setlocale(int $category, array|string|int $locales, ...$rest): string|false {} /** * Get numeric formatting information @@ -1262,7 +1212,6 @@ function setlocale (int $category, array|string|int $locales, ...$rest): string| * no further grouping is done. If an array element is equal to 0, the previous * element should be used. */ -#[ArrayShape(["decimal_point" => "string", "thousands_sep" => "string", "grouping" => "array", "int_curr_symbol" => "string", "currency_symbol" => "string", "mon_decimal_point" => "string", "mon_thousands_sep" => "string", "mon_grouping" => "string", "positive_sign" => "string", "negative_sign" => "string", "int_frac_digits" => "string", "frac_digits" => "string", "p_cs_precedes" => "bool", "p_sep_by_space" => "bool", "n_cs_precedes" => "bool", "n_sep_by_space" => "bool", "p_sign_posn" => "int", "n_sign_posn" => "int",])] +#[ArrayShape(["decimal_point" => "string", "thousands_sep" => "string", "grouping" => "array", "int_curr_symbol" => "string", "currency_symbol" => "string", "mon_decimal_point" => "string", "mon_thousands_sep" => "string", "mon_grouping" => "string", "positive_sign" => "string", "negative_sign" => "string", "int_frac_digits" => "string", "frac_digits" => "string", "p_cs_precedes" => "bool", "p_sep_by_space" => "bool", "n_cs_precedes" => "bool", "n_sep_by_space" => "bool", "p_sign_posn" => "int", "n_sign_posn" => "int"])] #[Pure] -function localeconv (): array -{} +function localeconv(): array {} diff --git a/standard/standard_2.php b/standard/standard_2.php index 64eb015a9..6d6fbe2e3 100644 --- a/standard/standard_2.php +++ b/standard/standard_2.php @@ -151,8 +151,7 @@ * is not valid. */ #[Pure] -function nl_langinfo (int $item): string|false -{} +function nl_langinfo(int $item): string|false {} /** * Calculate the soundex key of a string @@ -163,8 +162,7 @@ function nl_langinfo (int $item): string|false * @return string the soundex key as a string. */ #[Pure] -function soundex (string $string): string -{} +function soundex(string $string): string {} /** * Calculate Levenshtein distance between two strings @@ -194,9 +192,7 @@ function soundex (string $string): string * two argument strings or -1, if one of the argument strings * is longer than the limit of 255 characters. */ -function levenshtein (string $string1, string $string2, int $insertion_cost = 1, int $replacement_cost = 1, int $deletion_cost = 1): int -{ -} +function levenshtein(string $string1, string $string2, int $insertion_cost = 1, int $replacement_cost = 1, int $deletion_cost = 1): int {} /** * Generate a single-byte string from a number @@ -207,8 +203,7 @@ function levenshtein (string $string1, string $string2, int $insertion_cost = 1, * @return string the specified character. */ #[Pure] -function chr (int $codepoint): string -{} +function chr(int $codepoint): string {} /** * Convert the first byte of a string to a value between 0 and 255 @@ -219,8 +214,7 @@ function chr (int $codepoint): string * @return int the ASCII value as an integer. */ #[Pure] -function ord (string $character): int -{} +function ord(string $character): int {} /** * Parses the string into variables @@ -235,8 +229,7 @@ function ord (string $character): int *

    * @return void */ -function parse_str (string $string, &$result): void -{} +function parse_str(string $string, &$result): void {} /** * Parse a CSV string into an array @@ -257,8 +250,7 @@ function parse_str (string $string, &$result): void * @return array an indexed array containing the fields read. */ #[Pure] -function str_getcsv (string $string, string $separator = ",", string $enclosure = '"', string $escape = "\\"): array -{} +function str_getcsv(string $string, string $separator = ",", string $enclosure = '"', string $escape = "\\"): array {} /** * Pad a string to a certain length with another string @@ -286,8 +278,7 @@ function str_getcsv (string $string, string $separator = ",", string $enclosure * @return string the padded string. */ #[Pure] -function str_pad (string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_RIGHT): string -{} +function str_pad(string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_RIGHT): string {} /** * Alias: @@ -299,8 +290,7 @@ function str_pad (string $string, int $length, string $pad_string = " ", int $pa * @see rtrim() */ #[Pure] -function chop (string $string, string $characters): string -{} +function chop(string $string, string $characters): string {} /** * Alias: @@ -316,8 +306,7 @@ function chop (string $string, string $characters): string * @return string|false Returns the portion of string, or FALSE if needle is not found. */ #[Pure] -function strchr (string $haystack, string $needle, bool $before_needle = false): string|false -{} +function strchr(string $haystack, string $needle, bool $before_needle = false): string|false {} /** * Return a formatted string @@ -344,8 +333,7 @@ function strchr (string $haystack, string $needle, bool $before_needle = false): * format. */ #[Pure] -function sprintf (string $format, ...$values): string -{} +function sprintf(string $format, ...$values): string {} /** * Output a formatted string @@ -358,8 +346,7 @@ function sprintf (string $format, ...$values): string *

    * @return int the length of the outputted string. */ -function printf (string $format, ...$values): int -{} +function printf(string $format, ...$values): int {} /** * Output a formatted string @@ -372,8 +359,7 @@ function printf (string $format, ...$values): int *

    * @return int the length of the outputted string. */ -function vprintf (string $format, array $values): int -{} +function vprintf(string $format, array $values): int {} /** * Return a formatted string @@ -389,8 +375,7 @@ function vprintf (string $format, array $values): int * for sprintf). */ #[Pure] -function vsprintf (string $format, array $values): string -{} +function vsprintf(string $format, array $values): string {} /** * Write a formatted string to a stream @@ -404,8 +389,7 @@ function vsprintf (string $format, array $values): string *

    * @return int the length of the string written. */ -function fprintf ($stream, string $format, ...$values): int -{} +function fprintf($stream, string $format, ...$values): int {} /** * Write a formatted string to a stream @@ -420,8 +404,7 @@ function fprintf ($stream, string $format, ...$values): int *

    * @return int the length of the outputted string. */ -function vfprintf ($stream, string $format, array $values): int -{} +function vfprintf($stream, string $format, array $values): int {} /** * Parses input from a string according to a format @@ -447,8 +430,7 @@ function vfprintf ($stream, string $format, array $values): int * the function will return the number of assigned values. The optional * parameters must be passed by reference. */ -function sscanf (string $string, string $format, #[TypeContract(exists: "int|null", notExists: "array|null")] mixed &...$vars): array|int|null -{} +function sscanf(string $string, string $format, #[TypeContract(exists: "int|null", notExists: "array|null")] mixed &...$vars): array|int|null {} /** * Parses input from a file according to a format @@ -464,8 +446,7 @@ function sscanf (string $string, string $format, #[TypeContract(exists: "int|nul * function will return the number of assigned values. The optional * parameters must be passed by reference. */ -function fscanf ($stream, string $format, #[TypeContract(exists: "int|false|null", notExists: "array|false|null")] mixed &...$vars): array|int|false|null -{} +function fscanf($stream, string $format, #[TypeContract(exists: "int|false|null", notExists: "array|false|null")] mixed &...$vars): array|int|false|null {} /** * Parse a URL and return its components @@ -509,8 +490,7 @@ function fscanf ($stream, string $format, #[TypeContract(exists: "int|false|null "fragment" => "string", ])] #[Pure] -function parse_url (string $url, int $component = -1) -{} +function parse_url(string $url, int $component = -1) {} /** * URL-encodes string @@ -529,8 +509,7 @@ function parse_url (string $url, int $component = -1) * are encoded as plus (+) signs. */ #[Pure] -function urlencode (string $string): string -{} +function urlencode(string $string): string {} /** * Decodes URL-encoded string @@ -541,8 +520,7 @@ function urlencode (string $string): string * @return string the decoded string. */ #[Pure] -function urldecode (string $string): string -{} +function urldecode(string $string): string {} /** * URL-encode according to RFC 3986 @@ -559,8 +537,7 @@ function urldecode (string $string): string * media with character conversions (like some email systems). */ #[Pure] -function rawurlencode (string $string): string -{} +function rawurlencode(string $string): string {} /** * Decode URL-encoded strings @@ -571,8 +548,7 @@ function rawurlencode (string $string): string * @return string the decoded URL, as a string. */ #[Pure] -function rawurldecode (string $string): string -{} +function rawurldecode(string $string): string {} /** * Generate URL-encoded query string @@ -608,8 +584,7 @@ function rawurldecode (string $string): string * @return string a URL-encoded string. */ #[Pure] -function http_build_query (object|array $data, string $numeric_prefix = "", ?string $arg_separator = "&", int $encoding_type = PHP_QUERY_RFC1738): string -{} +function http_build_query(object|array $data, string $numeric_prefix = "", ?string $arg_separator = "&", int $encoding_type = PHP_QUERY_RFC1738): string {} /** * Returns the target of a symbolic link @@ -619,8 +594,7 @@ function http_build_query (object|array $data, string $numeric_prefix = "", ?str *

    * @return string|false the contents of the symbolic link path or false on error. */ -function readlink (string $path): string|false -{} +function readlink(string $path): string|false {} /** * Gets information about a link @@ -633,8 +607,7 @@ function readlink (string $path): string|false * system call. Returns 0 or false in case of error. */ #[Pure] -function linkinfo (string $path): int|false -{} +function linkinfo(string $path): int|false {} /** * Creates a symbolic link @@ -647,8 +620,7 @@ function linkinfo (string $path): int|false *

    * @return bool true on success or false on failure. */ -function symlink (string $target, string $link): bool -{} +function symlink(string $target, string $link): bool {} /** * Create a hard link @@ -657,7 +629,7 @@ function symlink (string $target, string $link): bool * @param string $link The link name. * @return bool true on success or false on failure. */ -function link (string $target , string $link):bool {} +function link(string $target, string $link): bool {} /** * Deletes a file @@ -668,7 +640,7 @@ function link (string $target , string $link):bool {} * @param resource $context [optional] * @return bool true on success or false on failure. */ -function unlink (string $filename, $context):bool {} +function unlink(string $filename, $context): bool {} /** * Execute an external program @@ -700,8 +672,7 @@ function unlink (string $filename, $context):bool {} * To get the output of the executed command, be sure to set and use the * output parameter. */ -function exec (string $command, &$output, &$result_code): string|false -{} +function exec(string $command, &$output, &$result_code): string|false {} /** * Execute an external program and display the output @@ -717,8 +688,7 @@ function exec (string $command, &$output, &$result_code): string|false * @return string|false the last line of the command output on success, and false * on failure. */ -function system (string $command, &$result_code): string|false -{} +function system(string $command, &$result_code): string|false {} /** * Escape shell metacharacters @@ -729,8 +699,7 @@ function system (string $command, &$result_code): string|false * @return string The escaped string. */ #[Pure] -function escapeshellcmd (string $command): string -{} +function escapeshellcmd(string $command): string {} /** * Escape a string to be used as a shell argument @@ -741,8 +710,7 @@ function escapeshellcmd (string $command): string * @return string The escaped string. */ #[Pure] -function escapeshellarg (string $arg): string -{} +function escapeshellarg(string $arg): string {} /** * Execute an external program and display raw output @@ -756,8 +724,7 @@ function escapeshellarg (string $arg): string *

    * @return bool|null */ -function passthru (string $command, &$result_code): ?bool -{} +function passthru(string $command, &$result_code): ?bool {} /** * Execute command via shell and return the complete output as a string @@ -767,8 +734,7 @@ function passthru (string $command, &$result_code): ?bool *

    * @return string|false|null The output from the executed command or NULL if an error occurred or the command produces no output. */ -function shell_exec (string $command): string|false|null -{} +function shell_exec(string $command): string|false|null {} /** * Execute a command and open file pointers for input/output @@ -840,8 +806,7 @@ function shell_exec (string $command): string|false|null * proc_close when you are finished with it. On failure * returns false. */ -function proc_open (array|string $command, array $descriptor_spec, &$pipes, ?string $cwd, ?array $env_vars, ?array $options) -{} +function proc_open(array|string $command, array $descriptor_spec, &$pipes, ?string $cwd, ?array $env_vars, ?array $options) {} /** * Close a process opened by {@see proc_open} and return the exit code of that process @@ -852,8 +817,7 @@ function proc_open (array|string $command, array $descriptor_spec, &$pipes, ?str *

    * @return int the termination status of the process that was run. */ -function proc_close ($process): int -{} +function proc_close($process): int {} /** * Kills a process opened by proc_open @@ -870,8 +834,7 @@ function proc_close ($process): int *

    * @return bool the termination status of the process that was run. */ -function proc_terminate ($process, int $signal = 15): bool -{} +function proc_terminate($process, int $signal = 15): bool {} /** * Get information about a process opened by {@see proc_open} @@ -959,8 +922,7 @@ function proc_terminate ($process, int $signal = 15): bool "stopsig" => "int", ])] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function proc_get_status ($process) -{} +function proc_get_status($process) {} /** * Change the priority of the current process.
    @@ -973,8 +935,7 @@ function proc_get_status ($process) * If an error occurs, like the user lacks permission to change the priority, * an error of level E_WARNING is also generated. */ -function proc_nice (int $priority): bool -{} +function proc_nice(int $priority): bool {} /** * Generate a random integer @@ -984,8 +945,7 @@ function proc_nice (int $priority): bool * @return int A pseudo random value between min * (or 0) and max (or getrandmax, inclusive). */ -function rand (int $min = 0, int $max): int -{} +function rand(int $min = 0, int $max): int {} /** * Seed the random number generator @@ -1001,7 +961,7 @@ function rand (int $min = 0, int $max): int *

    * @return void */ -function srand (int $seed, int $mode = MT_RAND_MT19937): void {} +function srand(int $seed, int $mode = MT_RAND_MT19937): void {} /** * Show largest possible random value @@ -1009,8 +969,7 @@ function srand (int $seed, int $mode = MT_RAND_MT19937): void {} * @return int The largest possible random value returned by rand */ #[Pure] -function getrandmax (): int -{} +function getrandmax(): int {} /** * Generate a random value via the Mersenne Twister Random Number Generator @@ -1024,8 +983,7 @@ function getrandmax (): int * @return int A random integer value between min (or 0) * and max (or mt_getrandmax, inclusive) */ -function mt_rand (int $min = 0, int $max): int -{} +function mt_rand(int $min = 0, int $max): int {} /** * Seeds the Mersenne Twister Random Number Generator @@ -1038,7 +996,7 @@ function mt_rand (int $min = 0, int $max): int *

    * @return void */ -function mt_srand (int $seed, int $mode = MT_RAND_MT19937): void {} +function mt_srand(int $seed, int $mode = MT_RAND_MT19937): void {} /** * Show largest possible random value @@ -1046,8 +1004,7 @@ function mt_srand (int $seed, int $mode = MT_RAND_MT19937): void {} * @return int the maximum random value returned by mt_rand */ #[Pure] -function mt_getrandmax (): int -{} +function mt_getrandmax(): int {} /** * Get port number associated with an Internet service and protocol @@ -1063,8 +1020,7 @@ function mt_getrandmax (): int * protocol is not found. */ #[Pure] -function getservbyname (string $service, string $protocol): int|false -{} +function getservbyname(string $service, string $protocol): int|false {} /** * Get Internet service which corresponds to port and protocol @@ -1079,8 +1035,7 @@ function getservbyname (string $service, string $protocol): int|false * @return string|false the Internet service name as a string. */ #[Pure] -function getservbyport (int $port, string $protocol): string|false -{} +function getservbyport(int $port, string $protocol): string|false {} /** * Get protocol number associated with protocol name @@ -1091,8 +1046,7 @@ function getservbyport (int $port, string $protocol): string|false * @return int|false the protocol number or -1 if the protocol is not found. */ #[Pure] -function getprotobyname (string $protocol): int|false -{} +function getprotobyname(string $protocol): int|false {} /** * Get protocol name associated with protocol number @@ -1103,8 +1057,7 @@ function getprotobyname (string $protocol): int|false * @return string|false the protocol name as a string. */ #[Pure] -function getprotobynumber (int $protocol): string|false -{} +function getprotobynumber(int $protocol): string|false {} /** * Gets PHP script owner's UID @@ -1112,8 +1065,7 @@ function getprotobynumber (int $protocol): string|false * @return int|false the user ID of the current script, or false on error. */ #[Pure] -function getmyuid (): int|false -{} +function getmyuid(): int|false {} /** * Get PHP script owner's GID @@ -1121,8 +1073,7 @@ function getmyuid (): int|false * @return int|false the group ID of the current script, or false on error. */ #[Pure] -function getmygid (): int|false -{} +function getmygid(): int|false {} /** * Gets PHP's process ID @@ -1130,8 +1081,7 @@ function getmygid (): int|false * @return int|false the current PHP process ID, or false on error. */ #[Pure] -function getmypid (): int|false -{} +function getmypid(): int|false {} /** * Gets the inode of the current script @@ -1139,5 +1089,4 @@ function getmypid (): int|false * @return int|false the current script's inode as an integer, or false on error. */ #[Pure] -function getmyinode (): int|false -{} +function getmyinode(): int|false {} diff --git a/standard/standard_3.php b/standard/standard_3.php index 89aedbbc9..93aad79ed 100644 --- a/standard/standard_3.php +++ b/standard/standard_3.php @@ -1,6 +1,5 @@ "float"], default: "float|false")] -function ceil (int|float $num) -{} +function ceil(int|float $num) {} /** * Round fractions down * @link https://php.net/manual/en/function.floor.php @@ -117,8 +108,7 @@ function ceil (int|float $num) */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "float"], default: "float|false")] -function floor (int|float $num) -{} +function floor(int|float $num) {} /** * Returns the rounded value of val to specified precision (number of digits after the decimal point). @@ -140,8 +130,7 @@ function floor (int|float $num) * @return float The rounded value */ #[Pure] -function round (int|float $num, int $precision = 0, int $mode = PHP_ROUND_HALF_UP): float -{} +function round(int|float $num, int $precision = 0, int $mode = PHP_ROUND_HALF_UP): float {} /** * Sine @@ -152,8 +141,7 @@ function round (int|float $num, int $precision = 0, int $mode = PHP_ROUND_HALF_U * @return float The sine of arg */ #[Pure] -function sin (float $num): float -{} +function sin(float $num): float {} /** * Cosine @@ -164,8 +152,7 @@ function sin (float $num): float * @return float The cosine of arg */ #[Pure] -function cos (float $num): float -{} +function cos(float $num): float {} /** * Tangent @@ -176,8 +163,7 @@ function cos (float $num): float * @return float The tangent of arg */ #[Pure] -function tan (float $num): float -{} +function tan(float $num): float {} /** * Arc sine @@ -188,8 +174,7 @@ function tan (float $num): float * @return float The arc sine of arg in radians */ #[Pure] -function asin (float $num): float -{} +function asin(float $num): float {} /** * Arc cosine @@ -200,8 +185,7 @@ function asin (float $num): float * @return float The arc cosine of arg in radians. */ #[Pure] -function acos (float $num): float -{} +function acos(float $num): float {} /** * Arc tangent @@ -212,8 +196,7 @@ function acos (float $num): float * @return float The arc tangent of arg in radians. */ #[Pure] -function atan (float $num): float -{} +function atan(float $num): float {} /** * Inverse hyperbolic tangent @@ -224,8 +207,7 @@ function atan (float $num): float * @return float Inverse hyperbolic tangent of arg */ #[Pure] -function atanh (float $num): float -{} +function atanh(float $num): float {} /** * Arc tangent of two variables @@ -240,8 +222,7 @@ function atanh (float $num): float * in radians. */ #[Pure] -function atan2 (float $y, float $x): float -{} +function atan2(float $y, float $x): float {} /** * Hyperbolic sine @@ -252,8 +233,7 @@ function atan2 (float $y, float $x): float * @return float The hyperbolic sine of arg */ #[Pure] -function sinh (float $num): float -{} +function sinh(float $num): float {} /** * Hyperbolic cosine @@ -264,8 +244,7 @@ function sinh (float $num): float * @return float The hyperbolic cosine of arg */ #[Pure] -function cosh (float $num): float -{} +function cosh(float $num): float {} /** * Hyperbolic tangent @@ -276,8 +255,7 @@ function cosh (float $num): float * @return float The hyperbolic tangent of arg */ #[Pure] -function tanh (float $num): float -{} +function tanh(float $num): float {} /** * Inverse hyperbolic sine @@ -288,8 +266,7 @@ function tanh (float $num): float * @return float The inverse hyperbolic sine of arg */ #[Pure] -function asinh (float $num): float -{} +function asinh(float $num): float {} /** * Inverse hyperbolic cosine @@ -300,8 +277,7 @@ function asinh (float $num): float * @return float The inverse hyperbolic cosine of arg */ #[Pure] -function acosh (float $num): float -{} +function acosh(float $num): float {} /** * Returns exp(number) - 1, computed in a way that is accurate even @@ -313,8 +289,7 @@ function acosh (float $num): float * @return float 'e' to the power of arg minus one */ #[Pure] -function expm1(float $num): float -{} +function expm1(float $num): float {} /** * Returns log(1 + number), computed in a way that is accurate even when @@ -326,8 +301,7 @@ function expm1(float $num): float * @return float log(1 + number) */ #[Pure] -function log1p(float $num): float -{} +function log1p(float $num): float {} /** * Get value of pi @@ -335,8 +309,7 @@ function log1p(float $num): float * @return float The value of pi as float. */ #[Pure] -function pi (): float -{} +function pi(): float {} /** * Finds whether a value is a legal finite number @@ -349,8 +322,7 @@ function pi (): float * else false. */ #[Pure] -function is_finite (float $num): bool -{} +function is_finite(float $num): bool {} /** * Finds whether a value is not a number @@ -362,8 +334,7 @@ function is_finite (float $num): bool * else false. */ #[Pure] -function is_nan (float $num): bool -{} +function is_nan(float $num): bool {} /** * Integer division @@ -378,8 +349,7 @@ function is_nan (float $num): bool * @since 7.0 */ #[Pure] -function intdiv (int $num1, int $num2): int -{} +function intdiv(int $num1, int $num2): int {} /** * Finds whether a value is infinite @@ -390,8 +360,7 @@ function intdiv (int $num1, int $num2): int * @return bool true if val is infinite, else false. */ #[Pure] -function is_infinite (float $num): bool -{} +function is_infinite(float $num): bool {} /** * Exponential expression @@ -408,8 +377,7 @@ function is_infinite (float $num): bool * If the power cannot be computed false will be returned instead. */ #[Pure] -function pow (mixed $num, mixed $exponent): object|int|float -{} +function pow(mixed $num, mixed $exponent): object|int|float {} /** * Calculates the exponent of e @@ -420,8 +388,7 @@ function pow (mixed $num, mixed $exponent): object|int|float * @return float 'e' raised to the power of arg */ #[Pure] -function exp (float $num): float -{} +function exp(float $num): float {} /** * Natural logarithm @@ -438,8 +405,7 @@ function exp (float $num): float * natural logarithm. */ #[Pure] -function log (float $num, float $base = M_E): float -{} +function log(float $num, float $base = M_E): float {} /** * Base-10 logarithm @@ -450,8 +416,7 @@ function log (float $num, float $base = M_E): float * @return float The base-10 logarithm of arg */ #[Pure] -function log10 (float $num): float -{} +function log10(float $num): float {} /** * Square root @@ -463,8 +428,7 @@ function log10 (float $num): float * or the special value NAN for negative numbers. */ #[Pure] -function sqrt (float $num): float -{} +function sqrt(float $num): float {} /** * Calculate the length of the hypotenuse of a right-angle triangle @@ -478,8 +442,7 @@ function sqrt (float $num): float * @return float Calculated length of the hypotenuse */ #[Pure] -function hypot (float $x, float $y): float -{} +function hypot(float $x, float $y): float {} /** * Converts the number in degrees to the radian equivalent @@ -490,8 +453,7 @@ function hypot (float $x, float $y): float * @return float The radian equivalent of number */ #[Pure] -function deg2rad (float $num): float -{} +function deg2rad(float $num): float {} /** * Converts the radian number to the equivalent number in degrees @@ -502,8 +464,7 @@ function deg2rad (float $num): float * @return float The equivalent of number in degrees */ #[Pure] -function rad2deg (float $num): float -{} +function rad2deg(float $num): float {} /** * Binary to decimal @@ -514,8 +475,7 @@ function rad2deg (float $num): float * @return int|float The decimal value of binary_string */ #[Pure] -function bindec (string $binary_string): int|float -{} +function bindec(string $binary_string): int|float {} /** * Hexadecimal to decimal @@ -526,8 +486,7 @@ function bindec (string $binary_string): int|float * @return int|float The decimal representation of hex_string */ #[Pure] -function hexdec (string $hex_string): int|float -{} +function hexdec(string $hex_string): int|float {} /** * Octal to decimal @@ -538,8 +497,7 @@ function hexdec (string $hex_string): int|float * @return int|float The decimal representation of octal_string */ #[Pure] -function octdec (string $octal_string): int|float -{} +function octdec(string $octal_string): int|float {} /** * Decimal to binary @@ -658,8 +616,7 @@ function octdec (string $octal_string): int|float * @return string Binary string representation of number */ #[Pure] -function decbin (int $num): string -{} +function decbin(int $num): string {} /** * Decimal to octal @@ -670,8 +627,7 @@ function decbin (int $num): string * @return string Octal string representation of number */ #[Pure] -function decoct (int $num): string -{} +function decoct(int $num): string {} /** * Decimal to hexadecimal @@ -682,8 +638,7 @@ function decoct (int $num): string * @return string Hexadecimal string representation of number */ #[Pure] -function dechex (int $num): string -{} +function dechex(int $num): string {} /** * Convert a number between arbitrary bases @@ -700,8 +655,7 @@ function dechex (int $num): string * @return string number converted to base tobase */ #[Pure] -function base_convert (string $num, int $from_base, int $to_base): string -{} +function base_convert(string $num, int $from_base, int $to_base): string {} /** * Format a number with grouped thousands @@ -717,8 +671,7 @@ function base_convert (string $num, int $from_base, int $to_base): string * @return string A formatted version of number. */ #[Pure] -function number_format (float $num , int $decimals = 0 , ?string $decimal_separator = '.' , ?string $thousands_separator = ','): string -{} +function number_format(float $num, int $decimals = 0, ?string $decimal_separator = '.', ?string $thousands_separator = ','): string {} /** * Returns the floating point remainder (modulo) of the division @@ -734,8 +687,7 @@ function number_format (float $num , int $decimals = 0 , ?string $decimal_separa * x/y */ #[Pure] -function fmod(float $num1, float $num2): float -{} +function fmod(float $num1, float $num2): float {} /** * Performs a floating-point division under @@ -758,8 +710,7 @@ function fdiv(float $num1, float $num2): float {} * @return string|false a string representation of the address or false on failure. */ #[Pure] -function inet_ntop (string $ip): string|false -{} +function inet_ntop(string $ip): string|false {} /** * Converts a human readable IP address to its packed in_addr representation @@ -771,8 +722,7 @@ function inet_ntop (string $ip): string|false * address */ #[Pure] -function inet_pton (string $ip): string|false -{} +function inet_pton(string $ip): string|false {} /** * Converts a string containing an (IPv4) Internet Protocol dotted address into a long integer @@ -784,8 +734,7 @@ function inet_pton (string $ip): string|false * is invalid. */ #[Pure] -function ip2long (string $ip): int|false -{} +function ip2long(string $ip): int|false {} /** * Converts an long integer address into a string in (IPv4) internet standard dotted format @@ -796,8 +745,7 @@ function ip2long (string $ip): int|false * @return string|false the Internet IP address as a string. */ #[Pure] -function long2ip (int $ip): string|false -{} +function long2ip(int $ip): string|false {} /** * Gets the value of an environment variable @@ -813,8 +761,7 @@ function long2ip (int $ip): string|false * is provided, or false on an error. */ #[Pure] -function getenv (?string $name, bool $local_only = false): array|string|false -{} +function getenv(?string $name, bool $local_only = false): array|string|false {} /** * Sets the value of an environment variable @@ -824,8 +771,7 @@ function getenv (?string $name, bool $local_only = false): array|string|false *

    * @return bool true on success or false on failure. */ -function putenv (string $assignment): bool -{} +function putenv(string $assignment): bool {} /** * Gets options from the command line argument list @@ -846,8 +792,7 @@ function putenv (string $assignment): bool * @return string[]|false[]|false This function will return an array of option / argument pairs or false on * failure. */ -function getopt (string $short_options, array $long_options, &$rest_index): array|false -{} +function getopt(string $short_options, array $long_options, &$rest_index): array|false {} /** * Gets system load average @@ -857,8 +802,7 @@ function getopt (string $short_options, array $long_options, &$rest_index): arra * @since 5.1.3 */ #[Pure] -function sys_getloadavg (): array|false -{} +function sys_getloadavg(): array|false {} /** * Return current Unix timestamp with microseconds @@ -877,8 +821,7 @@ function sys_getloadavg (): array|false * @return string|float */ #[Pure] -function microtime (#[TypeContract(true: "float", false: "string")] bool $as_float = false): string|float -{} +function microtime(#[TypeContract(true: "float", false: "string")] bool $as_float = false): string|float {} /** * Get current time @@ -903,8 +846,7 @@ function microtime (#[TypeContract(true: "float", false: "string")] bool $as_flo "minuteswest" => "int", "dsttime" => "int" ])] -function gettimeofday (#[TypeContract(true: "float", false: "int[]")] bool $as_float = false): array|float -{} +function gettimeofday(#[TypeContract(true: "float", false: "int[]")] bool $as_float = false): array|float {} /** * Gets the current resource usages @@ -917,8 +859,7 @@ function gettimeofday (#[TypeContract(true: "float", false: "int[]")] bool $as_f * call. All entries are accessible by using their documented field names. */ #[Pure] -function getrusage (int $mode): array|false -{} +function getrusage(int $mode): array|false {} /** * Generate a unique ID @@ -941,8 +882,7 @@ function getrusage (int $mode): array|false * @return string the unique identifier, as a string. */ #[Pure] -function uniqid (string $prefix = "", bool $more_entropy = false): string -{} +function uniqid(string $prefix = "", bool $more_entropy = false): string {} /** * Convert a quoted-printable string to an 8 bit string @@ -953,8 +893,7 @@ function uniqid (string $prefix = "", bool $more_entropy = false): string * @return string the 8-bit binary string. */ #[Pure] -function quoted_printable_decode (string $string): string -{} +function quoted_printable_decode(string $string): string {} /** * Convert a 8 bit string to a quoted-printable string @@ -965,8 +904,7 @@ function quoted_printable_decode (string $string): string * @return string the encoded string. */ #[Pure] -function quoted_printable_encode (string $string): string -{} +function quoted_printable_encode(string $string): string {} /** * Convert from one Cyrillic character set to another @@ -987,9 +925,8 @@ function quoted_printable_encode (string $string): string * @see UConverter */ #[Pure] -#[Deprecated(since: '7.4',reason: 'Us mb_convert_string(), iconv() or UConverter instead.')] -function convert_cyr_string (string $str, string $from, string $to): string -{} +#[Deprecated(since: '7.4', reason: 'Us mb_convert_string(), iconv() or UConverter instead.')] +function convert_cyr_string(string $str, string $from, string $to): string {} /** * Gets the name of the owner of the current PHP script @@ -997,8 +934,7 @@ function convert_cyr_string (string $str, string $from, string $to): string * @return string the username as a string. */ #[Pure] -function get_current_user (): string -{} +function get_current_user(): string {} /** * Limits the maximum execution time @@ -1009,8 +945,7 @@ function get_current_user (): string *

    * @return bool Returns TRUE on success, or FALSE on failure. */ -function set_time_limit (int $seconds): bool -{} +function set_time_limit(int $seconds): bool {} /** * Gets the value of a PHP configuration option @@ -1022,8 +957,7 @@ function set_time_limit (int $seconds): bool * option, or false if an error occurs. */ #[Pure] -function get_cfg_var (string $option): array|string|false -{} +function get_cfg_var(string $option): array|string|false {} /** * Alias: @@ -1033,7 +967,7 @@ function get_cfg_var (string $option): array|string|false * @removed 7.0 */ #[Deprecated(since: '5.3')] -function magic_quotes_runtime (bool $new_setting) {} +function magic_quotes_runtime(bool $new_setting) {} /** * Sets the current active configuration setting of magic_quotes_runtime @@ -1045,8 +979,7 @@ function magic_quotes_runtime (bool $new_setting) {} * @removed 7.0 */ #[Deprecated(reason: "This function has been DEPRECATED as of PHP 5.4.0. Raises an E_CORE_ERROR", since: "5.3")] -function set_magic_quotes_runtime (bool $new_setting): bool -{} +function set_magic_quotes_runtime(bool $new_setting): bool {} /** * Gets the current configuration setting of magic quotes gpc @@ -1055,8 +988,7 @@ function set_magic_quotes_runtime (bool $new_setting): bool * @removed 8.0 */ #[Deprecated(since: '7.4')] -function get_magic_quotes_gpc (): int -{} +function get_magic_quotes_gpc(): int {} /** * Gets the current active configuration setting of magic_quotes_runtime @@ -1064,8 +996,7 @@ function get_magic_quotes_gpc (): int * @return int 0 if magic quotes runtime is off, 1 otherwise. */ #[Deprecated(since: '7.4')] -function get_magic_quotes_runtime (): int -{} +function get_magic_quotes_runtime(): int {} /** * Import GET/POST/Cookie variables into the global scope @@ -1101,8 +1032,7 @@ function get_magic_quotes_runtime (): int * @removed 5.4 */ #[Deprecated(reason: "This function has been DEPRECATED as of PHP 5.3.0", since: "5.3")] -function import_request_variables (string $types, $prefix = null): bool -{} +function import_request_variables(string $types, $prefix = null): bool {} /** * Send an error message to the defined error handling routines @@ -1170,6 +1100,4 @@ function import_request_variables (string $types, $prefix = null): bool *

    * @return bool true on success or false on failure. */ -function error_log (string $message, int $message_type, ?string $destination, ?string $additional_headers): bool -{ -} +function error_log(string $message, int $message_type, ?string $destination, ?string $additional_headers): bool {} diff --git a/standard/standard_4.php b/standard/standard_4.php index 872c511f8..aaa448380 100644 --- a/standard/standard_4.php +++ b/standard/standard_4.php @@ -18,8 +18,7 @@ "line" => "int", ])] #[Pure] -function error_get_last (): ?array -{} +function error_get_last(): ?array {} /** * Call the callback given by the first parameter @@ -41,8 +40,7 @@ function error_get_last (): ?array *

    * @return mixed|false the function result, or false on error. */ -function call_user_func (callable $callback, mixed ...$args): mixed -{} +function call_user_func(callable $callback, mixed ...$args): mixed {} /** * Call a callback with an array of parameters @@ -55,8 +53,7 @@ function call_user_func (callable $callback, mixed ...$args): mixed *

    * @return mixed|false the function result, or false on error. */ -function call_user_func_array (callable $callback, array $args): mixed -{} +function call_user_func_array(callable $callback, array $args): mixed {} /** * Call a user method on an specific object @@ -69,8 +66,7 @@ function call_user_func_array (callable $callback, array $args): mixed * @see call_user_func() */ #[Deprecated(reason: "use call_user_func() instead", since: "5.3")] -function call_user_method (string $method_name, object &$obj, ...$parameter): mixed -{} +function call_user_method(string $method_name, object &$obj, ...$parameter): mixed {} /** * Call a user method given with an array of parameters @@ -83,8 +79,7 @@ function call_user_method (string $method_name, object &$obj, ...$parameter): mi * @see call_user_func() */ #[Deprecated(reason: "use call_user_func() instead", since: "5.3")] -function call_user_method_array (string $method_name, object &$obj, array $params): mixed -{} +function call_user_method_array(string $method_name, object &$obj, array $params): mixed {} /** * Call a static method @@ -99,8 +94,7 @@ function call_user_method_array (string $method_name, object &$obj, array $param *

    * @return mixed|false the function result, or false on error. */ -function forward_static_call (callable $callback, ...$args): mixed -{} +function forward_static_call(callable $callback, ...$args): mixed {} /** * Call a static method and pass the arguments as array @@ -113,8 +107,7 @@ function forward_static_call (callable $callback, ...$args): mixed * @param array $args * @return mixed|false the function result, or false on error. */ -function forward_static_call_array (callable $callback, array $args): mixed -{} +function forward_static_call_array(callable $callback, array $args): mixed {} /** * Generates a storable representation of a value @@ -142,8 +135,7 @@ function forward_static_call_array (callable $callback, array $args): mixed * @return string a string containing a byte-stream representation of * value that can be stored anywhere. */ -function serialize (mixed $value): string -{} +function serialize(mixed $value): string {} /** * Creates a PHP value from a stored representation @@ -187,8 +179,7 @@ function serialize (mixed $value): string * In case the passed string is not unserializeable, false is returned and * E_NOTICE is issued.

    */ -function unserialize (string $data, array $options = []): mixed -{} +function unserialize(string $data, array $options = []): mixed {} /** * Dumps information about a variable @@ -199,7 +190,7 @@ function unserialize (string $data, array $options = []): mixed * @param mixed ...$values [optional] * @return void */ -function var_dump (mixed $value, ...$values): void {} +function var_dump(mixed $value, ...$values): void {} /** * Outputs or returns a parsable string representation of a variable @@ -215,8 +206,7 @@ function var_dump (mixed $value, ...$values): void {} * parameter is used and evaluates to true. Otherwise, this function will * return null. */ -function var_export (mixed $value, bool $return = false): ?string -{} +function var_export(mixed $value, bool $return = false): ?string {} /** * Dumps a string representation of an internal zend value to output @@ -227,7 +217,7 @@ function var_export (mixed $value, bool $return = false): ?string *

    * @return void */ -function debug_zval_dump (mixed $value, mixed ...$values): void {} +function debug_zval_dump(mixed $value, mixed ...$values): void {} /** * Prints human-readable information about a variable @@ -246,8 +236,7 @@ function debug_zval_dump (mixed $value, mixed ...$values): void {} * will be presented in a format that shows keys and elements. Similar * notation is used for objects. */ -function print_r (mixed $value, bool $return = false): string|bool -{} +function print_r(mixed $value, bool $return = false): string|bool {} /** * Returns the amount of memory allocated to PHP @@ -260,8 +249,7 @@ function print_r (mixed $value, bool $return = false): string|bool * @return int the memory amount in bytes. */ #[Pure] -function memory_get_usage (bool $real_usage = false): int -{} +function memory_get_usage(bool $real_usage = false): int {} /** * Returns the peak of memory allocated by PHP @@ -274,8 +262,7 @@ function memory_get_usage (bool $real_usage = false): int * @return int the memory peak in bytes. */ #[Pure] -function memory_get_peak_usage (bool $real_usage = false): int -{} +function memory_get_peak_usage(bool $real_usage = false): int {} /** * Register a function for execution on shutdown @@ -300,7 +287,7 @@ function memory_get_peak_usage (bool $real_usage = false): int *

    * @return bool|null */ -function register_shutdown_function (callable $callback, ...$args): ?bool {} +function register_shutdown_function(callable $callback, ...$args): ?bool {} /** * Register a function for execution on each tick @@ -313,8 +300,7 @@ function register_shutdown_function (callable $callback, ...$args): ?bool {} *

    * @return bool true on success or false on failure. */ -function register_tick_function (callable $callback, ...$args): bool -{} +function register_tick_function(callable $callback, ...$args): bool {} /** * De-register a function for execution on each tick @@ -325,7 +311,7 @@ function register_tick_function (callable $callback, ...$args): bool *

    * @return void */ -function unregister_tick_function (callable $callback): void {} +function unregister_tick_function(callable $callback): void {} /** * Syntax highlighting of a file @@ -341,8 +327,7 @@ function unregister_tick_function (callable $callback): void {} * code as a string instead of printing it out. Otherwise, it will return * true on success, false on failure. */ -function highlight_file (string $filename, bool $return = false): string|bool -{} +function highlight_file(string $filename, bool $return = false): string|bool {} /** * Alias: @@ -352,8 +337,7 @@ function highlight_file (string $filename, bool $return = false): string|bool * @param bool $return [optional] * @return string|bool */ -function show_source (string $filename, bool $return = false): string|bool -{} +function show_source(string $filename, bool $return = false): string|bool {} /** * Syntax highlighting of a string @@ -369,8 +353,7 @@ function show_source (string $filename, bool $return = false): string|bool * code as a string instead of printing it out. Otherwise, it will return * true on success, false on failure. */ -function highlight_string (string $string, bool $return = false): string|bool -{} +function highlight_string(string $string, bool $return = false): string|bool {} /** * Get the system's high resolution time @@ -381,8 +364,7 @@ function highlight_string (string $string, bool $return = false): string|bool * Otherwise the nanoseconds are returned as integer (64bit platforms) or float (32bit platforms). */ #[Pure] -function hrtime(bool $as_number = false): array|int|float|false -{} +function hrtime(bool $as_number = false): array|int|float|false {} /** * Return source with stripped comments and whitespace @@ -400,8 +382,7 @@ function hrtime(bool $as_number = false): array|int|float|false * #29606. */ #[Pure] -function php_strip_whitespace (string $filename): string -{} +function php_strip_whitespace(string $filename): string {} /** * Gets the value of a configuration option @@ -414,8 +395,7 @@ function php_strip_whitespace (string $filename): string * an empty string on failure or for null values. */ #[Pure] -function ini_get (string $option): string|false -{} +function ini_get(string $option): string|false {} /** * Gets all configuration options @@ -451,8 +431,7 @@ function ini_get (string $option): string|false *

    */ #[Pure] -function ini_get_all (?string $extension, bool $details = true): array|false -{} +function ini_get_all(?string $extension, bool $details = true): array|false {} /** * Sets the value of a configuration option @@ -470,8 +449,7 @@ function ini_get_all (?string $extension, bool $details = true): array|false *

    * @return string|false the old value on success, false on failure. */ -function ini_set (string $option, string $value): string|false -{} +function ini_set(string $option, string $value): string|false {} /** * Alias: @@ -482,8 +460,7 @@ function ini_set (string $option, string $value): string|false * @param string $value * @return string|false */ -function ini_alter (string $option, string $value): string|false -{} +function ini_alter(string $option, string $value): string|false {} /** * Restores the value of a configuration option @@ -494,7 +471,7 @@ function ini_alter (string $option, string $value): string|false *

    * @return void */ -function ini_restore (string $option): void {} +function ini_restore(string $option): void {} /** * Gets the current include_path configuration option @@ -502,8 +479,7 @@ function ini_restore (string $option): void {} * @return string|false the path, as a string. */ #[Pure] -function get_include_path (): string|false -{} +function get_include_path(): string|false {} /** * Sets the include_path configuration option @@ -514,8 +490,7 @@ function get_include_path (): string|false * @return string|false the old include_path on * success or false on failure. */ -function set_include_path (string $include_path): string|false -{} +function set_include_path(string $include_path): string|false {} /** * Restores the value of the include_path configuration option @@ -524,7 +499,7 @@ function set_include_path (string $include_path): string|false * @removed 8.0 */ #[Deprecated(since: '7.4')] -function restore_include_path () {} +function restore_include_path() {} /** * Send a cookie @@ -601,8 +576,7 @@ function restore_include_path () {} * setcookie successfully runs, it will return true. * This does not indicate whether the user accepted the cookie. */ -function setcookie (string $name, $value = "", $expires_or_options = 0, $path = "", $domain = "", $secure = false, $httponly = false): bool -{} +function setcookie(string $name, $value = "", $expires_or_options = 0, $path = "", $domain = "", $secure = false, $httponly = false): bool {} /** * Send a cookie @@ -625,8 +599,7 @@ function setcookie (string $name, $value = "", $expires_or_options = 0, $path = * This does not indicate whether the user accepted the cookie. * @since 7.3 */ -function setcookie(string $name, $value = '', array $options = []): bool -{} +function setcookie(string $name, $value = '', array $options = []): bool {} /** * Send a cookie without urlencoding the cookie value @@ -640,8 +613,7 @@ function setcookie(string $name, $value = '', array $options = []): bool * @param bool $httponly [optional] * @return bool true on success or false on failure. */ -function setrawcookie (string $name, $value = '', $expires_or_options = 0, $path = "", $domain = "", $secure = false, $httponly = false): bool -{} +function setrawcookie(string $name, $value = '', $expires_or_options = 0, $path = "", $domain = "", $secure = false, $httponly = false): bool {} /** * Send a cookie without urlencoding the cookie value @@ -663,8 +635,7 @@ function setrawcookie (string $name, $value = '', $expires_or_options = 0, $path * setcookie successfully runs, it will return true. * This does not indicate whether the user accepted the cookie. */ -function setrawcookie (string $name, $value = '', array $options = []): bool -{} +function setrawcookie(string $name, $value = '', array $options = []): bool {} /** * Send a raw HTTP header @@ -700,8 +671,7 @@ function setrawcookie (string $name, $value = '', array $options = []): bool *

    * @return void */ -function header (string $header, bool $replace = true, int $response_code): void -{} +function header(string $header, bool $replace = true, int $response_code): void {} /** * Remove previously set headers @@ -712,7 +682,7 @@ function header (string $header, bool $replace = true, int $response_code): void * This parameter is case-insensitive. * @return void */ -function header_remove (?string $name): void {} +function header_remove(?string $name): void {} /** * Checks if or where headers have been sent @@ -730,8 +700,7 @@ function header_remove (?string $name): void {} * @return bool headers_sent will return false if no HTTP headers * have already been sent or true otherwise. */ -function headers_sent (&$filename, &$line): bool -{} +function headers_sent(&$filename, &$line): bool {} /** * Returns a list of response headers sent (or ready to send) @@ -739,8 +708,7 @@ function headers_sent (&$filename, &$line): bool * @return array a numerically indexed array of headers. */ #[Pure] -function headers_list (): array -{} +function headers_list(): array {} /** * Fetches all HTTP request headers from the current request @@ -748,8 +716,7 @@ function headers_list (): array * @return array|false An associative array of all the HTTP headers in the current request, or FALSE on failure. */ #[Pure] -function apache_request_headers (): false|array -{} +function apache_request_headers(): false|array {} /** * Fetches all HTTP headers from the current request. @@ -758,8 +725,7 @@ function apache_request_headers (): false|array * @return array|false An associative array of all the HTTP headers in the current request, or FALSE on failure. */ #[Pure] -function getallheaders (): false|array -{} +function getallheaders(): false|array {} /** * Check whether client disconnected @@ -767,8 +733,7 @@ function getallheaders (): false|array * @return int 1 if client disconnected, 0 otherwise. */ #[Pure] -function connection_aborted (): int -{} +function connection_aborted(): int {} /** * Returns connection status bitfield @@ -778,8 +743,7 @@ function connection_aborted (): int * status. */ #[Pure] -function connection_status (): int -{} +function connection_status(): int {} /** * Set whether a client disconnect should abort script execution @@ -791,8 +755,7 @@ function connection_status (): int *

    * @return int the previous setting, as an integer. */ -function ignore_user_abort (?bool $enable): int -{} +function ignore_user_abort(?bool $enable): int {} /** * Parse a configuration file @@ -822,8 +785,7 @@ function ignore_user_abort (?bool $enable): int * @return array|false The settings are returned as an associative array on success, * and false on failure. */ -function parse_ini_file (string $filename, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false -{} +function parse_ini_file(string $filename, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false {} /** * Parse a configuration string @@ -846,8 +808,7 @@ function parse_ini_file (string $filename, bool $process_sections = false, int $ * and false on failure. */ #[Pure] -function parse_ini_string (string $ini_string, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false -{} +function parse_ini_string(string $ini_string, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false {} /** * Tells whether the file was uploaded via HTTP POST @@ -858,8 +819,7 @@ function parse_ini_string (string $ini_string, bool $process_sections = false, i * @return bool true on success or false on failure. */ #[Pure] -function is_uploaded_file (string $filename): bool -{} +function is_uploaded_file(string $filename): bool {} /** * Moves an uploaded file to a new location @@ -881,16 +841,14 @@ function is_uploaded_file (string $filename): bool * move_uploaded_file will return * false. Additionally, a warning will be issued. */ -function move_uploaded_file (string $from, string $to): bool -{} +function move_uploaded_file(string $from, string $to): bool {} /** * @return array|false * @since 7.3 */ #[Pure] -function net_get_interfaces(): array|false -{} +function net_get_interfaces(): array|false {} /** * Get the Internet host name corresponding to a given IP address @@ -902,8 +860,7 @@ function net_get_interfaces(): array|false * on failure. */ #[Pure] -function gethostbyaddr (string $ip): string|false -{} +function gethostbyaddr(string $ip): string|false {} /** * Get the IPv4 address corresponding to a given Internet host name @@ -915,8 +872,7 @@ function gethostbyaddr (string $ip): string|false * hostname on failure. */ #[Pure] -function gethostbyname (string $hostname): string -{} +function gethostbyname(string $hostname): string {} /** * Get a list of IPv4 addresses corresponding to a given Internet host @@ -929,8 +885,7 @@ function gethostbyname (string $hostname): string * hostname could not be resolved. */ #[Pure] -function gethostbynamel(string $hostname): array|false -{} +function gethostbynamel(string $hostname): array|false {} /** * Gets the host name @@ -939,8 +894,7 @@ function gethostbynamel(string $hostname): array|false * returned. */ #[Pure] -function gethostname (): string|false -{} +function gethostname(): string|false {} /** * Alias: @@ -956,8 +910,7 @@ function gethostname (): string|false *

    * @return bool Returns TRUE if any records are found; returns FALSE if no records were found or if an error occurred. */ -function dns_check_record (string $hostname, string $type = 'MX'): bool -{} +function dns_check_record(string $hostname, string $type = 'MX'): bool {} /** * Check DNS records corresponding to a given Internet host name or IP address @@ -974,8 +927,7 @@ function dns_check_record (string $hostname, string $type = 'MX'): bool * were found or if an error occurred. */ #[Pure] -function checkdnsrr (string $hostname, string $type = 'MX'): bool -{} +function checkdnsrr(string $hostname, string $type = 'MX'): bool {} /** * Alias: @@ -986,8 +938,7 @@ function checkdnsrr (string $hostname, string $type = 'MX'): bool * @param array &$weights [optional] * @return bool */ -function dns_get_mx (string $hostname, &$hosts, &$weights): bool -{} +function dns_get_mx(string $hostname, &$hosts, &$weights): bool {} /** * Get MX records corresponding to a given Internet host name @@ -1006,8 +957,7 @@ function dns_get_mx (string $hostname, &$hosts, &$weights): bool * @return bool true if any records are found; returns false if no records * were found or if an error occurred. */ -function getmxrr (string $hostname, &$hosts, &$weights): bool -{} +function getmxrr(string $hostname, &$hosts, &$weights): bool {} /** * Fetch DNS Resource Records associated with a hostname @@ -1216,5 +1166,4 @@ function getmxrr (string $hostname, &$hosts, &$weights): bool * * */ -function dns_get_record (string $hostname, int $type = DNS_ANY, &$authoritative_name_servers, &$additional_records, bool $raw = false): array|false -{} +function dns_get_record(string $hostname, int $type = DNS_ANY, &$authoritative_name_servers, &$additional_records, bool $raw = false): array|false {} diff --git a/standard/standard_5.php b/standard/standard_5.php index b893a7071..0473bf214 100644 --- a/standard/standard_5.php +++ b/standard/standard_5.php @@ -13,8 +13,7 @@ * @since 5.5 */ #[Pure] -function boolval(mixed $value): bool -{} +function boolval(mixed $value): bool {} /** * Get the integer value of a variable @@ -43,8 +42,7 @@ function boolval(mixed $value): bool * apply. */ #[Pure] -function intval (mixed $value, int $base = 10): int -{} +function intval(mixed $value, int $base = 10): int {} /** * Get float value of a variable @@ -53,8 +51,7 @@ function intval (mixed $value, int $base = 10): int * @return float value of the given variable. Empty arrays return 0, non-empty arrays return 1. */ #[Pure] -function floatval (mixed $value): float -{} +function floatval(mixed $value): float {} /** * (PHP 4.2.0, PHP 5)
    @@ -66,8 +63,7 @@ function floatval (mixed $value): float * @return float value of the given variable. Empty arrays return 0, non-empty arrays return 1. */ #[Pure] -function doubleval (mixed $value): float -{} +function doubleval(mixed $value): float {} /** * Get string value of a variable @@ -82,8 +78,7 @@ function doubleval (mixed $value): float * @return string The string value of var. */ #[Pure] -function strval (mixed $value): string -{} +function strval(mixed $value): string {} /** * Get the type of a variable @@ -107,20 +102,9 @@ function strval (mixed $value): string */ #[Pure] #[ExpectedValues([ - "boolean" - , "integer" - , "double" - , "string" - , "array" - , "object" - , "resource" - , "NULL" - , "unknown type" - , "resource (closed)" + "boolean", "integer", "double", "string", "array", "object", "resource", "NULL", "unknown type", "resource (closed)" ])] -function gettype(mixed $value): string -{ -} +function gettype(mixed $value): string {} /** * Set the type of a variable @@ -156,8 +140,7 @@ function gettype(mixed $value): string * * @return bool true on success or false on failure. */ -function settype (mixed &$var, #[ExpectedValues(["bool", "boolean", "int", "integer", "float", "double", "string", "array", "object", "null"])] string $type): bool -{} +function settype(mixed &$var, #[ExpectedValues(["bool", "boolean", "int", "integer", "float", "double", "string", "array", "object", "null"])] string $type): bool {} /** * Finds whether a variable is null. @@ -169,8 +152,7 @@ function settype (mixed &$var, #[ExpectedValues(["bool", "boolean", "int", "inte * otherwise. */ #[Pure] -function is_null (mixed $value): bool -{} +function is_null(mixed $value): bool {} /** * Finds whether a variable is a resource @@ -182,8 +164,7 @@ function is_null (mixed $value): bool * false otherwise. */ #[Pure] -function is_resource (mixed $value): bool -{} +function is_resource(mixed $value): bool {} /** * Finds out whether a variable is a boolean @@ -195,8 +176,7 @@ function is_resource (mixed $value): bool * false otherwise. */ #[Pure] -function is_bool (mixed $value): bool -{} +function is_bool(mixed $value): bool {} /** * Alias: @@ -209,8 +189,7 @@ function is_bool (mixed $value): bool * false otherwise. */ #[Pure] -function is_long (mixed $value): bool -{} +function is_long(mixed $value): bool {} /** * Finds whether the type of a variable is float @@ -222,8 +201,7 @@ function is_long (mixed $value): bool * false otherwise. */ #[Pure] -function is_float (mixed $value): bool -{} +function is_float(mixed $value): bool {} /** * Find whether the type of a variable is integer @@ -235,8 +213,7 @@ function is_float (mixed $value): bool * false otherwise. */ #[Pure] -function is_int (mixed $value): bool -{} +function is_int(mixed $value): bool {} /** * Alias: @@ -249,8 +226,7 @@ function is_int (mixed $value): bool * false otherwise. */ #[Pure] -function is_integer (mixed $value): bool -{} +function is_integer(mixed $value): bool {} /** * Alias: @@ -263,8 +239,7 @@ function is_integer (mixed $value): bool * false otherwise. */ #[Pure] -function is_double (mixed $value): bool -{} +function is_double(mixed $value): bool {} /** * Alias: @@ -278,8 +253,7 @@ function is_double (mixed $value): bool */ #[Pure] #[Deprecated(since: '7.4')] -function is_real (mixed $var): bool -{} +function is_real(mixed $var): bool {} /** * Finds whether a variable is a number or a numeric string @@ -291,8 +265,7 @@ function is_real (mixed $var): bool * string, false otherwise. */ #[Pure] -function is_numeric (mixed $value): bool -{} +function is_numeric(mixed $value): bool {} /** * Find whether the type of a variable is string @@ -304,8 +277,7 @@ function is_numeric (mixed $value): bool * false otherwise. */ #[Pure] -function is_string (mixed $value): bool -{} +function is_string(mixed $value): bool {} /** * Finds whether a variable is an array @@ -317,8 +289,7 @@ function is_string (mixed $value): bool * false otherwise. */ #[Pure] -function is_array (mixed $value): bool -{} +function is_array(mixed $value): bool {} /** * Finds whether a variable is an object @@ -330,8 +301,7 @@ function is_array (mixed $value): bool * Since 7.2.0 returns true for unserialized objects without a class definition (class of __PHP_Incomplete_Class). */ #[Pure] -function is_object (mixed $value): bool -{} +function is_object(mixed $value): bool {} /** * Finds whether a variable is a scalar @@ -343,8 +313,7 @@ function is_object (mixed $value): bool * otherwise. */ #[Pure] -function is_scalar (mixed $value): bool -{} +function is_scalar(mixed $value): bool {} /** * Verify that the contents of a variable can be called as a function @@ -369,8 +338,7 @@ function is_scalar (mixed $value): bool * @return bool TRUE if $var is callable, FALSE * otherwise. */ -function is_callable (mixed $value, bool $syntax_only = false, &$callable_name): bool -{} +function is_callable(mixed $value, bool $syntax_only = false, &$callable_name): bool {} /** * Verify that the contents of a variable is a countable value @@ -381,8 +349,7 @@ function is_callable (mixed $value, bool $syntax_only = false, &$callable_name): * @since 7.3 */ #[Pure] -function is_countable(mixed $value): bool -{} +function is_countable(mixed $value): bool {} /** * Closes process file pointer @@ -396,8 +363,7 @@ function is_countable(mixed $value): bool * If PHP has been compiled with --enable-sigchild, the return value of this function is undefined. *

    */ -function pclose ($handle): int -{} +function pclose($handle): int {} /** * Opens process file pointer @@ -418,8 +384,7 @@ function pclose ($handle): int *

    * If an error occurs, returns false. */ -function popen (string $command, string $mode) -{} +function popen(string $command, string $mode) {} /** * Outputs a file @@ -436,8 +401,7 @@ function popen (string $command, string $mode) *

    * @return false|int the number of bytes read from the file, or FALSE on failure */ -function readfile (string $filename, bool $use_include_path = false, $context): int|false -{} +function readfile(string $filename, bool $use_include_path = false, $context): int|false {} /** * Rewind the position of a file pointer @@ -448,8 +412,7 @@ function readfile (string $filename, bool $use_include_path = false, $context): *

    * @return bool true on success or false on failure. */ -function rewind ($stream): bool -{} +function rewind($stream): bool {} /** * Removes directory @@ -460,8 +423,7 @@ function rewind ($stream): bool * @param resource $context [optional] * @return bool true on success or false on failure. */ -function rmdir (string $directory, $context): bool -{} +function rmdir(string $directory, $context): bool {} /** * Changes the current umask @@ -472,8 +434,7 @@ function rmdir (string $directory, $context): bool * @return int umask without arguments simply returns the * current umask otherwise the old umask is returned. */ -function umask (?int $mask): int -{} +function umask(?int $mask): int {} /** * Closes an open file pointer @@ -484,8 +445,7 @@ function umask (?int $mask): int *

    * @return bool true on success or false on failure. */ -function fclose ($stream): bool -{} +function fclose($stream): bool {} /** * Tests for end-of-file on a file pointer @@ -494,8 +454,7 @@ function fclose ($stream): bool * @return bool true if the file pointer is at EOF or an error occurs * (including socket timeout); otherwise returns false. */ -function feof ($stream): bool -{} +function feof($stream): bool {} /** * Gets character from file pointer @@ -504,8 +463,7 @@ function feof ($stream): bool * @return string|false a string containing a single character read from the file pointed * to by handle. Returns false on EOF. */ -function fgetc ($stream): string|false -{} +function fgetc($stream): string|false {} /** * Gets line from file pointer @@ -529,8 +487,7 @@ function fgetc ($stream): string|false *

    * If an error occurs, returns false. */ -function fgets ($stream, ?int $length): string|false -{} +function fgets($stream, ?int $length): string|false {} /** * Gets line from file pointer and strip HTML tags @@ -552,8 +509,7 @@ function fgets ($stream, ?int $length): string|false * @removed 8.0 */ #[Deprecated(since: '7.3')] -function fgetss ($handle, ?int $length = null, $allowable_tags = null): false|string -{} +function fgetss($handle, ?int $length = null, $allowable_tags = null): false|string {} /** * Binary-safe file read @@ -564,8 +520,7 @@ function fgetss ($handle, ?int $length = null, $allowable_tags = null): false|st *

    * @return string|false the read string or false on failure. */ -function fread ($stream, int $length): string|false -{} +function fread($stream, int $length): string|false {} /** * Opens file or URL @@ -748,8 +703,7 @@ function fread ($stream, int $length): string|false * @param resource $context [optional] * @return resource|false a file pointer resource on success, or false on error. */ -function fopen (string $filename, string $mode, bool $use_include_path = false, $context) -{} +function fopen(string $filename, string $mode, bool $use_include_path = false, $context) {} /** * Output all remaining data on a file pointer @@ -761,8 +715,7 @@ function fopen (string $filename, string $mode, bool $use_include_path = false, * and passed through to the output. */ #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function fpassthru ($stream) -{} +function fpassthru($stream) {} /** * Truncates a file to a given length @@ -786,8 +739,7 @@ function fpassthru ($stream) *

    * @return bool true on success or false on failure. */ -function ftruncate ($stream, int $size): bool -{} +function ftruncate($stream, int $size): bool {} /** * Gets information about a file using an open file pointer @@ -796,8 +748,7 @@ function ftruncate ($stream, int $size): bool * @return array|false an array with the statistics of the file; the format of the array * is described in detail on the stat manual page. */ -function fstat ($stream): array|false -{} +function fstat($stream): array|false {} /** * Seeks on a file pointer @@ -825,8 +776,7 @@ function fstat ($stream): array|false * @return int Upon success, returns 0; otherwise, returns -1. Note that seeking * past EOF is not considered an error. */ -function fseek ($stream, int $offset, int $whence = SEEK_SET): int -{} +function fseek($stream, int $offset, int $whence = SEEK_SET): int {} /** * Returns the current position of the file read/write pointer @@ -843,8 +793,7 @@ function fseek ($stream, int $offset, int $whence = SEEK_SET): int *

    * If an error occurs, returns false. */ -function ftell ($stream): int|false -{} +function ftell($stream): int|false {} /** * Flushes the output to a file @@ -852,8 +801,7 @@ function ftell ($stream): int|false * @param resource $stream The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()). * @return bool true on success or false on failure. */ -function fflush ($stream): bool -{} +function fflush($stream): bool {} /** * Binary-safe file write @@ -876,8 +824,7 @@ function fflush ($stream): bool *

    * @return int|false the number of bytes written, or FALSE on error. */ -function fwrite ($stream, string $data, ?int $length): int|false -{} +function fwrite($stream, string $data, ?int $length): int|false {} /** * Alias: @@ -903,8 +850,7 @@ function fwrite ($stream, string $data, ?int $length): int|false * @link https://php.net/manual/en/function.fputs.php * Binary-safe file write */ -function fputs ($stream, string $data, ?int $length): int|false -{} +function fputs($stream, string $data, ?int $length): int|false {} /** * Attempts to create the directory specified by pathname. @@ -932,8 +878,7 @@ function fputs ($stream, string $data, ?int $length): int|false * @param resource $context [optional] * @return bool true on success or false on failure. */ -function mkdir (string $directory, int $permissions = 0777, bool $recursive = false, $context): bool -{} +function mkdir(string $directory, int $permissions = 0777, bool $recursive = false, $context): bool {} /** * Renames a file or directory @@ -951,8 +896,7 @@ function mkdir (string $directory, int $permissions = 0777, bool $recursive = fa * @param resource $context [optional] * @return bool true on success or false on failure. */ -function rename (string $from, string $to, $context): bool -{} +function rename(string $from, string $to, $context): bool {} /** * Copies file @@ -974,8 +918,7 @@ function rename (string $from, string $to, $context): bool *

    * @return bool true on success or false on failure. */ -function copy (string $from, string $to, $context): bool -{} +function copy(string $from, string $to, $context): bool {} /** * Create file with unique file name @@ -990,8 +933,7 @@ function copy (string $from, string $to, $context): bool * @return string|false the new temporary filename, or false on * failure. */ -function tempnam (string $directory, string $prefix): string|false -{} +function tempnam(string $directory, string $prefix): string|false {} /** * Creates a temporary file @@ -999,8 +941,7 @@ function tempnam (string $directory, string $prefix): string|false * @return resource|false a file handle, similar to the one returned by * fopen, for the new file or false on failure. */ -function tmpfile () -{} +function tmpfile() {} /** * Reads entire file into an array @@ -1027,8 +968,7 @@ function tmpfile () * present. *

    */ -function file (string $filename, int $flags, $context): array|false -{} +function file(string $filename, int $flags, $context): array|false {} /** * Reads entire file into a string @@ -1054,8 +994,7 @@ function file (string $filename, int $flags, $context): array|false *

    * @return string|false The function returns the read data or false on failure. */ -function file_get_contents (string $filename, bool $use_include_path = false, $context, int $offset = 0, ?int $length): string|false -{} +function file_get_contents(string $filename, bool $use_include_path = false, $context, int $offset = 0, ?int $length): string|false {} /** * Write a string to a file @@ -1128,5 +1067,4 @@ function file_get_contents (string $filename, bool $use_include_path = false, $c * @return int|false The function returns the number of bytes that were written to the file, or * false on failure. */ -function file_put_contents (string $filename, mixed $data, int $flags = 0, $context): int|false -{} +function file_put_contents(string $filename, mixed $data, int $flags = 0, $context): int|false {} diff --git a/standard/standard_6.php b/standard/standard_6.php index 5b90974d5..783e9dfab 100644 --- a/standard/standard_6.php +++ b/standard/standard_6.php @@ -77,8 +77,7 @@ * is returned and a warning raised (this can happen if the system call is * interrupted by an incoming signal). */ -function stream_select (?array &$read, ?array &$write, ?array &$except, ?int $seconds, int $microseconds): int|false -{} +function stream_select(?array &$read, ?array &$write, ?array &$except, ?int $seconds, int $microseconds): int|false {} /** * Create a stream context @@ -98,7 +97,7 @@ function stream_select (?array &$read, ?array &$write, ?array &$except, ?int $se *

    * @return resource A stream context resource. */ -function stream_context_create (?array $options, ?array $params) {} +function stream_context_create(?array $options, ?array $params) {} /** * Set parameters for a stream/wrapper/context @@ -115,8 +114,7 @@ function stream_context_create (?array $options, ?array $params) {} *

    * @return bool true on success or false on failure. */ -function stream_context_set_params ($context, array $params): bool -{} +function stream_context_set_params($context, array $params): bool {} /** * Retrieves parameters from a context @@ -127,8 +125,7 @@ function stream_context_set_params ($context, array $params): bool *

    * @return array an associate array containing all context options and parameters. */ -function stream_context_get_params ($context): array -{} +function stream_context_get_params($context): array {} /** * Sets an option for a stream/wrapper/context @@ -141,8 +138,7 @@ function stream_context_get_params ($context): array * @param mixed $value * @return bool true on success or false on failure. */ -function stream_context_set_option ($context, string $wrapper_or_options, string $option_name, mixed $value): bool -{} +function stream_context_set_option($context, string $wrapper_or_options, string $option_name, mixed $value): bool {} /** * Sets an option for a stream/wrapper/context @@ -151,8 +147,7 @@ function stream_context_set_option ($context, string $wrapper_or_options, string * @param array $options The options to set for the default context. * @return bool true on success or false on failure. */ -function stream_context_set_option ($stream_or_context, array $options): bool -{} +function stream_context_set_option($stream_or_context, array $options): bool {} /** * Retrieve options for a stream/wrapper/context @@ -162,8 +157,7 @@ function stream_context_set_option ($stream_or_context, array $options): bool *

    * @return array an associative array with the options. */ -function stream_context_get_options ($stream_or_context): array -{} +function stream_context_get_options($stream_or_context): array {} /** * Retreive the default stream context @@ -177,7 +171,7 @@ function stream_context_get_options ($stream_or_context): array *

    * @return resource A stream context resource. */ -function stream_context_get_default (?array $options) {} +function stream_context_get_default(?array $options) {} /** * Set the default stream context @@ -192,7 +186,7 @@ function stream_context_get_default (?array $options) {} *

    * @return resource the default stream context. */ -function stream_context_set_default (array $options) {} +function stream_context_set_default(array $options) {} /** * Attach a filter to a stream @@ -227,8 +221,7 @@ function stream_context_set_default (array $options) {} * @return resource|false a resource which can be used to refer to this filter * instance during a call to stream_filter_remove. */ -function stream_filter_prepend ($stream, string $filter_name, int $mode, mixed $params) -{} +function stream_filter_prepend($stream, string $filter_name, int $mode, mixed $params) {} /** * Attach a filter to a stream @@ -262,8 +255,7 @@ function stream_filter_prepend ($stream, string $filter_name, int $mode, mixed $ * @return resource|false a resource which can be used to refer to this filter * instance during a call to stream_filter_remove. */ -function stream_filter_append ($stream, string $filter_name, int $mode, mixed $params) -{} +function stream_filter_append($stream, string $filter_name, int $mode, mixed $params) {} /** * Remove a filter from a stream @@ -273,8 +265,7 @@ function stream_filter_append ($stream, string $filter_name, int $mode, mixed $p *

    * @return bool true on success or false on failure. */ -function stream_filter_remove ($stream_filter): bool -{} +function stream_filter_remove($stream_filter): bool {} /** * Open Internet or Unix domain socket connection @@ -316,8 +307,7 @@ function stream_filter_remove ($stream_filter): bool * fwrite, fclose, and * feof), false on failure. */ -function stream_socket_client (string $address, &$error_code, &$error_message, ?float $timeout, int $flags = STREAM_CLIENT_CONNECT, $context) -{} +function stream_socket_client(string $address, &$error_code, &$error_message, ?float $timeout, int $flags = STREAM_CLIENT_CONNECT, $context) {} /** * Create an Internet or Unix domain server socket @@ -367,8 +357,7 @@ function stream_socket_client (string $address, &$error_code, &$error_message, ? *

    * @return resource|false the created stream, or false on error. */ -function stream_socket_server (string $address, &$error_code, &$error_message, int $flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN, $context) -{} +function stream_socket_server(string $address, &$error_code, &$error_message, int $flags = STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context) {} /** * Accept a connection on a socket created by {@see stream_socket_server} @@ -388,8 +377,7 @@ function stream_socket_server (string $address, &$error_code, &$error_message, i *

    * @return resource|false Returns a stream to the accepted socket connection or FALSE on failure. */ -function stream_socket_accept ($socket, ?float $timeout, &$peer_name) -{} +function stream_socket_accept($socket, ?float $timeout, &$peer_name) {} /** * Retrieve the name of the local or remote sockets @@ -403,8 +391,7 @@ function stream_socket_accept ($socket, ?float $timeout, &$peer_name) *

    * @return string|false The name of the socket or false on error. */ -function stream_socket_get_name ($socket, bool $remote): string|false -{} +function stream_socket_get_name($socket, bool $remote): string|false {} /** * Receives data from a socket, connected or not @@ -443,8 +430,7 @@ function stream_socket_get_name ($socket, bool $remote): string|false *

    * @return string|false the read data, as a string, or false on error */ -function stream_socket_recvfrom ($socket, int $length, int $flags, &$address): string|false -{} +function stream_socket_recvfrom($socket, int $length, int $flags, &$address): string|false {} /** * Sends a message to a socket, whether it is connected or not @@ -477,8 +463,7 @@ function stream_socket_recvfrom ($socket, int $length, int $flags, &$address): s *

    * @return int|false a result code, as an integer. */ -function stream_socket_sendto ($socket, string $data, int $flags, string $address): int|false -{} +function stream_socket_sendto($socket, string $data, int $flags, string $address): int|false {} /** * Turns encryption on/off on an already connected socket @@ -500,8 +485,7 @@ function stream_socket_sendto ($socket, string $data, int $flags, string $addres * 0 if there isn't enough data and you should try again * (only for non-blocking sockets). */ -function stream_socket_enable_crypto ($stream, bool $enable, ?int $crypto_method, $session_stream): int|bool -{} +function stream_socket_enable_crypto($stream, bool $enable, ?int $crypto_method, $session_stream): int|bool {} /** * Shutdown a full-duplex connection @@ -520,8 +504,7 @@ function stream_socket_enable_crypto ($stream, bool $enable, ?int $crypto_method * @return bool true on success or false on failure. * @since 5.2.1 */ -function stream_socket_shutdown ($stream, int $mode): bool -{} +function stream_socket_shutdown($stream, int $mode): bool {} /** * Creates a pair of connected, indistinguishable socket streams @@ -549,8 +532,7 @@ function stream_socket_shutdown ($stream, int $mode): bool * @return array|false an array with the two socket resources on success, or * false on failure. */ -function stream_socket_pair (int $domain, int $type, int $protocol): array|false -{} +function stream_socket_pair(int $domain, int $type, int $protocol): array|false {} /** * Copies data from one stream to another @@ -569,8 +551,7 @@ function stream_socket_pair (int $domain, int $type, int $protocol): array|false *

    * @return int|false the total count of bytes copied, or false on failure. */ -function stream_copy_to_stream ($from, $to, ?int $length, int $offset): int|false -{} +function stream_copy_to_stream($from, $to, ?int $length, int $offset): int|false {} /** * Reads remainder of a stream into a string @@ -587,8 +568,7 @@ function stream_copy_to_stream ($from, $to, ?int $length, int $offset): int|fals *

    * @return string|false a string or false on failure. */ -function stream_get_contents ($stream, ?int $length = -1, int $offset = -1): string|false -{} +function stream_get_contents($stream, ?int $length = -1, int $offset = -1): string|false {} /** * Tells whether the stream supports locking. @@ -598,8 +578,7 @@ function stream_get_contents ($stream, ?int $length = -1, int $offset = -1): str *

    * @return bool true on success or false on failure. */ -function stream_supports_lock ($stream): bool -{} +function stream_supports_lock($stream): bool {} /** * Gets line from file pointer and parse for CSV fields @@ -637,8 +616,7 @@ function stream_supports_lock ($stream): bool * including end of file. *

    */ -function fgetcsv ($stream, ?int $length = 0, string $separator = ',', string $enclosure = '"', string $escape = '\\'): array|false -{} +function fgetcsv($stream, ?int $length = 0, string $separator = ',', string $enclosure = '"', string $escape = '\\'): array|false {} /** * Format line as CSV and write to file pointer @@ -660,8 +638,7 @@ function fgetcsv ($stream, ?int $length = 0, string $separator = ',', string $en *

    * @return int|false the length of the written string or false on failure. */ -function fputcsv ($stream, array $fields, string $separator = ",", string $enclosure = '"', string $escape = "\\"): int|false -{} +function fputcsv($stream, array $fields, string $separator = ",", string $enclosure = '"', string $escape = "\\"): int|false {} /** * Portable advisory file locking @@ -678,8 +655,7 @@ function fputcsv ($stream, array $fields, string $separator = ",", string $enclo *

    * @return bool true on success or false on failure. */ -function flock ($stream, int $operation, &$would_block): bool -{} +function flock($stream, int $operation, &$would_block): bool {} /** * Extracts all meta tag content attributes from a file and returns an array @@ -719,8 +695,7 @@ function flock ($stream, int $operation, &$would_block): bool *

    */ #[Pure] -function get_meta_tags (string $filename, bool $use_include_path = false): array|false -{} +function get_meta_tags(string $filename, bool $use_include_path = false): array|false {} /** * Sets write file buffering on the given stream @@ -737,8 +712,7 @@ function get_meta_tags (string $filename, bool $use_include_path = false): array * @return int 0 on success, or EOF if the request cannot be honored. * @see stream_set_read_buffer() */ -function stream_set_write_buffer ($stream, int $size): int -{} +function stream_set_write_buffer($stream, int $size): int {} /** * Sets read file buffering on the given stream @@ -755,8 +729,7 @@ function stream_set_write_buffer ($stream, int $size): int * @return int 0 on success, or EOF if the request cannot be honored. * @see stream_set_write_buffer() */ -function stream_set_read_buffer ($stream, int $size): int -{} +function stream_set_read_buffer($stream, int $size): int {} /** * Alias: @@ -772,8 +745,7 @@ function stream_set_read_buffer ($stream, int $size): int * This ensures that all writes with fwrite() are completed before other processes are allowed to write to that output stream. * @return int */ -function set_file_buffer ($stream, int $size): int -{} +function set_file_buffer($stream, int $size): int {} /** * Alias: @@ -791,8 +763,7 @@ function set_file_buffer ($stream, int $size): int * @see stream_set_blocking() */ #[Deprecated(replacement: "stream_set_blocking(%parametersList%)", since: 5.3)] -function set_socket_blocking ($socket, bool $mode): bool -{} +function set_socket_blocking($socket, bool $mode): bool {} /** * Set blocking/non-blocking mode on a stream @@ -812,8 +783,7 @@ function set_socket_blocking ($socket, bool $mode): bool *

    * @return bool true on success or false on failure. */ -function stream_set_blocking ($stream, bool $enable): bool -{} +function stream_set_blocking($stream, bool $enable): bool {} /** * Alias: @@ -834,8 +804,7 @@ function stream_set_blocking ($stream, bool $enable): bool *

    * @return bool true on success or false on failure. */ -function socket_set_blocking ($stream, bool $enable): bool -{} +function socket_set_blocking($stream, bool $enable): bool {} /** * Retrieves header/meta data from streams/file pointers @@ -913,8 +882,7 @@ function socket_set_blocking ($stream, bool $enable): bool "crypto" => "array", "mediatype" => "string", ])] -function stream_get_meta_data ($stream): array -{} +function stream_get_meta_data($stream): array {} /** * Gets line from stream resource up to a given delimiter @@ -934,8 +902,7 @@ function stream_get_meta_data ($stream): array * If an error occurs, returns false. *

    */ -function stream_get_line ($stream, int $length, string $ending): string|false -{} +function stream_get_line($stream, int $length, string $ending): string|false {} /** * Register a URL wrapper implemented as a PHP class @@ -957,8 +924,7 @@ function stream_get_line ($stream, int $length, string $ending): string|false * protocol already has a handler. *

    */ -function stream_wrapper_register (string $protocol, string $class, int $flags): bool -{} +function stream_wrapper_register(string $protocol, string $class, int $flags): bool {} /** * Alias: @@ -982,8 +948,7 @@ function stream_wrapper_register (string $protocol, string $class, int $flags): * protocol already has a handler. *

    */ -function stream_register_wrapper (string $protocol, string $class, int $flags = 0): bool -{} +function stream_register_wrapper(string $protocol, string $class, int $flags = 0): bool {} /** * Resolve filename against the include path according to the same rules as fopen()/include(). @@ -992,8 +957,7 @@ function stream_register_wrapper (string $protocol, string $class, int $flags = * @return string|false containing the resolved absolute filename, or FALSE on failure. * @since 5.3.2 */ -function stream_resolve_include_path (string $filename): string|false -{} +function stream_resolve_include_path(string $filename): string|false {} /** * Unregister a URL wrapper @@ -1002,8 +966,7 @@ function stream_resolve_include_path (string $filename): string|false *

    * @return bool true on success or false on failure. */ -function stream_wrapper_unregister (string $protocol): bool -{} +function stream_wrapper_unregister(string $protocol): bool {} /** * Restores a previously unregistered built-in wrapper @@ -1012,8 +975,7 @@ function stream_wrapper_unregister (string $protocol): bool *

    * @return bool true on success or false on failure. */ -function stream_wrapper_restore (string $protocol): bool -{} +function stream_wrapper_restore(string $protocol): bool {} /** * Retrieve list of registered streams @@ -1022,8 +984,7 @@ function stream_wrapper_restore (string $protocol): bool * available on the running system. */ #[Pure] -function stream_get_wrappers (): array -{} +function stream_get_wrappers(): array {} /** * Retrieve list of registered socket transports @@ -1031,8 +992,7 @@ function stream_get_wrappers (): array * @return array an indexed array of socket transports names. */ #[Pure] -function stream_get_transports (): array -{} +function stream_get_transports(): array {} /** * Checks if a stream is a local stream @@ -1044,8 +1004,7 @@ function stream_get_transports (): array * @since 5.2.4 */ #[Pure] -function stream_is_local ($stream): bool -{} +function stream_is_local($stream): bool {} /** * Fetches all the headers sent by the server in response to an HTTP request @@ -1063,8 +1022,7 @@ function stream_is_local ($stream): bool * failure. */ #[Pure] -function get_headers (string $url, bool $associative = false, $context): array|false -{} +function get_headers(string $url, bool $associative = false, $context): array|false {} /** * Set timeout period on a stream @@ -1080,8 +1038,7 @@ function get_headers (string $url, bool $associative = false, $context): array|f *

    * @return bool true on success or false on failure. */ -function stream_set_timeout ($stream, int $seconds, int $microseconds): bool -{} +function stream_set_timeout($stream, int $seconds, int $microseconds): bool {} /** * Alias: @@ -1099,8 +1056,7 @@ function stream_set_timeout ($stream, int $seconds, int $microseconds): bool *

    * @return bool true on success or false on failure. */ -function socket_set_timeout ($stream, int $seconds, int $microseconds = 0): bool -{} +function socket_set_timeout($stream, int $seconds, int $microseconds = 0): bool {} /** * Alias: @@ -1166,8 +1122,7 @@ function socket_set_timeout ($stream, int $seconds, int $microseconds = 0): bool * stream. *

    */ -function socket_get_status ($stream): array -{} +function socket_get_status($stream): array {} /** * Returns canonicalized absolute pathname @@ -1183,8 +1138,7 @@ function socket_get_status ($stream): array *

    */ #[Pure] -function realpath (string $path): string|false -{} +function realpath(string $path): string|false {} /** * Match filename against a pattern @@ -1242,6 +1196,4 @@ function realpath (string $path): string|false *

    * @return bool true if there is a match, false otherwise. */ -function fnmatch (string $pattern, string $filename, int $flags): bool -{} -?> +function fnmatch(string $pattern, string $filename, int $flags): bool {} diff --git a/standard/standard_7.php b/standard/standard_7.php index 4c9b3252a..d464a2c2b 100644 --- a/standard/standard_7.php +++ b/standard/standard_7.php @@ -47,8 +47,7 @@ * fwrite, fclose, and * feof). If the call fails, it will return false */ -function fsockopen (string $hostname, int $port = -1, &$error_code, &$error_message, ?float $timeout) -{} +function fsockopen(string $hostname, int $port = -1, &$error_code, &$error_message, ?float $timeout) {} /** * Open persistent Internet or Unix domain socket connection @@ -61,8 +60,7 @@ function fsockopen (string $hostname, int $port = -1, &$error_code, &$error_mess * @param float|null $timeout [optional] * @return resource|false */ -function pfsockopen (string $hostname, int $port = -1, &$error_code, &$error_message, ?float $timeout) -{} +function pfsockopen(string $hostname, int $port = -1, &$error_code, &$error_message, ?float $timeout) {} /** * Pack data into binary string @@ -170,8 +168,7 @@ function pfsockopen (string $hostname, int $port = -1, &$error_code, &$error_mes */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function pack (string $format, ...$values) -{} +function pack(string $format, ...$values) {} /** * Unpack data from binary string @@ -187,8 +184,7 @@ function pack (string $format, ...$values) * string or false if the format string contains errors */ #[Pure] -function unpack (string $format, string $string, int $offset = 0): array|false -{} +function unpack(string $format, string $string, int $offset = 0): array|false {} /** * Tells what the user's browser is capable of @@ -218,8 +214,7 @@ function unpack (string $format, string $string, int $offset = 0): array|false * reload, and check for the value. */ #[Pure] -function get_browser (?string $user_agent, bool $return_array = false): object|array|false -{} +function get_browser(?string $user_agent, bool $return_array = false): object|array|false {} /** * One-way string encryption (hashing) @@ -241,8 +236,7 @@ function get_browser (?string $user_agent, bool $return_array = false): object|a */ #[Pure] #[PhpStormStubsElementAvailable(to: '7.4')] -function crypt ($string, $salt = null): ?string -{} +function crypt($string, $salt = null): ?string {} /** * One-way string encryption (hashing) @@ -264,8 +258,7 @@ function crypt ($string, $salt = null): ?string */ #[Pure] #[PhpStormStubsElementAvailable('8.0')] -function crypt (string $string, string $salt): string -{} +function crypt(string $string, string $salt): string {} /** * Open directory handle @@ -291,8 +284,7 @@ function crypt (string $string, string $salt): string * '@' to the * front of the function name. */ -function opendir (string $directory, $context) -{} +function opendir(string $directory, $context) {} /** * Close directory handle @@ -305,7 +297,7 @@ function opendir (string $directory, $context) *

    * @return void */ -function closedir ($dir_handle): void {} +function closedir($dir_handle): void {} /** * Change directory @@ -315,8 +307,7 @@ function closedir ($dir_handle): void {} *

    * @return bool true on success or false on failure. */ -function chdir (string $directory): bool -{} +function chdir(string $directory): bool {} /** * Change the root directory @@ -326,8 +317,7 @@ function chdir (string $directory): bool *

    * @return bool true on success or false on failure. */ -function chroot (string $directory): bool -{} +function chroot(string $directory): bool {} /** * Gets the current working directory @@ -344,8 +334,7 @@ function chroot (string $directory): bool *

    */ #[Pure] -function getcwd (): string|false -{} +function getcwd(): string|false {} /** * Rewind directory handle @@ -358,7 +347,7 @@ function getcwd (): string|false *

    * @return void */ -function rewinddir ($dir_handle): void {} +function rewinddir($dir_handle): void {} /** * Read entry from directory handle @@ -371,8 +360,7 @@ function rewinddir ($dir_handle): void {} *

    * @return string|false the filename on success or false on failure. */ -function readdir ($dir_handle): string|false -{} +function readdir($dir_handle): string|false {} /** * Return an instance of the Directory class @@ -384,8 +372,7 @@ function readdir ($dir_handle): string|false * @return Directory|false an instance of Directory, or NULL with wrong * parameters, or FALSE in case of another error */ -function dir (string $directory, $context): Directory|false -{} +function dir(string $directory, $context): Directory|false {} /** * Alias of dir() @@ -395,8 +382,7 @@ function dir (string $directory, $context): Directory|false * @return Directory|false * @see dir() */ -function getdir(string $directory, $context = null): Directory|false -{} +function getdir(string $directory, $context = null): Directory|false {} /** * List files and directories inside the specified path @@ -419,8 +405,7 @@ function getdir(string $directory, $context = null): Directory|false * boolean false is returned, and an error of level * E_WARNING is generated. */ -function scandir (string $directory, int $sorting_order, $context): array|false -{} +function scandir(string $directory, int $sorting_order, $context): array|false {} /** * Find pathnames matching a pattern @@ -445,8 +430,7 @@ function scandir (string $directory, int $sorting_order, $context): array|false * error.

    */ #[Pure] -function glob (string $pattern, int $flags): array|false -{} +function glob(string $pattern, int $flags): array|false {} /** * Gets last access time of file @@ -458,8 +442,7 @@ function glob (string $pattern, int $flags): array|false * The time is returned as a Unix timestamp. */ #[Pure] -function fileatime (string $filename): int|false -{} +function fileatime(string $filename): int|false {} /** * Gets inode change time of file @@ -471,8 +454,7 @@ function fileatime (string $filename): int|false * The time is returned as a Unix timestamp. */ #[Pure] -function filectime (string $filename): int|false -{} +function filectime(string $filename): int|false {} /** * Gets file group @@ -486,8 +468,7 @@ function filectime (string $filename): int|false * Upon failure, false is returned. */ #[Pure] -function filegroup (string $filename): int|false -{} +function filegroup(string $filename): int|false {} /** * Gets file inode @@ -498,8 +479,7 @@ function filegroup (string $filename): int|false * @return int|false the inode number of the file, or false on failure. */ #[Pure] -function fileinode (string $filename): int|false -{} +function fileinode(string $filename): int|false {} /** * Gets file modification time @@ -512,8 +492,7 @@ function fileinode (string $filename): int|false * suitable for the date function. */ #[Pure] -function filemtime (string $filename): int|false -{} +function filemtime(string $filename): int|false {} /** * Gets file owner @@ -526,8 +505,7 @@ function filemtime (string $filename): int|false * posix_getpwuid to resolve it to a username. */ #[Pure] -function fileowner (string $filename): int|false -{} +function fileowner(string $filename): int|false {} /** * Gets file permissions @@ -538,8 +516,7 @@ function fileowner (string $filename): int|false * @return int|false the permissions on the file, or false on failure. */ #[Pure] -function fileperms (string $filename): int|false -{} +function fileperms(string $filename): int|false {} /** * Gets file size @@ -551,8 +528,7 @@ function fileperms (string $filename): int|false * of level E_WARNING) in case of an error. */ #[Pure] -function filesize (string $filename): int|false -{} +function filesize(string $filename): int|false {} /** * Gets file type @@ -569,8 +545,7 @@ function filesize (string $filename): int|false * or if the file type is unknown. */ #[Pure] -function filetype (string $filename): string|false -{} +function filetype(string $filename): string|false {} /** * Checks whether a file or directory exists @@ -599,8 +574,7 @@ function filetype (string $filename): string|false * The check is done using the real UID/GID instead of the effective one. */ #[Pure] -function file_exists (string $filename): bool -{} +function file_exists(string $filename): bool {} /** * Tells whether the filename is writable @@ -612,8 +586,7 @@ function file_exists (string $filename): bool * writable. */ #[Pure] -function is_writable (string $filename): bool -{} +function is_writable(string $filename): bool {} /** * Alias: @@ -626,8 +599,7 @@ function is_writable (string $filename): bool * writable. */ #[Pure] -function is_writeable (string $filename): bool -{} +function is_writeable(string $filename): bool {} /** * Tells whether a file or a directory exists and is readable @@ -639,8 +611,7 @@ function is_writeable (string $filename): bool * filename exists and is readable, false otherwise. */ #[Pure] -function is_readable (string $filename): bool -{} +function is_readable(string $filename): bool {} /** * Tells whether the filename is executable @@ -652,8 +623,7 @@ function is_readable (string $filename): bool * error. */ #[Pure] -function is_executable (string $filename): bool -{} +function is_executable(string $filename): bool {} /** * Tells whether the filename is a regular file @@ -665,8 +635,7 @@ function is_executable (string $filename): bool * otherwise. */ #[Pure] -function is_file (string $filename): bool -{} +function is_file(string $filename): bool {} /** * Tells whether the filename is a directory @@ -681,8 +650,7 @@ function is_file (string $filename): bool * otherwise. */ #[Pure] -function is_dir (string $filename): bool -{} +function is_dir(string $filename): bool {} /** * Tells whether the filename is a symbolic link @@ -694,8 +662,7 @@ function is_dir (string $filename): bool * otherwise. */ #[Pure] -function is_link (string $filename): bool -{} +function is_link(string $filename): bool {} /** * Gives information about a file @@ -787,8 +754,7 @@ function is_link (string $filename): bool * In case of error, stat returns false. */ #[Pure] -function stat (string $filename): array|false -{} +function stat(string $filename): array|false {} /** * Gives information about a file or symbolic link @@ -805,8 +771,7 @@ function stat (string $filename): array|false * file pointed to by the symbolic link. */ #[Pure] -function lstat (string $filename): array|false -{} +function lstat(string $filename): array|false {} /** * Changes file owner @@ -819,8 +784,7 @@ function lstat (string $filename): array|false *

    * @return bool true on success or false on failure. */ -function chown (string $filename, string|int $user): bool -{} +function chown(string $filename, string|int $user): bool {} /** * Changes file group @@ -833,8 +797,7 @@ function chown (string $filename, string|int $user): bool *

    * @return bool true on success or false on failure. */ -function chgrp (string $filename, string|int $group): bool -{} +function chgrp(string $filename, string|int $group): bool {} /** * Changes user ownership of symlink @@ -848,8 +811,7 @@ function chgrp (string $filename, string|int $group): bool * @return bool true on success or false on failure. * @since 5.1.2 */ -function lchown (string $filename, string|int $user): bool -{} +function lchown(string $filename, string|int $user): bool {} /** * Changes group ownership of symlink @@ -863,8 +825,7 @@ function lchown (string $filename, string|int $user): bool * @return bool true on success or false on failure. * @since 5.1.2 */ -function lchgrp (string $filename, string|int $group): bool -{} +function lchgrp(string $filename, string|int $group): bool {} /** * Changes file mode @@ -899,8 +860,7 @@ function lchgrp (string $filename, string|int $group): bool *

    * @return bool true on success or false on failure. */ -function chmod (string $filename, int $permissions): bool -{} +function chmod(string $filename, int $permissions): bool {} /** * Sets access and modification time of file @@ -919,8 +879,7 @@ function chmod (string $filename, int $permissions): bool *

    * @return bool true on success or false on failure. */ -function touch (string $filename, ?int $mtime, ?int $atime): bool -{} +function touch(string $filename, ?int $mtime, ?int $atime): bool {} /** * Clears file status cache @@ -934,7 +893,7 @@ function touch (string $filename, ?int $mtime, ?int $atime): bool *

    * @return void */ -function clearstatcache (bool $clear_realpath_cache = false, string $filename): void {} +function clearstatcache(bool $clear_realpath_cache = false, string $filename): void {} /** * Returns the total size of a filesystem or disk partition @@ -945,8 +904,7 @@ function clearstatcache (bool $clear_realpath_cache = false, string $filename): * @return float|false the total number of bytes as a float * or false on failure. */ -function disk_total_space (string $directory): float|false -{} +function disk_total_space(string $directory): float|false {} /** * Returns available space in directory @@ -963,8 +921,7 @@ function disk_total_space (string $directory): float|false * or false on failure. */ #[Pure] -function disk_free_space (string $directory): float|false -{} +function disk_free_space(string $directory): float|false {} /** * Alias of {@see disk_free_space} @@ -974,8 +931,7 @@ function disk_free_space (string $directory): float|false * @return float|false */ #[Pure] -function diskfreespace (string $directory): float|false -{} +function diskfreespace(string $directory): float|false {} /** * Send mail @@ -1063,8 +1019,7 @@ function diskfreespace (string $directory): float|false * it does NOT mean the mail will actually reach the intended destination. *

    */ -function mail (string $to, string $subject, string $message, array|string $additional_headers, string $additional_params): bool -{} +function mail(string $to, string $subject, string $message, array|string $additional_headers, string $additional_params): bool {} /** * Calculate the hash value needed by EZMLM @@ -1076,8 +1031,7 @@ function mail (string $to, string $subject, string $message, array|string $addit * @removed 8.0 */ #[Deprecated(since: '7.4')] -function ezmlm_hash (string $addr): int -{} +function ezmlm_hash(string $addr): int {} /** * Open connection to system logger @@ -1199,7 +1153,4 @@ function ezmlm_hash (string $addr): int *

    * @return bool true on success or false on failure. */ -function openlog (string $prefix, int $flags, int $facility): bool -{} - -?> +function openlog(string $prefix, int $flags, int $facility): bool {} diff --git a/standard/standard_8.php b/standard/standard_8.php index 0ccfe9566..3bf54865f 100644 --- a/standard/standard_8.php +++ b/standard/standard_8.php @@ -4,7 +4,6 @@ use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware; use JetBrains\PhpStorm\Pure; - /** * Generate a system log message * @link https://php.net/manual/en/function.syslog.php @@ -59,16 +58,14 @@ *

    * @return bool true on success or false on failure. */ -function syslog (int $priority, string $message): bool -{} +function syslog(int $priority, string $message): bool {} /** * Close connection to system logger * @link https://php.net/manual/en/function.closelog.php * @return bool true on success or false on failure. */ -function closelog (): bool -{} +function closelog(): bool {} /** * Registers a function that will be called when PHP starts sending output. @@ -78,8 +75,7 @@ function closelog (): bool * @param callable $callback Function called just before the headers are sent. * @return bool true on success or false on failure. */ -function header_register_callback ( callable $callback ): bool -{} +function header_register_callback(callable $callback): bool {} /** * Get the size of an image from a string. @@ -101,8 +97,7 @@ function header_register_callback ( callable $callback ): bool * @link https://secure.php.net/manual/en/function.getimagesizefromstring.php * @since 5.4 */ -function getimagesizefromstring (string $string , &$image_info): array|false -{} +function getimagesizefromstring(string $string, &$image_info): array|false {} /** * Set the stream chunk size. @@ -114,8 +109,7 @@ function getimagesizefromstring (string $string , &$image_info): array|false * @since 5.4 */ #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function stream_set_chunk_size ($stream , int $size) -{} +function stream_set_chunk_size($stream, int $size) {} /** * Initializes all syslog related variables @@ -124,15 +118,14 @@ function stream_set_chunk_size ($stream , int $size) * @removed 5.4 */ #[Deprecated(since: '5.3')] -function define_syslog_variables () {} +function define_syslog_variables() {} /** * Combined linear congruential generator * @link https://php.net/manual/en/function.lcg-value.php * @return float A pseudo random float value in the range of (0, 1) */ -function lcg_value (): float -{} +function lcg_value(): float {} /** * Calculate the metaphone key of a string @@ -148,8 +141,7 @@ function lcg_value (): float */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] -function metaphone (string $string, int $max_phonemes = 0): false|string -{} +function metaphone(string $string, int $max_phonemes = 0): false|string {} /** * Turn on output buffering @@ -216,22 +208,21 @@ function metaphone (string $string, int $max_phonemes = 0): false|string *

    * @return bool true on success or false on failure. */ -function ob_start ($callback, int $chunk_size, int $flags = PHP_OUTPUT_HANDLER_STDFLAGS): bool -{} +function ob_start($callback, int $chunk_size, int $flags = PHP_OUTPUT_HANDLER_STDFLAGS): bool {} /** * Flush (send) the output buffer * @link https://php.net/manual/en/function.ob-flush.php * @return bool */ -function ob_flush (): bool {} +function ob_flush(): bool {} /** * Clean (erase) the output buffer * @link https://php.net/manual/en/function.ob-clean.php * @return bool */ -function ob_clean (): bool {} +function ob_clean(): bool {} /** * Flush (send) the output buffer and turn off output buffering @@ -240,8 +231,7 @@ function ob_clean (): bool {} * function without an active buffer or that for some reason a buffer could * not be deleted (possible for special buffer). */ -function ob_end_flush (): bool -{} +function ob_end_flush(): bool {} /** * Clean (erase) the output buffer and turn off output buffering @@ -250,16 +240,14 @@ function ob_end_flush (): bool * function without an active buffer or that for some reason a buffer could * not be deleted (possible for special buffer). */ -function ob_end_clean (): bool -{} +function ob_end_clean(): bool {} /** * Flush the output buffer, return it as a string and turn off output buffering * @link https://php.net/manual/en/function.ob-get-flush.php * @return string|false the output buffer or false if no buffering is active. */ -function ob_get_flush (): string|false -{} +function ob_get_flush(): string|false {} /** * Get current buffer contents and delete current output buffer @@ -267,8 +255,7 @@ function ob_get_flush (): string|false * @return string|false the contents of the output buffer and end output buffering. * If output buffering isn't active then false is returned. */ -function ob_get_clean (): string|false -{} +function ob_get_clean(): string|false {} /** * Return the length of the output buffer @@ -276,8 +263,7 @@ function ob_get_clean (): string|false * @return int|false the length of the output buffer contents or false if no * buffering is active. */ -function ob_get_length (): int|false -{} +function ob_get_length(): int|false {} /** * Return the nesting level of the output buffering mechanism @@ -285,8 +271,7 @@ function ob_get_length (): int|false * @return int the level of nested output buffering handlers or zero if output * buffering is not active. */ -function ob_get_level (): int -{} +function ob_get_level(): int {} /** * Get status of output buffers @@ -357,8 +342,7 @@ function ob_get_level (): int * blocksize... * */ -function ob_get_status (bool $full_status = false): array -{} +function ob_get_status(bool $full_status = false): array {} /** * Return the contents of the output buffer @@ -366,8 +350,7 @@ function ob_get_status (bool $full_status = false): array * @return string|false This will return the contents of the output buffer or false, if output * buffering isn't active. */ -function ob_get_contents (): string|false -{} +function ob_get_contents(): string|false {} /** * Turn implicit flush on/off @@ -378,7 +361,7 @@ function ob_get_contents (): string|false *

    * @return void */ -function ob_implicit_flush (#[LanguageLevelTypeAware(["8.0" => "bool"], default: "int")] $enable = true): void {} +function ob_implicit_flush(#[LanguageLevelTypeAware(["8.0" => "bool"], default: "int")] $enable = true): void {} /** * List all output handlers in use @@ -389,8 +372,7 @@ function ob_implicit_flush (#[LanguageLevelTypeAware(["8.0" => "bool"], default: * ob_list_handlers will return "default output * handler". */ -function ob_list_handlers (): array -{} +function ob_list_handlers(): array {} /** * Sort an array by key @@ -405,8 +387,7 @@ function ob_list_handlers (): array *

    * @return bool true on success or false on failure. */ -function ksort (array &$array, int $flags): bool -{} +function ksort(array &$array, int $flags): bool {} /** * Sort an array by key in reverse order @@ -421,8 +402,7 @@ function ksort (array &$array, int $flags): bool *

    * @return bool true on success or false on failure. */ -function krsort (array &$array, int $flags): bool -{} +function krsort(array &$array, int $flags): bool {} /** * Sort an array using a "natural order" algorithm @@ -432,8 +412,7 @@ function krsort (array &$array, int $flags): bool *

    * @return bool true on success or false on failure. */ -function natsort (array &$array): bool -{} +function natsort(array &$array): bool {} /** * Sort an array using a case insensitive "natural order" algorithm @@ -443,8 +422,7 @@ function natsort (array &$array): bool *

    * @return bool true on success or false on failure. */ -function natcasesort (array &$array): bool -{} +function natcasesort(array &$array): bool {} /** * Sort an array and maintain index association @@ -459,8 +437,7 @@ function natcasesort (array &$array): bool *

    * @return bool true on success or false on failure. */ -function asort (array &$array, int $flags): bool -{} +function asort(array &$array, int $flags): bool {} /** * Sort an array in reverse order and maintain index association @@ -475,8 +452,7 @@ function asort (array &$array, int $flags): bool *

    * @return bool true on success or false on failure. */ -function arsort (array &$array, int $flags): bool -{} +function arsort(array &$array, int $flags): bool {} /** * Sort an array @@ -494,8 +470,7 @@ function arsort (array &$array, int $flags): bool * (don't change types)

    * @return bool true on success or false on failure. */ -function sort (array &$array, int $flags): bool -{} +function sort(array &$array, int $flags): bool {} /** * Sort an array in reverse order @@ -510,8 +485,7 @@ function sort (array &$array, int $flags): bool *

    * @return bool true on success or false on failure. */ -function rsort (array &$array, int $flags): bool -{} +function rsort(array &$array, int $flags): bool {} /** * Sort an array by values using a user-defined comparison function @@ -526,8 +500,7 @@ function rsort (array &$array, int $flags): bool *

    * @return bool true on success or false on failure. */ -function usort (array &$array, callable $callback): bool -{} +function usort(array &$array, callable $callback): bool {} /** * Sort an array with a user-defined comparison function and maintain index association @@ -541,8 +514,7 @@ function usort (array &$array, callable $callback): bool *

    * @return bool true on success or false on failure. */ -function uasort (array &$array, callable $callback): bool -{} +function uasort(array &$array, callable $callback): bool {} /** * Sort an array by keys using a user-defined comparison function @@ -563,8 +535,7 @@ function uasort (array &$array, callable $callback): bool *

    * @return bool true on success or false on failure. */ -function uksort (array &$array, callable $callback): bool -{} +function uksort(array &$array, callable $callback): bool {} /** * Shuffle an array @@ -574,8 +545,7 @@ function uksort (array &$array, callable $callback): bool *

    * @return bool true on success or false on failure. */ -function shuffle (array &$array): bool -{} +function shuffle(array &$array): bool {} /** * Apply a user function to every member of an array @@ -609,8 +579,7 @@ function shuffle (array &$array): bool *

    * @return bool true on success or false on failure. */ -function array_walk (object|array &$array, callable $callback, mixed $arg): bool -{} +function array_walk(object|array &$array, callable $callback, mixed $arg): bool {} /** * Apply a user function recursively to every member of an array @@ -638,8 +607,7 @@ function array_walk (object|array &$array, callable $callback, mixed $arg): bool *

    * @return bool true on success or false on failure. */ -function array_walk_recursive (object|array &$array, callable $callback, mixed $arg): bool -{} +function array_walk_recursive(object|array &$array, callable $callback, mixed $arg): bool {} /** * Counts all elements in an array, or something in an object. @@ -669,8 +637,7 @@ function array_walk_recursive (object|array &$array, callable $callback, mixed $ *

    */ #[Pure] -function count (Countable|array $value, int $mode = COUNT_NORMAL): int -{} +function count(Countable|array $value, int $mode = COUNT_NORMAL): int {} /** * Set the internal pointer of an array to its last element @@ -684,7 +651,7 @@ function count (Countable|array $value, int $mode = COUNT_NORMAL): int * @return mixed|false the value of the last element or false for empty array. * @meta */ -function end (object|array &$array): mixed {} +function end(object|array &$array): mixed {} /** * Rewind the internal array pointer @@ -697,7 +664,7 @@ function end (object|array &$array): mixed {} * elements. * @meta */ -function prev (object|array &$array): mixed {} +function prev(object|array &$array): mixed {} /** * Advance the internal array pointer of an array @@ -709,7 +676,7 @@ function prev (object|array &$array): mixed {} * internal array pointer, or false if there are no more elements. * @meta */ -function next (object|array &$array): mixed {} +function next(object|array &$array): mixed {} /** * Set the internal pointer of an array to its first element @@ -721,7 +688,7 @@ function next (object|array &$array): mixed {} * empty. * @meta */ -function reset (object|array &$array): mixed {} +function reset(object|array &$array): mixed {} /** * Return the current element in an array @@ -737,7 +704,7 @@ function reset (object|array &$array): mixed {} * @meta */ #[Pure] -function current (object|array $array): mixed {} +function current(object|array $array): mixed {} /** * Fetch a key from an array @@ -752,8 +719,7 @@ function current (object|array $array): mixed {} * empty, key returns null. */ #[Pure] -function key (object|array $array): string|int|null -{} +function key(object|array $array): string|int|null {} /** * Find lowest value @@ -764,8 +730,7 @@ function key (object|array $array): string|int|null * parameter values. */ #[Pure] -function min (mixed $value, mixed ...$values): mixed -{} +function min(mixed $value, mixed ...$values): mixed {} /** * Find highest value @@ -776,8 +741,7 @@ function min (mixed $value, mixed ...$values): mixed * parameter values, either within a arg array or two arguments. */ #[Pure] -function max (mixed $value, mixed ...$values): mixed -{} +function max(mixed $value, mixed ...$values): mixed {} /** * Checks if a value exists in an array @@ -802,8 +766,7 @@ function max (mixed $value, mixed ...$values): mixed * false otherwise. */ #[Pure] -function in_array (mixed $needle, array $haystack, bool $strict = false): bool -{} +function in_array(mixed $needle, array $haystack, bool $strict = false): bool {} /** * Searches the array for a given value and returns the first corresponding key if successful @@ -834,8 +797,7 @@ function in_array (mixed $needle, array $haystack, bool $strict = false): bool * search_value parameter instead. */ #[Pure] -function array_search (mixed $needle, array $haystack, bool $strict = false): string|int|false -{} +function array_search(mixed $needle, array $haystack, bool $strict = false): string|int|false {} /** * Import variables into the current symbol table from an array @@ -863,8 +825,7 @@ function array_search (mixed $needle, array $haystack, bool $strict = false): st * @return int the number of variables successfully imported into the symbol * table. */ -function extract (array &$array, int $flags, string $prefix): int -{} +function extract(array &$array, int $flags, string $prefix): int {} /** * Create array containing variables and their values @@ -880,8 +841,7 @@ function extract (array &$array, int $flags, string $prefix): int * @return array the output array with all the variables added to it. */ #[Pure] -function compact (mixed $var_name, ...$var_names): array -{} +function compact(mixed $var_name, ...$var_names): array {} /** * Fill an array with values @@ -899,8 +859,7 @@ function compact (mixed $var_name, ...$var_names): array * @return array the filled array */ #[Pure] -function array_fill (int $start_index, int $count, mixed $value): array -{} +function array_fill(int $start_index, int $count, mixed $value): array {} /** * Fill an array with values, specifying keys @@ -915,8 +874,7 @@ function array_fill (int $start_index, int $count, mixed $value): array * @return array the filled array */ #[Pure] -function array_fill_keys (array $keys, mixed $value): array -{} +function array_fill_keys(array $keys, mixed $value): array {} /** * Create an array containing a range of elements @@ -937,8 +895,7 @@ function array_fill_keys (array $keys, mixed $value): array * end, inclusive. */ #[Pure] -function range ($start, $end, int|float $step = 1): array -{} +function range($start, $end, int|float $step = 1): array {} /** * Sort multiple or multi-dimensional arrays @@ -953,9 +910,7 @@ function range ($start, $end, int|float $step = 1): array *

    * @return bool true on success or false on failure. */ -function array_multisort (&$array, &...$rest): bool -{} - +function array_multisort(&$array, &...$rest): bool {} /** * Push elements onto the end of array @@ -970,8 +925,7 @@ function array_multisort (&$array, &...$rest): bool *

    * @return int the number of elements in the array. */ -function array_push (array &$array, ...$values): int -{} +function array_push(array &$array, ...$values): int {} /** * Pop the element off the end of array @@ -984,7 +938,7 @@ function array_push (array &$array, ...$values): int * null will be returned. * @meta */ -function array_pop (array &$array): mixed {} +function array_pop(array &$array): mixed {} /** * Shift an element off the beginning of array @@ -996,7 +950,7 @@ function array_pop (array &$array): mixed {} * empty or is not an array. * @meta */ -function array_shift (array &$array): mixed {} +function array_shift(array &$array): mixed {} /** * Prepend elements to the beginning of an array @@ -1011,8 +965,7 @@ function array_shift (array &$array): mixed {} *

    * @return int the number of elements in the array. */ -function array_unshift (array &$array, ...$values): int -{} +function array_unshift(array &$array, ...$values): int {} /** * Remove a portion of the array and replace it with something else @@ -1058,8 +1011,7 @@ function array_unshift (array &$array, ...$values): int *

    * @return array the array consisting of the extracted elements. */ -function array_splice (array &$array, int $offset, ?int $length, mixed $replacement): array -{} +function array_splice(array &$array, int $offset, ?int $length, mixed $replacement): array {} /** * Extract a slice of the array @@ -1091,8 +1043,7 @@ function array_splice (array &$array, int $offset, ?int $length, mixed $replacem * @meta */ #[Pure] -function array_slice (array $array, int $offset, ?int $length, bool $preserve_keys = false): array -{} +function array_slice(array $array, int $offset, ?int $length, bool $preserve_keys = false): array {} /** * Merges the elements of one or more arrays together (if the input arrays have the same string keys, then the later value for that key will overwrite the previous one; if the arrays contain numeric keys, the later value will be appended) @@ -1105,5 +1056,4 @@ function array_slice (array $array, int $offset, ?int $length, bool $preserve_ke * @meta */ #[Pure] -function array_merge (array ...$arrays): array -{} +function array_merge(array ...$arrays): array {} diff --git a/standard/standard_9.php b/standard/standard_9.php index 95338ed35..77d649ccd 100644 --- a/standard/standard_9.php +++ b/standard/standard_9.php @@ -8,13 +8,12 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable; use JetBrains\PhpStorm\Pure; -define ("ARRAY_FILTER_USE_BOTH", 1); +define("ARRAY_FILTER_USE_BOTH", 1); /** * @since 5.6 */ -define ("ARRAY_FILTER_USE_KEY", 2); - +define("ARRAY_FILTER_USE_KEY", 2); /** * Merge two or more arrays recursively @@ -23,9 +22,7 @@ * @return array An array of values resulted from merging the arguments together. */ #[Pure] -function array_merge_recursive(array ...$arrays): array -{ } - +function array_merge_recursive(array ...$arrays): array {} /** * array_replace() replaces the values of the first array with the same values from all the following arrays. @@ -44,8 +41,7 @@ function array_merge_recursive(array ...$arrays): array * @return array or null if an error occurs. */ #[Pure] -function array_replace(array $array, array ...$replacements): array -{ } +function array_replace(array $array, array ...$replacements): array {} /** * Replaces elements from passed arrays into the first array recursively @@ -59,8 +55,7 @@ function array_replace(array $array, array ...$replacements): array * @return array an array, or null if an error occurs. */ #[Pure] -function array_replace_recursive(array $array, array ...$replacements): array -{ } +function array_replace_recursive(array $array, array ...$replacements): array {} /** * Return all the keys or a subset of the keys of an array @@ -77,8 +72,7 @@ function array_replace_recursive(array $array, array ...$replacements): array * @return int[]|string[] an array of all the keys in input. */ #[Pure] -function array_keys(array $array, mixed $filter_value, bool $strict = false): array -{ } +function array_keys(array $array, mixed $filter_value, bool $strict = false): array {} /** * Return all the values of an array @@ -90,7 +84,7 @@ function array_keys(array $array, mixed $filter_value, bool $strict = false): ar * @meta */ #[Pure] -function array_values(array $array): array { } +function array_values(array $array): array {} /** * Counts all the values of an array @@ -102,8 +96,7 @@ function array_values(array $array): array { } * keys and their count as value. */ #[Pure] -function array_count_values(array $array): array -{ } +function array_count_values(array $array): array {} /** * (PHP 5 >=5.5.0)
    @@ -116,8 +109,7 @@ function array_count_values(array $array): array * @since 5.5 */ #[Pure] -function array_column(array $array, string|int|null $column_key, string|int|null $index_key = null): array -{ } +function array_column(array $array, string|int|null $column_key, string|int|null $index_key = null): array {} /** * Return an array with elements in reverse order @@ -132,7 +124,7 @@ function array_column(array $array, string|int|null $column_key, string|int|null * @meta */ #[Pure] -function array_reverse(array $array, bool $preserve_keys = false): array { } +function array_reverse(array $array, bool $preserve_keys = false): array {} /** * Iteratively reduce the array to a single value using a callback function @@ -164,7 +156,7 @@ function array_reverse(array $array, bool $preserve_keys = false): array { } *

    * @meta */ -function array_reduce(array $array, callable $callback, mixed $initial): mixed { } +function array_reduce(array $array, callable $callback, mixed $initial): mixed {} /** * Pad array to the specified length with a value @@ -187,8 +179,7 @@ function array_reduce(array $array, callable $callback, mixed $initial): mixed { * the length of the input then no padding takes place. */ #[Pure] -function array_pad(array $array, int $length, mixed $value): array -{ } +function array_pad(array $array, int $length, mixed $value): array {} /** * Exchanges all keys with their associated values in an array @@ -199,8 +190,7 @@ function array_pad(array $array, int $length, mixed $value): array * @return int[]|string[] Returns the flipped array. */ #[Pure] -function array_flip(array $array): array -{ } +function array_flip(array $array): array {} /** * Changes the case of all keys in an arra @@ -216,7 +206,7 @@ function array_flip(array $array): array * @meta */ #[Pure] -function array_change_key_case(array $array, int $case): array { } +function array_change_key_case(array $array, int $case): array {} /** * Pick one or more random keys out of an array @@ -233,8 +223,7 @@ function array_change_key_case(array $array, int $case): array { } * random keys as well as values out of the array. */ #[Pure] -function array_rand(array $array, int $num = 1): array|string|int -{ } +function array_rand(array $array, int $num = 1): array|string|int {} /** * Removes duplicate values from an array @@ -268,7 +257,7 @@ function array_rand(array $array, int $num = 1): array|string|int * @meta */ #[Pure] -function array_unique(array $array, int $flags = SORT_STRING): array { } +function array_unique(array $array, int $flags = SORT_STRING): array {} /** * Computes the intersection of arrays @@ -285,7 +274,7 @@ function array_unique(array $array, int $flags = SORT_STRING): array { } */ #[Pure] #[PhpStormStubsElementAvailable('8.0')] -function array_intersect(array $array, array ...$arrays): array { } +function array_intersect(array $array, array ...$arrays): array {} /** * Computes the intersection of arrays @@ -303,7 +292,7 @@ function array_intersect(array $array, array ...$arrays): array { } */ #[Pure] #[PhpStormStubsElementAvailable(to: '7.4')] -function array_intersect(array $array1, array $array2, array ...$_): array { } +function array_intersect(array $array1, array $array2, array ...$_): array {} /** * Computes the intersection of arrays using keys for comparison @@ -321,7 +310,7 @@ function array_intersect(array $array1, array $array2, array ...$_): array { } * @meta */ #[Pure] -function array_intersect_key(array $array1, array $array2, array ...$_): array { } +function array_intersect_key(array $array1, array $array2, array ...$_): array {} /** * Computes the intersection of arrays using a callback function on the keys for comparison @@ -340,7 +329,7 @@ function array_intersect_key(array $array1, array $array2, array ...$_): array { * in all the arguments. * @meta */ -function array_intersect_ukey(array $array1, array $array2, array $_ = null, callable $key_compare_func): array { } +function array_intersect_ukey(array $array1, array $array2, array $_ = null, callable $key_compare_func): array {} /** * Computes the intersection of arrays, compares data by a callback function @@ -365,7 +354,7 @@ function array_intersect_ukey(array $array1, array $array2, array $_ = null, cal * that are present in all the arguments. * @meta */ -function array_uintersect(array $array1, array $array2, array $_ = null, callable $data_compare_func): array { } +function array_uintersect(array $array1, array $array2, array $_ = null, callable $data_compare_func): array {} /** * Computes the intersection of arrays with additional index check @@ -382,7 +371,7 @@ function array_uintersect(array $array1, array $array2, array $_ = null, callabl * @meta */ #[Pure] -function array_intersect_assoc(array $array1, array $array2, array $_ = null): array { } +function array_intersect_assoc(array $array1, array $array2, array $_ = null): array {} /** * Computes the intersection of arrays with additional index check, compares data by a callback function @@ -405,7 +394,7 @@ function array_intersect_assoc(array $array1, array $array2, array $_ = null): a * array1 that are present in all the arguments. * @meta */ -function array_uintersect_assoc(array $array1, array $array2, array $_ = null, callable $data_compare_func): array { } +function array_uintersect_assoc(array $array1, array $array2, array $_ = null, callable $data_compare_func): array {} /** * Computes the intersection of arrays with additional index check, compares indexes by a callback function @@ -424,7 +413,7 @@ function array_uintersect_assoc(array $array1, array $array2, array $_ = null, c * in all of the arguments. * @meta */ -function array_intersect_uassoc(array $array1, array $array2, array $_ = null, callable $key_compare_func): array { } +function array_intersect_uassoc(array $array1, array $array2, array $_ = null, callable $key_compare_func): array {} /** * Computes the intersection of arrays with additional index check, compares data and indexes by separate callback functions @@ -451,7 +440,7 @@ function array_intersect_uassoc(array $array1, array $array2, array $_ = null, c * @meta */ #[Pure] -function array_uintersect_uassoc(array $array1, array $array2, array $_ = null, callable $data_compare_func, callable $key_compare_func): array { } +function array_uintersect_uassoc(array $array1, array $array2, array $_ = null, callable $data_compare_func, callable $key_compare_func): array {} /** * Computes the difference of arrays @@ -468,7 +457,7 @@ function array_uintersect_uassoc(array $array1, array $array2, array $_ = null, */ #[Pure] #[PhpStormStubsElementAvailable('8.0')] -function array_diff(array $array, array ...$excludes): array { } +function array_diff(array $array, array ...$excludes): array {} /** * Computes the difference of arrays @@ -486,7 +475,7 @@ function array_diff(array $array, array ...$excludes): array { } */ #[Pure] #[PhpStormStubsElementAvailable(to: '7.4')] -function array_diff(array $array1, array $array2, array ...$_): array { } +function array_diff(array $array1, array $array2, array ...$_): array {} /** * Computes the difference of arrays using keys for comparison @@ -504,7 +493,7 @@ function array_diff(array $array1, array $array2, array ...$_): array { } * @meta */ #[Pure] -function array_diff_key(array $array1, array $array2, array ...$_): array { } +function array_diff_key(array $array1, array $array2, array ...$_): array {} /** * Computes the difference of arrays using a callback function on the keys for comparison @@ -526,7 +515,7 @@ function array_diff_key(array $array1, array $array2, array ...$_): array { } * array1 that are not present in any of the other arrays. * @meta */ -function array_diff_ukey(array $array1, array $array2, array $_ = null, callable $key_compare_func): array { } +function array_diff_ukey(array $array1, array $array2, array $_ = null, callable $key_compare_func): array {} /** * Computes the difference of arrays by using a callback function for data comparison @@ -551,7 +540,7 @@ function array_diff_ukey(array $array1, array $array2, array $_ = null, callable * that are not present in any of the other arguments. * @meta */ -function array_udiff(array $array1, array $array2, array $_ = null, callable $data_compare_func): array { } +function array_udiff(array $array1, array $array2, array $_ = null, callable $data_compare_func): array {} /** * Computes the difference of arrays with additional index check @@ -568,7 +557,7 @@ function array_udiff(array $array1, array $array2, array $_ = null, callable $da * @meta */ #[Pure] -function array_diff_assoc(array $array1, array $array2, array ...$_): array { } +function array_diff_assoc(array $array1, array $array2, array ...$_): array {} /** * Computes the difference of arrays with additional index check, compares data by a callback function @@ -600,7 +589,7 @@ function array_diff_assoc(array $array1, array $array2, array ...$_): array { } * comparison. * @meta */ -function array_udiff_assoc(array $array1, array $array2, array $_ = null, callable $data_compare_func): array { } +function array_udiff_assoc(array $array1, array $array2, array $_ = null, callable $data_compare_func): array {} /** * Computes the difference of arrays with additional index check which is performed by a user supplied callback function @@ -622,7 +611,7 @@ function array_udiff_assoc(array $array1, array $array2, array $_ = null, callab * array1 that are not present in any of the other arrays. * @meta */ -function array_diff_uassoc(array $array1, array $array2, array $_ = null, callable $key_compare_func): array { } +function array_diff_uassoc(array $array1, array $array2, array $_ = null, callable $key_compare_func): array {} /** * Computes the difference of arrays with additional index check, compares data and indexes by a callback function @@ -661,7 +650,7 @@ function array_diff_uassoc(array $array1, array $array2, array $_ = null, callab * arguments. * @meta */ -function array_udiff_uassoc(array $array1, array $array2, array $_ = null, callable $data_compare_func, callable $key_compare_func): array { } +function array_udiff_uassoc(array $array1, array $array2, array $_ = null, callable $data_compare_func, callable $key_compare_func): array {} /** * Calculate the sum of values in an array @@ -672,8 +661,7 @@ function array_udiff_uassoc(array $array1, array $array2, array $_ = null, calla * @return int|float the sum of values as an integer or float. */ #[Pure] -function array_sum(array $array): int|float -{ } +function array_sum(array $array): int|float {} /** * Calculate the product of values in an array @@ -684,8 +672,7 @@ function array_sum(array $array): int|float * @return int|float the product as an integer or float. */ #[Pure] -function array_product(array $array): int|float -{ } +function array_product(array $array): int|float {} /** * Iterates over each value in the array @@ -721,7 +708,7 @@ function array_product(array $array): int|float * @return array the filtered array. * @meta */ -function array_filter(array $array, ?callable $callback, int $mode = 0): array { } +function array_filter(array $array, ?callable $callback, int $mode = 0): array {} /** * Applies the callback to the elements of the given arrays @@ -737,7 +724,7 @@ function array_filter(array $array, ?callable $callback, int $mode = 0): array { * after applying the callback function to each one. * @meta */ -function array_map(callable $callback, array $array, array ...$arrays): array { } +function array_map(callable $callback, array $array, array ...$arrays): array {} /** * Split an array into chunks @@ -756,8 +743,7 @@ function array_map(callable $callback, array $array, array ...$arrays): array { * with each dimension containing size elements. */ #[Pure] -function array_chunk(array $array, int $length, bool $preserve_keys = false): array -{ } +function array_chunk(array $array, int $length, bool $preserve_keys = false): array {} /** * Creates an array by using one array for keys and another for its values @@ -775,7 +761,7 @@ function array_chunk(array $array, int $length, bool $preserve_keys = false): ar */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] -function array_combine(array $keys, array $values) { } +function array_combine(array $keys, array $values) {} /** * Checks if the given key or index exists in the array @@ -789,8 +775,7 @@ function array_combine(array $keys, array $values) { } * @return bool true on success or false on failure. */ #[Pure] -function array_key_exists($key, #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|ArrayObject")] $array): bool -{ } +function array_key_exists($key, #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|ArrayObject")] $array): bool {} /** * Gets the first key of an array @@ -803,8 +788,7 @@ function array_key_exists($key, #[LanguageLevelTypeAware(["8.0" => "array"], def * @since 7.3 */ #[Pure] -function array_key_first(array $array): string|int|null -{ } +function array_key_first(array $array): string|int|null {} /** * Gets the last key of an array @@ -817,8 +801,7 @@ function array_key_first(array $array): string|int|null * @since 7.3 */ #[Pure] -function array_key_last(array $array): string|int|null -{ } +function array_key_last(array $array): string|int|null {} /** * Alias: @@ -828,8 +811,7 @@ function array_key_last(array $array): string|int|null * @return mixed */ #[Pure] -function pos(object|array $array): mixed -{ } +function pos(object|array $array): mixed {} /** * Alias: @@ -840,8 +822,7 @@ function pos(object|array $array): mixed * @return int */ #[Pure] -function sizeof(Countable|array $value, int $mode = COUNT_NORMAL): int -{ } +function sizeof(Countable|array $value, int $mode = COUNT_NORMAL): int {} /** * Checks if the given key or index exists in the array. The name of this function is array_key_exists() in PHP > 4.0.6. @@ -855,8 +836,7 @@ function sizeof(Countable|array $value, int $mode = COUNT_NORMAL): int * @return bool true on success or false on failure. */ #[Pure] -function key_exists($key, array $array): bool -{ } +function key_exists($key, array $array): bool {} /** * Checks if assertion is FALSE @@ -872,17 +852,14 @@ function key_exists($key, array $array): bool *

    An optional description that will be included in the failure message if the assertion fails.

    * @return bool false if the assertion is false, true otherwise. */ -function assert(mixed $assertion, $description = ''): bool -{ } +function assert(mixed $assertion, $description = ''): bool {} /** * AssertionError is thrown when an assertion made via {@see assert()} fails. * @link https://php.net/manual/en/class.assertionerror.php * @since 7.0 */ -class AssertionError extends Error { - -} +class AssertionError extends Error {} /** * Set/get the various assert flags @@ -936,8 +913,7 @@ class AssertionError extends Error { *

    * @return object|array|string|int|null The original setting of any option. */ -function assert_options(int $option, mixed $value): object|array|string|int|null -{ } +function assert_options(int $option, mixed $value): object|array|string|int|null {} /** * Compares two "PHP-standardized" version number strings @@ -973,8 +949,7 @@ function assert_options(int $option, mixed $value): object|array|string|int|null * function will return true if the relationship is the one specified * by the operator, false otherwise. */ -function version_compare(string $version1, string $version2, ?string $operator): int|bool -{ } +function version_compare(string $version1, string $version2, ?string $operator): int|bool {} /** * Convert a pathname and a project identifier to a System V IPC key @@ -989,8 +964,7 @@ function version_compare(string $version1, string $version2, ?string $operator): * -1 is returned. */ #[Pure] -function ftok(string $filename, string $project_id): int -{ } +function ftok(string $filename, string $project_id): int {} /** * Perform the rot13 transform on a string @@ -1001,8 +975,7 @@ function ftok(string $filename, string $project_id): int * @return string the ROT13 version of the given string. */ #[Pure] -function str_rot13(string $string): string -{ } +function str_rot13(string $string): string {} /** * Retrieve list of registered filters @@ -1011,8 +984,7 @@ function str_rot13(string $string): string * available. */ #[Pure] -function stream_get_filters(): array -{ } +function stream_get_filters(): array {} /** * Check if a stream is a TTY @@ -1022,8 +994,7 @@ function stream_get_filters(): array * @since 7.2 */ #[Pure] -function stream_isatty($stream): bool -{} +function stream_isatty($stream): bool {} /** * Register a user defined stream filter @@ -1139,8 +1110,7 @@ function stream_isatty($stream): bool * filtername is already defined. *

    */ -function stream_filter_register(string $filter_name, string $class): bool -{ } +function stream_filter_register(string $filter_name, string $class): bool {} /** * Return a bucket object from the brigade for operating on @@ -1148,8 +1118,7 @@ function stream_filter_register(string $filter_name, string $class): bool * @param resource $brigade * @return object|null */ -function stream_bucket_make_writeable($brigade): ?object -{ } +function stream_bucket_make_writeable($brigade): ?object {} /** * Prepend bucket to brigade @@ -1158,7 +1127,7 @@ function stream_bucket_make_writeable($brigade): ?object * @param object $bucket * @return void */ -function stream_bucket_prepend($brigade, object $bucket): void { } +function stream_bucket_prepend($brigade, object $bucket): void {} /** * Append bucket to brigade @@ -1167,7 +1136,7 @@ function stream_bucket_prepend($brigade, object $bucket): void { } * @param object $bucket * @return void */ -function stream_bucket_append($brigade, object $bucket): void { } +function stream_bucket_append($brigade, object $bucket): void {} /** * Create a new bucket for use on the current stream @@ -1176,8 +1145,7 @@ function stream_bucket_append($brigade, object $bucket): void { } * @param string $buffer * @return object */ -function stream_bucket_new($stream, string $buffer): object -{ } +function stream_bucket_new($stream, string $buffer): object {} /** * Add URL rewriter values @@ -1190,8 +1158,7 @@ function stream_bucket_new($stream, string $buffer): object *

    * @return bool true on success or false on failure. */ -function output_add_rewrite_var(string $name, string $value): bool -{ } +function output_add_rewrite_var(string $name, string $value): bool {} /** * Reset URL rewriter values @@ -1222,8 +1189,7 @@ function output_add_rewrite_var(string $name, string $value): bool * @link https://php.net/manual/en/function.output-reset-rewrite-vars.php * @return bool true on success or false on failure. */ -function output_reset_rewrite_vars(): bool -{ } +function output_reset_rewrite_vars(): bool {} /** * Returns directory path used for temporary files @@ -1231,8 +1197,7 @@ function output_reset_rewrite_vars(): bool * @return string the path of the temporary directory. * @since 5.2.1 */ -function sys_get_temp_dir(): string -{ } +function sys_get_temp_dir(): string {} /** * Get the contents of the realpath cache. @@ -1244,8 +1209,7 @@ function sys_get_temp_dir(): string * @since 5.3.2 */ #[Pure] -function realpath_cache_get(): array -{ } +function realpath_cache_get(): array {} /** * Get the amount of memory used by the realpath cache. @@ -1254,8 +1218,7 @@ function realpath_cache_get(): array * @since 5.3.2 */ #[Pure] -function realpath_cache_size(): int -{ } +function realpath_cache_size(): int {} /** * It returns the same result as (array) $object, with the @@ -1265,8 +1228,7 @@ function realpath_cache_size(): int * @return array returns the mangled object properties * @since 7.4 */ -function get_mangled_object_vars(object $object): array -{} +function get_mangled_object_vars(object $object): array {} /** * Get the type or object name of a variable diff --git a/standard/standard_defines.php b/standard/standard_defines.php index 3e154bc9c..87e93cbc8 100644 --- a/standard/standard_defines.php +++ b/standard/standard_defines.php @@ -2,187 +2,187 @@ // Start of standard v.5.3.1-0.dotdeb.1 -define ('CONNECTION_ABORTED', 1); -define ('CONNECTION_NORMAL', 0); -define ('CONNECTION_TIMEOUT', 2); -define ('INI_USER', 1); -define ('INI_PERDIR', 2); -define ('INI_SYSTEM', 4); -define ('INI_ALL', 7); +define('CONNECTION_ABORTED', 1); +define('CONNECTION_NORMAL', 0); +define('CONNECTION_TIMEOUT', 2); +define('INI_USER', 1); +define('INI_PERDIR', 2); +define('INI_SYSTEM', 4); +define('INI_ALL', 7); /** * Normal INI scanner mode * @link https://php.net/manual/en/filesystem.constants.php */ -define ('INI_SCANNER_NORMAL', 0); +define('INI_SCANNER_NORMAL', 0); /** * Typed INI scanner mode * @since 5.6.1 * @link https://php.net/manual/en/function.parse-ini-file.php */ -define ('INI_SCANNER_TYPED', 2); +define('INI_SCANNER_TYPED', 2); /** * Raw INI scanner mode * @link https://php.net/manual/en/filesystem.constants.php */ -define ('INI_SCANNER_RAW', 1); +define('INI_SCANNER_RAW', 1); -define ('PHP_URL_SCHEME', 0); -define ('PHP_URL_HOST', 1); -define ('PHP_URL_PORT', 2); -define ('PHP_URL_USER', 3); -define ('PHP_URL_PASS', 4); -define ('PHP_URL_PATH', 5); -define ('PHP_URL_QUERY', 6); -define ('PHP_URL_FRAGMENT', 7); +define('PHP_URL_SCHEME', 0); +define('PHP_URL_HOST', 1); +define('PHP_URL_PORT', 2); +define('PHP_URL_USER', 3); +define('PHP_URL_PASS', 4); +define('PHP_URL_PATH', 5); +define('PHP_URL_QUERY', 6); +define('PHP_URL_FRAGMENT', 7); /** * e constant */ -define ('M_E', 2.718281828459); +define('M_E', 2.718281828459); /** * {@link log}2e constant */ -define ('M_LOG2E', 1.442695040889); +define('M_LOG2E', 1.442695040889); /** * {@link log}10e constant */ -define ('M_LOG10E', 0.43429448190325); +define('M_LOG10E', 0.43429448190325); /** * {@link log}e2 constant */ -define ('M_LN2', 0.69314718055995); +define('M_LN2', 0.69314718055995); /** * {@link log}e10 constant */ -define ('M_LN10', 2.302585092994); +define('M_LN10', 2.302585092994); /** * π constant */ -define ('M_PI', 3.1415926535898); +define('M_PI', 3.1415926535898); /** * π/2 constant */ -define ('M_PI_2', 1.5707963267949); +define('M_PI_2', 1.5707963267949); /** * π/4 constant */ -define ('M_PI_4', 0.78539816339745); +define('M_PI_4', 0.78539816339745); /** * 1/π constant */ -define ('M_1_PI', 0.31830988618379); +define('M_1_PI', 0.31830988618379); /** * 2/π constant */ -define ('M_2_PI', 0.63661977236758); +define('M_2_PI', 0.63661977236758); /** * {@link sqrt}(π) constant */ -define ('M_SQRTPI', 1.7724538509055); +define('M_SQRTPI', 1.7724538509055); /** * 2/{@link sqrt}(π) constant */ -define ('M_2_SQRTPI', 1.1283791670955); +define('M_2_SQRTPI', 1.1283791670955); /** * {@link log}eπ constant */ -define ('M_LNPI', 1.1447298858494); +define('M_LNPI', 1.1447298858494); /** * Euler constant */ -define ('M_EULER', 0.57721566490153); +define('M_EULER', 0.57721566490153); /** * {@link sqrt}(2) constant */ -define ('M_SQRT2', 1.4142135623731); +define('M_SQRT2', 1.4142135623731); /** * 1/{@link sqrt}(2) constant */ -define ('M_SQRT1_2', 0.70710678118655); +define('M_SQRT1_2', 0.70710678118655); /** * {@link sqrt}(3) constant */ -define ('M_SQRT3', 1.7320508075689); +define('M_SQRT3', 1.7320508075689); /** * The infinite */ -define ('INF', INF); +define('INF', INF); /** * Not A Number */ -define ('NAN', NAN); +define('NAN', NAN); /** * Round halves up * @link https://php.net/manual/en/math.constants.php */ -define ('PHP_ROUND_HALF_UP', 1); +define('PHP_ROUND_HALF_UP', 1); /** * Round halves down * @link https://php.net/manual/en/math.constants.php */ -define ('PHP_ROUND_HALF_DOWN', 2); +define('PHP_ROUND_HALF_DOWN', 2); /** * Round halves to even numbers * @link https://php.net/manual/en/math.constants.php */ -define ('PHP_ROUND_HALF_EVEN', 3); +define('PHP_ROUND_HALF_EVEN', 3); /** * Round halves to odd numbers * @link https://php.net/manual/en/math.constants.php */ -define ('PHP_ROUND_HALF_ODD', 4); -define ('INFO_GENERAL', 1); +define('PHP_ROUND_HALF_ODD', 4); +define('INFO_GENERAL', 1); /** * PHP Credits. See also phpcredits. * @link https://php.net/manual/en/info.constants.php */ -define ('INFO_CREDITS', 2); +define('INFO_CREDITS', 2); /** * Current Local and Main values for PHP directives. See * also ini_get. * @link https://php.net/manual/en/info.constants.php */ -define ('INFO_CONFIGURATION', 4); +define('INFO_CONFIGURATION', 4); /** * Loaded modules and their respective settings. * @link https://php.net/manual/en/info.constants.php */ -define ('INFO_MODULES', 8); +define('INFO_MODULES', 8); /** * Environment Variable information that's also available in * $_ENV. * @link https://php.net/manual/en/info.constants.php */ -define ('INFO_ENVIRONMENT', 16); +define('INFO_ENVIRONMENT', 16); /** * Shows all @@ -190,45 +190,45 @@ * POST, Cookie, Server). * @link https://php.net/manual/en/info.constants.php */ -define ('INFO_VARIABLES', 32); +define('INFO_VARIABLES', 32); /** * PHP License information. See also the license faq. * @link https://php.net/manual/en/info.constants.php */ -define ('INFO_LICENSE', 64); -define ('INFO_ALL', 4294967295); +define('INFO_LICENSE', 64); +define('INFO_ALL', 4294967295); /** * A list of the core developers * @link https://php.net/manual/en/info.constants.php */ -define ('CREDITS_GROUP', 1); +define('CREDITS_GROUP', 1); /** * General credits: Language design and concept, PHP * authors and SAPI module. * @link https://php.net/manual/en/info.constants.php */ -define ('CREDITS_GENERAL', 2); +define('CREDITS_GENERAL', 2); /** * A list of the server API modules for PHP, and their authors. * @link https://php.net/manual/en/info.constants.php */ -define ('CREDITS_SAPI', 4); +define('CREDITS_SAPI', 4); /** * A list of the extension modules for PHP, and their authors. * @link https://php.net/manual/en/info.constants.php */ -define ('CREDITS_MODULES', 8); +define('CREDITS_MODULES', 8); /** * The credits for the documentation team. * @link https://php.net/manual/en/info.constants.php */ -define ('CREDITS_DOCS', 16); +define('CREDITS_DOCS', 16); /** * Usually used in combination with the other flags. Indicates @@ -237,100 +237,100 @@ * flags. * @link https://php.net/manual/en/info.constants.php */ -define ('CREDITS_FULLPAGE', 32); +define('CREDITS_FULLPAGE', 32); /** * The credits for the quality assurance team. * @link https://php.net/manual/en/info.constants.php */ -define ('CREDITS_QA', 64); +define('CREDITS_QA', 64); /** * The configuration line, "php.ini" location, build date, Web * Server, System and more. * @link https://php.net/manual/en/info.constants.php */ -define ('CREDITS_ALL', 4294967295); -define ('HTML_SPECIALCHARS', 0); -define ('HTML_ENTITIES', 1); +define('CREDITS_ALL', 4294967295); +define('HTML_SPECIALCHARS', 0); +define('HTML_ENTITIES', 1); /** * Will convert double-quotes and leave single-quotes alone. * @link https://php.net/manual/en/function.htmlspecialchars.php */ -define ('ENT_COMPAT', 2); +define('ENT_COMPAT', 2); /** * Will convert both double and single quotes. * @link https://php.net/manual/en/function.htmlspecialchars.php */ -define ('ENT_QUOTES', 3); +define('ENT_QUOTES', 3); /** * Will leave both double and single quotes unconverted. * @link https://php.net/manual/en/function.htmlspecialchars.php */ -define ('ENT_NOQUOTES', 0); +define('ENT_NOQUOTES', 0); /** * Silently discard invalid code unit sequences instead of returning an empty string. * Using this flag is discouraged as it may have security implications. * @link https://php.net/manual/en/function.htmlspecialchars.php */ -define ('ENT_IGNORE', 4); -define ('STR_PAD_LEFT', 0); -define ('STR_PAD_RIGHT', 1); -define ('STR_PAD_BOTH', 2); -define ('PATHINFO_DIRNAME', 1); -define ('PATHINFO_BASENAME', 2); -define ('PATHINFO_EXTENSION', 4); +define('ENT_IGNORE', 4); +define('STR_PAD_LEFT', 0); +define('STR_PAD_RIGHT', 1); +define('STR_PAD_BOTH', 2); +define('PATHINFO_DIRNAME', 1); +define('PATHINFO_BASENAME', 2); +define('PATHINFO_EXTENSION', 4); /** * @link https://php.net/manual/en/filesystem.constants.php */ -define ('PATHINFO_FILENAME', 8); -define ('PATHINFO_ALL', 15); -define ('CHAR_MAX', 127); -define ('LC_CTYPE', 0); -define ('LC_NUMERIC', 1); -define ('LC_TIME', 2); -define ('LC_COLLATE', 3); -define ('LC_MONETARY', 4); -define ('LC_ALL', 6); -define ('LC_MESSAGES', 5); -define ('SEEK_SET', 0); -define ('SEEK_CUR', 1); -define ('SEEK_END', 2); +define('PATHINFO_FILENAME', 8); +define('PATHINFO_ALL', 15); +define('CHAR_MAX', 127); +define('LC_CTYPE', 0); +define('LC_NUMERIC', 1); +define('LC_TIME', 2); +define('LC_COLLATE', 3); +define('LC_MONETARY', 4); +define('LC_ALL', 6); +define('LC_MESSAGES', 5); +define('SEEK_SET', 0); +define('SEEK_CUR', 1); +define('SEEK_END', 2); /** * Acquire a shared lock (reader). * @link https://www.php.net/manual/en/function.flock.php */ -define ('LOCK_SH', 1); +define('LOCK_SH', 1); /** * Acquire an exclusive lock (writer). * @link https://www.php.net/manual/en/function.flock.php */ -define ('LOCK_EX', 2); +define('LOCK_EX', 2); /** * Release lock (shared or exclusive). * @link https://www.php.net/manual/en/function.flock.php */ -define ('LOCK_UN', 3); +define('LOCK_UN', 3); /** * Non-blocking operation while locking. * @link https://www.php.net/manual/en/function.flock.php */ -define ('LOCK_NB', 4); +define('LOCK_NB', 4); /** * A connection with an external resource has been established. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_CONNECT', 2); +define('STREAM_NOTIFY_CONNECT', 2); /** * Additional authorization is required to access the specified resource. @@ -338,13 +338,13 @@ * STREAM_NOTIFY_SEVERITY_ERR. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_AUTH_REQUIRED', 3); +define('STREAM_NOTIFY_AUTH_REQUIRED', 3); /** * Authorization has been completed (with or without success). * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_AUTH_RESULT', 10); +define('STREAM_NOTIFY_AUTH_RESULT', 10); /** * The mime-type of resource has been identified, @@ -352,20 +352,20 @@ * discovered type. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_MIME_TYPE_IS', 4); +define('STREAM_NOTIFY_MIME_TYPE_IS', 4); /** * The size of the resource has been discovered. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_FILE_SIZE_IS', 5); +define('STREAM_NOTIFY_FILE_SIZE_IS', 5); /** * The external resource has redirected the stream to an alternate * location. Refer to message. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_REDIRECTED', 6); +define('STREAM_NOTIFY_REDIRECTED', 6); /** * Indicates current progress of the stream transfer in @@ -373,7 +373,7 @@ * bytes_max as well. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_PROGRESS', 7); +define('STREAM_NOTIFY_PROGRESS', 7); /** * A generic error occurred on the stream, consult @@ -381,38 +381,38 @@ * for details. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_FAILURE', 9); +define('STREAM_NOTIFY_FAILURE', 9); /** * There is no more data available on the stream. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_COMPLETED', 8); +define('STREAM_NOTIFY_COMPLETED', 8); /** * A remote address required for this stream has been resolved, or the resolution * failed. See severity for an indication of which happened. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_RESOLVE', 1); +define('STREAM_NOTIFY_RESOLVE', 1); /** * Normal, non-error related, notification. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_SEVERITY_INFO', 0); +define('STREAM_NOTIFY_SEVERITY_INFO', 0); /** * Non critical error condition. Processing may continue. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_SEVERITY_WARN', 1); +define('STREAM_NOTIFY_SEVERITY_WARN', 1); /** * A critical error occurred. Processing cannot continue. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_NOTIFY_SEVERITY_ERR', 2); +define('STREAM_NOTIFY_SEVERITY_ERR', 2); /** * Used with stream_filter_append and @@ -421,7 +421,7 @@ * reading * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_FILTER_READ', 1); +define('STREAM_FILTER_READ', 1); /** * Used with stream_filter_append and @@ -430,21 +430,21 @@ * writing * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_FILTER_WRITE', 2); +define('STREAM_FILTER_WRITE', 2); /** * This constant is equivalent to * STREAM_FILTER_READ | STREAM_FILTER_WRITE * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_FILTER_ALL', 3); +define('STREAM_FILTER_ALL', 3); /** * Client socket opened with stream_socket_client * should remain persistent between page loads. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_CLIENT_PERSISTENT', 1); +define('STREAM_CLIENT_PERSISTENT', 1); /** * Open client socket asynchronously. This option must be used @@ -452,14 +452,14 @@ * Used with stream_socket_client. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_CLIENT_ASYNC_CONNECT', 2); +define('STREAM_CLIENT_ASYNC_CONNECT', 2); /** * Open client socket connection. Client sockets should always * include this flag. Used with stream_socket_client. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_CLIENT_CONNECT', 4); +define('STREAM_CLIENT_CONNECT', 4); /** * Used with stream_socket_shutdown to disable @@ -467,7 +467,7 @@ * @since 5.2.1 * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_SHUT_RD', 0); +define('STREAM_SHUT_RD', 0); /** * Used with stream_socket_shutdown to disable @@ -475,7 +475,7 @@ * @since 5.2.1 * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_SHUT_WR', 1); +define('STREAM_SHUT_WR', 1); /** * Used with stream_socket_shutdown to disable @@ -483,69 +483,69 @@ * @since 5.2.1 * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_SHUT_RDWR', 2); +define('STREAM_SHUT_RDWR', 2); /** * Internet Protocol Version 4 (IPv4). * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_PF_INET', 2); +define('STREAM_PF_INET', 2); /** * Internet Protocol Version 6 (IPv6). * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_PF_INET6', 10); +define('STREAM_PF_INET6', 10); /** * Unix system internal protocols. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_PF_UNIX', 1); +define('STREAM_PF_UNIX', 1); /** * Provides a IP socket. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_IPPROTO_IP', 0); +define('STREAM_IPPROTO_IP', 0); /** * Provides a TCP socket. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_IPPROTO_TCP', 6); +define('STREAM_IPPROTO_TCP', 6); /** * Provides a UDP socket. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_IPPROTO_UDP', 17); +define('STREAM_IPPROTO_UDP', 17); /** * Provides a ICMP socket. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_IPPROTO_ICMP', 1); +define('STREAM_IPPROTO_ICMP', 1); /** * Provides a RAW socket. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_IPPROTO_RAW', 255); +define('STREAM_IPPROTO_RAW', 255); /** * Provides sequenced, two-way byte streams with a transmission mechanism * for out-of-band data (TCP, for example). * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_SOCK_STREAM', 1); +define('STREAM_SOCK_STREAM', 1); /** * Provides datagrams, which are connectionless messages (UDP, for * example). * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_SOCK_DGRAM', 2); +define('STREAM_SOCK_DGRAM', 2); /** * Provides a raw socket, which provides access to internal network @@ -553,28 +553,28 @@ * to the root user. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_SOCK_RAW', 3); +define('STREAM_SOCK_RAW', 3); /** * Provides a sequenced packet stream socket. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_SOCK_SEQPACKET', 5); +define('STREAM_SOCK_SEQPACKET', 5); /** * Provides a RDM (Reliably-delivered messages) socket. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_SOCK_RDM', 4); -define ('STREAM_PEEK', 2); -define ('STREAM_OOB', 1); +define('STREAM_SOCK_RDM', 4); +define('STREAM_PEEK', 2); +define('STREAM_OOB', 1); /** * Tells a stream created with stream_socket_server * to bind to the specified target. Server sockets should always include this flag. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_SERVER_BIND', 4); +define('STREAM_SERVER_BIND', 4); /** * Tells a stream created with stream_socket_server @@ -584,32 +584,32 @@ * Using this flag for connect-less transports (such as UDP) is an error. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_SERVER_LISTEN', 8); +define('STREAM_SERVER_LISTEN', 8); /** * Search for filename in include_path * @link https://php.net/manual/en/filesystem.constants.php */ -define ('FILE_USE_INCLUDE_PATH', 1); +define('FILE_USE_INCLUDE_PATH', 1); /** * Strip EOL characters * @link https://php.net/manual/en/filesystem.constants.php */ -define ('FILE_IGNORE_NEW_LINES', 2); +define('FILE_IGNORE_NEW_LINES', 2); /** * Skip empty lines * @link https://php.net/manual/en/filesystem.constants.php */ -define ('FILE_SKIP_EMPTY_LINES', 4); +define('FILE_SKIP_EMPTY_LINES', 4); /** * Append content to existing file. * @link https://php.net/manual/en/filesystem.constants.php */ -define ('FILE_APPEND', 8); -define ('FILE_NO_DEFAULT_CONTEXT', 16); +define('FILE_APPEND', 8); +define('FILE_NO_DEFAULT_CONTEXT', 16); /** *

    @@ -619,7 +619,7 @@ * @since 5.2.7 * @link https://php.net/manual/en/filesystem.constants.php */ -define ('FILE_TEXT', 0); +define('FILE_TEXT', 0); /** *

    @@ -629,38 +629,38 @@ * @since 5.2.7 * @link https://php.net/manual/en/filesystem.constants.php */ -define ('FILE_BINARY', 0); +define('FILE_BINARY', 0); /** * Disable backslash escaping. * @link https://php.net/manual/en/filesystem.constants.php */ -define ('FNM_NOESCAPE', 2); +define('FNM_NOESCAPE', 2); /** * Slash in string only matches slash in the given pattern. * @link https://php.net/manual/en/filesystem.constants.php */ -define ('FNM_PATHNAME', 1); +define('FNM_PATHNAME', 1); /** * Leading period in string must be exactly matched by period in the given pattern. * @link https://php.net/manual/en/filesystem.constants.php */ -define ('FNM_PERIOD', 4); +define('FNM_PERIOD', 4); /** * Caseless match. Part of the GNU extension. * @link https://php.net/manual/en/filesystem.constants.php */ -define ('FNM_CASEFOLD', 16); +define('FNM_CASEFOLD', 16); /** * Return Code indicating that the * userspace filter returned buckets in $out. * @link https://php.net/manual/en/stream.constants.php */ -define ('PSFS_PASS_ON', 2); +define('PSFS_PASS_ON', 2); /** * Return Code indicating that the @@ -668,7 +668,7 @@ * (i.e. No data available). * @link https://php.net/manual/en/stream.constants.php */ -define ('PSFS_FEED_ME', 1); +define('PSFS_FEED_ME', 1); /** * Return Code indicating that the @@ -676,139 +676,139 @@ * (i.e. Invalid data received). * @link https://php.net/manual/en/stream.constants.php */ -define ('PSFS_ERR_FATAL', 0); +define('PSFS_ERR_FATAL', 0); /** * Regular read/write. * @link https://php.net/manual/en/stream.constants.php */ -define ('PSFS_FLAG_NORMAL', 0); +define('PSFS_FLAG_NORMAL', 0); /** * An incremental flush. * @link https://php.net/manual/en/stream.constants.php */ -define ('PSFS_FLAG_FLUSH_INC', 1); +define('PSFS_FLAG_FLUSH_INC', 1); /** * Final flush prior to closing. * @link https://php.net/manual/en/stream.constants.php */ -define ('PSFS_FLAG_FLUSH_CLOSE', 2); -define ('ABDAY_1', 131072); -define ('ABDAY_2', 131073); -define ('ABDAY_3', 131074); -define ('ABDAY_4', 131075); -define ('ABDAY_5', 131076); -define ('ABDAY_6', 131077); -define ('ABDAY_7', 131078); -define ('DAY_1', 131079); -define ('DAY_2', 131080); -define ('DAY_3', 131081); -define ('DAY_4', 131082); -define ('DAY_5', 131083); -define ('DAY_6', 131084); -define ('DAY_7', 131085); -define ('ABMON_1', 131086); -define ('ABMON_2', 131087); -define ('ABMON_3', 131088); -define ('ABMON_4', 131089); -define ('ABMON_5', 131090); -define ('ABMON_6', 131091); -define ('ABMON_7', 131092); -define ('ABMON_8', 131093); -define ('ABMON_9', 131094); -define ('ABMON_10', 131095); -define ('ABMON_11', 131096); -define ('ABMON_12', 131097); -define ('MON_1', 131098); -define ('MON_2', 131099); -define ('MON_3', 131100); -define ('MON_4', 131101); -define ('MON_5', 131102); -define ('MON_6', 131103); -define ('MON_7', 131104); -define ('MON_8', 131105); -define ('MON_9', 131106); -define ('MON_10', 131107); -define ('MON_11', 131108); -define ('MON_12', 131109); -define ('AM_STR', 131110); -define ('PM_STR', 131111); -define ('D_T_FMT', 131112); -define ('D_FMT', 131113); -define ('T_FMT', 131114); -define ('T_FMT_AMPM', 131115); -define ('ERA', 131116); -define ('ERA_D_T_FMT', 131120); -define ('ERA_D_FMT', 131118); -define ('ERA_T_FMT', 131121); -define ('ALT_DIGITS', 131119); -define ('CRNCYSTR', 262159); -define ('RADIXCHAR', 65536); -define ('THOUSEP', 65537); -define ('YESEXPR', 327680); -define ('NOEXPR', 327681); -define ('YESSTR', 327682); -define ('NOSTR', 327683); -define ('CODESET', 14); -define ('CRYPT_SALT_LENGTH', 123); -define ('CRYPT_STD_DES', 1); -define ('CRYPT_EXT_DES', 1); -define ('CRYPT_MD5', 1); -define ('CRYPT_BLOWFISH', 1); -define ('CRYPT_SHA256', 1); -define ('CRYPT_SHA512', 1); -define ('DIRECTORY_SEPARATOR', "/"); -define ('PATH_SEPARATOR', ":"); -define ('GLOB_BRACE', 1024); -define ('GLOB_MARK', 2); -define ('GLOB_NOSORT', 4); -define ('GLOB_NOCHECK', 16); -define ('GLOB_NOESCAPE', 64); -define ('GLOB_ERR', 1); -define ('GLOB_ONLYDIR', 1073741824); -define ('GLOB_AVAILABLE_FLAGS', 1073741911); -define ('EXTR_OVERWRITE', 0); -define ('EXTR_SKIP', 1); -define ('EXTR_PREFIX_SAME', 2); -define ('EXTR_PREFIX_ALL', 3); -define ('EXTR_PREFIX_INVALID', 4); -define ('EXTR_PREFIX_IF_EXISTS', 5); -define ('EXTR_IF_EXISTS', 6); -define ('EXTR_REFS', 256); +define('PSFS_FLAG_FLUSH_CLOSE', 2); +define('ABDAY_1', 131072); +define('ABDAY_2', 131073); +define('ABDAY_3', 131074); +define('ABDAY_4', 131075); +define('ABDAY_5', 131076); +define('ABDAY_6', 131077); +define('ABDAY_7', 131078); +define('DAY_1', 131079); +define('DAY_2', 131080); +define('DAY_3', 131081); +define('DAY_4', 131082); +define('DAY_5', 131083); +define('DAY_6', 131084); +define('DAY_7', 131085); +define('ABMON_1', 131086); +define('ABMON_2', 131087); +define('ABMON_3', 131088); +define('ABMON_4', 131089); +define('ABMON_5', 131090); +define('ABMON_6', 131091); +define('ABMON_7', 131092); +define('ABMON_8', 131093); +define('ABMON_9', 131094); +define('ABMON_10', 131095); +define('ABMON_11', 131096); +define('ABMON_12', 131097); +define('MON_1', 131098); +define('MON_2', 131099); +define('MON_3', 131100); +define('MON_4', 131101); +define('MON_5', 131102); +define('MON_6', 131103); +define('MON_7', 131104); +define('MON_8', 131105); +define('MON_9', 131106); +define('MON_10', 131107); +define('MON_11', 131108); +define('MON_12', 131109); +define('AM_STR', 131110); +define('PM_STR', 131111); +define('D_T_FMT', 131112); +define('D_FMT', 131113); +define('T_FMT', 131114); +define('T_FMT_AMPM', 131115); +define('ERA', 131116); +define('ERA_D_T_FMT', 131120); +define('ERA_D_FMT', 131118); +define('ERA_T_FMT', 131121); +define('ALT_DIGITS', 131119); +define('CRNCYSTR', 262159); +define('RADIXCHAR', 65536); +define('THOUSEP', 65537); +define('YESEXPR', 327680); +define('NOEXPR', 327681); +define('YESSTR', 327682); +define('NOSTR', 327683); +define('CODESET', 14); +define('CRYPT_SALT_LENGTH', 123); +define('CRYPT_STD_DES', 1); +define('CRYPT_EXT_DES', 1); +define('CRYPT_MD5', 1); +define('CRYPT_BLOWFISH', 1); +define('CRYPT_SHA256', 1); +define('CRYPT_SHA512', 1); +define('DIRECTORY_SEPARATOR', "/"); +define('PATH_SEPARATOR', ":"); +define('GLOB_BRACE', 1024); +define('GLOB_MARK', 2); +define('GLOB_NOSORT', 4); +define('GLOB_NOCHECK', 16); +define('GLOB_NOESCAPE', 64); +define('GLOB_ERR', 1); +define('GLOB_ONLYDIR', 1073741824); +define('GLOB_AVAILABLE_FLAGS', 1073741911); +define('EXTR_OVERWRITE', 0); +define('EXTR_SKIP', 1); +define('EXTR_PREFIX_SAME', 2); +define('EXTR_PREFIX_ALL', 3); +define('EXTR_PREFIX_INVALID', 4); +define('EXTR_PREFIX_IF_EXISTS', 5); +define('EXTR_IF_EXISTS', 6); +define('EXTR_REFS', 256); /** * SORT_ASC is used with * array_multisort to sort in ascending order. * @link https://php.net/manual/en/array.constants.php */ -define ('SORT_ASC', 4); +define('SORT_ASC', 4); /** * SORT_DESC is used with * array_multisort to sort in descending order. * @link https://php.net/manual/en/array.constants.php */ -define ('SORT_DESC', 3); +define('SORT_DESC', 3); /** * SORT_REGULAR is used to compare items normally. * @link https://php.net/manual/en/array.constants.php */ -define ('SORT_REGULAR', 0); +define('SORT_REGULAR', 0); /** * SORT_NUMERIC is used to compare items numerically. * @link https://php.net/manual/en/array.constants.php */ -define ('SORT_NUMERIC', 1); +define('SORT_NUMERIC', 1); /** * SORT_STRING is used to compare items as strings. * @link https://php.net/manual/en/array.constants.php */ -define ('SORT_STRING', 2); +define('SORT_STRING', 2); /** * SORT_LOCALE_STRING is used to compare items as @@ -816,7 +816,7 @@ * @since 5.0.2 * @link https://php.net/manual/en/array.constants.php */ -define ('SORT_LOCALE_STRING', 5); +define('SORT_LOCALE_STRING', 5); /** * CASE_LOWER is used with @@ -825,7 +825,7 @@ * array_change_key_case. * @link https://php.net/manual/en/array.constants.php */ -define ('CASE_LOWER', 0); +define('CASE_LOWER', 0); /** * CASE_UPPER is used with @@ -833,23 +833,23 @@ * keys to upper case. * @link https://php.net/manual/en/array.constants.php */ -define ('CASE_UPPER', 1); -define ('COUNT_NORMAL', 0); -define ('COUNT_RECURSIVE', 1); -define ('ASSERT_ACTIVE', 1); -define ('ASSERT_CALLBACK', 2); -define ('ASSERT_BAIL', 3); -define ('ASSERT_WARNING', 4); -define ('ASSERT_QUIET_EVAL', 5); -define ('ASSERT_EXCEPTION', 5); +define('CASE_UPPER', 1); +define('COUNT_NORMAL', 0); +define('COUNT_RECURSIVE', 1); +define('ASSERT_ACTIVE', 1); +define('ASSERT_CALLBACK', 2); +define('ASSERT_BAIL', 3); +define('ASSERT_WARNING', 4); +define('ASSERT_QUIET_EVAL', 5); +define('ASSERT_EXCEPTION', 5); /** * Flag indicating if the stream used the include path. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_USE_PATH', 1); -define ('STREAM_IGNORE_URL', 2); -define ('STREAM_ENFORCE_SAFE_MODE', 4); +define('STREAM_USE_PATH', 1); +define('STREAM_IGNORE_URL', 2); +define('STREAM_ENFORCE_SAFE_MODE', 4); /** * Flag indicating if the wrapper @@ -858,7 +858,7 @@ * should not raise any errors. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_REPORT_ERRORS', 8); +define('STREAM_REPORT_ERRORS', 8); /** * This flag is useful when your extension really must be able to randomly @@ -874,140 +874,140 @@ * opener to block until the whole contents have been downloaded. * @link https://php.net/manual/en/internals2.ze1.streams.constants.php */ -define ('STREAM_MUST_SEEK', 16); -define ('STREAM_URL_STAT_LINK', 1); -define ('STREAM_URL_STAT_QUIET', 2); -define ('STREAM_MKDIR_RECURSIVE', 1); -define ('STREAM_IS_URL', 1); -define ('STREAM_OPTION_BLOCKING', 1); -define ('STREAM_OPTION_READ_TIMEOUT', 4); -define ('STREAM_OPTION_READ_BUFFER', 2); -define ('STREAM_OPTION_WRITE_BUFFER', 3); -define ('STREAM_BUFFER_NONE', 0); -define ('STREAM_BUFFER_LINE', 1); -define ('STREAM_BUFFER_FULL', 2); +define('STREAM_MUST_SEEK', 16); +define('STREAM_URL_STAT_LINK', 1); +define('STREAM_URL_STAT_QUIET', 2); +define('STREAM_MKDIR_RECURSIVE', 1); +define('STREAM_IS_URL', 1); +define('STREAM_OPTION_BLOCKING', 1); +define('STREAM_OPTION_READ_TIMEOUT', 4); +define('STREAM_OPTION_READ_BUFFER', 2); +define('STREAM_OPTION_WRITE_BUFFER', 3); +define('STREAM_BUFFER_NONE', 0); +define('STREAM_BUFFER_LINE', 1); +define('STREAM_BUFFER_FULL', 2); /** * Stream casting, when stream_cast is called * otherwise (see above). * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_CAST_AS_STREAM', 0); +define('STREAM_CAST_AS_STREAM', 0); /** * Stream casting, for when stream_select is * calling stream_cast. * @link https://php.net/manual/en/stream.constants.php */ -define ('STREAM_CAST_FOR_SELECT', 3); +define('STREAM_CAST_FOR_SELECT', 3); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_GIF', 1); +define('IMAGETYPE_GIF', 1); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_JPEG', 2); +define('IMAGETYPE_JPEG', 2); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_PNG', 3); +define('IMAGETYPE_PNG', 3); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_SWF', 4); +define('IMAGETYPE_SWF', 4); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_PSD', 5); +define('IMAGETYPE_PSD', 5); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_BMP', 6); +define('IMAGETYPE_BMP', 6); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_TIFF_II', 7); +define('IMAGETYPE_TIFF_II', 7); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_TIFF_MM', 8); +define('IMAGETYPE_TIFF_MM', 8); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_JPC', 9); +define('IMAGETYPE_JPC', 9); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_JP2', 10); +define('IMAGETYPE_JP2', 10); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_JPX', 11); +define('IMAGETYPE_JPX', 11); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_JB2', 12); +define('IMAGETYPE_JB2', 12); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_SWC', 13); +define('IMAGETYPE_SWC', 13); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_IFF', 14); +define('IMAGETYPE_IFF', 14); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_WBMP', 15); +define('IMAGETYPE_WBMP', 15); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_JPEG2000', 9); +define('IMAGETYPE_JPEG2000', 9); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_XBM', 16); +define('IMAGETYPE_XBM', 16); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. * @link https://php.net/manual/en/image.constants.php */ -define ('IMAGETYPE_ICO', 17); +define('IMAGETYPE_ICO', 17); /** * Image type constant used by the {@link image_type_to_mime_type()} and {@link image_type_to_extension()} functions. @@ -1022,7 +1022,7 @@ * IPv4 Address Resource * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_A', 1); +define('DNS_A', 1); define('DNS_CAA', 8192); @@ -1030,25 +1030,25 @@ * Authoritative Name Server Resource * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_NS', 2); +define('DNS_NS', 2); /** * Alias (Canonical Name) Resource * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_CNAME', 16); +define('DNS_CNAME', 16); /** * Start of Authority Resource * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_SOA', 32); +define('DNS_SOA', 32); /** * Pointer Resource * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_PTR', 2048); +define('DNS_PTR', 2048); /** * Host Info Resource (See IANA's @@ -1056,28 +1056,28 @@ * for the meaning of these values) * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_HINFO', 4096); +define('DNS_HINFO', 4096); /** * Mail Exchanger Resource * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_MX', 16384); +define('DNS_MX', 16384); /** * Text Resource * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_TXT', 32768); -define ('DNS_SRV', 33554432); -define ('DNS_NAPTR', 67108864); +define('DNS_TXT', 32768); +define('DNS_SRV', 33554432); +define('DNS_NAPTR', 67108864); /** * IPv6 Address Resource * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_AAAA', 134217728); -define ('DNS_A6', 16777216); +define('DNS_AAAA', 134217728); +define('DNS_A6', 16777216); /** * Any Resource Record. On most systems @@ -1086,18 +1086,17 @@ * uses. Try DNS_ALL instead. * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_ANY', 268435456); +define('DNS_ANY', 268435456); /** * Iteratively query the name server for * each available record type. * @link https://php.net/manual/en/network.constants.php */ -define ('DNS_ALL', 251721779); +define('DNS_ALL', 251721779); // End of standard v.5.3.1-0.dotdeb.1 - //WI-11084 Constant not defined PHP_QUERY_RFC3986 /** @@ -1112,7 +1111,6 @@ */ define('PHP_QUERY_RFC3986', 2); - //WI-11254 Stubs for missing constants from PHP 5.4 /** @@ -1192,7 +1190,6 @@ */ define('ENT_HTML5', 48); - /** @link https://php.net/manual/en/function.scandir.php */ define('SCANDIR_SORT_ASCENDING', 0); /** @link https://php.net/manual/en/function.scandir.php */ @@ -1200,8 +1197,6 @@ /** @link https://php.net/manual/en/function.scandir.php */ define('SCANDIR_SORT_NONE', 2); - - /** * SORT_NATURAL is used to compare items as strings using "natural ordering" like natsort(). * @since 5.4 @@ -1215,8 +1210,6 @@ */ define('SORT_FLAG_CASE', 8); - - /** @link https://php.net/manual/en/streamwrapper.stream-metadata.php */ define('STREAM_META_TOUCH', 1); /** @link https://php.net/manual/en/streamwrapper.stream-metadata.php */ @@ -1278,154 +1271,154 @@ * system is unusable * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_EMERG', 0); +define('LOG_EMERG', 0); /** * action must be taken immediately * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_ALERT', 1); +define('LOG_ALERT', 1); /** * critical conditions * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_CRIT', 2); +define('LOG_CRIT', 2); /** * error conditions * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_ERR', 3); +define('LOG_ERR', 3); /** * warning conditions * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_WARNING', 4); +define('LOG_WARNING', 4); /** * normal, but significant, condition * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_NOTICE', 5); +define('LOG_NOTICE', 5); /** * informational message * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_INFO', 6); +define('LOG_INFO', 6); /** * debug-level message * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_DEBUG', 7); +define('LOG_DEBUG', 7); /** * kernel messages * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_KERN', 0); +define('LOG_KERN', 0); /** * generic user-level messages * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_USER', 8); +define('LOG_USER', 8); /** * mail subsystem * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_MAIL', 16); +define('LOG_MAIL', 16); /** * other system daemons * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_DAEMON', 24); +define('LOG_DAEMON', 24); /** * security/authorization messages (use LOG_AUTHPRIV instead * in systems where that constant is defined) * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_AUTH', 32); +define('LOG_AUTH', 32); /** * messages generated internally by syslogd * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_SYSLOG', 40); +define('LOG_SYSLOG', 40); /** * line printer subsystem * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_LPR', 48); +define('LOG_LPR', 48); /** * USENET news subsystem * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_NEWS', 56); +define('LOG_NEWS', 56); /** * UUCP subsystem * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_UUCP', 64); +define('LOG_UUCP', 64); /** * clock daemon (cron and at) * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_CRON', 72); +define('LOG_CRON', 72); /** * security/authorization messages (private) * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_AUTHPRIV', 80); -define ('LOG_LOCAL0', 128); -define ('LOG_LOCAL1', 136); -define ('LOG_LOCAL2', 144); -define ('LOG_LOCAL3', 152); -define ('LOG_LOCAL4', 160); -define ('LOG_LOCAL5', 168); -define ('LOG_LOCAL6', 176); -define ('LOG_LOCAL7', 184); +define('LOG_AUTHPRIV', 80); +define('LOG_LOCAL0', 128); +define('LOG_LOCAL1', 136); +define('LOG_LOCAL2', 144); +define('LOG_LOCAL3', 152); +define('LOG_LOCAL4', 160); +define('LOG_LOCAL5', 168); +define('LOG_LOCAL6', 176); +define('LOG_LOCAL7', 184); /** * include PID with each message * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_PID', 1); +define('LOG_PID', 1); /** * if there is an error while sending data to the system logger, * write directly to the system console * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_CONS', 2); +define('LOG_CONS', 2); /** * (default) delay opening the connection until the first * message is logged * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_ODELAY', 4); +define('LOG_ODELAY', 4); /** * open the connection to the logger immediately * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_NDELAY', 8); -define ('LOG_NOWAIT', 16); +define('LOG_NDELAY', 8); +define('LOG_NOWAIT', 16); /** * print log message also to standard error * @link https://php.net/manual/en/network.constants.php */ -define ('LOG_PERROR', 32); +define('LOG_PERROR', 32); diff --git a/stats/stats.php b/stats/stats.php index 4397547cc..16107794b 100644 --- a/stats/stats.php +++ b/stats/stats.php @@ -13,8 +13,7 @@ * @param array $a * @return float|false */ -function stats_absolute_deviation (array $a) { -} +function stats_absolute_deviation(array $a) {} /** * Returns CDF, x, alpha, or beta, determined by which. @@ -26,8 +25,7 @@ function stats_absolute_deviation (array $a) { * @param int $which * @return float */ -function stats_cdf_beta (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_beta(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, n, or p, determined by which. @@ -39,8 +37,7 @@ function stats_cdf_beta (float $par1, float $par2, float $par3, int $which): flo * @param int $which * @return float */ -function stats_cdf_binomial (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_binomial(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, x0, or gamma, determined by which. @@ -52,8 +49,7 @@ function stats_cdf_binomial (float $par1, float $par2, float $par3, int $which): * @param int $which * @return float */ -function stats_cdf_cauchy (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_cauchy(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, or k, determined by which. @@ -64,8 +60,7 @@ function stats_cdf_cauchy (float $par1, float $par2, float $par3, int $which): f * @param int $which * @return float */ -function stats_cdf_chisquare (float $par1, float $par2, int $which): float { -} +function stats_cdf_chisquare(float $par1, float $par2, int $which): float {} /** * Returns CDF, x, or lambda, determined by which. @@ -76,8 +71,7 @@ function stats_cdf_chisquare (float $par1, float $par2, int $which): float { * @param int $which * @return float */ -function stats_cdf_exponential (float $par1, float $par2, int $which): float { -} +function stats_cdf_exponential(float $par1, float $par2, int $which): float {} /** * Returns CDF, x, d1, or d2, determined by which. @@ -89,8 +83,7 @@ function stats_cdf_exponential (float $par1, float $par2, int $which): float { * @param int $which * @return float */ -function stats_cdf_f (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_f(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, k, or theta, determined by which. @@ -102,8 +95,7 @@ function stats_cdf_f (float $par1, float $par2, float $par3, int $which): float * @param int $which * @return float */ -function stats_cdf_gamma (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_gamma(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, mu, or b, determined by which. @@ -115,8 +107,7 @@ function stats_cdf_gamma (float $par1, float $par2, float $par3, int $which): fl * @param int $which * @return float */ -function stats_cdf_laplace (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_laplace(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, mu, or s, determined by which. @@ -128,8 +119,7 @@ function stats_cdf_laplace (float $par1, float $par2, float $par3, int $which): * @param int $which * @return float */ -function stats_cdf_logistic (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_logistic(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, r, or p, determined by which. @@ -141,8 +131,7 @@ function stats_cdf_logistic (float $par1, float $par2, float $par3, int $which): * @param int $which * @return float */ -function stats_cdf_negative_binomial (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_negative_binomial(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, k, or lambda, determined by which. @@ -154,8 +143,7 @@ function stats_cdf_negative_binomial (float $par1, float $par2, float $par3, int * @param int $which * @return float */ -function stats_cdf_noncentral_chisquare (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_noncentral_chisquare(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, nu1, nu2, or lambda, determined by which. @@ -168,8 +156,7 @@ function stats_cdf_noncentral_chisquare (float $par1, float $par2, float $par3, * @param int $which * @return float */ -function stats_cdf_noncentral_f (float $par1, float $par2, float $par3, float $par4, int $which): float { -} +function stats_cdf_noncentral_f(float $par1, float $par2, float $par3, float $par4, int $which): float {} /** * Returns CDF, x, nu, or mu, determined by which. @@ -181,8 +168,7 @@ function stats_cdf_noncentral_f (float $par1, float $par2, float $par3, float $p * @param int $which * @return float */ -function stats_cdf_noncentral_t (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_noncentral_t(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, mu, or sigma, determined by which. @@ -194,8 +180,7 @@ function stats_cdf_noncentral_t (float $par1, float $par2, float $par3, int $whi * @param int $which * @return float */ -function stats_cdf_normal (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_normal(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, or lambda, determined by which. @@ -206,8 +191,7 @@ function stats_cdf_normal (float $par1, float $par2, float $par3, int $which): f * @param int $which * @return float */ -function stats_cdf_poisson (float $par1, float $par2, int $which): float { -} +function stats_cdf_poisson(float $par1, float $par2, int $which): float {} /** * Returns CDF, x, or nu, determined by which. @@ -218,8 +202,7 @@ function stats_cdf_poisson (float $par1, float $par2, int $which): float { * @param int $which * @return float */ -function stats_cdf_t (float $par1, float $par2, int $which): float { -} +function stats_cdf_t(float $par1, float $par2, int $which): float {} /** * Returns CDF, x, a, or b, determined by which. @@ -231,8 +214,7 @@ function stats_cdf_t (float $par1, float $par2, int $which): float { * @param int $which * @return float */ -function stats_cdf_uniform (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_uniform(float $par1, float $par2, float $par3, int $which): float {} /** * Returns CDF, x, k, or lambda, determined by which. @@ -244,8 +226,7 @@ function stats_cdf_uniform (float $par1, float $par2, float $par3, int $which): * @param int $which * @return float */ -function stats_cdf_weibull (float $par1, float $par2, float $par3, int $which): float { -} +function stats_cdf_weibull(float $par1, float $par2, float $par3, int $which): float {} /** * Returns the covariance of a and b, or FALSE on failure. @@ -255,8 +236,7 @@ function stats_cdf_weibull (float $par1, float $par2, float $par3, int $which): * @param array $b * @return float|false */ -function stats_covariance (array $a, array $b) { -} +function stats_covariance(array $a, array $b) {} /** * The probability density at x or FALSE for failure. @@ -267,8 +247,7 @@ function stats_covariance (array $a, array $b) { * @param float $b * @return float|false */ -function stats_dens_beta (float $x, float $a, float $b) { -} +function stats_dens_beta(float $x, float $a, float $b) {} /** * The probability density at x or FALSE for failure. @@ -279,8 +258,7 @@ function stats_dens_beta (float $x, float $a, float $b) { * @param float $stdev * @return float|false */ -function stats_dens_cauchy (float $x, float $ave, float $stdev) { -} +function stats_dens_cauchy(float $x, float $ave, float $stdev) {} /** * The probability density at x or FALSE for failure. @@ -290,8 +268,7 @@ function stats_dens_cauchy (float $x, float $ave, float $stdev) { * @param float $dfr * @return float|false */ -function stats_dens_chisquare (float $x, float $dfr) { -} +function stats_dens_chisquare(float $x, float $dfr) {} /** * The probability density at x or FALSE for failure. @@ -301,8 +278,7 @@ function stats_dens_chisquare (float $x, float $dfr) { * @param float $scale * @return float|false */ -function stats_dens_exponential (float $x, float $scale) { -} +function stats_dens_exponential(float $x, float $scale) {} /** * The probability density at x or FALSE for failure. @@ -313,8 +289,7 @@ function stats_dens_exponential (float $x, float $scale) { * @param float $dfr2 * @return float|false */ -function stats_dens_f (float $x, float $dfr1, float $dfr2) { -} +function stats_dens_f(float $x, float $dfr1, float $dfr2) {} /** * The probability density at x or FALSE for failure. @@ -325,8 +300,7 @@ function stats_dens_f (float $x, float $dfr1, float $dfr2) { * @param float $scale * @return float|false */ -function stats_dens_gamma (float $x, float $shape, float $scale) { -} +function stats_dens_gamma(float $x, float $shape, float $scale) {} /** * The probability density at x or FALSE for failure. @@ -337,8 +311,7 @@ function stats_dens_gamma (float $x, float $shape, float $scale) { * @param float $stdev * @return float|false */ -function stats_dens_laplace (float $x, float $ave, float $stdev) { -} +function stats_dens_laplace(float $x, float $ave, float $stdev) {} /** * The probability density at x or FALSE for failure. @@ -349,8 +322,7 @@ function stats_dens_laplace (float $x, float $ave, float $stdev) { * @param float $stdev * @return float|false */ -function stats_dens_logistic (float $x, float $ave, float $stdev) { -} +function stats_dens_logistic(float $x, float $ave, float $stdev) {} /** * The probability density at x or FALSE for failure. @@ -361,8 +333,7 @@ function stats_dens_logistic (float $x, float $ave, float $stdev) { * @param float $stdev * @return float|false */ -function stats_dens_normal (float $x, float $ave, float $stdev) { -} +function stats_dens_normal(float $x, float $ave, float $stdev) {} /** * The probability mass at x or FALSE for failure. @@ -373,8 +344,7 @@ function stats_dens_normal (float $x, float $ave, float $stdev) { * @param float $pi * @return float|false */ -function stats_dens_pmf_binomial (float $x, float $n, float $pi) { -} +function stats_dens_pmf_binomial(float $x, float $n, float $pi) {} /** * The probability mass at n1 or FALSE for failure. @@ -386,8 +356,7 @@ function stats_dens_pmf_binomial (float $x, float $n, float $pi) { * @param float $N2 * @return float|false */ -function stats_dens_pmf_hypergeometric (float $n1, float $n2, float $N1, float $N2) { -} +function stats_dens_pmf_hypergeometric(float $n1, float $n2, float $N1, float $N2) {} /** * The probability mass at x or FALSE for failure. @@ -398,8 +367,7 @@ function stats_dens_pmf_hypergeometric (float $n1, float $n2, float $N1, float $ * @param float $pi * @return float|false */ -function stats_dens_pmf_negative_binomial (float $x, float $n, float $pi) { -} +function stats_dens_pmf_negative_binomial(float $x, float $n, float $pi) {} /** * The probability mass at x or FALSE for failure. @@ -409,8 +377,7 @@ function stats_dens_pmf_negative_binomial (float $x, float $n, float $pi) { * @param float $lb * @return float|false */ -function stats_dens_pmf_poisson (float $x, float $lb) { -} +function stats_dens_pmf_poisson(float $x, float $lb) {} /** * The probability density at x or FALSE for failure. @@ -420,8 +387,7 @@ function stats_dens_pmf_poisson (float $x, float $lb) { * @param float $dfr * @return float|false */ -function stats_dens_t (float $x, float $dfr) { -} +function stats_dens_t(float $x, float $dfr) {} /** * The probability density at x or FALSE for failure. @@ -432,8 +398,7 @@ function stats_dens_t (float $x, float $dfr) { * @param float $b * @return float|false */ -function stats_dens_uniform (float $x, float $a, float $b) { -} +function stats_dens_uniform(float $x, float $a, float $b) {} /** * The probability density at x or FALSE for failure. @@ -444,8 +409,7 @@ function stats_dens_uniform (float $x, float $a, float $b) { * @param float $b * @return float|false */ -function stats_dens_weibull (float $x, float $a, float $b) { -} +function stats_dens_weibull(float $x, float $a, float $b) {} /** * Returns the harmonic mean of the values in a, or FALSE if a is empty or is not an array. @@ -454,8 +418,7 @@ function stats_dens_weibull (float $x, float $a, float $b) { * @param array $a * @return number|false */ -function stats_harmonic_mean (array $a) { -} +function stats_harmonic_mean(array $a) {} /** * Returns the kurtosis of the values in a, or FALSE if a is empty or is not an array. @@ -464,8 +427,7 @@ function stats_harmonic_mean (array $a) { * @param array $a * @return float|false */ -function stats_kurtosis (array $a) { -} +function stats_kurtosis(array $a) {} /** * A random deviate @@ -475,8 +437,7 @@ function stats_kurtosis (array $a) { * @param float $b * @return float */ -function stats_rand_gen_beta (float $a, float $b): float { -} +function stats_rand_gen_beta(float $a, float $b): float {} /** * A random deviate @@ -485,8 +446,7 @@ function stats_rand_gen_beta (float $a, float $b): float { * @param float $df * @return float */ -function stats_rand_gen_chisquare (float $df): float { -} +function stats_rand_gen_chisquare(float $df): float {} /** * A random deviate @@ -495,8 +455,7 @@ function stats_rand_gen_chisquare (float $df): float { * @param float $av * @return float */ -function stats_rand_gen_exponential (float $av): float { -} +function stats_rand_gen_exponential(float $av): float {} /** * A random deviate @@ -506,8 +465,7 @@ function stats_rand_gen_exponential (float $av): float { * @param float $dfd * @return float */ -function stats_rand_gen_f (float $dfn, float $dfd): float { -} +function stats_rand_gen_f(float $dfn, float $dfd): float {} /** * A random deviate @@ -517,8 +475,7 @@ function stats_rand_gen_f (float $dfn, float $dfd): float { * @param float $high * @return float */ -function stats_rand_gen_funiform (float $low, float $high): float { -} +function stats_rand_gen_funiform(float $low, float $high): float {} /** * A random deviate @@ -528,8 +485,7 @@ function stats_rand_gen_funiform (float $low, float $high): float { * @param float $r * @return float */ -function stats_rand_gen_gamma (float $a, float $r): float { -} +function stats_rand_gen_gamma(float $a, float $r): float {} /** * A random deviate, which is the number of failure. @@ -539,8 +495,7 @@ function stats_rand_gen_gamma (float $a, float $r): float { * @param float $p * @return int */ -function stats_rand_gen_ibinomial_negative (int $n, float $p): int { -} +function stats_rand_gen_ibinomial_negative(int $n, float $p): int {} /** * A random deviate @@ -550,8 +505,7 @@ function stats_rand_gen_ibinomial_negative (int $n, float $p): int { * @param float $pp * @return int */ -function stats_rand_gen_ibinomial (int $n, float $pp): int { -} +function stats_rand_gen_ibinomial(int $n, float $pp): int {} /** * A random integer @@ -559,8 +513,7 @@ function stats_rand_gen_ibinomial (int $n, float $pp): int { * @link https://www.php.net/manual/en/function.stats-rand-gen-int.php * @return int */ -function stats_rand_gen_int (): int { -} +function stats_rand_gen_int(): int {} /** * A random deviate @@ -569,8 +522,7 @@ function stats_rand_gen_int (): int { * @param float $mu * @return int */ -function stats_rand_gen_ipoisson (float $mu): int { -} +function stats_rand_gen_ipoisson(float $mu): int {} /** * A random integer @@ -580,8 +532,7 @@ function stats_rand_gen_ipoisson (float $mu): int { * @param int $high * @return int */ -function stats_rand_gen_iuniform (int $low, int $high): int { -} +function stats_rand_gen_iuniform(int $low, int $high): int {} /** * A random deviate @@ -592,8 +543,7 @@ function stats_rand_gen_iuniform (int $low, int $high): int { * @param float $xnonc * @return float */ -function stats_rand_gen_noncentral_f (float $dfn, float $dfd, float $xnonc): float { -} +function stats_rand_gen_noncentral_f(float $dfn, float $dfd, float $xnonc): float {} /** * A random deviate @@ -603,8 +553,7 @@ function stats_rand_gen_noncentral_f (float $dfn, float $dfd, float $xnonc): flo * @param float $xnonc * @return float */ -function stats_rand_gen_noncentral_t (float $df, float $xnonc): float { -} +function stats_rand_gen_noncentral_t(float $df, float $xnonc): float {} /** * A random deviate @@ -614,8 +563,7 @@ function stats_rand_gen_noncentral_t (float $df, float $xnonc): float { * @param float $sd * @return float */ -function stats_rand_gen_normal (float $av, float $sd): float { -} +function stats_rand_gen_normal(float $av, float $sd): float {} /** * A random deviate @@ -624,8 +572,7 @@ function stats_rand_gen_normal (float $av, float $sd): float { * @param float $df * @return float */ -function stats_rand_gen_t (float $df): float { -} +function stats_rand_gen_t(float $df): float {} /** * Returns an array of two integers. @@ -633,8 +580,7 @@ function stats_rand_gen_t (float $df): float { * @link https://www.php.net/manual/en/function.stats-rand-get-seeds.php * @return int[] */ -function stats_rand_get_seeds () { -} +function stats_rand_get_seeds() {} /** * Returns an array of two integers. @@ -643,8 +589,7 @@ function stats_rand_get_seeds () { * @param string $phrase * @return int[] */ -function stats_rand_phrase_to_seeds (string $phrase) { -} +function stats_rand_phrase_to_seeds(string $phrase) {} /** * A random floating point number @@ -652,8 +597,7 @@ function stats_rand_phrase_to_seeds (string $phrase) { * @link https://www.php.net/manual/en/function.stats-rand-ranf.php * @return float */ -function stats_rand_ranf (): float { -} +function stats_rand_ranf(): float {} /** * No values are returned. @@ -662,8 +606,7 @@ function stats_rand_ranf (): float { * @param int $iseed1 * @param int $iseed2 */ -function stats_rand_setall (int $iseed1, int $iseed2): void { -} +function stats_rand_setall(int $iseed1, int $iseed2): void {} /** * Returns the skewness of the values in a, or FALSE if a is empty or is not an array. @@ -672,8 +615,7 @@ function stats_rand_setall (int $iseed1, int $iseed2): void { * @param array $a * @return float|false */ -function stats_skew (array $a) { -} +function stats_skew(array $a) {} /** * Returns the standard deviation on success; FALSE on failure. @@ -684,8 +626,7 @@ function stats_skew (array $a) { * @param bool $sample * @return float|false */ -function stats_standard_deviation (array $a, bool $sample = false) { -} +function stats_standard_deviation(array $a, bool $sample = false) {} /** * Returns the binomial coefficient @@ -695,8 +636,7 @@ function stats_standard_deviation (array $a, bool $sample = false) { * @param int $n * @return float */ -function stats_stat_binomial_coef (int $x, int $n): float { -} +function stats_stat_binomial_coef(int $x, int $n): float {} /** * Returns the Pearson correlation coefficient between arr1 and arr2, or FALSE on failure. @@ -706,8 +646,7 @@ function stats_stat_binomial_coef (int $x, int $n): float { * @param array $arr2 * @return float|false */ -function stats_stat_correlation (array $arr1, array $arr2) { -} +function stats_stat_correlation(array $arr1, array $arr2) {} /** * The factorial of n. @@ -716,8 +655,7 @@ function stats_stat_correlation (array $arr1, array $arr2) { * @param int $n * @return float */ -function stats_stat_factorial (int $n): float { -} +function stats_stat_factorial(int $n): float {} /** * Returns the t-value, or FALSE if failure. @@ -727,8 +665,7 @@ function stats_stat_factorial (int $n): float { * @param array $arr2 * @return float|false */ -function stats_stat_independent_t (array $arr1, array $arr2) { -} +function stats_stat_independent_t(array $arr1, array $arr2) {} /** * Returns the inner product of arr1 and arr2, or FALSE on failure. @@ -738,8 +675,7 @@ function stats_stat_independent_t (array $arr1, array $arr2) { * @param array $arr2 * @return float|false */ -function stats_stat_innerproduct (array $arr1, array $arr2) { -} +function stats_stat_innerproduct(array $arr1, array $arr2) {} /** * Returns the t-value, or FALSE if failure. @@ -749,8 +685,7 @@ function stats_stat_innerproduct (array $arr1, array $arr2) { * @param array $arr2 * @return float|false */ -function stats_stat_paired_t (array $arr1, array $arr2) { -} +function stats_stat_paired_t(array $arr1, array $arr2) {} /** * Returns the percentile values of the input array. @@ -760,8 +695,7 @@ function stats_stat_paired_t (array $arr1, array $arr2) { * @param float $perc * @return float */ -function stats_stat_percentile (array $array, float $perc): float { -} +function stats_stat_percentile(array $array, float $perc): float {} /** * Returns the power sum of the input array. @@ -771,8 +705,7 @@ function stats_stat_percentile (array $array, float $perc): float { * @param float $power * @return float */ -function stats_stat_powersum (array $array, float $power): float { -} +function stats_stat_powersum(array $array, float $power): float {} /** * Returns the variance on success; FALSE on failure. @@ -782,5 +715,4 @@ function stats_stat_powersum (array $array, float $power): float { * @param bool $sample * @return float|false */ -function stats_variance (array $a, bool $sample = false) { -} +function stats_variance(array $a, bool $sample = false) {} diff --git a/stomp/stomp.php b/stomp/stomp.php index 4631673bd..303c85b00 100644 --- a/stomp/stomp.php +++ b/stomp/stomp.php @@ -3,10 +3,8 @@ * Stubs for stomp * https://pecl.php.net/package/stomp */ - class Stomp { - /** * Connect to server * @@ -15,7 +13,7 @@ class Stomp * @param string $password The password * @param array $headers additional headers (example: receipt). */ - public function __construct($broker = null, $username = null, $password = null, array $headers = array()) {} + public function __construct($broker = null, $username = null, $password = null, array $headers = []) {} /** * Get the current stomp session ID @@ -27,7 +25,7 @@ public function getSessionId() {} /** * Close stomp connection * - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ public function disconnect() {} @@ -37,32 +35,32 @@ public function disconnect() {} * @param string $destination indicates where to send the message * @param string|StompFrame $msg message to be sent * @param array $headers additional headers (example: receipt). - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ - public function send($destination, $msg, array $headers = array()) {} + public function send($destination, $msg, array $headers = []) {} /** * Register to listen to a given destination * * @param string $destination indicates which destination to subscribe to * @param array $headers additional headers (example: receipt). - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ - public function subscribe($destination, array $headers = array()) {} + public function subscribe($destination, array $headers = []) {} /** * Remove an existing subscription * * @param string $destination indicates which subscription to remove * @param array $headers additional headers (example: receipt). - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ - public function unsubscribe($destination, array $headers = array()) {} + public function unsubscribe($destination, array $headers = []) {} /** * Indicate whether or not there is a frame ready to read * - * @return boolean TRUE if there is one, or FALSE otherwise + * @return bool TRUE if there is one, or FALSE otherwise */ public function hasFrame() {} @@ -78,7 +76,7 @@ public function readFrame($className = 'stompFrame') {} * Start a transaction * * @param string $transaction_id transaction id - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ public function begin($transaction_id) {} @@ -86,7 +84,7 @@ public function begin($transaction_id) {} * Commit a transaction in progress * * @param string $transaction_id transaction id - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ public function commit($transaction_id) {} @@ -94,7 +92,7 @@ public function commit($transaction_id) {} * Roll back a transaction in progress * * @param string $transaction_id transaction id - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ public function abort($transaction_id) {} @@ -103,9 +101,9 @@ public function abort($transaction_id) {} * * @param string|StompFrame $msg message/messageId to be acknowledged * @param array $headers additional headers (example: receipt). - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ - public function ack($msg, array $headers = array()) {} + public function ack($msg, array $headers = []) {} /** * Get the last stomp error @@ -129,12 +127,10 @@ public function setTimeout($seconds, $microseconds = 0) {} * @return array Array with timeout informations */ public function getTimeout() {} - } class StompFrame { - /** * Frame Command * @var string @@ -156,7 +152,6 @@ class StompFrame class StompException extends Exception { - /** * Get the stomp server error details * @@ -181,7 +176,7 @@ function stomp_version() {} * @param array $headers additional headers (example: receipt). * @return resource|false stomp connection identifier on success, or FALSE on failure */ -function stomp_connect($broker = null, $username = null, $password = null, array $headers = array()) {} +function stomp_connect($broker = null, $username = null, $password = null, array $headers = []) {} /** * Gets the current stomp session ID @@ -195,7 +190,7 @@ function stomp_get_session_id($link) {} * Closes stomp connection * * @param resource $link identifier returned by stomp_connect - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ function stomp_close($link) {} @@ -206,9 +201,9 @@ function stomp_close($link) {} * @param string $destination indicates where to send the message * @param string|StompFrame $msg message to be sent * @param array $headers additional headers (example: receipt). - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ -function stomp_send($link, $destination, $msg, array $headers = array()) {} +function stomp_send($link, $destination, $msg, array $headers = []) {} /** * Registers to listen to a given destination @@ -216,9 +211,9 @@ function stomp_send($link, $destination, $msg, array $headers = array()) {} * @param resource $link identifier returned by stomp_connect * @param string $destination indicates which destination to subscribe to * @param array $headers additional headers (example: receipt). - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ -function stomp_subscribe($link, $destination, array $headers = array()) {} +function stomp_subscribe($link, $destination, array $headers = []) {} /** * Removes an existing subscription @@ -226,15 +221,15 @@ function stomp_subscribe($link, $destination, array $headers = array()) {} * @param resource $link identifier returned by stomp_connect * @param string $destination indicates which subscription to remove * @param array $headers additional headers (example: receipt). - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ -function stomp_unsubscribe($link, $destination, array $headers = array()) {} +function stomp_unsubscribe($link, $destination, array $headers = []) {} /** * Indicates whether or not there is a frame ready to read * * @param resource $link identifier returned by stomp_connect - * @return boolean TRUE if there is one, or FALSE otherwise + * @return bool TRUE if there is one, or FALSE otherwise */ function stomp_has_frame($link) {} @@ -251,7 +246,7 @@ function stomp_read_frame($link) {} * * @param resource $link identifier returned by stomp_connect * @param string $transaction_id transaction id - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ function stomp_begin($link, $transaction_id) {} @@ -260,7 +255,7 @@ function stomp_begin($link, $transaction_id) {} * * @param resource $link identifier returned by stomp_connect * @param string $transaction_id transaction id - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ function stomp_commit($link, $transaction_id) {} @@ -269,7 +264,7 @@ function stomp_commit($link, $transaction_id) {} * * @param resource $link identifier returned by stomp_connect * @param string $transaction_id transaction id - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ function stomp_abort($link, $transaction_id) {} @@ -279,9 +274,9 @@ function stomp_abort($link, $transaction_id) {} * @param resource $link identifier returned by stomp_connect * @param string|StompFrame $msg message/messageId to be acknowledged * @param array $headers additional headers (example: receipt). - * @return boolean TRUE on success, or FALSE on failure + * @return bool TRUE on success, or FALSE on failure */ -function stomp_ack($link, $msg, array $headers = array()) {} +function stomp_ack($link, $msg, array $headers = []) {} /** * Gets the last stomp error diff --git a/suhosin/suhosin.php b/suhosin/suhosin.php index 57e933a58..d72dddf21 100644 --- a/suhosin/suhosin.php +++ b/suhosin/suhosin.php @@ -13,11 +13,11 @@ *

    * @return string|false the encrypted string or false on failure. */ -function suhosin_encrypt_cookie ($name, $value) {} +function suhosin_encrypt_cookie($name, $value) {} /** * Returns an array containing the raw cookie values * @link https://php.net/manual/en/function.suhosin-get-raw-cookies.php * @return array an array containing the raw cookie values. */ -function suhosin_get_raw_cookies () {} +function suhosin_get_raw_cookies() {} diff --git a/superglobals/_superglobals.php b/superglobals/_superglobals.php index 470ee6949..111335728 100644 --- a/superglobals/_superglobals.php +++ b/superglobals/_superglobals.php @@ -7,7 +7,7 @@ * *

    https://secure.php.net/manual/en/reserved.variables.php */ -$GLOBALS = array(); +$GLOBALS = []; /** * @xglobal $_COOKIE array @@ -17,7 +17,7 @@ *

    * https://secure.php.net/manual/en/reserved.variables.php */ -$_COOKIE = array(); +$_COOKIE = []; /** * @xglobal $_ENV array @@ -29,11 +29,11 @@ *

    * https://secure.php.net/manual/en/reserved.variables.php */ -$_ENV = array(); +$_ENV = []; /** * @deprecated 4.1 */ -$HTTP_ENV_VARS = array(); +$HTTP_ENV_VARS = []; /** * @xglobal $_FILES array @@ -46,12 +46,11 @@ *

    * https://secure.php.net/manual/en/reserved.variables.php */ -$_FILES = array(); +$_FILES = []; /** * @deprecated 4.1 */ -$HTTP_POST_FILES = array(); - +$HTTP_POST_FILES = []; /** * @xglobal $_GET array @@ -63,11 +62,11 @@ *

    * https://secure.php.net/manual/en/reserved.variables.php */ -$_GET = array(); +$_GET = []; /** * @deprecated 4.1 */ -$HTTP_GET_VARS = array(); +$HTTP_GET_VARS = []; /** * @xglobal $_POST array @@ -80,11 +79,11 @@ *

    * https://secure.php.net/manual/en/reserved.variables.php */ -$_POST = array(); +$_POST = []; /** * @deprecated 4.1 */ -$HTTP_POST_VARS = array(); +$HTTP_POST_VARS = []; /** * @xglobal $_REQUEST array @@ -104,7 +103,7 @@ *

    * https://secure.php.net/manual/en/reserved.variables.php */ -$_REQUEST = array(); +$_REQUEST = []; /** * @xglobal $_SERVER array @@ -116,11 +115,11 @@ *

    * https://secure.php.net/manual/en/reserved.variables.php */ -$_SERVER = array(); +$_SERVER = []; /** * @deprecated 4.1 */ -$HTTP_SERVER_VARS = array(); +$HTTP_SERVER_VARS = []; $_SERVER['PHP_SELF'] = ''; $_SERVER['argv'] = ''; @@ -171,11 +170,11 @@ *

    * https://secure.php.net/manual/en/reserved.variables.php */ -$_SESSION = array(); +$_SESSION = []; /** * @deprecated 4.1 */ -$HTTP_SESSION_VARS = array(); +$HTTP_SESSION_VARS = []; /** * @xglobal $argc int @@ -195,7 +194,7 @@ *

    * https://secure.php.net/manual/en/reserved.variables.php */ -$argv = array(); +$argv = []; /** * @xglobal $HTTP_RAW_POST_DATA string @@ -217,7 +216,7 @@ *

    * https://secure.php.net/manual/en/reserved.variables.php */ -$http_response_header = array(); +$http_response_header = []; /** * @xglobal $php_errormsg string diff --git a/svm/SVM.php b/svm/SVM.php index 9b5f61d77..3cf5d2bf9 100644 --- a/svm/SVM.php +++ b/svm/SVM.php @@ -6,98 +6,99 @@ * @since 7.0 * @link https://www.php.net/manual/en/class.svm.php */ -class SVM { - /* Constants */ +class SVM +{ + /* Constants */ /** * @const The basic C_SVC SVM type. The default, and a good starting point */ - const C_SVC = 0; + public const C_SVC = 0; /** * @const NU_SVC type uses a different, more flexible, error weighting */ - const NU_SVC = 1; + public const NU_SVC = 1; /** * @const One class SVM type. Train just on a single class, using outliers as negative examples */ - const ONE_CLASS = 2; + public const ONE_CLASS = 2; /** * @const A SVM type for regression (predicting a value rather than just a class) */ - const EPSILON_SVR = 3; + public const EPSILON_SVR = 3; /** * @const A NU style SVM regression type */ - const NU_SVR = 4; + public const NU_SVR = 4; /** * @const A very simple kernel, can work well on large document classification problems */ - const KERNEL_LINEAR = 0; + public const KERNEL_LINEAR = 0; /** * @const A polynomial kernel */ - const KERNEL_POLY = 1; + public const KERNEL_POLY = 1; /** * @const The common Gaussian RBD kernel. Handles non-linear problems well and is a good default for classification */ - const KERNEL_RBF = 2; + public const KERNEL_RBF = 2; /** * @const A kernel based on the sigmoid function. Using this makes the SVM very similar to a two layer sigmoid based neural network */ - const KERNEL_SIGMOID = 3; + public const KERNEL_SIGMOID = 3; /** * @const A precomputed kernel - currently unsupported. */ - const KERNEL_PRECOMPUTED = 4; + public const KERNEL_PRECOMPUTED = 4; /** * @const The options key for the SVM type */ - const OPT_TYPE = 101; + public const OPT_TYPE = 101; /** * @const The options key for the kernel type */ - const OPT_KERNEL_TYPE = 102; + public const OPT_KERNEL_TYPE = 102; /** * @const OPT_DEGREE */ - const OPT_DEGREE = 103; + public const OPT_DEGREE = 103; /** * @const Training parameter, boolean, for whether to use the shrinking heuristics */ - const OPT_SHRINKING = 104; + public const OPT_SHRINKING = 104; /** * @const Training parameter, boolean, for whether to collect and use probability estimates */ - const OPT_PROPABILITY = 105; + public const OPT_PROPABILITY = 105; /** * @const Algorithm parameter for Poly, RBF and Sigmoid kernel types. */ - const OPT_GAMMA = 201; + public const OPT_GAMMA = 201; /** * @const The option key for the nu parameter, only used in the NU_ SVM types */ - const OPT_NU = 202; + public const OPT_NU = 202; /** * @const The option key for the Epsilon parameter, used in epsilon regression */ - const OPT_EPS = 203; + public const OPT_EPS = 203; /** * @const Training parameter used by Episilon SVR regression */ - const OPT_P = 204; + public const OPT_P = 204; /** * @const Algorithm parameter for poly and sigmoid kernels */ - const OPT_COEF_ZERO = 205; + public const OPT_COEF_ZERO = 205; /** * @const The option for the cost parameter that controls tradeoff between errors and generality - effectively the penalty for misclassifying training examples. */ - const OPT_C = 206; + public const OPT_C = 206; /** * @const Memory cache size, in MB */ - const OPT_CACHE_SIZE = 207; + public const OPT_CACHE_SIZE = 207; - /* Methods */ + /* Methods */ /** * Construct a new SVM object * @@ -105,7 +106,7 @@ class SVM { * @throws SVMException Throws SVMException if the libsvm library could not be loaded * @link https://www.php.net/manual/en/svm.construct.php */ - public function __construct () {} + public function __construct() {} /** * Test training params on subsets of the training data @@ -116,7 +117,7 @@ public function __construct () {} * @return float The correct percentage, expressed as a floating point number from 0-1. In the case of NU_SVC or EPSILON_SVR kernels the mean squared error will returned instead. * @link https://www.php.net/manual/en/svm.crossvalidate.php */ - public function crossvalidate ( array $problem , int $number_of_folds ) : float {} + public function crossvalidate(array $problem, int $number_of_folds): float {} /** * Return the current training parameters @@ -125,7 +126,7 @@ public function crossvalidate ( array $problem , int $number_of_folds ) : float * @return array Returns an array of configuration settings. * @link https://www.php.net/manual/en/svm.getoptions.php */ - public function getOptions () : array {} + public function getOptions(): array {} /** * Set training parameters @@ -136,7 +137,7 @@ public function getOptions () : array {} * @throws SVMException * @link https://www.php.net/manual/en/svm.setoptions.php */ - public function setOptions ( array $params ) : bool {} + public function setOptions(array $params): bool {} /** * Create a SVMModel based on training data @@ -148,5 +149,5 @@ public function setOptions ( array $params ) : bool {} * @throws SMVException * @link https://www.php.net/manual/en/svm.train.php */ - public function train ( array $problem, array $weights = null ) : SVMModel {} + public function train(array $problem, array $weights = null): SVMModel {} } diff --git a/svm/SVMModel.php b/svm/SVMModel.php index 910dcc7e2..27baa6e8d 100644 --- a/svm/SVMModel.php +++ b/svm/SVMModel.php @@ -5,90 +5,91 @@ * @since 7.0 * @link https://www.php.net/manual/en/class.svmmodel.php */ -class SVMModel { - /* Methods */ +class SVMModel +{ + /* Methods */ /** * Returns true if the model has probability information * * @return bool Return a boolean value * @link https://www.php.net/manual/en/svmmodel.checkprobabilitymodel.php */ - public function checkProbabilityModel () : bool {} - /** - * Construct a new SVMModel - * - * Build a new SVMModel. Models will usually be created from the SVM::train function, but then saved models may be restored directly. - * @param string $filename The filename for the saved model file this model should load. - * @throws Throws SVMException on error - * @link https://www.php.net/manual/en/svmmodel.construct.php - */ - public function __construct ( string $filename = '' ) {} - /** - * Get the labels the model was trained on + public function checkProbabilityModel(): bool {} + /** + * Construct a new SVMModel + * + * Build a new SVMModel. Models will usually be created from the SVM::train function, but then saved models may be restored directly. + * @param string $filename The filename for the saved model file this model should load. + * @throws Throws SVMException on error + * @link https://www.php.net/manual/en/svmmodel.construct.php + */ + public function __construct(string $filename = '') {} + /** + * Get the labels the model was trained on * * Return an array of labels that the model was trained on. For regression and one class models an empty array is returned. - * @return array Return an array of labels - * @link https://www.php.net/manual/en/svmmodel.getlabels.php + * @return array Return an array of labels + * @link https://www.php.net/manual/en/svmmodel.getlabels.php */ - public function getLabels () : array {} - /** - * Returns the number of classes the model was trained with + public function getLabels(): array {} + /** + * Returns the number of classes the model was trained with * * Returns the number of classes the model was trained with, will return 2 for one class and regression models. - * @return int Return an integer number of classes - * @link https://www.php.net/manual/en/svmmodel.getnrclass.php - */ - public function getNrClass () : int {} - /** - * Get the SVM type the model was trained with + * @return int Return an integer number of classes + * @link https://www.php.net/manual/en/svmmodel.getnrclass.php + */ + public function getNrClass(): int {} + /** + * Get the SVM type the model was trained with * * Returns an integer value representing the type of the SVM model used, e.g SVM::C_SVC. - * @return int Return an integer SVM type - * @link https://www.php.net/manual/en/svmmodel.getsvmtype.php + * @return int Return an integer SVM type + * @link https://www.php.net/manual/en/svmmodel.getsvmtype.php */ - public function getSvmType () : int {} - /** - * Get the sigma value for regression types + public function getSvmType(): int {} + /** + * Get the sigma value for regression types * * For regression models, returns a sigma value. If there is no probability information or the model is not SVR, 0 is returned. - * @return float Returns a sigma value - * @link https://www.php.net/manual/en/svmmodel.getsvrprobability.php + * @return float Returns a sigma value + * @link https://www.php.net/manual/en/svmmodel.getsvrprobability.php + */ + public function getSvrProbability(): float {} + /** + * Load a saved SVM Model + * @param string $filename The filename of the model. + * @return bool Returns true on success. + * @throws SVMException + * @link https://www.php.net/manual/en/svmmodel.load.php + */ + public function load(string $filename): bool {} + /** + * Return class probabilities for previous unseen data + * + * This function accepts an array of data and attempts to predict the class, as with the predict function. Additionally, however, this function returns an array of probabilities, one per class in the model, which represent the estimated chance of the data supplied being a member of that class. Requires that the model to be used has been trained with the probability parameter set to true. + * @param array $data The array to be classified. This should be a series of key => value pairs in increasing key order, but not necessarily continuous. + * @return float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error + * @throws SVMException Throws SVMException on error + * @link https://www.php.net/manual/en/svmmodel.predict-probability.php + */ + public function predict_probability(array $data): float {} + /** + * Predict a value for previously unseen data + * + * This function accepts an array of data and attempts to predict the class or regression value based on the model extracted from previously trained data. + * @param array $data The array to be classified. This should be a series of key => value pairs in increasing key order, but not necessarily continuous. + * @return float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error + * @throws SVMException Throws SVMException on error + * @link https://www.php.net/manual/en/svmmodel.predict.php + */ + public function predict(array $data): float {} + /** + * Save a model to a file, for later use + * @param string $filename The file to save the model to. + * @return bool Throws SVMException on error. Returns true on success. + * @throws SVMException Throws SVMException on error + * @link https://www.php.net/manual/en/svmmodel.save.php */ - public function getSvrProbability () : float {} - /** - * Load a saved SVM Model - * @param string $filename The filename of the model. - * @return bool Returns true on success. - * @throws SVMException - * @link https://www.php.net/manual/en/svmmodel.load.php - */ - public function load ( string $filename ) : bool {} - /** - * Return class probabilities for previous unseen data - * - * This function accepts an array of data and attempts to predict the class, as with the predict function. Additionally, however, this function returns an array of probabilities, one per class in the model, which represent the estimated chance of the data supplied being a member of that class. Requires that the model to be used has been trained with the probability parameter set to true. - * @param array $data The array to be classified. This should be a series of key => value pairs in increasing key order, but not necessarily continuous. - * @return Float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error - * @throws SVMException Throws SVMException on error - * @link https://www.php.net/manual/en/svmmodel.predict-probability.php - */ - public function predict_probability ( array $data ) : float {} - /** - * Predict a value for previously unseen data - * - * This function accepts an array of data and attempts to predict the class or regression value based on the model extracted from previously trained data. - * @param array $data The array to be classified. This should be a series of key => value pairs in increasing key order, but not necessarily continuous. - * @return Float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error - * @throws SVMException Throws SVMException on error - * @link https://www.php.net/manual/en/svmmodel.predict.php - */ - public function predict ( array $data ) : float {} - /** - * Save a model to a file, for later use - * @param string $filename The file to save the model to. - * @return bool Throws SVMException on error. Returns true on success. - * @throws SVMException Throws SVMException on error - * @link https://www.php.net/manual/en/svmmodel.save.php - */ - public function save ( string $filename ) : bool {} + public function save(string $filename): bool {} } diff --git a/svn/svn.php b/svn/svn.php index 5316bd777..7f858005d 100644 --- a/svn/svn.php +++ b/svn/svn.php @@ -2,22 +2,22 @@ // Start of svn v.1.0.1 -class Svn { - const NON_RECURSIVE = 1; - const DISCOVER_CHANGED_PATHS = 2; - const OMIT_MESSAGES = 4; - const STOP_ON_COPY = 8; - const ALL = 16; - const SHOW_UPDATES = 32; - const NO_IGNORE = 64; - const IGNORE_EXTERNALS = 128; - const INITIAL = 1; - const HEAD = -1; - const BASE = -2; - const COMMITTED = -3; - const PREV = -4; - const UNSPECIFIED = -5; - +class Svn +{ + public const NON_RECURSIVE = 1; + public const DISCOVER_CHANGED_PATHS = 2; + public const OMIT_MESSAGES = 4; + public const STOP_ON_COPY = 8; + public const ALL = 16; + public const SHOW_UPDATES = 32; + public const NO_IGNORE = 64; + public const IGNORE_EXTERNALS = 128; + public const INITIAL = 1; + public const HEAD = -1; + public const BASE = -2; + public const COMMITTED = -3; + public const PREV = -4; + public const UNSPECIFIED = -5; public static function checkout() {} public static function cat() {} @@ -61,41 +61,40 @@ public static function repos_open() {} public static function repos_fs() {} public static function repos_fs_begin_txn_for_commit() {} public static function repos_fs_commit_txn() {} - } -class SvnWc { - const NONE = 1; - const UNVERSIONED = 2; - const NORMAL = 3; - const ADDED = 4; - const MISSING = 5; - const DELETED = 6; - const REPLACED = 7; - const MODIFIED = 8; - const MERGED = 9; - const CONFLICTED = 10; - const IGNORED = 11; - const OBSTRUCTED = 12; - const EXTERNAL = 13; - const INCOMPLETE = 14; - +class SvnWc +{ + public const NONE = 1; + public const UNVERSIONED = 2; + public const NORMAL = 3; + public const ADDED = 4; + public const MISSING = 5; + public const DELETED = 6; + public const REPLACED = 7; + public const MODIFIED = 8; + public const MERGED = 9; + public const CONFLICTED = 10; + public const IGNORED = 11; + public const OBSTRUCTED = 12; + public const EXTERNAL = 13; + public const INCOMPLETE = 14; } -class SvnWcSchedule { - const NORMAL = 0; - const ADD = 1; - const DELETE = 2; - const REPLACE = 3; - +class SvnWcSchedule +{ + public const NORMAL = 0; + public const ADD = 1; + public const DELETE = 2; + public const REPLACE = 3; } -class SvnNode { - const NONE = 0; - const FILE = 1; - const DIR = 2; - const UNKNOWN = 3; - +class SvnNode +{ + public const NONE = 0; + public const FILE = 1; + public const DIR = 2; + public const UNKNOWN = 3; } /** @@ -119,7 +118,7 @@ class SvnNode { *

    * @return bool TRUE on success or FALSE on failure. */ -function svn_checkout ($repos, $targetpath, $revision = SVN_REVISION_HEAD, $flags = 0) {} +function svn_checkout($repos, $targetpath, $revision = SVN_REVISION_HEAD, $flags = 0) {} /** * (PECL svn >= 0.1.0)
    @@ -135,7 +134,7 @@ function svn_checkout ($repos, $targetpath, $revision = SVN_REVISION_HEAD, $flag * @return string the string contents of the item from the repository on * success, and FALSE on failure. */ -function svn_cat ($repos_url, $revision_no = SVN_REVISION_HEAD) {} +function svn_cat($repos_url, $revision_no = SVN_REVISION_HEAD) {} /** * (PECL svn >= 0.1.0)
    @@ -164,7 +163,7 @@ function svn_cat ($repos_url, $revision_no = SVN_REVISION_HEAD) {} * [1] => ... *
    */ -function svn_ls ($repos_url, $revision_no = SVN_REVISION_HEAD, $recurse = false, $peg = false) {} +function svn_ls($repos_url, $revision_no = SVN_REVISION_HEAD, $recurse = false, $peg = false) {} /** * (PECL svn >= 0.1.0)
    @@ -248,7 +247,7 @@ function svn_ls ($repos_url, $revision_no = SVN_REVISION_HEAD, $recurse = false, *

    * If no changes were made to the item, an empty array is returned. */ -function svn_log ($repos_url, $start_revision = null, $end_revision = null, $limit = 0, $flags = SVN_DISCOVER_CHANGED_PATHS | SVN_STOP_ON_COPY) {} +function svn_log($repos_url, $start_revision = null, $end_revision = null, $limit = 0, $flags = SVN_DISCOVER_CHANGED_PATHS|SVN_STOP_ON_COPY) {} /** * (PECL svn >= 0.1.0)
    @@ -264,7 +263,7 @@ function svn_log ($repos_url, $start_revision = null, $end_revision = null, $lim *

    * @return void No value is returned. */ -function svn_auth_set_parameter ($key, $value) {} +function svn_auth_set_parameter($key, $value) {} /** * (PECL svn >= 0.1.0)
    @@ -277,7 +276,7 @@ function svn_auth_set_parameter ($key, $value) {} * @return string|null the string value of the parameter at key; * returns NULL if parameter does not exist. */ -function svn_auth_get_parameter ($key) {} +function svn_auth_get_parameter($key) {} /** * (PECL svn >= 0.1.0)
    @@ -285,9 +284,9 @@ function svn_auth_get_parameter ($key) {} * @link https://php.net/manual/en/function.svn-client-version.php * @return string String version number, usually in form of x.y.z. */ -function svn_client_version () {} +function svn_client_version() {} -function svn_config_ensure () {} +function svn_config_ensure() {} /** * (PECL svn >= 0.1.0)
    @@ -325,7 +324,7 @@ function svn_config_ensure () {} * diff engine may be * used depending on Subversion's configuration. */ -function svn_diff ($path1, $rev1, $path2, $rev2) {} +function svn_diff($path1, $rev1, $path2, $rev2) {} /** * (PECL svn >= 0.1.0)
    @@ -337,7 +336,7 @@ function svn_diff ($path1, $rev1, $path2, $rev2) {} * Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath or dirname(__FILE__). * @return bool TRUE on success or FALSE on failure. */ -function svn_cleanup ($workingdir) {} +function svn_cleanup($workingdir) {} /** * (PECL svn >= 0.3.0)
    @@ -351,9 +350,9 @@ function svn_cleanup ($workingdir) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function svn_revert ($path, $recursive = false) {} +function svn_revert($path, $recursive = false) {} -function svn_resolved () {} +function svn_resolved() {} /** * (PECL svn >= 0.1.0)
    @@ -385,11 +384,11 @@ function svn_resolved () {} * Returns FALSE on failure. *

    */ -function svn_commit ($log, array $targets, $recursive = true) {} +function svn_commit($log, array $targets, $recursive = true) {} -function svn_lock () {} +function svn_lock() {} -function svn_unlock () {} +function svn_unlock() {} /** * (PECL svn >= 0.1.0)
    @@ -410,7 +409,7 @@ function svn_unlock () {} *

    * @return bool TRUE on success or FALSE on failure. */ -function svn_add ($path, $recursive = true, $force = false) {} +function svn_add($path, $recursive = true, $force = false) {} /** * (PECL svn >= 0.1.0)
    @@ -506,7 +505,7 @@ function svn_add ($path, $recursive = true, $force = false) {} * cmt_author * String author of last commit. (Unaffected by update */ -function svn_status ($path, $flags = 0) {} +function svn_status($path, $flags = 0) {} /** * (PECL svn >= 0.1.0)
    @@ -524,7 +523,7 @@ function svn_status ($path, $flags = 0) {} *

    * @return int|false new revision number on success, returns FALSE on failure. */ -function svn_update ($path, $revno = SVN_REVISION_HEAD, $recurse = true) {} +function svn_update($path, $revno = SVN_REVISION_HEAD, $recurse = true) {} /** * (PECL svn >= 0.2.0)
    @@ -542,9 +541,9 @@ function svn_update ($path, $revno = SVN_REVISION_HEAD, $recurse = true) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function svn_import ($path, $url, $nonrecursive) {} +function svn_import($path, $url, $nonrecursive) {} -function svn_info () {} +function svn_info() {} /** * (PECL svn >= 0.3.0)
    @@ -562,11 +561,11 @@ function svn_info () {} * @param int $revision_no [optional] * @return bool TRUE on success or FALSE on failure. */ -function svn_export ($frompath, $topath, $working_copy = true, $revision_no = -1) {} +function svn_export($frompath, $topath, $working_copy = true, $revision_no = -1) {} -function svn_copy () {} +function svn_copy() {} -function svn_switch () {} +function svn_switch() {} /** * (PECL svn >= 0.3.0)
    @@ -582,7 +581,7 @@ function svn_switch () {} * which includes the revision number, line number, line of code, * author, and date. */ -function svn_blame ($repository_url, $revision_no = SVN_REVISION_HEAD) {} +function svn_blame($repository_url, $revision_no = SVN_REVISION_HEAD) {} /** * (PECL svn >= 0.4.0)
    @@ -599,7 +598,7 @@ function svn_blame ($repository_url, $revision_no = SVN_REVISION_HEAD) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function svn_delete ($path, $force = false) {} +function svn_delete($path, $force = false) {} /** * (PECL svn >= 0.4.0)
    @@ -611,7 +610,7 @@ function svn_delete ($path, $force = false) {} * @param string $log_message [optional] * @return bool TRUE on success or FALSE on failure. */ -function svn_mkdir ($path, $log_message = null) {} +function svn_mkdir($path, $log_message = null) {} /** * @link https://php.net/manual/en/ref.svn.php @@ -620,7 +619,7 @@ function svn_mkdir ($path, $log_message = null) {} * @param bool $force [optional] * @return mixed */ -function svn_move ($src_path, $dst_path, $force = false) {} +function svn_move($src_path, $dst_path, $force = false) {} /** * @link https://php.net/manual/en/ref.svn.php @@ -629,7 +628,7 @@ function svn_move ($src_path, $dst_path, $force = false) {} * @param int $revision [optional] * @return mixed */ -function svn_proplist ($path, $recurse = false, $revision) {} +function svn_proplist($path, $recurse = false, $revision) {} /** * @param string $path @@ -638,7 +637,7 @@ function svn_proplist ($path, $recurse = false, $revision) {} * @param int $revision [optional] * @return mixed */ -function svn_propget ($path, $property_name, $recurse = false, $revision) {} +function svn_propget($path, $property_name, $recurse = false, $revision) {} /** * (PECL svn >= 0.1.0)
    @@ -655,7 +654,7 @@ function svn_propget ($path, $property_name, $recurse = false, $revision) {} *

    * @return resource What the function returns, first on success, then on failure. */ -function svn_repos_create ($path, ?array $config = null, ?array $fsconfig = null) {} +function svn_repos_create($path, ?array $config = null, ?array $fsconfig = null) {} /** * (PECL svn >= 0.1.0)
    @@ -666,7 +665,7 @@ function svn_repos_create ($path, ?array $config = null, ?array $fsconfig = null *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_repos_recover ($path) {} +function svn_repos_recover($path) {} /** * (PECL svn >= 0.1.0)
    @@ -683,7 +682,7 @@ function svn_repos_recover ($path) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_repos_hotcopy ($repospath, $destpath, $cleanlogs) {} +function svn_repos_hotcopy($repospath, $destpath, $cleanlogs) {} /** * (PECL svn >= 0.1.0)
    @@ -694,7 +693,7 @@ function svn_repos_hotcopy ($repospath, $destpath, $cleanlogs) {} *

    * @return resource What the function returns, first on success, then on failure. */ -function svn_repos_open ($path) {} +function svn_repos_open($path) {} /** * (PECL svn >= 0.1.0)
    @@ -705,7 +704,7 @@ function svn_repos_open ($path) {} *

    * @return resource What the function returns, first on success, then on failure. */ -function svn_repos_fs ($repos) {} +function svn_repos_fs($repos) {} /** * (PECL svn >= 0.2.0)
    @@ -725,7 +724,7 @@ function svn_repos_fs ($repos) {} *

    * @return resource What the function returns, first on success, then on failure. */ -function svn_repos_fs_begin_txn_for_commit ($repos, $rev, $author, $log_msg) {} +function svn_repos_fs_begin_txn_for_commit($repos, $rev, $author, $log_msg) {} /** * (PECL svn >= 0.2.0)
    @@ -736,7 +735,7 @@ function svn_repos_fs_begin_txn_for_commit ($repos, $rev, $author, $log_msg) {} *

    * @return int What the function returns, first on success, then on failure. */ -function svn_repos_fs_commit_txn ($txn) {} +function svn_repos_fs_commit_txn($txn) {} /** * (PECL svn >= 0.1.0)
    @@ -750,7 +749,7 @@ function svn_repos_fs_commit_txn ($txn) {} *

    * @return resource What the function returns, first on success, then on failure. */ -function svn_fs_revision_root ($fs, $revnum) {} +function svn_fs_revision_root($fs, $revnum) {} /** * (PECL svn >= 0.1.0)
    @@ -764,7 +763,7 @@ function svn_fs_revision_root ($fs, $revnum) {} *

    * @return int What the function returns, first on success, then on failure. */ -function svn_fs_check_path ($fsroot, $path) {} +function svn_fs_check_path($fsroot, $path) {} /** * (PECL svn >= 0.1.0)
    @@ -781,7 +780,7 @@ function svn_fs_check_path ($fsroot, $path) {} *

    * @return string What the function returns, first on success, then on failure. */ -function svn_fs_revision_prop ($fs, $revnum, $propname) {} +function svn_fs_revision_prop($fs, $revnum, $propname) {} /** * (PECL svn >= 0.1.0)
    @@ -795,7 +794,7 @@ function svn_fs_revision_prop ($fs, $revnum, $propname) {} *

    * @return array What the function returns, first on success, then on failure. */ -function svn_fs_dir_entries ($fsroot, $path) {} +function svn_fs_dir_entries($fsroot, $path) {} /** * (PECL svn >= 0.1.0)
    @@ -809,7 +808,7 @@ function svn_fs_dir_entries ($fsroot, $path) {} *

    * @return int What the function returns, first on success, then on failure. */ -function svn_fs_node_created_rev ($fsroot, $path) {} +function svn_fs_node_created_rev($fsroot, $path) {} /** * (PECL svn >= 0.1.0)
    @@ -820,7 +819,7 @@ function svn_fs_node_created_rev ($fsroot, $path) {} *

    * @return int What the function returns, first on success, then on failure. */ -function svn_fs_youngest_rev ($fs) {} +function svn_fs_youngest_rev($fs) {} /** * (PECL svn >= 0.1.0)
    @@ -834,7 +833,7 @@ function svn_fs_youngest_rev ($fs) {} *

    * @return resource What the function returns, first on success, then on failure. */ -function svn_fs_file_contents ($fsroot, $path) {} +function svn_fs_file_contents($fsroot, $path) {} /** * (PECL svn >= 0.1.0)
    @@ -848,7 +847,7 @@ function svn_fs_file_contents ($fsroot, $path) {} *

    * @return int What the function returns, first on success, then on failure. */ -function svn_fs_file_length ($fsroot, $path) {} +function svn_fs_file_length($fsroot, $path) {} /** * (PECL svn >= 0.2.0)
    @@ -859,7 +858,7 @@ function svn_fs_file_length ($fsroot, $path) {} *

    * @return resource What the function returns, first on success, then on failure. */ -function svn_fs_txn_root ($txn) {} +function svn_fs_txn_root($txn) {} /** * (PECL svn >= 0.2.0)
    @@ -873,7 +872,7 @@ function svn_fs_txn_root ($txn) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_fs_make_file ($root, $path) {} +function svn_fs_make_file($root, $path) {} /** * (PECL svn >= 0.2.0)
    @@ -887,7 +886,7 @@ function svn_fs_make_file ($root, $path) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_fs_make_dir ($root, $path) {} +function svn_fs_make_dir($root, $path) {} /** * (PECL svn >= 0.2.0)
    @@ -901,7 +900,7 @@ function svn_fs_make_dir ($root, $path) {} *

    * @return resource What the function returns, first on success, then on failure. */ -function svn_fs_apply_text ($root, $path) {} +function svn_fs_apply_text($root, $path) {} /** * (PECL svn >= 0.2.0)
    @@ -921,7 +920,7 @@ function svn_fs_apply_text ($root, $path) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_fs_copy ($from_root, $from_path, $to_root, $to_path) {} +function svn_fs_copy($from_root, $from_path, $to_root, $to_path) {} /** * (PECL svn >= 0.2.0)
    @@ -935,7 +934,7 @@ function svn_fs_copy ($from_root, $from_path, $to_root, $to_path) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_fs_delete ($root, $path) {} +function svn_fs_delete($root, $path) {} /** * (PECL svn >= 0.2.0)
    @@ -949,7 +948,7 @@ function svn_fs_delete ($root, $path) {} *

    * @return resource What the function returns, first on success, then on failure. */ -function svn_fs_begin_txn2 ($repos, $rev) {} +function svn_fs_begin_txn2($repos, $rev) {} /** * (PECL svn >= 0.2.0)
    @@ -963,7 +962,7 @@ function svn_fs_begin_txn2 ($repos, $rev) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_fs_is_dir ($root, $path) {} +function svn_fs_is_dir($root, $path) {} /** * (PECL svn >= 0.2.0)
    @@ -977,7 +976,7 @@ function svn_fs_is_dir ($root, $path) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_fs_is_file ($root, $path) {} +function svn_fs_is_file($root, $path) {} /** * (PECL svn >= 0.1.0)
    @@ -994,7 +993,7 @@ function svn_fs_is_file ($root, $path) {} *

    * @return string What the function returns, first on success, then on failure. */ -function svn_fs_node_prop ($fsroot, $path, $propname) {} +function svn_fs_node_prop($fsroot, $path, $propname) {} /** * (PECL svn >= 0.2.0)
    @@ -1014,7 +1013,7 @@ function svn_fs_node_prop ($fsroot, $path, $propname) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_fs_change_node_prop ($root, $path, $name, $value) {} +function svn_fs_change_node_prop($root, $path, $name, $value) {} /** * (PECL svn >= 0.2.0)
    @@ -1034,7 +1033,7 @@ function svn_fs_change_node_prop ($root, $path, $name, $value) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_fs_contents_changed ($root1, $path1, $root2, $path2) {} +function svn_fs_contents_changed($root1, $path1, $root2, $path2) {} /** * (PECL svn >= 0.2.0)
    @@ -1054,7 +1053,7 @@ function svn_fs_contents_changed ($root1, $path1, $root2, $path2) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_fs_props_changed ($root1, $path1, $root2, $path2) {} +function svn_fs_props_changed($root1, $path1, $root2, $path2) {} /** * (PECL svn >= 0.2.0)
    @@ -1065,203 +1064,202 @@ function svn_fs_props_changed ($root1, $path1, $root2, $path2) {} *

    * @return bool What the function returns, first on success, then on failure. */ -function svn_fs_abort_txn ($txn) {} - +function svn_fs_abort_txn($txn) {} /** * Property for default username to use when performing basic authentication * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_AUTH_PARAM_DEFAULT_USERNAME', "svn:auth:username"); +define('SVN_AUTH_PARAM_DEFAULT_USERNAME', "svn:auth:username"); /** * Property for default password to use when performing basic authentication * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_AUTH_PARAM_DEFAULT_PASSWORD', "svn:auth:password"); -define ('SVN_AUTH_PARAM_NON_INTERACTIVE', "svn:auth:non-interactive"); -define ('SVN_AUTH_PARAM_DONT_STORE_PASSWORDS', "svn:auth:dont-store-passwords"); -define ('SVN_AUTH_PARAM_NO_AUTH_CACHE', "svn:auth:no-auth-cache"); -define ('SVN_AUTH_PARAM_SSL_SERVER_FAILURES', "svn:auth:ssl:failures"); -define ('SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO', "svn:auth:ssl:cert-info"); -define ('SVN_AUTH_PARAM_CONFIG', "svn:auth:config-category-servers"); -define ('SVN_AUTH_PARAM_SERVER_GROUP', "svn:auth:server-group"); -define ('SVN_AUTH_PARAM_CONFIG_DIR', "svn:auth:config-dir"); +define('SVN_AUTH_PARAM_DEFAULT_PASSWORD', "svn:auth:password"); +define('SVN_AUTH_PARAM_NON_INTERACTIVE', "svn:auth:non-interactive"); +define('SVN_AUTH_PARAM_DONT_STORE_PASSWORDS', "svn:auth:dont-store-passwords"); +define('SVN_AUTH_PARAM_NO_AUTH_CACHE', "svn:auth:no-auth-cache"); +define('SVN_AUTH_PARAM_SSL_SERVER_FAILURES', "svn:auth:ssl:failures"); +define('SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO', "svn:auth:ssl:cert-info"); +define('SVN_AUTH_PARAM_CONFIG', "svn:auth:config-category-servers"); +define('SVN_AUTH_PARAM_SERVER_GROUP', "svn:auth:server-group"); +define('SVN_AUTH_PARAM_CONFIG_DIR', "svn:auth:config-dir"); /** * Custom property for ignoring SSL cert verification errors * @link https://php.net/manual/en/svn.constants.php */ -define ('PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS', "php:svn:auth:ignore-ssl-verify-errors"); +define('PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS', "php:svn:auth:ignore-ssl-verify-errors"); /** * Configuration key that determines filesystem type * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_FS_CONFIG_FS_TYPE', "fs-type"); +define('SVN_FS_CONFIG_FS_TYPE', "fs-type"); /** * Filesystem is Berkeley-DB implementation * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_FS_TYPE_BDB', "bdb"); +define('SVN_FS_TYPE_BDB', "bdb"); /** * Filesystem is native-filesystem implementation * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_FS_TYPE_FSFS', "fsfs"); +define('SVN_FS_TYPE_FSFS', "fsfs"); /** * svn:date * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_PROP_REVISION_DATE', "svn:date"); +define('SVN_PROP_REVISION_DATE', "svn:date"); /** * svn:original-date * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_PROP_REVISION_ORIG_DATE', "svn:original-date"); +define('SVN_PROP_REVISION_ORIG_DATE', "svn:original-date"); /** * svn:author * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_PROP_REVISION_AUTHOR', "svn:author"); +define('SVN_PROP_REVISION_AUTHOR', "svn:author"); /** * svn:log * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_PROP_REVISION_LOG', "svn:log"); -define ('SVN_REVISION_INITIAL', 1); +define('SVN_PROP_REVISION_LOG', "svn:log"); +define('SVN_REVISION_INITIAL', 1); /** * Magic number (-1) specifying the HEAD revision * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_REVISION_HEAD', -1); -define ('SVN_REVISION_BASE', -2); -define ('SVN_REVISION_COMMITTED', -3); -define ('SVN_REVISION_PREV', -4); -define ('SVN_REVISION_UNSPECIFIED', -5); -define ('SVN_NON_RECURSIVE', 1); -define ('SVN_DISCOVER_CHANGED_PATHS', 2); -define ('SVN_OMIT_MESSAGES', 4); -define ('SVN_STOP_ON_COPY', 8); -define ('SVN_ALL', 16); -define ('SVN_SHOW_UPDATES', 32); -define ('SVN_NO_IGNORE', 64); +define('SVN_REVISION_HEAD', -1); +define('SVN_REVISION_BASE', -2); +define('SVN_REVISION_COMMITTED', -3); +define('SVN_REVISION_PREV', -4); +define('SVN_REVISION_UNSPECIFIED', -5); +define('SVN_NON_RECURSIVE', 1); +define('SVN_DISCOVER_CHANGED_PATHS', 2); +define('SVN_OMIT_MESSAGES', 4); +define('SVN_STOP_ON_COPY', 8); +define('SVN_ALL', 16); +define('SVN_SHOW_UPDATES', 32); +define('SVN_NO_IGNORE', 64); /** * Status does not exist * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_NONE', 1); +define('SVN_WC_STATUS_NONE', 1); /** * Item is not versioned in working copy * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_UNVERSIONED', 2); +define('SVN_WC_STATUS_UNVERSIONED', 2); /** * Item exists, nothing else is happening * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_NORMAL', 3); +define('SVN_WC_STATUS_NORMAL', 3); /** * Item is scheduled for addition * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_ADDED', 4); +define('SVN_WC_STATUS_ADDED', 4); /** * Item is versioned but missing from the working copy * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_MISSING', 5); +define('SVN_WC_STATUS_MISSING', 5); /** * Item is scheduled for deletion * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_DELETED', 6); +define('SVN_WC_STATUS_DELETED', 6); /** * Item was deleted and then re-added * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_REPLACED', 7); +define('SVN_WC_STATUS_REPLACED', 7); /** * Item (text or properties) was modified * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_MODIFIED', 8); +define('SVN_WC_STATUS_MODIFIED', 8); /** * Item's local modifications were merged with repository modifications * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_MERGED', 9); +define('SVN_WC_STATUS_MERGED', 9); /** * Item's local modifications conflicted with repository modifications * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_CONFLICTED', 10); +define('SVN_WC_STATUS_CONFLICTED', 10); /** * Item is unversioned but configured to be ignored * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_IGNORED', 11); +define('SVN_WC_STATUS_IGNORED', 11); /** * Unversioned item is in the way of a versioned resource * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_OBSTRUCTED', 12); +define('SVN_WC_STATUS_OBSTRUCTED', 12); /** * Unversioned path that is populated using svn:externals * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_EXTERNAL', 13); +define('SVN_WC_STATUS_EXTERNAL', 13); /** * Directory does not contain complete entries list * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_WC_STATUS_INCOMPLETE', 14); +define('SVN_WC_STATUS_INCOMPLETE', 14); /** * Absent * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_NODE_NONE', 0); +define('SVN_NODE_NONE', 0); /** * File * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_NODE_FILE', 1); +define('SVN_NODE_FILE', 1); /** * Directory * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_NODE_DIR', 2); +define('SVN_NODE_DIR', 2); /** * Something Subversion cannot identify * @link https://php.net/manual/en/svn.constants.php */ -define ('SVN_NODE_UNKNOWN', 3); -define ('SVN_WC_SCHEDULE_NORMAL', 0); -define ('SVN_WC_SCHEDULE_ADD', 1); -define ('SVN_WC_SCHEDULE_DELETE', 2); -define ('SVN_WC_SCHEDULE_REPLACE', 3); +define('SVN_NODE_UNKNOWN', 3); +define('SVN_WC_SCHEDULE_NORMAL', 0); +define('SVN_WC_SCHEDULE_ADD', 1); +define('SVN_WC_SCHEDULE_DELETE', 2); +define('SVN_WC_SCHEDULE_REPLACE', 3); diff --git a/sybase/sybase_ct.php b/sybase/sybase_ct.php index e1c818643..db7f49d7f 100644 --- a/sybase/sybase_ct.php +++ b/sybase/sybase_ct.php @@ -10,7 +10,7 @@ * @return resource|false a positive Sybase link identifier on success, or false * @removed 7.0 */ -function sybase_connect ($servername = null, $username = null, $password = null, $charset = null, $appname = null) {} +function sybase_connect($servername = null, $username = null, $password = null, $charset = null, $appname = null) {} /** * Open persistent Sybase connection @@ -23,7 +23,7 @@ function sybase_connect ($servername = null, $username = null, $password = null, * @return resource|false a positive Sybase persistent link identifier on success * @removed 7.0 */ -function sybase_pconnect ($servername = null, $username = null, $password = null, $charset = null, $appname = null) {} +function sybase_pconnect($servername = null, $username = null, $password = null, $charset = null, $appname = null) {} /** * Closes a Sybase connection @@ -32,7 +32,7 @@ function sybase_pconnect ($servername = null, $username = null, $password = null * @return bool * @removed 7.0 */ -function sybase_close ($link_identifier = null) {} +function sybase_close($link_identifier = null) {} /** * Selects a Sybase database @@ -42,7 +42,7 @@ function sybase_close ($link_identifier = null) {} * @return bool * @removed 7.0 */ -function sybase_select_db ($database_name, $link_identifier = null) {} +function sybase_select_db($database_name, $link_identifier = null) {} /** * Sends a Sybase query @@ -52,7 +52,7 @@ function sybase_select_db ($database_name, $link_identifier = null) {} * @return mixed|false a positive Sybase result identifier on success, false on error, * @removed 7.0 */ -function sybase_query ($query, $link_identifier = null) {} +function sybase_query($query, $link_identifier = null) {} /** * Send a Sybase query and do not block @@ -63,7 +63,7 @@ function sybase_query ($query, $link_identifier = null) {} * @return resource|false a positive Sybase result identifier on success, or false on * @removed 7.0 */ -function sybase_unbuffered_query ($query, $link_identifier, $store_result = null) {} +function sybase_unbuffered_query($query, $link_identifier, $store_result = null) {} /** * Frees result memory @@ -72,7 +72,7 @@ function sybase_unbuffered_query ($query, $link_identifier, $store_result = null * @return bool * @removed 7.0 */ -function sybase_free_result ($result) {} +function sybase_free_result($result) {} /** * Returns the last message from the server @@ -80,7 +80,7 @@ function sybase_free_result ($result) {} * @return string the message as a string. * @removed 7.0 */ -function sybase_get_last_message () {} +function sybase_get_last_message() {} /** * Get number of rows in a result set @@ -89,7 +89,7 @@ function sybase_get_last_message () {} * @return int the number of rows as an integer. * @removed 7.0 */ -function sybase_num_rows ($result) {} +function sybase_num_rows($result) {} /** * Gets the number of fields in a result set @@ -98,7 +98,7 @@ function sybase_num_rows ($result) {} * @return int the number of fields as an integer. * @removed 7.0 */ -function sybase_num_fields ($result) {} +function sybase_num_fields($result) {} /** * Get a result row as an enumerated array @@ -107,7 +107,7 @@ function sybase_num_fields ($result) {} * @return array|false an array that corresponds to the fetched row, or false if there * @removed 7.0 */ -function sybase_fetch_row ($result) {} +function sybase_fetch_row($result) {} /** * Fetch row as array @@ -116,7 +116,7 @@ function sybase_fetch_row ($result) {} * @return array|false an array that corresponds to the fetched row, or false if there * @removed 7.0 */ -function sybase_fetch_array ($result) {} +function sybase_fetch_array($result) {} /** * Fetch a result row as an associative array @@ -125,7 +125,7 @@ function sybase_fetch_array ($result) {} * @return array|false an array that corresponds to the fetched row, or false if there * @removed 7.0 */ -function sybase_fetch_assoc ($result) {} +function sybase_fetch_assoc($result) {} /** * Fetch a row as an object @@ -135,7 +135,7 @@ function sybase_fetch_assoc ($result) {} * @return object an object with properties that correspond to the fetched row, or * @removed 7.0 */ -function sybase_fetch_object ($result, $object = null) {} +function sybase_fetch_object($result, $object = null) {} /** * Moves internal row pointer @@ -145,7 +145,7 @@ function sybase_fetch_object ($result, $object = null) {} * @return bool * @removed 7.0 */ -function sybase_data_seek ($result_identifier, $row_number) {} +function sybase_data_seek($result_identifier, $row_number) {} /** * Get field information from a result @@ -155,7 +155,7 @@ function sybase_data_seek ($result_identifier, $row_number) {} * @return object an object containing field information. * @removed 7.0 */ -function sybase_fetch_field ($result, $field_offset = null) {} +function sybase_fetch_field($result, $field_offset = null) {} /** * Sets field offset @@ -165,7 +165,7 @@ function sybase_fetch_field ($result, $field_offset = null) {} * @return bool * @removed 7.0 */ -function sybase_field_seek ($result, $field_offset) {} +function sybase_field_seek($result, $field_offset) {} /** * Get result data @@ -176,7 +176,7 @@ function sybase_field_seek ($result, $field_offset) {} * @return string * @removed 7.0 */ -function sybase_result ($result, $row, $field) {} +function sybase_result($result, $row, $field) {} /** * Gets number of affected rows in last query @@ -185,7 +185,7 @@ function sybase_result ($result, $row, $field) {} * @return int the number of affected rows, as an integer. * @removed 7.0 */ -function sybase_affected_rows ($link_identifier = null) {} +function sybase_affected_rows($link_identifier = null) {} /** * Sets minimum client severity @@ -194,7 +194,7 @@ function sybase_affected_rows ($link_identifier = null) {} * @return void * @removed 7.0 */ -function sybase_min_client_severity ($severity) {} +function sybase_min_client_severity($severity) {} /** * Sets minimum server severity @@ -203,7 +203,7 @@ function sybase_min_client_severity ($severity) {} * @return void * @removed 7.0 */ -function sybase_min_server_severity ($severity) {} +function sybase_min_server_severity($severity) {} /** * Sets the handler called when a server message is raised @@ -213,7 +213,7 @@ function sybase_min_server_severity ($severity) {} * @return bool * @removed 7.0 */ -function sybase_set_message_handler ($handler, $connection = null) {} +function sybase_set_message_handler($handler, $connection = null) {} /** * Sets the deadlock retry count @@ -222,4 +222,4 @@ function sybase_set_message_handler ($handler, $connection = null) {} * @return void * @removed 7.0 */ -function sybase_deadlock_retry_count ($retry_count) {} +function sybase_deadlock_retry_count($retry_count) {} diff --git a/sync/sync.php b/sync/sync.php index 004016dbc..7c2ac0cf9 100644 --- a/sync/sync.php +++ b/sync/sync.php @@ -11,7 +11,8 @@ * * @link https://php.net/manual/en/class.syncmutex.php */ -class SyncMutex { +class SyncMutex +{ /** * Constructs a new SyncMutex object * @@ -21,7 +22,7 @@ class SyncMutex { * @throws Exception if the mutex cannot be created or opened * @link https://php.net/manual/en/syncmutex.construct.php */ - public function __construct ( string $name ) {} + public function __construct(string $name) {} /** * Waits for an exclusive lock @@ -33,7 +34,7 @@ public function __construct ( string $name ) {} * @see SyncMutex::unlock() * @link https://php.net/manual/en/syncmutex.lock.php */ - public function lock ( int $wait = -1 ) {} + public function lock(int $wait = -1) {} /** * Unlocks the mutex @@ -45,7 +46,7 @@ public function lock ( int $wait = -1 ) {} * @see SyncMutex::lock() * @link https://php.net/manual/en/syncmutex.unlock.php */ - public function unlock ( bool $all = false ) {} + public function unlock(bool $all = false) {} } /** @@ -56,7 +57,8 @@ public function unlock ( bool $all = false ) {} * * @link https://php.net/manual/en/class.syncsemaphore.php */ -class SyncSemaphore { +class SyncSemaphore +{ /** * Constructs a new SyncSemaphore object * @@ -68,7 +70,7 @@ class SyncSemaphore { * @throws Exception if the semaphore cannot be created or opened * @link https://php.net/manual/en/syncsemaphore.construct.php */ - public function __construct ( string $name, int $initialval = 1, bool $autounlock = true ) {} + public function __construct(string $name, int $initialval = 1, bool $autounlock = true) {} /** * Decreases the count of the semaphore or waits @@ -80,7 +82,7 @@ public function __construct ( string $name, int $initialval = 1, bool $autounloc * @see SyncSemaphore::unlock() * @link https://php.net/manual/en/syncsemaphore.lock.php */ - public function lock ( int $wait = -1 ) {} + public function lock(int $wait = -1) {} /** * Increases the count of the semaphore @@ -92,7 +94,7 @@ public function lock ( int $wait = -1 ) {} * @see SyncSemaphore::lock() * @link https://php.net/manual/en/syncsemaphore.unlock.php */ - public function unlock ( int &$prevcount ) {} + public function unlock(int &$prevcount) {} } /** @@ -103,7 +105,8 @@ public function unlock ( int &$prevcount ) {} * * @link https://php.net/manual/en/class.syncevent.php */ -class SyncEvent { +class SyncEvent +{ /** * SyncEvent constructor. * @@ -115,7 +118,7 @@ class SyncEvent { * @since 1.1.0 Added $prefire * @link https://php.net/manual/en/syncevent.construct.php */ - public function __construct ( string $name, bool $manual = false, bool $prefire = false ) {} + public function __construct(string $name, bool $manual = false, bool $prefire = false) {} /** * Fires/sets the event @@ -126,7 +129,7 @@ public function __construct ( string $name, bool $manual = false, bool $prefire * @see SyncEvent::wait() * @link https://php.net/manual/en/syncevent.fire.php */ - public function fire () {} + public function fire() {} /** * Resets a manual event @@ -136,7 +139,7 @@ public function fire () {} * @return bool TRUE if the object was successfully reset, FALSE otherwise. * @link https://php.net/manual/en/syncevent.reset.php */ - public function reset () {} + public function reset() {} /** * Waits for the event to be fired/set @@ -148,7 +151,7 @@ public function reset () {} * @see SyncEvent::fire() * @link https://php.net/manual/en/syncevent.wait.php */ - public function wait ( int $wait = -1 ) {} + public function wait(int $wait = -1) {} } /** @@ -159,7 +162,8 @@ public function wait ( int $wait = -1 ) {} * * @link https://php.net/manual/en/class.syncreaderwriter.php */ -class SyncReaderWriter { +class SyncReaderWriter +{ /** * Constructs a new SyncReaderWriter object * @@ -170,7 +174,7 @@ class SyncReaderWriter { * @throws Exception if the reader-writer cannot be created or opened. * @link https://php.net/manual/en/syncreaderwriter.construct.php */ - public function __construct ( string $name, bool $autounlock = true ) {} + public function __construct(string $name, bool $autounlock = true) {} /** * Waits for a read lock @@ -182,7 +186,7 @@ public function __construct ( string $name, bool $autounlock = true ) {} * @see SyncReaderWriter::readunlock() * @link https://php.net/manual/en/syncreaderwriter.readlock.php */ - public function readlock ( int $wait = -1 ) {} + public function readlock(int $wait = -1) {} /** * Releases a read lock @@ -193,7 +197,7 @@ public function readlock ( int $wait = -1 ) {} * @see SyncReaderWriter::readlock() * @link https://php.net/manual/en/syncreaderwriter.readunlock.php */ - public function readunlock () {} + public function readunlock() {} /** * Waits for an exclusive write lock @@ -205,7 +209,7 @@ public function readunlock () {} * @see SyncReaderWriter::writeunlock() * @link https://php.net/manual/en/syncreaderwriter.writelock.php */ - public function writelock ( int $wait = -1 ) {} + public function writelock(int $wait = -1) {} /** * Releases a write lock @@ -216,7 +220,7 @@ public function writelock ( int $wait = -1 ) {} * @see SyncReaderWriter::writelock() * @link https://php.net/manual/en/syncreaderwriter.writeunlock.php */ - public function writeunlock () {} + public function writeunlock() {} } /** @@ -229,7 +233,8 @@ public function writeunlock () {} * @since 1.1.0 * @link https://php.net/manual/en/class.syncsharedmemory.php */ -class SyncSharedMemory { +class SyncSharedMemory +{ /** * Constructs a new SyncSharedMemory object * @@ -240,7 +245,7 @@ class SyncSharedMemory { * @throws Exception if the shared memory object cannot be created or opened. * @link https://php.net/manual/en/syncsharedmemory.construct.php */ - public function __construct ( string $name, int $size ) {} + public function __construct(string $name, int $size) {} /** * Check to see if the object is the first instance system-wide of named shared memory @@ -250,7 +255,7 @@ public function __construct ( string $name, int $size ) {} * @return bool TRUE if the object is the first instance system-wide, FALSE otherwise. * @link https://php.net/manual/en/syncsharedmemory.first.php */ - public function first () {} + public function first() {} /** * Copy data from named shared memory @@ -263,7 +268,7 @@ public function first () {} * @see SyncSharedMemory::write() * @link https://php.net/manual/en/syncsharedmemory.read.php */ - public function read ( int $start = 0, int $length ) {} + public function read(int $start = 0, int $length) {} /** * Returns the size of the named shared memory @@ -273,7 +278,7 @@ public function read ( int $start = 0, int $length ) {} * @return int containing the size of the shared memory. This will be the same size that was passed to the constructor. * @link https://php.net/manual/en/syncsharedmemory.size.php */ - public function size () {} + public function size() {} /** * Copy data to named shared memory @@ -285,5 +290,5 @@ public function size () {} * @return int containing the number of bytes written to shared memory. * @link https://php.net/manual/en/syncsharedmemory.write.php */ - public function write ( string $string, int $start = 0 ) {} + public function write(string $string, int $start = 0) {} } diff --git a/sysvmsg/sysvmsg.php b/sysvmsg/sysvmsg.php index 9535368df..cc6131cf1 100644 --- a/sysvmsg/sysvmsg.php +++ b/sysvmsg/sysvmsg.php @@ -16,7 +16,7 @@ * @return resource|SysvMessageQueue|false a resource handle that can be used to access the System V message queue. */ #[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue|false"], default: "resource|false")] -function msg_get_queue (int $key, int $permissions = 0666) {} +function msg_get_queue(int $key, int $permissions = 0666) {} /** * Send a message to a message queue @@ -54,7 +54,7 @@ function msg_get_queue (int $key, int $permissions = 0666) {} * msg_stime is set to the current time. *

    */ -function msg_send (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue, int $message_type, $message, bool $serialize = true, bool $blocking = true, &$error_code): bool {} +function msg_send(#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue, int $message_type, $message, bool $serialize = true, bool $blocking = true, &$error_code): bool {} /** * Receive a message from a message queue @@ -141,7 +141,7 @@ function msg_send (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], defau * msg_rtime is set to the current time. *

    */ -function msg_receive (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue, int $desired_message_type, &$received_message_type, int $max_message_size, mixed &$message, bool $unserialize = true, int $flags = 0, &$error_code): bool {} +function msg_receive(#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue, int $desired_message_type, &$received_message_type, int $max_message_size, mixed &$message, bool $unserialize = true, int $flags = 0, &$error_code): bool {} /** * Destroy a message queue @@ -151,7 +151,7 @@ function msg_receive (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], de *

    * @return bool TRUE on success or FALSE on failure. */ -function msg_remove_queue (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue): bool {} +function msg_remove_queue(#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue): bool {} /** * Returns information from the message queue data structure @@ -227,7 +227,7 @@ function msg_remove_queue (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue" * * */ -function msg_stat_queue (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue): array|false {} +function msg_stat_queue(#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue): array|false {} /** * Set information in the message queue data structure @@ -241,7 +241,7 @@ function msg_stat_queue (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], *

    * @return bool TRUE on success or FALSE on failure. */ -function msg_set_queue (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue, array $data): bool {} +function msg_set_queue(#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue, array $data): bool {} /** * Check whether a message queue exists @@ -251,24 +251,24 @@ function msg_set_queue (#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], *

    * @return bool TRUE on success or FALSE on failure. */ -function msg_queue_exists (int $key): bool {} +function msg_queue_exists(int $key): bool {} -define ('MSG_IPC_NOWAIT', 1); -define ('MSG_EAGAIN', 11); -define ('MSG_ENOMSG', 42); -define ('MSG_NOERROR', 2); -define ('MSG_EXCEPT', 4); +define('MSG_IPC_NOWAIT', 1); +define('MSG_EAGAIN', 11); +define('MSG_ENOMSG', 42); +define('MSG_NOERROR', 2); +define('MSG_EXCEPT', 4); /** * @since 8.0 */ -final class SysvMessageQueue{ +final class SysvMessageQueue +{ /** * Cannot directly construct SysvMessageQueue, use msg_get_queue() instead * @see msg_get_queue() */ - private function __construct(){} + private function __construct() {} } // End of sysvmsg v. -?> diff --git a/sysvsem/sysvsem.php b/sysvsem/sysvsem.php index abb6da1a5..0623c279c 100644 --- a/sysvsem/sysvsem.php +++ b/sysvsem/sysvsem.php @@ -24,7 +24,7 @@ * error. */ #[LanguageLevelTypeAware(["8.0" => "SysvSemaphore|false"], default: "resource|false")] -function sem_get (int $key, int $max_acquire = 1, int $permissions = 0666, bool $auto_release = true) {} +function sem_get(int $key, int $max_acquire = 1, int $permissions = 0666, bool $auto_release = true) {} /** * Acquire a semaphore @@ -40,7 +40,7 @@ function sem_get (int $key, int $max_acquire = 1, int $permissions = 0666, bool *

    * @return bool TRUE on success or FALSE on failure. */ -function sem_acquire (#[LanguageLevelTypeAware(["8.0" => "SysvSemaphore"], default: "resource")] $semaphore, bool $non_blocking = false): bool {} +function sem_acquire(#[LanguageLevelTypeAware(["8.0" => "SysvSemaphore"], default: "resource")] $semaphore, bool $non_blocking = false): bool {} /** * Release a semaphore @@ -51,7 +51,7 @@ function sem_acquire (#[LanguageLevelTypeAware(["8.0" => "SysvSemaphore"], defau *

    * @return bool TRUE on success or FALSE on failure. */ -function sem_release (#[LanguageLevelTypeAware(["8.0" => "SysvSemaphore"], default: "resource")] $semaphore): bool {} +function sem_release(#[LanguageLevelTypeAware(["8.0" => "SysvSemaphore"], default: "resource")] $semaphore): bool {} /** * Remove a semaphore @@ -62,18 +62,18 @@ function sem_release (#[LanguageLevelTypeAware(["8.0" => "SysvSemaphore"], defau *

    * @return bool TRUE on success or FALSE on failure. */ -function sem_remove (#[LanguageLevelTypeAware(["8.0" => "SysvSemaphore"], default: "resource")] $semaphore): bool {} +function sem_remove(#[LanguageLevelTypeAware(["8.0" => "SysvSemaphore"], default: "resource")] $semaphore): bool {} /** * @since 8.0 */ -final class SysvSemaphore{ +final class SysvSemaphore +{ /** * Cannot directly construct SysvSemaphore, use sem_get() instead * @see sem_get() */ - private function __construct(){} + private function __construct() {} } // End of sysvsem v. -?> diff --git a/sysvshm/sysvshm.php b/sysvshm/sysvshm.php index cc834ea93..8cfddfc5e 100644 --- a/sysvshm/sysvshm.php +++ b/sysvshm/sysvshm.php @@ -20,7 +20,7 @@ * @return resource|SysvSharedMemory|false a shared memory segment identifier. */ #[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory|false"], default: "resource|false")] -function shm_attach (int $key, ?int $size, int $permissions = 0666) {} +function shm_attach(int $key, ?int $size, int $permissions = 0666) {} /** * Removes shared memory from Unix systems @@ -31,7 +31,7 @@ function shm_attach (int $key, ?int $size, int $permissions = 0666) {} *

    * @return bool TRUE on success or FALSE on failure. */ -function shm_remove (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm): bool {} +function shm_remove(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm): bool {} /** * Disconnects from shared memory segment @@ -42,7 +42,7 @@ function shm_remove (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], def *

    * @return bool shm_detach always returns TRUE. */ -function shm_detach (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm): bool {} +function shm_detach(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm): bool {} /** * Inserts or updates a variable in shared memory @@ -62,7 +62,7 @@ function shm_detach (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], def *

    * @return bool TRUE on success or FALSE on failure. */ -function shm_put_var (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key, mixed $value): bool {} +function shm_put_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key, mixed $value): bool {} /** * Check whether a specific entry exists @@ -75,7 +75,7 @@ function shm_put_var (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], de *

    * @return bool TRUE if the entry exists, otherwise FALSE */ -function shm_has_var (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key): bool {} +function shm_has_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key): bool {} /** * Returns a variable from shared memory @@ -88,7 +88,7 @@ function shm_has_var (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], de *

    * @return mixed the variable with the given key. */ -function shm_get_var (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key): mixed {} +function shm_get_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key): mixed {} /** * Removes a variable from shared memory @@ -102,19 +102,18 @@ function shm_get_var (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], de *

    * @return bool TRUE on success or FALSE on failure. */ -function shm_remove_var (#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key): bool {} +function shm_remove_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key): bool {} /** * @since 8.0 */ -final class SysvSharedMemory{ +final class SysvSharedMemory +{ /** * Cannot directly construct SysvSharedMemory, use shm_attach() instead * @see shm_attach() */ - private function __construct(){} + private function __construct() {} } - // End of sysvshm v. -?> diff --git a/tests/Model/BasePHPElement.php b/tests/Model/BasePHPElement.php index a292285ab..cfbcb8a48 100644 --- a/tests/Model/BasePHPElement.php +++ b/tests/Model/BasePHPElement.php @@ -51,7 +51,7 @@ public static function getFQN(Node $node): string } } } else { - /**@var string $part */ + /** @var string $part */ foreach ($node->namespacedName->parts as $part) { $fqn .= "$part\\"; } @@ -100,10 +100,10 @@ protected static function getTypeNameFromNode(Name|Identifier|NullableType|strin } if (empty($type->name)) { if (!empty($type->parts)) { - $typeName = $nullable ? '?' . implode('\\', $type->parts) : implode('\\', $type->parts); + $typeName = $nullable ? '?' . implode('\\', $type->parts) : implode('\\', $type->parts); } } else { - $typeName = $nullable ? '?' . $type->name : $type->name; + $typeName = $nullable ? '?' . $type->name : $type->name; } return $typeName; } diff --git a/tests/Model/PHPDocElement.php b/tests/Model/PHPDocElement.php index 9ef952fd0..b42b36e52 100644 --- a/tests/Model/PHPDocElement.php +++ b/tests/Model/PHPDocElement.php @@ -56,7 +56,7 @@ trait PHPDocElement public bool $hasInternalMetaTag = false; - protected function collectTags(Node $node): void{ + protected function collectTags(Node $node): void { if ($node->getDocComment() !== null) { try { $text = $node->getDocComment()->getText(); diff --git a/tests/Model/PHPFunction.php b/tests/Model/PHPFunction.php index 92f098f06..80a945ee5 100644 --- a/tests/Model/PHPFunction.php +++ b/tests/Model/PHPFunction.php @@ -25,13 +25,13 @@ class PHPFunction extends BasePHPElement */ public array $parameters = []; - /** @var string[] $returnTypesFromPhpDoc */ + /** @var string[] */ public array $returnTypesFromPhpDoc = []; - /** @var string[] $returnTypesFromAttribute */ + /** @var string[] */ public array $returnTypesFromAttribute = []; - /** @var string[] $returnTypesFromSignature */ + /** @var string[] */ public array $returnTypesFromSignature = []; /** @@ -67,7 +67,7 @@ public function readObjectFromStubNode($node): static $this->collectTags($node); foreach ($this->parameters as $parameter) { - $relatedParamTags = array_filter($this->paramTags, fn(Param $tag) => $tag->getVariableName() === $parameter->name); + $relatedParamTags = array_filter($this->paramTags, fn (Param $tag) => $tag->getVariableName() === $parameter->name); /** @var Param $relatedParamTag */ $relatedParamTag = array_pop($relatedParamTags); if (!empty($relatedParamTag)){ diff --git a/tests/Model/PHPMethod.php b/tests/Model/PHPMethod.php index 99f7ced5e..d29fb0767 100644 --- a/tests/Model/PHPMethod.php +++ b/tests/Model/PHPMethod.php @@ -63,7 +63,7 @@ public function readObjectFromStubNode($node): static } foreach ($this->parameters as $parameter) { - $relatedParamTags = array_filter($this->paramTags, fn(Param $tag) => $tag->getVariableName() === $parameter->name); + $relatedParamTags = array_filter($this->paramTags, fn (Param $tag) => $tag->getVariableName() === $parameter->name); /** @var Param $relatedParamTag */ $relatedParamTag = array_pop($relatedParamTags); if (!empty($relatedParamTag)) { diff --git a/tests/Model/PHPParameter.php b/tests/Model/PHPParameter.php index be16da913..23b8faa43 100644 --- a/tests/Model/PHPParameter.php +++ b/tests/Model/PHPParameter.php @@ -9,9 +9,9 @@ class PHPParameter extends BasePHPElement { - /** @var string[] $types */ + /** @var string[] */ public array $typesFromSignature = []; - /** @var string[] $types */ + /** @var string[] */ public array $typesFromAttribute = []; public bool $is_vararg = false; public bool $is_passed_by_ref = false; diff --git a/tests/Model/PHPProperty.php b/tests/Model/PHPProperty.php index 3f7c6761d..a069c420c 100644 --- a/tests/Model/PHPProperty.php +++ b/tests/Model/PHPProperty.php @@ -13,8 +13,7 @@ class PHPProperty extends BasePHPElement public string $access = ''; public bool $is_static = false; - public function __construct(public ?string $parentName = null){ - } + public function __construct(public ?string $parentName = null) {} /** * @param ReflectionProperty $reflectionObject @@ -59,7 +58,6 @@ public function readObjectFromStubNode($node): static } $this->access = $access; - $this->type = $node->type->name ?? ''; $parentNode = $node->getAttribute('parent'); diff --git a/tests/Model/StubsContainer.php b/tests/Model/StubsContainer.php index d6cdfe4c2..482536459 100644 --- a/tests/Model/StubsContainer.php +++ b/tests/Model/StubsContainer.php @@ -41,7 +41,7 @@ public function addConstant(PHPConst $constant): void if (isset($constant->name)) { if (array_key_exists($constant->name, $this->constants)) { $amount = count(array_filter($this->constants, - fn(PHPConst $nextConstant) => $nextConstant->name === $constant->name)); + fn (PHPConst $nextConstant) => $nextConstant->name === $constant->name)); $this->constants[$constant->name . '_duplicated_' . $amount] = $constant; } else { $this->constants[$constant->name] = $constant; @@ -65,12 +65,12 @@ public function getFunctions(): array */ public function getFunction(string $name, ?string $sourceFilePath = null): ?PHPFunction { - $functions = array_filter($this->functions, fn(PHPFunction $function): bool => $function->name === $name); + $functions = array_filter($this->functions, fn (PHPFunction $function): bool => $function->name === $name); if (count($functions) === 1) { return array_pop($functions); } else { if ($sourceFilePath !== null) { - $functions = array_filter($functions, fn(PHPFunction $function) => $function->sourceFilePath === $sourceFilePath); + $functions = array_filter($functions, fn (PHPFunction $function) => $function->sourceFilePath === $sourceFilePath); } if (count($functions) > 1) { throw new RuntimeException("Multiple functions with name $name found"); @@ -87,7 +87,7 @@ public function addFunction(PHPFunction $function): void if (isset($function->name)) { if (array_key_exists($function->name, $this->functions)) { $amount = count(array_filter($this->functions, - fn(PHPFunction $nextFunction) => $nextFunction->name === $function->name)); + fn (PHPFunction $nextFunction) => $nextFunction->name === $function->name)); $this->functions[$function->name . '_duplicated_' . $amount] = $function; } else { $this->functions[$function->name] = $function; @@ -103,12 +103,12 @@ public function addFunction(PHPFunction $function): void */ public function getClass(string $name, ?string $sourceFilePath = null): ?PHPClass { - $classes = array_filter($this->classes, fn(PHPClass $class): bool => $class->name === $name); + $classes = array_filter($this->classes, fn (PHPClass $class): bool => $class->name === $name); if (count($classes) === 1) { return array_pop($classes); } else { if ($sourceFilePath !== null) { - $classes = array_filter($classes, fn(PHPClass $class) => $class->sourceFilePath === $sourceFilePath); + $classes = array_filter($classes, fn (PHPClass $class) => $class->sourceFilePath === $sourceFilePath); } if (count($classes) > 1) { throw new RuntimeException("Multiple classes with name $name found"); @@ -133,7 +133,7 @@ public function getClasses(): array */ public function getCoreClasses(): array { - return array_filter($this->classes, fn(PHPClass $class): bool => $class->stubBelongsToCore === true); + return array_filter($this->classes, fn (PHPClass $class): bool => $class->stubBelongsToCore === true); } /** @@ -144,7 +144,7 @@ public function addClass(PHPClass $class): void if (isset($class->name)) { if (array_key_exists($class->name, $this->classes)) { $amount = count(array_filter($this->classes, - fn(PHPClass $nextClass) => $nextClass->name === $class->name)); + fn (PHPClass $nextClass) => $nextClass->name === $class->name)); $this->classes[$class->name . '_duplicated_' . $amount] = $class; } else { $this->classes[$class->name] = $class; @@ -160,12 +160,12 @@ public function addClass(PHPClass $class): void */ public function getInterface(string $name, ?string $sourceFilePath = null): ?PHPInterface { - $interfaces = array_filter($this->interfaces, fn(PHPInterface $interface): bool => $interface->name === $name); + $interfaces = array_filter($this->interfaces, fn (PHPInterface $interface): bool => $interface->name === $name); if (count($interfaces) === 1) { return array_pop($interfaces); } else { if ($sourceFilePath !== null) { - $interfaces = array_filter($interfaces, fn(PHPInterface $interface) => $interface->sourceFilePath === $sourceFilePath); + $interfaces = array_filter($interfaces, fn (PHPInterface $interface) => $interface->sourceFilePath === $sourceFilePath); } if (count($interfaces) > 1) { throw new RuntimeException("Multiple interfaces with name $name found"); @@ -190,7 +190,7 @@ public function getInterfaces(): array */ public function getCoreInterfaces(): array { - return array_filter($this->interfaces, fn(PHPInterface $interface): bool => $interface->stubBelongsToCore === true); + return array_filter($this->interfaces, fn (PHPInterface $interface): bool => $interface->stubBelongsToCore === true); } /** @@ -201,7 +201,7 @@ public function addInterface(PHPInterface $interface): void if (isset($interface->name)) { if (array_key_exists($interface->name, $this->interfaces)) { $amount = count(array_filter($this->interfaces, - fn(PHPInterface $nextInterface) => $nextInterface->name === $interface->name)); + fn (PHPInterface $nextInterface) => $nextInterface->name === $interface->name)); $this->interfaces[$interface->name . '_duplicated_' . $amount] = $interface; } else { $this->interfaces[$interface->name] = $interface; diff --git a/tests/Parsers/DocFactoryProvider.php b/tests/Parsers/DocFactoryProvider.php index bd8baf03d..d13216fc5 100644 --- a/tests/Parsers/DocFactoryProvider.php +++ b/tests/Parsers/DocFactoryProvider.php @@ -13,7 +13,7 @@ class DocFactoryProvider public static function getDocFactory(): DocBlockFactory { if (self::$docFactory === null) { - self::$docFactory = DocBlockFactory::createInstance(['removed'=>RemovedTag::class]); + self::$docFactory = DocBlockFactory::createInstance(['removed' => RemovedTag::class]); } return self::$docFactory; } diff --git a/tests/Parsers/ExpectedFunctionArgumentsInfo.php b/tests/Parsers/ExpectedFunctionArgumentsInfo.php index bb9bc5048..8a86a9a90 100644 --- a/tests/Parsers/ExpectedFunctionArgumentsInfo.php +++ b/tests/Parsers/ExpectedFunctionArgumentsInfo.php @@ -1,21 +1,20 @@ $file->getFilename() === '.phpstorm.meta.php'); + StubParser::processStubs($this, null, fn (SplFileInfo $file): bool => $file->getFilename() === '.phpstorm.meta.php'); } public function enterNode(Node $node): void @@ -107,7 +107,7 @@ private function unpackArguments(array $expressions): array */ private function getExpectedArgumentsInfo(?Expr $functionReference, $args, $index = -1): ExpectedFunctionArgumentsInfo { - $expressions = array_map(fn(Arg $arg): Expr => $arg->value, $args); + $expressions = array_map(fn (Arg $arg): Expr => $arg->value, $args); return new ExpectedFunctionArgumentsInfo($functionReference, $this->unpackArguments($expressions), $index); } } diff --git a/tests/Parsers/PHPReflectionParser.php b/tests/Parsers/PHPReflectionParser.php index 72eb3b2e0..dcfd4e61d 100644 --- a/tests/Parsers/PHPReflectionParser.php +++ b/tests/Parsers/PHPReflectionParser.php @@ -13,7 +13,6 @@ class PHPReflectionParser { - public static function getStubs(): StubsContainer { $stubs = new StubsContainer(); diff --git a/tests/Parsers/StubParser.php b/tests/Parsers/StubParser.php index 496591bdd..947f23351 100644 --- a/tests/Parsers/StubParser.php +++ b/tests/Parsers/StubParser.php @@ -36,7 +36,7 @@ public static function getPhpStormStubs(): StubsContainer $visitor = new ASTVisitor(self::$stubs); $coreStubVisitor = new CoreStubASTVisitor(self::$stubs); self::processStubs($visitor, $coreStubVisitor, - fn(SplFileInfo $file): bool => $file->getFilename() !== '.phpstorm.meta.php'); + fn (SplFileInfo $file): bool => $file->getFilename() !== '.phpstorm.meta.php'); $jsonData = json_decode(file_get_contents(__DIR__ . '/../TestData/mutedProblems.json')); foreach (self::$stubs->getInterfaces() as $interface) { diff --git a/tests/Parsers/StubsParserErrorHandler.php b/tests/Parsers/StubsParserErrorHandler.php index c7a2685e7..3c48dd4b4 100644 --- a/tests/Parsers/StubsParserErrorHandler.php +++ b/tests/Parsers/StubsParserErrorHandler.php @@ -8,7 +8,6 @@ class StubsParserErrorHandler implements ErrorHandler { - public function handleError(Error $error): void { $error->setRawMessage($error->getRawMessage() . "\n" . $error->getFile()); diff --git a/tests/Parsers/Utils.php b/tests/Parsers/Utils.php index 00e5b6ebb..24dfc9b13 100644 --- a/tests/Parsers/Utils.php +++ b/tests/Parsers/Utils.php @@ -95,7 +95,7 @@ public static function getAvailableInVersions(BasePHPElement $element): array $lastAvailableVersion = PhpVersions::getLatest(); } return array_filter(iterator_to_array(new PhpVersions()), - fn($version) => $version >= $firstSinceVersion && $version <= $lastAvailableVersion); + fn ($version) => $version >= $firstSinceVersion && $version <= $lastAvailableVersion); } /** @@ -106,7 +106,7 @@ private static function getSinceVersionsFromPhpDoc(BasePHPElement $element): arr { $allSinceVersions = []; if (!empty($element->sinceTags) && $element->stubBelongsToCore) { - $allSinceVersions[] = array_map(fn(Since $tag) => (float)$tag->getVersion(), $element->sinceTags); + $allSinceVersions[] = array_map(fn (Since $tag) => (float)$tag->getVersion(), $element->sinceTags); } return $allSinceVersions; } @@ -119,7 +119,7 @@ private static function getLatestAvailableVersionFromPhpDoc(BasePHPElement $elem { $latestAvailableVersion = [PhpVersions::getLatest()]; if (!empty($element->removedTags) && $element->stubBelongsToCore) { - $allRemovedVersions = array_map(fn(RemovedTag $tag) => (float)$tag->getVersion(), $element->removedTags); + $allRemovedVersions = array_map(fn (RemovedTag $tag) => (float)$tag->getVersion(), $element->removedTags); sort($allRemovedVersions, SORT_DESC); $removedVersion = array_pop($allRemovedVersions); $allVersions = new PhpVersions(); diff --git a/tests/Parsers/Visitors/ASTVisitor.php b/tests/Parsers/Visitors/ASTVisitor.php index 8e3038aa5..c22d1cb8e 100644 --- a/tests/Parsers/Visitors/ASTVisitor.php +++ b/tests/Parsers/Visitors/ASTVisitor.php @@ -27,9 +27,7 @@ class ASTVisitor extends NodeVisitorAbstract { public function __construct(protected StubsContainer $stubs, protected bool $isStubCore = false, - public ?string $sourceFilePath = null) - { - } + public ?string $sourceFilePath = null) {} /** * @param Node $node @@ -116,7 +114,7 @@ public function combineParentInterfaces(PHPInterface $interface): array if (empty($interface->parentInterfaces)) { return $parents; } - /**@var string $parentInterface */ + /** @var string $parentInterface */ foreach ($interface->parentInterfaces as $parentInterface) { $parents[] = $parentInterface; if ($this->stubs->getInterface($parentInterface, @@ -138,7 +136,7 @@ public function combineParentInterfaces(PHPInterface $interface): array public function combineImplementedInterfaces(PHPClass $class): array { $interfaces = []; - /**@var string $interface */ + /** @var string $interface */ foreach ($class->interfaces as $interface) { $interfaces[] = $interface; if ($this->stubs->getInterface($interface, diff --git a/tests/Parsers/Visitors/MetaOverrideFunctionsParser.php b/tests/Parsers/Visitors/MetaOverrideFunctionsParser.php index f225dd24b..035d331a2 100644 --- a/tests/Parsers/Visitors/MetaOverrideFunctionsParser.php +++ b/tests/Parsers/Visitors/MetaOverrideFunctionsParser.php @@ -23,7 +23,7 @@ public function __construct() { $this->overridenFunctions = []; StubParser::processStubs($this, null, - fn(SplFileInfo $file): bool => $file->getFilename() === '.phpstorm.meta.php'); + fn (SplFileInfo $file): bool => $file->getFilename() === '.phpstorm.meta.php'); } /** diff --git a/tests/StubsMetaExpectedArgumentsTest.php b/tests/StubsMetaExpectedArgumentsTest.php index 2a7449a7c..5de3dbb09 100644 --- a/tests/StubsMetaExpectedArgumentsTest.php +++ b/tests/StubsMetaExpectedArgumentsTest.php @@ -40,7 +40,7 @@ public static function setUpBeforeClass(): void self::$expectedArguments = $argumentsCollector->getExpectedArgumentsInfos(); self::$registeredArgumentsSet = $argumentsCollector->getRegisteredArgumentsSet(); $stubs = PhpStormStubsSingleton::getPhpStormStubs(); - self::$functionsFqns = array_map(fn(PHPFunction $func) => self::toPresentableFqn($func->name), $stubs->getFunctions()); + self::$functionsFqns = array_map(fn (PHPFunction $func) => self::toPresentableFqn($func->name), $stubs->getFunctions()); self::$methodsFqns = self::getMethodsFqns($stubs); self::$constantsFqns = self::getConstantsFqns($stubs); } @@ -56,7 +56,7 @@ private static function flatten(array $array): array public static function getConstantsFqns(StubsContainer $stubs): array { - $constants = array_map(fn(PHPConst $constant) => self::toPresentableFqn($constant->name), $stubs->getConstants()); + $constants = array_map(fn (PHPConst $constant) => self::toPresentableFqn($constant->name), $stubs->getConstants()); foreach ($stubs->getClasses() as $class) { foreach ($class->constants as $classConstant) { $name = self::getClassMemberFqn($class->name, $classConstant->name); @@ -69,7 +69,7 @@ public static function getConstantsFqns(StubsContainer $stubs): array public static function getMethodsFqns(StubsContainer $stubs): array { return self::flatten( - array_map(fn(PHPClass $class) => array_map(fn(PHPMethod $method) => self::getClassMemberFqn($class->name, $method->name), $class->methods), $stubs->getClasses())); + array_map(fn (PHPClass $class) => array_map(fn (PHPMethod $method) => self::getClassMemberFqn($class->name, $method->name), $class->methods), $stubs->getClasses())); } /** diff --git a/tests/StubsMetaInternalTagTest.php b/tests/StubsMetaInternalTagTest.php index c3fed7876..962b2b10e 100644 --- a/tests/StubsMetaInternalTagTest.php +++ b/tests/StubsMetaInternalTagTest.php @@ -32,7 +32,7 @@ public function testFunctionInternalMetaTag(): void foreach ($functions as $function) { if ($function->hasInternalMetaTag) { $reflectionFunctions = array_filter(ReflectionStubsSingleton::getReflectionStubs()->getFunctions(), - fn($refFunction) => $refFunction->name === $function->name); + fn ($refFunction) => $refFunction->name === $function->name); $reflectionFunction = array_pop($reflectionFunctions); if (!$reflectionFunction->hasMutedProblem(StubProblemType::ABSENT_IN_META)) { self::checkInternalMetaInOverride($function->name); @@ -52,7 +52,7 @@ public function testMethodsInternalMetaTag(): void $refClass = ReflectionStubsSingleton::getReflectionStubs()->getClass($className); if ($refClass !== null) { $reflectionMethods = array_filter($refClass->methods, - fn($refMethod) => $refMethod->name === $methodName); + fn ($refMethod) => $refMethod->name === $methodName); /** @var PHPMethod $reflectionMethod */ $reflectionMethod = array_pop($reflectionMethods); if ($reflectionMethod->hasMutedProblem(StubProblemType::ABSENT_IN_META)) { diff --git a/tests/StubsParameterNamesTest.php b/tests/StubsParameterNamesTest.php index 91c30b255..e6b4ead1d 100644 --- a/tests/StubsParameterNamesTest.php +++ b/tests/StubsParameterNamesTest.php @@ -22,7 +22,7 @@ public function testFunctionsParameterNames(PHPFunction $function, PHPParameter { $phpstormFunction = PhpStormStubsSingleton::getPhpStormStubs()->getFunction($function->name); self::assertNotEmpty(array_filter($phpstormFunction->parameters, - fn(PHPParameter $stubParameter) => $stubParameter->name === $parameter->name), + fn (PHPParameter $stubParameter) => $stubParameter->name === $parameter->name), "Function {$function->name} has signature {$function->name}(" . self::printParameters($function->parameters) . ')' . " but stub function has signature {$phpstormFunction->name}(" . self::printParameters($phpstormFunction->parameters) . ')'); } @@ -41,7 +41,7 @@ public function testMethodsParameterNames(PHPClass|PHPInterface $reflectionClass $stubMethod = PhpStormStubsSingleton::getPhpStormStubs()->getInterface($className)->methods[$methodName]; } self::assertNotEmpty(array_filter($stubMethod->parameters, - fn(PHPParameter $stubParameter) => $stubParameter->name === $reflectionParameter->name), + fn (PHPParameter $stubParameter) => $stubParameter->name === $reflectionParameter->name), "Method $className::$methodName has signature $methodName(" . self::printParameters($reflectionMethod->parameters) . ')' . " but stub function has signature $methodName(" . self::printParameters($stubMethod->parameters) . ')'); } diff --git a/tests/StubsTest.php b/tests/StubsTest.php index 08bf794a1..e4bd4305f 100644 --- a/tests/StubsTest.php +++ b/tests/StubsTest.php @@ -186,7 +186,7 @@ public function testFunctionsDuplicates() public function testFunctionsOptionalParameters(PHPFunction $function, PHPParameter $parameter) { $phpstormFunction = PhpStormStubsSingleton::getPhpStormStubs()->getFunction($function->name); - $stubParameters = array_filter($phpstormFunction->parameters, fn(PHPParameter $stubParameter) => $stubParameter->name === $parameter->name); + $stubParameters = array_filter($phpstormFunction->parameters, fn (PHPParameter $stubParameter) => $stubParameter->name === $parameter->name); /** @var PHPParameter $stubOptionalParameter */ $stubOptionalParameter = array_pop($stubParameters); self::assertEquals($parameter->isOptional, $stubOptionalParameter->isOptional, @@ -202,7 +202,7 @@ public function testFunctionsOptionalParameters(PHPFunction $function, PHPParame public function testFunctionsDefaultParametersValue(PHPFunction $function, PHPParameter $parameter) { $phpstormFunction = PhpStormStubsSingleton::getPhpStormStubs()->getFunction($function->name); - $stubParameters = array_filter($phpstormFunction->parameters, fn(PHPParameter $stubParameter) => $stubParameter->name === $parameter->name); + $stubParameters = array_filter($phpstormFunction->parameters, fn (PHPParameter $stubParameter) => $stubParameter->name === $parameter->name); /** @var PHPParameter $stubOptionalParameter */ $stubOptionalParameter = array_pop($stubParameters); $reflectionValue = self::getStringRepresentationOfDefaultParameterValue($parameter->defaultValue); @@ -226,7 +226,7 @@ public function testMethodsDefaultParametersValue(PHPClass|PHPInterface $class, } else { $phpstormFunction = PhpStormStubsSingleton::getPhpStormStubs()->getInterface($class->name)->methods[$method->name]; } - $stubParameters = array_filter($phpstormFunction->parameters, fn(PHPParameter $stubParameter) => $stubParameter->name === $parameter->name); + $stubParameters = array_filter($phpstormFunction->parameters, fn (PHPParameter $stubParameter) => $stubParameter->name === $parameter->name); /** @var PHPParameter $stubOptionalParameter */ $stubOptionalParameter = array_pop($stubParameters); $reflectionValue = self::getStringRepresentationOfDefaultParameterValue($parameter->defaultValue); @@ -250,7 +250,7 @@ public function testMethodsOptionalParameters(PHPClass|PHPInterface $class, PHPM } else { $phpstormFunction = PhpStormStubsSingleton::getPhpStormStubs()->getInterface($class->name)->methods[$method->name]; } - $stubParameters = array_filter($phpstormFunction->parameters, fn(PHPParameter $stubParameter) => $stubParameter->name === $parameter->name); + $stubParameters = array_filter($phpstormFunction->parameters, fn (PHPParameter $stubParameter) => $stubParameter->name === $parameter->name); /** @var PHPParameter $stubOptionalParameter */ $stubOptionalParameter = array_pop($stubParameters); self::assertEquals($parameter->isOptional, $stubOptionalParameter->isOptional, @@ -498,13 +498,13 @@ public function testClassesExist(PHPClass|PHPInterface $class): void public function testImplodeFunctionIsCorrect() { $implodeFunctions = array_filter(PhpStormStubsSingleton::getPhpStormStubs()->getFunctions(), - fn(PHPFunction $function) => $function->name === 'implode'); + fn (PHPFunction $function) => $function->name === 'implode'); self::assertCount(1, $implodeFunctions); /** @var PHPFunction $implodeFunction */ $implodeFunction = array_pop($implodeFunctions); $implodeParameters = $implodeFunction->parameters; - $separatorParameters = array_filter($implodeParameters, fn(PHPParameter $parameter) => $parameter->name === 'separator'); - $arrayParameters = array_filter($implodeParameters, fn(PHPParameter $parameter) => $parameter->name === 'array'); + $separatorParameters = array_filter($implodeParameters, fn (PHPParameter $parameter) => $parameter->name === 'separator'); + $arrayParameters = array_filter($implodeParameters, fn (PHPParameter $parameter) => $parameter->name === 'array'); /** @var PHPParameter $separatorParameter */ $separatorParameter = array_pop($separatorParameters); /** @var PHPParameter $arrayParameter */ @@ -543,7 +543,7 @@ private static function getParameterRepresentation(PHPFunction $function): strin private static function getAllDuplicatesOfFunction(?string $name): array { return array_filter(PhpStormStubsSingleton::getPhpStormStubs()->getFunctions(), - fn($duplicateValue, $duplicateKey) => str_contains($duplicateValue->name, $name) && str_contains($duplicateKey, 'duplicated'), ARRAY_FILTER_USE_BOTH); + fn ($duplicateValue, $duplicateKey) => str_contains($duplicateValue->name, $name) && str_contains($duplicateKey, 'duplicated'), ARRAY_FILTER_USE_BOTH); } /** @@ -558,7 +558,7 @@ private static function getDuplicatedFunctions(array $filtered): array $duplicatesOfFunction = self::getAllDuplicatesOfFunction($value->name); $functionVersions[] = Utils::getAvailableInVersions( PhpStormStubsSingleton::getPhpStormStubs()->getFunction($value->name)); - array_push($functionVersions, ...array_values(array_map(fn(PHPFunction $function) => Utils::getAvailableInVersions($function), $duplicatesOfFunction))); + array_push($functionVersions, ...array_values(array_map(fn (PHPFunction $function) => Utils::getAvailableInVersions($function), $duplicatesOfFunction))); $hasDuplicates = false; $current = array_pop($functionVersions); $next = array_pop($functionVersions); @@ -573,7 +573,7 @@ private static function getDuplicatedFunctions(array $filtered): array } return false; }, ARRAY_FILTER_USE_BOTH); - return array_unique(array_map(fn(PHPFunction $function) => $function->name, $duplicatedFunctions)); + return array_unique(array_map(fn (PHPFunction $function) => $function->name, $duplicatedFunctions)); } /** @@ -602,16 +602,16 @@ function (PHPConst $const) use ($defaultValue) { } elseif ($defaultValue instanceof BitwiseOr) { if ($defaultValue->left instanceof ConstFetch && $defaultValue->right instanceof ConstFetch) { $constants = array_filter(PhpStormStubsSingleton::getPhpStormStubs()->getConstants(), - fn(PHPConst $const) => property_exists($defaultValue->left, 'name') && + fn (PHPConst $const) => property_exists($defaultValue->left, 'name') && $const->name === (string)$defaultValue->left->name); /** @var PHPConst $leftConstant */ $leftConstant = array_pop($constants); $constants = array_filter(PhpStormStubsSingleton::getPhpStormStubs()->getConstants(), - fn(PHPConst $const) => property_exists($defaultValue->right, 'name') && + fn (PHPConst $const) => property_exists($defaultValue->right, 'name') && $const->name === (string)$defaultValue->right->name); /** @var PHPConst $rightConstant */ $rightConstant = array_pop($constants); - $value = $leftConstant->value | $rightConstant->value; + $value = $leftConstant->value|$rightConstant->value; } } elseif ($defaultValue instanceof UnaryMinus && property_exists($defaultValue->expr, 'value')) { $value = '-' . strval($defaultValue->expr->value); @@ -628,7 +628,7 @@ function (PHPConst $const) use ($defaultValue) { if ((string)$defaultValue->name === 'class') { $value = (string)$defaultValue->class; } else { - $constants = array_filter($parentClass->constants, fn(PHPConst $const) => $const->name === (string)$defaultValue->name); + $constants = array_filter($parentClass->constants, fn (PHPConst $const) => $const->name === (string)$defaultValue->name); /** @var PHPConst $constant */ $constant = array_pop($constants); $value = $constant->value; diff --git a/tests/StubsTypeHintsTest.php b/tests/StubsTypeHintsTest.php index c761b4515..6fcfa60ae 100644 --- a/tests/StubsTypeHintsTest.php +++ b/tests/StubsTypeHintsTest.php @@ -27,7 +27,7 @@ public function testFunctionsReturnTypeHints(PHPFunction $function) { $functionName = $function->name; $allEqualStubFunctions = EntitiesFilter::getFiltered(PhpStormStubsSingleton::getPhpStormStubs()->getFunctions(), - fn(PHPFunction $stubFunction) => $stubFunction->name !== $functionName || + fn (PHPFunction $stubFunction) => $stubFunction->name !== $functionName || !in_array(PhpVersions::getLatest(), Utils::getAvailableInVersions($stubFunction))); /** @var PHPFunction $stubFunction */ $stubFunction = array_pop($allEqualStubFunctions); @@ -50,7 +50,7 @@ public function testFunctionsParametersTypeHints(PHPFunction $function, PHPParam { $functionName = $function->name; $phpstormFunction = PhpStormStubsSingleton::getPhpStormStubs()->getFunction($functionName); - $stubParameter = current(array_filter($phpstormFunction->parameters, fn(PHPParameter $stubParameter) => $stubParameter->name === $parameter->name)); + $stubParameter = current(array_filter($phpstormFunction->parameters, fn (PHPParameter $stubParameter) => $stubParameter->name === $parameter->name)); self::assertNotFalse($stubParameter, "Parameter $$parameter->name not found at $phpstormFunction->name(" . StubsParameterNamesTest::printParameters($phpstormFunction->parameters) . ')'); self::compareTypeHintsWithReflection($parameter, $stubParameter, $functionName); @@ -97,7 +97,7 @@ public function testMethodsParametersTypeHints(PHPClass|PHPInterface $reflection $stubMethod = PhpStormStubsSingleton::getPhpStormStubs()->getInterface($className)->methods[$methodName]; } $stubParameter = current(array_filter($stubMethod->parameters, - fn(PHPParameter $stubParameter) => $stubParameter->name === $reflectionParameter->name)); + fn (PHPParameter $stubParameter) => $stubParameter->name === $reflectionParameter->name)); self::assertNotFalse($stubParameter, "Parameter $$reflectionParameter->name not found at $reflectionClass->name::$stubMethod->name(" . StubsParameterNamesTest::printParameters($stubMethod->parameters) . ')'); @@ -135,7 +135,7 @@ public static function testMethodDoesNotHaveScalarTypeHintsInParameters(PHPClass public static function testMethodDoesNotHaveNullableTypeHintsInParameters(PHPClass|PHPInterface $class, PHPMethod $stubMethod, PHPParameter $parameter) { $sinceVersion = Utils::getDeclaredSinceVersion($stubMethod); - self::assertEmpty(array_filter($parameter->typesFromSignature, fn(string $type) => str_contains($type, '?')), + self::assertEmpty(array_filter($parameter->typesFromSignature, fn (string $type) => str_contains($type, '?')), "Method '$class->name::$stubMethod->name' with @since '$sinceVersion' has nullable parameter '$parameter->name' with typehint '" . implode('|', $parameter->typesFromSignature) . "' but nullable typehints available only since php 7.1"); @@ -178,7 +178,7 @@ public static function testMethodDoesNotHaveNullableReturnTypeHint(PHPMethod $st { $sinceVersion = Utils::getDeclaredSinceVersion($stubMethod); $returnTypes = $stubMethod->returnTypesFromSignature; - self::assertEmpty(array_filter($returnTypes, fn(string $type) => str_contains($type, '?')), + self::assertEmpty(array_filter($returnTypes, fn (string $type) => str_contains($type, '?')), "Method '$stubMethod->parentName::$stubMethod->name' has since version '$sinceVersion' but has nullable return typehint '" . implode('|', $returnTypes) . "' that supported only since PHP 7.1. Please declare return type via PhpDoc"); @@ -208,10 +208,10 @@ public static function testMethodDoesNotHaveUnionReturnTypeHint(PHPMethod $stubM public function testMethodScalarTypeHintsInParametersMatchReflection(PHPClass|PHPInterface $class, PHPMethod $stubMethod, PHPParameter $stubParameter) { $reflectionMethods = array_filter(ReflectionStubsSingleton::getReflectionStubs()->getClass($class->name)->methods, - fn(PHPMethod $method) => $method->name === $stubMethod->name); + fn (PHPMethod $method) => $method->name === $stubMethod->name); /** @var PHPMethod $reflectionMethod */ $reflectionMethod = array_pop($reflectionMethods); - $reflectionParameters = array_filter($reflectionMethod->parameters, fn(PHPParameter $parameter) => $parameter->name === $stubParameter->name); + $reflectionParameters = array_filter($reflectionMethod->parameters, fn (PHPParameter $parameter) => $parameter->name === $stubParameter->name); $reflectionParameter = array_pop($reflectionParameters); self::compareTypeHintsWithReflection($reflectionParameter, $stubParameter, $stubMethod->name); } @@ -226,10 +226,10 @@ public function testMethodScalarTypeHintsInParametersMatchReflection(PHPClass|PH public function testMethodNullableTypeHintsInParametersMatchReflection(PHPClass|PHPInterface $class, PHPMethod $stubMethod, PHPParameter $stubParameter) { $reflectionMethods = array_filter(ReflectionStubsSingleton::getReflectionStubs()->getClass($class->name)->methods, - fn(PHPMethod $method) => $method->name === $stubMethod->name); + fn (PHPMethod $method) => $method->name === $stubMethod->name); /** @var PHPMethod $reflectionMethod */ $reflectionMethod = array_pop($reflectionMethods); - $reflectionParameters = array_filter($reflectionMethod->parameters, fn(PHPParameter $parameter) => $parameter->name === $stubParameter->name); + $reflectionParameters = array_filter($reflectionMethod->parameters, fn (PHPParameter $parameter) => $parameter->name === $stubParameter->name); $reflectionParameter = array_pop($reflectionParameters); self::compareTypeHintsWithReflection($reflectionParameter, $stubParameter, $stubMethod->name); } @@ -244,10 +244,10 @@ public function testMethodNullableTypeHintsInParametersMatchReflection(PHPClass| public function testMethodUnionTypeHintsInParametersMatchReflection(PHPClass|PHPInterface $class, PHPMethod $stubMethod, PHPParameter $stubParameter) { $reflectionMethods = array_filter(ReflectionStubsSingleton::getReflectionStubs()->getClass($class->name)->methods, - fn(PHPMethod $method) => $method->name === $stubMethod->name); + fn (PHPMethod $method) => $method->name === $stubMethod->name); /** @var PHPMethod $reflectionMethod */ $reflectionMethod = array_pop($reflectionMethods); - $reflectionParameters = array_filter($reflectionMethod->parameters, fn(PHPParameter $parameter) => $parameter->name === $stubParameter->name); + $reflectionParameters = array_filter($reflectionMethod->parameters, fn (PHPParameter $parameter) => $parameter->name === $stubParameter->name); $reflectionParameter = array_pop($reflectionParameters); self::compareTypeHintsWithReflection($reflectionParameter, $stubParameter, $stubMethod->name); } @@ -329,7 +329,7 @@ private static function getStringRepresentationOfTypeHintsFromAttributes(array $ private static function ifReflectionTypesExistInAttributes(array $reflectionTypes, array $typesFromAttribute): bool { return !empty(array_filter($typesFromAttribute, - fn(array $types) => count(array_intersect($reflectionTypes, $types)) == count($reflectionTypes))); + fn (array $types) => count(array_intersect($reflectionTypes, $types)) == count($reflectionTypes))); } private static function ifReflectionTypesExistInSignature(array $reflectionTypes, array $typesFromSignature): bool diff --git a/tests/TestData/Providers/EntitiesFilter.php b/tests/TestData/Providers/EntitiesFilter.php index a06640f52..ce0f4b20a 100644 --- a/tests/TestData/Providers/EntitiesFilter.php +++ b/tests/TestData/Providers/EntitiesFilter.php @@ -72,7 +72,7 @@ public static function getFilteredParameters(PHPFunction $function, callable $ad public static function getFilterFunctionForLanguageLevel(float $languageVersion): callable { - return fn(PHPClass|PHPInterface $class, PHPMethod $method, ?float $firstSinceVersion) => $class !== null && !$method->isFinal && !$class->isFinal && $firstSinceVersion !== null && + return fn (PHPClass|PHPInterface $class, PHPMethod $method, ?float $firstSinceVersion) => $class !== null && !$method->isFinal && !$class->isFinal && $firstSinceVersion !== null && $firstSinceVersion < $languageVersion; } @@ -82,7 +82,7 @@ public static function getFilterFunctionForAllowedTypeHintsInLanguageLevel(float $reflectionClass = ReflectionStubsSingleton::getReflectionStubs()->getClass($stubClass->name); $reflectionMethod = null; if ($reflectionClass !== null) { - $reflectionMethods = array_filter($reflectionClass->methods, fn(PHPMethod $method) => $stubMethod->name === $method->name); + $reflectionMethods = array_filter($reflectionClass->methods, fn (PHPMethod $method) => $stubMethod->name === $method->name); $reflectionMethod = array_pop($reflectionMethods); } return $reflectionMethod !== null && ($stubMethod->isFinal || $stubClass->isFinal || $firstSinceVersion !== null && diff --git a/tests/TestData/Providers/Reflection/ReflectionClassesTestDataProviders.php b/tests/TestData/Providers/Reflection/ReflectionClassesTestDataProviders.php index 0ebcceb48..856aea87e 100644 --- a/tests/TestData/Providers/Reflection/ReflectionClassesTestDataProviders.php +++ b/tests/TestData/Providers/Reflection/ReflectionClassesTestDataProviders.php @@ -27,7 +27,7 @@ public static function allClassesProvider(): ?Generator public static function classesWithInterfacesProvider(): ?Generator { foreach (EntitiesFilter::getFiltered(ReflectionStubsSingleton::getReflectionStubs()->getClasses(), - fn(PHPClass $class) => empty($class->interfaces), StubProblemType::WRONG_INTERFACE) as $class) { + fn (PHPClass $class) => empty($class->interfaces), StubProblemType::WRONG_INTERFACE) as $class) { //exclude classes from PHPReflectionParser if (strncmp($class->name, 'PHP', 3) !== 0) { yield "class $class->name" => [$class]; @@ -41,7 +41,7 @@ public static function classWithParentProvider(): ?Generator ReflectionStubsSingleton::getReflectionStubs()->getInterfaces(); $filtered = EntitiesFilter::getFiltered( $classesAndInterfaces, - fn(PHPClass|PHPInterface $class) => empty($class->parentInterfaces) && empty($class->parentClass), + fn (PHPClass|PHPInterface $class) => empty($class->parentInterfaces) && empty($class->parentClass), StubProblemType::WRONG_PARENT); foreach ($filtered as $class) { yield "class $class->name" => [$class]; diff --git a/tests/TestData/Providers/Reflection/ReflectionParametersProvider.php b/tests/TestData/Providers/Reflection/ReflectionParametersProvider.php index fc615c85e..dc5fd9f77 100644 --- a/tests/TestData/Providers/Reflection/ReflectionParametersProvider.php +++ b/tests/TestData/Providers/Reflection/ReflectionParametersProvider.php @@ -24,7 +24,7 @@ public static function functionParametersProvider(): ?Generator public static function functionOptionalParametersProvider(): ?Generator { foreach (EntitiesFilter::getFilteredFunctions() as $function) { - foreach (EntitiesFilter::getFilteredParameters($function, fn(PHPParameter $parameter) => !$parameter->isOptional, + foreach (EntitiesFilter::getFilteredParameters($function, fn (PHPParameter $parameter) => !$parameter->isOptional, StubProblemType::PARAMETER_TYPE_MISMATCH) as $parameter) { yield "$function->name($parameter->name)" => [$function, $parameter]; } @@ -35,7 +35,7 @@ public static function functionOptionalParametersWithDefaultValueProvider(): ?Ge { foreach (EntitiesFilter::getFilteredFunctions() as $function) { foreach (EntitiesFilter::getFilteredParameters($function, - fn(PHPParameter $parameter) => !$parameter->isOptional || empty($parameter->defaultValue), + fn (PHPParameter $parameter) => !$parameter->isOptional || empty($parameter->defaultValue), StubProblemType::PARAMETER_TYPE_MISMATCH, StubProblemType::WRONG_PARAMETER_DEFAULT_VALUE) as $parameter) { yield "$function->name($parameter->name)" => [$function, $parameter]; @@ -67,7 +67,7 @@ public static function methodOptionalParametersProvider(): ?Generator //exclude classes from PHPReflectionParser if (strncmp($class->name, 'PHP', 3) !== 0) { foreach (EntitiesFilter::getFilteredFunctions($class) as $method) { - foreach (EntitiesFilter::getFilteredParameters($method, fn(PHPParameter $parameter) => !$parameter->isOptional, + foreach (EntitiesFilter::getFilteredParameters($method, fn (PHPParameter $parameter) => !$parameter->isOptional, StubProblemType::PARAMETER_TYPE_MISMATCH) as $parameter) { yield "$class->name::$method->name($parameter->name)" => [$class, $method, $parameter]; } @@ -85,7 +85,7 @@ public static function methodOptionalParametersWithDefaultValueProvider(): ?Gene if (strncmp($class->name, 'PHP', 3) !== 0) { foreach (EntitiesFilter::getFilteredFunctions($class) as $method) { foreach (EntitiesFilter::getFilteredParameters($method, - fn(PHPParameter $parameter) => !$parameter->isOptional || empty($parameter->defaultValue), + fn (PHPParameter $parameter) => !$parameter->isOptional || empty($parameter->defaultValue), StubProblemType::PARAMETER_TYPE_MISMATCH, StubProblemType::WRONG_PARAMETER_DEFAULT_VALUE) as $parameter) { yield "$class->name::$method->name($parameter->name)" => [$class, $method, $parameter]; diff --git a/tests/TestData/Providers/Reflection/ReflectionPropertiesProvider.php b/tests/TestData/Providers/Reflection/ReflectionPropertiesProvider.php index 3baa133d6..9858d0e95 100644 --- a/tests/TestData/Providers/Reflection/ReflectionPropertiesProvider.php +++ b/tests/TestData/Providers/Reflection/ReflectionPropertiesProvider.php @@ -36,7 +36,7 @@ private static function yieldFilteredMethods(int ...$problemTypes): ?Generator $classesAndInterfaces = ReflectionStubsSingleton::getReflectionStubs()->getClasses(); foreach (EntitiesFilter::getFiltered($classesAndInterfaces) as $class) { foreach (EntitiesFilter::getFiltered($class->properties, - fn(PHPProperty $property) => $property->access === 'private', ...$problemTypes) as $property) { + fn (PHPProperty $property) => $property->access === 'private', ...$problemTypes) as $property) { yield "Property $class->name::$property->name" => [$class, $property]; } } diff --git a/tests/TestData/Providers/Stubs/PhpCoreStubsProvider.php b/tests/TestData/Providers/Stubs/PhpCoreStubsProvider.php index b45911a14..084786ae2 100644 --- a/tests/TestData/Providers/Stubs/PhpCoreStubsProvider.php +++ b/tests/TestData/Providers/Stubs/PhpCoreStubsProvider.php @@ -150,6 +150,5 @@ public static function getCoreStubsDirectories(): array $coreStubs[] = self::$StubDirectoryMap['BUNDLED']; $coreStubs[] = self::$StubDirectoryMap['EXTERNAL']; return Utils::flattenArray($coreStubs, false); - } } diff --git a/tests/TestData/Providers/Stubs/StubMethodsProvider.php b/tests/TestData/Providers/Stubs/StubMethodsProvider.php index dfaf67ef3..db6e8fe8c 100644 --- a/tests/TestData/Providers/Stubs/StubMethodsProvider.php +++ b/tests/TestData/Providers/Stubs/StubMethodsProvider.php @@ -32,13 +32,12 @@ public static function allFunctionAndMethodsWithReturnTypeHintsProvider(): ?Gene $filteredMethods = []; foreach (EntitiesFilter::getFiltered($coreClassesAndInterfaces) as $className => $class) { $filteredMethods = EntitiesFilter::getFiltered($class->methods, - fn(PHPMethod $method) => empty($method->returnTypesFromSignature) || empty($method->returnTypesFromPhpDoc) + fn (PHPMethod $method) => empty($method->returnTypesFromSignature) || empty($method->returnTypesFromPhpDoc) || $method->parentName === '___PHPSTORM_HELPERS\object', StubProblemType::TYPE_IN_PHPDOC_DIFFERS_FROM_SIGNATURE); - } $filteredMethods += EntitiesFilter::getFiltered($allFunctions, - fn(PHPFunction $function) => empty($function->returnTypesFromSignature) || empty($function->returnTypesFromPhpDoc), + fn (PHPFunction $function) => empty($function->returnTypesFromSignature) || empty($function->returnTypesFromPhpDoc), StubProblemType::TYPE_IN_PHPDOC_DIFFERS_FROM_SIGNATURE); foreach ($filteredMethods as $methodName => $method) { if ($method instanceof PHPMethod) { @@ -76,7 +75,7 @@ private static function yieldFilteredMethods(callable $filterFunction, int ...$p PhpStormStubsSingleton::getPhpStormStubs()->getCoreInterfaces(); foreach (EntitiesFilter::getFiltered($coreClassesAndInterfaces) as $className => $class) { foreach (EntitiesFilter::getFiltered($class->methods, - fn(PHPMethod $method) => $method->parentName === '___PHPSTORM_HELPERS\object', ...$problemTypes) as $methodName => $method) { + fn (PHPMethod $method) => $method->parentName === '___PHPSTORM_HELPERS\object', ...$problemTypes) as $methodName => $method) { $firstSinceVersion = Utils::getDeclaredSinceVersion($method); if ($filterFunction($class, $method, $firstSinceVersion) === true) { yield "method $className::$methodName" => [$method]; diff --git a/tests/TestData/Providers/Stubs/StubsParametersProvider.php b/tests/TestData/Providers/Stubs/StubsParametersProvider.php index aa2349d15..26a0047fd 100644 --- a/tests/TestData/Providers/Stubs/StubsParametersProvider.php +++ b/tests/TestData/Providers/Stubs/StubsParametersProvider.php @@ -32,13 +32,13 @@ public static function parametersForUnionTypeHintTestsProvider(): ?Generator public static function parametersForAllowedScalarTypeHintTestsProvider(): ?Generator { $filterFunction = EntitiesFilter::getFilterFunctionForAllowedTypeHintsInLanguageLevel(7); - return self::yieldFilteredMethodParameters($filterFunction,StubProblemType::PARAMETER_TYPE_MISMATCH); + return self::yieldFilteredMethodParameters($filterFunction, StubProblemType::PARAMETER_TYPE_MISMATCH); } public static function parametersForAllowedNullableTypeHintTestsProvider(): ?Generator { $filterFunction = EntitiesFilter::getFilterFunctionForAllowedTypeHintsInLanguageLevel(7.1); - return self::yieldFilteredMethodParameters($filterFunction,StubProblemType::PARAMETER_TYPE_MISMATCH); + return self::yieldFilteredMethodParameters($filterFunction, StubProblemType::PARAMETER_TYPE_MISMATCH); } public static function parametersForAllowedUnionTypeHintTestsProvider(): ?Generator diff --git a/tidy/tidy.php b/tidy/tidy.php index cf1b9a29b..21e958630 100644 --- a/tidy/tidy.php +++ b/tidy/tidy.php @@ -6,448 +6,446 @@ * An HTML node in an HTML file, as detected by tidy. * @link https://php.net/manual/en/class.tidy.php */ -class tidy { - /** - * @var string The last warnings and errors from TidyLib - */ - public $errorBuffer; - - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Returns the value of the specified configuration option for the tidy document - * @link https://php.net/manual/en/tidy.getopt.php - * @param string $option

    - * You will find a list with each configuration option and their types - * at: http://tidy.sourceforge.net/docs/quickref.html. - *

    - * @return mixed the value of the specified option. - * The return type depends on the type of the specified one. - */ - public function getOpt ($option) {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Execute configured cleanup and repair operations on parsed markup - * @link https://php.net/manual/en/tidy.cleanrepair.php - * @return bool TRUE on success or FALSE on failure. - */ - public function cleanRepair () {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Parse markup in file or URI - * @link https://php.net/manual/en/tidy.parsefile.php - * @param string $filename

    - * If the filename parameter is given, this function - * will also read that file and initialize the object with the file, - * acting like tidy_parse_file. - *

    - * @param mixed $config [optional]

    - * The config config can be passed either as an - * array or as a string. If a string is passed, it is interpreted as the - * name of the configuration file, otherwise, it is interpreted as the - * options themselves. - *

    - *

    - * For an explanation about each option, see - * http://tidy.sourceforge.net/docs/quickref.html. - *

    - * @param string|null $encoding [optional]

    - * The encoding parameter sets the encoding for - * input/output documents. The possible values for encoding are: - * ascii, latin0, latin1, - * raw, utf8, iso2022, - * mac, win1252, ibm858, - * utf16, utf16le, utf16be, - * big5, and shiftjis. - *

    - * @param bool $use_include_path [optional]

    - * Search for the file in the include_path. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function parseFile ($filename, $config = null, $encoding = null, $use_include_path = false) {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Parse a document stored in a string - * @link https://php.net/manual/en/tidy.parsestring.php - * @param string $input

    - * The data to be parsed. - *

    - * @param mixed $config [optional]

    - * The config config can be passed either as an - * array or as a string. If a string is passed, it is interpreted as the - * name of the configuration file, otherwise, it is interpreted as the - * options themselves. - *

    - *

    - * For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html. - *

    - * @param string|null $encoding [optional]

    - * The encoding parameter sets the encoding for - * input/output documents. The possible values for encoding are: - * ascii, latin0, latin1, - * raw, utf8, iso2022, - * mac, win1252, ibm858, - * utf16, utf16le, utf16be, - * big5, and shiftjis. - *

    - * @return bool a new tidy instance. - */ - public function parseString ($input, $config = null, $encoding = null) {} - - /** - * (PHP 5, PECL tidy >= 0.7.0)
    - * Repair a string using an optionally provided configuration file - * @link https://php.net/manual/en/tidy.repairstring.php - * @param string $data

    - * The data to be repaired. - *

    - * @param mixed $config [optional]

    - * The config config can be passed either as an - * array or as a string. If a string is passed, it is interpreted as the - * name of the configuration file, otherwise, it is interpreted as the - * options themselves. - *

    - *

    - * Check http://tidy.sourceforge.net/docs/quickref.html for - * an explanation about each option. - *

    - * @param string|null $encoding [optional]

    - * The encoding parameter sets the encoding for - * input/output documents. The possible values for encoding are: - * ascii, latin0, latin1, - * raw, utf8, iso2022, - * mac, win1252, ibm858, - * utf16, utf16le, utf16be, - * big5, and shiftjis. - *

    - * @return string the repaired string. - */ - public function repairString ($data, $config = null, $encoding = null) {} - - /** - * (PHP 5, PECL tidy >= 0.7.0)
    - * Repair a file and return it as a string - * @link https://php.net/manual/en/tidy.repairfile.php - * @param string $filename

    - * The file to be repaired. - *

    - * @param mixed $config [optional]

    - * The config config can be passed either as an - * array or as a string. If a string is passed, it is interpreted as the - * name of the configuration file, otherwise, it is interpreted as the - * options themselves. - *

    - *

    - * Check http://tidy.sourceforge.net/docs/quickref.html for an - * explanation about each option. - *

    - * @param string|null $encoding [optional]

    - * The encoding parameter sets the encoding for - * input/output documents. The possible values for encoding are: - * ascii, latin0, latin1, - * raw, utf8, iso2022, - * mac, win1252, ibm858, - * utf16, utf16le, utf16be, - * big5, and shiftjis. - *

    - * @param bool $use_include_path [optional]

    - * Search for the file in the include_path. - *

    - * @return string the repaired contents as a string. - */ - public function repairFile ($filename, $config = null, $encoding = null, $use_include_path = false) {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Run configured diagnostics on parsed and repaired markup - * @link https://php.net/manual/en/tidy.diagnose.php - * @return bool TRUE on success or FALSE on failure. - */ - public function diagnose () {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Get release date (version) for Tidy library - * @link https://php.net/manual/en/tidy.getrelease.php - * @return string a string with the release date of the Tidy library. - */ - public function getRelease () {} - - /** - * (PHP 5, PECL tidy >= 0.7.0)
    - * Get current Tidy configuration - * @link https://php.net/manual/en/tidy.getconfig.php - * @return array an array of configuration options. - *

    - *

    - * For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html. - */ - public function getConfig () {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Get status of specified document - * @link https://php.net/manual/en/tidy.getstatus.php - * @return int 0 if no error/warning was raised, 1 for warnings or accessibility - * errors, or 2 for errors. - */ - public function getStatus () {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Get the Detected HTML version for the specified document - * @link https://php.net/manual/en/tidy.gethtmlver.php - * @return int the detected HTML version. - *

    - *

    - * This function is not yet implemented in the Tidylib itself, so it always - * return 0. - */ - public function getHtmlVer () {} - - /** - * Returns the documentation for the given option name - * @link https://php.net/manual/en/tidy.getoptdoc.php - * @param string $optname

    - * The option name - *

    - * @return string a string if the option exists and has documentation available, or - * FALSE otherwise. - */ - public function getOptDoc ($optname) {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Indicates if the document is a XHTML document - * @link https://php.net/manual/en/tidy.isxhtml.php - * @return bool This function returns TRUE if the specified tidy - * object is a XHTML document, or FALSE otherwise. - *

    - *

    - * This function is not yet implemented in the Tidylib itself, so it always - * return FALSE. - */ - public function isXhtml () {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Indicates if the document is a generic (non HTML/XHTML) XML document - * @link https://php.net/manual/en/tidy.isxml.php - * @return bool This function returns TRUE if the specified tidy - * object is a generic XML document (non HTML/XHTML), - * or FALSE otherwise. - *

    - *

    - * This function is not yet implemented in the Tidylib itself, so it always - * return FALSE. - */ - public function isXml () {} - - /** - * (PHP 5, PECL tidy 0.5.2-1.0.0)
    - * Returns a tidyNode object representing the root of the tidy parse tree - * @link https://php.net/manual/en/tidy.root.php - * @return tidyNode the tidyNode object. - */ - public function root () {} - - /** - * (PHP 5, PECL tidy 0.5.2-1.0.0)
    - * Returns a tidyNode object starting from the <head> tag of the tidy parse tree - * @link https://php.net/manual/en/tidy.head.php - * @return tidyNode the tidyNode object. - */ - public function head () {} - - /** - * (PHP 5, PECL tidy 0.5.2-1.0.0)
    - * Returns a tidyNode object starting from the <html> tag of the tidy parse tree - * @link https://php.net/manual/en/tidy.html.php - * @return tidyNode the tidyNode object. - */ - public function html () {} - - /** - * (PHP 5, PECL tidy 0.5.2-1.0)
    - * Returns a tidyNode object starting from the <body> tag of the tidy parse tree - * @link https://php.net/manual/en/tidy.body.php - * @return tidyNode a tidyNode object starting from the - * <body> tag of the tidy parse tree. - */ - public function body () {} - - /** - * (PHP 5, PECL tidy >= 0.5.2)
    - * Constructs a new tidy object - * @link https://php.net/manual/en/tidy.construct.php - * @param string $filename [optional]

    - * If the filename parameter is given, this function - * will also read that file and initialize the object with the file, - * acting like tidy_parse_file. - *

    - * @param mixed $config [optional]

    - * The config config can be passed either as an - * array or as a string. If a string is passed, it is interpreted as the - * name of the configuration file, otherwise, it is interpreted as the - * options themselves. - *

    - *

    - * For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html. - *

    - * @param string|null $encoding [optional]

    - * The encoding parameter sets the encoding for - * input/output documents. The possible values for encoding are: - * ascii, latin0, latin1, - * raw, utf8, iso2022, - * mac, win1252, ibm858, - * utf16, utf16le, utf16be, - * big5, and shiftjis. - *

    - * @param bool $use_include_path [optional]

    - * Search for the file in the include_path. - *

    - */ - public function __construct ($filename = null, $config = null, $encoding = null, $use_include_path = null) {} - +class tidy +{ + /** + * @var string The last warnings and errors from TidyLib + */ + public $errorBuffer; + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Returns the value of the specified configuration option for the tidy document + * @link https://php.net/manual/en/tidy.getopt.php + * @param string $option

    + * You will find a list with each configuration option and their types + * at: http://tidy.sourceforge.net/docs/quickref.html. + *

    + * @return mixed the value of the specified option. + * The return type depends on the type of the specified one. + */ + public function getOpt($option) {} + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Execute configured cleanup and repair operations on parsed markup + * @link https://php.net/manual/en/tidy.cleanrepair.php + * @return bool TRUE on success or FALSE on failure. + */ + public function cleanRepair() {} + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Parse markup in file or URI + * @link https://php.net/manual/en/tidy.parsefile.php + * @param string $filename

    + * If the filename parameter is given, this function + * will also read that file and initialize the object with the file, + * acting like tidy_parse_file. + *

    + * @param mixed $config [optional]

    + * The config config can be passed either as an + * array or as a string. If a string is passed, it is interpreted as the + * name of the configuration file, otherwise, it is interpreted as the + * options themselves. + *

    + *

    + * For an explanation about each option, see + * http://tidy.sourceforge.net/docs/quickref.html. + *

    + * @param string|null $encoding [optional]

    + * The encoding parameter sets the encoding for + * input/output documents. The possible values for encoding are: + * ascii, latin0, latin1, + * raw, utf8, iso2022, + * mac, win1252, ibm858, + * utf16, utf16le, utf16be, + * big5, and shiftjis. + *

    + * @param bool $use_include_path [optional]

    + * Search for the file in the include_path. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function parseFile($filename, $config = null, $encoding = null, $use_include_path = false) {} + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Parse a document stored in a string + * @link https://php.net/manual/en/tidy.parsestring.php + * @param string $input

    + * The data to be parsed. + *

    + * @param mixed $config [optional]

    + * The config config can be passed either as an + * array or as a string. If a string is passed, it is interpreted as the + * name of the configuration file, otherwise, it is interpreted as the + * options themselves. + *

    + *

    + * For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html. + *

    + * @param string|null $encoding [optional]

    + * The encoding parameter sets the encoding for + * input/output documents. The possible values for encoding are: + * ascii, latin0, latin1, + * raw, utf8, iso2022, + * mac, win1252, ibm858, + * utf16, utf16le, utf16be, + * big5, and shiftjis. + *

    + * @return bool a new tidy instance. + */ + public function parseString($input, $config = null, $encoding = null) {} + + /** + * (PHP 5, PECL tidy >= 0.7.0)
    + * Repair a string using an optionally provided configuration file + * @link https://php.net/manual/en/tidy.repairstring.php + * @param string $data

    + * The data to be repaired. + *

    + * @param mixed $config [optional]

    + * The config config can be passed either as an + * array or as a string. If a string is passed, it is interpreted as the + * name of the configuration file, otherwise, it is interpreted as the + * options themselves. + *

    + *

    + * Check http://tidy.sourceforge.net/docs/quickref.html for + * an explanation about each option. + *

    + * @param string|null $encoding [optional]

    + * The encoding parameter sets the encoding for + * input/output documents. The possible values for encoding are: + * ascii, latin0, latin1, + * raw, utf8, iso2022, + * mac, win1252, ibm858, + * utf16, utf16le, utf16be, + * big5, and shiftjis. + *

    + * @return string the repaired string. + */ + public function repairString($data, $config = null, $encoding = null) {} + + /** + * (PHP 5, PECL tidy >= 0.7.0)
    + * Repair a file and return it as a string + * @link https://php.net/manual/en/tidy.repairfile.php + * @param string $filename

    + * The file to be repaired. + *

    + * @param mixed $config [optional]

    + * The config config can be passed either as an + * array or as a string. If a string is passed, it is interpreted as the + * name of the configuration file, otherwise, it is interpreted as the + * options themselves. + *

    + *

    + * Check http://tidy.sourceforge.net/docs/quickref.html for an + * explanation about each option. + *

    + * @param string|null $encoding [optional]

    + * The encoding parameter sets the encoding for + * input/output documents. The possible values for encoding are: + * ascii, latin0, latin1, + * raw, utf8, iso2022, + * mac, win1252, ibm858, + * utf16, utf16le, utf16be, + * big5, and shiftjis. + *

    + * @param bool $use_include_path [optional]

    + * Search for the file in the include_path. + *

    + * @return string the repaired contents as a string. + */ + public function repairFile($filename, $config = null, $encoding = null, $use_include_path = false) {} + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Run configured diagnostics on parsed and repaired markup + * @link https://php.net/manual/en/tidy.diagnose.php + * @return bool TRUE on success or FALSE on failure. + */ + public function diagnose() {} + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Get release date (version) for Tidy library + * @link https://php.net/manual/en/tidy.getrelease.php + * @return string a string with the release date of the Tidy library. + */ + public function getRelease() {} + + /** + * (PHP 5, PECL tidy >= 0.7.0)
    + * Get current Tidy configuration + * @link https://php.net/manual/en/tidy.getconfig.php + * @return array an array of configuration options. + *

    + *

    + * For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html. + */ + public function getConfig() {} + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Get status of specified document + * @link https://php.net/manual/en/tidy.getstatus.php + * @return int 0 if no error/warning was raised, 1 for warnings or accessibility + * errors, or 2 for errors. + */ + public function getStatus() {} + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Get the Detected HTML version for the specified document + * @link https://php.net/manual/en/tidy.gethtmlver.php + * @return int the detected HTML version. + *

    + *

    + * This function is not yet implemented in the Tidylib itself, so it always + * return 0. + */ + public function getHtmlVer() {} + + /** + * Returns the documentation for the given option name + * @link https://php.net/manual/en/tidy.getoptdoc.php + * @param string $optname

    + * The option name + *

    + * @return string a string if the option exists and has documentation available, or + * FALSE otherwise. + */ + public function getOptDoc($optname) {} + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Indicates if the document is a XHTML document + * @link https://php.net/manual/en/tidy.isxhtml.php + * @return bool This function returns TRUE if the specified tidy + * object is a XHTML document, or FALSE otherwise. + *

    + *

    + * This function is not yet implemented in the Tidylib itself, so it always + * return FALSE. + */ + public function isXhtml() {} + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Indicates if the document is a generic (non HTML/XHTML) XML document + * @link https://php.net/manual/en/tidy.isxml.php + * @return bool This function returns TRUE if the specified tidy + * object is a generic XML document (non HTML/XHTML), + * or FALSE otherwise. + *

    + *

    + * This function is not yet implemented in the Tidylib itself, so it always + * return FALSE. + */ + public function isXml() {} + + /** + * (PHP 5, PECL tidy 0.5.2-1.0.0)
    + * Returns a tidyNode object representing the root of the tidy parse tree + * @link https://php.net/manual/en/tidy.root.php + * @return tidyNode the tidyNode object. + */ + public function root() {} + + /** + * (PHP 5, PECL tidy 0.5.2-1.0.0)
    + * Returns a tidyNode object starting from the <head> tag of the tidy parse tree + * @link https://php.net/manual/en/tidy.head.php + * @return tidyNode the tidyNode object. + */ + public function head() {} + + /** + * (PHP 5, PECL tidy 0.5.2-1.0.0)
    + * Returns a tidyNode object starting from the <html> tag of the tidy parse tree + * @link https://php.net/manual/en/tidy.html.php + * @return tidyNode the tidyNode object. + */ + public function html() {} + + /** + * (PHP 5, PECL tidy 0.5.2-1.0)
    + * Returns a tidyNode object starting from the <body> tag of the tidy parse tree + * @link https://php.net/manual/en/tidy.body.php + * @return tidyNode a tidyNode object starting from the + * <body> tag of the tidy parse tree. + */ + public function body() {} + + /** + * (PHP 5, PECL tidy >= 0.5.2)
    + * Constructs a new tidy object + * @link https://php.net/manual/en/tidy.construct.php + * @param string $filename [optional]

    + * If the filename parameter is given, this function + * will also read that file and initialize the object with the file, + * acting like tidy_parse_file. + *

    + * @param mixed $config [optional]

    + * The config config can be passed either as an + * array or as a string. If a string is passed, it is interpreted as the + * name of the configuration file, otherwise, it is interpreted as the + * options themselves. + *

    + *

    + * For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html. + *

    + * @param string|null $encoding [optional]

    + * The encoding parameter sets the encoding for + * input/output documents. The possible values for encoding are: + * ascii, latin0, latin1, + * raw, utf8, iso2022, + * mac, win1252, ibm858, + * utf16, utf16le, utf16be, + * big5, and shiftjis. + *

    + * @param bool $use_include_path [optional]

    + * Search for the file in the include_path. + *

    + */ + public function __construct($filename = null, $config = null, $encoding = null, $use_include_path = null) {} } /** * An HTML node in an HTML file, as detected by tidy. * @link https://php.net/manual/en/class.tidynode.php */ -final class tidyNode { - /** - *

    The HTML representation of the node, including the surrounding tags.

    - * @var string - */ - public $value; - /** - *

    The name of the HTML node

    - * @var string - */ - public $name; - /** - *

    The type of the tag (one of the constants above, e.g. TIDY_NODETYPE_PHP)

    - * @var int - */ - public $type; - /** - *

    The line number at which the tags is located in the file

    - * @var int - */ - public $line; - /** - *

    The column number at which the tags is located in the file

    - * @var int - */ - public $column; - /** - *

    Indicates if the node is a proprietary tag

    - * @var bool - */ - public $proprietary; - /** - *

    The ID of the tag (one of the constants above, e.g. TIDY_TAG_FRAME)

    - * @var int - */ - public $id; - /** - *

    - * An array of string, representing - * the attributes names (as keys) of the current node. - *

    - * @var array - */ - public $attribute; - /** - *

    - * An array of tidyNode, representing - * the children of the current node. - *

    - * @var array - */ - public $child; - - - /** - * Checks if a node has children - * @link https://php.net/manual/en/tidynode.haschildren.php - * @return bool TRUE if the node has children, FALSE otherwise. - * @since 5.0.1 - */ - public function hasChildren () {} - - /** - * Checks if a node has siblings - * @link https://php.net/manual/en/tidynode.hassiblings.php - * @return bool TRUE if the node has siblings, FALSE otherwise. - * @since 5.0.1 - */ - public function hasSiblings () {} - - /** - * Checks if a node represents a comment - * @link https://php.net/manual/en/tidynode.iscomment.php - * @return bool TRUE if the node is a comment, FALSE otherwise. - * @since 5.0.1 - */ - public function isComment () {} - - /** - * Checks if a node is part of a HTML document - * @link https://php.net/manual/en/tidynode.ishtml.php - * @return bool TRUE if the node is part of a HTML document, FALSE otherwise. - * @since 5.0.1 - */ - public function isHtml () {} - - /** - * Checks if a node represents text (no markup) - * @link https://php.net/manual/en/tidynode.istext.php - * @return bool TRUE if the node represent a text, FALSE otherwise. - * @since 5.0.1 - */ - public function isText () {} - - /** - * Checks if this node is JSTE - * @link https://php.net/manual/en/tidynode.isjste.php - * @return bool TRUE if the node is JSTE, FALSE otherwise. - * @since 5.0.1 - */ - public function isJste () {} - - /** - * Checks if this node is ASP - * @link https://php.net/manual/en/tidynode.isasp.php - * @return bool TRUE if the node is ASP, FALSE otherwise. - * @since 5.0.1 - */ - public function isAsp () {} - - /** - * Checks if a node is PHP - * @link https://php.net/manual/en/tidynode.isphp.php - * @return bool TRUE if the current node is PHP code, FALSE otherwise. - * @since 5.0.1 - */ - public function isPhp () {} - - /** - * Returns the parent node of the current node - * @link https://php.net/manual/en/tidynode.getparent.php - * @return tidyNode a tidyNode if the node has a parent, or NULL - * otherwise. - * @since 5.2.2 - */ - public function getParent () {} - - private function __construct () {} - +final class tidyNode +{ + /** + *

    The HTML representation of the node, including the surrounding tags.

    + * @var string + */ + public $value; + /** + *

    The name of the HTML node

    + * @var string + */ + public $name; + /** + *

    The type of the tag (one of the constants above, e.g. TIDY_NODETYPE_PHP)

    + * @var int + */ + public $type; + /** + *

    The line number at which the tags is located in the file

    + * @var int + */ + public $line; + /** + *

    The column number at which the tags is located in the file

    + * @var int + */ + public $column; + /** + *

    Indicates if the node is a proprietary tag

    + * @var bool + */ + public $proprietary; + /** + *

    The ID of the tag (one of the constants above, e.g. TIDY_TAG_FRAME)

    + * @var int + */ + public $id; + /** + *

    + * An array of string, representing + * the attributes names (as keys) of the current node. + *

    + * @var array + */ + public $attribute; + /** + *

    + * An array of tidyNode, representing + * the children of the current node. + *

    + * @var array + */ + public $child; + + /** + * Checks if a node has children + * @link https://php.net/manual/en/tidynode.haschildren.php + * @return bool TRUE if the node has children, FALSE otherwise. + * @since 5.0.1 + */ + public function hasChildren() {} + + /** + * Checks if a node has siblings + * @link https://php.net/manual/en/tidynode.hassiblings.php + * @return bool TRUE if the node has siblings, FALSE otherwise. + * @since 5.0.1 + */ + public function hasSiblings() {} + + /** + * Checks if a node represents a comment + * @link https://php.net/manual/en/tidynode.iscomment.php + * @return bool TRUE if the node is a comment, FALSE otherwise. + * @since 5.0.1 + */ + public function isComment() {} + + /** + * Checks if a node is part of a HTML document + * @link https://php.net/manual/en/tidynode.ishtml.php + * @return bool TRUE if the node is part of a HTML document, FALSE otherwise. + * @since 5.0.1 + */ + public function isHtml() {} + + /** + * Checks if a node represents text (no markup) + * @link https://php.net/manual/en/tidynode.istext.php + * @return bool TRUE if the node represent a text, FALSE otherwise. + * @since 5.0.1 + */ + public function isText() {} + + /** + * Checks if this node is JSTE + * @link https://php.net/manual/en/tidynode.isjste.php + * @return bool TRUE if the node is JSTE, FALSE otherwise. + * @since 5.0.1 + */ + public function isJste() {} + + /** + * Checks if this node is ASP + * @link https://php.net/manual/en/tidynode.isasp.php + * @return bool TRUE if the node is ASP, FALSE otherwise. + * @since 5.0.1 + */ + public function isAsp() {} + + /** + * Checks if a node is PHP + * @link https://php.net/manual/en/tidynode.isphp.php + * @return bool TRUE if the current node is PHP code, FALSE otherwise. + * @since 5.0.1 + */ + public function isPhp() {} + + /** + * Returns the parent node of the current node + * @link https://php.net/manual/en/tidynode.getparent.php + * @return tidyNode a tidyNode if the node has a parent, or NULL + * otherwise. + * @since 5.2.2 + */ + public function getParent() {} + + private function __construct() {} } /** @@ -464,7 +462,7 @@ private function __construct () {} * @return mixed the value of the specified option. * The return type depends on the type of the specified one. */ -function tidy_getopt (tidy $object, $option) {} +function tidy_getopt(tidy $object, $option) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -493,7 +491,7 @@ function tidy_getopt (tidy $object, $option) {} *

    * @return tidy a new tidy instance. */ -function tidy_parse_string ($input, $config = null, $encoding = null) {} +function tidy_parse_string($input, $config = null, $encoding = null) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -528,7 +526,7 @@ function tidy_parse_string ($input, $config = null, $encoding = null) {} *

    * @return tidy a new tidy instance. */ -function tidy_parse_file ($filename, $config = null, $encoding = null, $use_include_path = false) {} +function tidy_parse_file($filename, $config = null, $encoding = null, $use_include_path = false) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -539,7 +537,7 @@ function tidy_parse_file ($filename, $config = null, $encoding = null, $use_incl *

    * @return string the parsed tidy markup. */ -function tidy_get_output (tidy $object) {} +function tidy_get_output(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -550,7 +548,7 @@ function tidy_get_output (tidy $object) {} *

    * @return mixed the error buffer as a string. */ -function tidy_get_error_buffer (tidy $object) {} +function tidy_get_error_buffer(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -559,7 +557,7 @@ function tidy_get_error_buffer (tidy $object) {} * @param tidy $object The Tidy object. * @return bool TRUE on success or FALSE on failure. */ -function tidy_clean_repair (tidy $object) {} +function tidy_clean_repair(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.7.0)
    @@ -589,7 +587,7 @@ function tidy_clean_repair (tidy $object) {} *

    * @return string the repaired string. */ -function tidy_repair_string ($data, $config = null, $encoding = null) {} +function tidy_repair_string($data, $config = null, $encoding = null) {} /** * (PHP 5, PECL tidy >= 0.7.0)
    @@ -622,7 +620,7 @@ function tidy_repair_string ($data, $config = null, $encoding = null) {} *

    * @return string the repaired contents as a string. */ -function tidy_repair_file ($filename, $config = null, $encoding = null, $use_include_path = false) {} +function tidy_repair_file($filename, $config = null, $encoding = null, $use_include_path = false) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -633,7 +631,7 @@ function tidy_repair_file ($filename, $config = null, $encoding = null, $use_inc *

    * @return bool TRUE on success or FALSE on failure. */ -function tidy_diagnose (tidy $object) {} +function tidy_diagnose(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -641,7 +639,7 @@ function tidy_diagnose (tidy $object) {} * @link https://php.net/manual/en/tidy.getrelease.php * @return string a string with the release date of the Tidy library. */ -function tidy_get_release () {} +function tidy_get_release() {} /** * (PHP 5, PECL tidy >= 0.7.0)
    @@ -655,7 +653,7 @@ function tidy_get_release () {} * For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html. *

    */ -function tidy_get_config (tidy $object) {} +function tidy_get_config(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -667,7 +665,7 @@ function tidy_get_config (tidy $object) {} * @return int 0 if no error/warning was raised, 1 for warnings or accessibility * errors, or 2 for errors. */ -function tidy_get_status (tidy $object) {} +function tidy_get_status(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -682,7 +680,7 @@ function tidy_get_status (tidy $object) {} * return 0. *

    */ -function tidy_get_html_ver (tidy $object) {} +function tidy_get_html_ver(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -698,7 +696,7 @@ function tidy_get_html_ver (tidy $object) {} * This function is not yet implemented in the Tidylib itself, so it always * return FALSE. */ -function tidy_is_xhtml (tidy $object) {} +function tidy_is_xhtml(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -715,7 +713,7 @@ function tidy_is_xhtml (tidy $object) {} * This function is not yet implemented in the Tidylib itself, so it always * return FALSE. */ -function tidy_is_xml (tidy $object) {} +function tidy_is_xml(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -726,7 +724,7 @@ function tidy_is_xml (tidy $object) {} *

    * @return int the number of errors. */ -function tidy_error_count (tidy $object) {} +function tidy_error_count(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -737,7 +735,7 @@ function tidy_error_count (tidy $object) {} *

    * @return int the number of warnings. */ -function tidy_warning_count (tidy $object) {} +function tidy_warning_count(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -748,7 +746,7 @@ function tidy_warning_count (tidy $object) {} *

    * @return int the number of warnings. */ -function tidy_access_count (tidy $object) {} +function tidy_access_count(tidy $object) {} /** * (PHP 5, PECL tidy >= 0.5.2)
    @@ -759,7 +757,7 @@ function tidy_access_count (tidy $object) {} *

    * @return int the number of errors. */ -function tidy_config_count (tidy $object) {} +function tidy_config_count(tidy $object) {} /** * Returns the documentation for the given option name @@ -773,7 +771,7 @@ function tidy_config_count (tidy $object) {} * @return string a string if the option exists and has documentation available, or * FALSE otherwise. */ -function tidy_get_opt_doc (tidy $object, $optname) {} +function tidy_get_opt_doc(tidy $object, $optname) {} /** * (PHP 5, PECL tidy 0.5.2-1.0.0)
    @@ -784,7 +782,7 @@ function tidy_get_opt_doc (tidy $object, $optname) {} *

    * @return tidyNode the tidyNode object. */ -function tidy_get_root (tidy $object) {} +function tidy_get_root(tidy $object) {} /** * (PHP 5, PECL tidy 0.5.2-1.0.0)
    @@ -795,7 +793,7 @@ function tidy_get_root (tidy $object) {} *

    * @return tidyNode the tidyNode object. */ -function tidy_get_head (tidy $object) {} +function tidy_get_head(tidy $object) {} /** * (PHP 5, PECL tidy 0.5.2-1.0.0)
    @@ -806,7 +804,7 @@ function tidy_get_head (tidy $object) {} *

    * @return tidyNode the tidyNode object. */ -function tidy_get_html (tidy $object) {} +function tidy_get_html(tidy $object) {} /** * (PHP 5, PECL tidy 0.5.2-1.0)
    @@ -818,7 +816,7 @@ function tidy_get_html (tidy $object) {} * @return tidyNode a tidyNode object starting from the * <body> tag of the tidy parse tree. */ -function tidy_get_body (tidy $object) {} +function tidy_get_body(tidy $object) {} /** * ob_start callback function to repair the buffer @@ -831,328 +829,326 @@ function tidy_get_body (tidy $object) {} *

    * @return string the modified buffer. */ -function ob_tidyhandler ($input, $mode = null) {} - +function ob_tidyhandler($input, $mode = null) {} /** * description * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_TAG_UNKNOWN', 0); -define ('TIDY_TAG_A', 1); -define ('TIDY_TAG_ABBR', 2); -define ('TIDY_TAG_ACRONYM', 3); -define ('TIDY_TAG_ADDRESS', 4); -define ('TIDY_TAG_ALIGN', 5); -define ('TIDY_TAG_APPLET', 6); -define ('TIDY_TAG_AREA', 7); -define ('TIDY_TAG_B', 8); -define ('TIDY_TAG_BASE', 9); -define ('TIDY_TAG_BASEFONT', 10); -define ('TIDY_TAG_BDO', 11); -define ('TIDY_TAG_BGSOUND', 12); -define ('TIDY_TAG_BIG', 13); -define ('TIDY_TAG_BLINK', 14); -define ('TIDY_TAG_BLOCKQUOTE', 15); -define ('TIDY_TAG_BODY', 16); -define ('TIDY_TAG_BR', 17); -define ('TIDY_TAG_BUTTON', 18); -define ('TIDY_TAG_CAPTION', 19); -define ('TIDY_TAG_CENTER', 20); -define ('TIDY_TAG_CITE', 21); -define ('TIDY_TAG_CODE', 22); -define ('TIDY_TAG_COL', 23); -define ('TIDY_TAG_COLGROUP', 24); -define ('TIDY_TAG_COMMENT', 25); -define ('TIDY_TAG_DD', 26); -define ('TIDY_TAG_DEL', 27); -define ('TIDY_TAG_DFN', 28); -define ('TIDY_TAG_DIR', 29); -define ('TIDY_TAG_DIV', 30); -define ('TIDY_TAG_DL', 31); -define ('TIDY_TAG_DT', 32); -define ('TIDY_TAG_EM', 33); -define ('TIDY_TAG_EMBED', 34); -define ('TIDY_TAG_FIELDSET', 35); -define ('TIDY_TAG_FONT', 36); -define ('TIDY_TAG_FORM', 37); -define ('TIDY_TAG_FRAME', 38); -define ('TIDY_TAG_FRAMESET', 39); -define ('TIDY_TAG_H1', 40); -define ('TIDY_TAG_H2', 41); -define ('TIDY_TAG_H3', 42); -define ('TIDY_TAG_H4', 43); -define ('TIDY_TAG_H5', 44); -define ('TIDY_TAG_H6', 45); -define ('TIDY_TAG_HEAD', 46); -define ('TIDY_TAG_HR', 47); -define ('TIDY_TAG_HTML', 48); -define ('TIDY_TAG_I', 49); -define ('TIDY_TAG_IFRAME', 50); -define ('TIDY_TAG_ILAYER', 51); -define ('TIDY_TAG_IMG', 52); -define ('TIDY_TAG_INPUT', 53); -define ('TIDY_TAG_INS', 54); -define ('TIDY_TAG_ISINDEX', 55); -define ('TIDY_TAG_KBD', 56); -define ('TIDY_TAG_KEYGEN', 57); -define ('TIDY_TAG_LABEL', 58); -define ('TIDY_TAG_LAYER', 59); -define ('TIDY_TAG_LEGEND', 60); -define ('TIDY_TAG_LI', 61); -define ('TIDY_TAG_LINK', 62); -define ('TIDY_TAG_LISTING', 63); -define ('TIDY_TAG_MAP', 64); -define ('TIDY_TAG_MARQUEE', 65); -define ('TIDY_TAG_MENU', 66); -define ('TIDY_TAG_META', 67); -define ('TIDY_TAG_MULTICOL', 68); -define ('TIDY_TAG_NOBR', 69); -define ('TIDY_TAG_NOEMBED', 70); -define ('TIDY_TAG_NOFRAMES', 71); -define ('TIDY_TAG_NOLAYER', 72); -define ('TIDY_TAG_NOSAVE', 73); -define ('TIDY_TAG_NOSCRIPT', 74); -define ('TIDY_TAG_OBJECT', 75); -define ('TIDY_TAG_OL', 76); -define ('TIDY_TAG_OPTGROUP', 77); -define ('TIDY_TAG_OPTION', 78); -define ('TIDY_TAG_P', 79); -define ('TIDY_TAG_PARAM', 80); -define ('TIDY_TAG_PLAINTEXT', 81); -define ('TIDY_TAG_PRE', 82); -define ('TIDY_TAG_Q', 83); -define ('TIDY_TAG_RB', 84); -define ('TIDY_TAG_RBC', 85); -define ('TIDY_TAG_RP', 86); -define ('TIDY_TAG_RT', 87); -define ('TIDY_TAG_RTC', 88); -define ('TIDY_TAG_RUBY', 89); -define ('TIDY_TAG_S', 90); -define ('TIDY_TAG_SAMP', 91); -define ('TIDY_TAG_SCRIPT', 92); -define ('TIDY_TAG_SELECT', 93); -define ('TIDY_TAG_SERVER', 94); -define ('TIDY_TAG_SERVLET', 95); -define ('TIDY_TAG_SMALL', 96); -define ('TIDY_TAG_SPACER', 97); -define ('TIDY_TAG_SPAN', 98); -define ('TIDY_TAG_STRIKE', 99); -define ('TIDY_TAG_STRONG', 100); -define ('TIDY_TAG_STYLE', 101); -define ('TIDY_TAG_SUB', 102); -define ('TIDY_TAG_SUP', 103); -define ('TIDY_TAG_TABLE', 104); -define ('TIDY_TAG_TBODY', 105); -define ('TIDY_TAG_TD', 106); -define ('TIDY_TAG_TEXTAREA', 107); -define ('TIDY_TAG_TFOOT', 108); -define ('TIDY_TAG_TH', 109); -define ('TIDY_TAG_THEAD', 110); -define ('TIDY_TAG_TITLE', 111); -define ('TIDY_TAG_TR', 112); -define ('TIDY_TAG_TT', 113); -define ('TIDY_TAG_U', 114); -define ('TIDY_TAG_UL', 115); -define ('TIDY_TAG_VAR', 116); -define ('TIDY_TAG_WBR', 117); -define ('TIDY_TAG_XMP', 118); +define('TIDY_TAG_UNKNOWN', 0); +define('TIDY_TAG_A', 1); +define('TIDY_TAG_ABBR', 2); +define('TIDY_TAG_ACRONYM', 3); +define('TIDY_TAG_ADDRESS', 4); +define('TIDY_TAG_ALIGN', 5); +define('TIDY_TAG_APPLET', 6); +define('TIDY_TAG_AREA', 7); +define('TIDY_TAG_B', 8); +define('TIDY_TAG_BASE', 9); +define('TIDY_TAG_BASEFONT', 10); +define('TIDY_TAG_BDO', 11); +define('TIDY_TAG_BGSOUND', 12); +define('TIDY_TAG_BIG', 13); +define('TIDY_TAG_BLINK', 14); +define('TIDY_TAG_BLOCKQUOTE', 15); +define('TIDY_TAG_BODY', 16); +define('TIDY_TAG_BR', 17); +define('TIDY_TAG_BUTTON', 18); +define('TIDY_TAG_CAPTION', 19); +define('TIDY_TAG_CENTER', 20); +define('TIDY_TAG_CITE', 21); +define('TIDY_TAG_CODE', 22); +define('TIDY_TAG_COL', 23); +define('TIDY_TAG_COLGROUP', 24); +define('TIDY_TAG_COMMENT', 25); +define('TIDY_TAG_DD', 26); +define('TIDY_TAG_DEL', 27); +define('TIDY_TAG_DFN', 28); +define('TIDY_TAG_DIR', 29); +define('TIDY_TAG_DIV', 30); +define('TIDY_TAG_DL', 31); +define('TIDY_TAG_DT', 32); +define('TIDY_TAG_EM', 33); +define('TIDY_TAG_EMBED', 34); +define('TIDY_TAG_FIELDSET', 35); +define('TIDY_TAG_FONT', 36); +define('TIDY_TAG_FORM', 37); +define('TIDY_TAG_FRAME', 38); +define('TIDY_TAG_FRAMESET', 39); +define('TIDY_TAG_H1', 40); +define('TIDY_TAG_H2', 41); +define('TIDY_TAG_H3', 42); +define('TIDY_TAG_H4', 43); +define('TIDY_TAG_H5', 44); +define('TIDY_TAG_H6', 45); +define('TIDY_TAG_HEAD', 46); +define('TIDY_TAG_HR', 47); +define('TIDY_TAG_HTML', 48); +define('TIDY_TAG_I', 49); +define('TIDY_TAG_IFRAME', 50); +define('TIDY_TAG_ILAYER', 51); +define('TIDY_TAG_IMG', 52); +define('TIDY_TAG_INPUT', 53); +define('TIDY_TAG_INS', 54); +define('TIDY_TAG_ISINDEX', 55); +define('TIDY_TAG_KBD', 56); +define('TIDY_TAG_KEYGEN', 57); +define('TIDY_TAG_LABEL', 58); +define('TIDY_TAG_LAYER', 59); +define('TIDY_TAG_LEGEND', 60); +define('TIDY_TAG_LI', 61); +define('TIDY_TAG_LINK', 62); +define('TIDY_TAG_LISTING', 63); +define('TIDY_TAG_MAP', 64); +define('TIDY_TAG_MARQUEE', 65); +define('TIDY_TAG_MENU', 66); +define('TIDY_TAG_META', 67); +define('TIDY_TAG_MULTICOL', 68); +define('TIDY_TAG_NOBR', 69); +define('TIDY_TAG_NOEMBED', 70); +define('TIDY_TAG_NOFRAMES', 71); +define('TIDY_TAG_NOLAYER', 72); +define('TIDY_TAG_NOSAVE', 73); +define('TIDY_TAG_NOSCRIPT', 74); +define('TIDY_TAG_OBJECT', 75); +define('TIDY_TAG_OL', 76); +define('TIDY_TAG_OPTGROUP', 77); +define('TIDY_TAG_OPTION', 78); +define('TIDY_TAG_P', 79); +define('TIDY_TAG_PARAM', 80); +define('TIDY_TAG_PLAINTEXT', 81); +define('TIDY_TAG_PRE', 82); +define('TIDY_TAG_Q', 83); +define('TIDY_TAG_RB', 84); +define('TIDY_TAG_RBC', 85); +define('TIDY_TAG_RP', 86); +define('TIDY_TAG_RT', 87); +define('TIDY_TAG_RTC', 88); +define('TIDY_TAG_RUBY', 89); +define('TIDY_TAG_S', 90); +define('TIDY_TAG_SAMP', 91); +define('TIDY_TAG_SCRIPT', 92); +define('TIDY_TAG_SELECT', 93); +define('TIDY_TAG_SERVER', 94); +define('TIDY_TAG_SERVLET', 95); +define('TIDY_TAG_SMALL', 96); +define('TIDY_TAG_SPACER', 97); +define('TIDY_TAG_SPAN', 98); +define('TIDY_TAG_STRIKE', 99); +define('TIDY_TAG_STRONG', 100); +define('TIDY_TAG_STYLE', 101); +define('TIDY_TAG_SUB', 102); +define('TIDY_TAG_SUP', 103); +define('TIDY_TAG_TABLE', 104); +define('TIDY_TAG_TBODY', 105); +define('TIDY_TAG_TD', 106); +define('TIDY_TAG_TEXTAREA', 107); +define('TIDY_TAG_TFOOT', 108); +define('TIDY_TAG_TH', 109); +define('TIDY_TAG_THEAD', 110); +define('TIDY_TAG_TITLE', 111); +define('TIDY_TAG_TR', 112); +define('TIDY_TAG_TT', 113); +define('TIDY_TAG_U', 114); +define('TIDY_TAG_UL', 115); +define('TIDY_TAG_VAR', 116); +define('TIDY_TAG_WBR', 117); +define('TIDY_TAG_XMP', 118); /** * @since 7.4 */ -define ('TIDY_TAG_ARTICLE', 123); +define('TIDY_TAG_ARTICLE', 123); /** * @since 7.4 */ -define ('TIDY_TAG_ASIDE', 124); +define('TIDY_TAG_ASIDE', 124); /** * @since 7.4 */ -define ('TIDY_TAG_AUDIO', 125); +define('TIDY_TAG_AUDIO', 125); /** * @since 7.4 */ -define ('TIDY_TAG_BDI', 126); +define('TIDY_TAG_BDI', 126); /** * @since 7.4 */ -define ('TIDY_TAG_CANVAS', 127); +define('TIDY_TAG_CANVAS', 127); /** * @since 7.4 */ -define ('TIDY_TAG_COMMAND', 128); +define('TIDY_TAG_COMMAND', 128); /** * @since 7.4 */ -define ('TIDY_TAG_DATALIST', 129); +define('TIDY_TAG_DATALIST', 129); /** * @since 7.4 */ -define ('TIDY_TAG_DETAILS', 130); +define('TIDY_TAG_DETAILS', 130); /** * @since 7.4 */ -define ('TIDY_TAG_DIALOG', 131); +define('TIDY_TAG_DIALOG', 131); /** * @since 7.4 */ -define ('TIDY_TAG_FIGCAPTION', 132); +define('TIDY_TAG_FIGCAPTION', 132); /** * @since 7.4 */ -define ('TIDY_TAG_FIGURE', 133); +define('TIDY_TAG_FIGURE', 133); /** * @since 7.4 */ -define ('TIDY_TAG_FOOTER', 134); +define('TIDY_TAG_FOOTER', 134); /** * @since 7.4 */ -define ('TIDY_TAG_HEADER', 135); +define('TIDY_TAG_HEADER', 135); /** * @since 7.4 */ -define ('TIDY_TAG_HGROUP', 136); +define('TIDY_TAG_HGROUP', 136); /** * @since 7.4 */ -define ('TIDY_TAG_MAIN', 137); +define('TIDY_TAG_MAIN', 137); /** * @since 7.4 */ -define ('TIDY_TAG_MARK', 138); +define('TIDY_TAG_MARK', 138); /** * @since 7.4 */ -define ('TIDY_TAG_MENUITEM', 139); +define('TIDY_TAG_MENUITEM', 139); /** * @since 7.4 */ -define ('TIDY_TAG_METER', 140); +define('TIDY_TAG_METER', 140); /** * @since 7.4 */ -define ('TIDY_TAG_NAV', 141); +define('TIDY_TAG_NAV', 141); /** * @since 7.4 */ -define ('TIDY_TAG_OUTPUT', 142); +define('TIDY_TAG_OUTPUT', 142); /** * @since 7.4 */ -define ('TIDY_TAG_PROGRESS', 143); +define('TIDY_TAG_PROGRESS', 143); /** * @since 7.4 */ -define ('TIDY_TAG_SECTION', 144); +define('TIDY_TAG_SECTION', 144); /** * @since 7.4 */ -define ('TIDY_TAG_SOURCE', 145); +define('TIDY_TAG_SOURCE', 145); /** * @since 7.4 */ -define ('TIDY_TAG_SUMMARY', 146); +define('TIDY_TAG_SUMMARY', 146); /** * @since 7.4 */ -define ('TIDY_TAG_TEMPLATE', 147); +define('TIDY_TAG_TEMPLATE', 147); /** * @since 7.4 */ -define ('TIDY_TAG_TIME', 148); +define('TIDY_TAG_TIME', 148); /** * @since 7.4 */ -define ('TIDY_TAG_TRACK', 149); +define('TIDY_TAG_TRACK', 149); /** * @since 7.4 */ -define ('TIDY_TAG_VIDEO', 150); +define('TIDY_TAG_VIDEO', 150); /** * root node * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_ROOT', 0); +define('TIDY_NODETYPE_ROOT', 0); /** * doctype * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_DOCTYPE', 1); +define('TIDY_NODETYPE_DOCTYPE', 1); /** * HTML comment * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_COMMENT', 2); +define('TIDY_NODETYPE_COMMENT', 2); /** * Processing Instruction * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_PROCINS', 3); +define('TIDY_NODETYPE_PROCINS', 3); /** * Text * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_TEXT', 4); +define('TIDY_NODETYPE_TEXT', 4); /** * start tag * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_START', 5); +define('TIDY_NODETYPE_START', 5); /** * end tag * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_END', 6); +define('TIDY_NODETYPE_END', 6); /** * empty tag * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_STARTEND', 7); +define('TIDY_NODETYPE_STARTEND', 7); /** * CDATA * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_CDATA', 8); +define('TIDY_NODETYPE_CDATA', 8); /** * XML section * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_SECTION', 9); +define('TIDY_NODETYPE_SECTION', 9); /** * ASP code * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_ASP', 10); +define('TIDY_NODETYPE_ASP', 10); /** * JSTE code * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_JSTE', 11); +define('TIDY_NODETYPE_JSTE', 11); /** * PHP code * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_PHP', 12); +define('TIDY_NODETYPE_PHP', 12); /** * XML declaration * @link https://php.net/manual/en/tidy.constants.php */ -define ('TIDY_NODETYPE_XMLDECL', 13); +define('TIDY_NODETYPE_XMLDECL', 13); // End of tidy v.2.0 -?> diff --git a/tokenizer/tokenizer.php b/tokenizer/tokenizer.php index f92792039..24b7f212a 100644 --- a/tokenizer/tokenizer.php +++ b/tokenizer/tokenizer.php @@ -28,7 +28,7 @@ * content of the original token in element 1 and the line number in element 2. */ #[Pure] -function token_get_all (string $code, int $flags = 0): array {} +function token_get_all(string $code, int $flags = 0): array {} /** * Get the symbolic name of a given PHP token @@ -39,7 +39,7 @@ function token_get_all (string $code, int $flags = 0): array {} * @return string The symbolic name of the given token. */ #[Pure] -function token_name (int $id): string {} +function token_name(int $id): string {} define('TOKEN_PARSE', 1); define('T_REQUIRE_ONCE', 263); diff --git a/uopz/uopz.php b/uopz/uopz.php index 1bab5dd43..9d76ee8ce 100644 --- a/uopz/uopz.php +++ b/uopz/uopz.php @@ -47,7 +47,7 @@ /** * The bitmask of ZEND_ACC_PUBLIC | ZEND_ACC_PROTECTED | ZEND_ACC_PRIVATE */ -define('ZEND_ACC_PPP_MASK', ZEND_ACC_PUBLIC | ZEND_ACC_PROTECTED | ZEND_ACC_PRIVATE); +define('ZEND_ACC_PPP_MASK', ZEND_ACC_PUBLIC|ZEND_ACC_PROTECTED|ZEND_ACC_PRIVATE); /** * Adds non-existent method @@ -60,7 +60,7 @@ * @return bool TRUE on success or FALSE on failure * @throws RuntimeException if the method to add already exists */ -function uopz_add_function (string $class, string $function, Closure $handler, int $flags = ZEND_ACC_PUBLIC, bool $all = true): bool {} +function uopz_add_function(string $class, string $function, Closure $handler, int $flags = ZEND_ACC_PUBLIC, bool $all = true): bool {} /** * Allows control over disabled exit opcode @@ -69,7 +69,7 @@ function uopz_add_function (string $class, string $function, Closure $handler, i * @return void * @since 5.4 */ -function uopz_allow_exit (bool $allow): void {} +function uopz_allow_exit(bool $allow): void {} /** * Deletes previously added method @@ -80,7 +80,7 @@ function uopz_allow_exit (bool $allow): void {} * @return bool TRUE on success or FALSE on failure * @throws RuntimeException if the method to delete has not been added by uopz_add_function() */ -function uopz_del_function (string $class, string $function, bool $all = true): bool {} +function uopz_del_function(string $class, string $function, bool $all = true): bool {} /** * Extend a class at runtime @@ -90,7 +90,7 @@ function uopz_del_function (string $class, string $function, bool $all = true): * @return bool TRUE on success or FALSE on failure * @since 5.4 */ -function uopz_extend (string $class, string $parent): bool {} +function uopz_extend(string $class, string $parent): bool {} /** * Get or set flags on function or class @@ -101,7 +101,7 @@ function uopz_extend (string $class, string $parent): bool {} * @return int If setting, returns old flags, else returns flags * @since 5.4 */ -function uopz_flags (string $class, string $function, int $flags): int {} +function uopz_flags(string $class, string $function, int $flags): int {} /** * Retrieve the last set exit status @@ -109,7 +109,7 @@ function uopz_flags (string $class, string $function, int $flags): int {} * @return int|null The last exit status, or NULL if exit() has not been called * @since 5.4 */ -function uopz_get_exit_status (): ?int {} +function uopz_get_exit_status(): ?int {} /** * Gets previously set hook on method @@ -118,7 +118,7 @@ function uopz_get_exit_status (): ?int {} * @param string $function The name of the method * @return Closure|null The previously set hook, or NULL if no hook has been set */ -function uopz_get_hook (string $class, string $function): ?Closure {} +function uopz_get_hook(string $class, string $function): ?Closure {} /** * Get the current mock for a class @@ -127,7 +127,7 @@ function uopz_get_hook (string $class, string $function): ?Closure {} * @return string|object|null Either a string containing the name of the mock, or an object, or NULL if no mock has been set * @since 5.4 */ -function uopz_get_mock (string $class) {} +function uopz_get_mock(string $class) {} /** * Gets the value of a static class property, if class is given, or the value of an instance property, if instance is given @@ -136,7 +136,7 @@ function uopz_get_mock (string $class) {} * @param string $property The name of the property * @return mixed The value of the class or instance property, or NULL if the property is not defined */ -function uopz_get_property ($class, string $property) {} +function uopz_get_property($class, string $property) {} /** * Gets a previous set return value for a function @@ -146,7 +146,7 @@ function uopz_get_property ($class, string $property) {} * @return mixed * @since 5.4 */ -function uopz_get_return (string $class, string $function) {} +function uopz_get_return(string $class, string $function) {} /** * Gets the static variables from function or method scope @@ -155,7 +155,7 @@ function uopz_get_return (string $class, string $function) {} * @param string $function The name of the method * @return array|null An associative array of variable names mapped to their current values on success, or NULL if the method does not exist */ -function uopz_get_static (string $class, string $function): ?array {} +function uopz_get_static(string $class, string $function): ?array {} /** * Implements an interface at runtime @@ -165,7 +165,7 @@ function uopz_get_static (string $class, string $function): ?array {} * @return bool * @since 5.4 */ -function uopz_implement (string $class, string $interface): bool {} +function uopz_implement(string $class, string $interface): bool {} /** * Redefine a constant @@ -176,7 +176,7 @@ function uopz_implement (string $class, string $interface): bool {} * @return bool * @since 5.4 */ -function uopz_redefine (string $class, string $constant, $value): bool {} +function uopz_redefine(string $class, string $constant, $value): bool {} /** * Sets hook to execute when entering a function or method @@ -186,7 +186,7 @@ function uopz_redefine (string $class, string $constant, $value): bool {} * @param Closure $hook A closure to execute when entering the method * @return bool TRUE on success or FALSE on failure */ -function uopz_set_hook (string $class, string $function, Closure $hook): bool {} +function uopz_set_hook(string $class, string $function, Closure $hook): bool {} /** * Use mock instead of class for new objects @@ -196,7 +196,7 @@ function uopz_set_hook (string $class, string $function, Closure $hook): bool {} * @return void * @since 7.0 */ -function uopz_set_mock (string $class, $mock): void {} +function uopz_set_mock(string $class, $mock): void {} /** * Sets the value of an existing static class property, if class is given, or the value of an existing instance property, if instance is given @@ -206,7 +206,7 @@ function uopz_set_mock (string $class, $mock): void {} * @param mixed $value The value to assign to the property * @return void */ -function uopz_set_property ($class, string $property, $value): void {} +function uopz_set_property($class, string $property, $value): void {} /** * Provide a return value for an existing function @@ -218,7 +218,7 @@ function uopz_set_property ($class, string $property, $value): void {} * @return bool * @since 7.0 */ -function uopz_set_return (string $class, string $function, $value, $execute = false): bool {} +function uopz_set_return(string $class, string $function, $value, $execute = false): bool {} /** * Sets the static variables in function or method scope @@ -228,7 +228,7 @@ function uopz_set_return (string $class, string $function, $value, $execute = fa * @param array $static The associative array of variable names mapped to their values * @return void */ -function uopz_set_static (string $class, string $function , array $static): void {} +function uopz_set_static(string $class, string $function, array $static): void {} /** * Undefine a constant @@ -238,7 +238,7 @@ function uopz_set_static (string $class, string $function , array $static): void * @return bool * @since 5.4 */ -function uopz_undefine (string $class, string $constant): bool {} +function uopz_undefine(string $class, string $constant): bool {} /** * Removes previously set hook on function or method @@ -247,7 +247,7 @@ function uopz_undefine (string $class, string $constant): bool {} * @param string $function The name of the method * @return bool TRUE on success or FALSE on failure */ -function uopz_unset_hook (string $class, string $function): bool {} +function uopz_unset_hook(string $class, string $function): bool {} /** * Unset previously set mock @@ -256,7 +256,7 @@ function uopz_unset_hook (string $class, string $function): bool {} * @return void * @since 7.0 */ -function uopz_unset_mock (string $class): void {} +function uopz_unset_mock(string $class): void {} /** * Unsets a previously set return value for a function @@ -266,7 +266,6 @@ function uopz_unset_mock (string $class): void {} * @return bool * @since 7.0 */ -function uopz_unset_return (string $class, string $function): bool {} +function uopz_unset_return(string $class, string $function): bool {} // End of uopz v5.0.2 -?> diff --git a/uuid/uuid_c.php b/uuid/uuid_c.php index a04271096..38cee3e01 100644 --- a/uuid/uuid_c.php +++ b/uuid/uuid_c.php @@ -24,7 +24,7 @@ * @param int $uuid_type [optional] Type of UUID to generat * @return string The string representation of a UUID */ -function uuid_create ($uuid_type = UUID_TYPE_DEFAULT) {} +function uuid_create($uuid_type = UUID_TYPE_DEFAULT) {} /** * Check whether a given UUID string is a valid UUID @@ -32,7 +32,7 @@ function uuid_create ($uuid_type = UUID_TYPE_DEFAULT) {} * @param string $uuid The UUID string to validate * @return bool Whether or not the UUID was valid */ -function uuid_is_valid ($uuid) {} +function uuid_is_valid($uuid) {} /** * Compare two UUIDs @@ -45,7 +45,7 @@ function uuid_is_valid ($uuid) {} * @param string $uuid2 Second UUID * @return int 0 if equal, otherwise a positive or negative integer */ -function uuid_compare ($uuid1, $uuid2) {} +function uuid_compare($uuid1, $uuid2) {} /** * Check wheter an UUID is the NULL UUID 00000000-0000-0000-0000-000000000000 @@ -53,7 +53,7 @@ function uuid_compare ($uuid1, $uuid2) {} * @param string $uuid * @return bool Returns true if the UUID is null */ -function uuid_is_null ($uuid) {} +function uuid_is_null($uuid) {} /** * Generate a MD5 hashed (predictable) UUID based on a well-known UUID @@ -65,7 +65,7 @@ function uuid_is_null ($uuid) {} * @param string $name * @return string The new UUID */ -function uuid_generate_md5 ($uuid_ns, $name) {} +function uuid_generate_md5($uuid_ns, $name) {} /** * Generate a SHA1 hashed (predictable) UUID based on a well-known UUID @@ -77,7 +77,7 @@ function uuid_generate_md5 ($uuid_ns, $name) {} * @param string $name * @return string The new UUID */ -function uuid_generate_sha1 ($uuid_ns, $name) {} +function uuid_generate_sha1($uuid_ns, $name) {} /** * Return the UUIDs type @@ -85,7 +85,7 @@ function uuid_generate_sha1 ($uuid_ns, $name) {} * @param string $uuid * @return int Any one of the UUID_TYPE_* constants */ -function uuid_type ($uuid) {} +function uuid_type($uuid) {} /** * Return the UUIDs variant @@ -93,7 +93,7 @@ function uuid_type ($uuid) {} * @param string $uuid * @return int Any one of the UUID_VARIANT_* constants */ -function uuid_variant ($uuid) {} +function uuid_variant($uuid) {} /** * Extract creation time from a time based UUID as UNIX timestamp @@ -101,7 +101,7 @@ function uuid_variant ($uuid) {} * @param string $uuid * @return false|int Returns a unix timestamp on success or false on failure */ -function uuid_time ($uuid) {} +function uuid_time($uuid) {} /** * Get UUID creator network MAC address @@ -109,7 +109,7 @@ function uuid_time ($uuid) {} * @param string $uuid * @return false|string Returns the MAC address on succes or false on failure */ -function uuid_mac ($uuid) {} +function uuid_mac($uuid) {} /** * Converts a UUID string to the binary representation @@ -117,7 +117,7 @@ function uuid_mac ($uuid) {} * @param string $uuid * @return false|string Binary string of the UUID on success or false on failure */ -function uuid_parse ($uuid) {} +function uuid_parse($uuid) {} /** * Converts a UUID binary string to the human readable string @@ -125,4 +125,4 @@ function uuid_parse ($uuid) {} * @param string $uuid * @return false|string String UUID on success or false on failure */ -function uuid_unparse ($uuid) {} +function uuid_unparse($uuid) {} diff --git a/uv/UV.php b/uv/UV.php index 69f072fae..b0ea2d8c5 100644 --- a/uv/UV.php +++ b/uv/UV.php @@ -2,202 +2,202 @@ class UV { - const RUN_DEFAULT = 0; - const RUN_ONCE = 1; - const RUN_NOWAIT = 2; - const CHANGE = 2; - const RENAME = 1; - const READABLE = 1; - const WRITABLE = 2; - const O_RDONLY = 0; - const O_WRONLY = 1; - const O_RDWR = 2; - const O_CREAT = 64; - const O_EXCL = 128; - const O_TRUNC = 512; - const O_APPEND = 1024; - const S_IFDIR = 16384; - const S_IFREG = 32768; - const O_NOCTTY = 256; - const S_IRWXU = 448; - const S_IRUSR = 256; - const S_IWUSR = 128; - const S_IXUSR = 64; - const S_IRWXG = 56; - const S_IRGRP = 32; - const S_IWGRP = 16; - const S_IXGRP = 8; - const S_IRWXO = 7; - const S_IROTH = 4; - const S_IWOTH = 2; - const S_IXOTH = 1; - const SIG_IGN = 1; - const SIG_DFL = 0; - const SIG_ERR = -1; - const SIGHUP = 1; - const SIGINT = 2; - const SIGQUIT = 3; - const SIGILL = 4; - const SIGTRAP = 5; - const SIGABRT = 6; - const SIGIOT = 6; - const SIGBUS = 7; - const SIGFPE = 8; - const SIGKILL = 9; - const SIGUSR1 = 10; - const SIGSEGV = 11; - const SIGUSR2 = 12; - const SIGPIPE = 13; - const SIGALRM = 14; - const SIGTERM = 15; - const SIGSTKFLT = 16; - const SIGCHLD = 17; - const SIGCONT = 18; - const SIGSTOP = 19; - const SIGTSTP = 20; - const SIGTTIN = 21; - const SIGTTOU = 22; - const SIGURG = 23; - const SIGXCPU = 24; - const SIGXFSZ = 25; - const SIGVTALRM = 26; - const SIGPROF = 27; - const SIGWINCH = 28; - const SIGPOLL = 29; - const SIGIO = 29; - const SIGPWR = 30; - const SIGSYS = 31; - const SIGBABY = 31; - const AF_INET = 2; - const AF_INET6 = 10; - const AF_UNSPEC = 0; - const LEAVE_GROUP = 0; - const JOIN_GROUP = 1; - const IS_UV_TCP = 0; - const IS_UV_UDP = 1; - const IS_UV_PIPE = 2; - const IS_UV_IDLE = 3; - const IS_UV_TIMER = 4; - const IS_UV_ASYNC = 5; - const IS_UV_LOOP = 6; - const IS_UV_HANDLE = 7; - const IS_UV_STREAM = 8; - const IS_UV_ADDRINFO = 9; - const IS_UV_PROCESS = 10; - const IS_UV_PREPARE = 11; - const IS_UV_CHECK = 12; - const IS_UV_WORK = 13; - const IS_UV_FS = 14; - const IS_UV_FS_EVENT = 15; - const IS_UV_TTY = 16; - const IS_UV_FS_POLL = 17; - const IS_UV_POLL = 18; - const UNKNOWN_HANDLE = 0; - const FILE = 17; - const ASYNC = 1; - const CHECK = 2; - const FS_EVENT = 3; - const FS_POLL = 4; - const HANDLE = 5; - const IDLE = 6; - const NAMED_PIPE = 7; - const POLL = 8; - const PREPARE = 9; - const PROCESS = 10; - const STREAM = 11; - const TCP = 12; - const TIMER = 13; - const TTY = 14; - const UDP = 15; - const SIGNAL = 16; - const HANDLE_TYPE_MAX = 18; - const IGNORE = 0; - const CREATE_PIPE = 1; - const INHERIT_FD = 2; - const INHERIT_STREAM = 4; - const READABLE_PIPE = 16; - const WRITABLE_PIPE = 32; - const PROCESS_SETUID = 1; - const PROCESS_SETGID = 2; - const PROCESS_WINDOWS_VERBATIM_ARGUMENTS = 4; - const PROCESS_DETACHED = 8; - const E2BIG = -7; - const EACCES = -13; - const EADDRINUSE = -98; - const EADDRNOTAVAIL = -99; - const EAFNOSUPPORT = -97; - const EAGAIN = -11; - const EAI_ADDRFAMILY = -3000; - const EAI_AGAIN = -3001; - const EAI_BADFLAGS = -3002; - const EAI_BADHINTS = -3013; - const EAI_CANCELED = -3003; - const EAI_FAIL = -3004; - const EAI_FAMILY = -3005; - const EAI_MEMORY = -3006; - const EAI_NODATA = -3007; - const EAI_NONAME = -3008; - const EAI_OVERFLOW = -3009; - const EAI_PROTOCOL = -3014; - const EAI_SERVICE = -3010; - const EAI_SOCKTYPE = -3011; - const EALREADY = -114; - const EBADF = -9; - const EBUSY = -16; - const ECANCELED = -125; - const ECHARSET = -4080; - const ECONNABORTED = -103; - const ECONNREFUSED = -111; - const ECONNRESET = -104; - const EDESTADDRREQ = -89; - const EEXIST = -17; - const EFAULT = -14; - const EFBIG = -27; - const EHOSTUNREACH = -113; - const EINTR = -4; - const EINVAL = -22; - const EIO = -5; - const EISCONN = -106; - const EISDIR = -21; - const ELOOP = -40; - const EMFILE = -24; - const EMSGSIZE = -90; - const ENAMETOOLONG = -36; - const ENETDOWN = -100; - const ENETUNREACH = -101; - const ENFILE = -23; - const ENOBUFS = -105; - const ENODEV = -19; - const ENOENT = -2; - const ENOMEM = -12; - const ENONET = -64; - const ENOPROTOOPT = -92; - const ENOSPC = -28; - const ENOSYS = -38; - const ENOTCONN = -107; - const ENOTDIR = -20; - const ENOTEMPTY = -39; - const ENOTSOCK = -88; - const ENOTSUP = -95; - const EPERM = -1; - const EPIPE = -32; - const EPROTO = -71; - const EPROTONOSUPPORT = -93; - const EPROTOTYPE = -91; - const ERANGE = -34; - const EROFS = -30; - const ESHUTDOWN = -108; - const ESPIPE = -29; - const ESRCH = -3; - const ETIMEDOUT = -110; - const ETXTBSY = -26; - const EXDEV = -18; - const UNKNOWN = -4094; - const EOF = -4095; - const ENXIO = -6; - const EMLINK = -31; - const EHOSTDOWN = -112; - const EREMOTEIO = -121; - const ENOTTY = -25; - const EFTYPE = -4028; + public const RUN_DEFAULT = 0; + public const RUN_ONCE = 1; + public const RUN_NOWAIT = 2; + public const CHANGE = 2; + public const RENAME = 1; + public const READABLE = 1; + public const WRITABLE = 2; + public const O_RDONLY = 0; + public const O_WRONLY = 1; + public const O_RDWR = 2; + public const O_CREAT = 64; + public const O_EXCL = 128; + public const O_TRUNC = 512; + public const O_APPEND = 1024; + public const S_IFDIR = 16384; + public const S_IFREG = 32768; + public const O_NOCTTY = 256; + public const S_IRWXU = 448; + public const S_IRUSR = 256; + public const S_IWUSR = 128; + public const S_IXUSR = 64; + public const S_IRWXG = 56; + public const S_IRGRP = 32; + public const S_IWGRP = 16; + public const S_IXGRP = 8; + public const S_IRWXO = 7; + public const S_IROTH = 4; + public const S_IWOTH = 2; + public const S_IXOTH = 1; + public const SIG_IGN = 1; + public const SIG_DFL = 0; + public const SIG_ERR = -1; + public const SIGHUP = 1; + public const SIGINT = 2; + public const SIGQUIT = 3; + public const SIGILL = 4; + public const SIGTRAP = 5; + public const SIGABRT = 6; + public const SIGIOT = 6; + public const SIGBUS = 7; + public const SIGFPE = 8; + public const SIGKILL = 9; + public const SIGUSR1 = 10; + public const SIGSEGV = 11; + public const SIGUSR2 = 12; + public const SIGPIPE = 13; + public const SIGALRM = 14; + public const SIGTERM = 15; + public const SIGSTKFLT = 16; + public const SIGCHLD = 17; + public const SIGCONT = 18; + public const SIGSTOP = 19; + public const SIGTSTP = 20; + public const SIGTTIN = 21; + public const SIGTTOU = 22; + public const SIGURG = 23; + public const SIGXCPU = 24; + public const SIGXFSZ = 25; + public const SIGVTALRM = 26; + public const SIGPROF = 27; + public const SIGWINCH = 28; + public const SIGPOLL = 29; + public const SIGIO = 29; + public const SIGPWR = 30; + public const SIGSYS = 31; + public const SIGBABY = 31; + public const AF_INET = 2; + public const AF_INET6 = 10; + public const AF_UNSPEC = 0; + public const LEAVE_GROUP = 0; + public const JOIN_GROUP = 1; + public const IS_UV_TCP = 0; + public const IS_UV_UDP = 1; + public const IS_UV_PIPE = 2; + public const IS_UV_IDLE = 3; + public const IS_UV_TIMER = 4; + public const IS_UV_ASYNC = 5; + public const IS_UV_LOOP = 6; + public const IS_UV_HANDLE = 7; + public const IS_UV_STREAM = 8; + public const IS_UV_ADDRINFO = 9; + public const IS_UV_PROCESS = 10; + public const IS_UV_PREPARE = 11; + public const IS_UV_CHECK = 12; + public const IS_UV_WORK = 13; + public const IS_UV_FS = 14; + public const IS_UV_FS_EVENT = 15; + public const IS_UV_TTY = 16; + public const IS_UV_FS_POLL = 17; + public const IS_UV_POLL = 18; + public const UNKNOWN_HANDLE = 0; + public const FILE = 17; + public const ASYNC = 1; + public const CHECK = 2; + public const FS_EVENT = 3; + public const FS_POLL = 4; + public const HANDLE = 5; + public const IDLE = 6; + public const NAMED_PIPE = 7; + public const POLL = 8; + public const PREPARE = 9; + public const PROCESS = 10; + public const STREAM = 11; + public const TCP = 12; + public const TIMER = 13; + public const TTY = 14; + public const UDP = 15; + public const SIGNAL = 16; + public const HANDLE_TYPE_MAX = 18; + public const IGNORE = 0; + public const CREATE_PIPE = 1; + public const INHERIT_FD = 2; + public const INHERIT_STREAM = 4; + public const READABLE_PIPE = 16; + public const WRITABLE_PIPE = 32; + public const PROCESS_SETUID = 1; + public const PROCESS_SETGID = 2; + public const PROCESS_WINDOWS_VERBATIM_ARGUMENTS = 4; + public const PROCESS_DETACHED = 8; + public const E2BIG = -7; + public const EACCES = -13; + public const EADDRINUSE = -98; + public const EADDRNOTAVAIL = -99; + public const EAFNOSUPPORT = -97; + public const EAGAIN = -11; + public const EAI_ADDRFAMILY = -3000; + public const EAI_AGAIN = -3001; + public const EAI_BADFLAGS = -3002; + public const EAI_BADHINTS = -3013; + public const EAI_CANCELED = -3003; + public const EAI_FAIL = -3004; + public const EAI_FAMILY = -3005; + public const EAI_MEMORY = -3006; + public const EAI_NODATA = -3007; + public const EAI_NONAME = -3008; + public const EAI_OVERFLOW = -3009; + public const EAI_PROTOCOL = -3014; + public const EAI_SERVICE = -3010; + public const EAI_SOCKTYPE = -3011; + public const EALREADY = -114; + public const EBADF = -9; + public const EBUSY = -16; + public const ECANCELED = -125; + public const ECHARSET = -4080; + public const ECONNABORTED = -103; + public const ECONNREFUSED = -111; + public const ECONNRESET = -104; + public const EDESTADDRREQ = -89; + public const EEXIST = -17; + public const EFAULT = -14; + public const EFBIG = -27; + public const EHOSTUNREACH = -113; + public const EINTR = -4; + public const EINVAL = -22; + public const EIO = -5; + public const EISCONN = -106; + public const EISDIR = -21; + public const ELOOP = -40; + public const EMFILE = -24; + public const EMSGSIZE = -90; + public const ENAMETOOLONG = -36; + public const ENETDOWN = -100; + public const ENETUNREACH = -101; + public const ENFILE = -23; + public const ENOBUFS = -105; + public const ENODEV = -19; + public const ENOENT = -2; + public const ENOMEM = -12; + public const ENONET = -64; + public const ENOPROTOOPT = -92; + public const ENOSPC = -28; + public const ENOSYS = -38; + public const ENOTCONN = -107; + public const ENOTDIR = -20; + public const ENOTEMPTY = -39; + public const ENOTSOCK = -88; + public const ENOTSUP = -95; + public const EPERM = -1; + public const EPIPE = -32; + public const EPROTO = -71; + public const EPROTONOSUPPORT = -93; + public const EPROTOTYPE = -91; + public const ERANGE = -34; + public const EROFS = -30; + public const ESHUTDOWN = -108; + public const ESPIPE = -29; + public const ESRCH = -3; + public const ETIMEDOUT = -110; + public const ETXTBSY = -26; + public const EXDEV = -18; + public const UNKNOWN = -4094; + public const EOF = -4095; + public const ENXIO = -6; + public const EMLINK = -31; + public const EHOSTDOWN = -112; + public const EREMOTEIO = -121; + public const ENOTTY = -25; + public const EFTYPE = -4028; } diff --git a/uv/uv_functions.php b/uv/uv_functions.php index 9d0b1c4f2..aec2d7cbc 100644 --- a/uv/uv_functions.php +++ b/uv/uv_functions.php @@ -666,7 +666,7 @@ function uv_stdio_new($fd, int $flags) {} * * @return resource */ -function uv_spawn($loop, string $command, array $args, array $stdio, string $cwd, array $env = array(), ?callable $callback = null, ?int $flags = null, ?array $options = null) {} +function uv_spawn($loop, string $command, array $args, array $stdio, string $cwd, array $env = [], ?callable $callback = null, ?int $flags = null, ?array $options = null) {} /** * Send signal to specified uv process resource. diff --git a/v8js/v8js.php b/v8js/v8js.php index a23da2471..c8dda9d62 100644 --- a/v8js/v8js.php +++ b/v8js/v8js.php @@ -4,11 +4,11 @@ class V8Js { /* Constants */ - const V8_VERSION = ''; + public const V8_VERSION = ''; - const FLAG_NONE = 1; - const FLAG_FORCE_ARRAY = 2; - const FLAG_PROPAGATE_PHP_EXCEPTIONS = 4; + public const FLAG_NONE = 1; + public const FLAG_FORCE_ARRAY = 2; + public const FLAG_PROPAGATE_PHP_EXCEPTIONS = 4; /* Methods */ @@ -21,16 +21,14 @@ class V8Js * @param bool $report_uncaught_exceptions * @param string $snapshot_blob */ - public function __construct($object_name = "PHP", array $variables = [], array $extensions = [], $report_uncaught_exceptions = true, $snapshot_blob = null) - {} + public function __construct($object_name = "PHP", array $variables = [], array $extensions = [], $report_uncaught_exceptions = true, $snapshot_blob = null) {} /** * Provide a function or method to be used to load required modules. This can be any valid PHP callable. * The loader function will receive the normalised module path and should return Javascript code to be executed. * @param callable $loader */ - public function setModuleLoader(callable $loader) - {} + public function setModuleLoader(callable $loader) {} /** * Provide a function or method to be used to normalise module paths. This can be any valid PHP callable. @@ -42,8 +40,7 @@ public function setModuleLoader(callable $loader) * module loader (unless the module was cached before). * @param callable $normaliser */ - public function setModuleNormaliser(callable $normaliser) - {} + public function setModuleNormaliser(callable $normaliser) {} /** * Compiles and executes script in object's context with optional identifier string. @@ -55,8 +52,7 @@ public function setModuleNormaliser(callable $normaliser) * @param int $memory_limit in bytes * @return mixed */ - public function executeString($script, $identifier = '', $flags = V8Js::FLAG_NONE, $time_limit = 0, $memory_limit = 0) - {} + public function executeString($script, $identifier = '', $flags = V8Js::FLAG_NONE, $time_limit = 0, $memory_limit = 0) {} /** * Compiles a script in object's context with optional identifier string. @@ -64,8 +60,7 @@ public function executeString($script, $identifier = '', $flags = V8Js::FLAG_NON * @param string $identifier * @return resource */ - public function compileString($script, $identifier = '') - {} + public function compileString($script, $identifier = '') {} /** * Executes a precompiled script in object's context. @@ -75,44 +70,38 @@ public function compileString($script, $identifier = '') * @param int $time_limit * @param int $memory_limit */ - public function executeScript($script, $flags = V8Js::FLAG_NONE, $time_limit = 0 , $memory_limit = 0) - {} + public function executeScript($script, $flags = V8Js::FLAG_NONE, $time_limit = 0, $memory_limit = 0) {} /** * Set the time limit (in milliseconds) for this V8Js object * works similar to the set_time_limit php * @param int $limit */ - public function setTimeLimit($limit) - {} + public function setTimeLimit($limit) {} /** * Set the memory limit (in bytes) for this V8Js object * @param int $limit */ - public function setMemoryLimit($limit) - {} + public function setMemoryLimit($limit) {} /** * Set the average object size (in bytes) for this V8Js object. * V8's "amount of external memory" is adjusted by this value for every exported object. V8 triggers a garbage collection once this totals to 192 MB. * @param int $average_object_size */ - public function setAverageObjectSize($average_object_size) - {} + public function setAverageObjectSize($average_object_size) {} /** * Returns uncaught pending exception or null if there is no pending exception. * @return V8JsScriptException|null */ - public function getPendingException() - {} + public function getPendingException() {} /** * Clears the uncaught pending exception */ - public function clearPendingException() - {} + public function clearPendingException() {} /* Static methods */ @@ -126,15 +115,13 @@ public function clearPendingException() * @param bool $auto_enable * @return bool */ - public static function registerExtension($extension_name, $code, array $dependencies, $auto_enable = false) - {} + public static function registerExtension($extension_name, $code, array $dependencies, $auto_enable = false) {} /** * Returns extensions successfully registered with V8Js::registerExtension(). * @return array|string[] */ - public static function getExtensions() - {} + public static function getExtensions() {} /** * Creates a custom V8 heap snapshot with the provided JavaScript source embedded. @@ -143,8 +130,7 @@ public static function getExtensions() * @param string $embed_source * @return string|false */ - public static function createSnapshot($embed_source) - {} + public static function createSnapshot($embed_source) {} } final class V8JsScriptException extends Exception @@ -152,35 +138,31 @@ final class V8JsScriptException extends Exception /** * @return string */ - final public function getJsFileName( ) {} + final public function getJsFileName() {} /** * @return int */ - final public function getJsLineNumber( ) {} + final public function getJsLineNumber() {} /** * @return int */ - final public function getJsStartColumn( ) {} + final public function getJsStartColumn() {} /** * @return int */ - final public function getJsEndColumn( ) {} + final public function getJsEndColumn() {} /** * @return string */ - final public function getJsSourceLine( ) {} + final public function getJsSourceLine() {} /** * @return string */ - final public function getJsTrace( ) {} + final public function getJsTrace() {} } -final class V8JsTimeLimitException extends Exception -{ -} +final class V8JsTimeLimitException extends Exception {} -final class V8JsMemoryLimitException extends Exception -{ -} +final class V8JsMemoryLimitException extends Exception {} diff --git a/wddx/wddx.php b/wddx/wddx.php index e274d59b7..54ba9ac30 100644 --- a/wddx/wddx.php +++ b/wddx/wddx.php @@ -13,7 +13,7 @@ *

    * @return string|false the WDDX packet, or FALSE on error. */ -function wddx_serialize_value ($var, $comment = null) {} +function wddx_serialize_value($var, $comment = null) {} /** * Serialize variables into a WDDX packet @@ -25,7 +25,7 @@ function wddx_serialize_value ($var, $comment = null) {} * @param mixed ...$_ [optional] * @return string|false the WDDX packet, or FALSE on error. */ -function wddx_serialize_vars ($var_name, ...$_) {} +function wddx_serialize_vars($var_name, ...$_) {} /** * Starts a new WDDX packet with structure inside it @@ -35,7 +35,7 @@ function wddx_serialize_vars ($var_name, ...$_) {} *

    * @return resource|false a packet ID for use in later functions, or FALSE on error. */ -function wddx_packet_start ($comment = null) {} +function wddx_packet_start($comment = null) {} /** * Ends a WDDX packet with the specified ID @@ -45,7 +45,7 @@ function wddx_packet_start ($comment = null) {} *

    * @return string the string containing the WDDX packet. */ -function wddx_packet_end ($packet_id) {} +function wddx_packet_end($packet_id) {} /** * Add variables to a WDDX packet with the specified ID @@ -60,7 +60,7 @@ function wddx_packet_end ($packet_id) {} * @param mixed ...$_ [optional] * @return bool TRUE on success or FALSE on failure. */ -function wddx_add_vars ($packet_id, $var_name, ...$_) {} +function wddx_add_vars($packet_id, $var_name, ...$_) {} /** * Unserializes a WDDX packet @@ -71,7 +71,6 @@ function wddx_add_vars ($packet_id, $var_name, ...$_) {} * @return mixed the deserialized value which can be a string, a number or an * array. Note that structures are deserialized into associative arrays. */ -function wddx_deserialize ($packet) {} +function wddx_deserialize($packet) {} // End of wddx v. -?> diff --git a/win32service/win32service.php b/win32service/win32service.php index 513ea0477..0b9434289 100644 --- a/win32service/win32service.php +++ b/win32service/win32service.php @@ -4,78 +4,78 @@ /** * The service runs in its own process. */ -define( "WIN32_SERVICE_WIN32_OWN_PROCESS", 0x00000010 ); +define("WIN32_SERVICE_WIN32_OWN_PROCESS", 0x00000010); /** * The service can interact with the desktop. This option is not available on Windows Vista or later. */ -define( "WIN32_SERVICE_INTERACTIVE_PROCESS", 0x00000100 ); +define("WIN32_SERVICE_INTERACTIVE_PROCESS", 0x00000100); /** * The service runs in its own process and can interact with the desktop. This option is not available on Windows Vista * or later. */ -define( "WIN32_SERVICE_WIN32_OWN_PROCESS_INTERACTIVE", 0x00000110 ); +define("WIN32_SERVICE_WIN32_OWN_PROCESS_INTERACTIVE", 0x00000110); //end Win32Service Service Type Bitmasks //start Win32Service Service Status Constants /** * The service continue is pending. */ -define( "WIN32_SERVICE_CONTINUE_PENDING", 0x00000005 ); +define("WIN32_SERVICE_CONTINUE_PENDING", 0x00000005); /** * The service pause is pending. */ -define( "WIN32_SERVICE_PAUSE_PENDING", 0x00000006 ); +define("WIN32_SERVICE_PAUSE_PENDING", 0x00000006); /** * The service is paused. */ -define( "WIN32_SERVICE_PAUSED", 0x00000007 ); +define("WIN32_SERVICE_PAUSED", 0x00000007); /** * The service is running. */ -define( "WIN32_SERVICE_RUNNING", 0x00000004 ); +define("WIN32_SERVICE_RUNNING", 0x00000004); /** * The service is starting. */ -define( "WIN32_SERVICE_START_PENDING", 0x00000002 ); +define("WIN32_SERVICE_START_PENDING", 0x00000002); /** * The service is stopping. */ -define( "WIN32_SERVICE_STOP_PENDING", 0x00000003 ); +define("WIN32_SERVICE_STOP_PENDING", 0x00000003); /** * The service is not running. */ -define( "WIN32_SERVICE_STOPPED", 0x00000001 ); +define("WIN32_SERVICE_STOPPED", 0x00000001); //end Win32Service Service Status Constants //start Win32Service Service Control Message Constants /** * Notifies a paused service that it should resume. */ -define( "WIN32_SERVICE_CONTROL_CONTINUE", 0x00000003 ); +define("WIN32_SERVICE_CONTROL_CONTINUE", 0x00000003); /** * Notifies a service that it should report its current status information to the service control manager. */ -define( "WIN32_SERVICE_CONTROL_INTERROGATE", 0x00000004 ); +define("WIN32_SERVICE_CONTROL_INTERROGATE", 0x00000004); /** * Notifies a service that it should pause. */ -define( "WIN32_SERVICE_CONTROL_PAUSE", 0x00000002 ); +define("WIN32_SERVICE_CONTROL_PAUSE", 0x00000002); /** * Notifies a service that the system will be shutting down. A service that handles this notification blocks system * shutdown until the service stops or the preshutdown time-out interval expires. This value is not supported by * Windows Server 2003 and Windows XP/2000. */ -define( "WIN32_SERVICE_CONTROL_PRESHUTDOWN", 0x0000000F ); +define("WIN32_SERVICE_CONTROL_PRESHUTDOWN", 0x0000000F); /** * Notifies a service that the system is shutting down so the service can perform cleanup tasks. If a service accepts * this control code, it must stop after it performs its cleanup tasks. After the SCM sends this control code, it will * not send other control codes to the service. */ -define( "WIN32_SERVICE_CONTROL_SHUTDOWN", 0x00000005 ); +define("WIN32_SERVICE_CONTROL_SHUTDOWN", 0x00000005); /** * Notifies a service that it should stop. */ -define( "WIN32_SERVICE_CONTROL_STOP", 0x00000001 ); +define("WIN32_SERVICE_CONTROL_STOP", 0x00000001); //end Win32Service Service Control Message Constants //start Win32Service Service Control Message Accepted Bitmasks @@ -83,221 +83,221 @@ * The service can be paused and continued. This control code allows the service to receive * WIN32_SERVICE_CONTROL_PAUSE and WIN32_SERVICE_CONTROL_CONTINUE notifications. */ -define( "WIN32_SERVICE_ACCEPT_PAUSE_CONTINUE", 0x00000002 ); +define("WIN32_SERVICE_ACCEPT_PAUSE_CONTINUE", 0x00000002); /** * The service can perform preshutdown tasks. This control code enables the service to receive * WIN32_SERVICE_CONTROL_PRESHUTDOWN notifications. This value is not supported by Windows Server 2003 and Windows * XP/2000. */ -define( "WIN32_SERVICE_ACCEPT_PRESHUTDOWN", 0x00000100 ); +define("WIN32_SERVICE_ACCEPT_PRESHUTDOWN", 0x00000100); /** * The service is notified when system shutdown occurs. This control code allows the service to receive * WIN32_SERVICE_CONTROL_SHUTDOWN notifications. */ -define( "WIN32_SERVICE_ACCEPT_SHUTDOWN", 0x00000004 ); +define("WIN32_SERVICE_ACCEPT_SHUTDOWN", 0x00000004); /** * The service can be stopped. This control code allows the service to receive WIN32_SERVICE_CONTROL_STOP * notifications. */ -define( "WIN32_SERVICE_ACCEPT_STOP", 0x00000001 ); +define("WIN32_SERVICE_ACCEPT_STOP", 0x00000001); //end Win32Service Service Control Message Accepted Bitmasks //start Win32Service Service Start Type Constants /** * A service started automatically by the service control manager during system startup. */ -define( "WIN32_SERVICE_AUTO_START", 0x00000002 ); +define("WIN32_SERVICE_AUTO_START", 0x00000002); /** * A service started by the service control manager when a process calls the StartService function. */ -define( "WIN32_SERVICE_DEMAND_START", 0x00000003 ); +define("WIN32_SERVICE_DEMAND_START", 0x00000003); /** * A service that cannot be started. Attempts to start the service result in the error code * WIN32_ERROR_SERVICE_DISABLED. */ -define( "WIN32_SERVICE_DISABLED", 0x00000004 ); +define("WIN32_SERVICE_DISABLED", 0x00000004); //end Win32Service Service Start Type Constants //start Win32Service Service Error Control Constants /** * The startup program ignores the error and continues the startup operation. */ -define( "WIN32_SERVICE_ERROR_IGNORE", 0x00000000 ); +define("WIN32_SERVICE_ERROR_IGNORE", 0x00000000); /** * The startup program logs the error in the event log but continues the startup operation. */ -define( "WIN32_SERVICE_ERROR_NORMAL", 0x00000001 ); +define("WIN32_SERVICE_ERROR_NORMAL", 0x00000001); //end Win32Service Service Error Control Constants //start Win32Service Service Flag Constants /** * The service runs in a system process that must always be running. */ -define( "WIN32_SERVICE_RUNS_IN_SYSTEM_PROCESS", 0x00000001 ); +define("WIN32_SERVICE_RUNS_IN_SYSTEM_PROCESS", 0x00000001); //end Win32Service Service Flag Constants //start Win32 Error Codes /** * The handle to the SCM database does not have the appropriate access rights. */ -define( "WIN32_ERROR_ACCESS_DENIED", 0x00000005 ); +define("WIN32_ERROR_ACCESS_DENIED", 0x00000005); /** * A circular service dependency was specified. */ -define( "WIN32_ERROR_CIRCULAR_DEPENDENCY", 0x00000423 ); +define("WIN32_ERROR_CIRCULAR_DEPENDENCY", 0x00000423); /** * The specified database does not exist. */ -define( "WIN32_ERROR_DATABASE_DOES_NOT_EXIST", 0x00000429 ); +define("WIN32_ERROR_DATABASE_DOES_NOT_EXIST", 0x00000429); /** * The service cannot be stopped because other running services are dependent on it. */ -define( "WIN32_ERROR_DEPENDENT_SERVICES_RUNNING", 0x0000041B ); +define("WIN32_ERROR_DEPENDENT_SERVICES_RUNNING", 0x0000041B); /** * The display name already exists in the service control manager database either as a service name or as another * display name. */ -define( "WIN32_ERROR_DUPLICATE_SERVICE_NAME", 0x00000436 ); +define("WIN32_ERROR_DUPLICATE_SERVICE_NAME", 0x00000436); /** * This error is returned if the program is being run as a console application rather than as a service. If the program * will be run as a console application for debugging purposes, structure it such that service-specific code is not * called. */ -define( "WIN32_ERROR_FAILED_SERVICE_CONTROLLER_CONNECT", 0x00000427 ); +define("WIN32_ERROR_FAILED_SERVICE_CONTROLLER_CONNECT", 0x00000427); /** * The buffer is too small for the service status structure. Nothing was written to the structure. */ -define( "WIN32_ERROR_INSUFFICIENT_BUFFER", 0x0000007A ); +define("WIN32_ERROR_INSUFFICIENT_BUFFER", 0x0000007A); /** * The specified service status structure is invalid. */ -define( "WIN32_ERROR_INVALID_DATA", 0x0000000D ); +define("WIN32_ERROR_INVALID_DATA", 0x0000000D); /** * The handle to the specified service control manager database is invalid. */ -define( "WIN32_ERROR_INVALID_HANDLE", 0x00000006 ); +define("WIN32_ERROR_INVALID_HANDLE", 0x00000006); /** * The InfoLevel parameter contains an unsupported value. */ -define( "WIN32_ERROR_INVALID_LEVEL", 0x0000007C ); +define("WIN32_ERROR_INVALID_LEVEL", 0x0000007C); /** * The specified service name is invalid. */ -define( "WIN32_ERROR_INVALID_NAME", 0x0000007B ); +define("WIN32_ERROR_INVALID_NAME", 0x0000007B); /** * A parameter that was specified is invalid. */ -define( "WIN32_ERROR_INVALID_PARAMETER", 0x00000057 ); +define("WIN32_ERROR_INVALID_PARAMETER", 0x00000057); /** * The user account name specified in the user parameter does not exist. See win32_create_service(). */ -define( "WIN32_ERROR_INVALID_SERVICE_ACCOUNT", 0x00000421 ); +define("WIN32_ERROR_INVALID_SERVICE_ACCOUNT", 0x00000421); /** * The requested control code is not valid, or it is unacceptable to the service. */ -define( "WIN32_ERROR_INVALID_SERVICE_CONTROL", 0x0000041C ); +define("WIN32_ERROR_INVALID_SERVICE_CONTROL", 0x0000041C); /** * The service binary file could not be found. */ -define( "WIN32_ERROR_PATH_NOT_FOUND", 0x00000003 ); +define("WIN32_ERROR_PATH_NOT_FOUND", 0x00000003); /** * An instance of the service is already running. */ -define( "WIN32_ERROR_SERVICE_ALREADY_RUNNING", 0x00000420 ); +define("WIN32_ERROR_SERVICE_ALREADY_RUNNING", 0x00000420); /** * The requested control code cannot be sent to the service because the state of the service is WIN32_SERVICE_STOPPED, * WIN32_SERVICE_START_PENDING, or WIN32_SERVICE_STOP_PENDING. */ -define( "WIN32_ERROR_SERVICE_CANNOT_ACCEPT_CTRL", 0x00000425 ); +define("WIN32_ERROR_SERVICE_CANNOT_ACCEPT_CTRL", 0x00000425); /** * The database is locked. */ -define( "WIN32_ERROR_SERVICE_DATABASE_LOCKED", 0x0000041F ); +define("WIN32_ERROR_SERVICE_DATABASE_LOCKED", 0x0000041F); /** * The service depends on a service that does not exist or has been marked for deletion. */ -define( "WIN32_ERROR_SERVICE_DEPENDENCY_DELETED", 0x00000433 ); +define("WIN32_ERROR_SERVICE_DEPENDENCY_DELETED", 0x00000433); /** * The service depends on another service that has failed to start. */ -define( "WIN32_ERROR_SERVICE_DEPENDENCY_FAIL", 0x0000042C ); +define("WIN32_ERROR_SERVICE_DEPENDENCY_FAIL", 0x0000042C); /** * The service has been disabled. */ -define( "WIN32_ERROR_SERVICE_DISABLED", 0x00000422 ); +define("WIN32_ERROR_SERVICE_DISABLED", 0x00000422); /** * The specified service does not exist as an installed service. */ -define( "WIN32_ERROR_SERVICE_DOES_NOT_EXIST", 0x00000424 ); +define("WIN32_ERROR_SERVICE_DOES_NOT_EXIST", 0x00000424); /** * The specified service already exists in this database. */ -define( "WIN32_ERROR_SERVICE_EXISTS", 0x00000431 ); +define("WIN32_ERROR_SERVICE_EXISTS", 0x00000431); /** * The service did not start due to a logon failure. This error occurs if the service is configured to run under an * account that does not have the "Log on as a service" right. */ -define( "WIN32_ERROR_SERVICE_LOGON_FAILED", 0x0000042D ); +define("WIN32_ERROR_SERVICE_LOGON_FAILED", 0x0000042D); /** * The specified service has already been marked for deletion. */ -define( "WIN32_ERROR_SERVICE_MARKED_FOR_DELETE", 0x00000430 ); +define("WIN32_ERROR_SERVICE_MARKED_FOR_DELETE", 0x00000430); /** * A thread could not be created for the service. */ -define( "WIN32_ERROR_SERVICE_NO_THREAD", 0x0000041E ); +define("WIN32_ERROR_SERVICE_NO_THREAD", 0x0000041E); /** * The service has not been started. */ -define( "WIN32_ERROR_SERVICE_NOT_ACTIVE", 0x00000426 ); +define("WIN32_ERROR_SERVICE_NOT_ACTIVE", 0x00000426); /** * The process for the service was started, but it did not call StartServiceCtrlDispatcher, or the thread that called * StartServiceCtrlDispatcher may be blocked in a control handler function. */ -define( "WIN32_ERROR_SERVICE_REQUEST_TIMEOUT", 0x0000041D ); +define("WIN32_ERROR_SERVICE_REQUEST_TIMEOUT", 0x0000041D); /** * The system is shutting down; this function cannot be called. */ -define( "WIN32_ERROR_SHUTDOWN_IN_PROGRESS", 0x0000045B ); +define("WIN32_ERROR_SHUTDOWN_IN_PROGRESS", 0x0000045B); /** * No error. */ -define( "WIN32_NO_ERROR", 0x00000000 ); +define("WIN32_NO_ERROR", 0x00000000); //end Win32 Error Codes //start Win32 Base Priority Classes /** * Process that has priority above WIN32_NORMAL_PRIORITY_CLASS but below WIN32_HIGH_PRIORITY_CLASS. */ -define( "WIN32_ABOVE_NORMAL_PRIORITY_CLASS", 0x00008000 ); +define("WIN32_ABOVE_NORMAL_PRIORITY_CLASS", 0x00008000); /** * Process that has priority above WIN32_IDLE_PRIORITY_CLASS but below WIN32_NORMAL_PRIORITY_CLASS. */ -define( "WIN32_BELOW_NORMAL_PRIORITY_CLASS", 0x00004000 ); +define("WIN32_BELOW_NORMAL_PRIORITY_CLASS", 0x00004000); /** * Process that performs time-critical tasks that must be executed immediately. The threads of the process preempt the * threads of normal or idle priority class processes. An example is the Task List, which must respond quickly when * called by the user, regardless of the load on the operating system. Use extreme care when using the high-priority * class, because a high-priority class application can use nearly all available CPU time. */ -define( "WIN32_HIGH_PRIORITY_CLASS", 0x00000080 ); +define("WIN32_HIGH_PRIORITY_CLASS", 0x00000080); /** * Process whose threads run only when the system is idle. The threads of the process are preempted by the threads of * any process running in a higher priority class. An example is a screen saver. The idle-priority class is inherited * by child processes. */ -define( "WIN32_IDLE_PRIORITY_CLASS", 0x00000040 ); +define("WIN32_IDLE_PRIORITY_CLASS", 0x00000040); /** * Process with no special scheduling needs. */ -define( "WIN32_NORMAL_PRIORITY_CLASS", 0x00000020 ); +define("WIN32_NORMAL_PRIORITY_CLASS", 0x00000020); /** * Process that has the highest possible priority. The threads of the process preempt the threads of all other * processes, including operating system processes performing important tasks. For example, a real-time process that * executes for more than a very brief interval can cause disk caches not to flush or cause the mouse to be * unresponsive. */ -define( "WIN32_REALTIME_PRIORITY_CLASS", 0x00000100 ); +define("WIN32_REALTIME_PRIORITY_CLASS", 0x00000100); //end Win32 Base Priority Classes /** @@ -309,7 +309,7 @@ * @return int|false Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code * on failure. */ -function win32_continue_service( $serviceName, $machine = "" ) { } +function win32_continue_service($serviceName, $machine = "") {} /** * Creates a new service entry in the SCM database @@ -411,8 +411,7 @@ function win32_continue_service( $serviceName, $machine = "" ) { } * @return int|false Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code * on failure. */ - -function win32_create_service( $details, $machine = "" ) { } +function win32_create_service($details, $machine = "") {} /** * Deletes a service entry from the SCM database @@ -426,7 +425,7 @@ function win32_create_service( $details, $machine = "" ) { } * @return int|false Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code * on failure. */ -function win32_delete_service( $serviceName, $machine = "" ) { } +function win32_delete_service($serviceName, $machine = "") {} /** * Returns the last control message that was sent to this service @@ -440,7 +439,7 @@ function win32_delete_service( $serviceName, $machine = "" ) { } * WIN32_SERVICE_CONTROL_CONTINUE, WIN32_SERVICE_CONTROL_INTERROGATE, WIN32_SERVICE_CONTROL_PAUSE, * WIN32_SERVICE_CONTROL_PRESHUTDOWN, WIN32_SERVICE_CONTROL_SHUTDOWN, WIN32_SERVICE_CONTROL_STOP. */ -function win32_get_last_control_message() { } +function win32_get_last_control_message() {} /** * Pauses a named service. Requires administrative privileges. @@ -450,9 +449,8 @@ function win32_get_last_control_message() { } * * @return int|false Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code * on failure. - * */ -function win32_pause_service( $serviceName, $machine = "" ) { } +function win32_pause_service($serviceName, $machine = "") {} /** * Queries the current status for a service, returning an array of information. @@ -506,7 +504,7 @@ function win32_pause_service( $serviceName, $machine = "" ) { } * * */ -function win32_query_service_status( $serviceName, $machine = "" ) { } +function win32_query_service_status($serviceName, $machine = "") {} /** * Update the service status @@ -529,9 +527,8 @@ function win32_query_service_status( $serviceName, $machine = "" ) { } * * @return bool|int Returns TRUE on success, FALSE if there is a problem with the parameters or a Win32 Error Code on * failure. - * */ -function win32_set_service_status( $status, $checkpoint = 0 ) { } +function win32_set_service_status($status, $checkpoint = 0) {} /** * Registers the script with the SCM, so that it can act as the service with the given name @@ -555,7 +552,7 @@ function win32_set_service_status( $status, $checkpoint = 0 ) { } * @return bool|int Returns TRUE on success, FALSE if there is a problem with the parameters or a Win32 Error Code on * failure. */ -function win32_start_service_ctrl_dispatcher( $name ) { } +function win32_start_service_ctrl_dispatcher($name) {} /** * Starts a service @@ -566,9 +563,8 @@ function win32_start_service_ctrl_dispatcher( $name ) { } * * @return int|false Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code * on failure. - * */ -function win32_start_service( $serviceName, $machine = "" ) { } +function win32_start_service($serviceName, $machine = "") {} /** * Stops a named service. Requires administrative privileges. @@ -579,4 +575,4 @@ function win32_start_service( $serviceName, $machine = "" ) { } * @return int|false Returns WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code * on failure. */ -function win32_stop_service( $serviceName, $machine = "" ) { } +function win32_stop_service($serviceName, $machine = "") {} diff --git a/winbinder/winbinder.php b/winbinder/winbinder.php index 83decfeef..9bf6065c7 100644 --- a/winbinder/winbinder.php +++ b/winbinder/winbinder.php @@ -177,9 +177,7 @@ * The return value is used for debugging purposes only and may be ignored. * @return void - For debugging */ -function wb_main_loop() -{ -} +function wb_main_loop() {} /** * Looks for a file in the Windows and System directories, in this order. @@ -192,7 +190,7 @@ function wb_main_loop() */ function wb_find_file($filename) { - return '' | 0 | null; + return ''|0|null; } /** @@ -225,7 +223,7 @@ function wb_find_file($filename) */ function wb_message_box($parent, $message, $title = null, $style = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -267,7 +265,7 @@ function wb_message_box($parent, $message, $title = null, $style = null) */ function wb_play_sound($source, $command = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -287,7 +285,7 @@ function wb_play_sound($source, $command = null) */ function wb_stop_sound($command = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -309,7 +307,7 @@ function wb_stop_sound($command = null) */ function wb_exec($command, $param = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -348,7 +346,7 @@ function wb_exec($command, $param = null) */ function wb_get_system_info($info) { - return '' | 0 | null; + return ''|0|null; } /** @@ -368,7 +366,7 @@ function wb_get_system_info($info) */ function wb_get_registry_key($key, $subkey, $entry = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -389,7 +387,7 @@ function wb_get_registry_key($key, $subkey, $entry = null) */ function wb_set_registry_key($key, $subkey, $entry = null, $value = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -415,7 +413,7 @@ function wb_set_registry_key($key, $subkey, $entry = null, $value = null) */ function wb_create_timer($window, $id, $interval) { - return '' | 0 | null; + return ''|0|null; } /** @@ -438,7 +436,7 @@ function wb_create_timer($window, $id, $interval) */ function wb_wait($window = null, $pause = null, $flags = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -452,7 +450,7 @@ function wb_wait($window = null, $pause = null, $flags = null) */ function wb_destroy_timer($window, $id) { - return '' | 0 | null; + return ''|0|null; } /** @@ -472,7 +470,7 @@ function wb_destroy_timer($window, $id) */ function wb_load_image($filename, $index = null, $param = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -488,7 +486,7 @@ function wb_load_image($filename, $index = null, $param = null) */ function wb_save_image($image, $filename) { - return '' | 0 | null; + return ''|0|null; } /** @@ -505,7 +503,7 @@ function wb_save_image($image, $filename) */ function wb_create_image($width = 0, $height = 0, $dibbmi = null, $dibbits = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -521,7 +519,7 @@ function wb_create_image($width = 0, $height = 0, $dibbmi = null, $dibbits = nul */ function wb_create_mask($bitmap, $transparent_color) { - return '' | 0 | null; + return ''|0|null; } /** @@ -533,7 +531,7 @@ function wb_create_mask($bitmap, $transparent_color) */ function wb_destroy_image($image) { - return '' | 0 | null; + return ''|0|null; } /** @@ -548,7 +546,7 @@ function wb_destroy_image($image) */ function wb_get_image_data($image, $compress4to3) { - return '' | 0 | null; + return ''|0|null; } /** @@ -564,7 +562,7 @@ function wb_get_image_data($image, $compress4to3) */ function wb_get_pixel($source, $xpos, $ypos) { - return '' | 0 | null; + return ''|0|null; } /** @@ -582,7 +580,7 @@ function wb_get_pixel($source, $xpos, $ypos) */ function wb_draw_point($source, $xpos, $ypos, $color) { - return '' | 0 | null; + return ''|0|null; } /** @@ -613,7 +611,7 @@ function wb_draw_point($source, $xpos, $ypos, $color) */ function wb_draw_line($target, $x0, $y0, $x1, $y1, $color, $linewidth = null, $linestyle = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -641,7 +639,7 @@ function wb_draw_line($target, $x0, $y0, $x1, $y1, $color, $linewidth = null, $l */ function wb_draw_rect($target, $xpos, $ypos, $width, $height, $color, $filled = null, $linewidth = null, $linestyle = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -669,7 +667,7 @@ function wb_draw_rect($target, $xpos, $ypos, $width, $height, $color, $filled = */ function wb_draw_ellipse($target, $xpos, $ypos, $width, $height, $color, $filled = null, $linewidth = null, $linestyle = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -697,7 +695,7 @@ function wb_draw_ellipse($target, $xpos, $ypos, $width, $height, $color, $filled */ function wb_draw_text($target, $text, $xpos, $ypos, $width = null, $height = null, $font = null, $flags = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -726,7 +724,7 @@ function wb_draw_text($target, $text, $xpos, $ypos, $width = null, $height = nul */ function wb_draw_image($target, $bitmap, $xpos = 0, $ypos = 0, $width = null, $height = null, $transparentcolor = null, $xoffset = null, $yoffset = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -743,7 +741,7 @@ function wb_draw_image($target, $bitmap, $xpos = 0, $ypos = 0, $width = null, $h */ function wb_destroy_control($control) { - return '' | 0 | null; + return ''|0|null; } /** @@ -757,7 +755,7 @@ function wb_destroy_control($control) */ function wb_get_value($wbobject, $item = -1, $subitem = -1) { - return '' | 0 | null; + return ''|0|null; } /** @@ -779,7 +777,7 @@ function wb_get_value($wbobject, $item = -1, $subitem = -1) */ function wb_refresh($wbobject, $now = null, $xpos = null, $ypos = null, $width = null, $height = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -794,7 +792,7 @@ function wb_refresh($wbobject, $now = null, $xpos = null, $ypos = null, $width = */ function wb_set_enabled($control, $enabled) { - return '' | 0 | null; + return ''|0|null; } /** @@ -821,7 +819,7 @@ function wb_set_enabled($control, $enabled) */ function wb_set_image($wbobject, $source, $transparentcolor = null, $index = null, $param = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -839,7 +837,7 @@ function wb_set_image($wbobject, $source, $transparentcolor = null, $index = nul */ function wb_set_item_image($wbobject, $index, $item = null, $subitem = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -861,7 +859,7 @@ function wb_set_item_image($wbobject, $index, $item = null, $subitem = null) */ function wb_delete_items($ctrl, $items = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -874,7 +872,7 @@ function wb_delete_items($ctrl, $items = null) */ function wb_get_class($wbobject) { - return '' | 0 | null; + return ''|0|null; } /** @@ -888,7 +886,7 @@ function wb_get_class($wbobject) */ function wb_get_control($wbobject, $id) { - return '' | 0 | null; + return ''|0|null; } /** @@ -900,7 +898,7 @@ function wb_get_control($wbobject, $id) */ function wb_get_enabled($wbobject) { - return '' | 0 | null; + return ''|0|null; } /** @@ -910,7 +908,7 @@ function wb_get_enabled($wbobject) */ function wb_get_focus() { - return '' | 0 | null; + return ''|0|null; } /** @@ -922,7 +920,7 @@ function wb_get_focus() */ function wb_get_id($wbobject) { - return '' | 0 | null; + return ''|0|null; } /** @@ -938,7 +936,7 @@ function wb_get_id($wbobject) */ function wb_get_item_count($wbobject) { - return '' | 0 | null; + return ''|0|null; } /** @@ -951,7 +949,7 @@ function wb_get_item_count($wbobject) */ function wb_get_parent($wbobject, $item = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -973,7 +971,7 @@ function wb_get_parent($wbobject, $item = null) */ function wb_get_selected($wbobject) { - return '' | 0 | null; + return ''|0|null; } /** @@ -990,7 +988,7 @@ function wb_get_selected($wbobject) */ function wb_get_state($wbobject, $item = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1002,7 +1000,7 @@ function wb_get_state($wbobject, $item = null) */ function wb_get_visible($wbobject) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1019,7 +1017,7 @@ function wb_get_visible($wbobject) */ function wb_set_cursor($wbobject, $source) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1031,7 +1029,7 @@ function wb_set_cursor($wbobject, $source) */ function wb_set_focus($wbobject) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1051,7 +1049,7 @@ function wb_set_focus($wbobject) */ function wb_set_handler($window, $fn_handler) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1073,7 +1071,7 @@ function wb_set_handler($window, $fn_handler) */ function wb_set_location($wbobject, $location) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1089,7 +1087,7 @@ function wb_set_location($wbobject, $location) */ function wb_set_range($control, $vmin, $vmax) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1107,7 +1105,7 @@ function wb_set_range($control, $vmin, $vmax) */ function wb_set_state($wbobject, $item, $state) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1132,7 +1130,7 @@ function wb_set_state($wbobject, $item, $state) */ function wb_set_style($wbobject, $style, $set) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1147,7 +1145,7 @@ function wb_set_style($wbobject, $style, $set) */ function wb_set_visible($wbobject, $visible) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1172,7 +1170,7 @@ function wb_set_visible($wbobject, $visible) */ function wb_sort($control, $ascending = null, $subitem = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1188,7 +1186,7 @@ function wb_sort($control, $ascending = null, $subitem = null) */ function wb_get_level($wbobject, $item) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1218,7 +1216,7 @@ function wb_get_level($wbobject, $item) */ function wb_create_font($name, $height, $color = null, $flags = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1230,7 +1228,7 @@ function wb_create_font($name, $height, $color = null, $flags = null) */ function wb_destroy_font($nfont) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1251,7 +1249,7 @@ function wb_destroy_font($nfont) */ function wb_set_font($control, $font = null, $redraw = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1265,7 +1263,7 @@ function wb_set_font($control, $font = null, $redraw = null) */ function wb_get_address($var) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1288,7 +1286,7 @@ function wb_get_address($var) */ function wb_send_message($wbobject, $message, $wparam = 0, $lparam = 0) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1303,7 +1301,7 @@ function wb_send_message($wbobject, $message, $wparam = 0, $lparam = 0) */ function wb_peek($address, $length = 0) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1317,7 +1315,7 @@ function wb_peek($address, $length = 0) */ function wb_poke($address, $contents, $length = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1350,7 +1348,7 @@ function wb_poke($address, $contents, $length = null) */ function wb_load_library($libname) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1364,7 +1362,7 @@ function wb_load_library($libname) */ function wb_release_library($idlib) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1400,7 +1398,7 @@ function wb_release_library($idlib) */ function wb_get_function_address($fname, $idlib) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1417,7 +1415,7 @@ function wb_get_function_address($fname, $idlib) */ function wb_call_function($address, $args = []) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1428,7 +1426,7 @@ function wb_call_function($address, $args = []) */ function wb_get_midi_callback() { - return '' | 0 | null; + return ''|0|null; } /** @@ -1438,7 +1436,7 @@ function wb_get_midi_callback() */ function wb_get_enum_callback() { - return '' | 0 | null; + return ''|0|null; } /** @@ -1447,7 +1445,7 @@ function wb_get_enum_callback() */ function wb_get_hook_callback() { - return '' | 0 | null; + return ''|0|null; } /** @@ -1461,7 +1459,7 @@ function wb_get_hook_callback() */ function wb_destroy_window($window) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1518,7 +1516,7 @@ function wb_get_size($object, $param = null) */ function wb_set_size($wbobject, $width, $height = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1535,7 +1533,7 @@ function wb_set_size($wbobject, $width, $height = null) */ function wb_set_position($wbobject, $xpos = null, $ypos = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1583,7 +1581,7 @@ function wb_get_position($wbobject, $clientarea = null) */ function wb_create_window($parent, $wclass, $caption = null, $xpos = null, $ypos = null, $width = null, $height = null, $style = null, $param = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1608,7 +1606,7 @@ function wb_create_window($parent, $wclass, $caption = null, $xpos = null, $ypos */ function wb_get_instance($caption, $bringtofront = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1649,7 +1647,7 @@ function wb_get_item_list($wbobject) */ function wb_set_area($window, $type, $x = null, $y = null, $width = null, $height = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1669,7 +1667,7 @@ function wb_set_area($window, $type, $x = null, $y = null, $width = null, $heigh */ function wb_sys_dlg_path($parent, $title = null, $path = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1689,7 +1687,7 @@ function wb_sys_dlg_path($parent, $title = null, $path = null) */ function wb_sys_dlg_color($parent, $title = null, $color = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1700,7 +1698,7 @@ function wb_sys_dlg_color($parent, $title = null, $color = null) */ function wbtemp_set_accel_table($parent, $accels) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1720,7 +1718,7 @@ function wbtemp_set_accel_table($parent, $accels) */ function wbtemp_create_control($parent, $class, $caption, $xpos, $ypos, $width, $height, $id, $style, $lparam, $ntab) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1731,7 +1729,7 @@ function wbtemp_create_control($parent, $class, $caption, $xpos, $ypos, $width, */ function wbtemp_create_item($ctrl, $str) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1744,7 +1742,7 @@ function wbtemp_create_item($ctrl, $str) */ function wbtemp_create_statusbar_items($ctrl, $items, $clear, $param) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1755,7 +1753,7 @@ function wbtemp_create_statusbar_items($ctrl, $items, $clear, $param) */ function wbtemp_get_text($ctrl, $item = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1767,7 +1765,7 @@ function wbtemp_get_text($ctrl, $item = null) */ function wbtemp_set_text($ctrl, $text, $item) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1778,7 +1776,7 @@ function wbtemp_set_text($ctrl, $text, $item) */ function wbtemp_select_tab($ctrl, $selitems) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1790,7 +1788,7 @@ function wbtemp_select_tab($ctrl, $selitems) */ function wbtemp_set_value($ctrl, $value, $item = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1803,7 +1801,7 @@ function wbtemp_set_value($ctrl, $value, $item = null) */ function wbtemp_create_listview_item($ctrl, $item, $image, $value) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1815,7 +1813,7 @@ function wbtemp_create_listview_item($ctrl, $item, $image, $value) */ function wbtemp_set_listview_item_checked($ctrl, $index, $value) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1826,7 +1824,7 @@ function wbtemp_set_listview_item_checked($ctrl, $index, $value) */ function wbtemp_get_listview_item_checked($ctrl, $item) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1839,7 +1837,7 @@ function wbtemp_get_listview_item_checked($ctrl, $item) */ function wbtemp_set_listview_item_text($ctrl, $item, $subitem, $text) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1850,7 +1848,7 @@ function wbtemp_set_listview_item_text($ctrl, $item, $subitem, $text) */ function wbtemp_get_listview_text($ctrl, $item) { - return '' | 0 | null | []; + return ''|0|null|[]; } /** @@ -1862,7 +1860,7 @@ function wbtemp_get_listview_text($ctrl, $item) */ function wbtemp_get_listview_columns($ctrl) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1876,7 +1874,7 @@ function wbtemp_get_listview_columns($ctrl) */ function wbtemp_create_listview_column($ctrl, $i, $text, $width, $align) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1886,7 +1884,7 @@ function wbtemp_create_listview_column($ctrl, $i, $text, $width, $align) */ function wbtemp_clear_listview_columns($ctrl) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1898,7 +1896,7 @@ function wbtemp_clear_listview_columns($ctrl) */ function wbtemp_select_listview_item($ctrl, $item, $selected) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1909,7 +1907,7 @@ function wbtemp_select_listview_item($ctrl, $item, $selected) */ function wbtemp_select_all_listview_items($ctrl, $bool) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1920,7 +1918,7 @@ function wbtemp_select_all_listview_items($ctrl, $bool) */ function wbtemp_create_menu($parent, $caption) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1931,7 +1929,7 @@ function wbtemp_create_menu($parent, $caption) */ function wbtemp_get_menu_item_checked($ctrl, $item) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1943,7 +1941,7 @@ function wbtemp_get_menu_item_checked($ctrl, $item) */ function wbtemp_set_menu_item_checked($ctrl, $selitems, $selected) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1955,7 +1953,7 @@ function wbtemp_set_menu_item_checked($ctrl, $selitems, $selected) */ function wbtemp_set_menu_item_selected($ctrl, $item, $selected) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1967,7 +1965,7 @@ function wbtemp_set_menu_item_selected($ctrl, $item, $selected) */ function wbtemp_set_menu_item_image($ctrl, $item, $imageHandle) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1981,7 +1979,7 @@ function wbtemp_set_menu_item_image($ctrl, $item, $imageHandle) */ function wbtemp_create_toolbar($parent, $caption, $width, $height, $lparam) { - return '' | 0 | null; + return ''|0|null; } /** @@ -1997,7 +1995,7 @@ function wbtemp_create_toolbar($parent, $caption, $width, $height, $lparam) */ function wbtemp_create_treeview_item($ctrl, $name, $value, $where = 0, $image_index = 0, $selected_image = 0, $selected_image_index = 0) { - return '' | 0 | null; + return ''|0|null; } /** @@ -2008,7 +2006,7 @@ function wbtemp_create_treeview_item($ctrl, $name, $value, $where = 0, $image_in */ function wbtemp_set_treeview_item_selected($ctrl, $selitems) { - return '' | 0 | null; + return ''|0|null; } /** @@ -2020,7 +2018,7 @@ function wbtemp_set_treeview_item_selected($ctrl, $selitems) */ function wbtemp_set_treeview_item_text($ctrl, $item, $text) { - return '' | 0 | null; + return ''|0|null; } /** @@ -2032,7 +2030,7 @@ function wbtemp_set_treeview_item_text($ctrl, $item, $text) */ function wbtemp_set_treeview_item_value($ctrl, $item, $value) { - return '' | 0 | null; + return ''|0|null; } /** @@ -2043,7 +2041,7 @@ function wbtemp_set_treeview_item_value($ctrl, $item, $value) */ function wbtemp_get_treeview_item_text($ctrl, $item) { - return '' | 0 | null; + return ''|0|null; } /** @@ -2057,7 +2055,7 @@ function wbtemp_get_treeview_item_text($ctrl, $item) */ function wbtemp_sys_dlg_open($parent, $title = null, $filter = null, $path = null, $flags = null) { - return '' | 0 | null; + return ''|0|null; } /** @@ -2072,5 +2070,5 @@ function wbtemp_sys_dlg_open($parent, $title = null, $filter = null, $path = nul */ function wbtemp_sys_dlg_save($wbObj, $title = '', $filter = '', $path = '', $filename = '', $defext = '') { - return '' | 0 | null; + return ''|0|null; } diff --git a/wincache/wincache.php b/wincache/wincache.php index 076cefaf0..aebb05a53 100644 --- a/wincache/wincache.php +++ b/wincache/wincache.php @@ -437,4 +437,3 @@ function wincache_ucache_set($key, $value, $ttl = 0) {} * @return bool Returns TRUE on success or FALSE on failure. */ function wincache_unlock($key) {} -?> diff --git a/xdebug/xdebug.php b/xdebug/xdebug.php index 59cd36fef..71c61cd11 100644 --- a/xdebug/xdebug.php +++ b/xdebug/xdebug.php @@ -30,13 +30,13 @@ function xdebug_get_function_stack(): array {} * @param int $options A bit mask of the following constants: XDEBUG_STACK_NO_DESC * @return void */ -function xdebug_print_function_stack (string $message = 'user triggered', int $options = 0) {} +function xdebug_print_function_stack(string $message = 'user triggered', int $options = 0) {} /** * Returns an array where each element is a variable name which is defined in the current scope. * @return array */ -function xdebug_get_declared_vars (): array {} +function xdebug_get_declared_vars(): array {} /** * This function returns the filename from where the current function/method was executed from, or NULL @@ -44,7 +44,7 @@ function xdebug_get_declared_vars (): array {} * @param int $depth * @return mixed */ -function xdebug_call_file (int $depth = 2) {} +function xdebug_call_file(int $depth = 2) {} /** * This function returns the name of the class that defined the current method, NULL if the stack frame does not exist, @@ -52,7 +52,7 @@ function xdebug_call_file (int $depth = 2) {} * @param int $depth * @return mixed */ -function xdebug_call_class (int $depth = 2) {} +function xdebug_call_class(int $depth = 2) {} /** * This function returns the name of the current function/method, NULL if the stack frame does not exist, or FALSE @@ -60,7 +60,7 @@ function xdebug_call_class (int $depth = 2) {} * @param int $depth * @return mixed */ -function xdebug_call_function (int $depth = 2) {} +function xdebug_call_function(int $depth = 2) {} /** * This function returns the line number from where the current function/method was called from, or NULL @@ -68,7 +68,7 @@ function xdebug_call_function (int $depth = 2) {} * @param int $depth * @return mixed */ -function xdebug_call_line (int $depth = 2) {} +function xdebug_call_line(int $depth = 2) {} /** * This function starts the monitoring of functions that were given in a list as argument to this function. @@ -78,14 +78,14 @@ function xdebug_call_line (int $depth = 2) {} * @param string[] $listOfFunctionsToMonitor * @return void */ -function xdebug_start_function_monitor ( array $listOfFunctionsToMonitor ) {} +function xdebug_start_function_monitor(array $listOfFunctionsToMonitor) {} /** * This function stops the function monitor. * In order to get the list of monitored functions, you need to use the xdebug_get_monitored_functions() function. * @return void */ -function xdebug_stop_function_monitor () {} +function xdebug_stop_function_monitor() {} /** * Returns a structure which contains information about where the monitored functions were executed in your script. @@ -99,7 +99,7 @@ function xdebug_get_monitored_functions(): array {} * @param mixed $var * @return void */ -function xdebug_var_dump (mixed ...$variable) {} +function xdebug_var_dump(mixed ...$variable) {} /** * This function displays structured information about one or more variables that includes its type, value and refcount information. @@ -113,7 +113,7 @@ function xdebug_var_dump (mixed ...$variable) {} * @param string ...$varname * @return void */ -function xdebug_debug_zval (string ...$varname) {} +function xdebug_debug_zval(string ...$varname) {} /** * This function displays structured information about one or more variables that includes its type, @@ -124,25 +124,25 @@ function xdebug_debug_zval (string ...$varname) {} * @param string ...$varname * @return void */ -function xdebug_debug_zval_stdout (string ...$varname) {} +function xdebug_debug_zval_stdout(string ...$varname) {} /** * Enable showing stack traces on error conditions. * @return void */ -function xdebug_enable () {} +function xdebug_enable() {} /** * Disable showing stack traces on error conditions. * @return void */ -function xdebug_disable () {} +function xdebug_disable() {} /** * Return whether stack traces would be shown in case of an error or not. * @return bool */ -function xdebug_is_enabled () {} +function xdebug_is_enabled() {} /** * Starts recording all notices, warnings and errors and prevents their display @@ -156,14 +156,14 @@ function xdebug_is_enabled () {} * This is really useful if you want to prevent Xdebug's powerful error reporting features from destroying your layout. * @return void */ -function xdebug_start_error_collection () {} +function xdebug_start_error_collection() {} /** * When this function is executed, error collection as started by xdebug_start_error_collection() is aborted. * The errors stored in the collection buffer are not deleted and still available to be fetched through xdebug_get_collected_errors(). * @return void */ -function xdebug_stop_error_collection () {} +function xdebug_stop_error_collection() {} /** * This function returns all errors from the collection buffer that contains all errors that were stored there when error collection was started with xdebug_start_error_collection(). @@ -179,7 +179,7 @@ function xdebug_get_collected_errors(bool $emptyList = false): array {} * * @return bool */ -function xdebug_break (): bool {} +function xdebug_break(): bool {} /** * Start tracing function calls from this point to the file in the trace_file parameter. @@ -205,24 +205,24 @@ function xdebug_stop_trace(): string {} * This is useful when xdebug.auto_trace is enabled. * @return string|null */ -function xdebug_get_tracefile_name () {} +function xdebug_get_tracefile_name() {} /** * Returns the name of the file which is used to save profile information to. * * @return string|false */ -function xdebug_get_profiler_filename () {} +function xdebug_get_profiler_filename() {} /** * @return bool */ -function xdebug_dump_aggr_profiling_data () {} +function xdebug_dump_aggr_profiling_data() {} /** * @return bool */ -function xdebug_clear_aggr_profiling_data () {} +function xdebug_clear_aggr_profiling_data() {} /** * Returns the current amount of memory the script uses. @@ -259,7 +259,7 @@ function xdebug_time_index(): float {} * @param int $options * @return void */ -function xdebug_start_code_coverage (int $options = 0) {} +function xdebug_start_code_coverage(int $options = 0) {} /** * This function stops collecting information, the information in memory will be destroyed. @@ -268,7 +268,7 @@ function xdebug_start_code_coverage (int $options = 0) {} * @param bool $cleanUp Destroy collected information in memory * @return void */ -function xdebug_stop_code_coverage (bool $cleanUp = true) {} +function xdebug_stop_code_coverage(bool $cleanUp = true) {} /** * Returns whether code coverage is active. @@ -322,7 +322,7 @@ function xdebug_is_debugger_active(): bool {} * @param string|null $gcstatsFile * @return mixed */ -function xdebug_start_gcstats(?string $gcstatsFile = null ) {} +function xdebug_start_gcstats(?string $gcstatsFile = null) {} /** * Stop garbage collection statistics collection and closes the output file. @@ -353,18 +353,18 @@ function xdebug_get_gc_total_collected_roots(): int {} * @param array $configuration * @return void */ -function xdebug_set_filter(int $group, int $listType, array $configuration ) {} +function xdebug_set_filter(int $group, int $listType, array $configuration) {} -define ('XDEBUG_STACK_NO_DESC', 1); -define ('XDEBUG_TRACE_APPEND', 1); -define ('XDEBUG_TRACE_COMPUTERIZED', 2); -define ('XDEBUG_TRACE_HTML', 4); -define ('XDEBUG_TRACE_NAKED_FILENAME', 8); -define ('XDEBUG_CC_UNUSED', 1); -define ('XDEBUG_CC_DEAD_CODE', 2); -define ('XDEBUG_CC_BRANCH_CHECK', 4); +define('XDEBUG_STACK_NO_DESC', 1); +define('XDEBUG_TRACE_APPEND', 1); +define('XDEBUG_TRACE_COMPUTERIZED', 2); +define('XDEBUG_TRACE_HTML', 4); +define('XDEBUG_TRACE_NAKED_FILENAME', 8); +define('XDEBUG_CC_UNUSED', 1); +define('XDEBUG_CC_DEAD_CODE', 2); +define('XDEBUG_CC_BRANCH_CHECK', 4); define('XDEBUG_FILTER_TRACING', 256); -define('XDEBUG_FILTER_CODE_COVERAGE',512); +define('XDEBUG_FILTER_CODE_COVERAGE', 512); define('XDEBUG_FILTER_NONE', 0); define('XDEBUG_PATH_WHITELIST', 1); define('XDEBUG_PATH_BLACKLIST', 2); @@ -373,4 +373,4 @@ function xdebug_set_filter(int $group, int $listType, array $configuration ) {} define('XDEBUG_NAMESPACE_EXCLUDE', 18); define('XDEBUG_NAMESPACE_INCLUDE', 17); define('XDEBUG_PATH_EXCLUDE', 2); -define('XDEBUG_PATH_INCLUDE',1); +define('XDEBUG_PATH_INCLUDE', 1); diff --git a/xhprof/xhprof.php b/xhprof/xhprof.php index cb74426b8..30720ea82 100644 --- a/xhprof/xhprof.php +++ b/xhprof/xhprof.php @@ -17,9 +17,7 @@ * * @return null */ -function xhprof_enable( $flags = 0, array $options = [] ) -{ -} +function xhprof_enable($flags = 0, array $options = []) {} /** * (PHP >= 5.2.0, PECL xhprof >= 0.9.0)
    @@ -28,9 +26,7 @@ function xhprof_enable( $flags = 0, array $options = [] ) * @link https://php.net/manual/en/function.xhprof-disable.php * @return array an array of xhprof data, from the run. */ -function xhprof_disable() -{ -} +function xhprof_disable() {} /** * (PHP >= 5.2.0, PECL xhprof >= 0.9.0)
    @@ -41,9 +37,7 @@ function xhprof_disable() * @link https://php.net/manual/en/function.xhprof-sample-enable.php * @return null */ -function xhprof_sample_enable() -{ -} +function xhprof_sample_enable() {} /** * (PHP >= 5.2.0, PECL xhprof >= 0.9.0)
    @@ -52,9 +46,7 @@ function xhprof_sample_enable() * @link https://php.net/manual/en/function.xhprof-sample-disable.php * @return array an array of xhprof sample data, from the run. */ -function xhprof_sample_disable() -{ -} +function xhprof_sample_disable() {} /** * @link https://php.net/manual/en/xhprof.constants.php#constant.xhprof-flags-no-builtins diff --git a/xlswriter/xlswriter.php b/xlswriter/xlswriter.php index 68217c5e7..66852eed2 100644 --- a/xlswriter/xlswriter.php +++ b/xlswriter/xlswriter.php @@ -5,8 +5,8 @@ * https://pecl.php.net/package/xlswriter * https://www.php.net/manual/en/book.xlswriter.php */ -namespace Vtiful\Kernel { - use Vtiful\Kernel; + +namespace Vtiful\Kernel; /** * Class Excel @@ -15,29 +15,26 @@ */ class Excel { - const TYPE_STRING = 0x01; - const TYPE_INT = 0x02; - const TYPE_DOUBLE = 0x04; - const TYPE_TIMESTAMP = 0x08; + public const TYPE_STRING = 0x01; + public const TYPE_INT = 0x02; + public const TYPE_DOUBLE = 0x04; + public const TYPE_TIMESTAMP = 0x08; - const SKIP_NONE = 0x00; - const SKIP_EMPTY_ROW = 0x01; - const SKIP_EMPTY_CELLS = 0x02; + public const SKIP_NONE = 0x00; + public const SKIP_EMPTY_ROW = 0x01; + public const SKIP_EMPTY_CELLS = 0x02; - const GRIDLINES_HIDE_ALL = 0; - const GRIDLINES_SHOW_SCREEN = 1; - const GRIDLINES_SHOW_PRINT = 2; - const GRIDLINES_SHOW_ALL = 3; + public const GRIDLINES_HIDE_ALL = 0; + public const GRIDLINES_SHOW_SCREEN = 1; + public const GRIDLINES_SHOW_PRINT = 2; + public const GRIDLINES_SHOW_ALL = 3; /** * Excel constructor. * * @param array $config */ - public function __construct(array $config) - { - // - } + public function __construct(array $config) {} /** * File Name @@ -136,10 +133,7 @@ public function output(): string * * @return resource */ - public function getHandle() - { - // - } + public function getHandle() {} /** * Auto filter on the worksheet @@ -158,7 +152,7 @@ public function autoFilter(string $range): self * * @param int $row * @param int $column - * @param int|string|double $data + * @param int|string|float $data * @param string|null $format * @param resource|null $formatHandle * @@ -350,10 +344,7 @@ public function nextRow(): array * @param callable $callback function(int $row, int $cell, string $data) * @param string|null $sheetName sheet name */ - public function nextCellCallback(callable $callback, string $sheetName = null): void - { - // - } + public function nextCellCallback(callable $callback, string $sheetName = null): void {} /** * Freeze panes @@ -416,84 +407,81 @@ public function zoom(int $scale): self */ class Format { - const UNDERLINE_SINGLE = 0x00; - const UNDERLINE_DOUBLE = 0x00; - const UNDERLINE_SINGLE_ACCOUNTING = 0x00; - const UNDERLINE_DOUBLE_ACCOUNTING = 0x00; - - const FORMAT_ALIGN_LEFT = 0x00; - const FORMAT_ALIGN_CENTER = 0x00; - const FORMAT_ALIGN_RIGHT = 0x00; - const FORMAT_ALIGN_FILL = 0x00; - const FORMAT_ALIGN_JUSTIFY = 0x00; - const FORMAT_ALIGN_CENTER_ACROSS = 0x00; - const FORMAT_ALIGN_DISTRIBUTED = 0x00; - const FORMAT_ALIGN_VERTICAL_TOP = 0x00; - const FORMAT_ALIGN_VERTICAL_BOTTOM = 0x00; - const FORMAT_ALIGN_VERTICAL_CENTER = 0x00; - const FORMAT_ALIGN_VERTICAL_JUSTIFY = 0x00; - const FORMAT_ALIGN_VERTICAL_DISTRIBUTED = 0x00; - - const COLOR_BLACK = 0x00; - const COLOR_BLUE = 0x00; - const COLOR_BROWN = 0x00; - const COLOR_CYAN = 0x00; - const COLOR_GRAY = 0x00; - const COLOR_GREEN = 0x00; - const COLOR_LIME = 0x00; - const COLOR_MAGENTA = 0x00; - const COLOR_NAVY = 0x00; - const COLOR_ORANGE = 0x00; - const COLOR_PINK = 0x00; - const COLOR_PURPLE = 0x00; - const COLOR_RED = 0x00; - const COLOR_SILVER = 0x00; - const COLOR_WHITE = 0x00; - const COLOR_YELLOW = 0x00; - - const PATTERN_NONE = 0x00; - const PATTERN_SOLID = 0x00; - const PATTERN_MEDIUM_GRAY = 0x00; - const PATTERN_DARK_GRAY = 0x00; - const PATTERN_LIGHT_GRAY = 0x00; - const PATTERN_DARK_HORIZONTAL = 0x00; - const PATTERN_DARK_VERTICAL = 0x00; - const PATTERN_DARK_DOWN = 0x00; - const PATTERN_DARK_UP = 0x00; - const PATTERN_DARK_GRID = 0x00; - const PATTERN_DARK_TRELLIS = 0x00; - const PATTERN_LIGHT_HORIZONTAL = 0x00; - const PATTERN_LIGHT_VERTICAL = 0x00; - const PATTERN_LIGHT_DOWN = 0x00; - const PATTERN_LIGHT_UP = 0x00; - const PATTERN_LIGHT_GRID = 0x00; - const PATTERN_LIGHT_TRELLIS = 0x00; - const PATTERN_GRAY_125 = 0x00; - const PATTERN_GRAY_0625 = 0x00; - - const BORDER_THIN = 0x00; - const BORDER_MEDIUM = 0x00; - const BORDER_DASHED = 0x00; - const BORDER_DOTTED = 0x00; - const BORDER_THICK = 0x00; - const BORDER_DOUBLE = 0x00; - const BORDER_HAIR = 0x00; - const BORDER_MEDIUM_DASHED = 0x00; - const BORDER_DASH_DOT = 0x00; - const BORDER_MEDIUM_DASH_DOT = 0x00; - const BORDER_DASH_DOT_DOT = 0x00; - const BORDER_MEDIUM_DASH_DOT_DOT = 0x00; - const BORDER_SLANT_DASH_DOT = 0x00; + public const UNDERLINE_SINGLE = 0x00; + public const UNDERLINE_DOUBLE = 0x00; + public const UNDERLINE_SINGLE_ACCOUNTING = 0x00; + public const UNDERLINE_DOUBLE_ACCOUNTING = 0x00; + + public const FORMAT_ALIGN_LEFT = 0x00; + public const FORMAT_ALIGN_CENTER = 0x00; + public const FORMAT_ALIGN_RIGHT = 0x00; + public const FORMAT_ALIGN_FILL = 0x00; + public const FORMAT_ALIGN_JUSTIFY = 0x00; + public const FORMAT_ALIGN_CENTER_ACROSS = 0x00; + public const FORMAT_ALIGN_DISTRIBUTED = 0x00; + public const FORMAT_ALIGN_VERTICAL_TOP = 0x00; + public const FORMAT_ALIGN_VERTICAL_BOTTOM = 0x00; + public const FORMAT_ALIGN_VERTICAL_CENTER = 0x00; + public const FORMAT_ALIGN_VERTICAL_JUSTIFY = 0x00; + public const FORMAT_ALIGN_VERTICAL_DISTRIBUTED = 0x00; + + public const COLOR_BLACK = 0x00; + public const COLOR_BLUE = 0x00; + public const COLOR_BROWN = 0x00; + public const COLOR_CYAN = 0x00; + public const COLOR_GRAY = 0x00; + public const COLOR_GREEN = 0x00; + public const COLOR_LIME = 0x00; + public const COLOR_MAGENTA = 0x00; + public const COLOR_NAVY = 0x00; + public const COLOR_ORANGE = 0x00; + public const COLOR_PINK = 0x00; + public const COLOR_PURPLE = 0x00; + public const COLOR_RED = 0x00; + public const COLOR_SILVER = 0x00; + public const COLOR_WHITE = 0x00; + public const COLOR_YELLOW = 0x00; + + public const PATTERN_NONE = 0x00; + public const PATTERN_SOLID = 0x00; + public const PATTERN_MEDIUM_GRAY = 0x00; + public const PATTERN_DARK_GRAY = 0x00; + public const PATTERN_LIGHT_GRAY = 0x00; + public const PATTERN_DARK_HORIZONTAL = 0x00; + public const PATTERN_DARK_VERTICAL = 0x00; + public const PATTERN_DARK_DOWN = 0x00; + public const PATTERN_DARK_UP = 0x00; + public const PATTERN_DARK_GRID = 0x00; + public const PATTERN_DARK_TRELLIS = 0x00; + public const PATTERN_LIGHT_HORIZONTAL = 0x00; + public const PATTERN_LIGHT_VERTICAL = 0x00; + public const PATTERN_LIGHT_DOWN = 0x00; + public const PATTERN_LIGHT_UP = 0x00; + public const PATTERN_LIGHT_GRID = 0x00; + public const PATTERN_LIGHT_TRELLIS = 0x00; + public const PATTERN_GRAY_125 = 0x00; + public const PATTERN_GRAY_0625 = 0x00; + + public const BORDER_THIN = 0x00; + public const BORDER_MEDIUM = 0x00; + public const BORDER_DASHED = 0x00; + public const BORDER_DOTTED = 0x00; + public const BORDER_THICK = 0x00; + public const BORDER_DOUBLE = 0x00; + public const BORDER_HAIR = 0x00; + public const BORDER_MEDIUM_DASHED = 0x00; + public const BORDER_DASH_DOT = 0x00; + public const BORDER_MEDIUM_DASH_DOT = 0x00; + public const BORDER_DASH_DOT_DOT = 0x00; + public const BORDER_MEDIUM_DASH_DOT_DOT = 0x00; + public const BORDER_SLANT_DASH_DOT = 0x00; /** * Format constructor. * * @param resource $fileHandle */ - public function __construct($fileHandle) - { - // - } + public function __construct($fileHandle) {} /** * Wrap @@ -639,9 +627,5 @@ public function background(int $color, int $pattern = self::PATTERN_SOLID): self * * @return resource */ - public function toResource() - { - // - } + public function toResource() {} } -} diff --git a/xml/xml.php b/xml/xml.php index 346dfe71c..1ec9f916d 100644 --- a/xml/xml.php +++ b/xml/xml.php @@ -24,7 +24,7 @@ */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] -function xml_parser_create (?string $encoding) {} +function xml_parser_create(?string $encoding) {} /** * Create an XML parser with namespace support @@ -49,7 +49,7 @@ function xml_parser_create (?string $encoding) {} */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] -function xml_parser_create_ns (?string $encoding, string $separator = ':') {} +function xml_parser_create_ns(?string $encoding, string $separator = ':') {} /** * Use XML Parser within an object @@ -62,8 +62,7 @@ function xml_parser_create_ns (?string $encoding, string $separator = ':') {} *

    * @return bool TRUE on success or FALSE on failure. */ -function xml_set_object (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, object $object): bool -{} +function xml_set_object(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, object $object): bool {} /** * Set up start and end element handlers @@ -92,7 +91,7 @@ function xml_set_object (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], defaul * reference to the XML parser calling the handler.

    * @return bool TRUE on success or FALSE on failure. */ -function xml_set_element_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $start_handler, $end_handler): bool {} +function xml_set_element_handler(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $start_handler, $end_handler): bool {} /** * Set up character data handler @@ -116,7 +115,7 @@ function xml_set_element_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser" * reference to the XML parser calling the handler.

    * @return bool TRUE on success or FALSE on failure. */ -function xml_set_character_data_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} +function xml_set_character_data_handler(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} /** * Set up processing instruction (PI) handler @@ -141,7 +140,7 @@ function xml_set_character_data_handler (#[LanguageLevelTypeAware(["8.0" => "XML * reference to the XML parser calling the handler.

    * @return bool TRUE on success or FALSE on failure. */ -function xml_set_processing_instruction_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} +function xml_set_processing_instruction_handler(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} /** * Set up default handler @@ -165,7 +164,7 @@ function xml_set_processing_instruction_handler (#[LanguageLevelTypeAware(["8.0" * reference to the XML parser calling the handler.

    * @return bool TRUE on success or FALSE on failure. */ -function xml_set_default_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} +function xml_set_default_handler(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} /** * Set up unparsed entity declaration handler @@ -194,7 +193,7 @@ function xml_set_default_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser" * handler.

    * @return bool TRUE on success or FALSE on failure. */ -function xml_set_unparsed_entity_decl_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} +function xml_set_unparsed_entity_decl_handler(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} /** * Set up notation declaration handler @@ -221,8 +220,7 @@ function xml_set_unparsed_entity_decl_handler (#[LanguageLevelTypeAware(["8.0" = * reference to the XML parser calling the handler.

    * @return bool TRUE on success or FALSE on failure. */ -function xml_set_notation_decl_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool -{} +function xml_set_notation_decl_handler(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} /** * Set up external entity reference handler @@ -253,8 +251,7 @@ function xml_set_notation_decl_handler (#[LanguageLevelTypeAware(["8.0" => "XMLP * reference to the XML parser calling the handler.

    * @return bool TRUE on success or FALSE on failure. */ -function xml_set_external_entity_ref_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool -{} +function xml_set_external_entity_ref_handler(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} /** * Set up start namespace declaration handler @@ -283,8 +280,7 @@ function xml_set_external_entity_ref_handler (#[LanguageLevelTypeAware(["8.0" => * reference to the XML parser calling the handler.

    * @return bool TRUE on success or FALSE on failure. */ -function xml_set_start_namespace_decl_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool -{} +function xml_set_start_namespace_decl_handler(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} /** * Set up end namespace declaration handler @@ -312,8 +308,7 @@ function xml_set_start_namespace_decl_handler (#[LanguageLevelTypeAware(["8.0" = * reference to the XML parser calling the handler.

    * @return bool TRUE on success or FALSE on failure. */ -function xml_set_end_namespace_decl_handler (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool -{} +function xml_set_end_namespace_decl_handler(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, $handler): bool {} /** * Start parsing an XML document @@ -345,8 +340,7 @@ function xml_set_end_namespace_decl_handler (#[LanguageLevelTypeAware(["8.0" => * is_final is set and TRUE. *

    */ -function xml_parse (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, string $data, bool $is_final = false): int -{} +function xml_parse(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, string $data, bool $is_final = false): int {} /** * Parse XML data into an array structure @@ -367,8 +361,7 @@ function xml_parse (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "r * success. This is not the same as FALSE and TRUE, be careful with * operators such as ===. */ -function xml_parse_into_struct (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, string $data, &$values, &$index): int -{} +function xml_parse_into_struct(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, string $data, &$values, &$index): int {} /** * Get XML parser error code @@ -381,7 +374,7 @@ function xml_parse_into_struct (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function xml_get_error_code (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) {} +function xml_get_error_code(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) {} /** * Get XML parser error string @@ -393,8 +386,7 @@ function xml_get_error_code (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], de * code, or FALSE if no description was found. */ #[Pure] -function xml_error_string (int $error_code): ?string -{} +function xml_error_string(int $error_code): ?string {} /** * Get current line number for an XML parser @@ -408,8 +400,7 @@ function xml_error_string (int $error_code): ?string */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function xml_get_current_line_number (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) -{} +function xml_get_current_line_number(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) {} /** * Get current column number for an XML parser @@ -425,8 +416,7 @@ function xml_get_current_line_number (#[LanguageLevelTypeAware(["8.0" => "XMLPar */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function xml_get_current_column_number (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) -{} +function xml_get_current_column_number(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) {} /** * Get current byte index for an XML parser @@ -440,8 +430,7 @@ function xml_get_current_column_number (#[LanguageLevelTypeAware(["8.0" => "XMLP */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] -function xml_get_current_byte_index (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) -{} +function xml_get_current_byte_index(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser) {} /** * Free an XML parser @@ -450,8 +439,7 @@ function xml_get_current_byte_index (#[LanguageLevelTypeAware(["8.0" => "XMLPars * @return bool This function returns FALSE if parser does not * refer to a valid parser, or else it frees the parser and returns TRUE. */ -function xml_parser_free (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser): bool -{} +function xml_parser_free(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser): bool {} /** * Set options in an XML parser @@ -514,8 +502,7 @@ function xml_parser_free (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], defau * refer to a valid parser, or if the option could not be set. Else the * option is set and TRUE is returned. */ -function xml_parser_set_option (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, int $option, $value): bool -{} +function xml_parser_set_option(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, int $option, $value): bool {} /** * Get options from an XML parser @@ -530,44 +517,42 @@ function xml_parser_set_option (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], * Else the option's value is returned. */ #[Pure] -function xml_parser_get_option (#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, int $option): string|int -{} +function xml_parser_get_option(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "resource")] $parser, int $option): string|int {} -define ('XML_ERROR_NONE', 0); -define ('XML_ERROR_NO_MEMORY', 1); -define ('XML_ERROR_SYNTAX', 2); -define ('XML_ERROR_NO_ELEMENTS', 3); -define ('XML_ERROR_INVALID_TOKEN', 4); -define ('XML_ERROR_UNCLOSED_TOKEN', 5); -define ('XML_ERROR_PARTIAL_CHAR', 6); -define ('XML_ERROR_TAG_MISMATCH', 7); -define ('XML_ERROR_DUPLICATE_ATTRIBUTE', 8); -define ('XML_ERROR_JUNK_AFTER_DOC_ELEMENT', 9); -define ('XML_ERROR_PARAM_ENTITY_REF', 10); -define ('XML_ERROR_UNDEFINED_ENTITY', 11); -define ('XML_ERROR_RECURSIVE_ENTITY_REF', 12); -define ('XML_ERROR_ASYNC_ENTITY', 13); -define ('XML_ERROR_BAD_CHAR_REF', 14); -define ('XML_ERROR_BINARY_ENTITY_REF', 15); -define ('XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF', 16); -define ('XML_ERROR_MISPLACED_XML_PI', 17); -define ('XML_ERROR_UNKNOWN_ENCODING', 18); -define ('XML_ERROR_INCORRECT_ENCODING', 19); -define ('XML_ERROR_UNCLOSED_CDATA_SECTION', 20); -define ('XML_ERROR_EXTERNAL_ENTITY_HANDLING', 21); -define ('XML_OPTION_CASE_FOLDING', 1); -define ('XML_OPTION_TARGET_ENCODING', 2); -define ('XML_OPTION_SKIP_TAGSTART', 3); -define ('XML_OPTION_SKIP_WHITE', 4); +define('XML_ERROR_NONE', 0); +define('XML_ERROR_NO_MEMORY', 1); +define('XML_ERROR_SYNTAX', 2); +define('XML_ERROR_NO_ELEMENTS', 3); +define('XML_ERROR_INVALID_TOKEN', 4); +define('XML_ERROR_UNCLOSED_TOKEN', 5); +define('XML_ERROR_PARTIAL_CHAR', 6); +define('XML_ERROR_TAG_MISMATCH', 7); +define('XML_ERROR_DUPLICATE_ATTRIBUTE', 8); +define('XML_ERROR_JUNK_AFTER_DOC_ELEMENT', 9); +define('XML_ERROR_PARAM_ENTITY_REF', 10); +define('XML_ERROR_UNDEFINED_ENTITY', 11); +define('XML_ERROR_RECURSIVE_ENTITY_REF', 12); +define('XML_ERROR_ASYNC_ENTITY', 13); +define('XML_ERROR_BAD_CHAR_REF', 14); +define('XML_ERROR_BINARY_ENTITY_REF', 15); +define('XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF', 16); +define('XML_ERROR_MISPLACED_XML_PI', 17); +define('XML_ERROR_UNKNOWN_ENCODING', 18); +define('XML_ERROR_INCORRECT_ENCODING', 19); +define('XML_ERROR_UNCLOSED_CDATA_SECTION', 20); +define('XML_ERROR_EXTERNAL_ENTITY_HANDLING', 21); +define('XML_OPTION_CASE_FOLDING', 1); +define('XML_OPTION_TARGET_ENCODING', 2); +define('XML_OPTION_SKIP_TAGSTART', 3); +define('XML_OPTION_SKIP_WHITE', 4); /** * Holds the SAX implementation method. * Can be libxml or expat. * @link https://php.net/manual/en/xml.constants.php */ -define ('XML_SAX_IMPL', "libxml"); +define('XML_SAX_IMPL', "libxml"); -class XMLParser{} +class XMLParser {} // End of xml v. -?> diff --git a/xmlreader/xmlreader.php b/xmlreader/xmlreader.php index ed5142623..2f2a95d6e 100644 --- a/xmlreader/xmlreader.php +++ b/xmlreader/xmlreader.php @@ -23,371 +23,370 @@ * @property-read string $value The text value of the node * @property-read string $xmlLang The xml:lang scope which the node resides */ -class XMLReader { - /** - * No node type - */ - const NONE = 0; - /** - * Start element - */ - const ELEMENT = 1; - /** - * Attribute node - */ - const ATTRIBUTE = 2; - /** - * Text node - */ - const TEXT = 3; - /** - * CDATA node - */ - const CDATA = 4; - /** - * Entity Reference node - */ - const ENTITY_REF = 5; - /** - * Entity Declaration node - */ - const ENTITY = 6; - /** - * Processing Instruction node - */ - const PI = 7; - /** - * Comment node - */ - const COMMENT = 8; - /** - * Document node - */ - const DOC = 9; - /** - * Document Type node - */ - const DOC_TYPE = 10; - /** - * Document Fragment node - */ - const DOC_FRAGMENT = 11; - /** - * Notation node - */ - const NOTATION = 12; - /** - * Whitespace node - */ - const WHITESPACE = 13; - /** - * Significant Whitespace node - */ - const SIGNIFICANT_WHITESPACE = 14; - /** - * End Element - */ - const END_ELEMENT = 15; - /** - * End Entity - */ - const END_ENTITY = 16; - /** - * XML Declaration node - */ - const XML_DECLARATION = 17; - /** - * Load DTD but do not validate - */ - const LOADDTD = 1; - /** - * Load DTD and default attributes but do not validate - */ - const DEFAULTATTRS = 2; - /** - * Load DTD and validate while parsing - */ - const VALIDATE = 3; - /** - * Substitute entities and expand references - */ - const SUBST_ENTITIES = 4; +class XMLReader +{ + /** + * No node type + */ + public const NONE = 0; + /** + * Start element + */ + public const ELEMENT = 1; + /** + * Attribute node + */ + public const ATTRIBUTE = 2; + /** + * Text node + */ + public const TEXT = 3; + /** + * CDATA node + */ + public const CDATA = 4; + /** + * Entity Reference node + */ + public const ENTITY_REF = 5; + /** + * Entity Declaration node + */ + public const ENTITY = 6; + /** + * Processing Instruction node + */ + public const PI = 7; + /** + * Comment node + */ + public const COMMENT = 8; + /** + * Document node + */ + public const DOC = 9; + /** + * Document Type node + */ + public const DOC_TYPE = 10; + /** + * Document Fragment node + */ + public const DOC_FRAGMENT = 11; + /** + * Notation node + */ + public const NOTATION = 12; + /** + * Whitespace node + */ + public const WHITESPACE = 13; + /** + * Significant Whitespace node + */ + public const SIGNIFICANT_WHITESPACE = 14; + /** + * End Element + */ + public const END_ELEMENT = 15; + /** + * End Entity + */ + public const END_ENTITY = 16; + /** + * XML Declaration node + */ + public const XML_DECLARATION = 17; + /** + * Load DTD but do not validate + */ + public const LOADDTD = 1; + /** + * Load DTD and default attributes but do not validate + */ + public const DEFAULTATTRS = 2; + /** + * Load DTD and validate while parsing + */ + public const VALIDATE = 3; + /** + * Substitute entities and expand references + */ + public const SUBST_ENTITIES = 4; + /** + * Close the XMLReader input + * @link https://php.net/manual/en/xmlreader.close.php + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function close() {} - /** - * Close the XMLReader input - * @link https://php.net/manual/en/xmlreader.close.php - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function close () {} + /** + * Get the value of a named attribute + * @link https://php.net/manual/en/xmlreader.getattribute.php + * @param string $name

    + * The name of the attribute. + *

    + * @return string The value of the attribute, or NULL if no attribute with the given + * name is found or not positioned on an element node. + * @since 5.1.2 + */ + public function getAttribute($name) {} - /** - * Get the value of a named attribute - * @link https://php.net/manual/en/xmlreader.getattribute.php - * @param string $name

    - * The name of the attribute. - *

    - * @return string The value of the attribute, or NULL if no attribute with the given - * name is found or not positioned on an element node. - * @since 5.1.2 - */ - public function getAttribute ($name) {} + /** + * Get the value of an attribute by index + * @link https://php.net/manual/en/xmlreader.getattributeno.php + * @param int $index

    + * The position of the attribute. + *

    + * @return string|null The value of the attribute, or NULL if no attribute exists + * at index or not positioned of element. + * @since 5.1.2 + */ + public function getAttributeNo($index) {} - /** - * Get the value of an attribute by index - * @link https://php.net/manual/en/xmlreader.getattributeno.php - * @param int $index

    - * The position of the attribute. - *

    - * @return string|null The value of the attribute, or NULL if no attribute exists - * at index or not positioned of element. - * @since 5.1.2 - */ - public function getAttributeNo ($index) {} + /** + * Get the value of an attribute by localname and URI + * @link https://php.net/manual/en/xmlreader.getattributens.php + * @param string $name

    + * The local name. + *

    + * @param string $namespace

    + * The namespace URI. + *

    + * @return string|null The value of the attribute, or NULL if no attribute with the + * given localName and + * namespaceURI is found or not positioned of element. + * @since 5.1.2 + */ + public function getAttributeNs($name, $namespace) {} - /** - * Get the value of an attribute by localname and URI - * @link https://php.net/manual/en/xmlreader.getattributens.php - * @param string $name

    - * The local name. - *

    - * @param string $namespace

    - * The namespace URI. - *

    - * @return string|null The value of the attribute, or NULL if no attribute with the - * given localName and - * namespaceURI is found or not positioned of element. - * @since 5.1.2 - */ - public function getAttributeNs ($name, $namespace) {} + /** + * Indicates if specified property has been set + * @link https://php.net/manual/en/xmlreader.getparserproperty.php + * @param int $property

    + * One of the parser option + * constants. + *

    + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function getParserProperty($property) {} - /** - * Indicates if specified property has been set - * @link https://php.net/manual/en/xmlreader.getparserproperty.php - * @param int $property

    - * One of the parser option - * constants. - *

    - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function getParserProperty ($property) {} + /** + * Indicates if the parsed document is valid + * @link https://php.net/manual/en/xmlreader.isvalid.php + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function isValid() {} - /** - * Indicates if the parsed document is valid - * @link https://php.net/manual/en/xmlreader.isvalid.php - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function isValid () {} + /** + * Lookup namespace for a prefix + * @link https://php.net/manual/en/xmlreader.lookupnamespace.php + * @param string $prefix

    + * String containing the prefix. + *

    + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function lookupNamespace($prefix) {} - /** - * Lookup namespace for a prefix - * @link https://php.net/manual/en/xmlreader.lookupnamespace.php - * @param string $prefix

    - * String containing the prefix. - *

    - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function lookupNamespace ($prefix) {} + /** + * Move cursor to an attribute by index + * @link https://php.net/manual/en/xmlreader.movetoattributeno.php + * @param int $index

    + * The position of the attribute. + *

    + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function moveToAttributeNo($index) {} - /** - * Move cursor to an attribute by index - * @link https://php.net/manual/en/xmlreader.movetoattributeno.php - * @param int $index

    - * The position of the attribute. - *

    - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function moveToAttributeNo ($index) {} + /** + * Move cursor to a named attribute + * @link https://php.net/manual/en/xmlreader.movetoattribute.php + * @param string $name

    + * The name of the attribute. + *

    + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function moveToAttribute($name) {} - /** - * Move cursor to a named attribute - * @link https://php.net/manual/en/xmlreader.movetoattribute.php - * @param string $name

    - * The name of the attribute. - *

    - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function moveToAttribute ($name) {} + /** + * Move cursor to a named attribute + * @link https://php.net/manual/en/xmlreader.movetoattributens.php + * @param string $name

    + * The local name. + *

    + * @param string $namespace

    + * The namespace URI. + *

    + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function moveToAttributeNs($name, $namespace) {} - /** - * Move cursor to a named attribute - * @link https://php.net/manual/en/xmlreader.movetoattributens.php - * @param string $name

    - * The local name. - *

    - * @param string $namespace

    - * The namespace URI. - *

    - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function moveToAttributeNs ($name, $namespace) {} + /** + * Position cursor on the parent Element of current Attribute + * @link https://php.net/manual/en/xmlreader.movetoelement.php + * @return bool TRUE if successful and FALSE if it fails or not positioned on + * Attribute when this method is called. + * @since 5.1.2 + */ + public function moveToElement() {} - /** - * Position cursor on the parent Element of current Attribute - * @link https://php.net/manual/en/xmlreader.movetoelement.php - * @return bool TRUE if successful and FALSE if it fails or not positioned on - * Attribute when this method is called. - * @since 5.1.2 - */ - public function moveToElement () {} + /** + * Position cursor on the first Attribute + * @link https://php.net/manual/en/xmlreader.movetofirstattribute.php + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function moveToFirstAttribute() {} - /** - * Position cursor on the first Attribute - * @link https://php.net/manual/en/xmlreader.movetofirstattribute.php - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function moveToFirstAttribute () {} + /** + * Position cursor on the next Attribute + * @link https://php.net/manual/en/xmlreader.movetonextattribute.php + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function moveToNextAttribute() {} - /** - * Position cursor on the next Attribute - * @link https://php.net/manual/en/xmlreader.movetonextattribute.php - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function moveToNextAttribute () {} + /** + * Set the URI containing the XML to parse + * @link https://php.net/manual/en/xmlreader.open.php + * @param string $uri

    + * URI pointing to the document. + *

    + * @param string $encoding [optional]

    + * The document encoding or NULL. + *

    + * @param int $flags [optional]

    + * A bitmask of the LIBXML_* + * constants. + *

    + * @return bool TRUE on success or FALSE on failure. If called statically, returns an + * XMLReader or FALSE on failure. + * @since 5.1.2 + */ + public static function open($uri, $encoding = null, $flags = 0) {} - /** - * Set the URI containing the XML to parse - * @link https://php.net/manual/en/xmlreader.open.php - * @param string $uri

    - * URI pointing to the document. - *

    - * @param string $encoding [optional]

    - * The document encoding or NULL. - *

    - * @param int $flags [optional]

    - * A bitmask of the LIBXML_* - * constants. - *

    - * @return bool TRUE on success or FALSE on failure. If called statically, returns an - * XMLReader or FALSE on failure. - * @since 5.1.2 - */ - public static function open ($uri, $encoding = null, $flags = 0) {} + /** + * Move to next node in document + * @link https://php.net/manual/en/xmlreader.read.php + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function read() {} - /** - * Move to next node in document - * @link https://php.net/manual/en/xmlreader.read.php - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function read () {} + /** + * Move cursor to next node skipping all subtrees + * @link https://php.net/manual/en/xmlreader.next.php + * @param string $name [optional]

    + * The name of the next node to move to. + *

    + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function next($name = null) {} - /** - * Move cursor to next node skipping all subtrees - * @link https://php.net/manual/en/xmlreader.next.php - * @param string $name [optional]

    - * The name of the next node to move to. - *

    - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function next ($name = null) {} + /** + * Retrieve XML from current node + * @link https://php.net/manual/en/xmlreader.readinnerxml.php + * @return string the contents of the current node as a string. Empty string on failure. + */ + public function readInnerXml() {} - /** - * Retrieve XML from current node - * @link https://php.net/manual/en/xmlreader.readinnerxml.php - * @return string the contents of the current node as a string. Empty string on failure. - */ - public function readInnerXml () {} + /** + * Retrieve XML from current node, including it self + * @link https://php.net/manual/en/xmlreader.readouterxml.php + * @return string the contents of current node, including itself, as a string. Empty string on failure. + */ + public function readOuterXml() {} - /** - * Retrieve XML from current node, including it self - * @link https://php.net/manual/en/xmlreader.readouterxml.php - * @return string the contents of current node, including itself, as a string. Empty string on failure. - */ - public function readOuterXml () {} + /** + * Reads the contents of the current node as a string + * @link https://php.net/manual/en/xmlreader.readstring.php + * @return string the content of the current node as a string. Empty string on + * failure. + */ + public function readString() {} - /** - * Reads the contents of the current node as a string - * @link https://php.net/manual/en/xmlreader.readstring.php - * @return string the content of the current node as a string. Empty string on - * failure. - */ - public function readString () {} + /** + * Validate document against XSD + * @link https://php.net/manual/en/xmlreader.setschema.php + * @param string $filename

    + * The filename of the XSD schema. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setSchema($filename) {} - /** - * Validate document against XSD - * @link https://php.net/manual/en/xmlreader.setschema.php - * @param string $filename

    - * The filename of the XSD schema. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setSchema ($filename) {} + /** + * Set parser options + * @link https://php.net/manual/en/xmlreader.setparserproperty.php + * @param int $property

    + * One of the parser option + * constants. + *

    + * @param bool $value

    + * If set to TRUE the option will be enabled otherwise will + * be disabled. + *

    + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function setParserProperty($property, $value) {} - /** - * Set parser options - * @link https://php.net/manual/en/xmlreader.setparserproperty.php - * @param int $property

    - * One of the parser option - * constants. - *

    - * @param bool $value

    - * If set to TRUE the option will be enabled otherwise will - * be disabled. - *

    - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function setParserProperty ($property, $value) {} + /** + * Set the filename or URI for a RelaxNG Schema + * @link https://php.net/manual/en/xmlreader.setrelaxngschema.php + * @param string $filename

    + * filename or URI pointing to a RelaxNG Schema. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setRelaxNGSchema($filename) {} - /** - * Set the filename or URI for a RelaxNG Schema - * @link https://php.net/manual/en/xmlreader.setrelaxngschema.php - * @param string $filename

    - * filename or URI pointing to a RelaxNG Schema. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setRelaxNGSchema ($filename) {} + /** + * Set the data containing a RelaxNG Schema + * @link https://php.net/manual/en/xmlreader.setrelaxngschemasource.php + * @param string $source

    + * String containing the RelaxNG Schema. + *

    + * @return bool TRUE on success or FALSE on failure. + * @since 5.1.2 + */ + public function setRelaxNGSchemaSource($source) {} - /** - * Set the data containing a RelaxNG Schema - * @link https://php.net/manual/en/xmlreader.setrelaxngschemasource.php - * @param string $source

    - * String containing the RelaxNG Schema. - *

    - * @return bool TRUE on success or FALSE on failure. - * @since 5.1.2 - */ - public function setRelaxNGSchemaSource ($source) {} - - /** - * Set the data containing the XML to parse - * @link https://php.net/manual/en/xmlreader.xml.php - * @param string $source

    - * String containing the XML to be parsed. - *

    - * @param string $encoding [optional]

    - * The document encoding or NULL. - *

    - * @param int $flags [optional]

    - * A bitmask of the LIBXML_* - * constants. - *

    - * @return bool TRUE on success or FALSE on failure. If called statically, returns an - * XMLReader or FALSE on failure. - * @since 5.1.2 - */ - public static function XML ($source, $encoding = null, $flags = 0) {} - - /** - * Returns a copy of the current node as a DOM object - * @link https://php.net/manual/en/xmlreader.expand.php - * @param null|DOMNode $baseNode [optional] - * @return DOMNode|false The resulting DOMNode or FALSE on error. - * @since 5.1.2 - */ - public function expand (DOMNode $baseNode = null) {} + /** + * Set the data containing the XML to parse + * @link https://php.net/manual/en/xmlreader.xml.php + * @param string $source

    + * String containing the XML to be parsed. + *

    + * @param string $encoding [optional]

    + * The document encoding or NULL. + *

    + * @param int $flags [optional]

    + * A bitmask of the LIBXML_* + * constants. + *

    + * @return bool TRUE on success or FALSE on failure. If called statically, returns an + * XMLReader or FALSE on failure. + * @since 5.1.2 + */ + public static function XML($source, $encoding = null, $flags = 0) {} + /** + * Returns a copy of the current node as a DOM object + * @link https://php.net/manual/en/xmlreader.expand.php + * @param null|DOMNode $baseNode [optional] + * @return DOMNode|false The resulting DOMNode or FALSE on error. + * @since 5.1.2 + */ + public function expand(DOMNode $baseNode = null) {} } // End of xmlreader v.0.2 diff --git a/xmlrpc/xmlrpc.php b/xmlrpc/xmlrpc.php index 04b74faff..8d904f355 100644 --- a/xmlrpc/xmlrpc.php +++ b/xmlrpc/xmlrpc.php @@ -8,7 +8,7 @@ * @param mixed $value * @return string */ -function xmlrpc_encode ($value) {} +function xmlrpc_encode($value) {} /** * Decodes XML into native PHP types @@ -22,7 +22,7 @@ function xmlrpc_encode ($value) {} * @return mixed either an array, or an integer, or a string, or a boolean according * to the response returned by the XMLRPC method. */ -function xmlrpc_decode ($xml, $encoding = "iso-8859-1") {} +function xmlrpc_decode($xml, $encoding = "iso-8859-1") {} /** * Decodes XML into native PHP types @@ -32,7 +32,7 @@ function xmlrpc_decode ($xml, $encoding = "iso-8859-1") {} * @param string $encoding [optional] * @return mixed */ -function xmlrpc_decode_request ($xml, &$method, $encoding = null) {} +function xmlrpc_decode_request($xml, &$method, $encoding = null) {} /** * Generates XML for a method request @@ -49,7 +49,7 @@ function xmlrpc_decode_request ($xml, &$method, $encoding = null) {} * output_type: php, xml

    * @return string a string containing the XML representation of the request. */ -function xmlrpc_encode_request ($method, $params, ?array $output_options = null) {} +function xmlrpc_encode_request($method, $params, ?array $output_options = null) {} /** * Gets xmlrpc type for a PHP value @@ -59,7 +59,7 @@ function xmlrpc_encode_request ($method, $params, ?array $output_options = null) *

    * @return string the XML-RPC type. */ -function xmlrpc_get_type ($value) {} +function xmlrpc_get_type($value) {} /** * Sets xmlrpc type, base64 or datetime, for a PHP string value @@ -73,7 +73,7 @@ function xmlrpc_get_type ($value) {} * @return bool TRUE on success or FALSE on failure. * If successful, value is converted to an object. */ -function xmlrpc_set_type (&$value, $type) {} +function xmlrpc_set_type(&$value, $type) {} /** * Determines if an array value represents an XMLRPC fault @@ -85,14 +85,14 @@ function xmlrpc_set_type (&$value, $type) {} * description is available in $arg["faultString"], fault * code is in $arg["faultCode"]. */ -function xmlrpc_is_fault (array $arg) {} +function xmlrpc_is_fault(array $arg) {} /** * Creates an xmlrpc server * @link https://php.net/manual/en/function.xmlrpc-server-create.php * @return resource */ -function xmlrpc_server_create () {} +function xmlrpc_server_create() {} /** * Destroys server resources @@ -100,7 +100,7 @@ function xmlrpc_server_create () {} * @param resource $server * @return int */ -function xmlrpc_server_destroy ($server) {} +function xmlrpc_server_destroy($server) {} /** * Register a PHP function to resource method matching method_name @@ -110,7 +110,7 @@ function xmlrpc_server_destroy ($server) {} * @param callable $function * @return bool */ -function xmlrpc_server_register_method ($server, $method_name, $function) {} +function xmlrpc_server_register_method($server, $method_name, $function) {} /** * Parses XML requests and call methods @@ -121,7 +121,7 @@ function xmlrpc_server_register_method ($server, $method_name, $function) {} * @param null|array $output_options [optional] * @return string */ -function xmlrpc_server_call_method ($server, $xml, $user_data, ?array $output_options = null) {} +function xmlrpc_server_call_method($server, $xml, $user_data, ?array $output_options = null) {} /** * Decodes XML into a list of method descriptions @@ -129,7 +129,7 @@ function xmlrpc_server_call_method ($server, $xml, $user_data, ?array $output_op * @param string $xml * @return array */ -function xmlrpc_parse_method_descriptions ($xml) {} +function xmlrpc_parse_method_descriptions($xml) {} /** * Adds introspection documentation @@ -138,7 +138,7 @@ function xmlrpc_parse_method_descriptions ($xml) {} * @param array $desc * @return int */ -function xmlrpc_server_add_introspection_data ($server, array $desc) {} +function xmlrpc_server_add_introspection_data($server, array $desc) {} /** * Register a PHP function to generate documentation @@ -147,6 +147,6 @@ function xmlrpc_server_add_introspection_data ($server, array $desc) {} * @param string $function * @return bool */ -function xmlrpc_server_register_introspection_callback ($server, $function) {} +function xmlrpc_server_register_introspection_callback($server, $function) {} // End of xmlrpc v.0.51 diff --git a/xmlwriter/xmlwriter.php b/xmlwriter/xmlwriter.php index 93fc87461..e412022f4 100644 --- a/xmlwriter/xmlwriter.php +++ b/xmlwriter/xmlwriter.php @@ -4,512 +4,511 @@ use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware; -class XMLWriter { - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create new xmlwriter using source uri for output - * @link https://php.net/manual/en/function.xmlwriter-open-uri.php - * @param string $uri

    - * The URI of the resource for the output. - *

    - * @return bool Object oriented style: Returns TRUE on success or FALSE on failure. - *

    - *

    - * Procedural style: Returns a new xmlwriter resource for later use with the - * xmlwriter functions on success, FALSE on error. - */ - public function openUri ($uri) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create new xmlwriter using memory for string output - * @link https://php.net/manual/en/function.xmlwriter-open-memory.php - * @return bool Object oriented style: Returns TRUE on success or FALSE on failure. - *

    - *

    - * Procedural style: Returns a new xmlwriter resource for later use with the - * xmlwriter functions on success, FALSE on error. - */ - public function openMemory () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Toggle indentation on/off - * @link https://php.net/manual/en/function.xmlwriter-set-indent.php - * @param bool $enable

    - * Whether indentation is enabled. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setIndent ($enable) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Set string used for indenting - * @link https://php.net/manual/en/function.xmlwriter-set-indent-string.php - * @param string $indentation

    - * The indentation string. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setIndentString ($indentation) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
    - * Create start comment - * @link https://php.net/manual/en/function.xmlwriter-start-comment.php - * @return bool TRUE on success or FALSE on failure. - */ - public function startComment () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
    - * Create end comment - * @link https://php.net/manual/en/function.xmlwriter-end-comment.php - * @return bool TRUE on success or FALSE on failure. - */ - public function endComment () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create start attribute - * @link https://php.net/manual/en/function.xmlwriter-start-attribute.php - * @param string $name

    - * The attribute name. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function startAttribute ($name) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * End attribute - * @link https://php.net/manual/en/function.xmlwriter-end-attribute.php - * @return bool TRUE on success or FALSE on failure. - */ - public function endAttribute () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write full attribute - * @link https://php.net/manual/en/function.xmlwriter-write-attribute.php - * @param string $name

    - * The name of the attribute. - *

    - * @param string $value

    - * The value of the attribute. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writeAttribute ($name, $value) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create start namespaced attribute - * @link https://php.net/manual/en/function.xmlwriter-start-attribute-ns.php - * @param string|null $prefix

    - * The namespace prefix. - *

    - * @param string $name

    - * The attribute name. - *

    - * @param string $namespace

    - * The namespace URI. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function startAttributeNs ($prefix, $name, $namespace) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write full namespaced attribute - * @link https://php.net/manual/en/function.xmlwriter-write-attribute-ns.php - * @param string|null $prefix

    - * The namespace prefix. - *

    - * @param string $name

    - * The attribute name. - *

    - * @param string $namespace

    - * The namespace URI. - *

    - * @param string $value

    - * The attribute value. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writeAttributeNs ($prefix, $name, $namespace, $value) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create start element tag - * @link https://php.net/manual/en/function.xmlwriter-start-element.php - * @param string $name

    - * The element name. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function startElement ($name) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * End current element - * @link https://php.net/manual/en/function.xmlwriter-end-element.php - * @return bool TRUE on success or FALSE on failure. - */ - public function endElement () {} - - /** - * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)
    - * End current element - * @link https://php.net/manual/en/function.xmlwriter-full-end-element.php - * @return bool TRUE on success or FALSE on failure. - */ - public function fullEndElement () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create start namespaced element tag - * @link https://php.net/manual/en/function.xmlwriter-start-element-ns.php - * @param string|null $prefix

    - * The namespace prefix. - *

    - * @param string $name

    - * The element name. - *

    - * @param string $namespace

    - * The namespace URI. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function startElementNs ($prefix, $name, $namespace) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write full element tag - * @link https://php.net/manual/en/function.xmlwriter-write-element.php - * @param string $name

    - * The element name. - *

    - * @param string $content [optional]

    - * The element contents. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writeElement ($name, $content = null) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write full namespaced element tag - * @link https://php.net/manual/en/function.xmlwriter-write-element-ns.php - * @param string|null $prefix

    - * The namespace prefix. - *

    - * @param string $name

    - * The element name. - *

    - * @param string $namespace

    - * The namespace URI. - *

    - * @param string $content [optional]

    - * The element contents. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writeElementNs ($prefix, $name, $namespace, $content = null) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create start PI tag - * @link https://php.net/manual/en/function.xmlwriter-start-pi.php - * @param string $target

    - * The target of the processing instruction. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function startPi ($target) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * End current PI - * @link https://php.net/manual/en/function.xmlwriter-end-pi.php - * @return bool TRUE on success or FALSE on failure. - */ - public function endPi () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Writes a PI - * @link https://php.net/manual/en/function.xmlwriter-write-pi.php - * @param string $target

    - * The target of the processing instruction. - *

    - * @param string $content

    - * The content of the processing instruction. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writePi ($target, $content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create start CDATA tag - * @link https://php.net/manual/en/function.xmlwriter-start-cdata.php - * @return bool TRUE on success or FALSE on failure. - */ - public function startCdata () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * End current CDATA - * @link https://php.net/manual/en/function.xmlwriter-end-cdata.php - * @return bool TRUE on success or FALSE on failure. - */ - public function endCdata () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write full CDATA tag - * @link https://php.net/manual/en/function.xmlwriter-write-cdata.php - * @param string $content

    - * The contents of the CDATA. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writeCdata ($content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write text - * @link https://php.net/manual/en/function.xmlwriter-text.php - * @param string $content

    - * The contents of the text. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function text ($content) {} - - /** - * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)
    - * Write a raw XML text - * @link https://php.net/manual/en/function.xmlwriter-write-raw.php - * @param string $content

    - * The text string to write. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writeRaw ($content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create document tag - * @link https://php.net/manual/en/function.xmlwriter-start-document.php - * @param string $version [optional]

    - * The version number of the document as part of the XML declaration. - *

    - * @param string $encoding [optional]

    - * The encoding of the document as part of the XML declaration. - *

    - * @param string $standalone [optional]

    - * yes or no. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function startDocument ($version = '1.0', $encoding = null, $standalone = null) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * End current document - * @link https://php.net/manual/en/function.xmlwriter-end-document.php - * @return bool TRUE on success or FALSE on failure. - */ - public function endDocument () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write full comment tag - * @link https://php.net/manual/en/function.xmlwriter-write-comment.php - * @param string $content

    - * The contents of the comment. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writeComment ($content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create start DTD tag - * @link https://php.net/manual/en/function.xmlwriter-start-dtd.php - * @param string $qualifiedName

    - * The qualified name of the document type to create. - *

    - * @param string $publicId [optional]

    - * The external subset public identifier. - *

    - * @param string $systemId [optional]

    - * The external subset system identifier. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function startDtd ($qualifiedName, $publicId = null, $systemId = null) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * End current DTD - * @link https://php.net/manual/en/function.xmlwriter-end-dtd.php - * @return bool TRUE on success or FALSE on failure. - */ - public function endDtd () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write full DTD tag - * @link https://php.net/manual/en/function.xmlwriter-write-dtd.php - * @param string $name

    - * The DTD name. - *

    - * @param string $publicId [optional]

    - * The external subset public identifier. - *

    - * @param string $systemId [optional]

    - * The external subset system identifier. - *

    - * @param string $content [optional]

    - * The content of the DTD. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writeDtd ($name, $publicId = null, $systemId = null, $content = null) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create start DTD element - * @link https://php.net/manual/en/function.xmlwriter-start-dtd-element.php - * @param string $qualifiedName

    - * The qualified name of the document type to create. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function startDtdElement ($qualifiedName) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * End current DTD element - * @link https://php.net/manual/en/function.xmlwriter-end-dtd-element.php - * @return bool TRUE on success or FALSE on failure. - */ - public function endDtdElement () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write full DTD element tag - * @link https://php.net/manual/en/function.xmlwriter-write-dtd-element.php - * @param string $name

    - * The name of the DTD element. - *

    - * @param string $content

    - * The content of the element. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writeDtdElement ($name, $content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create start DTD AttList - * @link https://php.net/manual/en/function.xmlwriter-start-dtd-attlist.php - * @param string $name

    - * The attribute list name. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function startDtdAttlist ($name) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * End current DTD AttList - * @link https://php.net/manual/en/function.xmlwriter-end-dtd-attlist.php - * @return bool TRUE on success or FALSE on failure. - */ - public function endDtdAttlist () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write full DTD AttList tag - * @link https://php.net/manual/en/function.xmlwriter-write-dtd-attlist.php - * @param string $name

    - * The name of the DTD attribute list. - *

    - * @param string $content

    - * The content of the DTD attribute list. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function writeDtdAttlist ($name, $content) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Create start DTD Entity - * @link https://php.net/manual/en/function.xmlwriter-start-dtd-entity.php - * @param string $name

    - * The name of the entity. - *

    - * @param bool $isParam - * @return bool TRUE on success or FALSE on failure. - */ - public function startDtdEntity ($name, $isParam) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * End current DTD Entity - * @link https://php.net/manual/en/function.xmlwriter-end-dtd-entity.php - * @return bool TRUE on success or FALSE on failure. - */ - public function endDtdEntity () {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Write full DTD Entity tag - * @link https://php.net/manual/en/function.xmlwriter-write-dtd-entity.php - * @param string $name

    - * The name of the entity. - *

    - * @param string $content

    - * The content of the entity. - *

    - * @param bool $pe - * @param string $pubid - * @param string $sysid - * @param string $ndataid - * @return bool TRUE on success or FALSE on failure. - */ - public function writeDtdEntity ($name, $content, $pe, $pubid, $sysid, $ndataid) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    - * Returns current buffer - * @link https://php.net/manual/en/function.xmlwriter-output-memory.php - * @param bool $flush [optional]

    - * Whether to flush the output buffer or not. Default is TRUE. - *

    - * @return string the current buffer as a string. - */ - public function outputMemory ($flush = true) {} - - /** - * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
    - * Flush current buffer - * @link https://php.net/manual/en/function.xmlwriter-flush.php - * @param bool $empty [optional]

    - * Whether to empty the buffer or not. Default is TRUE. - *

    - * @return mixed If you opened the writer in memory, this function returns the generated XML buffer, - * Else, if using URI, this function will write the buffer and return the number of - * written bytes. - */ - public function flush ($empty = true) {} - +class XMLWriter +{ + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create new xmlwriter using source uri for output + * @link https://php.net/manual/en/function.xmlwriter-open-uri.php + * @param string $uri

    + * The URI of the resource for the output. + *

    + * @return bool Object oriented style: Returns TRUE on success or FALSE on failure. + *

    + *

    + * Procedural style: Returns a new xmlwriter resource for later use with the + * xmlwriter functions on success, FALSE on error. + */ + public function openUri($uri) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create new xmlwriter using memory for string output + * @link https://php.net/manual/en/function.xmlwriter-open-memory.php + * @return bool Object oriented style: Returns TRUE on success or FALSE on failure. + *

    + *

    + * Procedural style: Returns a new xmlwriter resource for later use with the + * xmlwriter functions on success, FALSE on error. + */ + public function openMemory() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Toggle indentation on/off + * @link https://php.net/manual/en/function.xmlwriter-set-indent.php + * @param bool $enable

    + * Whether indentation is enabled. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setIndent($enable) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Set string used for indenting + * @link https://php.net/manual/en/function.xmlwriter-set-indent-string.php + * @param string $indentation

    + * The indentation string. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setIndentString($indentation) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
    + * Create start comment + * @link https://php.net/manual/en/function.xmlwriter-start-comment.php + * @return bool TRUE on success or FALSE on failure. + */ + public function startComment() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
    + * Create end comment + * @link https://php.net/manual/en/function.xmlwriter-end-comment.php + * @return bool TRUE on success or FALSE on failure. + */ + public function endComment() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create start attribute + * @link https://php.net/manual/en/function.xmlwriter-start-attribute.php + * @param string $name

    + * The attribute name. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function startAttribute($name) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * End attribute + * @link https://php.net/manual/en/function.xmlwriter-end-attribute.php + * @return bool TRUE on success or FALSE on failure. + */ + public function endAttribute() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write full attribute + * @link https://php.net/manual/en/function.xmlwriter-write-attribute.php + * @param string $name

    + * The name of the attribute. + *

    + * @param string $value

    + * The value of the attribute. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writeAttribute($name, $value) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create start namespaced attribute + * @link https://php.net/manual/en/function.xmlwriter-start-attribute-ns.php + * @param string|null $prefix

    + * The namespace prefix. + *

    + * @param string $name

    + * The attribute name. + *

    + * @param string $namespace

    + * The namespace URI. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function startAttributeNs($prefix, $name, $namespace) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write full namespaced attribute + * @link https://php.net/manual/en/function.xmlwriter-write-attribute-ns.php + * @param string|null $prefix

    + * The namespace prefix. + *

    + * @param string $name

    + * The attribute name. + *

    + * @param string $namespace

    + * The namespace URI. + *

    + * @param string $value

    + * The attribute value. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writeAttributeNs($prefix, $name, $namespace, $value) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create start element tag + * @link https://php.net/manual/en/function.xmlwriter-start-element.php + * @param string $name

    + * The element name. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function startElement($name) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * End current element + * @link https://php.net/manual/en/function.xmlwriter-end-element.php + * @return bool TRUE on success or FALSE on failure. + */ + public function endElement() {} + + /** + * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)
    + * End current element + * @link https://php.net/manual/en/function.xmlwriter-full-end-element.php + * @return bool TRUE on success or FALSE on failure. + */ + public function fullEndElement() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create start namespaced element tag + * @link https://php.net/manual/en/function.xmlwriter-start-element-ns.php + * @param string|null $prefix

    + * The namespace prefix. + *

    + * @param string $name

    + * The element name. + *

    + * @param string $namespace

    + * The namespace URI. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function startElementNs($prefix, $name, $namespace) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write full element tag + * @link https://php.net/manual/en/function.xmlwriter-write-element.php + * @param string $name

    + * The element name. + *

    + * @param string $content [optional]

    + * The element contents. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writeElement($name, $content = null) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write full namespaced element tag + * @link https://php.net/manual/en/function.xmlwriter-write-element-ns.php + * @param string|null $prefix

    + * The namespace prefix. + *

    + * @param string $name

    + * The element name. + *

    + * @param string $namespace

    + * The namespace URI. + *

    + * @param string $content [optional]

    + * The element contents. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writeElementNs($prefix, $name, $namespace, $content = null) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create start PI tag + * @link https://php.net/manual/en/function.xmlwriter-start-pi.php + * @param string $target

    + * The target of the processing instruction. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function startPi($target) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * End current PI + * @link https://php.net/manual/en/function.xmlwriter-end-pi.php + * @return bool TRUE on success or FALSE on failure. + */ + public function endPi() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Writes a PI + * @link https://php.net/manual/en/function.xmlwriter-write-pi.php + * @param string $target

    + * The target of the processing instruction. + *

    + * @param string $content

    + * The content of the processing instruction. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writePi($target, $content) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create start CDATA tag + * @link https://php.net/manual/en/function.xmlwriter-start-cdata.php + * @return bool TRUE on success or FALSE on failure. + */ + public function startCdata() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * End current CDATA + * @link https://php.net/manual/en/function.xmlwriter-end-cdata.php + * @return bool TRUE on success or FALSE on failure. + */ + public function endCdata() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write full CDATA tag + * @link https://php.net/manual/en/function.xmlwriter-write-cdata.php + * @param string $content

    + * The contents of the CDATA. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writeCdata($content) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write text + * @link https://php.net/manual/en/function.xmlwriter-text.php + * @param string $content

    + * The contents of the text. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function text($content) {} + + /** + * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)
    + * Write a raw XML text + * @link https://php.net/manual/en/function.xmlwriter-write-raw.php + * @param string $content

    + * The text string to write. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writeRaw($content) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create document tag + * @link https://php.net/manual/en/function.xmlwriter-start-document.php + * @param string $version [optional]

    + * The version number of the document as part of the XML declaration. + *

    + * @param string $encoding [optional]

    + * The encoding of the document as part of the XML declaration. + *

    + * @param string $standalone [optional]

    + * yes or no. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function startDocument($version = '1.0', $encoding = null, $standalone = null) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * End current document + * @link https://php.net/manual/en/function.xmlwriter-end-document.php + * @return bool TRUE on success or FALSE on failure. + */ + public function endDocument() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write full comment tag + * @link https://php.net/manual/en/function.xmlwriter-write-comment.php + * @param string $content

    + * The contents of the comment. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writeComment($content) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create start DTD tag + * @link https://php.net/manual/en/function.xmlwriter-start-dtd.php + * @param string $qualifiedName

    + * The qualified name of the document type to create. + *

    + * @param string $publicId [optional]

    + * The external subset public identifier. + *

    + * @param string $systemId [optional]

    + * The external subset system identifier. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function startDtd($qualifiedName, $publicId = null, $systemId = null) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * End current DTD + * @link https://php.net/manual/en/function.xmlwriter-end-dtd.php + * @return bool TRUE on success or FALSE on failure. + */ + public function endDtd() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write full DTD tag + * @link https://php.net/manual/en/function.xmlwriter-write-dtd.php + * @param string $name

    + * The DTD name. + *

    + * @param string $publicId [optional]

    + * The external subset public identifier. + *

    + * @param string $systemId [optional]

    + * The external subset system identifier. + *

    + * @param string $content [optional]

    + * The content of the DTD. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writeDtd($name, $publicId = null, $systemId = null, $content = null) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create start DTD element + * @link https://php.net/manual/en/function.xmlwriter-start-dtd-element.php + * @param string $qualifiedName

    + * The qualified name of the document type to create. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function startDtdElement($qualifiedName) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * End current DTD element + * @link https://php.net/manual/en/function.xmlwriter-end-dtd-element.php + * @return bool TRUE on success or FALSE on failure. + */ + public function endDtdElement() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write full DTD element tag + * @link https://php.net/manual/en/function.xmlwriter-write-dtd-element.php + * @param string $name

    + * The name of the DTD element. + *

    + * @param string $content

    + * The content of the element. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writeDtdElement($name, $content) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create start DTD AttList + * @link https://php.net/manual/en/function.xmlwriter-start-dtd-attlist.php + * @param string $name

    + * The attribute list name. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function startDtdAttlist($name) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * End current DTD AttList + * @link https://php.net/manual/en/function.xmlwriter-end-dtd-attlist.php + * @return bool TRUE on success or FALSE on failure. + */ + public function endDtdAttlist() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write full DTD AttList tag + * @link https://php.net/manual/en/function.xmlwriter-write-dtd-attlist.php + * @param string $name

    + * The name of the DTD attribute list. + *

    + * @param string $content

    + * The content of the DTD attribute list. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function writeDtdAttlist($name, $content) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Create start DTD Entity + * @link https://php.net/manual/en/function.xmlwriter-start-dtd-entity.php + * @param string $name

    + * The name of the entity. + *

    + * @param bool $isParam + * @return bool TRUE on success or FALSE on failure. + */ + public function startDtdEntity($name, $isParam) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * End current DTD Entity + * @link https://php.net/manual/en/function.xmlwriter-end-dtd-entity.php + * @return bool TRUE on success or FALSE on failure. + */ + public function endDtdEntity() {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Write full DTD Entity tag + * @link https://php.net/manual/en/function.xmlwriter-write-dtd-entity.php + * @param string $name

    + * The name of the entity. + *

    + * @param string $content

    + * The content of the entity. + *

    + * @param bool $pe + * @param string $pubid + * @param string $sysid + * @param string $ndataid + * @return bool TRUE on success or FALSE on failure. + */ + public function writeDtdEntity($name, $content, $pe, $pubid, $sysid, $ndataid) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    + * Returns current buffer + * @link https://php.net/manual/en/function.xmlwriter-output-memory.php + * @param bool $flush [optional]

    + * Whether to flush the output buffer or not. Default is TRUE. + *

    + * @return string the current buffer as a string. + */ + public function outputMemory($flush = true) {} + + /** + * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
    + * Flush current buffer + * @link https://php.net/manual/en/function.xmlwriter-flush.php + * @param bool $empty [optional]

    + * Whether to empty the buffer or not. Default is TRUE. + *

    + * @return mixed If you opened the writer in memory, this function returns the generated XML buffer, + * Else, if using URI, this function will write the buffer and return the number of + * written bytes. + */ + public function flush($empty = true) {} } /** @@ -526,8 +525,7 @@ public function flush ($empty = true) {} *

    */ #[LanguageLevelTypeAware(["8.0" => "XMLWriter|false"], default: "resource|false")] -function xmlwriter_open_uri (string $uri) -{} +function xmlwriter_open_uri(string $uri) {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -540,8 +538,7 @@ function xmlwriter_open_uri (string $uri) *

    */ #[LanguageLevelTypeAware(["8.0" => "XMLWriter|false"], default: "resource|false")] -function xmlwriter_open_memory () -{} +function xmlwriter_open_memory() {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -557,8 +554,7 @@ function xmlwriter_open_memory () *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_set_indent (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, bool $enable): bool -{} +function xmlwriter_set_indent(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, bool $enable): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -574,8 +570,7 @@ function xmlwriter_set_indent (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_set_indent_string (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $indentation): bool -{} +function xmlwriter_set_indent_string(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $indentation): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
    @@ -588,8 +583,7 @@ function xmlwriter_set_indent_string (#[LanguageLevelTypeAware(["8.0" => "XMLWri * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_comment (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_start_comment(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
    @@ -602,8 +596,7 @@ function xmlwriter_start_comment (#[LanguageLevelTypeAware(["8.0" => "XMLWriter" * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_end_comment (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_end_comment(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -619,8 +612,7 @@ function xmlwriter_end_comment (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_attribute (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name): bool -{} +function xmlwriter_start_attribute(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -632,8 +624,7 @@ function xmlwriter_start_attribute (#[LanguageLevelTypeAware(["8.0" => "XMLWrite * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-open-uri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_end_attribute (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_end_attribute(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -652,8 +643,7 @@ function xmlwriter_end_attribute (#[LanguageLevelTypeAware(["8.0" => "XMLWriter" *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_attribute (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, string $value): bool -{} +function xmlwriter_write_attribute(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, string $value): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -675,8 +665,7 @@ function xmlwriter_write_attribute (#[LanguageLevelTypeAware(["8.0" => "XMLWrite *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_attribute_ns (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace): bool -{} +function xmlwriter_start_attribute_ns(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -701,8 +690,7 @@ function xmlwriter_start_attribute_ns (#[LanguageLevelTypeAware(["8.0" => "XMLWr *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_attribute_ns (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace, string $value): bool -{} +function xmlwriter_write_attribute_ns(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace, string $value): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -718,8 +706,7 @@ function xmlwriter_write_attribute_ns (#[LanguageLevelTypeAware(["8.0" => "XMLWr *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_element (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name): bool -{} +function xmlwriter_start_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -731,8 +718,7 @@ function xmlwriter_start_element (#[LanguageLevelTypeAware(["8.0" => "XMLWriter" * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-open-uri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_end_element (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_end_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)
    @@ -744,8 +730,7 @@ function xmlwriter_end_element (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-open-uri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_full_end_element (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_full_end_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -767,8 +752,7 @@ function xmlwriter_full_end_element (#[LanguageLevelTypeAware(["8.0" => "XMLWrit *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_element_ns (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace): bool -{} +function xmlwriter_start_element_ns(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -787,8 +771,7 @@ function xmlwriter_start_element_ns (#[LanguageLevelTypeAware(["8.0" => "XMLWrit *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_element (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, ?string $content): bool -{} +function xmlwriter_write_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, ?string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -813,8 +796,7 @@ function xmlwriter_write_element (#[LanguageLevelTypeAware(["8.0" => "XMLWriter" *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_element_ns (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace, ?string $content): bool -{} +function xmlwriter_write_element_ns(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $prefix, string $name, ?string $namespace, ?string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -830,8 +812,7 @@ function xmlwriter_write_element_ns (#[LanguageLevelTypeAware(["8.0" => "XMLWrit *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_pi (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $target): bool -{} +function xmlwriter_start_pi(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $target): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -843,8 +824,7 @@ function xmlwriter_start_pi (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], de * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-open-uri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_end_pi (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_end_pi(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -864,8 +844,7 @@ function xmlwriter_end_pi (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], defa * * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_pi (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $target, string $content): bool -{} +function xmlwriter_write_pi(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $target, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -878,8 +857,7 @@ function xmlwriter_write_pi (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], de * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_cdata (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_start_cdata(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -892,8 +870,7 @@ function xmlwriter_start_cdata (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_end_cdata (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_end_cdata(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -909,8 +886,7 @@ function xmlwriter_end_cdata (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], d *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_cdata (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool -{} +function xmlwriter_write_cdata(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -926,8 +902,7 @@ function xmlwriter_write_cdata (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_text (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool -{} +function xmlwriter_text(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool {} /** * (PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)
    @@ -943,8 +918,7 @@ function xmlwriter_text (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], defaul *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_raw (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool -{} +function xmlwriter_write_raw(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -966,8 +940,7 @@ function xmlwriter_write_raw (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], d *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_document (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $version = '1.0', ?string $encoding, ?string $standalone): bool -{} +function xmlwriter_start_document(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, ?string $version = '1.0', ?string $encoding, ?string $standalone): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -980,8 +953,7 @@ function xmlwriter_start_document (#[LanguageLevelTypeAware(["8.0" => "XMLWriter * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_end_document (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_end_document(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -997,8 +969,7 @@ function xmlwriter_end_document (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"] *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_comment (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool -{} +function xmlwriter_write_comment(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1020,8 +991,7 @@ function xmlwriter_write_comment (#[LanguageLevelTypeAware(["8.0" => "XMLWriter" *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_dtd (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $qualifiedName, ?string $publicId, ?string $systemId): bool -{} +function xmlwriter_start_dtd(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $qualifiedName, ?string $publicId, ?string $systemId): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1033,8 +1003,7 @@ function xmlwriter_start_dtd (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], d * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-open-uri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_end_dtd (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_end_dtd(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1059,8 +1028,7 @@ function xmlwriter_end_dtd (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], def *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_dtd (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, ?string $publicId, ?string $systemId, ?string $content): bool -{} +function xmlwriter_write_dtd(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, ?string $publicId, ?string $systemId, ?string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1076,8 +1044,7 @@ function xmlwriter_write_dtd (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], d *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_dtd_element (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $qualifiedName): bool -{} +function xmlwriter_start_dtd_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $qualifiedName): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1086,8 +1053,7 @@ function xmlwriter_start_dtd_element (#[LanguageLevelTypeAware(["8.0" => "XMLWri * @param $writer * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_end_dtd_element (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_end_dtd_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1106,8 +1072,7 @@ function xmlwriter_end_dtd_element (#[LanguageLevelTypeAware(["8.0" => "XMLWrite *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_dtd_element (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, string $content): bool -{} +function xmlwriter_write_dtd_element(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1123,8 +1088,7 @@ function xmlwriter_write_dtd_element (#[LanguageLevelTypeAware(["8.0" => "XMLWri *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_dtd_attlist (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name): bool -{} +function xmlwriter_start_dtd_attlist(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1136,8 +1100,7 @@ function xmlwriter_start_dtd_attlist (#[LanguageLevelTypeAware(["8.0" => "XMLWri * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-open-uri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_end_dtd_attlist (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_end_dtd_attlist(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1156,8 +1119,7 @@ function xmlwriter_end_dtd_attlist (#[LanguageLevelTypeAware(["8.0" => "XMLWrite *

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_dtd_attlist (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, string $content): bool -{} +function xmlwriter_write_dtd_attlist(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, string $content): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1174,8 +1136,7 @@ function xmlwriter_write_dtd_attlist (#[LanguageLevelTypeAware(["8.0" => "XMLWri * @param bool $isParam * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_start_dtd_entity (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, bool $isParam): bool -{} +function xmlwriter_start_dtd_entity(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, string $name, bool $isParam): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1187,8 +1148,7 @@ function xmlwriter_start_dtd_entity (#[LanguageLevelTypeAware(["8.0" => "XMLWrit * This resource comes from a call to {@link https://php.net/manual/en/function.xmlwriter-open-uri.php" xmlwriter_open_uri()} * or {@link https://php.net/manual/en/function.xmlwriter-open-memory.php" xmlwriter_open_memory()}.

    * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_end_dtd_entity (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool -{} +function xmlwriter_end_dtd_entity(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1211,8 +1171,7 @@ function xmlwriter_end_dtd_entity (#[LanguageLevelTypeAware(["8.0" => "XMLWriter * @param string $ndataid * @return bool TRUE on success or FALSE on failure. */ -function xmlwriter_write_dtd_entity (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, $name, $content, $pe, $pubid, $sysid, $ndataid): bool -{} +function xmlwriter_write_dtd_entity(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, $name, $content, $pe, $pubid, $sysid, $ndataid): bool {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
    @@ -1228,8 +1187,7 @@ function xmlwriter_write_dtd_entity (#[LanguageLevelTypeAware(["8.0" => "XMLWrit *

    * @return string the current buffer as a string. */ -function xmlwriter_output_memory (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, bool $flush = true): string -{} +function xmlwriter_output_memory(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, bool $flush = true): string {} /** * (PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
    @@ -1247,5 +1205,4 @@ function xmlwriter_output_memory (#[LanguageLevelTypeAware(["8.0" => "XMLWriter" * Else, if using URI, this function will write the buffer and return the number of * written bytes. */ -function xmlwriter_flush (#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, bool $empty = true): string|int -{} +function xmlwriter_flush(#[LanguageLevelTypeAware(["8.0" => "XMLWriter"], default: "resource")] $writer, bool $empty = true): string|int {} diff --git a/xsl/xsl.php b/xsl/xsl.php index fd0be8b11..b4ba0ba9a 100644 --- a/xsl/xsl.php +++ b/xsl/xsl.php @@ -5,201 +5,199 @@ /** * @link https://php.net/manual/en/class.xsltprocessor.php */ -class XSLTProcessor { - - /** - * Import stylesheet - * @link https://php.net/manual/en/xsltprocessor.importstylesheet.php - * @param object $stylesheet

    - * The imported style sheet as a DOMDocument or - * SimpleXMLElement object. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function importStylesheet ($stylesheet) {} - - /** - * Transform to a DOMDocument - * @link https://php.net/manual/en/xsltprocessor.transformtodoc.php - * @param DOMNode $doc

    - * The node to be transformed. - *

    - * @return DOMDocument|false The resulting DOMDocument or FALSE on error. - */ - public function transformToDoc (DOMNode $doc) {} - - /** - * Transform to URI - * @link https://php.net/manual/en/xsltprocessor.transformtouri.php - * @param DOMDocument|SimpleXMLElement $doc

    - * The document to transform. - *

    - * @param string $uri

    - * The target URI for the transformation. - *

    - * @return int|false the number of bytes written or FALSE if an error occurred. - */ - public function transformToUri ($doc, $uri) {} - - /** - * Transform to XML - * @link https://php.net/manual/en/xsltprocessor.transformtoxml.php - * @param DOMDocument|SimpleXMLElement $doc

    - * The transformed document. - *

    - * @return string|false|null The result of the transformation as a string or FALSE on error. - */ - public function transformToXml ($doc) {} - - /** - * Set value for a parameter - * @link https://php.net/manual/en/xsltprocessor.setparameter.php - * @param string $namespace

    - * The namespace URI of the XSLT parameter. - *

    - * @param array $options

    - * An array of name => value pairs. This syntax is available since PHP 5.1.0. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setParameter ($namespace, $options) {} - - /** - * Set value for a parameter - * @link https://php.net/manual/en/xsltprocessor.setparameter.php - * @param string $namespace

    - * The namespace URI of the XSLT parameter. - *

    - * @param string $name

    - * The local name of the XSLT parameter. - *

    - * @param string $value

    - * The new value of the XSLT parameter. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setParameter ($namespace, $name, $value) {} - - /** - * Get value of a parameter - * @link https://php.net/manual/en/xsltprocessor.getparameter.php - * @param string $namespaceURI

    - * The namespace URI of the XSLT parameter. - *

    - * @param string $localName

    - * The local name of the XSLT parameter. - *

    - * @return string|false The value of the parameter (as a string), or FALSE if it's not set. - */ - public function getParameter ($namespaceURI, $localName) {} - - /** - * Remove parameter - * @link https://php.net/manual/en/xsltprocessor.removeparameter.php - * @param string $namespaceURI

    - * The namespace URI of the XSLT parameter. - *

    - * @param string $localName

    - * The local name of the XSLT parameter. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function removeParameter ($namespaceURI, $localName) {} - - /** - * Determine if PHP has EXSLT support - * @link https://php.net/manual/en/xsltprocessor.hasexsltsupport.php - * @return bool TRUE on success or FALSE on failure. - * @since 5.0.4 - */ - public function hasExsltSupport () {} - - /** - * Enables the ability to use PHP functions as XSLT functions - * @link https://php.net/manual/en/xsltprocessor.registerphpfunctions.php - * @param mixed $restrict [optional]

    - * Use this parameter to only allow certain functions to be called from - * XSLT. - *

    - *

    - * This parameter can be either a string (a function name) or an array of - * functions. - *

    - * @return void No value is returned. - * @since 5.0.4 - */ - public function registerPHPFunctions ($restrict = null) {} - - /** - * Sets profiling output file - * @link https://php.net/manual/en/xsltprocessor.setprofiling.php - * @param string $filename

    - * Path to the file to dump profiling information. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setProfiling ($filename) {} - - /** - * Set security preferences - * @link https://php.net/manual/en/xsltprocessor.setsecurityprefs.php - * @param int $securityPrefs - * @return int - * @since 5.4 - */ - public function setSecurityPrefs ($securityPrefs) {} - - /** - * Get security preferences - * @link https://php.net/manual/en/xsltprocessor.getsecurityprefs.php - * @return int - * @since 5.4 - */ - public function getSecurityPrefs () {} - +class XSLTProcessor +{ + /** + * Import stylesheet + * @link https://php.net/manual/en/xsltprocessor.importstylesheet.php + * @param object $stylesheet

    + * The imported style sheet as a DOMDocument or + * SimpleXMLElement object. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function importStylesheet($stylesheet) {} + + /** + * Transform to a DOMDocument + * @link https://php.net/manual/en/xsltprocessor.transformtodoc.php + * @param DOMNode $doc

    + * The node to be transformed. + *

    + * @return DOMDocument|false The resulting DOMDocument or FALSE on error. + */ + public function transformToDoc(DOMNode $doc) {} + + /** + * Transform to URI + * @link https://php.net/manual/en/xsltprocessor.transformtouri.php + * @param DOMDocument|SimpleXMLElement $doc

    + * The document to transform. + *

    + * @param string $uri

    + * The target URI for the transformation. + *

    + * @return int|false the number of bytes written or FALSE if an error occurred. + */ + public function transformToUri($doc, $uri) {} + + /** + * Transform to XML + * @link https://php.net/manual/en/xsltprocessor.transformtoxml.php + * @param DOMDocument|SimpleXMLElement $doc

    + * The transformed document. + *

    + * @return string|false|null The result of the transformation as a string or FALSE on error. + */ + public function transformToXml($doc) {} + + /** + * Set value for a parameter + * @link https://php.net/manual/en/xsltprocessor.setparameter.php + * @param string $namespace

    + * The namespace URI of the XSLT parameter. + *

    + * @param array $options

    + * An array of name => value pairs. This syntax is available since PHP 5.1.0. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setParameter($namespace, $options) {} + + /** + * Set value for a parameter + * @link https://php.net/manual/en/xsltprocessor.setparameter.php + * @param string $namespace

    + * The namespace URI of the XSLT parameter. + *

    + * @param string $name

    + * The local name of the XSLT parameter. + *

    + * @param string $value

    + * The new value of the XSLT parameter. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setParameter($namespace, $name, $value) {} + + /** + * Get value of a parameter + * @link https://php.net/manual/en/xsltprocessor.getparameter.php + * @param string $namespaceURI

    + * The namespace URI of the XSLT parameter. + *

    + * @param string $localName

    + * The local name of the XSLT parameter. + *

    + * @return string|false The value of the parameter (as a string), or FALSE if it's not set. + */ + public function getParameter($namespaceURI, $localName) {} + + /** + * Remove parameter + * @link https://php.net/manual/en/xsltprocessor.removeparameter.php + * @param string $namespaceURI

    + * The namespace URI of the XSLT parameter. + *

    + * @param string $localName

    + * The local name of the XSLT parameter. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function removeParameter($namespaceURI, $localName) {} + + /** + * Determine if PHP has EXSLT support + * @link https://php.net/manual/en/xsltprocessor.hasexsltsupport.php + * @return bool TRUE on success or FALSE on failure. + * @since 5.0.4 + */ + public function hasExsltSupport() {} + + /** + * Enables the ability to use PHP functions as XSLT functions + * @link https://php.net/manual/en/xsltprocessor.registerphpfunctions.php + * @param mixed $restrict [optional]

    + * Use this parameter to only allow certain functions to be called from + * XSLT. + *

    + *

    + * This parameter can be either a string (a function name) or an array of + * functions. + *

    + * @return void No value is returned. + * @since 5.0.4 + */ + public function registerPHPFunctions($restrict = null) {} + + /** + * Sets profiling output file + * @link https://php.net/manual/en/xsltprocessor.setprofiling.php + * @param string $filename

    + * Path to the file to dump profiling information. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setProfiling($filename) {} + + /** + * Set security preferences + * @link https://php.net/manual/en/xsltprocessor.setsecurityprefs.php + * @param int $securityPrefs + * @return int + * @since 5.4 + */ + public function setSecurityPrefs($securityPrefs) {} + + /** + * Get security preferences + * @link https://php.net/manual/en/xsltprocessor.getsecurityprefs.php + * @return int + * @since 5.4 + */ + public function getSecurityPrefs() {} } -define ('XSL_CLONE_AUTO', 0); -define ('XSL_CLONE_NEVER', -1); -define ('XSL_CLONE_ALWAYS', 1); +define('XSL_CLONE_AUTO', 0); +define('XSL_CLONE_NEVER', -1); +define('XSL_CLONE_ALWAYS', 1); /** @link https://php.net/manual/en/xsl.constants.php */ -define ('XSL_SECPREF_NONE', 0); +define('XSL_SECPREF_NONE', 0); /** @link https://php.net/manual/en/xsl.constants.php */ -define ('XSL_SECPREF_READ_FILE', 2); +define('XSL_SECPREF_READ_FILE', 2); /** @link https://php.net/manual/en/xsl.constants.php */ -define ('XSL_SECPREF_WRITE_FILE', 4); +define('XSL_SECPREF_WRITE_FILE', 4); /** @link https://php.net/manual/en/xsl.constants.php */ -define ('XSL_SECPREF_CREATE_DIRECTORY', 8); +define('XSL_SECPREF_CREATE_DIRECTORY', 8); /** @link https://php.net/manual/en/xsl.constants.php */ -define ('XSL_SECPREF_READ_NETWORK', 16); +define('XSL_SECPREF_READ_NETWORK', 16); /** @link https://php.net/manual/en/xsl.constants.php */ -define ('XSL_SECPREF_WRITE_NETWORK', 32); +define('XSL_SECPREF_WRITE_NETWORK', 32); /** @link https://php.net/manual/en/xsl.constants.php */ -define ('XSL_SECPREF_DEFAULT', 44); +define('XSL_SECPREF_DEFAULT', 44); /** * libxslt version like 10117. Available as of PHP 5.1.2. * @link https://php.net/manual/en/xsl.constants.php */ -define ('LIBXSLT_VERSION', 10128); +define('LIBXSLT_VERSION', 10128); /** * libxslt version like 1.1.17. Available as of PHP 5.1.2. * @link https://php.net/manual/en/xsl.constants.php */ -define ('LIBXSLT_DOTTED_VERSION', "1.1.28"); +define('LIBXSLT_DOTTED_VERSION', "1.1.28"); /** * libexslt version like 813. Available as of PHP 5.1.2. * @link https://php.net/manual/en/xsl.constants.php */ -define ('LIBEXSLT_VERSION', 817); +define('LIBEXSLT_VERSION', 817); /** * libexslt version like 1.1.17. Available as of PHP 5.1.2. * @link https://php.net/manual/en/xsl.constants.php */ -define ('LIBEXSLT_DOTTED_VERSION', "1.1.28"); +define('LIBEXSLT_DOTTED_VERSION', "1.1.28"); // End of xsl v.0.1 -?> diff --git a/xxtea/xxtea.php b/xxtea/xxtea.php index 7ffdd42ed..0afc30551 100644 --- a/xxtea/xxtea.php +++ b/xxtea/xxtea.php @@ -16,7 +16,7 @@ class XXTEA * * @since 1.0.0 */ - public static function encrypt($data, $key) { } + public static function encrypt($data, $key) {} /** * Decrypts data. @@ -28,7 +28,7 @@ public static function encrypt($data, $key) { } * * @since 1.0.0 */ - public static function decrypt($data, $key) { } + public static function decrypt($data, $key) {} } /** @@ -41,7 +41,7 @@ public static function decrypt($data, $key) { } * * @since 1.0.0 */ -function xxtea_encrypt($data, $key) { } +function xxtea_encrypt($data, $key) {} /** * Decrypts data. @@ -53,4 +53,4 @@ function xxtea_encrypt($data, $key) { } * * @since 1.0.0 */ -function xxtea_decrypt($data, $key) { } +function xxtea_decrypt($data, $key) {} diff --git a/yaf/yaf.php b/yaf/yaf.php index ad7181a57..b5958ad37 100644 --- a/yaf/yaf.php +++ b/yaf/yaf.php @@ -29,8 +29,8 @@ *

    * @link https://secure.php.net/manual/en/class.yaf-application.php */ -final class Yaf_Application { - +final class Yaf_Application +{ /** * @var Yaf_Application */ @@ -113,7 +113,7 @@ final class Yaf_Application { * * @throws Yaf_Exception_TypeError|Yaf_Exception_StartupError */ - public function __construct($config, $envrion = null){ } + public function __construct($config, $envrion = null) {} /** * Run a Yaf_Application, let the Yaf_Application accept a request, and route the request, dispatch to controller/action, and render response. @@ -122,7 +122,7 @@ public function __construct($config, $envrion = null){ } * @link https://secure.php.net/manual/en/yaf-application.run.php * @throws Yaf_Exception_StartupError */ - public function run(){ } + public function run() {} /** * This method is typically used to run Yaf_Application in a crontab work. @@ -133,7 +133,7 @@ public function run(){ } * @param callable $entry a valid callback * @param string ...$_ parameters will pass to the callback */ - public function execute(callable $entry, ...$_){ } + public function execute(callable $entry, ...$_) {} /** * Retrieve the Yaf_Application instance, alternatively, we also could use Yaf_Dispatcher::getApplication(). @@ -142,7 +142,7 @@ public function execute(callable $entry, ...$_){ } * * @return Yaf_Application|null an Yaf_Application instance, if no Yaf_Application initialized before, NULL will be returned. */ - public static function app(){ } + public static function app() {} /** * Retrieve environ which was defined in yaf.environ which has a default value "product". @@ -151,7 +151,7 @@ public static function app(){ } * * @return string */ - public function environ(){ } + public function environ() {} /** * Run a Bootstrap, all the methods defined in the Bootstrap and named with prefix "_init" will be called according to their declaration order, if the parameter bootstrap is not supplied, Yaf will look for a Bootstrap under application.directory. @@ -161,14 +161,14 @@ public function environ(){ } * @param Yaf_Bootstrap_Abstract $bootstrap A Yaf_Bootstrap_Abstract instance * @return Yaf_Application */ - public function bootstrap(Yaf_Bootstrap_Abstract $bootstrap = null){ } + public function bootstrap(Yaf_Bootstrap_Abstract $bootstrap = null) {} /** * @link https://secure.php.net/manual/en/yaf-application.getconfig.php * * @return Yaf_Config_Abstract */ - public function getConfig(){ } + public function getConfig() {} /** * Get the modules list defined in config, if no one defined, there will always be a module named "Index". @@ -177,14 +177,14 @@ public function getConfig(){ } * * @return array */ - public function getModules(){ } + public function getModules() {} /** * @link https://secure.php.net/manual/en/yaf-application.getdispatcher.php * * @return Yaf_Dispatcher */ - public function getDispatcher(){ } + public function getDispatcher() {} /** * Change the application directory @@ -195,7 +195,7 @@ public function getDispatcher(){ } * @param string $directory * @return Yaf_Application */ - public function setAppDirectory($directory){ } + public function setAppDirectory($directory) {} /** * @since 2.1.4 @@ -203,7 +203,7 @@ public function setAppDirectory($directory){ } * * @return string */ - public function getAppDirectory(){ } + public function getAppDirectory() {} /** * @since 2.1.2 @@ -211,7 +211,7 @@ public function getAppDirectory(){ } * * @return int */ - public function getLastErrorNo(){ } + public function getLastErrorNo() {} /** * @since 2.1.2 @@ -219,38 +219,33 @@ public function getLastErrorNo(){ } * * @return string */ - public function getLastErrorMsg(){ } + public function getLastErrorMsg() {} /** - * * @since 2.1.2 * @link https://secure.php.net/manual/en/yaf-application.clearlasterror.php */ - public function clearLastError(){ } + public function clearLastError() {} /** - * * @link https://secure.php.net/manual/en/yaf-application.destruct.php */ - public function __destruct(){ } + public function __destruct() {} /** - * * @link https://secure.php.net/manual/en/yaf-application.clone.php */ - private function __clone(){ } + private function __clone() {} /** - * * @link https://secure.php.net/manual/en/yaf-application.sleep.php */ - private function __sleep(){ } + private function __sleep() {} /** - * * @link https://secure.php.net/manual/en/yaf-application.wakeup.php */ - private function __wakeup(){ } + private function __wakeup() {} } /** @@ -259,8 +254,8 @@ private function __wakeup(){ } * * @link https://secure.php.net/manual/en/class.yaf-dispatcher.php */ -final class Yaf_Dispatcher { - +final class Yaf_Dispatcher +{ /** * @var Yaf_Dispatcher */ @@ -309,22 +304,22 @@ final class Yaf_Dispatcher { /** * @link https://secure.php.net/manual/en/yaf-dispatcher.construct.php */ - private function __construct(){ } + private function __construct() {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.clone.php */ - private function __clone(){ } + private function __clone() {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.sleep.php */ - private function __sleep(){ } + private function __sleep() {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.wakeup.php */ - private function __wakeup(){ } + private function __wakeup() {} /** * enable view rendering @@ -333,7 +328,7 @@ private function __wakeup(){ } * * @return Yaf_Dispatcher */ - public function enableView(){ } + public function enableView() {} /** *

    disable view engine, used in some app that user will output by himself


    @@ -344,7 +339,7 @@ public function enableView(){ } * * @return bool */ - public function disableView(){ } + public function disableView() {} /** * Initialize view and return it @@ -355,7 +350,7 @@ public function disableView(){ } * @param array $options * @return Yaf_View_Interface */ - public function initView($templates_dir, array $options = null){ } + public function initView($templates_dir, array $options = null) {} /** * This method provides a solution for that if you want use a custom view engine instead of Yaf_View_Simple @@ -365,16 +360,15 @@ public function initView($templates_dir, array $options = null){ } * @param Yaf_View_Interface $view A Yaf_View_Interface instance * @return Yaf_Dispatcher */ - public function setView(Yaf_View_Interface $view){ } + public function setView(Yaf_View_Interface $view) {} /** - * * @link https://secure.php.net/manual/en/yaf-dispatcher.setrequest.php * * @param Yaf_Request_Abstract $request * @return Yaf_Dispatcher */ - public function setRequest(Yaf_Request_Abstract $request){ } + public function setRequest(Yaf_Request_Abstract $request) {} /** * Retrieve the Yaf_Application instance. same as Yaf_Application::app(). @@ -382,21 +376,21 @@ public function setRequest(Yaf_Request_Abstract $request){ } * @link https://secure.php.net/manual/en/yaf-dispatcher.getapplication.php * @return Yaf_Application */ - public function getApplication(){ } + public function getApplication() {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.getrouter.php * * @return Yaf_Router */ - public function getRouter(){ } + public function getRouter() {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.getrequest.php * * @return Yaf_Request_Abstract */ - public function getRequest(){ } + public function getRequest() {} /** *

    Set error handler for Yaf. when application.dispatcher.throwException is off, Yaf will trigger catch-able error while unexpected errors occurred.


    @@ -409,7 +403,7 @@ public function getRequest(){ } * * @return Yaf_Dispatcher */ - public function setErrorHandler(callable $callback, $error_types){ } + public function setErrorHandler(callable $callback, $error_types) {} /** * Change default module name @@ -419,7 +413,7 @@ public function setErrorHandler(callable $callback, $error_types){ } * @param string $module * @return Yaf_Dispatcher */ - public function setDefaultModule($module){ } + public function setDefaultModule($module) {} /** * Change default controller name @@ -429,7 +423,7 @@ public function setDefaultModule($module){ } * @param string $controller * @return Yaf_Dispatcher */ - public function setDefaultController($controller){ } + public function setDefaultController($controller) {} /** * Change default action name @@ -439,7 +433,7 @@ public function setDefaultController($controller){ } * @param string $action * @return Yaf_Dispatcher */ - public function setDefaultAction($action){ } + public function setDefaultAction($action) {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.returnresponse.php @@ -447,7 +441,7 @@ public function setDefaultAction($action){ } * @param bool $flag * @return Yaf_Dispatcher */ - public function returnResponse($flag){ } + public function returnResponse($flag) {} /** *

    Yaf_Dispatcher will render automatically after dispatches an incoming request, you can prevent the rendering by calling this method with $flag TRUE


    @@ -459,7 +453,7 @@ public function returnResponse($flag){ } * @param bool $flag since 2.2.0, if this parameter is not given, then the current state will be set * @return Yaf_Dispatcher */ - public function autoRender($flag = null){ } + public function autoRender($flag = null) {} /** * Switch on/off the instant flushing @@ -469,14 +463,14 @@ public function autoRender($flag = null){ } * @param bool $flag since 2.2.0, if this parameter is not given, then the current state will be set * @return Yaf_Dispatcher */ - public function flushInstantly($flag = null){ } + public function flushInstantly($flag = null) {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.getinstance.php * * @return Yaf_Dispatcher */ - public static function getInstance(){ } + public static function getInstance() {} /** *

    This method does the heavy work of the Yaf_Dispatcher. It take a request object.


    @@ -501,7 +495,7 @@ public static function getInstance(){ } * * @return Yaf_Response_Abstract */ - public function dispatch(Yaf_Request_Abstract $request){ } + public function dispatch(Yaf_Request_Abstract $request) {} /** *

    Switch on/off exception throwing while unexpected error occurring. When this is on, Yaf will throwing exceptions instead of triggering catchable errors.


    @@ -512,7 +506,7 @@ public function dispatch(Yaf_Request_Abstract $request){ } * @param bool $flag * @return Yaf_Dispatcher */ - public function throwException($flag = null){ } + public function throwException($flag = null) {} /** *

    While the application.dispatcher.throwException is On(you can also calling to Yaf_Dispatcher::throwException(TRUE) to enable it), Yaf will throw Exception whe error occurs instead of trigger error.


    @@ -523,7 +517,7 @@ public function throwException($flag = null){ } * @param bool $flag * @return Yaf_Dispatcher */ - public function catchException($flag = null){ } + public function catchException($flag = null) {} /** * Register a plugin(see Yaf_Plugin_Abstract). Generally, we register plugins in Bootstrap(see Yaf_Bootstrap_Abstract). @@ -533,7 +527,7 @@ public function catchException($flag = null){ } * @param Yaf_Plugin_Abstract $plugin * @return Yaf_Dispatcher */ - public function registerPlugin(Yaf_Plugin_Abstract $plugin){ } + public function registerPlugin(Yaf_Plugin_Abstract $plugin) {} } /** @@ -548,10 +542,9 @@ public function registerPlugin(Yaf_Plugin_Abstract $plugin){ } *
    *

    If you want Yaf_Loader search some classes(libraries) in the local class directory(which is defined in application.ini, and by default, it is application.directory . "/library"), you should register the class prefix using the Yaf_Loader::registerLocalNameSpace()

    * @link https://secure.php.net/manual/en/class.yaf-loader.php - * */ -class Yaf_Loader { - +class Yaf_Loader +{ /** * @var string */ @@ -573,22 +566,22 @@ class Yaf_Loader { /** * @link https://secure.php.net/manual/en/yaf-loader.construct.php */ - private function __construct(){ } + private function __construct() {} /** * @link https://secure.php.net/manual/en/yaf-loader.clone.php */ - private function __clone(){ } + private function __clone() {} /** * @link https://secure.php.net/manual/en/yaf-loader.sleep.php */ - private function __sleep(){ } + private function __sleep() {} /** * @link https://secure.php.net/manual/en/yaf-loader.wakeup.php */ - private function __wakeup(){ } + private function __wakeup() {} /** * @link https://secure.php.net/manual/en/yaf-loader.autoload.php @@ -597,7 +590,7 @@ private function __wakeup(){ } * * @return bool */ - public function autoload($class_name){ } + public function autoload($class_name) {} /** * @link https://secure.php.net/manual/en/yaf-loader.getinstance.php @@ -607,7 +600,7 @@ public function autoload($class_name){ } * * @return Yaf_Loader */ - public static function getInstance($local_library_path = null, $global_library_path = null){ } + public static function getInstance($local_library_path = null, $global_library_path = null) {} /** *

    Register local class prefix name, Yaf_Loader search classes in two library directories, the one is configured via application.library.directory(in application.ini) which is called local library directory; the other is configured via yaf.library (in php.ini) which is called global library directory, since it can be shared by many applications in the same server.

    @@ -622,19 +615,19 @@ public static function getInstance($local_library_path = null, $global_library_p * * @return bool */ - public function registerLocalNamespace($name_prefix){ } + public function registerLocalNamespace($name_prefix) {} /** * @link https://secure.php.net/manual/en/yaf-loader.getlocalnamespace.php * * @return string */ - public function getLocalNamespace(){ } + public function getLocalNamespace() {} /** * @link https://secure.php.net/manual/en/yaf-loader.clearlocalnamespace.php */ - public function clearLocalNamespace(){ } + public function clearLocalNamespace() {} /** * @link https://secure.php.net/manual/en/yaf-loader.islocalname.php @@ -643,7 +636,7 @@ public function clearLocalNamespace(){ } * * @return bool */ - public function isLocalName($class_name){ } + public function isLocalName($class_name) {} /** * @link https://secure.php.net/manual/en/yaf-loader.import.php @@ -652,7 +645,7 @@ public function isLocalName($class_name){ } * * @return bool */ - public static function import($file){ } + public static function import($file) {} /** * @since 2.1.4 @@ -663,7 +656,7 @@ public static function import($file){ } * * @return Yaf_Loader */ - public function setLibraryPath($directory, $global = false){ } + public function setLibraryPath($directory, $global = false) {} /** * @since 2.1.4 @@ -673,15 +666,15 @@ public function setLibraryPath($directory, $global = false){ } * * @return string */ - public function getLibraryPath($is_global = false){ } + public function getLibraryPath($is_global = false) {} } /** *

    All methods of Yaf_Registry declared as static, making it universally accessible. This provides the ability to get or set any custom data from anyway in your code as necessary.

    * @link https://secure.php.net/manual/en/class.yaf-registry.php */ -final class Yaf_Registry { - +final class Yaf_Registry +{ /** * @var Yaf_Registry */ @@ -694,12 +687,12 @@ final class Yaf_Registry { /** * @link https://secure.php.net/manual/en/yaf-registry.construct.php */ - private function __construct(){ } + private function __construct() {} /** * @link https://secure.php.net/manual/en/yaf-registry.clone.php */ - private function __clone(){ } + private function __clone() {} /** * Retrieve an item from registry @@ -710,7 +703,7 @@ private function __clone(){ } * * @return mixed */ - public static function get($name){ } + public static function get($name) {} /** * Check whether an item exists @@ -721,7 +714,7 @@ public static function get($name){ } * * @return bool */ - public static function has($name){ } + public static function has($name) {} /** * @link https://secure.php.net/manual/en/yaf-registry.set.php @@ -731,7 +724,7 @@ public static function has($name){ } * * @return bool */ - public static function set($name, $value){ } + public static function set($name, $value) {} /** * @link https://secure.php.net/manual/en/yaf-registry.del.php @@ -740,15 +733,15 @@ public static function set($name, $value){ } * * @return void|bool */ - public static function del($name){ } + public static function del($name) {} } /** * @link https://secure.php.net/manual/en/class.yaf-session.php * @version 2.2.9 */ -final class Yaf_Session implements Iterator, Traversable, ArrayAccess, Countable { - +final class Yaf_Session implements Iterator, Traversable, ArrayAccess, Countable +{ /** * @var Yaf_Session */ @@ -765,37 +758,36 @@ final class Yaf_Session implements Iterator, Traversable, ArrayAccess, Countable /** * @link https://secure.php.net/manual/en/yaf-session.construct.php */ - private function __construct(){ } + private function __construct() {} /** * @link https://secure.php.net/manual/en/yaf-session.clone.php */ - private function __clone(){ } + private function __clone() {} /** * @link https://secure.php.net/manual/en/yaf-session.sleep.php */ - private function __sleep(){ } + private function __sleep() {} /** * @link https://secure.php.net/manual/en/yaf-session.wakeup.php */ - private function __wakeup(){ } + private function __wakeup() {} /** * @link https://secure.php.net/manual/en/yaf-session.getinstance.php * * @return Yaf_Session */ - public static function getInstance(){ } + public static function getInstance() {} /** * @link https://secure.php.net/manual/en/yaf-session.start.php * * @return Yaf_Session */ - public function start(){ } - + public function start() {} /** * @link https://secure.php.net/manual/en/yaf-session.get.php @@ -804,7 +796,7 @@ public function start(){ } * * @return mixed */ - public function get($name){ } + public function get($name) {} /** * @link https://secure.php.net/manual/en/yaf-session.has.php @@ -813,7 +805,7 @@ public function get($name){ } * * @return bool */ - public function has($name){ } + public function has($name) {} /** * @link https://secure.php.net/manual/en/yaf-session.set.php @@ -823,7 +815,7 @@ public function has($name){ } * * @return Yaf_Session|false return FALSE on failure */ - public function set($name, $value){ } + public function set($name, $value) {} /** * @link https://secure.php.net/manual/en/yaf-session.del.php @@ -832,55 +824,55 @@ public function set($name, $value){ } * * @return Yaf_Session|false return FALSE on failure */ - public function del($name){ } + public function del($name) {} /** * @see Countable::count */ - public function count(){ } + public function count() {} /** * @see Iterator::rewind */ - public function rewind(){ } + public function rewind() {} /** * @see Iterator::current */ - public function current(){ } + public function current() {} /** * @see Iterator::next */ - public function next(){ } + public function next() {} /** * @see Iterator::valid */ - public function valid(){ } + public function valid() {} /** * @see Iterator::key */ - public function key(){ } + public function key() {} /** * @param string $name * @see ArrayAccess::offsetUnset */ - public function offsetUnset($name){ } + public function offsetUnset($name) {} /** * @param string $name * @see ArrayAccess::offsetGet * @return mixed */ - public function offsetGet($name){ } + public function offsetGet($name) {} /** * @see ArrayAccess::offsetExists */ - public function offsetExists($name){ } + public function offsetExists($name) {} /** * @see ArrayAccess::offsetSet @@ -889,27 +881,27 @@ public function offsetExists($name){ } * @param string $value * @return void */ - public function offsetSet($name, $value){ } + public function offsetSet($name, $value) {} /** * @see Yaf_Session::get() */ - public function __get($name){ } + public function __get($name) {} /** * @see Yaf_Session::has() */ - public function __isset($name){ } + public function __isset($name) {} /** * @see Yaf_Session::set() */ - public function __set($name, $value){ } + public function __set($name, $value) {} /** * @see Yaf_Session::del() */ - public function __unset($name){ } + public function __unset($name) {} } /** @@ -925,8 +917,8 @@ public function __unset($name){ } *

    ** See examples by opening the external documentation

    * @link https://secure.php.net/manual/en/class.yaf-router.php */ -class Yaf_Router { - +class Yaf_Router +{ /** * @var Yaf_Route_Interface[] registered routes stack */ @@ -939,7 +931,7 @@ class Yaf_Router { /** * @link https://secure.php.net/manual/en/yaf-router.construct.php */ - public function __construct(){ } + public function __construct() {} /** *

    by default, Yaf_Router using a Yaf_Route_Static as its default route. you can add new routes into router's route stack by calling this method.

    @@ -953,7 +945,7 @@ public function __construct(){ } * * @return Yaf_Router|false return FALSE on failure */ - public function addRoute($name, Yaf_Route_Interface $route){ } + public function addRoute($name, Yaf_Route_Interface $route) {} /** *

    Add routes defined by configs into Yaf_Router's route stack

    @@ -964,7 +956,7 @@ public function addRoute($name, Yaf_Route_Interface $route){ } * * @return Yaf_Router|false return FALSE on failure */ - public function addConfig(Yaf_Config_Abstract $config){ } + public function addConfig(Yaf_Config_Abstract $config) {} /** * @link https://secure.php.net/manual/en/yaf-router.route.php @@ -973,7 +965,7 @@ public function addConfig(Yaf_Config_Abstract $config){ } * * @return Yaf_Router|false return FALSE on failure */ - public function route(Yaf_Request_Abstract $request){ } + public function route(Yaf_Request_Abstract $request) {} /** *

    Retrieve a route by name, see also Yaf_Router::getCurrentRoute()

    @@ -984,14 +976,14 @@ public function route(Yaf_Request_Abstract $request){ } * * @return Yaf_Route_Interface */ - public function getRoute($name){ } + public function getRoute($name) {} /** * @link https://secure.php.net/manual/en/yaf-router.getroutes.php * * @return Yaf_Route_Interface[] */ - public function getRoutes(){ } + public function getRoutes() {} /** *

    Get the name of the route which is effective in the route process.

    @@ -1003,7 +995,7 @@ public function getRoutes(){ } * * @return string the name of the effective route. */ - public function getCurrentRoute(){ } + public function getCurrentRoute() {} } /** @@ -1013,9 +1005,7 @@ public function getCurrentRoute(){ } * * @link https://secure.php.net/manual/en/class.yaf-bootstrap-abstract.php */ -abstract class Yaf_Bootstrap_Abstract { - -} +abstract class Yaf_Bootstrap_Abstract {} /** *

    Yaf_Controller_Abstract is the heart of Yaf's system. MVC stands for Model-View-Controller and is a design pattern targeted at separating application logic from display logic.

    @@ -1033,8 +1023,8 @@ abstract class Yaf_Bootstrap_Abstract { * * @link https://secure.php.net/manual/en/class.yaf-controller-abstract.php */ -abstract class Yaf_Controller_Abstract { - +abstract class Yaf_Controller_Abstract +{ /** * @see Yaf_Action_Abstract * @var array You can also define a action method in a separate PHP script by using this property and Yaf_Action_Abstract. @@ -1073,7 +1063,7 @@ abstract class Yaf_Controller_Abstract { * * @return string */ - protected function render($tpl, array $parameters = null){ } + protected function render($tpl, array $parameters = null) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.display.php @@ -1083,7 +1073,7 @@ protected function render($tpl, array $parameters = null){ } * * @return bool */ - protected function display($tpl, array $parameters = null){ } + protected function display($tpl, array $parameters = null) {} /** * retrieve current request object @@ -1092,7 +1082,7 @@ protected function display($tpl, array $parameters = null){ } * * @return Yaf_Request_Abstract */ - public function getRequest(){ } + public function getRequest() {} /** * retrieve current response object @@ -1101,7 +1091,7 @@ public function getRequest(){ } * * @return Yaf_Response_Abstract */ - public function getResponse(){ } + public function getResponse() {} /** * get the controller's module name @@ -1110,7 +1100,7 @@ public function getResponse(){ } * * @return string */ - public function getModuleName(){ } + public function getModuleName() {} /** * retrieve view engine @@ -1119,7 +1109,7 @@ public function getModuleName(){ } * * @return Yaf_View_Interface */ - public function getView(){ } + public function getView() {} /** * @deprecated not_implemented @@ -1129,7 +1119,7 @@ public function getView(){ } * * @return Yaf_Response_Abstract */ - public function initView(array $options = null){ } + public function initView(array $options = null) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.setviewpath.php @@ -1138,14 +1128,14 @@ public function initView(array $options = null){ } * * @return bool */ - public function setViewpath($view_directory){ } + public function setViewpath($view_directory) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.getviewpath.php * * @return string */ - public function getViewpath(){ } + public function getViewpath() {} /** *

    forward current execution process to other action.

    @@ -1167,7 +1157,7 @@ public function getViewpath(){ } * * @return bool return FALSE on failure */ - public function forward($module, $controller = null, $action = null, array $parameters = null){ } + public function forward($module, $controller = null, $action = null, array $parameters = null) {} /** * redirect to a URL by sending a 302 header @@ -1178,14 +1168,14 @@ public function forward($module, $controller = null, $action = null, array $para * * @return bool */ - public function redirect($url){ } + public function redirect($url) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.getinvokeargs.php * * @return array */ - public function getInvokeArgs(){ } + public function getInvokeArgs() {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.getinvokearg.php @@ -1193,15 +1183,14 @@ public function getInvokeArgs(){ } * * @return mixed|null */ - public function getInvokeArg($name){ } + public function getInvokeArg($name) {} /** *

    Yaf_Controller_Abstract::__construct() is final, which means users can not override it. but users can define Yaf_Controller_Abstract::init(), which will be called after controller object is instantiated.

    * * @link https://secure.php.net/manual/en/yaf-controller-abstract.init.php - * */ - public function init(){ } + public function init() {} /** * Yaf_Controller_Abstract::__construct() is final, which means it can not be overridden. You may want to see Yaf_Controller_Abstract::init() instead. @@ -1214,12 +1203,12 @@ public function init(){ } * @param Yaf_View_Interface $view * @param array $invokeArgs */ - final public function __construct(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response, Yaf_View_Interface $view, array $invokeArgs = null){ } + final public function __construct(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response, Yaf_View_Interface $view, array $invokeArgs = null) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.clone.php */ - final private function __clone(){ } + final private function __clone() {} } /** @@ -1228,10 +1217,9 @@ final private function __clone(){ } *

    Since there should be a entry point which can be called by Yaf (as of PHP 5.3, there is a new magic method __invoke, but Yaf is not only works with PHP 5.3+, Yaf choose another magic method execute), you must implement the abstract method Yaf_Action_Abstract::execute() in your custom action class.

    * * @link https://secure.php.net/manual/en/class.yaf-action-abstract.php - * */ -abstract class Yaf_Action_Abstract extends Yaf_Controller_Abstract { - +abstract class Yaf_Action_Abstract extends Yaf_Controller_Abstract +{ /** * @var Yaf_Controller_Abstract */ @@ -1256,14 +1244,14 @@ abstract public function execute(); * * @return Yaf_Controller_Abstract */ - public function getController(){ } + public function getController() {} } /** * @link https://secure.php.net/manual/en/class.yaf-config-abstract.php */ -abstract class Yaf_Config_Abstract { - +abstract class Yaf_Config_Abstract +{ /** * @var array */ @@ -1308,10 +1296,10 @@ abstract public function toArray(); /** * @link https://secure.php.net/manual/en/class.yaf-request-abstract.php */ -abstract class Yaf_Request_Abstract { - - const SCHEME_HTTP = 'http'; - const SCHEME_HTTPS = 'https'; +abstract class Yaf_Request_Abstract +{ + public const SCHEME_HTTP = 'http'; + public const SCHEME_HTTPS = 'https'; /** * @var string */ @@ -1362,64 +1350,63 @@ abstract class Yaf_Request_Abstract { * * @return bool */ - public function isGet(){ } + public function isGet() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.ispost.php * * @return bool */ - public function isPost(){ } + public function isPost() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.isput.php * * @return bool */ - public function isPut(){ } + public function isPut() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.ishead.php * * @return bool */ - public function isHead(){ } + public function isHead() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.isoptions.php * * @return bool */ - public function isOptions(){ } + public function isOptions() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.iscli.php * * @return bool */ - public function isCli(){ } + public function isCli() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.isdispached.php * * @return bool */ - public function isDispatched(){ } + public function isDispatched() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.isrouted.php * * @return bool */ - public function isRouted(){ } + public function isRouted() {} /** - * * @link https://secure.php.net/manual/en/yaf-request-abstract.isxmlhttprequest.php * * @return bool */ - public function isXmlHttpRequest(){ } + public function isXmlHttpRequest() {} /** * Retrieve $_SERVER variable @@ -1431,7 +1418,7 @@ public function isXmlHttpRequest(){ } * * @return mixed */ - public function getServer($name = null, $default = null){ } + public function getServer($name = null, $default = null) {} /** * Retrieve $_ENV variable @@ -1443,10 +1430,9 @@ public function getServer($name = null, $default = null){ } * * @return mixed */ - public function getEnv($name = null, $default = null){ } + public function getEnv($name = null, $default = null) {} /** - * * @link https://secure.php.net/manual/en/yaf-request-abstract.getparam.php * * @param string $name @@ -1454,43 +1440,42 @@ public function getEnv($name = null, $default = null){ } * * @return mixed */ - public function getParam($name, $default = null){ } + public function getParam($name, $default = null) {} /** - * * @link https://secure.php.net/manual/en/yaf-request-abstract.getparams.php * * @return array */ - public function getParams(){ } + public function getParams() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getexception.php * * @return Yaf_Exception */ - public function getException(){ } + public function getException() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getmoudlename.php * * @return string */ - public function getModuleName(){ } + public function getModuleName() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getcontrollername.php * * @return string */ - public function getControllerName(){ } + public function getControllerName() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getactionname.php * * @return string */ - public function getActionName(){ } + public function getActionName() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.setparam.php @@ -1500,7 +1485,7 @@ public function getActionName(){ } * * @return Yaf_Request_Abstract|bool */ - public function setParam($name, $value = null){ } + public function setParam($name, $value = null) {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.setmodulename.php @@ -1509,7 +1494,7 @@ public function setParam($name, $value = null){ } * * @return Yaf_Request_Abstract|bool */ - public function setModuleName($module){ } + public function setModuleName($module) {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.setcontrollername.php @@ -1518,7 +1503,7 @@ public function setModuleName($module){ } * * @return Yaf_Request_Abstract|bool */ - public function setControllerName($controller){ } + public function setControllerName($controller) {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.setactionname.php @@ -1527,21 +1512,21 @@ public function setControllerName($controller){ } * * @return Yaf_Request_Abstract|bool */ - public function setActionName($action){ } + public function setActionName($action) {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getmethod.php * * @return string */ - public function getMethod(){ } + public function getMethod() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getlanguage.php * * @return string */ - public function getLanguage(){ } + public function getLanguage() {} /** *

    Set base URI, base URI is used when doing routing, in routing phase request URI is used to route a request, while base URI is used to skip the leading part(base URI) of request URI. That is, if comes a request with request URI a/b/c, then if you set base URI to "a/b", only "/c" will be used in routing phase.

    @@ -1555,21 +1540,21 @@ public function getLanguage(){ } * * @return bool */ - public function setBaseUri($uri){ } + public function setBaseUri($uri) {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getbaseuri.php * * @return string */ - public function getBaseUri(){ } + public function getBaseUri() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getrequesturi.php * * @return string */ - public function getRequestUri(){ } + public function getRequestUri() {} /** * @since 2.1.0 @@ -1577,7 +1562,7 @@ public function getRequestUri(){ } * * @param string $uri request URI */ - public function setRequestUri($uri){ } + public function setRequestUri($uri) {} /** * Set request as dispatched @@ -1586,7 +1571,7 @@ public function setRequestUri($uri){ } * * @return bool */ - public function setDispatched(){ } + public function setDispatched() {} /** * Set request as routed @@ -1595,7 +1580,7 @@ public function setDispatched(){ } * * @return Yaf_Request_Abstract|bool */ - public function setRouted(){ } + public function setRouted() {} } /** @@ -1606,8 +1591,8 @@ public function setRouted(){ } *

    A plugin could be loaded into Yaf by using Yaf_Dispatcher::registerPlugin(), after registered, All the methods which the plugin implemented according to this interface, will be called at the proper time.

    * @link https://secure.php.net/manual/en/class.yaf-plugin-abstract.php */ -abstract class Yaf_Plugin_Abstract { - +abstract class Yaf_Plugin_Abstract +{ /** * This is the earliest hook in Yaf plugin hook system, if a custom plugin implement this method, then it will be called before routing a request. * @@ -1618,7 +1603,7 @@ abstract class Yaf_Plugin_Abstract { * * @return bool true */ - public function routerStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response){ } + public function routerStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {} /** * This hook will be trigged after the route process finished, this hook is usually used for login check. @@ -1630,7 +1615,7 @@ public function routerStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstra * * @return bool true */ - public function routerShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response){ } + public function routerShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.dispatchloopstartup.php @@ -1640,7 +1625,7 @@ public function routerShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstr * * @return bool true */ - public function dispatchLoopStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response){ } + public function dispatchLoopStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {} /** * This is the latest hook in Yaf plugin hook system, if a custom plugin implement this method, then it will be called after the dispatch loop finished. @@ -1652,7 +1637,7 @@ public function dispatchLoopStartup(Yaf_Request_Abstract $request, Yaf_Response_ * * @return bool true */ - public function dispatchLoopShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response){ } + public function dispatchLoopShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.predispatch.php @@ -1662,7 +1647,7 @@ public function dispatchLoopShutdown(Yaf_Request_Abstract $request, Yaf_Response * * @return bool true */ - public function preDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response){ } + public function preDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.postdispatch.php @@ -1672,7 +1657,7 @@ public function preDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract * * @return bool true */ - public function postDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response){ } + public function postDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.preresponse.php @@ -1682,15 +1667,15 @@ public function postDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstrac * * @return bool true */ - public function preResponse(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response){ } + public function preResponse(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {} } /** * @link https://secure.php.net/manual/en/class.yaf-response-abstract.php */ -abstract class Yaf_Response_Abstract { - - const DEFAULT_BODY = "content"; +abstract class Yaf_Response_Abstract +{ + public const DEFAULT_BODY = "content"; /** * @var string */ @@ -1707,22 +1692,22 @@ abstract class Yaf_Response_Abstract { /** * @link https://secure.php.net/manual/en/yaf-response-abstract.construct.php */ - public function __construct(){ } + public function __construct() {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.destruct.php */ - public function __destruct(){ } + public function __destruct() {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.clone.php */ - private function __clone(){ } + private function __clone() {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.tostring.php */ - public function __toString(){ } + public function __toString() {} /** * Send response @@ -1730,7 +1715,7 @@ public function __toString(){ } * * @return void */ - public function response(){ } + public function response() {} /** * Set response header @@ -1742,7 +1727,7 @@ public function response(){ } * * @return bool */ - public function setHeader($name, $value, $replace = false){ } + public function setHeader($name, $value, $replace = false) {} /** * Set content to response @@ -1757,7 +1742,7 @@ public function setHeader($name, $value, $replace = false){ } * * @return bool */ - public function setBody($content, $key = self::DEFAULT_BODY){ } + public function setBody($content, $key = self::DEFAULT_BODY) {} /** * append a content to a exists content block @@ -1772,7 +1757,7 @@ public function setBody($content, $key = self::DEFAULT_BODY){ } * * @return bool */ - public function appendBody($content, $key = self::DEFAULT_BODY){ } + public function appendBody($content, $key = self::DEFAULT_BODY) {} /** * prepend a content to a exists content block @@ -1787,7 +1772,7 @@ public function appendBody($content, $key = self::DEFAULT_BODY){ } * * @return bool */ - public function prependBody($content, $key = self::DEFAULT_BODY){ } + public function prependBody($content, $key = self::DEFAULT_BODY) {} /** * Clear existing content @@ -1801,7 +1786,7 @@ public function prependBody($content, $key = self::DEFAULT_BODY){ } * * @return bool */ - public function clearBody($key = self::DEFAULT_BODY){ } + public function clearBody($key = self::DEFAULT_BODY) {} /** * Retrieve an existing content @@ -1815,7 +1800,7 @@ public function clearBody($key = self::DEFAULT_BODY){ } * * @return mixed */ - public function getBody($key = self::DEFAULT_BODY){ } + public function getBody($key = self::DEFAULT_BODY) {} } /** @@ -1823,8 +1808,8 @@ public function getBody($key = self::DEFAULT_BODY){ } * * @link https://secure.php.net/manual/en/class.yaf-view-interface.php */ -interface Yaf_View_Interface { - +interface Yaf_View_Interface +{ /** * Assign values to View engine, then the value can access directly by name in template. * @@ -1834,7 +1819,7 @@ interface Yaf_View_Interface { * @param string $value * @return bool */ - function assign($name, $value); + public function assign($name, $value); /** * Render a template and output the result immediately. @@ -1845,14 +1830,14 @@ function assign($name, $value); * @param array $tpl_vars * @return bool */ - function display($tpl, array $tpl_vars = null); + public function display($tpl, array $tpl_vars = null); /** * @link https://secure.php.net/manual/en/yaf-view-interface.getscriptpath.php * * @return string */ - function getScriptPath(); + public function getScriptPath(); /** * Render a template and return the result. @@ -1863,7 +1848,7 @@ function getScriptPath(); * @param array $tpl_vars * @return string */ - function render($tpl, array $tpl_vars = null); + public function render($tpl, array $tpl_vars = null); /** * Set the templates base directory, this is usually called by Yaf_Dispatcher @@ -1872,7 +1857,7 @@ function render($tpl, array $tpl_vars = null); * * @param string $template_dir An absolute path to the template directory, by default, Yaf_Dispatcher use application.directory . "/views" as this parameter. */ - function setScriptPath($template_dir); + public function setScriptPath($template_dir); } /** @@ -1880,8 +1865,8 @@ function setScriptPath($template_dir); * * @link https://secure.php.net/manual/en/class.yaf-route-interface.php */ -interface Yaf_Route_Interface { - +interface Yaf_Route_Interface +{ /** *

    Yaf_Route_Interface::route() is the only method that a custom route should implement.


    *

    if this method return TRUE, then the route process will be end. otherwise, Yaf_Router will call next route in the route stack to route request.


    @@ -1893,7 +1878,7 @@ interface Yaf_Route_Interface { * @param Yaf_Request_Abstract $request * @return bool */ - function route(Yaf_Request_Abstract $request); + public function route(Yaf_Request_Abstract $request); /** *

    Yaf_Route_Interface::assemble() - assemble a request


    @@ -1906,36 +1891,27 @@ function route(Yaf_Request_Abstract $request); * @param array $query * @return bool */ - function assemble(array $info, array $query = null); + public function assemble(array $info, array $query = null); } /** * @link https://secure.php.net/manual/en/class.yaf-exception.php */ -class Yaf_Exception extends Exception { - -} - -/** - * - */ -class Yaf_Response_Http extends Yaf_Response_Abstract { +class Yaf_Exception extends Exception {} +class Yaf_Response_Http extends Yaf_Response_Abstract +{ /** * @var int */ protected $_response_code = 0; - /** - * - */ - private function __clone(){ } + private function __clone() {} /** * @return string */ - private function __toString(){ } - + private function __toString() {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.setheader.php @@ -1947,7 +1923,7 @@ private function __toString(){ } * * @return bool */ - public function setHeader($name, $value, $replace = false, $response_code = 0){ } + public function setHeader($name, $value, $replace = false, $response_code = 0) {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.setallheaders.php @@ -1956,7 +1932,7 @@ public function setHeader($name, $value, $replace = false, $response_code = 0){ * * @return bool */ - public function setAllHeaders(array $headers){ } + public function setAllHeaders(array $headers) {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.getheader.php @@ -1965,7 +1941,7 @@ public function setAllHeaders(array $headers){ } * * @return mixed */ - public function getHeader($name = null){ } + public function getHeader($name = null) {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.clearheaders.php @@ -1973,7 +1949,7 @@ public function getHeader($name = null){ } * * @return Yaf_Response_Abstract|false */ - public function clearHeaders(){ } + public function clearHeaders() {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.setredirect.php @@ -1982,7 +1958,7 @@ public function clearHeaders(){ } * * @return bool */ - public function setRedirect($url){ } + public function setRedirect($url) {} /** * send response @@ -1991,30 +1967,24 @@ public function setRedirect($url){ } * * @return bool */ - public function response(){ } + public function response() {} } -/** - * - */ -class Yaf_Response_Cli extends Yaf_Response_Abstract { - - /** - * - */ - private function __clone(){ } +class Yaf_Response_Cli extends Yaf_Response_Abstract +{ + private function __clone() {} /** * @return string */ - private function __toString(){ } + private function __toString() {} } /** * @link https://secure.php.net/manual/en/class.yaf-request-http.php */ -class Yaf_Request_Http extends Yaf_Request_Abstract { - +class Yaf_Request_Http extends Yaf_Request_Abstract +{ /** * Retrieve $_GET variable * @@ -2025,7 +1995,7 @@ class Yaf_Request_Http extends Yaf_Request_Abstract { * * @return mixed */ - public function getQuery($name = null, $default = null){ } + public function getQuery($name = null, $default = null) {} /** * Retrieve $_REQUEST variable @@ -2037,7 +2007,7 @@ public function getQuery($name = null, $default = null){ } * * @return mixed */ - public function getRequest($name = null, $default = null){ } + public function getRequest($name = null, $default = null) {} /** * Retrieve $_POST variable @@ -2049,7 +2019,7 @@ public function getRequest($name = null, $default = null){ } * * @return mixed */ - public function getPost($name = null, $default = null){ } + public function getPost($name = null, $default = null) {} /** * Retrieve $_COOKIE variable @@ -2061,7 +2031,7 @@ public function getPost($name = null, $default = null){ } * * @return mixed */ - public function getCookie($name = null, $default = null){ } + public function getCookie($name = null, $default = null) {} /** * Retrieve $_FILES variable @@ -2073,7 +2043,7 @@ public function getCookie($name = null, $default = null){ } * * @return mixed */ - public function getFiles($name = null, $default = null){ } + public function getFiles($name = null, $default = null) {} /** * Retrieve variable from client, this method will search the name in $_REQUEST params, if the name is not found, then will search in $_POST, $_GET, $_COOKIE, $_SERVER @@ -2085,7 +2055,7 @@ public function getFiles($name = null, $default = null){ } * * @return mixed */ - public function get($name, $default = null){ } + public function get($name, $default = null) {} /** * Check the request whether it is a Ajax Request @@ -2099,29 +2069,28 @@ public function get($name, $default = null){ } * * @return bool */ - public function isXmlHttpRequest(){ } + public function isXmlHttpRequest() {} /** * @link https://secure.php.net/manual/en/yaf-request-http.construct.php * * @param string $request_uri * @param string $base_uri - * */ - public function __construct($request_uri, $base_uri){ } + public function __construct($request_uri, $base_uri) {} /** * @link https://secure.php.net/manual/en/yaf-request-http.clone.php */ - private function __clone(){ } + private function __clone() {} } /** * Yaf_Request_Simple is particularly used for test purpose. ie. simulate a spacial request under CLI mode. * @link https://secure.php.net/manual/en/class.yaf-request-simple.php */ -class Yaf_Request_Simple extends Yaf_Request_Abstract { - +class Yaf_Request_Simple extends Yaf_Request_Abstract +{ /** * Retrieve $_GET variable * @@ -2132,7 +2101,7 @@ class Yaf_Request_Simple extends Yaf_Request_Abstract { * * @return mixed */ - public function getQuery($name = null, $default = null){ } + public function getQuery($name = null, $default = null) {} /** * Retrieve $_REQUEST variable @@ -2144,7 +2113,7 @@ public function getQuery($name = null, $default = null){ } * * @return mixed */ - public function getRequest($name = null, $default = null){ } + public function getRequest($name = null, $default = null) {} /** * Retrieve $_POST variable @@ -2156,7 +2125,7 @@ public function getRequest($name = null, $default = null){ } * * @return mixed */ - public function getPost($name = null, $default = null){ } + public function getPost($name = null, $default = null) {} /** * Retrieve $_Cookie variable @@ -2168,7 +2137,7 @@ public function getPost($name = null, $default = null){ } * * @return mixed */ - public function getCookie($name = null, $default = null){ } + public function getCookie($name = null, $default = null) {} /** * @param mixed $name @@ -2176,7 +2145,7 @@ public function getCookie($name = null, $default = null){ } * * @return array */ - public function getFiles($name = null, $default = null){ } + public function getFiles($name = null, $default = null) {} /** * Retrieve variable from client, this method will search the name in $_REQUEST params, if the name is not found, then will search in $_POST, $_GET, $_COOKIE, $_SERVER @@ -2188,7 +2157,7 @@ public function getFiles($name = null, $default = null){ } * * @return mixed */ - public function get($name, $default = null){ } + public function get($name, $default = null) {} /** * Check the request whether it is a Ajax Request @@ -2202,7 +2171,7 @@ public function get($name, $default = null){ } * * @return bool */ - public function isXmlHttpRequest(){ } + public function isXmlHttpRequest() {} /** * @link https://secure.php.net/manual/en/yaf-request-simple.construct.php @@ -2214,12 +2183,12 @@ public function isXmlHttpRequest(){ } * * @throws Yaf_Exception_TypeError */ - public function __construct($method, $controller, $action, $params = null){ } + public function __construct($method, $controller, $action, $params = null) {} /** * @link https://secure.php.net/manual/en/yaf-request-simple.clone.php */ - private function __clone(){ } + private function __clone() {} } /** @@ -2228,38 +2197,38 @@ private function __clone(){ } *

    Yaf_Config_Ini utilizes the » parse_ini_file() PHP function. Please review this documentation to be aware of its specific behaviors, which propagate to Yaf_Config_Ini, such as how the special values of "TRUE", "FALSE", "yes", "no", and "NULL" are handled.

    * @link https://secure.php.net/manual/en/class.yaf-config-ini.php */ -class Yaf_Config_Ini extends Yaf_Config_Abstract implements Iterator, Traversable, ArrayAccess, Countable { - +class Yaf_Config_Ini extends Yaf_Config_Abstract implements Iterator, Traversable, ArrayAccess, Countable +{ /** * @see Yaf_Config_Abstract::get */ - public function __get($name = null){ } + public function __get($name = null) {} /** * @see Yaf_Config_Abstract::set */ - public function __set($name, $value){ } + public function __set($name, $value) {} /** * @see Yaf_Config_Abstract::get */ - public function get($name = null){ } + public function get($name = null) {} /** * @see Yaf_Config_Abstract::set * @deprecated not_implemented */ - public function set($name, $value){ } + public function set($name, $value) {} /** * @see Yaf_Config_Abstract::toArray */ - public function toArray(){ } + public function toArray() {} /** * @see Yaf_Config_Abstract::readonly */ - public function readonly(){ } + public function readonly() {} /** * @link https://secure.php.net/manual/en/yaf-config-ini.construct.php @@ -2269,165 +2238,164 @@ public function readonly(){ } * * @throws Yaf_Exception_TypeError */ - public function __construct($config_file, $section = null){ } + public function __construct($config_file, $section = null) {} /** * @link https://secure.php.net/manual/en/yaf-config-ini.isset.php * @param string $name */ - public function __isset($name){ } + public function __isset($name) {} /** * @see Countable::count */ - public function count(){ } + public function count() {} /** * @see Iterator::rewind */ - public function rewind(){ } + public function rewind() {} /** * @see Iterator::current */ - public function current(){ } + public function current() {} /** * @see Iterator::next */ - public function next(){ } + public function next() {} /** * @see Iterator::valid */ - public function valid(){ } + public function valid() {} /** * @see Iterator::key */ - public function key(){ } + public function key() {} /** * @see ArrayAccess::offsetUnset * @deprecated not_implemented */ - public function offsetUnset($name){ } + public function offsetUnset($name) {} /** * @see ArrayAccess::offsetGet */ - public function offsetGet($name){ } + public function offsetGet($name) {} /** * @see ArrayAccess::offsetExists */ - public function offsetExists($name){ } + public function offsetExists($name) {} /** * @see ArrayAccess::offsetSet */ - public function offsetSet($name, $value){ } + public function offsetSet($name, $value) {} } /** * @link https://secure.php.net/manual/en/class.yaf-config-simple.php */ -class Yaf_Config_Simple extends Yaf_Config_Abstract implements Iterator, Traversable, ArrayAccess, Countable { - +class Yaf_Config_Simple extends Yaf_Config_Abstract implements Iterator, Traversable, ArrayAccess, Countable +{ /** * @see Yaf_Config_Abstract::get */ - public function __get($name = null){ } + public function __get($name = null) {} /** * @see Yaf_Config_Abstract::set */ - public function __set($name, $value){ } + public function __set($name, $value) {} /** * @see Yaf_Config_Abstract::get */ - public function get($name = null){ } + public function get($name = null) {} /** * @see Yaf_Config_Abstract::set */ - public function set($name, $value){ } + public function set($name, $value) {} /** * @see Yaf_Config_Abstract::toArray */ - public function toArray(){ } + public function toArray() {} /** * @see Yaf_Config_Abstract::readonly */ - public function readonly(){ } + public function readonly() {} /** * @link https://secure.php.net/manual/en/yaf-config-simple.construct.php * * @param array $array * @param bool $readonly - * */ - public function __construct(array $array, $readonly = null){ } + public function __construct(array $array, $readonly = null) {} /** * @link https://secure.php.net/manual/en/yaf-config-simple.isset.php * @param string $name */ - public function __isset($name){ } + public function __isset($name) {} /** * @see Countable::count */ - public function count(){ } + public function count() {} /** * @see Iterator::rewind */ - public function rewind(){ } + public function rewind() {} /** * @see Iterator::current */ - public function current(){ } + public function current() {} /** * @see Iterator::next */ - public function next(){ } + public function next() {} /** * @see Iterator::valid */ - public function valid(){ } + public function valid() {} /** * @see Iterator::key */ - public function key(){ } + public function key() {} /** * @see ArrayAccess::offsetUnset */ - public function offsetUnset($name){ } + public function offsetUnset($name) {} /** * @see ArrayAccess::offsetGet */ - public function offsetGet($name){ } + public function offsetGet($name) {} /** * @see ArrayAccess::offsetExists */ - public function offsetExists($name){ } + public function offsetExists($name) {} /** * @see ArrayAccess::offsetSet */ - public function offsetSet($name, $value){ } + public function offsetSet($name, $value) {} } /** @@ -2443,8 +2411,8 @@ public function offsetSet($name, $value){ } * * @return void|false return FALSE on failure */ -class Yaf_View_Simple implements Yaf_View_Interface { - +class Yaf_View_Simple implements Yaf_View_Interface +{ /** * @var string */ @@ -2469,14 +2437,14 @@ class Yaf_View_Simple implements Yaf_View_Interface { *

    * @throws Yaf_Exception_TypeError */ - final public function __construct($template_dir, array $options = null){ } + final public function __construct($template_dir, array $options = null) {} /** * @link https://secure.php.net/manual/en/yaf-view-simple.isset.php * * @param string $name */ - public function __isset($name){ } + public function __isset($name) {} /** * assign variable to view engine @@ -2487,7 +2455,7 @@ public function __isset($name){ } * @param mixed $value mixed value * @return Yaf_View_Simple */ - public function assign($name, $value = null){ } + public function assign($name, $value = null) {} /** * @link https://secure.php.net/manual/en/yaf-view-simple.render.php @@ -2499,7 +2467,7 @@ public function assign($name, $value = null){ } * * @return string|void */ - public function render($tpl, array $tpl_vars = null){ } + public function render($tpl, array $tpl_vars = null) {} /** *

    Render a template and display the result instantly.

    @@ -2513,7 +2481,7 @@ public function render($tpl, array $tpl_vars = null){ } * * @return bool */ - public function display($tpl, array $tpl_vars = null){ } + public function display($tpl, array $tpl_vars = null) {} /** *

    unlike Yaf_View_Simple::assign(), this method assign a ref value to engine.

    @@ -2524,7 +2492,7 @@ public function display($tpl, array $tpl_vars = null){ } * * @return Yaf_View_Simple */ - public function assignRef($name, &$value){ } + public function assignRef($name, &$value) {} /** * clear assigned variable @@ -2534,7 +2502,7 @@ public function assignRef($name, &$value){ } * * @return Yaf_View_Simple */ - public function clear($name = null){ } + public function clear($name = null) {} /** * @link https://secure.php.net/manual/en/yaf-view-simple.setscriptpath.php @@ -2543,14 +2511,14 @@ public function clear($name = null){ } * * @return Yaf_View_Simple */ - public function setScriptPath($template_dir){ } + public function setScriptPath($template_dir) {} /** * @link https://secure.php.net/manual/en/yaf-view-simple.getscriptpath.php * * @return string */ - public function getScriptPath(){ } + public function getScriptPath() {} /** *

    Retrieve assigned variable

    @@ -2565,7 +2533,7 @@ public function getScriptPath(){ } * * @return mixed */ - public function __get($name = null){ } + public function __get($name = null) {} /** *

    This is a alternative and easier way to Yaf_View_Simple::assign().

    @@ -2575,7 +2543,7 @@ public function __get($name = null){ } * @param string $name A string value name. * @param mixed $value mixed value */ - public function __set($name, $value = null){ } + public function __set($name, $value = null) {} } /** @@ -2587,10 +2555,9 @@ public function __set($name, $value = null){ } *

    it is unnecessary to instance a Yaf_Route_Static, also unnecessary to add it into Yaf_Router's routes stack, since there is always be one in Yaf_Router's routes stack, and always be called at the last time.

    * * @link https://secure.php.net/manual/en/class.yaf-route-static.php - * */ -class Yaf_Route_Static implements Yaf_Route_Interface { - +class Yaf_Route_Static implements Yaf_Route_Interface +{ /** * @deprecated not_implemented * @link https://secure.php.net/manual/en/yaf-route-static.match.php @@ -2599,7 +2566,7 @@ class Yaf_Route_Static implements Yaf_Route_Interface { * * @return bool */ - public function match($uri){ } + public function match($uri) {} /** * @link https://secure.php.net/manual/en/yaf-route-static.route.php @@ -2608,7 +2575,7 @@ public function match($uri){ } * * @return bool always TRUE */ - public function route(Yaf_Request_Abstract $request){ } + public function route(Yaf_Request_Abstract $request) {} /** *

    Yaf_Route_Static::assemble() - Assemble a url

    @@ -2619,7 +2586,7 @@ public function route(Yaf_Request_Abstract $request){ } * @param array $query * @return bool */ - public function assemble(array $info, array $query = null){ } + public function assemble(array $info, array $query = null) {} } /** @@ -2631,8 +2598,8 @@ public function assemble(array $info, array $query = null){ } * * @link https://secure.php.net/manual/en/class.yaf-route-simple.php */ -final class Yaf_Route_Simple implements Yaf_Route_Interface { - +final class Yaf_Route_Simple implements Yaf_Route_Interface +{ /** * @var string */ @@ -2657,7 +2624,7 @@ final class Yaf_Route_Simple implements Yaf_Route_Interface { * * @throws Yaf_Exception_TypeError */ - public function __construct($module_name, $controller_name, $action_name){ } + public function __construct($module_name, $controller_name, $action_name) {} /** *

    see Yaf_Route_Simple::__construct()

    @@ -2668,7 +2635,7 @@ public function __construct($module_name, $controller_name, $action_name){ } * * @return bool always TRUE */ - public function route(Yaf_Request_Abstract $request){ } + public function route(Yaf_Request_Abstract $request) {} /** *

    Yaf_Route_Simple::assemble() - Assemble a url

    @@ -2679,14 +2646,14 @@ public function route(Yaf_Request_Abstract $request){ } * @param array $query * @return bool */ - public function assemble(array $info, array $query = null){ } + public function assemble(array $info, array $query = null) {} } /** * @link https://secure.php.net/manual/en/class.yaf-route-supervar.php */ -final class Yaf_Route_Supervar implements Yaf_Route_Interface { - +final class Yaf_Route_Supervar implements Yaf_Route_Interface +{ /** * @var string */ @@ -2701,7 +2668,7 @@ final class Yaf_Route_Supervar implements Yaf_Route_Interface { * * @throws Yaf_Exception_TypeError */ - public function __construct($supervar_name){ } + public function __construct($supervar_name) {} /** * @link https://secure.php.net/manual/en/yaf-route-supervar.route.php @@ -2710,7 +2677,7 @@ public function __construct($supervar_name){ } * * @return bool If there is a key(which was defined in Yaf_Route_Supervar::__construct()) in $_GET, return TRUE. otherwise return FALSE. */ - public function route(Yaf_Request_Abstract $request){ } + public function route(Yaf_Request_Abstract $request) {} /** *

    Yaf_Route_Supervar::assemble() - Assemble a url

    @@ -2721,7 +2688,7 @@ public function route(Yaf_Request_Abstract $request){ } * @param array $query * @return bool */ - public function assemble(array $info, array $query = null){ } + public function assemble(array $info, array $query = null) {} } /** @@ -2729,8 +2696,8 @@ public function assemble(array $info, array $query = null){ } * * @link https://secure.php.net/manual/en/class.yaf-route-rewrite.php */ -final class Yaf_Route_Rewrite extends Yaf_Router implements Yaf_Route_Interface { - +final class Yaf_Route_Rewrite extends Yaf_Router implements Yaf_Route_Interface +{ /** * @var string */ @@ -2756,7 +2723,7 @@ final class Yaf_Route_Rewrite extends Yaf_Router implements Yaf_Route_Interface * * @throws Yaf_Exception_TypeError */ - public function __construct($match, array $route, array $verify = null, $reverse = null){ } + public function __construct($match, array $route, array $verify = null, $reverse = null) {} /** * @link https://secure.php.net/manual/en/yaf-route-rewrite.route.php @@ -2765,7 +2732,7 @@ public function __construct($match, array $route, array $verify = null, $reverse * * @return bool */ - public function route(Yaf_Request_Abstract $request){ } + public function route(Yaf_Request_Abstract $request) {} /** *

    Yaf_Route_Rewrite::assemble() - Assemble a url

    @@ -2776,7 +2743,7 @@ public function route(Yaf_Request_Abstract $request){ } * @param array $query * @return bool */ - public function assemble(array $info, array $query = null){ } + public function assemble(array $info, array $query = null) {} } /** @@ -2784,8 +2751,8 @@ public function assemble(array $info, array $query = null){ } * * @link https://secure.php.net/manual/en/class.yaf-route-regex.php */ -final class Yaf_Route_Regex extends Yaf_Router implements Yaf_Route_Interface { - +final class Yaf_Route_Regex extends Yaf_Router implements Yaf_Route_Interface +{ /** * @var string */ @@ -2820,7 +2787,7 @@ final class Yaf_Route_Regex extends Yaf_Router implements Yaf_Route_Interface { * * @throws Yaf_Exception_TypeError */ - public function __construct($match, array $route, array $map = null, array $verify = null, $reverse = null){ } + public function __construct($match, array $route, array $map = null, array $verify = null, $reverse = null) {} /** * Route a incoming request. @@ -2831,7 +2798,7 @@ public function __construct($match, array $route, array $map = null, array $veri * * @return bool If the pattern given by the first parameter of Yaf_Route_Regex::_construct() matches the request uri, return TRUE, otherwise return FALSE. */ - public function route(Yaf_Request_Abstract $request){ } + public function route(Yaf_Request_Abstract $request) {} /** *

    Yaf_Route_Regex::assemble() - Assemble a url

    @@ -2842,7 +2809,7 @@ public function route(Yaf_Request_Abstract $request){ } * @param array $query * @return bool */ - public function assemble(array $info, array $query = null){ } + public function assemble(array $info, array $query = null) {} } /** @@ -2852,8 +2819,8 @@ public function assemble(array $info, array $query = null){ } * * @link https://secure.php.net/manual/en/class.yaf-route-map.php */ -final class Yaf_Route_Map implements Yaf_Route_Interface { - +final class Yaf_Route_Map implements Yaf_Route_Interface +{ /** * @var string */ @@ -2869,7 +2836,7 @@ final class Yaf_Route_Map implements Yaf_Route_Interface { * @param bool $controller_prefer Whether the result should considering as controller or action * @param string $delimiter */ - public function __construct($controller_prefer = false, $delimiter = ''){ } + public function __construct($controller_prefer = false, $delimiter = '') {} /** * @link https://secure.php.net/manual/en/yaf-route-map.route.php @@ -2878,7 +2845,7 @@ public function __construct($controller_prefer = false, $delimiter = ''){ } * * @return bool */ - public function route(Yaf_Request_Abstract $request){ } + public function route(Yaf_Request_Abstract $request) {} /** *

    Yaf_Route_Map::assemble() - Assemble a url

    @@ -2889,68 +2856,50 @@ public function route(Yaf_Request_Abstract $request){ } * @param array $query * @return bool */ - public function assemble(array $info, array $query = null){ } + public function assemble(array $info, array $query = null) {} } /** * @link https://secure.php.net/manual/en/class.yaf-exception-typeerror.php */ -class Yaf_Exception_TypeError extends Yaf_Exception { - -} +class Yaf_Exception_TypeError extends Yaf_Exception {} /** * @link https://secure.php.net/manual/en/class.yaf-exception-startuperror.php */ -class Yaf_Exception_StartupError extends Yaf_Exception { - -} +class Yaf_Exception_StartupError extends Yaf_Exception {} /** * @link https://secure.php.net/manual/en/class.yaf-exception-routefaild.php */ -class Yaf_Exception_RouterFailed extends Yaf_Exception { - -} +class Yaf_Exception_RouterFailed extends Yaf_Exception {} /** * @link https://secure.php.net/manual/en/class.yaf-exception-dispatchfaild.php */ -class Yaf_Exception_DispatchFailed extends Yaf_Exception { - -} +class Yaf_Exception_DispatchFailed extends Yaf_Exception {} /** * @link https://secure.php.net/manual/en/class.yaf-exception-loadfaild.php */ -class Yaf_Exception_LoadFailed extends Yaf_Exception { - -} +class Yaf_Exception_LoadFailed extends Yaf_Exception {} /** * @link https://secure.php.net/manual/en/class.yaf-exception-loadfaild-module.php */ -class Yaf_Exception_LoadFailed_Module extends Yaf_Exception_LoadFailed { - -} +class Yaf_Exception_LoadFailed_Module extends Yaf_Exception_LoadFailed {} /** * @link https://secure.php.net/manual/en/class.yaf-exception-loadfaild-controller.php */ -class Yaf_Exception_LoadFailed_Controller extends Yaf_Exception_LoadFailed { - -} +class Yaf_Exception_LoadFailed_Controller extends Yaf_Exception_LoadFailed {} /** * @link https://secure.php.net/manual/en/class.yaf-exception-loadfaild-action.php */ -class Yaf_Exception_LoadFailed_Action extends Yaf_Exception_LoadFailed { - -} +class Yaf_Exception_LoadFailed_Action extends Yaf_Exception_LoadFailed {} /** * @link https://secure.php.net/manual/en/class.yaf-exception-loadfaild-view.php */ -class Yaf_Exception_LoadFailed_View extends Yaf_Exception_LoadFailed { - -} +class Yaf_Exception_LoadFailed_View extends Yaf_Exception_LoadFailed {} diff --git a/yaf/yaf_namespace.php b/yaf/yaf_namespace.php index 811f38471..36ce276ae 100644 --- a/yaf/yaf_namespace.php +++ b/yaf/yaf_namespace.php @@ -1,7 +1,7 @@ * Note: @@ -31,7 +32,6 @@ */ final class Application { - /** * @var \Yaf\Application */ @@ -114,9 +114,7 @@ final class Application * * @throws \Yaf\Exception\TypeError|\Yaf\Exception\StartupError */ - public function __construct($config, $envrion = null) - { - } + public function __construct($config, $envrion = null) {} /** * Run a \Yaf\Application, let the \Yaf\Application accept a request, and route the request, dispatch to controller/action, and render response. @@ -125,9 +123,7 @@ public function __construct($config, $envrion = null) * @link https://secure.php.net/manual/en/yaf-application.run.php * @throws \Yaf\Exception\StartupError */ - public function run() - { - } + public function run() {} /** * This method is typically used to run \Yaf\Application in a crontab work. @@ -138,9 +134,7 @@ public function run() * @param callable $entry a valid callback * @param string ...$_ parameters will pass to the callback */ - public function execute(callable $entry, ...$_) - { - } + public function execute(callable $entry, ...$_) {} /** * Retrieve the \Yaf\Application instance, alternatively, we also could use \Yaf\Dispatcher::getApplication(). @@ -149,9 +143,7 @@ public function execute(callable $entry, ...$_) * * @return \Yaf\Application|null an \Yaf\Application instance, if no \Yaf\Application initialized before, NULL will be returned. */ - public static function app() - { - } + public static function app() {} /** * Retrieve environ which was defined in yaf.environ which has a default value "product". @@ -160,9 +152,7 @@ public static function app() * * @return string */ - public function environ() - { - } + public function environ() {} /** * Run a Bootstrap, all the methods defined in the Bootstrap and named with prefix "_init" will be called according to their declaration order, if the parameter bootstrap is not supplied, Yaf will look for a Bootstrap under application.directory. @@ -172,18 +162,14 @@ public function environ() * @param \Yaf\Bootstrap_Abstract $bootstrap A \Yaf\Bootstrap_Abstract instance * @return \Yaf\Application */ - public function bootstrap(\Yaf\Bootstrap_Abstract $bootstrap = null) - { - } + public function bootstrap(Yaf\Bootstrap_Abstract $bootstrap = null) {} /** * @link https://secure.php.net/manual/en/yaf-application.getconfig.php * * @return \Yaf\Config_Abstract */ - public function getConfig() - { - } + public function getConfig() {} /** * Get the modules list defined in config, if no one defined, there will always be a module named "Index". @@ -192,18 +178,14 @@ public function getConfig() * * @return array */ - public function getModules() - { - } + public function getModules() {} /** * @link https://secure.php.net/manual/en/yaf-application.getdispatcher.php * * @return \Yaf\Dispatcher */ - public function getDispatcher() - { - } + public function getDispatcher() {} /** * Change the application directory @@ -214,9 +196,7 @@ public function getDispatcher() * @param string $directory * @return \Yaf\Application */ - public function setAppDirectory($directory) - { - } + public function setAppDirectory($directory) {} /** * @since 2.1.4 @@ -224,9 +204,7 @@ public function setAppDirectory($directory) * * @return string */ - public function getAppDirectory() - { - } + public function getAppDirectory() {} /** * @since 2.1.2 @@ -234,9 +212,7 @@ public function getAppDirectory() * * @return int */ - public function getLastErrorNo() - { - } + public function getLastErrorNo() {} /** * @since 2.1.2 @@ -244,50 +220,33 @@ public function getLastErrorNo() * * @return string */ - public function getLastErrorMsg() - { - } + public function getLastErrorMsg() {} /** - * * @since 2.1.2 * @link https://secure.php.net/manual/en/yaf-application.clearlasterror.php */ - public function clearLastError() - { - } + public function clearLastError() {} /** - * * @link https://secure.php.net/manual/en/yaf-application.destruct.php */ - public function __destruct() - { - } + public function __destruct() {} /** - * * @link https://secure.php.net/manual/en/yaf-application.clone.php */ - private function __clone() - { - } + private function __clone() {} /** - * * @link https://secure.php.net/manual/en/yaf-application.sleep.php */ - private function __sleep() - { - } + private function __sleep() {} /** - * * @link https://secure.php.net/manual/en/yaf-application.wakeup.php */ - private function __wakeup() - { - } + private function __wakeup() {} }/** *

    \Yaf\Dispatcher purpose is to initialize the request environment, route the incoming request, and then dispatch any discovered actions; it aggregates any responses and returns them when the process is complete.


    *

    \Yaf\Dispatcher also implements the Singleton pattern, meaning only a single instance of it may be available at any given time. This allows it to also act as a registry on which the other objects in the dispatch process may draw.

    @@ -296,7 +255,6 @@ private function __wakeup() */ final class Dispatcher { - /** * @var \Yaf\Dispatcher */ @@ -345,30 +303,22 @@ final class Dispatcher /** * @link https://secure.php.net/manual/en/yaf-dispatcher.construct.php */ - private function __construct() - { - } + private function __construct() {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.clone.php */ - private function __clone() - { - } + private function __clone() {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.sleep.php */ - private function __sleep() - { - } + private function __sleep() {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.wakeup.php */ - private function __wakeup() - { - } + private function __wakeup() {} /** * enable view rendering @@ -377,9 +327,7 @@ private function __wakeup() * * @return \Yaf\Dispatcher */ - public function enableView() - { - } + public function enableView() {} /** *

    disable view engine, used in some app that user will output by himself


    @@ -390,9 +338,7 @@ public function enableView() * * @return bool */ - public function disableView() - { - } + public function disableView() {} /** * Initialize view and return it @@ -403,9 +349,7 @@ public function disableView() * @param array $options * @return \Yaf\View_Interface */ - public function initView($templates_dir, array $options = null) - { - } + public function initView($templates_dir, array $options = null) {} /** * This method provides a solution for that if you want use a custom view engine instead of \Yaf\View\Simple @@ -415,20 +359,15 @@ public function initView($templates_dir, array $options = null) * @param \Yaf\View_Interface $view A \Yaf\View_Interface instance * @return \Yaf\Dispatcher */ - public function setView(\Yaf\View_Interface $view) - { - } + public function setView(Yaf\View_Interface $view) {} /** - * * @link https://secure.php.net/manual/en/yaf-dispatcher.setrequest.php * * @param \Yaf\Request_Abstract $request * @return \Yaf\Dispatcher */ - public function setRequest(\Yaf\Request_Abstract $request) - { - } + public function setRequest(Yaf\Request_Abstract $request) {} /** * Retrieve the \Yaf\Application instance. same as \Yaf\Application::app(). @@ -436,27 +375,21 @@ public function setRequest(\Yaf\Request_Abstract $request) * @link https://secure.php.net/manual/en/yaf-dispatcher.getapplication.php * @return \Yaf\Application */ - public function getApplication() - { - } + public function getApplication() {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.getrouter.php * * @return \Yaf\Router */ - public function getRouter() - { - } + public function getRouter() {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.getrequest.php * * @return \Yaf\Request_Abstract */ - public function getRequest() - { - } + public function getRequest() {} /** *

    Set error handler for Yaf. when application.dispatcher.throwException is off, Yaf will trigger catch-able error while unexpected errors occurred.


    @@ -469,9 +402,7 @@ public function getRequest() * * @return \Yaf\Dispatcher */ - public function setErrorHandler(callable $callback, $error_types) - { - } + public function setErrorHandler(callable $callback, $error_types) {} /** * Change default module name @@ -481,9 +412,7 @@ public function setErrorHandler(callable $callback, $error_types) * @param string $module * @return \Yaf\Dispatcher */ - public function setDefaultModule($module) - { - } + public function setDefaultModule($module) {} /** * Change default controller name @@ -493,9 +422,7 @@ public function setDefaultModule($module) * @param string $controller * @return \Yaf\Dispatcher */ - public function setDefaultController($controller) - { - } + public function setDefaultController($controller) {} /** * Change default action name @@ -505,9 +432,7 @@ public function setDefaultController($controller) * @param string $action * @return \Yaf\Dispatcher */ - public function setDefaultAction($action) - { - } + public function setDefaultAction($action) {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.returnresponse.php @@ -515,9 +440,7 @@ public function setDefaultAction($action) * @param bool $flag * @return \Yaf\Dispatcher */ - public function returnResponse($flag) - { - } + public function returnResponse($flag) {} /** *

    \Yaf\Dispatcher will render automatically after dispatches an incoming request, you can prevent the rendering by calling this method with $flag TRUE


    @@ -529,9 +452,7 @@ public function returnResponse($flag) * @param bool $flag since 2.2.0, if this parameter is not given, then the current state will be set * @return \Yaf\Dispatcher */ - public function autoRender($flag = null) - { - } + public function autoRender($flag = null) {} /** * Switch on/off the instant flushing @@ -541,18 +462,14 @@ public function autoRender($flag = null) * @param bool $flag since 2.2.0, if this parameter is not given, then the current state will be set * @return \Yaf\Dispatcher */ - public function flushInstantly($flag = null) - { - } + public function flushInstantly($flag = null) {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.getinstance.php * * @return \Yaf\Dispatcher */ - public static function getInstance() - { - } + public static function getInstance() {} /** *

    This method does the heavy work of the \Yaf\Dispatcher. It take a request object.


    @@ -577,9 +494,7 @@ public static function getInstance() * * @return \Yaf\Response_Abstract */ - public function dispatch(\Yaf\Request_Abstract $request) - { - } + public function dispatch(Yaf\Request_Abstract $request) {} /** *

    Switch on/off exception throwing while unexpected error occurring. When this is on, Yaf will throwing exceptions instead of triggering catchable errors.


    @@ -590,9 +505,7 @@ public function dispatch(\Yaf\Request_Abstract $request) * @param bool $flag * @return \Yaf\Dispatcher */ - public function throwException($flag = null) - { - } + public function throwException($flag = null) {} /** *

    While the application.dispatcher.throwException is On(you can also calling to \Yaf\Dispatcher::throwException(TRUE) to enable it), Yaf will throw \Exception whe error occurs instead of trigger error.


    @@ -603,9 +516,7 @@ public function throwException($flag = null) * @param bool $flag * @return \Yaf\Dispatcher */ - public function catchException($flag = null) - { - } + public function catchException($flag = null) {} /** * Register a plugin(see \Yaf\Plugin_Abstract). Generally, we register plugins in Bootstrap(see \Yaf\Bootstrap_Abstract). @@ -615,9 +526,7 @@ public function catchException($flag = null) * @param \Yaf\Plugin_Abstract $plugin * @return \Yaf\Dispatcher */ - public function registerPlugin(\Yaf\Plugin_Abstract $plugin) - { - } + public function registerPlugin(Yaf\Plugin_Abstract $plugin) {} }/** *

    \Yaf\Loader introduces a comprehensive autoloading solution for Yaf.

    *
    @@ -630,11 +539,9 @@ public function registerPlugin(\Yaf\Plugin_Abstract $plugin) *
    *

    If you want \Yaf\Loader search some classes(libraries) in the local class directory(which is defined in application.ini, and by default, it is application.directory . "/library"), you should register the class prefix using the \Yaf\Loader::registerLocalNameSpace()

    * @link https://secure.php.net/manual/en/class.yaf-loader.php - * */ class Loader { - /** * @var string */ @@ -656,30 +563,22 @@ class Loader /** * @link https://secure.php.net/manual/en/yaf-loader.construct.php */ - private function __construct() - { - } + private function __construct() {} /** * @link https://secure.php.net/manual/en/yaf-loader.clone.php */ - private function __clone() - { - } + private function __clone() {} /** * @link https://secure.php.net/manual/en/yaf-loader.sleep.php */ - private function __sleep() - { - } + private function __sleep() {} /** * @link https://secure.php.net/manual/en/yaf-loader.wakeup.php */ - private function __wakeup() - { - } + private function __wakeup() {} /** * @link https://secure.php.net/manual/en/yaf-loader.autoload.php @@ -688,9 +587,7 @@ private function __wakeup() * * @return bool */ - public function autoload($class_name) - { - } + public function autoload($class_name) {} /** * @link https://secure.php.net/manual/en/yaf-loader.getinstance.php @@ -700,9 +597,7 @@ public function autoload($class_name) * * @return \Yaf\Loader */ - public static function getInstance($local_library_path = null, $global_library_path = null) - { - } + public static function getInstance($local_library_path = null, $global_library_path = null) {} /** *

    Register local class prefix name, \Yaf\Loader search classes in two library directories, the one is configured via application.library.directory(in application.ini) which is called local library directory; the other is configured via yaf.library (in php.ini) which is called global library directory, since it can be shared by many applications in the same server.

    @@ -717,25 +612,19 @@ public static function getInstance($local_library_path = null, $global_library_p * * @return bool */ - public function registerLocalNamespace($name_prefix) - { - } + public function registerLocalNamespace($name_prefix) {} /** * @link https://secure.php.net/manual/en/yaf-loader.getlocalnamespace.php * * @return string */ - public function getLocalNamespace() - { - } + public function getLocalNamespace() {} /** * @link https://secure.php.net/manual/en/yaf-loader.clearlocalnamespace.php */ - public function clearLocalNamespace() - { - } + public function clearLocalNamespace() {} /** * @link https://secure.php.net/manual/en/yaf-loader.islocalname.php @@ -744,9 +633,7 @@ public function clearLocalNamespace() * * @return bool */ - public function isLocalName($class_name) - { - } + public function isLocalName($class_name) {} /** * @link https://secure.php.net/manual/en/yaf-loader.import.php @@ -755,9 +642,7 @@ public function isLocalName($class_name) * * @return bool */ - public static function import($file) - { - } + public static function import($file) {} /** * @since 2.1.4 @@ -768,9 +653,7 @@ public static function import($file) * * @return \Yaf\Loader */ - public function setLibraryPath($directory, $global = false) - { - } + public function setLibraryPath($directory, $global = false) {} /** * @since 2.1.4 @@ -780,16 +663,13 @@ public function setLibraryPath($directory, $global = false) * * @return string */ - public function getLibraryPath($is_global = false) - { - } + public function getLibraryPath($is_global = false) {} }/** *

    All methods of \Yaf\Registry declared as static, making it universally accessible. This provides the ability to get or set any custom data from anyway in your code as necessary.

    * @link https://secure.php.net/manual/en/class.yaf-registry.php */ final class Registry { - /** * @var \Yaf\Registry */ @@ -802,16 +682,12 @@ final class Registry /** * @link https://secure.php.net/manual/en/yaf-registry.construct.php */ - private function __construct() - { - } + private function __construct() {} /** * @link https://secure.php.net/manual/en/yaf-registry.clone.php */ - private function __clone() - { - } + private function __clone() {} /** * Retrieve an item from registry @@ -822,9 +698,7 @@ private function __clone() * * @return mixed */ - public static function get($name) - { - } + public static function get($name) {} /** * Check whether an item exists @@ -835,9 +709,7 @@ public static function get($name) * * @return bool */ - public static function has($name) - { - } + public static function has($name) {} /** * @link https://secure.php.net/manual/en/yaf-registry.set.php @@ -847,9 +719,7 @@ public static function has($name) * * @return bool */ - public static function set($name, $value) - { - } + public static function set($name, $value) {} /** * @link https://secure.php.net/manual/en/yaf-registry.del.php @@ -858,16 +728,13 @@ public static function set($name, $value) * * @return void|bool */ - public static function del($name) - { - } + public static function del($name) {} }/** * @link https://secure.php.net/manual/en/class.yaf-session.php * @version 2.2.9 */ final class Session implements \Iterator, \Traversable, \ArrayAccess, \Countable { - /** * @var \Yaf\Session */ @@ -884,48 +751,36 @@ final class Session implements \Iterator, \Traversable, \ArrayAccess, \Countable /** * @link https://secure.php.net/manual/en/yaf-session.construct.php */ - private function __construct() - { - } + private function __construct() {} /** * @link https://secure.php.net/manual/en/yaf-session.clone.php */ - private function __clone() - { - } + private function __clone() {} /** * @link https://secure.php.net/manual/en/yaf-session.sleep.php */ - private function __sleep() - { - } + private function __sleep() {} /** * @link https://secure.php.net/manual/en/yaf-session.wakeup.php */ - private function __wakeup() - { - } + private function __wakeup() {} /** * @link https://secure.php.net/manual/en/yaf-session.getinstance.php * * @return \Yaf\Session */ - public static function getInstance() - { - } + public static function getInstance() {} /** * @link https://secure.php.net/manual/en/yaf-session.start.php * * @return \Yaf\Session */ - public function start() - { - } + public function start() {} /** * @link https://secure.php.net/manual/en/yaf-session.get.php @@ -934,9 +789,7 @@ public function start() * * @return mixed */ - public function get($name) - { - } + public function get($name) {} /** * @link https://secure.php.net/manual/en/yaf-session.has.php @@ -945,9 +798,7 @@ public function get($name) * * @return bool */ - public function has($name) - { - } + public function has($name) {} /** * @link https://secure.php.net/manual/en/yaf-session.set.php @@ -957,9 +808,7 @@ public function has($name) * * @return \Yaf\Session|false return FALSE on failure */ - public function set($name, $value) - { - } + public function set($name, $value) {} /** * @link https://secure.php.net/manual/en/yaf-session.del.php @@ -968,107 +817,77 @@ public function set($name, $value) * * @return \Yaf\Session|false return FALSE on failure */ - public function del($name) - { - } + public function del($name) {} /** * @see \Countable::count */ - public function count() - { - } + public function count() {} /** * @see \Iterator::rewind */ - public function rewind() - { - } + public function rewind() {} /** * @see \Iterator::current */ - public function current() - { - } + public function current() {} /** * @see \Iterator::next */ - public function next() - { - } + public function next() {} /** * @see \Iterator::valid */ - public function valid() - { - } + public function valid() {} /** * @see \Iterator::key */ - public function key() - { - } + public function key() {} /** * @see \ArrayAccess::offsetUnset */ - public function offsetUnset($name) - { - } + public function offsetUnset($name) {} /** * @see \ArrayAccess::offsetGet */ - public function offsetGet($name) - { - } + public function offsetGet($name) {} /** * @see \ArrayAccess::offsetExists */ - public function offsetExists($name) - { - } + public function offsetExists($name) {} /** * @see \ArrayAccess::offsetSet */ - public function offsetSet($name, $value) - { - } + public function offsetSet($name, $value) {} /** * @see \Yaf\Session::get() */ - public function __get($name) - { - } + public function __get($name) {} /** * @see \Yaf\Session::has() */ - public function __isset($name) - { - } + public function __isset($name) {} /** * @see \Yaf\Session::set() */ - public function __set($name, $value) - { - } + public function __set($name, $value) {} /** * @see \Yaf\Session::del() */ - public function __unset($name) - { - } + public function __unset($name) {} }/** *

    \Yaf\Router is the standard framework router. Routing is the process of taking a URI endpoint (that part of the URI which comes after the base URI: see \Yaf\Request_Abstract::setBaseUri()) and decomposing it into parameters to determine which module, controller, and action of that controller should receive the request. This values of the module, controller, action and other parameters are packaged into a \Yaf\Request_Abstract object which is then processed by \Yaf\Dispatcher. Routing occurs only once: when the request is initially received and before the first controller is dispatched. \Yaf\Router is designed to allow for mod_rewrite-like functionality using pure PHP structures. It is very loosely based on Ruby on Rails routing and does not require any prior knowledge of webserver URL rewriting

    *
    @@ -1084,7 +903,6 @@ public function __unset($name) */ class Router { - /** * @var \Yaf\Route_Interface[] registered routes stack */ @@ -1097,9 +915,7 @@ class Router /** * @link https://secure.php.net/manual/en/yaf-router.construct.php */ - public function __construct() - { - } + public function __construct() {} /** *

    by default, \Yaf\Router using a \Yaf\Route_Static as its default route. you can add new routes into router's route stack by calling this method.

    @@ -1113,9 +929,7 @@ public function __construct() * * @return \Yaf\Router|false return FALSE on failure */ - public function addRoute($name, \Yaf\Route_Interface $route) - { - } + public function addRoute($name, Yaf\Route_Interface $route) {} /** *

    Add routes defined by configs into \Yaf\Router's route stack

    @@ -1126,9 +940,7 @@ public function addRoute($name, \Yaf\Route_Interface $route) * * @return \Yaf\Router|false return FALSE on failure */ - public function addConfig(\Yaf\Config_Abstract $config) - { - } + public function addConfig(Yaf\Config_Abstract $config) {} /** * @link https://secure.php.net/manual/en/yaf-router.route.php @@ -1137,9 +949,7 @@ public function addConfig(\Yaf\Config_Abstract $config) * * @return \Yaf\Router|false return FALSE on failure */ - public function route(\Yaf\Request_Abstract $request) - { - } + public function route(Yaf\Request_Abstract $request) {} /** *

    Retrieve a route by name, see also \Yaf\Router::getCurrentRoute()

    @@ -1150,18 +960,14 @@ public function route(\Yaf\Request_Abstract $request) * * @return \Yaf\Route_Interface */ - public function getRoute($name) - { - } + public function getRoute($name) {} /** * @link https://secure.php.net/manual/en/yaf-router.getroutes.php * * @return \Yaf\Route_Interface[] */ - public function getRoutes() - { - } + public function getRoutes() {} /** *

    Get the name of the route which is effective in the route process.

    @@ -1173,9 +979,7 @@ public function getRoutes() * * @return string the name of the effective route. */ - public function getCurrentRoute() - { - } + public function getCurrentRoute() {} }/** *

    Bootstrap is a mechanism used to do some initial config before a Application run.

    *

    User may define their own Bootstrap class by inheriting \Yaf\Bootstrap_Abstract

    @@ -1183,9 +987,7 @@ public function getCurrentRoute() * * @link https://secure.php.net/manual/en/class.yaf-bootstrap-abstract.php */ -abstract class Bootstrap_Abstract -{ -}/** +abstract class Bootstrap_Abstract {}/** *

    \Yaf\Controller_Abstract is the heart of Yaf's system. MVC stands for Model-View-Controller and is a design pattern targeted at separating application logic from display logic.

    *
    *

    Every custom controller shall inherit \Yaf\Controller_Abstract.

    @@ -1203,7 +1005,6 @@ abstract class Bootstrap_Abstract */ abstract class Controller_Abstract { - /** * @see \Yaf\Action_Abstract * @var array You can also define a action method in a separate PHP script by using this property and \Yaf\Action_Abstract. @@ -1242,9 +1043,7 @@ abstract class Controller_Abstract * * @return string */ - protected function render($tpl, array $parameters = null) - { - } + protected function render($tpl, array $parameters = null) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.display.php @@ -1254,9 +1053,7 @@ protected function render($tpl, array $parameters = null) * * @return bool */ - protected function display($tpl, array $parameters = null) - { - } + protected function display($tpl, array $parameters = null) {} /** * retrieve current request object @@ -1265,9 +1062,7 @@ protected function display($tpl, array $parameters = null) * * @return \Yaf\Request_Abstract */ - public function getRequest() - { - } + public function getRequest() {} /** * retrieve current response object @@ -1276,9 +1071,7 @@ public function getRequest() * * @return \Yaf\Response_Abstract */ - public function getResponse() - { - } + public function getResponse() {} /** * get the controller's module name @@ -1287,9 +1080,7 @@ public function getResponse() * * @return string */ - public function getModuleName() - { - } + public function getModuleName() {} /** * retrieve view engine @@ -1298,9 +1089,7 @@ public function getModuleName() * * @return \Yaf\View_Interface */ - public function getView() - { - } + public function getView() {} /** * @deprecated not_implemented @@ -1310,9 +1099,7 @@ public function getView() * * @return \Yaf\Response_Abstract */ - public function initView(array $options = null) - { - } + public function initView(array $options = null) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.setviewpath.php @@ -1321,18 +1108,14 @@ public function initView(array $options = null) * * @return bool */ - public function setViewpath($view_directory) - { - } + public function setViewpath($view_directory) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.getviewpath.php * * @return string */ - public function getViewpath() - { - } + public function getViewpath() {} /** *

    forward current execution process to other action.

    @@ -1354,9 +1137,7 @@ public function getViewpath() * * @return bool return FALSE on failure */ - public function forward($module, $controller = null, $action = null, array $parameters = null) - { - } + public function forward($module, $controller = null, $action = null, array $parameters = null) {} /** * redirect to a URL by sending a 302 header @@ -1367,18 +1148,14 @@ public function forward($module, $controller = null, $action = null, array $para * * @return bool */ - public function redirect($url) - { - } + public function redirect($url) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.getinvokeargs.php * * @return array */ - public function getInvokeArgs() - { - } + public function getInvokeArgs() {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.getinvokearg.php @@ -1386,19 +1163,14 @@ public function getInvokeArgs() * * @return mixed|null */ - public function getInvokeArg($name) - { - } + public function getInvokeArg($name) {} /** *

    \Yaf\Controller_Abstract::__construct() is final, which means users can not override it. but users can define \Yaf\Controller_Abstract::init(), which will be called after controller object is instantiated.

    * * @link https://secure.php.net/manual/en/yaf-controller-abstract.init.php - * */ - public function init() - { - } + public function init() {} /** * \Yaf\Controller_Abstract::__construct() is final, which means it can not be overridden. You may want to see \Yaf\Controller_Abstract::init() instead. @@ -1411,27 +1183,21 @@ public function init() * @param \Yaf\View_Interface $view * @param array $invokeArgs */ - final public function __construct(\Yaf\Request_Abstract $request, \Yaf\Response_Abstract $response, \Yaf\View_Interface $view, array $invokeArgs = null) - { - } + final public function __construct(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response, Yaf\View_Interface $view, array $invokeArgs = null) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.clone.php */ - final private function __clone() - { - } + final private function __clone() {} }/** *

    A action can be defined in a separate file in Yaf(see \Yaf\Controller_Abstract). that is a action method can also be a \Yaf\Action_Abstract class.

    *
    *

    Since there should be a entry point which can be called by Yaf (as of PHP 5.3, there is a new magic method __invoke, but Yaf is not only works with PHP 5.3+, Yaf choose another magic method execute), you must implement the abstract method \Yaf\Action_Abstract::execute() in your custom action class.

    * * @link https://secure.php.net/manual/en/class.yaf-action-abstract.php - * */ abstract class Action_Abstract extends \Yaf\Controller_Abstract { - /** * @var \Yaf\Controller_Abstract */ @@ -1456,15 +1222,12 @@ abstract public function execute(); * * @return \Yaf\Controller_Abstract */ - public function getController() - { - } + public function getController() {} }/** * @link https://secure.php.net/manual/en/class.yaf-config-abstract.php */ abstract class Config_Abstract { - /** * @var array */ @@ -1509,8 +1272,8 @@ abstract public function toArray(); */ abstract class Request_Abstract { - const SCHEME_HTTP = 'http'; - const SCHEME_HTTPS = 'https'; + public const SCHEME_HTTP = 'http'; + public const SCHEME_HTTPS = 'https'; /** * @var string */ @@ -1561,82 +1324,63 @@ abstract class Request_Abstract * * @return bool */ - public function isGet() - { - } + public function isGet() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.ispost.php * * @return bool */ - public function isPost() - { - } + public function isPost() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.isput.php * * @return bool */ - public function isPut() - { - } + public function isPut() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.ishead.php * * @return bool */ - public function isHead() - { - } + public function isHead() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.isoptions.php * * @return bool */ - public function isOptions() - { - } + public function isOptions() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.iscli.php * * @return bool */ - public function isCli() - { - } + public function isCli() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.isdispached.php * * @return bool */ - public function isDispatched() - { - } + public function isDispatched() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.isrouted.php * * @return bool */ - public function isRouted() - { - } + public function isRouted() {} /** - * * @link https://secure.php.net/manual/en/yaf-request-abstract.isxmlhttprequest.php * * @return bool false */ - public function isXmlHttpRequest() - { - } + public function isXmlHttpRequest() {} /** * Retrieve $_SERVER variable @@ -1648,9 +1392,7 @@ public function isXmlHttpRequest() * * @return mixed */ - public function getServer($name = null, $default = null) - { - } + public function getServer($name = null, $default = null) {} /** * Retrieve $_ENV variable @@ -1662,12 +1404,9 @@ public function getServer($name = null, $default = null) * * @return mixed */ - public function getEnv($name = null, $default = null) - { - } + public function getEnv($name = null, $default = null) {} /** - * * @link https://secure.php.net/manual/en/yaf-request-abstract.getparam.php * * @param string $name @@ -1675,55 +1414,42 @@ public function getEnv($name = null, $default = null) * * @return mixed */ - public function getParam($name, $default = null) - { - } + public function getParam($name, $default = null) {} /** - * * @link https://secure.php.net/manual/en/yaf-request-abstract.getparams.php * * @return array */ - public function getParams() - { - } + public function getParams() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getexception.php * * @return \Yaf\Exception */ - public function getException() - { - } + public function getException() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getmoudlename.php * * @return string */ - public function getModuleName() - { - } + public function getModuleName() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getcontrollername.php * * @return string */ - public function getControllerName() - { - } + public function getControllerName() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getactionname.php * * @return string */ - public function getActionName() - { - } + public function getActionName() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.setparam.php @@ -1733,9 +1459,7 @@ public function getActionName() * * @return \Yaf\Request_Abstract|bool */ - public function setParam($name, $value = null) - { - } + public function setParam($name, $value = null) {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.setmodulename.php @@ -1744,9 +1468,7 @@ public function setParam($name, $value = null) * * @return \Yaf\Request_Abstract|bool */ - public function setModuleName($module) - { - } + public function setModuleName($module) {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.setcontrollername.php @@ -1755,9 +1477,7 @@ public function setModuleName($module) * * @return \Yaf\Request_Abstract|bool */ - public function setControllerName($controller) - { - } + public function setControllerName($controller) {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.setactionname.php @@ -1766,27 +1486,21 @@ public function setControllerName($controller) * * @return \Yaf\Request_Abstract|bool */ - public function setActionName($action) - { - } + public function setActionName($action) {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getmethod.php * * @return string */ - public function getMethod() - { - } + public function getMethod() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getlanguage.php * * @return string */ - public function getLanguage() - { - } + public function getLanguage() {} /** *

    Set base URI, base URI is used when doing routing, in routing phase request URI is used to route a request, while base URI is used to skip the leading part(base URI) of request URI. That is, if comes a request with request URI a/b/c, then if you set base URI to "a/b", only "/c" will be used in routing phase.

    @@ -1800,27 +1514,21 @@ public function getLanguage() * * @return bool */ - public function setBaseUri($uri) - { - } + public function setBaseUri($uri) {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getbaseuri.php * * @return string */ - public function getBaseUri() - { - } + public function getBaseUri() {} /** * @link https://secure.php.net/manual/en/yaf-request-abstract.getrequesturi.php * * @return string */ - public function getRequestUri() - { - } + public function getRequestUri() {} /** * @since 2.1.0 @@ -1828,9 +1536,7 @@ public function getRequestUri() * * @param string $uri request URI */ - public function setRequestUri($uri) - { - } + public function setRequestUri($uri) {} /** * Set request as dispatched @@ -1839,9 +1545,7 @@ public function setRequestUri($uri) * * @return bool */ - public function setDispatched() - { - } + public function setDispatched() {} /** * Set request as routed @@ -1850,9 +1554,7 @@ public function setDispatched() * * @return \Yaf\Request_Abstract|bool */ - public function setRouted() - { - } + public function setRouted() {} }/** *

    Plugins allow for easy extensibility and customization of the framework.

    *
    @@ -1863,7 +1565,6 @@ public function setRouted() */ abstract class Plugin_Abstract { - /** * This is the earliest hook in Yaf plugin hook system, if a custom plugin implement this method, then it will be called before routing a request. * @@ -1874,9 +1575,7 @@ abstract class Plugin_Abstract * * @return bool true */ - public function routerStartup(\Yaf\Request_Abstract $request, \Yaf\Response_Abstract $response) - { - } + public function routerStartup(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} /** * This hook will be trigged after the route process finished, this hook is usually used for login check. @@ -1888,9 +1587,7 @@ public function routerStartup(\Yaf\Request_Abstract $request, \Yaf\Response_Abst * * @return bool true */ - public function routerShutdown(\Yaf\Request_Abstract $request, \Yaf\Response_Abstract $response) - { - } + public function routerShutdown(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.dispatchloopstartup.php @@ -1900,9 +1597,7 @@ public function routerShutdown(\Yaf\Request_Abstract $request, \Yaf\Response_Abs * * @return bool true */ - public function dispatchLoopStartup(\Yaf\Request_Abstract $request, \Yaf\Response_Abstract $response) - { - } + public function dispatchLoopStartup(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} /** * This is the latest hook in Yaf plugin hook system, if a custom plugin implement this method, then it will be called after the dispatch loop finished. @@ -1914,9 +1609,7 @@ public function dispatchLoopStartup(\Yaf\Request_Abstract $request, \Yaf\Respons * * @return bool true */ - public function dispatchLoopShutdown(\Yaf\Request_Abstract $request, \Yaf\Response_Abstract $response) - { - } + public function dispatchLoopShutdown(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.predispatch.php @@ -1926,9 +1619,7 @@ public function dispatchLoopShutdown(\Yaf\Request_Abstract $request, \Yaf\Respon * * @return bool true */ - public function preDispatch(\Yaf\Request_Abstract $request, \Yaf\Response_Abstract $response) - { - } + public function preDispatch(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.postdispatch.php @@ -1938,9 +1629,7 @@ public function preDispatch(\Yaf\Request_Abstract $request, \Yaf\Response_Abstra * * @return bool true */ - public function postDispatch(\Yaf\Request_Abstract $request, \Yaf\Response_Abstract $response) - { - } + public function postDispatch(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.preresponse.php @@ -1950,15 +1639,13 @@ public function postDispatch(\Yaf\Request_Abstract $request, \Yaf\Response_Abstr * * @return bool true */ - public function preResponse(\Yaf\Request_Abstract $request, \Yaf\Response_Abstract $response) - { - } + public function preResponse(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} }/** * @link https://secure.php.net/manual/en/class.yaf-response-abstract.php */ abstract class Response_Abstract { - const DEFAULT_BODY = "content"; + public const DEFAULT_BODY = "content"; /** * @var string */ @@ -1975,30 +1662,22 @@ abstract class Response_Abstract /** * @link https://secure.php.net/manual/en/yaf-response-abstract.construct.php */ - public function __construct() - { - } + public function __construct() {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.destruct.php */ - public function __destruct() - { - } + public function __destruct() {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.clone.php */ - private function __clone() - { - } + private function __clone() {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.tostring.php */ - public function __toString() - { - } + public function __toString() {} /** * Set content to response @@ -2013,9 +1692,7 @@ public function __toString() * * @return bool */ - public function setBody($content, $key = self::DEFAULT_BODY) - { - } + public function setBody($content, $key = self::DEFAULT_BODY) {} /** * append a content to a exists content block @@ -2030,9 +1707,7 @@ public function setBody($content, $key = self::DEFAULT_BODY) * * @return bool */ - public function appendBody($content, $key = self::DEFAULT_BODY) - { - } + public function appendBody($content, $key = self::DEFAULT_BODY) {} /** * prepend a content to a exists content block @@ -2047,9 +1722,7 @@ public function appendBody($content, $key = self::DEFAULT_BODY) * * @return bool */ - public function prependBody($content, $key = self::DEFAULT_BODY) - { - } + public function prependBody($content, $key = self::DEFAULT_BODY) {} /** * Clear existing content @@ -2063,9 +1736,7 @@ public function prependBody($content, $key = self::DEFAULT_BODY) * * @return bool */ - public function clearBody($key = self::DEFAULT_BODY) - { - } + public function clearBody($key = self::DEFAULT_BODY) {} /** * Retrieve an existing content @@ -2079,9 +1750,7 @@ public function clearBody($key = self::DEFAULT_BODY) * * @return mixed */ - public function getBody($key = self::DEFAULT_BODY) - { - } + public function getBody($key = self::DEFAULT_BODY) {} }/** * Yaf provides a ability for developers to use custom view engine instead of build-in engine which is \Yaf\View\Simple. There is a example to explain how to do this, please see \Yaf\Dispatcher::setView() * @@ -2089,7 +1758,6 @@ public function getBody($key = self::DEFAULT_BODY) */ interface View_Interface { - /** * Assign values to View engine, then the value can access directly by name in template. * @@ -2145,7 +1813,6 @@ public function setScriptPath($template_dir); */ interface Route_Interface { - /** *

    \Yaf\Route_Interface::route() is the only method that a custom route should implement.


    *

    if this method return TRUE, then the route process will be end. otherwise, \Yaf\Router will call next route in the route stack to route request.


    @@ -2157,7 +1824,7 @@ interface Route_Interface * @param \Yaf\Request_Abstract $request * @return bool */ - public function route(\Yaf\Request_Abstract $request); + public function route(Yaf\Request_Abstract $request); /** *

    \Yaf\Route_Interface::assemble() - assemble a request


    @@ -2174,9 +1841,7 @@ public function assemble(array $info, array $query = null); }/** * @link https://secure.php.net/manual/en/class.yaf-exception.php */ -class Exception extends \Exception -{ -}/** +class Exception extends \Exception {}/** *

    by default, \Yaf\Router only have a \Yaf\Route_Static as its default route.

    *
    *

    \Yaf\Route_Static is designed to handle 80% of normal requirements.

    @@ -2185,11 +1850,9 @@ class Exception extends \Exception *

    it is unnecessary to instance a \Yaf\Route_Static, also unnecessary to add it into \Yaf\Router's routes stack, since there is always be one in \Yaf\Router's routes stack, and always be called at the last time.

    * * @link https://secure.php.net/manual/en/class.yaf-route-static.php - * */ class Route_Static implements \Yaf\Route_Interface { - /** * @deprecated not_implemented * @link https://secure.php.net/manual/en/yaf-route-static.match.php @@ -2198,9 +1861,7 @@ class Route_Static implements \Yaf\Route_Interface * * @return bool */ - public function match($uri) - { - } + public function match($uri) {} /** * @link https://secure.php.net/manual/en/yaf-route-static.route.php @@ -2209,9 +1870,7 @@ public function match($uri) * * @return bool always TRUE */ - public function route(\Yaf\Request_Abstract $request) - { - } + public function route(Yaf\Request_Abstract $request) {} /** *

    \Yaf\Route_Static::assemble() - Assemble a url

    @@ -2222,37 +1881,24 @@ public function route(\Yaf\Request_Abstract $request) * @param array $query * @return bool */ - public function assemble(array $info, array $query = null) - { - } + public function assemble(array $info, array $query = null) {} }} + namespace Yaf\Response { - use Yaf\Response; - /** - * - */ -class Http extends \Yaf\Response_Abstract + class Http extends \Yaf\Response_Abstract { - /** * @var int */ protected $_response_code = 0; - /** - * - */ - private function __clone() - { - } + private function __clone() {} /** * @return string */ - private function __toString() - { - } + private function __toString() {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.setheader.php @@ -2264,9 +1910,7 @@ private function __toString() * * @return bool */ - public function setHeader($name, $value, $replace = false, $response_code = 0) - { - } + public function setHeader($name, $value, $replace = false, $response_code = 0) {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.setallheaders.php @@ -2275,9 +1919,7 @@ public function setHeader($name, $value, $replace = false, $response_code = 0) * * @return bool */ - public function setAllHeaders(array $headers) - { - } + public function setAllHeaders(array $headers) {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.getheader.php @@ -2286,9 +1928,7 @@ public function setAllHeaders(array $headers) * * @return mixed */ - public function getHeader($name = null) - { - } + public function getHeader($name = null) {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.clearheaders.php @@ -2296,9 +1936,7 @@ public function getHeader($name = null) * * @return \Yaf\Response_Abstract|false */ - public function clearHeaders() - { - } + public function clearHeaders() {} /** * @link https://secure.php.net/manual/en/yaf-response-abstract.setredirect.php @@ -2307,9 +1945,7 @@ public function clearHeaders() * * @return bool */ - public function setRedirect($url) - { - } + public function setRedirect($url) {} /** * send response @@ -2318,38 +1954,25 @@ public function setRedirect($url) * * @return bool */ - public function response() - { - } -}/** - * - */ + public function response() {} +} class Cli extends \Yaf\Response_Abstract { - - /** - * - */ - private function __clone() - { - } + private function __clone() {} /** * @return string */ - private function __toString() - { - } + private function __toString() {} }} + namespace Yaf\Request { - use Yaf\Request; - /** + /** * @link https://secure.php.net/manual/en/class.yaf-request-http.php */ class Http extends \Yaf\Request_Abstract { - /** * Retrieve $_GET variable * @@ -2360,9 +1983,7 @@ class Http extends \Yaf\Request_Abstract * * @return mixed */ - public function getQuery($name = null, $default = null) - { - } + public function getQuery($name = null, $default = null) {} /** * Retrieve $_REQUEST variable @@ -2374,9 +1995,7 @@ public function getQuery($name = null, $default = null) * * @return mixed */ - public function getRequest($name = null, $default = null) - { - } + public function getRequest($name = null, $default = null) {} /** * Retrieve $_POST variable @@ -2388,9 +2007,7 @@ public function getRequest($name = null, $default = null) * * @return mixed */ - public function getPost($name = null, $default = null) - { - } + public function getPost($name = null, $default = null) {} /** * Retrieve $_COOKIE variable @@ -2402,9 +2019,7 @@ public function getPost($name = null, $default = null) * * @return mixed */ - public function getCookie($name = null, $default = null) - { - } + public function getCookie($name = null, $default = null) {} /** * Retrieve $_FILES variable @@ -2416,9 +2031,7 @@ public function getCookie($name = null, $default = null) * * @return mixed */ - public function getFiles($name = null, $default = null) - { - } + public function getFiles($name = null, $default = null) {} /** * Retrieve variable from client, this method will search the name in $_REQUEST params, if the name is not found, then will search in $_POST, $_GET, $_COOKIE, $_SERVER @@ -2430,9 +2043,7 @@ public function getFiles($name = null, $default = null) * * @return mixed */ - public function get($name, $default = null) - { - } + public function get($name, $default = null) {} /** * Check the request whether it is a Ajax Request @@ -2446,34 +2057,26 @@ public function get($name, $default = null) * * @return bool */ - public function isXmlHttpRequest() - { - } + public function isXmlHttpRequest() {} /** * @link https://secure.php.net/manual/en/yaf-request-http.construct.php * * @param string $request_uri * @param string $base_uri - * */ - public function __construct($request_uri, $base_uri) - { - } + public function __construct($request_uri, $base_uri) {} /** * @link https://secure.php.net/manual/en/yaf-request-http.clone.php */ - private function __clone() - { - } + private function __clone() {} }/** * \Yaf\Request\Simple is particularly used for test purpose. ie. simulate a spacial request under CLI mode. * @link https://secure.php.net/manual/en/class.yaf-request-simple.php */ class Simple extends \Yaf\Request_Abstract { - /** * Retrieve $_GET variable * @@ -2484,9 +2087,7 @@ class Simple extends \Yaf\Request_Abstract * * @return mixed */ - public function getQuery($name = null, $default = null) - { - } + public function getQuery($name = null, $default = null) {} /** * Retrieve $_REQUEST variable @@ -2498,9 +2099,7 @@ public function getQuery($name = null, $default = null) * * @return mixed */ - public function getRequest($name = null, $default = null) - { - } + public function getRequest($name = null, $default = null) {} /** * Retrieve $_POST variable @@ -2512,9 +2111,7 @@ public function getRequest($name = null, $default = null) * * @return mixed */ - public function getPost($name = null, $default = null) - { - } + public function getPost($name = null, $default = null) {} /** * Retrieve $_Cookie variable @@ -2526,9 +2123,7 @@ public function getPost($name = null, $default = null) * * @return mixed */ - public function getCookie($name = null, $default = null) - { - } + public function getCookie($name = null, $default = null) {} /** * @param mixed $name @@ -2536,9 +2131,7 @@ public function getCookie($name = null, $default = null) * * @return array */ - public function getFiles($name = null, $default = null) - { - } + public function getFiles($name = null, $default = null) {} /** * Retrieve variable from client, this method will search the name in $_REQUEST params, if the name is not found, then will search in $_POST, $_GET, $_COOKIE, $_SERVER @@ -2550,9 +2143,7 @@ public function getFiles($name = null, $default = null) * * @return mixed */ - public function get($name, $default = null) - { - } + public function get($name, $default = null) {} /** * Check the request whether it is a Ajax Request @@ -2566,9 +2157,7 @@ public function get($name, $default = null) * * @return bool */ - public function isXmlHttpRequest() - { - } + public function isXmlHttpRequest() {} /** * @link https://secure.php.net/manual/en/yaf-request-simple.construct.php @@ -2580,21 +2169,17 @@ public function isXmlHttpRequest() * * @throws \Yaf\Exception\TypeError */ - public function __construct($method, $controller, $action, $params = null) - { - } + public function __construct($method, $controller, $action, $params = null) {} /** * @link https://secure.php.net/manual/en/yaf-request-simple.clone.php */ - private function __clone() - { - } + private function __clone() {} }} + namespace Yaf\Config { - use Yaf\Config; - /** + /** *

    \Yaf\Config\Ini enables developers to store configuration data in a familiar INI format and read them in the application by using nested object property syntax. The INI format is specialized to provide both the ability to have a hierarchy of configuration data keys and inheritance between configuration data sections. Configuration data hierarchies are supported by separating the keys with the dot or period character ("."). A section may extend or inherit from another section by following the section name with a colon character (":") and the name of the section from which data are to be inherited.


    * Note: *

    \Yaf\Config\Ini utilizes the » parse_ini_file() PHP function. Please review this documentation to be aware of its specific behaviors, which propagate to \Yaf\Config\Ini, such as how the special values of "TRUE", "FALSE", "yes", "no", and "NULL" are handled.

    @@ -2602,49 +2187,36 @@ private function __clone() */ class Ini extends \Yaf\Config_Abstract implements \Iterator, \Traversable, \ArrayAccess, \Countable { - /** * @see \Yaf\Config_Abstract::get */ - public function __get($name = null) - { - } + public function __get($name = null) {} /** * @see \Yaf\Config_Abstract::set */ - public function __set($name, $value) - { - } + public function __set($name, $value) {} /** * @see \Yaf\Config_Abstract::get */ - public function get($name = null) - { - } + public function get($name = null) {} /** * @see \Yaf\Config_Abstract::set * @deprecated not_implemented */ - public function set($name, $value) - { - } + public function set($name, $value) {} /** * @see \Yaf\Config_Abstract::toArray */ - public function toArray() - { - } + public function toArray() {} /** * @see \Yaf\Config_Abstract::readonly */ - public function readonly() - { - } + public function readonly() {} /** * @link https://secure.php.net/manual/en/yaf-config-ini.construct.php @@ -2654,229 +2226,167 @@ public function readonly() * * @throws \Yaf\Exception\TypeError */ - public function __construct($config_file, $section = null) - { - } + public function __construct($config_file, $section = null) {} /** * @link https://secure.php.net/manual/en/yaf-config-ini.isset.php * @param string $name */ - public function __isset($name) - { - } + public function __isset($name) {} /** * @see \Countable::count */ - public function count() - { - } + public function count() {} /** * @see \Iterator::rewind */ - public function rewind() - { - } + public function rewind() {} /** * @see \Iterator::current */ - public function current() - { - } + public function current() {} /** * @see \Iterator::next */ - public function next() - { - } + public function next() {} /** * @see \Iterator::valid */ - public function valid() - { - } + public function valid() {} /** * @see \Iterator::key */ - public function key() - { - } + public function key() {} /** * @see \ArrayAccess::offsetUnset * @deprecated not_implemented */ - public function offsetUnset($name) - { - } + public function offsetUnset($name) {} /** * @see \ArrayAccess::offsetGet */ - public function offsetGet($name) - { - } + public function offsetGet($name) {} /** * @see \ArrayAccess::offsetExists */ - public function offsetExists($name) - { - } + public function offsetExists($name) {} /** * @see \ArrayAccess::offsetSet */ - public function offsetSet($name, $value) - { - } + public function offsetSet($name, $value) {} }/** * @link https://secure.php.net/manual/en/class.yaf-config-simple.php */ class Simple extends \Yaf\Config_Abstract implements \Iterator, \Traversable, \ArrayAccess, \Countable { - /** * @see \Yaf\Config_Abstract::get */ - public function __get($name = null) - { - } + public function __get($name = null) {} /** * @see \Yaf\Config_Abstract::set */ - public function __set($name, $value) - { - } + public function __set($name, $value) {} /** * @see \Yaf\Config_Abstract::get */ - public function get($name = null) - { - } + public function get($name = null) {} /** * @see \Yaf\Config_Abstract::set */ - public function set($name, $value) - { - } + public function set($name, $value) {} /** * @see \Yaf\Config_Abstract::toArray */ - public function toArray() - { - } + public function toArray() {} /** * @see \Yaf\Config_Abstract::readonly */ - public function readonly() - { - } + public function readonly() {} /** * @link https://secure.php.net/manual/en/yaf-config-simple.construct.php * * @param array $array * @param string $readonly - * */ - public function __construct(array $array, $readonly = null) - { - } + public function __construct(array $array, $readonly = null) {} /** * @link https://secure.php.net/manual/en/yaf-config-simple.isset.php * @param string $name */ - public function __isset($name) - { - } + public function __isset($name) {} /** * @see \Countable::count */ - public function count() - { - } + public function count() {} /** * @see \Iterator::rewind */ - public function rewind() - { - } + public function rewind() {} /** * @see \Iterator::current */ - public function current() - { - } + public function current() {} /** * @see \Iterator::next */ - public function next() - { - } + public function next() {} /** * @see \Iterator::valid */ - public function valid() - { - } + public function valid() {} /** * @see \Iterator::key */ - public function key() - { - } + public function key() {} /** * @see \ArrayAccess::offsetUnset */ - public function offsetUnset($name) - { - } + public function offsetUnset($name) {} /** * @see \ArrayAccess::offsetGet */ - public function offsetGet($name) - { - } + public function offsetGet($name) {} /** * @see \ArrayAccess::offsetExists */ - public function offsetExists($name) - { - } + public function offsetExists($name) {} /** * @see \ArrayAccess::offsetSet */ - public function offsetSet($name, $value) - { - } + public function offsetSet($name, $value) {} }} + namespace Yaf\View { - use Yaf\View; - /** + /** * \Yaf\View\Simple is the built-in template engine in Yaf, it is a simple but fast template engine, and only support PHP script template. * @link https://secure.php.net/manual/en/class.yaf-view-simple.php * @@ -2891,7 +2401,6 @@ public function offsetSet($name, $value) */ class Simple implements \Yaf\View_Interface { - /** * @var string */ @@ -2916,18 +2425,14 @@ class Simple implements \Yaf\View_Interface *

    * @throws \Yaf\Exception\TypeError */ - final public function __construct($template_dir, array $options = null) - { - } + final public function __construct($template_dir, array $options = null) {} /** * @link https://secure.php.net/manual/en/yaf-view-simple.isset.php * * @param string $name */ - public function __isset($name) - { - } + public function __isset($name) {} /** * assign variable to view engine @@ -2938,9 +2443,7 @@ public function __isset($name) * @param mixed $value mixed value * @return \Yaf\View\Simple */ - public function assign($name, $value = null) - { - } + public function assign($name, $value = null) {} /** * @link https://secure.php.net/manual/en/yaf-view-simple.render.php @@ -2952,9 +2455,7 @@ public function assign($name, $value = null) * * @return string|void */ - public function render($tpl, array $tpl_vars = null) - { - } + public function render($tpl, array $tpl_vars = null) {} /** *

    Render a template and display the result instantly.

    @@ -2968,9 +2469,7 @@ public function render($tpl, array $tpl_vars = null) * * @return bool */ - public function display($tpl, array $tpl_vars = null) - { - } + public function display($tpl, array $tpl_vars = null) {} /** *

    unlike \Yaf\View\Simple::assign(), this method assign a ref value to engine.

    @@ -2981,9 +2480,7 @@ public function display($tpl, array $tpl_vars = null) * * @return \Yaf\View\Simple */ - public function assignRef($name, &$value) - { - } + public function assignRef($name, &$value) {} /** * clear assigned variable @@ -2993,9 +2490,7 @@ public function assignRef($name, &$value) * * @return \Yaf\View\Simple */ - public function clear($name = null) - { - } + public function clear($name = null) {} /** * @link https://secure.php.net/manual/en/yaf-view-simple.setscriptpath.php @@ -3004,18 +2499,14 @@ public function clear($name = null) * * @return \Yaf\View\Simple */ - public function setScriptPath($template_dir) - { - } + public function setScriptPath($template_dir) {} /** * @link https://secure.php.net/manual/en/yaf-view-simple.getscriptpath.php * * @return string */ - public function getScriptPath() - { - } + public function getScriptPath() {} /** *

    Retrieve assigned variable

    @@ -3030,9 +2521,7 @@ public function getScriptPath() * * @return mixed */ - public function __get($name = null) - { - } + public function __get($name = null) {} /** *

    This is a alternative and easier way to \Yaf\View\Simple::assign().

    @@ -3042,14 +2531,12 @@ public function __get($name = null) * @param string $name A string value name. * @param mixed $value mixed value */ - public function __set($name, $value = null) - { - } + public function __set($name, $value = null) {} }} + namespace Yaf\Route { - use Yaf\Route; - /** + /** *

    \Yaf\Route\Simple will match the query string, and find the route info.

    *
    *

    all you need to do is tell \Yaf\Route\Simple what key in the $_GET is module, what key is controller, and what key is action.

    @@ -3060,7 +2547,6 @@ public function __set($name, $value = null) */ final class Simple implements \Yaf\Route_Interface { - /** * @var string */ @@ -3085,9 +2571,7 @@ final class Simple implements \Yaf\Route_Interface * * @throws \Yaf\Exception\TypeError */ - public function __construct($module_name, $controller_name, $action_name) - { - } + public function __construct($module_name, $controller_name, $action_name) {} /** *

    see \Yaf\Route\Simple::__construct()

    @@ -3098,9 +2582,7 @@ public function __construct($module_name, $controller_name, $action_name) * * @return bool always TRUE */ - public function route(\Yaf\Request_Abstract $request) - { - } + public function route(Yaf\Request_Abstract $request) {} /** *

    \Yaf\Route\Simple::assemble() - Assemble a url

    @@ -3111,15 +2593,12 @@ public function route(\Yaf\Request_Abstract $request) * @param array $query * @return bool */ - public function assemble(array $info, array $query = null) - { - } + public function assemble(array $info, array $query = null) {} }/** * @link https://secure.php.net/manual/en/class.yaf-route-supervar.php */ final class Supervar implements \Yaf\Route_Interface { - /** * @var string */ @@ -3134,9 +2613,7 @@ final class Supervar implements \Yaf\Route_Interface * * @throws \Yaf\Exception\TypeError */ - public function __construct($supervar_name) - { - } + public function __construct($supervar_name) {} /** * @link https://secure.php.net/manual/en/yaf-route-supervar.route.php @@ -3145,9 +2622,7 @@ public function __construct($supervar_name) * * @return bool If there is a key(which was defined in \Yaf\Route\Supervar::__construct()) in $_GET, return TRUE. otherwise return FALSE. */ - public function route(\Yaf\Request_Abstract $request) - { - } + public function route(Yaf\Request_Abstract $request) {} /** *

    \Yaf\Route\Supervar::assemble() - Assemble a url

    @@ -3158,9 +2633,7 @@ public function route(\Yaf\Request_Abstract $request) * @param array $query * @return bool */ - public function assemble(array $info, array $query = null) - { - } + public function assemble(array $info, array $query = null) {} }/** *

    For usage, please see the example section of \Yaf\Route\Rewrite::__construct()

    * @@ -3168,7 +2641,6 @@ public function assemble(array $info, array $query = null) */ final class Rewrite extends \Yaf\Router implements \Yaf\Route_Interface { - /** * @var string */ @@ -3194,9 +2666,7 @@ final class Rewrite extends \Yaf\Router implements \Yaf\Route_Interface * * @throws \Yaf\Exception\TypeError */ - public function __construct($match, array $route, array $verify = null, $reverse = null) - { - } + public function __construct($match, array $route, array $verify = null, $reverse = null) {} /** * @link https://secure.php.net/manual/en/yaf-route-rewrite.route.php @@ -3205,9 +2675,7 @@ public function __construct($match, array $route, array $verify = null, $reverse * * @return bool */ - public function route(\Yaf\Request_Abstract $request) - { - } + public function route(Yaf\Request_Abstract $request) {} /** *

    \Yaf\Route\Rewrite::assemble() - Assemble a url

    @@ -3218,9 +2686,7 @@ public function route(\Yaf\Request_Abstract $request) * @param array $query * @return bool */ - public function assemble(array $info, array $query = null) - { - } + public function assemble(array $info, array $query = null) {} }/** *

    \Yaf\Route\Regex is the most flexible route among the Yaf built-in routes.

    * @@ -3228,7 +2694,6 @@ public function assemble(array $info, array $query = null) */ final class Regex extends \Yaf\Router implements \Yaf\Route_Interface { - /** * @var string */ @@ -3263,9 +2728,7 @@ final class Regex extends \Yaf\Router implements \Yaf\Route_Interface * * @throws \Yaf\Exception\TypeError */ - public function __construct($match, array $route, array $map = null, array $verify = null, $reverse = null) - { - } + public function __construct($match, array $route, array $map = null, array $verify = null, $reverse = null) {} /** * Route a incoming request. @@ -3276,9 +2739,7 @@ public function __construct($match, array $route, array $map = null, array $veri * * @return bool If the pattern given by the first parameter of \Yaf\Route\Regex::_construct() matches the request uri, return TRUE, otherwise return FALSE. */ - public function route(\Yaf\Request_Abstract $request) - { - } + public function route(Yaf\Request_Abstract $request) {} /** *

    \Yaf\Route\Regex::assemble() - Assemble a url

    @@ -3289,9 +2750,7 @@ public function route(\Yaf\Request_Abstract $request) * @param array $query * @return bool */ - public function assemble(array $info, array $query = null) - { - } + public function assemble(array $info, array $query = null) {} }/** *

    \Yaf\Route\Map is a built-in route, it simply convert a URI endpoint (that part of the URI which comes after the base URI: see \Yaf\Request_Abstract::setBaseUri()) to a controller name or action name(depends on the parameter passed to \Yaf\Route\Map::__construct()) in following rule: A => controller A. A/B/C => controller A_B_C. A/B/C/D/E => controller A_B_C_D_E.

    *
    @@ -3301,7 +2760,6 @@ public function assemble(array $info, array $query = null) */ final class Map implements \Yaf\Route_Interface { - /** * @var string */ @@ -3317,9 +2775,7 @@ final class Map implements \Yaf\Route_Interface * @param bool $controller_prefer Whether the result should considering as controller or action * @param string $delimiter */ - public function __construct($controller_prefer = false, $delimiter = '') - { - } + public function __construct($controller_prefer = false, $delimiter = '') {} /** * @link https://secure.php.net/manual/en/yaf-route-map.route.php @@ -3328,9 +2784,7 @@ public function __construct($controller_prefer = false, $delimiter = '') * * @return bool */ - public function route(\Yaf\Request_Abstract $request) - { - } + public function route(Yaf\Request_Abstract $request) {} /** *

    \Yaf\Route\Map::assemble() - Assemble a url

    @@ -3341,61 +2795,40 @@ public function route(\Yaf\Request_Abstract $request) * @param array $query * @return bool */ - public function assemble(array $info, array $query = null) - { - } + public function assemble(array $info, array $query = null) {} }} + namespace Yaf\Exception { - use Yaf\Exception; - /** + /** * @link https://secure.php.net/manual/en/class.yaf-exception-typeerror.php */ -class TypeError extends \Yaf\Exception -{ -}/** +class TypeError extends \Yaf\Exception {}/** * @link https://secure.php.net/manual/en/class.yaf-exception-startuperror.php */ -class StartupError extends \Yaf\Exception -{ -}/** +class StartupError extends \Yaf\Exception {}/** * @link https://secure.php.net/manual/en/class.yaf-exception-routefaild.php */ -class RouterFailed extends \Yaf\Exception -{ -}/** +class RouterFailed extends \Yaf\Exception {}/** * @link https://secure.php.net/manual/en/class.yaf-exception-dispatchfaild.php */ -class DispatchFailed extends \Yaf\Exception -{ -}/** +class DispatchFailed extends \Yaf\Exception {}/** * @link https://secure.php.net/manual/en/class.yaf-exception-loadfaild.php */ -class LoadFailed extends \Yaf\Exception -{ -}} -namespace Yaf\Exception\LoadFailed { - use Yaf\Exception\LoadFailed; +class LoadFailed extends \Yaf\Exception {}} - /** +namespace Yaf\Exception\LoadFailed { +/** * @link https://secure.php.net/manual/en/class.yaf-exception-loadfaild-module.php */ -class Module extends \Yaf\Exception\LoadFailed -{ -}/** +class Module extends \Yaf\Exception\LoadFailed {}/** * @link https://secure.php.net/manual/en/class.yaf-exception-loadfaild-controller.php */ -class Controller extends \Yaf\Exception\LoadFailed -{ -}/** +class Controller extends \Yaf\Exception\LoadFailed {}/** * @link https://secure.php.net/manual/en/class.yaf-exception-loadfaild-action.php */ -class Action extends \Yaf\Exception\LoadFailed -{ -}/** +class Action extends \Yaf\Exception\LoadFailed {}/** * @link https://secure.php.net/manual/en/class.yaf-exception-loadfaild-view.php */ -class View extends \Yaf\Exception\LoadFailed -{ -} +class View extends \Yaf\Exception\LoadFailed {} } diff --git a/yaml/yaml.php b/yaml/yaml.php index ee4e0e620..761d00f65 100644 --- a/yaml/yaml.php +++ b/yaml/yaml.php @@ -71,7 +71,7 @@ * @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details. * @return bool Returns TRUE on success. */ -function yaml_emit_file($filename, $data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, array $callbacks = array()) {} +function yaml_emit_file($filename, $data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, array $callbacks = []) {} /** * (PHP 5 >= 5.2.0, PECL yaml >= 0.5.0)
    @@ -82,7 +82,7 @@ function yaml_emit_file($filename, $data, $encoding = YAML_ANY_ENCODING, $linebr * @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details. * @return string Returns a YAML encoded string on success. */ -function yaml_emit($data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, array $callbacks = array()) {} +function yaml_emit($data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, array $callbacks = []) {} /** * (PHP 5 >= 5.2.0, PECL yaml >= 0.4.0)
    @@ -94,7 +94,7 @@ function yaml_emit($data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_B * @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details. * @return mixed|false Returns the value encoded in input in appropriate PHP type or FALSE on failure. If pos is -1 an array will be returned with one entry for each document found in the stream. */ -function yaml_parse_file($filename, $pos = 0, &$ndocs = null, array $callbacks = array()) {} +function yaml_parse_file($filename, $pos = 0, &$ndocs = null, array $callbacks = []) {} /** * (PHP 5 >= 5.2.0, PECL yaml >= 0.4.0)
    @@ -106,7 +106,7 @@ function yaml_parse_file($filename, $pos = 0, &$ndocs = null, array $callbacks = * @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details. * @return mixed|false Returns the value encoded in input in appropriate PHP type or FALSE on failure. If pos is -1 an array will be returned with one entry for each document found in the stream. */ -function yaml_parse_url($url, $pos = 0, &$ndocs = null, array $callbacks = array()) {} +function yaml_parse_url($url, $pos = 0, &$ndocs = null, array $callbacks = []) {} /** * (PHP 5 >= 5.2.0, PECL yaml >= 0.4.0)
    @@ -118,4 +118,4 @@ function yaml_parse_url($url, $pos = 0, &$ndocs = null, array $callbacks = array * @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details. * @return mixed|false Returns the value encoded in input in appropriate PHP type or FALSE on failure. If pos is -1 an array will be returned with one entry for each document found in the stream. */ -function yaml_parse($input, $pos = 0, &$ndocs = null, array $callbacks = array()) {} +function yaml_parse($input, $pos = 0, &$ndocs = null, array $callbacks = []) {} diff --git a/yar/yar.php b/yar/yar.php index 843b69b1e..045a384da 100644 --- a/yar/yar.php +++ b/yar/yar.php @@ -1,6 +1,5 @@ diff --git a/zend/zend_f.php b/zend/zend_f.php index ce3cb0723..4dd4eb9a6 100644 --- a/zend/zend_f.php +++ b/zend/zend_f.php @@ -7,16 +7,14 @@ * can be used to indicate an error in the script logic (e.g. database connection problem) * @param string $error_string the error string to display */ -function set_job_failed( $error_string ){}; - - +function set_job_failed($error_string) {}; /** * returns array containing following fields: * "license_ok" - whether license allows use of JobQueue * "expires" - license expiration date */ -function jobqueue_license_info(){}; +function jobqueue_license_info() {}; /** * Create Java object @@ -26,7 +24,6 @@ function jobqueue_license_info(){}; */ function java($class) {} - /** * Return Java exception object for last exception * @return object|false Java Exception object, if there was an exception, false otherwise @@ -77,7 +74,6 @@ function java_reload($new_jarpath) {} */ function java_require($new_classpath) {} - /** * Shown if loader is enabled * @return bool @@ -150,5 +146,3 @@ function zend_get_id($all_ids = false) {} function zend_optimizer_version() {} // End of Zend Extensions - -?> diff --git a/zip/zip.php b/zip/zip.php index fc077c225..20ace1d93 100644 --- a/zip/zip.php +++ b/zip/zip.php @@ -6,564 +6,565 @@ * A file archive, compressed with Zip. * @link https://php.net/manual/en/class.ziparchive.php */ -class ZipArchive implements Countable { - /** - * Zip library version - * @link https://php.net/manual/en/zip.constants.php - * @since 7.4.3 - */ - const LIBZIP_VERSION = '1.5.1'; - - /** - * Create the archive if it does not exist. - * @link https://php.net/manual/en/zip.constants.php - */ - const CREATE = 1; - - /** - * Error if archive already exists. - * @link https://php.net/manual/en/zip.constants.php - */ - const EXCL = 2; - - /** - * Perform additional consistency checks on the archive, and error if they fail. - * @link https://php.net/manual/en/zip.constants.php - */ - const CHECKCONS = 4; - - /** - * Always start a new archive, this mode will overwrite the file if - * it already exists. - * @link https://php.net/manual/en/zip.constants.php - */ - const OVERWRITE = 8; - - /** - * Ignore case on name lookup - * @link https://php.net/manual/en/zip.constants.php - */ - const FL_NOCASE = 1; - - /** - * Ignore directory component - * @link https://php.net/manual/en/zip.constants.php - */ - const FL_NODIR = 2; - - /** - * Read compressed data - * @link https://php.net/manual/en/zip.constants.php - */ - const FL_COMPRESSED = 4; - - /** - * Use original data, ignoring changes. - * @link https://php.net/manual/en/zip.constants.php - */ - const FL_UNCHANGED = 8; - - /** - * better of deflate or store. - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_DEFAULT = -1; - - /** - * stored (uncompressed). - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_STORE = 0; - - /** - * shrunk - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_SHRINK = 1; - - /** - * reduced with factor 1 - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_REDUCE_1 = 2; - - /** - * reduced with factor 2 - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_REDUCE_2 = 3; - - /** - * reduced with factor 3 - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_REDUCE_3 = 4; - - /** - * reduced with factor 4 - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_REDUCE_4 = 5; - - /** - * imploded - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_IMPLODE = 6; - - /** - * deflated - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_DEFLATE = 8; - - /** - * deflate64 - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_DEFLATE64 = 9; - - /** - * PKWARE imploding - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_PKWARE_IMPLODE = 10; - - /** - * BZIP2 algorithm - * @link https://php.net/manual/en/zip.constants.php - */ - const CM_BZIP2 = 12; - const CM_LZMA = 14; - const CM_TERSE = 18; - const CM_LZ77 = 19; - const CM_WAVPACK = 97; - const CM_PPMD = 98; - - /** - * No error. - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_OK = 0; - - /** - * Multi-disk zip archives not supported. - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_MULTIDISK = 1; - - /** - * Renaming temporary file failed. - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_RENAME = 2; - - /** - * Closing zip archive failed - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_CLOSE = 3; - - /** - * Seek error - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_SEEK = 4; - - /** - * Read error - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_READ = 5; - - /** - * Write error - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_WRITE = 6; - - /** - * CRC error - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_CRC = 7; - - /** - * Containing zip archive was closed - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_ZIPCLOSED = 8; - - /** - * No such file. - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_NOENT = 9; - - /** - * File already exists - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_EXISTS = 10; - - /** - * Can't open file - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_OPEN = 11; - - /** - * Failure to create temporary file. - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_TMPOPEN = 12; - - /** - * Zlib error - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_ZLIB = 13; - - /** - * Memory allocation failure - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_MEMORY = 14; - - /** - * Entry has been changed - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_CHANGED = 15; - - /** - * Compression method not supported. - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_COMPNOTSUPP = 16; - - /** - * Premature EOF - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_EOF = 17; - - /** - * Invalid argument - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_INVAL = 18; - - /** - * Not a zip archive - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_NOZIP = 19; - - /** - * Internal error - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_INTERNAL = 20; - - /** - * Zip archive inconsistent - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_INCONS = 21; - - /** - * Can't remove file - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_REMOVE = 22; - - /** - * Entry has been deleted - * @link https://php.net/manual/en/zip.constants.php - */ - const ER_DELETED = 23; - - /** - * No encryption - * @link https://secure.php.net/manual/en/zip.constants.php - * @since 7.2 - */ - const EM_NONE = 0; - - /** - * AES 128 encryption - * @link https://secure.php.net/manual/en/zip.constants.php - * @since 7.2 - */ - const EM_AES_128 = 257; - - /** - * AES 192 encryption - * @link https://secure.php.net/manual/en/zip.constants.php - * @since 7.2 - */ - const EM_AES_192 = 258; - - /** - * AES 256 encryption - * @link https://secure.php.net/manual/en/zip.constants.php - * @since 7.2 - */ - const EM_AES_256 = 259; - - /** +class ZipArchive implements Countable +{ + /** + * Zip library version + * @link https://php.net/manual/en/zip.constants.php + * @since 7.4.3 + */ + public const LIBZIP_VERSION = '1.5.1'; + + /** + * Create the archive if it does not exist. + * @link https://php.net/manual/en/zip.constants.php + */ + public const CREATE = 1; + + /** + * Error if archive already exists. + * @link https://php.net/manual/en/zip.constants.php + */ + public const EXCL = 2; + + /** + * Perform additional consistency checks on the archive, and error if they fail. + * @link https://php.net/manual/en/zip.constants.php + */ + public const CHECKCONS = 4; + + /** + * Always start a new archive, this mode will overwrite the file if + * it already exists. + * @link https://php.net/manual/en/zip.constants.php + */ + public const OVERWRITE = 8; + + /** + * Ignore case on name lookup + * @link https://php.net/manual/en/zip.constants.php + */ + public const FL_NOCASE = 1; + + /** + * Ignore directory component + * @link https://php.net/manual/en/zip.constants.php + */ + public const FL_NODIR = 2; + + /** + * Read compressed data + * @link https://php.net/manual/en/zip.constants.php + */ + public const FL_COMPRESSED = 4; + + /** + * Use original data, ignoring changes. + * @link https://php.net/manual/en/zip.constants.php + */ + public const FL_UNCHANGED = 8; + + /** + * better of deflate or store. + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_DEFAULT = -1; + + /** + * stored (uncompressed). + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_STORE = 0; + + /** + * shrunk + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_SHRINK = 1; + + /** + * reduced with factor 1 + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_REDUCE_1 = 2; + + /** + * reduced with factor 2 + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_REDUCE_2 = 3; + + /** + * reduced with factor 3 + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_REDUCE_3 = 4; + + /** + * reduced with factor 4 + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_REDUCE_4 = 5; + + /** + * imploded + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_IMPLODE = 6; + + /** + * deflated + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_DEFLATE = 8; + + /** + * deflate64 + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_DEFLATE64 = 9; + + /** + * PKWARE imploding + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_PKWARE_IMPLODE = 10; + + /** + * BZIP2 algorithm + * @link https://php.net/manual/en/zip.constants.php + */ + public const CM_BZIP2 = 12; + public const CM_LZMA = 14; + public const CM_TERSE = 18; + public const CM_LZ77 = 19; + public const CM_WAVPACK = 97; + public const CM_PPMD = 98; + + /** + * No error. + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_OK = 0; + + /** + * Multi-disk zip archives not supported. + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_MULTIDISK = 1; + + /** + * Renaming temporary file failed. + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_RENAME = 2; + + /** + * Closing zip archive failed + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_CLOSE = 3; + + /** + * Seek error + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_SEEK = 4; + + /** + * Read error + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_READ = 5; + + /** + * Write error + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_WRITE = 6; + + /** + * CRC error + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_CRC = 7; + + /** + * Containing zip archive was closed + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_ZIPCLOSED = 8; + + /** + * No such file. + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_NOENT = 9; + + /** + * File already exists + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_EXISTS = 10; + + /** + * Can't open file + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_OPEN = 11; + + /** + * Failure to create temporary file. + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_TMPOPEN = 12; + + /** + * Zlib error + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_ZLIB = 13; + + /** + * Memory allocation failure + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_MEMORY = 14; + + /** + * Entry has been changed + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_CHANGED = 15; + + /** + * Compression method not supported. + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_COMPNOTSUPP = 16; + + /** + * Premature EOF + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_EOF = 17; + + /** + * Invalid argument + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_INVAL = 18; + + /** + * Not a zip archive + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_NOZIP = 19; + + /** + * Internal error + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_INTERNAL = 20; + + /** + * Zip archive inconsistent + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_INCONS = 21; + + /** + * Can't remove file + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_REMOVE = 22; + + /** + * Entry has been deleted + * @link https://php.net/manual/en/zip.constants.php + */ + public const ER_DELETED = 23; + + /** + * No encryption + * @link https://secure.php.net/manual/en/zip.constants.php + * @since 7.2 + */ + public const EM_NONE = 0; + + /** + * AES 128 encryption + * @link https://secure.php.net/manual/en/zip.constants.php + * @since 7.2 + */ + public const EM_AES_128 = 257; + + /** + * AES 192 encryption + * @link https://secure.php.net/manual/en/zip.constants.php + * @since 7.2 + */ + public const EM_AES_192 = 258; + + /** + * AES 256 encryption + * @link https://secure.php.net/manual/en/zip.constants.php + * @since 7.2 + */ + public const EM_AES_256 = 259; + + /** * Open archive in read only mode - * @link https://secure.php.net/manual/en/zip.constants.php - * @since 7.4.3 - */ - const RDONLY = 260; + * @link https://secure.php.net/manual/en/zip.constants.php + * @since 7.4.3 + */ + public const RDONLY = 260; /** * Guess string encoding (is default) * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.0.8 */ - const FL_ENC_GUESS = 261; + public const FL_ENC_GUESS = 261; /** * Get unmodified string * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.0.8 */ - const FL_ENC_RAW = 262; + public const FL_ENC_RAW = 262; /** * Follow specification strictly * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.0.8 */ - const FL_ENC_STRICT = 263; + public const FL_ENC_STRICT = 263; /** * String is UTF-8 encoded * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.0.8 */ - const FL_ENC_UTF_8 = 264; + public const FL_ENC_UTF_8 = 264; /** * String is CP437 encoded * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.0.8 */ - const FL_ENC_CP437 = 265; + public const FL_ENC_CP437 = 265; /** * LZMA2 algorithm * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const CM_LZMA2 = 266; + public const CM_LZMA2 = 266; /** * XZ algorithm * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const CM_XZ = 267; + public const CM_XZ = 267; /** * Encryption method not support * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const ER_ENCRNOTSUPP = 268; + public const ER_ENCRNOTSUPP = 268; /** * Read-only archive * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const ER_RDONLY = 269; + public const ER_RDONLY = 269; /** * No password provided * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const ER_NOPASSWD = 270; + public const ER_NOPASSWD = 270; /** * Wrong password provided * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const ER_WRONGPASSWD = 271; + public const ER_WRONGPASSWD = 271; /** * Operation not supported * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const ER_OPNOTSUPP = 272; + public const ER_OPNOTSUPP = 272; /** * Resource still in use * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const ER_INUSE = 273; + public const ER_INUSE = 273; /** * Tell error * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const ER_TELL = 274; + public const ER_TELL = 274; /** * Compressed data invalid * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const ER_COMPRESSED_DATA = 275; + public const ER_COMPRESSED_DATA = 275; /** * Operation cancelled * @link https://secure.php.net/manual/en/zip.constants.php * @since 7.4.3 */ - const ER_CANCELLED = 276; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_DOS = 0; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_AMIGA = 1; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_OPENVMS = 2; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_UNIX = 3; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_VM_CMS = 4; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_ATARI_ST = 5; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_OS_2 = 6; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_MACINTOSH = 7; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_Z_SYSTEM = 8; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @removed 8.0 Use {@link ZipArchive::ZOPSYS_CPM} instead. - * @since 5.6 - */ - const OPSYS_Z_CPM = 9; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_WINDOWS_NTFS = 10; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_MVS = 11; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_VSE = 12; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_ACORN_RISC = 13; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_VFAT = 14; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_ALTERNATE_MVS = 15; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_BEOS = 16; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_TANDEM = 17; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_OS_400 = 18; - - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_OS_X = 19; + public const ER_CANCELLED = 276; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_DOS = 0; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_AMIGA = 1; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_OPENVMS = 2; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_UNIX = 3; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_VM_CMS = 4; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_ATARI_ST = 5; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_OS_2 = 6; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_MACINTOSH = 7; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_Z_SYSTEM = 8; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @removed 8.0 Use {@link ZipArchive::ZOPSYS_CPM} instead. + * @since 5.6 + */ + public const OPSYS_Z_CPM = 9; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_WINDOWS_NTFS = 10; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_MVS = 11; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_VSE = 12; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_ACORN_RISC = 13; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_VFAT = 14; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_ALTERNATE_MVS = 15; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_BEOS = 16; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_TANDEM = 17; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_OS_400 = 18; + + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_OS_X = 19; /** * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default */ - const OPSYS_CPM = 20; + public const OPSYS_CPM = 20; - /** - * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default - * @since 5.6 - */ - const OPSYS_DEFAULT = 3; + /** + * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default + * @since 5.6 + */ + public const OPSYS_DEFAULT = 3; - /** + /** * Status of the Zip Archive */ public $status; @@ -586,301 +587,300 @@ class ZipArchive implements Countable { public $lastId; + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Open a ZIP file archive + * + * @link https://php.net/manual/en/ziparchive.open.php + * + * @param string $filename

    + * The file name of the ZIP archive to open. + *

    + * @param int $flags [optional]

    + * The mode to use to open the archive. + *

    + *

    + * ZipArchive::OVERWRITE + *

    + * + * @return mixed Error codes + *

    + * Returns TRUE on success or the error code. + *

    + *

    + * ZipArchive::ER_EXISTS + *

    + *

    + * File already exists. + *

    + *

    + * ZipArchive::ER_INCONS + *

    + *

    + * Zip archive inconsistent. + *

    + *

    + * ZipArchive::ER_INVAL + *

    + *

    + * Invalid argument. + *

    + *

    + * ZipArchive::ER_MEMORY + *

    + *

    + * Malloc failure. + *

    + *

    + * ZipArchive::ER_NOENT + *

    + *

    + * No such file. + *

    + *

    + * ZipArchive::ER_NOZIP + *

    + *

    + * Not a zip archive. + *

    + *

    + * ZipArchive::ER_OPEN + *

    + *

    + * Can't open file. + *

    + *

    + * ZipArchive::ER_READ + *

    + *

    + * Read error. + *

    + *

    + * ZipArchive::ER_SEEK + *

    + *

    + * Seek error. + *

    + */ + public function open($filename, $flags = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Close the active archive (opened or newly created) + * @link https://php.net/manual/en/ziparchive.close.php + * @return bool TRUE on success or FALSE on failure. + */ + public function close() {} + + /** + * (PHP 7 >= 7.2.0, PECL zip >= 1.15.0)
    + * Counts the number of files in the archive. + * @link https://www.php.net/manual/en/ziparchive.count.php + * @return int + * @since 7.2 + */ + public function count() {} + + /** + * Returns the status error message, system and/or zip messages + * @link https://php.net/manual/en/ziparchive.getstatusstring.php + * @return string|false a string with the status message on success or FALSE on failure. + * @since 5.2.7 + */ + public function getStatusString() {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.8.0)
    + * Add a new directory + * @link https://php.net/manual/en/ziparchive.addemptydir.php + * @param string $dirname

    + * The directory to add. + *

    + * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE) + * @return bool TRUE on success or FALSE on failure. + */ + public function addEmptyDir($dirname, $flags) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Add a file to a ZIP archive using its contents + * @link https://php.net/manual/en/ziparchive.addfromstring.php + * @param string $localname

    + * The name of the entry to create. + *

    + * @param string $contents

    + * The contents to use to create the entry. It is used in a binary + * safe mode. + *

    + * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE) + * @return bool TRUE on success or FALSE on failure. + */ + public function addFromString($localname, $contents, $flags) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Adds a file to a ZIP archive from the given path + * @link https://php.net/manual/en/ziparchive.addfile.php + * @param string $filename

    + * The path to the file to add. + *

    + * @param string $localname [optional]

    + * If supplied, this is the local name inside the ZIP archive that will override the filename. + *

    + * @param int $start [optional]

    + * This parameter is not used but is required to extend ZipArchive. + *

    + * @param int $length [optional]

    + * This parameter is not used but is required to extend ZipArchive. + *

    + * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE) + * @return bool TRUE on success or FALSE on failure. + */ + public function addFile($filename, $localname = null, $start = 0, $length = 0, $flags) {} + + /** + * (PHP 5 >= 5.3.0, PECL zip >= 1.9.0)
    + * Add files from a directory by glob pattern + * @link https://php.net/manual/en/ziparchive.addglob.php + * @param string $pattern

    + * A glob pattern against which files will be matched. + *

    + * @param int $flags [optional]

    + * A bit mask of glob() flags. + *

    + * @param array $options [optional]

    + * An associative array of options. Available options are: + *

    + *

    + * "add_path" + *

    + *

    + * Prefix to prepend when translating to the local path of the file within + * the archive. This is applied after any remove operations defined by the + * "remove_path" or "remove_all_path" + * options. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function addGlob($pattern, $flags = 0, array $options = []) {} + + /** + * (PHP 5 >= 5.3.0, PECL zip >= 1.9.0)
    + * Add files from a directory by PCRE pattern + * @link https://php.net/manual/en/ziparchive.addpattern.php + * @param string $pattern

    + * A PCRE pattern against which files will be matched. + *

    + * @param string $path [optional]

    + * The directory that will be scanned. Defaults to the current working directory. + *

    + * @param array $options [optional]

    + * An associative array of options accepted by ZipArchive::addGlob. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function addPattern($pattern, $path = '.', array $options = []) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    + * Renames an entry defined by its index + * @link https://php.net/manual/en/ziparchive.renameindex.php + * @param int $index

    + * Index of the entry to rename. + *

    + * @param string $newname

    + * New name. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function renameIndex($index, $newname) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    + * Renames an entry defined by its name + * @link https://php.net/manual/en/ziparchive.renamename.php + * @param string $name

    + * Name of the entry to rename. + *

    + * @param string $newname

    + * New name. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function renameName($name, $newname) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)
    + * Set the comment of a ZIP archive + * @link https://php.net/manual/en/ziparchive.setarchivecomment.php + * @param string $comment

    + * The contents of the comment. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setArchiveComment($comment) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Returns the Zip archive comment + * @link https://php.net/manual/en/ziparchive.getarchivecomment.php + * @param int $flags [optional]

    + * If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged + * comment is returned. + *

    + * @return string|false the Zip archive comment or FALSE on failure. + */ + public function getArchiveComment($flags = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)
    + * Set the comment of an entry defined by its index + * @link https://php.net/manual/en/ziparchive.setcommentindex.php + * @param int $index

    + * Index of the entry. + *

    + * @param string $comment

    + * The contents of the comment. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setCommentIndex($index, $comment) {} - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Open a ZIP file archive - * - * @link https://php.net/manual/en/ziparchive.open.php - * - * @param string $filename

    - * The file name of the ZIP archive to open. - *

    - * @param int $flags [optional]

    - * The mode to use to open the archive. - *

    - *

    - * ZipArchive::OVERWRITE - *

    - * - * @return mixed Error codes - *

    - * Returns TRUE on success or the error code. - *

    - *

    - * ZipArchive::ER_EXISTS - *

    - *

    - * File already exists. - *

    - *

    - * ZipArchive::ER_INCONS - *

    - *

    - * Zip archive inconsistent. - *

    - *

    - * ZipArchive::ER_INVAL - *

    - *

    - * Invalid argument. - *

    - *

    - * ZipArchive::ER_MEMORY - *

    - *

    - * Malloc failure. - *

    - *

    - * ZipArchive::ER_NOENT - *

    - *

    - * No such file. - *

    - *

    - * ZipArchive::ER_NOZIP - *

    - *

    - * Not a zip archive. - *

    - *

    - * ZipArchive::ER_OPEN - *

    - *

    - * Can't open file. - *

    - *

    - * ZipArchive::ER_READ - *

    - *

    - * Read error. - *

    - *

    - * ZipArchive::ER_SEEK - *

    - *

    - * Seek error. - *

    - */ - public function open ($filename, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Close the active archive (opened or newly created) - * @link https://php.net/manual/en/ziparchive.close.php - * @return bool TRUE on success or FALSE on failure. - */ - public function close () {} - - /** - * (PHP 7 >= 7.2.0, PECL zip >= 1.15.0)
    - * Counts the number of files in the archive. - * @link https://www.php.net/manual/en/ziparchive.count.php - * @return int - * @since 7.2 - */ - public function count() {} - - /** - * Returns the status error message, system and/or zip messages - * @link https://php.net/manual/en/ziparchive.getstatusstring.php - * @return string|false a string with the status message on success or FALSE on failure. - * @since 5.2.7 - */ - public function getStatusString () {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.8.0)
    - * Add a new directory - * @link https://php.net/manual/en/ziparchive.addemptydir.php - * @param string $dirname

    - * The directory to add. - *

    - * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE) - * @return bool TRUE on success or FALSE on failure. - */ - public function addEmptyDir ($dirname, $flags) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Add a file to a ZIP archive using its contents - * @link https://php.net/manual/en/ziparchive.addfromstring.php - * @param string $localname

    - * The name of the entry to create. - *

    - * @param string $contents

    - * The contents to use to create the entry. It is used in a binary - * safe mode. - *

    - * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE) - * @return bool TRUE on success or FALSE on failure. - */ - public function addFromString ($localname, $contents, $flags) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Adds a file to a ZIP archive from the given path - * @link https://php.net/manual/en/ziparchive.addfile.php - * @param string $filename

    - * The path to the file to add. - *

    - * @param string $localname [optional]

    - * If supplied, this is the local name inside the ZIP archive that will override the filename. - *

    - * @param int $start [optional]

    - * This parameter is not used but is required to extend ZipArchive. - *

    - * @param int $length [optional]

    - * This parameter is not used but is required to extend ZipArchive. - *

    - * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE) - * @return bool TRUE on success or FALSE on failure. - */ - public function addFile ($filename, $localname = null, $start = 0, $length = 0, $flags) {} - - /** - * (PHP 5 >= 5.3.0, PECL zip >= 1.9.0)
    - * Add files from a directory by glob pattern - * @link https://php.net/manual/en/ziparchive.addglob.php - * @param string $pattern

    - * A glob pattern against which files will be matched. - *

    - * @param int $flags [optional]

    - * A bit mask of glob() flags. - *

    - * @param array $options [optional]

    - * An associative array of options. Available options are: - *

    - *

    - * "add_path" - *

    - *

    - * Prefix to prepend when translating to the local path of the file within - * the archive. This is applied after any remove operations defined by the - * "remove_path" or "remove_all_path" - * options. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function addGlob ($pattern, $flags = 0, array $options = array()) {} - - /** - * (PHP 5 >= 5.3.0, PECL zip >= 1.9.0)
    - * Add files from a directory by PCRE pattern - * @link https://php.net/manual/en/ziparchive.addpattern.php - * @param string $pattern

    - * A PCRE pattern against which files will be matched. - *

    - * @param string $path [optional]

    - * The directory that will be scanned. Defaults to the current working directory. - *

    - * @param array $options [optional]

    - * An associative array of options accepted by ZipArchive::addGlob. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function addPattern ($pattern, $path = '.', array $options = array()) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    - * Renames an entry defined by its index - * @link https://php.net/manual/en/ziparchive.renameindex.php - * @param int $index

    - * Index of the entry to rename. - *

    - * @param string $newname

    - * New name. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function renameIndex ($index, $newname) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    - * Renames an entry defined by its name - * @link https://php.net/manual/en/ziparchive.renamename.php - * @param string $name

    - * Name of the entry to rename. - *

    - * @param string $newname

    - * New name. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function renameName ($name, $newname) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)
    - * Set the comment of a ZIP archive - * @link https://php.net/manual/en/ziparchive.setarchivecomment.php - * @param string $comment

    - * The contents of the comment. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setArchiveComment ($comment) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Returns the Zip archive comment - * @link https://php.net/manual/en/ziparchive.getarchivecomment.php - * @param int $flags [optional]

    - * If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged - * comment is returned. - *

    - * @return string|false the Zip archive comment or FALSE on failure. - */ - public function getArchiveComment ($flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)
    - * Set the comment of an entry defined by its index - * @link https://php.net/manual/en/ziparchive.setcommentindex.php - * @param int $index

    - * Index of the entry. - *

    - * @param string $comment

    - * The contents of the comment. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setCommentIndex ($index, $comment) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)
    - * Set the comment of an entry defined by its name - * @link https://php.net/manual/en/ziparchive.setcommentname.php - * @param string $name

    - * Name of the entry. - *

    - * @param string $comment

    - * The contents of the comment. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function setCommentName ($name, $comment) {} - - /** - * Set the compression method of an entry defined by its index - * @link https://php.net/manual/en/ziparchive.setcompressionindex.php - * @param int $index Index of the entry. - * @param int $comp_method The compression method. Either ZipArchive::CM_DEFAULT, ZipArchive::CM_STORE or ZipArchive::CM_DEFLATE. - * @param int $comp_flags [optional] Compression flags. Currently unused. - * @return bool Returns TRUE on success or FALSE on failure. - * @since 7.0 - */ - public function setCompressionIndex ($index, $comp_method, $comp_flags = 0) {} - - /** - * Set the compression method of an entry defined by its name - * https://secure.php.net/manual/en/ziparchive.setcompressionname.php - * @param string $name Name of the entry. - * @param int $comp_method The compression method. Either ZipArchive::CM_DEFAULT, ZipArchive::CM_STORE or ZipArchive::CM_DEFLATE. - * @param int $comp_flags [optional] Compression flags. Currently unused. - * @return bool Returns TRUE on success or FALSE on failure. - * @since 7.0 - */ - public function setCompressionName ($name, $comp_method, $comp_flags = 0){} + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)
    + * Set the comment of an entry defined by its name + * @link https://php.net/manual/en/ziparchive.setcommentname.php + * @param string $name

    + * Name of the entry. + *

    + * @param string $comment

    + * The contents of the comment. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function setCommentName($name, $comment) {} + + /** + * Set the compression method of an entry defined by its index + * @link https://php.net/manual/en/ziparchive.setcompressionindex.php + * @param int $index Index of the entry. + * @param int $comp_method The compression method. Either ZipArchive::CM_DEFAULT, ZipArchive::CM_STORE or ZipArchive::CM_DEFLATE. + * @param int $comp_flags [optional] Compression flags. Currently unused. + * @return bool Returns TRUE on success or FALSE on failure. + * @since 7.0 + */ + public function setCompressionIndex($index, $comp_method, $comp_flags = 0) {} + + /** + * Set the compression method of an entry defined by its name + * https://secure.php.net/manual/en/ziparchive.setcompressionname.php + * @param string $name Name of the entry. + * @param int $comp_method The compression method. Either ZipArchive::CM_DEFAULT, ZipArchive::CM_STORE or ZipArchive::CM_DEFLATE. + * @param int $comp_flags [optional] Compression flags. Currently unused. + * @return bool Returns TRUE on success or FALSE on failure. + * @since 7.0 + */ + public function setCompressionName($name, $comp_method, $comp_flags = 0) {} /** * Set the encryption method of an entry defined by its index @@ -891,7 +891,7 @@ public function setCompressionName ($name, $comp_method, $comp_flags = 0){} * @return bool Returns TRUE on success or FALSE on failure. * @since 7.2 */ - public function setEncryptionIndex (int $index, int $method, ?string $password = null) {} + public function setEncryptionIndex(int $index, int $method, ?string $password = null) {} /** * Set the encryption method of an entry defined by its name @@ -902,7 +902,7 @@ public function setEncryptionIndex (int $index, int $method, ?string $password = * @return bool Returns TRUE on success or FALSE on failure. * @since 7.2 */ - public function setEncryptionName (string $name, int $method, ?string $password = null) {} + public function setEncryptionName(string $name, int $method, ?string $password = null) {} /** * (PHP 5 >= 5.6.0, PECL zip >= 1.12.0)
    @@ -911,239 +911,239 @@ public function setEncryptionName (string $name, int $method, ?string $password */ public function setPassword($password) {} - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)
    - * Returns the comment of an entry using the entry index - * @link https://php.net/manual/en/ziparchive.getcommentindex.php - * @param int $index

    - * Index of the entry - *

    - * @param int $flags [optional]

    - * If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged - * comment is returned. - *

    - * @return string|false the comment on success or FALSE on failure. - */ - public function getCommentIndex ($index, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)
    - * Returns the comment of an entry using the entry name - * @link https://php.net/manual/en/ziparchive.getcommentname.php - * @param string $name

    - * Name of the entry - *

    - * @param int $flags [optional]

    - * If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged - * comment is returned. - *

    - * @return string|false the comment on success or FALSE on failure. - */ - public function getCommentName ($name, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    - * delete an entry in the archive using its index - * @link https://php.net/manual/en/ziparchive.deleteindex.php - * @param int $index

    - * Index of the entry to delete. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function deleteIndex ($index) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    - * delete an entry in the archive using its name - * @link https://php.net/manual/en/ziparchive.deletename.php - * @param string $name

    - * Name of the entry to delete. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function deleteName ($name) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    - * Get the details of an entry defined by its name. - * @link https://php.net/manual/en/ziparchive.statname.php - * @param string $name

    - * Name of the entry - *

    - * @param int $flags [optional]

    - * The flags argument specifies how the name lookup should be done. - * Also, ZipArchive::FL_UNCHANGED may be ORed to it to request - * information about the original file in the archive, - * ignoring any changes made. - * ZipArchive::FL_NOCASE - *

    - * @return array|false an array containing the entry details or FALSE on failure. - */ - public function statName ($name, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Get the details of an entry defined by its index. - * @link https://php.net/manual/en/ziparchive.statindex.php - * @param int $index

    - * Index of the entry - *

    - * @param int $flags [optional]

    - * ZipArchive::FL_UNCHANGED may be ORed to it to request - * information about the original file in the archive, - * ignoring any changes made. - *

    - * @return array|false an array containing the entry details or FALSE on failure. - */ - public function statIndex ($index, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    - * Returns the index of the entry in the archive - * @link https://php.net/manual/en/ziparchive.locatename.php - * @param string $name

    - * The name of the entry to look up - *

    - * @param int $flags [optional]

    - * The flags are specified by ORing the following values, - * or 0 for none of them. - * ZipArchive::FL_NOCASE - *

    - * @return int|false the index of the entry on success or FALSE on failure. - */ - public function locateName ($name, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    - * Returns the name of an entry using its index - * @link https://php.net/manual/en/ziparchive.getnameindex.php - * @param int $index

    - * Index of the entry. - *

    - * @param int $flags [optional]

    - * If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged - * name is returned. - *

    - * @return string|false the name on success or FALSE on failure. - */ - public function getNameIndex ($index, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Revert all global changes done in the archive. - * @link https://php.net/manual/en/ziparchive.unchangearchive.php - * @return bool TRUE on success or FALSE on failure. - */ - public function unchangeArchive () {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Undo all changes done in the archive - * @link https://php.net/manual/en/ziparchive.unchangeall.php - * @return bool TRUE on success or FALSE on failure. - */ - public function unchangeAll () {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Revert all changes done to an entry at the given index - * @link https://php.net/manual/en/ziparchive.unchangeindex.php - * @param int $index

    - * Index of the entry. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function unchangeIndex ($index) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    - * Revert all changes done to an entry with the given name. - * @link https://php.net/manual/en/ziparchive.unchangename.php - * @param string $name

    - * Name of the entry. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function unchangeName ($name) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Extract the archive contents - * @link https://php.net/manual/en/ziparchive.extractto.php - * @param string $destination

    - * Location where to extract the files. - *

    - * @param mixed $entries [optional]

    - * The entries to extract. It accepts either a single entry name or - * an array of names. - *

    - * @return bool TRUE on success or FALSE on failure. - */ - public function extractTo ($destination, $entries = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Returns the entry contents using its name - * @link https://php.net/manual/en/ziparchive.getfromname.php - * @param string $name

    - * Name of the entry - *

    - * @param int $length [optional]

    - * The length to be read from the entry. If 0, then the - * entire entry is read. - *

    - * @param int $flags [optional]

    - * The flags to use to open the archive. the following values may - * be ORed to it. - * ZipArchive::FL_UNCHANGED - *

    - * @return string|false the contents of the entry on success or FALSE on failure. - */ - public function getFromName ($name, $length = 0, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.3.0)
    - * Returns the entry contents using its index - * @link https://php.net/manual/en/ziparchive.getfromindex.php - * @param int $index

    - * Index of the entry - *

    - * @param int $length [optional]

    - * The length to be read from the entry. If 0, then the - * entire entry is read. - *

    - * @param int $flags [optional]

    - * The flags to use to open the archive. the following values may - * be ORed to it. - *

    - *

    - * ZipArchive::FL_UNCHANGED - *

    - * @return string|false the contents of the entry on success or FALSE on failure. - */ - public function getFromIndex ($index, $length = 0, $flags = null) {} - - /** - * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    - * Get a file handler to the entry defined by its name (read only). - * @link https://php.net/manual/en/ziparchive.getstream.php - * @param string $name

    - * The name of the entry to use. - *

    - * @return resource|false a file pointer (resource) on success or FALSE on failure. - */ - public function getStream ($name) {} + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)
    + * Returns the comment of an entry using the entry index + * @link https://php.net/manual/en/ziparchive.getcommentindex.php + * @param int $index

    + * Index of the entry + *

    + * @param int $flags [optional]

    + * If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged + * comment is returned. + *

    + * @return string|false the comment on success or FALSE on failure. + */ + public function getCommentIndex($index, $flags = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.4.0)
    + * Returns the comment of an entry using the entry name + * @link https://php.net/manual/en/ziparchive.getcommentname.php + * @param string $name

    + * Name of the entry + *

    + * @param int $flags [optional]

    + * If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged + * comment is returned. + *

    + * @return string|false the comment on success or FALSE on failure. + */ + public function getCommentName($name, $flags = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    + * delete an entry in the archive using its index + * @link https://php.net/manual/en/ziparchive.deleteindex.php + * @param int $index

    + * Index of the entry to delete. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function deleteIndex($index) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    + * delete an entry in the archive using its name + * @link https://php.net/manual/en/ziparchive.deletename.php + * @param string $name

    + * Name of the entry to delete. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function deleteName($name) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    + * Get the details of an entry defined by its name. + * @link https://php.net/manual/en/ziparchive.statname.php + * @param string $name

    + * Name of the entry + *

    + * @param int $flags [optional]

    + * The flags argument specifies how the name lookup should be done. + * Also, ZipArchive::FL_UNCHANGED may be ORed to it to request + * information about the original file in the archive, + * ignoring any changes made. + * ZipArchive::FL_NOCASE + *

    + * @return array|false an array containing the entry details or FALSE on failure. + */ + public function statName($name, $flags = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Get the details of an entry defined by its index. + * @link https://php.net/manual/en/ziparchive.statindex.php + * @param int $index

    + * Index of the entry + *

    + * @param int $flags [optional]

    + * ZipArchive::FL_UNCHANGED may be ORed to it to request + * information about the original file in the archive, + * ignoring any changes made. + *

    + * @return array|false an array containing the entry details or FALSE on failure. + */ + public function statIndex($index, $flags = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    + * Returns the index of the entry in the archive + * @link https://php.net/manual/en/ziparchive.locatename.php + * @param string $name

    + * The name of the entry to look up + *

    + * @param int $flags [optional]

    + * The flags are specified by ORing the following values, + * or 0 for none of them. + * ZipArchive::FL_NOCASE + *

    + * @return int|false the index of the entry on success or FALSE on failure. + */ + public function locateName($name, $flags = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    + * Returns the name of an entry using its index + * @link https://php.net/manual/en/ziparchive.getnameindex.php + * @param int $index

    + * Index of the entry. + *

    + * @param int $flags [optional]

    + * If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged + * name is returned. + *

    + * @return string|false the name on success or FALSE on failure. + */ + public function getNameIndex($index, $flags = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Revert all global changes done in the archive. + * @link https://php.net/manual/en/ziparchive.unchangearchive.php + * @return bool TRUE on success or FALSE on failure. + */ + public function unchangeArchive() {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Undo all changes done in the archive + * @link https://php.net/manual/en/ziparchive.unchangeall.php + * @return bool TRUE on success or FALSE on failure. + */ + public function unchangeAll() {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Revert all changes done to an entry at the given index + * @link https://php.net/manual/en/ziparchive.unchangeindex.php + * @param int $index

    + * Index of the entry. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function unchangeIndex($index) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.5.0)
    + * Revert all changes done to an entry with the given name. + * @link https://php.net/manual/en/ziparchive.unchangename.php + * @param string $name

    + * Name of the entry. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function unchangeName($name) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Extract the archive contents + * @link https://php.net/manual/en/ziparchive.extractto.php + * @param string $destination

    + * Location where to extract the files. + *

    + * @param mixed $entries [optional]

    + * The entries to extract. It accepts either a single entry name or + * an array of names. + *

    + * @return bool TRUE on success or FALSE on failure. + */ + public function extractTo($destination, $entries = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Returns the entry contents using its name + * @link https://php.net/manual/en/ziparchive.getfromname.php + * @param string $name

    + * Name of the entry + *

    + * @param int $length [optional]

    + * The length to be read from the entry. If 0, then the + * entire entry is read. + *

    + * @param int $flags [optional]

    + * The flags to use to open the archive. the following values may + * be ORed to it. + * ZipArchive::FL_UNCHANGED + *

    + * @return string|false the contents of the entry on success or FALSE on failure. + */ + public function getFromName($name, $length = 0, $flags = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.3.0)
    + * Returns the entry contents using its index + * @link https://php.net/manual/en/ziparchive.getfromindex.php + * @param int $index

    + * Index of the entry + *

    + * @param int $length [optional]

    + * The length to be read from the entry. If 0, then the + * entire entry is read. + *

    + * @param int $flags [optional]

    + * The flags to use to open the archive. the following values may + * be ORed to it. + *

    + *

    + * ZipArchive::FL_UNCHANGED + *

    + * @return string|false the contents of the entry on success or FALSE on failure. + */ + public function getFromIndex($index, $length = 0, $flags = null) {} + + /** + * (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
    + * Get a file handler to the entry defined by its name (read only). + * @link https://php.net/manual/en/ziparchive.getstream.php + * @param string $name

    + * The name of the entry to use. + *

    + * @return resource|false a file pointer (resource) on success or FALSE on failure. + */ + public function getStream($name) {} /** * Set the external attributes of an entry defined by its name * @link https://www.php.net/manual/en/ziparchive.setexternalattributesname.php * @param string $name Name of the entry * @param int $opsys The operating system code defined by one of the ZipArchive::OPSYS_ constants. - * @param int $attr The external attributes. Value depends on operating system. - * @param int $flags [optional] Optional flags. Currently unused. - * @return bool Returns TRUE on success or FALSE on failure. + * @param int $attr The external attributes. Value depends on operating system. + * @param int $flags [optional] Optional flags. Currently unused. + * @return bool Returns TRUE on success or FALSE on failure. */ - public function setExternalAttributesName($name, $opsys, $attr, $flags = null) {} + public function setExternalAttributesName($name, $opsys, $attr, $flags = null) {} /** * Retrieve the external attributes of an entry defined by its name @@ -1165,7 +1165,7 @@ public function getExternalAttributesName($name, &$opsys, &$attr, $flags = null) * @param int $flags [optional] Optional flags. Currently unused. * @return bool Returns TRUE on success or FALSE on failure. */ - public function setExternalAttributesIndex($index, $opsys, $attr, $flags = null) {} + public function setExternalAttributesIndex($index, $opsys, $attr, $flags = null) {} /** * Retrieve the external attributes of an entry defined by its index @@ -1192,7 +1192,7 @@ public function getExternalAttributesIndex($index, &$opsys, &$attr, $flags = nul * exist or in case of other error. * @deprecated 8.0 Use {@link ZipArchive} instead. */ -function zip_open ($filename) {} +function zip_open($filename) {} /** * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)
    @@ -1204,7 +1204,7 @@ function zip_open ($filename) {} * @return void No value is returned. * @deprecated 8.0 Use {@link ZipArchive} instead. */ -function zip_close ($zip) {} +function zip_close($zip) {} /** * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)
    @@ -1219,7 +1219,7 @@ function zip_close ($zip) {} * occurred. * @deprecated 8.0 Use {@link ZipArchive} instead. */ -function zip_read ($zip) {} +function zip_read($zip) {} /** * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)
    @@ -1248,7 +1248,7 @@ function zip_read ($zip) {} * reading or closing the directory entry. *

    */ -function zip_entry_open ($zip, $zip_entry, $mode = null) {} +function zip_entry_open($zip, $zip_entry, $mode = null) {} /** * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)
    @@ -1260,7 +1260,7 @@ function zip_entry_open ($zip, $zip_entry, $mode = null) {} * @return bool TRUE on success or FALSE on failure. * @deprecated 8.0 Use {@link ZipArchive} instead. */ -function zip_entry_close ($zip_entry) {} +function zip_entry_close($zip_entry) {} /** * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)
    @@ -1278,7 +1278,7 @@ function zip_entry_close ($zip_entry) {} * @return string|false the data read, empty string on end of a file, or FALSE on error. * @deprecated 8.0 Use {@link ZipArchive} instead. */ -function zip_entry_read ($zip_entry, $length = 1024) {} +function zip_entry_read($zip_entry, $length = 1024) {} /** * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)
    @@ -1290,7 +1290,7 @@ function zip_entry_read ($zip_entry, $length = 1024) {} * @return int The size of the directory entry. * @deprecated 8.0 Use {@link ZipArchive} instead. */ -function zip_entry_filesize ($zip_entry) {} +function zip_entry_filesize($zip_entry) {} /** * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)
    @@ -1302,7 +1302,7 @@ function zip_entry_filesize ($zip_entry) {} * @return string The name of the directory entry. * @deprecated 8.0 Use {@link ZipArchive} instead. */ -function zip_entry_name ($zip_entry) {} +function zip_entry_name($zip_entry) {} /** * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)
    @@ -1314,7 +1314,7 @@ function zip_entry_name ($zip_entry) {} * @return int The compressed size. * @deprecated 8.0 Use {@link ZipArchive} instead. */ -function zip_entry_compressedsize ($zip_entry) {} +function zip_entry_compressedsize($zip_entry) {} /** * (PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PECL zip >= 1.0.0)
    @@ -1326,7 +1326,6 @@ function zip_entry_compressedsize ($zip_entry) {} * @return string The compression method. * @deprecated 8.0 Use {@link ZipArchive} instead. */ -function zip_entry_compressionmethod ($zip_entry) {} +function zip_entry_compressionmethod($zip_entry) {} // End of zip v.1.11.0 -?> diff --git a/zlib/zlib.php b/zlib/zlib.php index 5d8b9f0bc..f75c1b1f2 100644 --- a/zlib/zlib.php +++ b/zlib/zlib.php @@ -18,7 +18,7 @@ *

    * @return int|false the number of (uncompressed) bytes read from the file, or FALSE on error */ -function readgzfile (string $filename, int $use_include_path = 0): int|false {} +function readgzfile(string $filename, int $use_include_path = 0): int|false {} /** * Rewind the position of a gz-file pointer @@ -29,8 +29,7 @@ function readgzfile (string $filename, int $use_include_path = 0): int|false {} *

    * @return bool TRUE on success or FALSE on failure. */ -function gzrewind ($stream): bool -{} +function gzrewind($stream): bool {} /** * Close an open gz-file pointer @@ -41,8 +40,7 @@ function gzrewind ($stream): bool *

    * @return bool TRUE on success or FALSE on failure. */ -function gzclose ($stream): bool -{} +function gzclose($stream): bool {} /** * Test for EOF on a gz-file pointer @@ -54,7 +52,7 @@ function gzclose ($stream): bool * @return bool TRUE if the gz-file pointer is at EOF or an error occurs; * otherwise returns FALSE. */ -function gzeof ($stream): bool {} +function gzeof($stream): bool {} /** * Get character from gz-file pointer @@ -65,7 +63,7 @@ function gzeof ($stream): bool {} *

    * @return string|false The uncompressed character or FALSE on EOF (unlike gzeof). */ -function gzgetc ($stream): string|false {} +function gzgetc($stream): string|false {} /** * Get line from file pointer @@ -79,7 +77,7 @@ function gzgetc ($stream): string|false {} *

    * @return string|false The uncompressed string, or FALSE on error. */ -function gzgets ($stream, ?int $length = 1024): string|false {} +function gzgets($stream, ?int $length = 1024): string|false {} /** * Get line from gz-file pointer and strip HTML tags @@ -99,8 +97,7 @@ function gzgets ($stream, ?int $length = 1024): string|false {} * @removed 8.0 */ #[Deprecated(since: "7.3")] -function gzgetss ($zp, int $length, $allowable_tags) -{} +function gzgetss($zp, int $length, $allowable_tags) {} /** * Binary-safe gz-file read @@ -114,7 +111,7 @@ function gzgetss ($zp, int $length, $allowable_tags) *

    * @return string|false The data that have been read. */ -function gzread ($stream, int $length): string|false {} +function gzread($stream, int $length): string|false {} /** * Open gz-file @@ -143,7 +140,7 @@ function gzread ($stream, int $length): string|false {} *

    * If the open fails, the function returns FALSE. */ -function gzopen (string $filename, string $mode, int $use_include_path = 0) {} +function gzopen(string $filename, string $mode, int $use_include_path = 0) {} /** * Output all remaining data on a gz-file pointer @@ -155,8 +152,7 @@ function gzopen (string $filename, string $mode, int $use_include_path = 0) {} * @return int The number of uncompressed characters read from gz * and passed through to the input, or FALSE on error. */ -function gzpassthru ($stream): int -{} +function gzpassthru($stream): int {} /** * Seek on a gz-file pointer @@ -180,8 +176,7 @@ function gzpassthru ($stream): int * @return int Upon success, returns 0; otherwise, returns -1. Note that seeking * past EOF is not considered an error. */ -function gzseek ($stream, int $offset, int $whence = SEEK_SET): int -{} +function gzseek($stream, int $offset, int $whence = SEEK_SET): int {} /** * Tell gz-file pointer read/write position @@ -192,7 +187,7 @@ function gzseek ($stream, int $offset, int $whence = SEEK_SET): int *

    * @return int|false The position of the file pointer or FALSE if an error occurs. */ -function gztell ($stream): int|false {} +function gztell($stream): int|false {} /** * Binary-safe gz-file write @@ -219,8 +214,7 @@ function gztell ($stream): int|false {} * @return int|false the number of (uncompressed) bytes written to the given gz-file * stream. */ -function gzwrite ($stream, string $data, ?int $length): int|false -{} +function gzwrite($stream, string $data, ?int $length): int|false {} /** * Alias of gzwrite @@ -230,7 +224,7 @@ function gzwrite ($stream, string $data, ?int $length): int|false * @param int|null $length [optional] * @return int|false */ -function gzputs ($stream, string $data, ?int $length): int|false {} +function gzputs($stream, string $data, ?int $length): int|false {} /** * Read entire gz-file into an array @@ -244,7 +238,7 @@ function gzputs ($stream, string $data, ?int $length): int|false {} *

    * @return array|false An array containing the file, one line per cell. */ -function gzfile (string $filename, int $use_include_path = 0): array|false {} +function gzfile(string $filename, int $use_include_path = 0): array|false {} /** * Compress a string @@ -265,7 +259,7 @@ function gzfile (string $filename, int $use_include_path = 0): array|false {} * @return string|false The compressed string or FALSE if an error occurred. */ #[Pure] -function gzcompress (string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string|false {} +function gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string|false {} /** * Uncompress a compressed string @@ -284,7 +278,7 @@ function gzcompress (string $data, int $level = -1, int $encoding = ZLIB_ENCODIN *

    */ #[Pure] -function gzuncompress (string $data, int $max_length = 0): string|false {} +function gzuncompress(string $data, int $max_length = 0): string|false {} /** * Deflate a string @@ -303,7 +297,7 @@ function gzuncompress (string $data, int $max_length = 0): string|false {} * @return string|false The deflated string or FALSE if an error occurred. */ #[Pure] -function gzdeflate (string $data, int $level = -1, int $encoding = ZLIB_ENCODING_RAW): string|false {} +function gzdeflate(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_RAW): string|false {} /** * Inflate a deflated string @@ -322,7 +316,7 @@ function gzdeflate (string $data, int $level = -1, int $encoding = ZLIB_ENCODING *

    */ #[Pure] -function gzinflate (string $data, int $max_length = 0): string|false {} +function gzinflate(string $data, int $max_length = 0): string|false {} /** * Create a gzip compressed string @@ -352,7 +346,7 @@ function gzinflate (string $data, int $max_length = 0): string|false {} * @return string|false The encoded string, or FALSE if an error occurred. */ #[Pure] -function gzencode (string $data, int $level = -1, int $encoding = FORCE_GZIP): string|false {} +function gzencode(string $data, int $level = -1, int $encoding = FORCE_GZIP): string|false {} /** * Decodes a gzip compressed string @@ -367,8 +361,7 @@ function gzencode (string $data, int $level = -1, int $encoding = FORCE_GZIP): s * @since 5.4 */ #[Pure] -function gzdecode (string $data, int $max_length): string|false -{} +function gzdecode(string $data, int $max_length): string|false {} /** * Compress data with the specified encoding @@ -383,7 +376,7 @@ function gzdecode (string $data, int $max_length): string|false * @since 5.4 */ #[Pure] -function zlib_encode (string $data, int $encoding, int $level = -1): string|false {} +function zlib_encode(string $data, int $encoding, int $level = -1): string|false {} /** * Uncompress any raw/gzip/zlib encoded data @@ -396,8 +389,7 @@ function zlib_encode (string $data, int $encoding, int $level = -1): string|fals * @since 5.4 */ #[Pure] -function zlib_decode (string $data, int $max_length): string|false -{} +function zlib_decode(string $data, int $max_length): string|false {} /** * Returns the coding type used for output compression @@ -406,7 +398,7 @@ function zlib_decode (string $data, int $max_length): string|false * or FALSE. */ #[Pure] -function zlib_get_coding_type (): string|false {} +function zlib_get_coding_type(): string|false {} /** * ob_start callback function to gzip output buffer @@ -415,7 +407,7 @@ function zlib_get_coding_type (): string|false {} * @param int $flags * @return string|false */ -function ob_gzhandler (string $data, int $flags): string|false {} +function ob_gzhandler(string $data, int $flags): string|false {} /** * Initialize an incremental deflate context @@ -440,7 +432,7 @@ function ob_gzhandler (string $data, int $flags): string|false {} */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "DeflateContext|false"], default: "resource|false")] -function deflate_init (int $encoding, array $options = array()) {} +function deflate_init(int $encoding, array $options = []) {} /** * Incrementally deflate data @@ -463,7 +455,7 @@ function deflate_init (int $encoding, array $options = array()) {} *

    * @since 7.0 */ -function deflate_add (#[LanguageLevelTypeAware(["8.0" => "DeflateContext"], default: "resource")] $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {} +function deflate_add(#[LanguageLevelTypeAware(["8.0" => "DeflateContext"], default: "resource")] $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {} /** * Initialize an incremental inflate context @@ -488,7 +480,7 @@ function deflate_add (#[LanguageLevelTypeAware(["8.0" => "DeflateContext"], defa */ #[Pure] #[LanguageLevelTypeAware(["8.0" => "InflateContext|false"], default: "resource|false")] -function inflate_init (int $encoding, array $options = array()) {} +function inflate_init(int $encoding, array $options = []) {} /** * Incrementally inflate encoded data @@ -511,7 +503,7 @@ function inflate_init (int $encoding, array $options = array()) {} *

    * @since 7.0 */ -function inflate_add (#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default: "resource")] $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {} +function inflate_add(#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default: "resource")] $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {} /** * Get number of bytes read so far @@ -520,7 +512,7 @@ function inflate_add (#[LanguageLevelTypeAware(["8.0" => "InflateContext"], defa * @since 7.2 */ #[Pure] -function inflate_get_read_len (#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default: "resource")] $context): int{} +function inflate_get_read_len(#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default: "resource")] $context): int {} /** * Get decompression status @@ -529,32 +521,34 @@ function inflate_get_read_len (#[LanguageLevelTypeAware(["8.0" => "InflateContex * @since 7.2 */ #[Pure] -function inflate_get_status(#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default: "resource")] $context): int {} +function inflate_get_status(#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default: "resource")] $context): int {} /** * @since 8.0 */ -class InflateContext{ +class InflateContext +{ /** * Use inflate_init() instead * @see inflate_init() */ - private function __construct(){} + private function __construct() {} } /** * @since 8.0 */ -class DeflateContext{ +class DeflateContext +{ /** * Use deflate_init() instead * @see deflate_init() */ - private function __construct(){} + private function __construct() {} } -define ('FORCE_GZIP', 31); -define ('FORCE_DEFLATE', 15); +define('FORCE_GZIP', 31); +define('FORCE_DEFLATE', 15); /** @link https://php.net/manual/en/zlib.constants.php */ define('ZLIB_ENCODING_RAW', -15); /** @link https://php.net/manual/en/zlib.constants.php */ @@ -562,28 +556,27 @@ private function __construct(){} /** @link https://php.net/manual/en/zlib.constants.php */ define('ZLIB_ENCODING_DEFLATE', 15); -define ('ZLIB_NO_FLUSH', 0); -define ('ZLIB_PARTIAL_FLUSH', 1); -define ('ZLIB_SYNC_FLUSH', 2); -define ('ZLIB_FULL_FLUSH', 3); -define ('ZLIB_BLOCK', 5); -define ('ZLIB_FINISH', 4); - -define ('ZLIB_FILTERED', 1); -define ('ZLIB_HUFFMAN_ONLY', 2); -define ('ZLIB_RLE', 3); -define ('ZLIB_FIXED', 4); -define ('ZLIB_DEFAULT_STRATEGY', 0); -define ('ZLIB_OK', 0); -define ('ZLIB_STREAM_END', 1); -define ('ZLIB_NEED_DICT', 2); -define ('ZLIB_ERRNO', -1); -define ('ZLIB_STREAM_ERROR', -2); -define ('ZLIB_DATA_ERROR', -3); -define ('ZLIB_MEM_ERROR', -4); -define ('ZLIB_BUF_ERROR', -5); -define ('ZLIB_VERSION_ERROR', -6); - - -define ('ZLIB_VERSION', 'zlib_version_string'); // This is set to the zlib version -define ('ZLIB_VERNUM', 'zlib_version_string'); // This is set to the zlib version +define('ZLIB_NO_FLUSH', 0); +define('ZLIB_PARTIAL_FLUSH', 1); +define('ZLIB_SYNC_FLUSH', 2); +define('ZLIB_FULL_FLUSH', 3); +define('ZLIB_BLOCK', 5); +define('ZLIB_FINISH', 4); + +define('ZLIB_FILTERED', 1); +define('ZLIB_HUFFMAN_ONLY', 2); +define('ZLIB_RLE', 3); +define('ZLIB_FIXED', 4); +define('ZLIB_DEFAULT_STRATEGY', 0); +define('ZLIB_OK', 0); +define('ZLIB_STREAM_END', 1); +define('ZLIB_NEED_DICT', 2); +define('ZLIB_ERRNO', -1); +define('ZLIB_STREAM_ERROR', -2); +define('ZLIB_DATA_ERROR', -3); +define('ZLIB_MEM_ERROR', -4); +define('ZLIB_BUF_ERROR', -5); +define('ZLIB_VERSION_ERROR', -6); + +define('ZLIB_VERSION', 'zlib_version_string'); // This is set to the zlib version +define('ZLIB_VERNUM', 'zlib_version_string'); // This is set to the zlib version diff --git a/zmq/zmq.php b/zmq/zmq.php index 5efcb823b..8a90a76c9 100644 --- a/zmq/zmq.php +++ b/zmq/zmq.php @@ -13,61 +13,61 @@ class ZMQ /** * Exclusive pair pattern */ - const SOCKET_PAIR = 0; + public const SOCKET_PAIR = 0; /** * Publisher socket */ - const SOCKET_PUB = 1; + public const SOCKET_PUB = 1; /** * Subscriber socket */ - const SOCKET_SUB = 2; + public const SOCKET_SUB = 2; /** * Request socket */ - const SOCKET_REQ = 3; + public const SOCKET_REQ = 3; /** * Reply socket */ - const SOCKET_REP = 4; + public const SOCKET_REP = 4; /** * Alias for SOCKET_DEALER */ - const SOCKET_XREQ = 5; + public const SOCKET_XREQ = 5; /** * Alias for SOCKET_ROUTER */ - const SOCKET_XREP = 6; + public const SOCKET_XREP = 6; /** * Pipeline upstream push socket */ - const SOCKET_PUSH = 8; + public const SOCKET_PUSH = 8; /** * Pipeline downstream pull socket */ - const SOCKET_PULL = 7; + public const SOCKET_PULL = 7; /** * Extended REP socket that can route replies to requesters */ - const SOCKET_ROUTER = 6; + public const SOCKET_ROUTER = 6; /** * Extended REQ socket that load balances to all connected peers */ - const SOCKET_DEALER = 5; + public const SOCKET_DEALER = 5; /** * Similar to SOCKET_PUB, except you can receive subscriptions as messages. * The subscription message is 0 (unsubscribe) or 1 (subscribe) followed by the topic. */ - const SOCKET_XPUB = 9; + public const SOCKET_XPUB = 9; /** * Similar to SOCKET_SUB, except you can send subscriptions as messages. See SOCKET_XPUB for format. */ - const SOCKET_XSUB = 10; + public const SOCKET_XSUB = 10; /** * Used to send and receive TCP data from a non-ØMQ peer. * Available if compiled against ZeroMQ 4.x or higher. */ - const SOCKET_STREAM = 11; + public const SOCKET_STREAM = 11; /** * The high water mark for inbound and outbound messages is a hard * limit on the maximum number of outstanding messages ØMQ shall queue in memory @@ -75,210 +75,208 @@ class ZMQ * Setting this option on a socket will only affect connections made after the option has been set. * On ZeroMQ 3.x this is a wrapper for setting both SNDHWM and RCVHWM. */ - const SOCKOPT_HWM = 1; + public const SOCKOPT_HWM = 1; /** * The ZMQ_SNDHWM option shall set the high water mark for outbound messages on the specified socket. * Available if compiled against ZeroMQ 3.x or higher. */ - const SOCKOPT_SNDHWM = 23; + public const SOCKOPT_SNDHWM = 23; /** * The ZMQ_SNDHWM option shall set the high water mark for inbound messages on the specified socket. * Available if compiled against ZeroMQ 3.x or higher. */ - const SOCKOPT_RCVHWM = 24; + public const SOCKOPT_RCVHWM = 24; /** * Set I/O thread affinity */ - const SOCKOPT_AFFINITY = 4; + public const SOCKOPT_AFFINITY = 4; /** * Set socket identity */ - const SOCKOPT_IDENTITY = 5; + public const SOCKOPT_IDENTITY = 5; /** * Establish message filter. Valid for subscriber socket */ - const SOCKOPT_SUBSCRIBE = 6; + public const SOCKOPT_SUBSCRIBE = 6; /** * Remove message filter. Valid for subscriber socket */ - const SOCKOPT_UNSUBSCRIBE = 7; + public const SOCKOPT_UNSUBSCRIBE = 7; /** * Set rate for multicast sockets (pgm) (Value: int >= 0) */ - const SOCKOPT_RATE = 8; + public const SOCKOPT_RATE = 8; /** * Set multicast recovery interval (Value: int >= 0) */ - const SOCKOPT_RECOVERY_IVL = 9; + public const SOCKOPT_RECOVERY_IVL = 9; /** * Set the initial reconnection interval (Value: int >= 0) */ - const SOCKOPT_RECONNECT_IVL = 18; + public const SOCKOPT_RECONNECT_IVL = 18; /** * Set the max reconnection interval (Value: int >= 0) */ - const SOCKOPT_RECONNECT_IVL_MAX = 21; + public const SOCKOPT_RECONNECT_IVL_MAX = 21; /** * Control multicast loopback (Value: int >= 0) */ - const SOCKOPT_MCAST_LOOP = 10; + public const SOCKOPT_MCAST_LOOP = 10; /** * Set kernel transmit buffer size (Value: int >= 0) */ - const SOCKOPT_SNDBUF = 11; + public const SOCKOPT_SNDBUF = 11; /** * Set kernel receive buffer size (Value: int >= 0) */ - const SOCKOPT_RCVBUF = 12; + public const SOCKOPT_RCVBUF = 12; /** * Receive multi-part messages */ - const SOCKOPT_RCVMORE = 13; + public const SOCKOPT_RCVMORE = 13; /** * Get the socket type. Valid for getSockOpt */ - const SOCKOPT_TYPE = 16; + public const SOCKOPT_TYPE = 16; /** * The linger value of the socket. * Specifies how long the socket blocks trying flush messages after it has been closed */ - const SOCKOPT_LINGER = 17; + public const SOCKOPT_LINGER = 17; /** * The SOCKOPT_BACKLOG option shall set the maximum length of the queue of outstanding peer connections * for the specified socket; this only applies to connection-oriented transports. */ - const SOCKOPT_BACKLOG = 19; + public const SOCKOPT_BACKLOG = 19; /** * Limits the maximum size of the inbound message. Value -1 means no limit. * Available if compiled against ZeroMQ 3.x or higher */ - const SOCKOPT_MAXMSGSIZE = 22; + public const SOCKOPT_MAXMSGSIZE = 22; /** * Sets the timeout for send operation on the socket. Value -1 means no limit. * Available if compiled against ZeroMQ 3.x or higher */ - const SOCKOPT_SNDTIMEO = 28; + public const SOCKOPT_SNDTIMEO = 28; /** * Sets the timeout for receive operation on the socket. Value -1 means no limit. * Available if compiled against ZeroMQ 3.x or higher */ - const SOCKOPT_RCVTIMEO = 27; + public const SOCKOPT_RCVTIMEO = 27; /** * Disable IPV6 support if 1. * Available if compiled against ZeroMQ 3.x */ - const SOCKOPT_IPV4ONLY = 31; + public const SOCKOPT_IPV4ONLY = 31; /** * Retrieve the last connected endpoint - for use with * wildcard ports. * Available if compiled against ZeroMQ 3.x or higher */ - const SOCKOPT_LAST_ENDPOINT = 32; + public const SOCKOPT_LAST_ENDPOINT = 32; /** * Idle time for TCP keepalive. * Available if compiled against ZeroMQ 3.x or higher */ - const SOCKOPT_TCP_KEEPALIVE_IDLE = 36; + public const SOCKOPT_TCP_KEEPALIVE_IDLE = 36; /** * Count time for TCP keepalive. * Available if compiled against ZeroMQ 3.x or higher */ - const SOCKOPT_TCP_KEEPALIVE_CNT = 35; + public const SOCKOPT_TCP_KEEPALIVE_CNT = 35; /** * Interval for TCP keepalive. * Available if compiled against ZeroMQ 3.x or higher */ - const SOCKOPT_TCP_KEEPALIVE_INTVL = 37; + public const SOCKOPT_TCP_KEEPALIVE_INTVL = 37; /** * Set a CIDR string to match against incoming TCP connections. * Available if compiled against ZeroMQ 3.x or higher */ - const SOCKOPT_DELAY_ATTACH_ON_CONNECT = 39; + public const SOCKOPT_DELAY_ATTACH_ON_CONNECT = 39; /** * Set a CIDR string to match against incoming TCP connections. * Available if compiled against ZeroMQ 3.x or higher */ - const SOCKOPT_TCP_ACCEPT_FILTER = 38; + public const SOCKOPT_TCP_ACCEPT_FILTER = 38; /** * Set the XPUB to receive an application message on each instance of a subscription. * Available if compiled against ZeroMQ 3.x or higher */ - const SOCKOPT_XPUB_VERBOSE = 40; + public const SOCKOPT_XPUB_VERBOSE = 40; /** * Sets the raw mode on the ROUTER, when set to 1. * In raw mode when using tcp:// transport the socket will read and write without ZeroMQ framing. * Available if compiled against ZeroMQ 4.0 or higher */ - const SOCKOPT_ROUTER_RAW = 41; + public const SOCKOPT_ROUTER_RAW = 41; /** * Enable IPV6. * Available if compiled against ZeroMQ 4.0 or higher */ - const SOCKOPT_IPV6 = 42; + public const SOCKOPT_IPV6 = 42; /** * The socket limit for this context. * Available if compiled against ZeroMQ 3.x or higher */ - const CTXOPT_MAX_SOCKETS = 2; + public const CTXOPT_MAX_SOCKETS = 2; /** * Poll for incoming data */ - const POLL_IN = 1; + public const POLL_IN = 1; /** * Poll for outgoing data */ - const POLL_OUT = 2; + public const POLL_OUT = 2; /** * Non-blocking operation. * @deprecated use ZMQ::MODE_DONTWAIT instead */ - const MODE_NOBLOCK = 1; + public const MODE_NOBLOCK = 1; /** * Non-blocking operation */ - const MODE_DONTWAIT = 1; + public const MODE_DONTWAIT = 1; /** * Send multi-part message */ - const MODE_SNDMORE = 2; + public const MODE_SNDMORE = 2; /** * Forwarder device */ - const DEVICE_FORWARDER = 2; + public const DEVICE_FORWARDER = 2; /** * Queue device */ - const DEVICE_QUEUE = 3; + public const DEVICE_QUEUE = 3; /** * Streamer device */ - const DEVICE_STREAMER = 1; + public const DEVICE_STREAMER = 1; /** * ZMQ extension internal error */ - const ERR_INTERNAL = -99; + public const ERR_INTERNAL = -99; /** * Implies that the operation would block when ZMQ::MODE_DONTWAIT is used */ - const ERR_EAGAIN = 11; + public const ERR_EAGAIN = 11; /** * The operation is not supported by the socket type */ - const ERR_ENOTSUP = 156384713; + public const ERR_ENOTSUP = 156384713; /** * The operation can not be executed because the socket is not in correct state */ - const ERR_EFSM = 156384763; + public const ERR_EFSM = 156384763; /** * The context has been terminated */ - const ERR_ETERM = 156384765; + public const ERR_ETERM = 156384765; /** * Private constructor to prevent direct initialization. This class holds the constants for ZMQ extension. * @link https://secure.php.net/manual/en/zmq.construct.php */ - private function __construct() - { - } + private function __construct() {} } /** * Class ZMQContext @@ -295,9 +293,7 @@ class ZMQContext * @param int $io_threads Number of io-threads in the context * @param bool $is_persistent Whether the context is persistent. Persistent context is stored over multiple requests and is a requirement for persistent sockets. */ - public function __construct($io_threads = 1, $is_persistent = true) - { - } + public function __construct($io_threads = 1, $is_persistent = true) {} /** * (PECL zmq >= 1.0.4) * Returns the value of a context option. @@ -308,9 +304,7 @@ public function __construct($io_threads = 1, $is_persistent = true) * @return string|int Returns either a string or an integer depending on key. Throws ZMQContextException on error. * @throws ZMQContextException */ - public function getOpt($key) - { - } + public function getOpt($key) {} /** * (PECL zmq >= 0.5.0) * Shortcut for creating new sockets from the context. @@ -326,9 +320,7 @@ public function getOpt($key) * @return ZMQSocket * @throws ZMQSocketException */ - public function getSocket($type, $persistent_id = null, $on_new_socket = null) - { - } + public function getSocket($type, $persistent_id = null, $on_new_socket = null) {} /** * (PECL zmq >= 0.5.0) * Whether the context is persistent. @@ -338,9 +330,7 @@ public function getSocket($type, $persistent_id = null, $on_new_socket = null) * * @return bool Returns TRUE if the context is persistent and FALSE if the context is non-persistent. */ - public function isPersistent() - { - } + public function isPersistent() {} /** * (PECL zmq >= 1.0.4) * Sets a ZMQ context option. The type of the value depends on the key. @@ -353,9 +343,7 @@ public function isPersistent() * @return ZMQContext * @throws ZMQContextException */ - public function setOpt($key, $value) - { - } + public function setOpt($key, $value) {} } /** * Class ZMQSocket @@ -380,9 +368,7 @@ class ZMQSocket * * @throws ZMQSocketException */ - public function __construct(ZMQContext $context, $type, $persistent_id = null, $on_new_socket = null) - { - } + public function __construct(ZMQContext $context, $type, $persistent_id = null, $on_new_socket = null) {} /** * (PECL zmq >= 0.5.0) * Bind the socket to an endpoint. @@ -397,9 +383,7 @@ public function __construct(ZMQContext $context, $type, $persistent_id = null, $ * @return ZMQSocket * @throws ZMQSocketException if binding fails */ - public function bind($dsn, $force = false) - { - } + public function bind($dsn, $force = false) {} /** * (PECL zmq >= 0.5.0) * Connect the socket to a remote endpoint. @@ -414,9 +398,7 @@ public function bind($dsn, $force = false) * @return ZMQSocket * @throws ZMQSocketException If connection fails */ - public function connect($dsn, $force = false) - { - } + public function connect($dsn, $force = false) {} /** * (PECL zmq >= 1.0.4) * Disconnect the socket from a previously connected remote endpoint. @@ -430,9 +412,7 @@ public function connect($dsn, $force = false) * @return ZMQSocket * @throws ZMQSocketException If connection fails */ - public function disconnect($dsn) - { - } + public function disconnect($dsn) {} /** * Returns a list of endpoints where the socket is connected or bound to. * @@ -441,9 +421,7 @@ public function disconnect($dsn) * @return array contains two sub-arrays: 'connect' and 'bind' * @throws ZMQSocketException */ - public function getEndpoints() - { - } + public function getEndpoints() {} /** * Returns the persistent id string assigned of the object and NULL if socket is not persistent. * @@ -453,9 +431,7 @@ public function getEndpoints() * Returns the persistent id string assigned of the object and NULL if socket is not persistent. *

    */ - public function getPersistentId() - { - } + public function getPersistentId() {} /** * Returns the value of a socket option. * This method is available if ZMQ extension has been compiled against ZMQ version 2.0.7 or higher @@ -471,9 +447,7 @@ public function getPersistentId() *

    * @throws ZMQSocketException */ - public function getSockOpt($key) - { - } + public function getSockOpt($key) {} /** * Return the socket type. * The socket type can be compared against ZMQ::SOCKET_* constants. @@ -485,9 +459,7 @@ public function getSockOpt($key) * ZMQ::SOCKET_* constants. *

    */ - public function getSocketType() - { - } + public function getSocketType() {} /** * Check whether the socket is persistent. * @@ -495,9 +467,7 @@ public function getSocketType() * * @return bool

    Returns a boolean based on whether the socket is persistent or not.

    */ - public function isPersistent() - { - } + public function isPersistent() {} /** * Receive a message from a socket. * By default receiving will block until a message is available unless ZMQ::MODE_NOBLOCK flag is used. @@ -513,9 +483,7 @@ public function isPersistent() * @return string|false

    Returns the message. Throws ZMQSocketException in error. If ZMQ::MODE_NOBLOCK is used and the operation would block boolean false shall be returned.

    * @throws ZMQSocketException if receiving fails. */ - public function recv($mode = 0) - { - } + public function recv($mode = 0) {} /** * Receive an array multipart message from a socket. * By default receiving will block until a message is available unless ZMQ::MODE_NOBLOCK flag is used. @@ -529,9 +497,7 @@ public function recv($mode = 0) * @return string[] Returns the array of message parts. Throws ZMQSocketException in error. If ZMQ::MODE_NOBLOCK is used and the operation would block boolean false shall be returned. * @throws ZMQSocketException if receiving fails. */ - public function recvMulti($mode = 0) - { - } + public function recvMulti($mode = 0) {} /** * Send a message using the socket. The operation can block unless ZMQ::MODE_NOBLOCK is used. * If ZMQ::MODE_NOBLOCK is used and the operation would block bool false shall be returned. @@ -544,9 +510,7 @@ public function recvMulti($mode = 0) * @return ZMQSocket * @throws ZMQSocketException if sending message fails */ - public function send($message, $mode = 0) - { - } + public function send($message, $mode = 0) {} /** * Send a multipart message using the socket. The operation can block unless ZMQ::MODE_NOBLOCK is used. * If ZMQ::MODE_NOBLOCK is used and the operation would block bool false shall be returned. @@ -559,9 +523,7 @@ public function send($message, $mode = 0) * @return ZMQSocket * @throws ZMQSocketException if sending message fails */ - public function sendmulti(array $message, $mode = 0) - { - } + public function sendmulti(array $message, $mode = 0) {} /** * Sets a ZMQ socket option. The type of the value depends on the key. * @see ZMQ Constant Types for more information. @@ -574,9 +536,7 @@ public function sendmulti(array $message, $mode = 0) * @return ZMQSocket * @throws ZMQSocketException */ - public function setSockOpt($key, $value) - { - } + public function setSockOpt($key, $value) {} /** * Unbind the socket from an endpoint. * The endpoint is defined in format transport://address @@ -589,9 +549,7 @@ public function setSockOpt($key, $value) * @return ZMQSocket * @throws ZMQSocketException if binding fails */ - public function unbind($dsn) - { - } + public function unbind($dsn) {} } /** * Class ZMQPoll @@ -613,9 +571,7 @@ class ZMQPoll * @return int Returns a string id of the added item which can be later used to remove the item. Throws ZMQPollException on error. * @throws ZMQPollException if the object has not been initialized with polling */ - public function add(ZMQSocket $entry, $type) - { - } + public function add(ZMQSocket $entry, $type) {} /** * (PECL zmq >= 1.0.4) * Clears all elements from the poll set. @@ -624,9 +580,7 @@ public function add(ZMQSocket $entry, $type) * * @return ZMQPoll Returns the current object. */ - public function clear() - { - } + public function clear() {} /** * (PECL zmq >= 0.5.0) * Count the items in the poll set. @@ -635,9 +589,7 @@ public function clear() * * @return int Returns an integer representing the amount of items in the poll set. */ - public function count() - { - } + public function count() {} /** * (PECL zmq >= 0.5.0) * Returns the ids of the objects that had errors in the last poll. @@ -648,9 +600,7 @@ public function count() * * @return int[] */ - public function getLastErrors() - { - } + public function getLastErrors() {} /** * (PECL zmq >= 0.5.0) * Polls the items in the current poll set. @@ -667,9 +617,7 @@ public function getLastErrors() * @throws ZMQPollException if polling fails * @return int */ - public function poll(array &$readable, array &$writable, $timeout = -1) - { - } + public function poll(array &$readable, array &$writable, $timeout = -1) {} /** * (PECL zmq >= 0.5.0) * Remove item from the poll set. @@ -681,9 +629,7 @@ public function poll(array &$readable, array &$writable, $timeout = -1) * @param ZMQSocket|string|mixed $item The ZMQSocket object, PHP stream or string id of the item. * @return bool Returns true if the item was removed and false if the object with given id does not exist in the poll set. */ - public function remove($item) - { - } + public function remove($item) {} } /** * Class ZMQDevice @@ -704,9 +650,7 @@ class ZMQDevice * @param ZMQSocket $backend Backend parameter for the devices. Usually where there messages going to. * @param null|ZMQSocket $listener Listener socket, which receives a copy of all messages going both directions. The type of this socket should be SUB, PULL or DEALER. */ - public function __construct(ZMQSocket $frontend, ZMQSocket $backend, ZMQSocket $listener = null) - { - } + public function __construct(ZMQSocket $frontend, ZMQSocket $backend, ZMQSocket $listener = null) {} /** * Gets the idle callback timeout value. * This method returns the idle callback timeout value. @@ -716,9 +660,7 @@ public function __construct(ZMQSocket $frontend, ZMQSocket $backend, ZMQSocket $ * * @return int This method returns the idle callback timeout value. */ - public function getIdleTimeout() - { - } + public function getIdleTimeout() {} /** * Gets the timer callback timeout value. * Added in ZMQ extension version 1.1.0. @@ -727,9 +669,7 @@ public function getIdleTimeout() * * @return int This method returns the timer timeout value. */ - public function getTimerTimeout() - { - } + public function getTimerTimeout() {} /** * Runs the device. * Call to this method will block until the device is running. @@ -739,9 +679,7 @@ public function getTimerTimeout() * * @throws ZMQDeviceException */ - public function run() - { - } + public function run() {} /** * Sets the idle callback function. * If idle timeout is defined the idle callback function shall be called if the internal poll loop times out @@ -756,9 +694,7 @@ public function run() * * @return ZMQDevice On success this method returns the current object. */ - public function setIdleCallback($cb_func, $timeout, $user_data) - { - } + public function setIdleCallback($cb_func, $timeout, $user_data) {} /** * Sets the idle callback timeout value. The idle callback is invoked periodically when the device is idle. * On success this method returns the current object. @@ -769,9 +705,7 @@ public function setIdleCallback($cb_func, $timeout, $user_data) * * @return ZMQDevice On success this method returns the current object. */ - public function setIdleTimeout($timeout) - { - } + public function setIdleTimeout($timeout) {} /** * Sets the timer callback function. The timer callback will be invoked after timeout has passed. * The difference between idle and timer callbacks are that idle callback is invoked only when the device is idle. @@ -786,9 +720,7 @@ public function setIdleTimeout($timeout) * * @return ZMQDevice */ - public function setTimerCallback($cb_func, $timeout, $user_data) - { - } + public function setTimerCallback($cb_func, $timeout, $user_data) {} /** * Sets the timer callback timeout value. The timer callback is invoked periodically if it's set. * Added in ZMQ extension version 1.1.0. @@ -799,22 +731,10 @@ public function setTimerCallback($cb_func, $timeout, $user_data) * * @return ZMQDevice */ - public function setTimerTimeout($timeout) - { - } -} -class ZMQException extends Exception -{ -} -class ZMQContextException extends ZMQException -{ -} -class ZMQSocketException extends ZMQException -{ -} -class ZMQPollException extends ZMQException -{ -} -class ZMQDeviceException extends ZMQException -{ + public function setTimerTimeout($timeout) {} } +class ZMQException extends Exception {} +class ZMQContextException extends ZMQException {} +class ZMQSocketException extends ZMQException {} +class ZMQPollException extends ZMQException {} +class ZMQDeviceException extends ZMQException {} diff --git a/zookeeper/zookeeper.php b/zookeeper/zookeeper.php index 2aa37c3ea..60237c38e 100644 --- a/zookeeper/zookeeper.php +++ b/zookeeper/zookeeper.php @@ -9,68 +9,68 @@ class Zookeeper { /* class constants */ - const PERM_READ = 1; - const PERM_WRITE = 2; - const PERM_CREATE = 4; - const PERM_DELETE = 8; - const PERM_ADMIN = 16; - const PERM_ALL = 31; - - const EPHEMERAL = 1; - const SEQUENCE = 2; - - const EXPIRED_SESSION_STATE = -112; - const AUTH_FAILED_STATE = -113; - const CONNECTING_STATE = 1; - const ASSOCIATING_STATE = 2; - const CONNECTED_STATE = 3; - const NOTCONNECTED_STATE = 999; - - const CREATED_EVENT = 1; - const DELETED_EVENT = 2; - const CHANGED_EVENT = 3; - const CHILD_EVENT = 4; - const SESSION_EVENT = -1; - const NOTWATCHING_EVENT = -2; - - const LOG_LEVEL_ERROR = 1; - const LOG_LEVEL_WARN = 2; - const LOG_LEVEL_INFO = 3; - const LOG_LEVEL_DEBUG = 4; - - const SYSTEMERROR = -1; - const RUNTIMEINCONSISTENCY = -2; - const DATAINCONSISTENCY = -3; - const CONNECTIONLOSS = -4; - const MARSHALLINGERROR = -5; - const UNIMPLEMENTED = -6; - const OPERATIONTIMEOUT = -7; - const BADARGUMENTS = -8; - const INVALIDSTATE = -9; + public const PERM_READ = 1; + public const PERM_WRITE = 2; + public const PERM_CREATE = 4; + public const PERM_DELETE = 8; + public const PERM_ADMIN = 16; + public const PERM_ALL = 31; + + public const EPHEMERAL = 1; + public const SEQUENCE = 2; + + public const EXPIRED_SESSION_STATE = -112; + public const AUTH_FAILED_STATE = -113; + public const CONNECTING_STATE = 1; + public const ASSOCIATING_STATE = 2; + public const CONNECTED_STATE = 3; + public const NOTCONNECTED_STATE = 999; + + public const CREATED_EVENT = 1; + public const DELETED_EVENT = 2; + public const CHANGED_EVENT = 3; + public const CHILD_EVENT = 4; + public const SESSION_EVENT = -1; + public const NOTWATCHING_EVENT = -2; + + public const LOG_LEVEL_ERROR = 1; + public const LOG_LEVEL_WARN = 2; + public const LOG_LEVEL_INFO = 3; + public const LOG_LEVEL_DEBUG = 4; + + public const SYSTEMERROR = -1; + public const RUNTIMEINCONSISTENCY = -2; + public const DATAINCONSISTENCY = -3; + public const CONNECTIONLOSS = -4; + public const MARSHALLINGERROR = -5; + public const UNIMPLEMENTED = -6; + public const OPERATIONTIMEOUT = -7; + public const BADARGUMENTS = -8; + public const INVALIDSTATE = -9; /** * @since 3.5 */ - const NEWCONFIGNOQUORUM = -13 ; + public const NEWCONFIGNOQUORUM = -13; /** * @since 3.5 */ - const RECONFIGINPROGRESS = -14 ; - - const OK = 0; - const APIERROR = -100; - const NONODE = -101; - const NOAUTH = -102; - const BADVERSION = -103; - const NOCHILDRENFOREPHEMERALS = -108; - const NODEEXISTS = -110; - const NOTEMPTY = -111; - const SESSIONEXPIRED = -112; - const INVALIDCALLBACK = -113; - const INVALIDACL = -114; - const AUTHFAILED = -115; - const CLOSING = -116; - const NOTHING = -117; - const SESSIONMOVED = -118; + public const RECONFIGINPROGRESS = -14; + + public const OK = 0; + public const APIERROR = -100; + public const NONODE = -101; + public const NOAUTH = -102; + public const BADVERSION = -103; + public const NOCHILDRENFOREPHEMERALS = -108; + public const NODEEXISTS = -110; + public const NOTEMPTY = -111; + public const SESSIONEXPIRED = -112; + public const INVALIDCALLBACK = -113; + public const INVALIDACL = -114; + public const AUTHFAILED = -115; + public const CLOSING = -116; + public const NOTHING = -117; + public const SESSIONMOVED = -118; /** * Create a handle to used communicate with zookeeper. @@ -85,9 +85,7 @@ class Zookeeper * @throws ZookeeperException * @throws ZookeeperConnectionException when host is provided and when failed to connect to the host */ - public function __construct($host = '', $watcher_cb = null, $recv_timeout = 10000) - { - } + public function __construct($host = '', $watcher_cb = null, $recv_timeout = 10000) {} /** * Create a handle to used communicate with zookeeper. @@ -101,9 +99,7 @@ public function __construct($host = '', $watcher_cb = null, $recv_timeout = 1000 * @throws ZookeeperException * @throws ZookeeperConnectionException when failed to connect to Zookeeper */ - public function connect($host, $watcher_cb = null, $recv_timeout = 10000) - { - } + public function connect($host, $watcher_cb = null, $recv_timeout = 10000) {} /** * Close the zookeeper handle and free up any resources. @@ -113,9 +109,7 @@ public function connect($host, $watcher_cb = null, $recv_timeout = 10000) * @throws ZookeeperException * @throws ZookeeperConnectionException when closing an uninitialized instance */ - public function close() - { - } + public function close() {} /** * Create a node synchronously. @@ -132,9 +126,7 @@ public function close() * @throws ZookeeperException * @throws ZookeeperNoNodeException when parent path does not exist */ - public function create($path, $value, $acl, $flags = null) - { - } + public function create($path, $value, $acl, $flags = null) {} /** * Delete a node in zookeeper synchronously. @@ -149,9 +141,7 @@ public function create($path, $value, $acl, $flags = null) * @throws ZookeeperException * @throws ZookeeperNoNodeException when path does not exist */ - public function delete($path, $version = -1) - { - } + public function delete($path, $version = -1) {} /** * Sets the data associated with a node. @@ -168,9 +158,7 @@ public function delete($path, $version = -1) * @throws ZookeeperException * @throws ZookeeperNoNodeException when path does not exist */ - public function set($path, $data, $version = -1, &$stat = null) - { - } + public function set($path, $data, $version = -1, &$stat = null) {} /** * Gets the data associated with a node synchronously. @@ -187,9 +175,7 @@ public function set($path, $data, $version = -1, &$stat = null) * @throws ZookeeperException * @throws ZookeeperNoNodeException when path does not exist */ - public function get($path, $watcher_cb = null, &$stat = null, $max_size = 0) - { - } + public function get($path, $watcher_cb = null, &$stat = null, $max_size = 0) {} /** * Get children data of a path. @@ -205,9 +191,7 @@ public function get($path, $watcher_cb = null, &$stat = null, $max_size = 0) * @throws ZookeeperNoNodeException when path does not exist */ #[Pure] - public function getChildren($path, $watcher_cb = null) - { - } + public function getChildren($path, $watcher_cb = null) {} /** * Checks the existence of a node in zookeeper synchronously. @@ -221,9 +205,7 @@ public function getChildren($path, $watcher_cb = null) * * @throws ZookeeperException */ - public function exists($path, $watcher_cb = null) - { - } + public function exists($path, $watcher_cb = null) {} /** * Gets the acl associated with a node synchronously. @@ -237,9 +219,7 @@ public function exists($path, $watcher_cb = null) * @throws ZookeeperException when connection not in connected status */ #[Pure] - public function getAcl($path) - { - } + public function getAcl($path) {} /** * Sets the acl associated with a node synchronously. @@ -254,9 +234,7 @@ public function getAcl($path) * * @throws ZookeeperException when connection not in connected status */ - public function setAcl($path, $version, $acls) - { - } + public function setAcl($path, $version, $acls) {} /** * return the client session id, only valid if the connections is currently connected @@ -270,9 +248,7 @@ public function setAcl($path, $version, $acls) * @throws ZookeeperConnectionException when connection not in connected status */ #[Pure] - public function getClientId() - { - } + public function getClientId() {} /** * Set a watcher function. @@ -286,9 +262,7 @@ public function getClientId() * @throws ZookeeperException * @throws ZookeeperConnectionException when connection not in connected status */ - public function setWatcher($watcher_cb) - { - } + public function setWatcher($watcher_cb) {} /** * Get the state of the zookeeper connection. @@ -301,9 +275,7 @@ public function setWatcher($watcher_cb) * @throws ZookeeperConnectionException when connection not in connected status */ #[Pure] - public function getState() - { - } + public function getState() {} /** * Return the timeout for this session, only valid if the connections is currently connected @@ -317,9 +289,7 @@ public function getState() * @throws ZookeeperConnectionException when connection not in connected status */ #[Pure] - public function getRecvTimeout() - { - } + public function getRecvTimeout() {} /** * Specify application credentials. @@ -335,9 +305,7 @@ public function getRecvTimeout() * @throws ZookeeperException * @throws ZookeeperConnectionException when connection not in connected status */ - public function addAuth($scheme, $cert, $completion_cb = null) - { - } + public function addAuth($scheme, $cert, $completion_cb = null) {} /** * Checks if the current zookeeper connection state can be recovered. @@ -349,9 +317,7 @@ public function addAuth($scheme, $cert, $completion_cb = null) * @throws ZookeeperException * @throws ZookeeperConnectionException when connection not in connected status */ - public function isRecoverable() - { - } + public function isRecoverable() {} /** * Sets the stream to be used by the library for logging. @@ -364,9 +330,7 @@ public function isRecoverable() * * @return bool */ - public function setLogStream($file) - { - } + public function setLogStream($file) {} /** * Sets the debugging level for the library. @@ -377,9 +341,7 @@ public function setLogStream($file) * * @return bool */ - public static function setDebugLevel($level) - { - } + public static function setDebugLevel($level) {} /** * Enable/disable quorum endpoint order randomization. @@ -390,35 +352,19 @@ public static function setDebugLevel($level) * * @return bool */ - public static function setDeterministicConnOrder($trueOrFalse) - { - } + public static function setDeterministicConnOrder($trueOrFalse) {} } -class ZookeeperException extends Exception -{ -} +class ZookeeperException extends Exception {} -class ZookeeperOperationTimeoutException extends ZookeeperException -{ -} +class ZookeeperOperationTimeoutException extends ZookeeperException {} -class ZookeeperConnectionException extends ZookeeperException -{ -} +class ZookeeperConnectionException extends ZookeeperException {} -class ZookeeperMarshallingException extends ZookeeperException -{ -} +class ZookeeperMarshallingException extends ZookeeperException {} -class ZookeeperAuthenticationException extends ZookeeperException -{ -} +class ZookeeperAuthenticationException extends ZookeeperException {} -class ZookeeperSessionException extends ZookeeperException -{ -} +class ZookeeperSessionException extends ZookeeperException {} -class ZookeeperNoNodeException extends ZookeeperException -{ -} +class ZookeeperNoNodeException extends ZookeeperException {} diff --git a/zstd/zstd.php b/zstd/zstd.php index 00491a97d..de533d085 100644 --- a/zstd/zstd.php +++ b/zstd/zstd.php @@ -40,8 +40,7 @@ * * @return string|false Returns the compressed data or FALSE if an error occurred. */ - function zstd_compress(string $data, int $level = 3): string|false - {} + function zstd_compress(string $data, int $level = 3): string|false {} /** * Zstandard decompression. @@ -50,8 +49,7 @@ function zstd_compress(string $data, int $level = 3): string|false * * @return string|false Returns the decompressed data or FALSE if an error occurred. */ - function zstd_uncompress(string $data): string|false - {} + function zstd_uncompress(string $data): string|false {} /** * Zstandard compression using a digested dictionary. @@ -61,8 +59,7 @@ function zstd_uncompress(string $data): string|false * * @return string|false Returns the compressed data or FALSE if an error occurred. */ - function zstd_compress_dict(string $data, string $dict): string|false - {} + function zstd_compress_dict(string $data, string $dict): string|false {} /** * Zstandard decompression using a digested dictionary. @@ -73,8 +70,7 @@ function zstd_compress_dict(string $data, string $dict): string|false * * @return string|false Returns the compressed data or FALSE if an error occurred. */ - function zstd_compress_usingcdict(string $data, string $dict): string|false - {} + function zstd_compress_usingcdict(string $data, string $dict): string|false {} /** * Zstandard decompression using a digested dictionary. @@ -84,8 +80,7 @@ function zstd_compress_usingcdict(string $data, string $dict): string|false * * @return string|false Returns the decompressed data or FALSE if an error occurred. */ - function zstd_uncompress_dict(string $data, string $dict): string|false - {} + function zstd_uncompress_dict(string $data, string $dict): string|false {} /** * Zstandard decompression using a digested dictionary. @@ -96,8 +91,7 @@ function zstd_uncompress_dict(string $data, string $dict): string|false * * @return string|false Returns the decompressed data or FALSE if an error occurred. */ - function zstd_decompress_dict(string $data, string $dict): string|false - {} + function zstd_decompress_dict(string $data, string $dict): string|false {} /** * Zstandard decompression using a digested dictionary. @@ -108,8 +102,7 @@ function zstd_decompress_dict(string $data, string $dict): string|false * * @return string|false Returns the decompressed data or FALSE if an error occurred. */ - function zstd_uncompress_usingcdict(string $data, string $dict): string|false - {} + function zstd_uncompress_usingcdict(string $data, string $dict): string|false {} /** * Zstandard decompression using a digested dictionary. @@ -120,8 +113,7 @@ function zstd_uncompress_usingcdict(string $data, string $dict): string|false * * @return string|false Returns the decompressed data or FALSE if an error occurred. */ - function zstd_decompress_usingcdict(string $data, string $dict): string|false - {} + function zstd_decompress_usingcdict(string $data, string $dict): string|false {} } namespace Zstd { @@ -134,8 +126,7 @@ function zstd_decompress_usingcdict(string $data, string $dict): string|false * * @return string|false Returns the compressed data or FALSE if an error occurred. */ - function compress(string $data, int $level = 3): string|false - {} + function compress(string $data, int $level = 3): string|false {} /** * Zstandard decompression. @@ -144,8 +135,7 @@ function compress(string $data, int $level = 3): string|false * * @return string|false Returns the decompressed data or FALSE if an error occurred. */ - function uncompress(string $data): string|false - {} + function uncompress(string $data): string|false {} /** * Zstandard compression using a digested dictionary. @@ -155,8 +145,7 @@ function uncompress(string $data): string|false * * @return string|false Returns the compressed data or FALSE if an error occurred. */ - function compress_dict(string $data, string $dict): string|false - {} + function compress_dict(string $data, string $dict): string|false {} /** * Zstandard decompression using a digested dictionary. @@ -166,6 +155,5 @@ function compress_dict(string $data, string $dict): string|false * * @return string|false Returns the decompressed data or FALSE if an error occurred. */ - function uncompress_dict(string $data, string $dict): string|false - {} + function uncompress_dict(string $data, string $dict): string|false {} }