Revert "Cleanup and rules for PHPCS"

This reverts commit 1d8094ce
This commit is contained in:
Ivan Fedorov 2020-06-12 13:45:30 +03:00 committed by Ivan Fedorov
parent f81ae2c241
commit 92c510353a
49 changed files with 517 additions and 146 deletions

11
.php_cs
View File

@ -14,17 +14,6 @@ return PhpCsFixer\Config::create()
'no_trailing_whitespace_in_comment' => true,
'no_whitespace_in_blank_line' => true,
'single_blank_line_at_eof' => true,
'line_ending' => true,
'no_blank_lines_after_phpdoc' => true,
'no_empty_comment' => true,
'no_empty_phpdoc' => true,
'non_printable_character' => true,
'phpdoc_no_access' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_trim' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_var_annotation_correct_order' => true,
'phpdoc_var_without_name' => true
// 'unix_line_endings' => true,
])
->setFinder($finder)

View File

@ -1157,6 +1157,8 @@ final class EvIdle extends EvWatcher
* 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
{

View File

@ -1765,6 +1765,7 @@ class ReflectionGenerator
* @link https://php.net/manual/en/reflectiongenerator.getexecutingfile.php
* @return string Returns the full path and file name of the currently executing generator.
* @since 7.0
*
*/
public function getExecutingFile()
{
@ -1775,6 +1776,7 @@ class ReflectionGenerator
* @link https://php.net/manual/en/reflectiongenerator.construct.php
* @return Generator Returns the currently executing Generator object.
* @since 7.0
*
*/
public function getExecutingGenerator()
{

View File

@ -1436,6 +1436,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @param array|object $input The input parameter accepts an array or an Object.
* @param int $flags Flags to control the behaviour of the ArrayObject object.
* @param string $iterator_class Specify the class that will be used for iteration of the ArrayObject object. ArrayIterator is the default class used.
*
*/
public function __construct($input = array(), $flags = 0, $iterator_class = "ArrayIterator") { }

View File

@ -569,6 +569,7 @@ 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 ($file_name, $open_mode = 'r', $use_include_path = false, $context = null) {}

View File

@ -332,6 +332,7 @@ final class SQLiteResult implements Iterator, Countable {
* 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.</p>
*
*/
public function fieldName ($field_index) {}

View File

@ -501,6 +501,7 @@ class AMQPChannel
*
* 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) { }
@ -528,6 +529,7 @@ class AMQPChannel
* string $body) : bool;
*
* and should return boolean false when wait loop should be canceled.
*
*/
public function setReturnCallback(callable $return_callback=null) { }

View File

@ -25,6 +25,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace {
/**
@ -471,6 +472,7 @@ namespace {
/**
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/
*/
namespace Cassandra {
/**
@ -6097,6 +6099,7 @@ namespace Cassandra {
/**
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/
*/
namespace Cassandra\Cluster {
/**
@ -6543,6 +6546,7 @@ namespace Cassandra\Cluster {
/**
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/TimestampGenerator/
*/
namespace Cassandra\TimestampGenerator {
/**
@ -6574,6 +6578,7 @@ namespace Cassandra\TimestampGenerator {
/**
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/RetryPolicy/
*/
namespace Cassandra\RetryPolicy {
/**
@ -6653,6 +6658,7 @@ namespace Cassandra\RetryPolicy {
/**
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/
*/
namespace Cassandra\Type {
/**
@ -7110,6 +7116,7 @@ namespace Cassandra\Type {
/**
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/SSLOptions/
*/
namespace Cassandra\SSLOptions {
/**
@ -7200,6 +7207,7 @@ namespace Cassandra\SSLOptions {
/**
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Exception/
*/
namespace Cassandra\Exception {
/**

View File

@ -29,7 +29,7 @@
}
},
"scripts": {
"cs": "php-cs-fixer fix -v --allow-risky=yes --diff --dry-run",
"cs-fix": "php-cs-fixer fix -v --diff --allow-risky=yes"
"cs": "php-cs-fixer fix -v --diff --dry-run",
"cs-fix": "php-cs-fixer fix -v --diff"
}
}

View File

@ -1445,6 +1445,8 @@ namespace Couchbase {
* This authenticator uses separate credentials for Cluster management interface
* as well as for each bucket.
*
*
*
* @see \Couchbase\Cluster::authenticate()
* @see \Couchbase\Authenticator
*/
@ -1942,6 +1944,7 @@ namespace Couchbase {
* @param bool $crossBucket if query includes joins for multiple buckets (default is false)
* @return N1qlQuery
*
*
* @see \Couchbase\Authenticator
* @see \Couchbase\ClassicAuthenticator
*/
@ -1957,6 +1960,7 @@ namespace Couchbase {
*
* @param array $params
* @return N1qlQuery
*
*/
public function positionalParams($params) {}
@ -1970,6 +1974,7 @@ namespace Couchbase {
*
* @param array $params
* @return N1qlQuery
*
*/
public function namedParams($params) {}
@ -2003,6 +2008,7 @@ namespace Couchbase {
* @return N1qlQuery
*
* @see \Couchbase\MutationState
*
*/
public function consistentWith($state) {}
@ -2192,6 +2198,7 @@ namespace Couchbase {
/**
* Perform several lookup operations inside a single existing JSON document, using a specific timeout
* @return DocumentFragment
*
*/
public function execute() {}
}
@ -2425,6 +2432,7 @@ namespace Couchbase {
/**
* Perform several mutation operations inside a single existing JSON document.
* @return DocumentFragment
*
*/
public function execute() {}
}
@ -3597,6 +3605,7 @@ namespace Couchbase {
*
* @param string $statement statement string
* @return AnalyticsQuery
*
*/
public static function fromString($statement) {}
}

View File

@ -28,6 +28,7 @@ interface DateTimeInterface {
* @return DateInterval
* The https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object representing the
* difference between the two dates or <b>FALSE</b> on failure.
*
*/
public function diff($datetime2, $absolute = false);
@ -40,6 +41,7 @@ interface DateTimeInterface {
* </p>
* @return string
* Returns the formatted date string on success or <b>FALSE</b> on failure.
*
*/
public function format($format);
@ -49,6 +51,7 @@ interface DateTimeInterface {
* @return int
* Returns the timezone offset in seconds from UTC on success
* or <b>FALSE</b> on failure.
*
*/
public function getOffset();
@ -159,6 +162,7 @@ class DateTimeImmutable implements DateTimeInterface {
* @return static
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
*/
public function modify($modify) { }
/**
@ -180,6 +184,7 @@ class DateTimeImmutable implements DateTimeInterface {
* @param int $day <p>Day of the date.</p>
* @return static|false
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
*
*/
public function setDate($year, $month, $day) { }
@ -264,6 +269,7 @@ class DateTimeImmutable implements DateTimeInterface {
* </p>
* @return string
* Returns the formatted date string on success or <b>FALSE</b> on failure.
*
*/
public function format($format) { }
@ -273,6 +279,7 @@ class DateTimeImmutable implements DateTimeInterface {
* @return int
* Returns the timezone offset in seconds from UTC on success
* or <b>FALSE</b> on failure.
*
*/
public function getOffset() { }

View File

@ -1865,11 +1865,13 @@ class DOMEntityReference 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;

View File

@ -7,6 +7,7 @@
* @copyright © 2019 PHP Documentation Group
* @license CC-BY 3.0, https://www.php.net/manual/en/cc.license.php
*/
namespace Ds {
use Countable;

View File

@ -64,6 +64,7 @@ class FANNConnection
/**
* Trains on an entire dataset, for a period of time using the Cascade2 training algorithm
*
*
* @param resource $ann
* @param resource $data
* @param int $max_neurons
@ -79,6 +80,7 @@ function fann_cascadetrain_on_data($ann, $data, $max_neurons, $neurons_between_r
/**
* Trains on an entire dataset read from file, for a period of time using the Cascade2 training algorithm.
*
*
* @param resource $ann
* @param string $filename
* @param int $max_neurons
@ -94,6 +96,7 @@ function fann_cascadetrain_on_file($ann, $filename, $max_neurons, $neurons_betwe
/**
* Clears scaling parameters
*
*
* @param resource $ann
*
* @return bool
@ -105,6 +108,7 @@ function fann_clear_scaling_params($ann)
/**
* Creates a copy of a fann structure
*
*
* @param resource $ann
*
* @return resource|false Returns a copy of neural network resource on success, or false on error
@ -116,6 +120,7 @@ function fann_copy($ann)
/**
* Constructs a backpropagation neural network from a configuration file
*
*
* @param string $configuration_file
*
* @return resource
@ -127,6 +132,7 @@ function fann_create_from_file($configuration_file)
/**
* Creates a standard backpropagation neural network which is not fully connectected and has shortcut connections
*
*
* @param int $num_layers
* @param array $layers
*
@ -153,6 +159,7 @@ function fann_create_shortcut($num_layers, $num_neurons1, $num_neurons2, $_ = NU
/**
* Creates a standard backpropagation neural network, which is not fully connected using an array of layer sizes
*
*
* @param float $connection_rate
* @param int $num_layers
* @param array $layers
@ -166,6 +173,7 @@ function fann_create_sparse_array($connection_rate, $num_layers, $layers)
/**
* Creates a standard backpropagation neural network, which is not fully connected
*
*
* @param float $connection_rate
* @param int $num_layers
* @param int $num_neurons1
@ -181,6 +189,7 @@ function fann_create_sparse($connection_rate, $num_layers, $num_neurons1, $num_n
/**
* Creates a standard fully connected backpropagation neural network using an array of layer sizes
*
*
* @param int $num_layers
* @param array $layers
*
@ -193,6 +202,7 @@ function fann_create_standard_array($num_layers, $layers)
/**
* Creates a standard fully connected backpropagation neural network
*
*
* @param int $num_layers
* @param int $num_neurons1
* @param int $num_neurons2
@ -207,6 +217,7 @@ function fann_create_standard($num_layers, $num_neurons1, $num_neurons2, $_ = NU
/**
* Creates the training data struct from a user supplied function
*
*
* @param int $num_data
* @param int $num_input
* @param int $num_output
@ -221,6 +232,7 @@ function fann_create_train_from_callback($num_data, $num_input, $num_output, $us
/**
* Creates an empty training data struct
*
*
* @param int $num_data
* @param int $num_input
* @param int $num_output
@ -234,6 +246,7 @@ 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
*
*
* @param resource $ann
* @param array $input_vector
*
@ -246,6 +259,7 @@ function fann_descale_input($ann, $input_vector)
/**
* Scale data in output vector after get it from ann based on previously calculated parameters
*
*
* @param resource $ann
* @param array $output_vector
*
@ -258,6 +272,7 @@ function fann_descale_output($ann, $output_vector)
/**
* Descale input and output data based on previously calculated parameters
*
*
* @param resource $ann
* @param resource $train_data
*
@ -270,6 +285,7 @@ function fann_descale_train($ann, $train_data)
/**
* Destroys the entire network and properly freeing all the associated memory
*
*
* @param resource $ann
*
* @return bool
@ -281,6 +297,7 @@ function fann_destroy($ann)
/**
* Destructs the training data
*
*
* @param resource $train_data
*
* @return bool
@ -292,6 +309,7 @@ function fann_destroy_train($train_data)
/**
* Returns an exact copy of a fann train data
*
*
* @param resource $data
*
* @return resource
@ -303,6 +321,7 @@ function fann_duplicate_train_data($data)
/**
* Returns the activation function
*
*
* @param resource $ann
* @param int $layer
* @param int $neuron
@ -316,6 +335,7 @@ function fann_get_activation_function($ann, $layer, $neuron)
/**
* Returns the activation steepness for supplied neuron and layer number
*
*
* @param resource $ann
* @param int $layer
* @param int $neuron
@ -329,6 +349,7 @@ function fann_get_activation_steepness($ann, $layer, $neuron)
/**
* Get the number of bias in each layer in the network
*
*
* @param resource $ann
*
* @return array An array of numbers of bias in each layer
@ -340,6 +361,7 @@ function fann_get_bias_array($ann)
/**
* Returns the bit fail limit used during training
*
*
* @param resource $ann
*
* @return float|false The bit fail limit, or false on error.
@ -351,6 +373,7 @@ function fann_get_bit_fail_limit($ann)
/**
* The number of fail bits
*
*
* @param resource $ann
*
* @return int|false The number of bits fail, or false on error.
@ -362,6 +385,7 @@ function fann_get_bit_fail($ann)
/**
* Returns the number of cascade activation functions
*
*
* @param resource $ann
*
* @return int|false The number of cascade activation functions, or false on error.
@ -373,6 +397,7 @@ function fann_get_cascade_activation_functions_count($ann)
/**
* Returns the cascade activation functions
*
*
* @param resource $ann
*
* @return array|false The cascade activation functions, or false on error.
@ -384,6 +409,7 @@ function fann_get_cascade_activation_functions($ann)
/**
* The number of activation steepnesses
*
*
* @param resource $ann
*
* @return int|false The number of activation steepnesses, or false on error.
@ -395,6 +421,7 @@ function fann_get_cascade_activation_steepnesses_count($ann)
/**
* Returns the cascade activation steepnesses
*
*
* @param resource $ann
*
* @return array|false The cascade activation steepnesses, or false on error.
@ -406,6 +433,7 @@ function fann_get_cascade_activation_steepnesses($ann)
/**
* Returns the cascade candidate change fraction
*
*
* @param resource $ann
*
* @return float|false The cascade candidate change fraction, or false on error.
@ -417,6 +445,7 @@ function fann_get_cascade_candidate_change_fraction($ann)
/**
* Return the candidate limit
*
*
* @param resource $ann
*
* @return float|false The candidate limit, or false on error.
@ -428,6 +457,7 @@ function fann_get_cascade_candidate_limit($ann)
/**
* Returns the number of cascade candidate stagnation epochs
*
*
* @param resource $ann
*
* @return float|false The number of cascade candidate stagnation epochs, or false on error.
@ -439,6 +469,7 @@ function fann_get_cascade_candidate_stagnation_epochs($ann)
/**
* Returns the maximum candidate epochs
*
*
* @param resource $ann
*
* @return int|false The maximum candidate epochs, or false on error.
@ -450,6 +481,7 @@ function fann_get_cascade_max_cand_epochs($ann)
/**
* Returns the maximum out epochs
*
*
* @param resource $ann
*
* @return int|false The maximum out epochs, or false on error.
@ -461,6 +493,7 @@ function fann_get_cascade_max_out_epochs($ann)
/**
* Returns the minimum candidate epochs
*
*
* @param resource $ann
*
* @return int|false The minimum candidate epochs, or false on error.
@ -472,6 +505,7 @@ function fann_get_cascade_min_cand_epochs($ann)
/**
* Returns the minimum out epochs
*
*
* @param resource $ann
*
* @return int|false The minimum out epochs, or false on error.
@ -483,6 +517,7 @@ function fann_get_cascade_min_out_epochs($ann)
/**
* Returns the number of candidate groups
*
*
* @param resource $ann
*
* @return int|false The number of candidate groups, or false on error.
@ -494,6 +529,7 @@ function fann_get_cascade_num_candidate_groups($ann)
/**
* Returns the number of candidates used during training
*
*
* @param resource $ann
*
* @return int|false The number of candidates used during training, or false on error.
@ -505,6 +541,7 @@ function fann_get_cascade_num_candidates($ann)
/**
* Returns the cascade output change fraction
*
*
* @param resource $ann
*
* @return float|false The cascade output change fraction, or false on error.
@ -516,6 +553,7 @@ function fann_get_cascade_output_change_fraction($ann)
/**
* Returns the number of cascade output stagnation epochs
*
*
* @param resource $ann
*
* @return int|false The number of cascade output stagnation epochs, or false on error.
@ -527,6 +565,7 @@ function fann_get_cascade_output_stagnation_epochs($ann)
/**
* Returns the weight multiplier
*
*
* @param resource $ann
*
* @return float|false The weight multiplier, or false on error.
@ -538,6 +577,7 @@ function fann_get_cascade_weight_multiplier($ann)
/**
* Get connections in the network
*
*
* @param resource $ann
*
* @return array An array of connections in the network
@ -549,6 +589,7 @@ function fann_get_connection_array($ann)
/**
* Get the connection rate used when the network was created
*
*
* @param resource $ann
*
* @return float|false The connection rate used when the network was created, or false on error.
@ -560,6 +601,7 @@ function fann_get_connection_rate($ann)
/**
* Returns the last error number
*
*
* @param resource $errdat
*
* @return int|false The error number, or false on error.
@ -571,6 +613,7 @@ function fann_get_errno($errdat)
/**
* Returns the last errstr
*
*
* @param resource $errdat
*
* @return string|false The last error string, or false on error.
@ -582,6 +625,7 @@ function fann_get_errstr($errdat)
/**
* Get the number of neurons in each layer in the network
*
*
* @param resource $ann
*
* @return array An array of numbers of neurons in each leayer
@ -593,6 +637,7 @@ function fann_get_layer_array($ann)
/**
* Returns the learning momentum
*
*
* @param resource $ann
*
* @return float|false The learning momentum, or false on error.
@ -604,6 +649,7 @@ function fann_get_learning_momentum($ann)
/**
* Returns the learning rate
*
*
* @param resource $ann
*
* @return float|false The learning rate, or false on error.
@ -615,6 +661,7 @@ function fann_get_learning_rate($ann)
/**
* Reads the mean square error from the network
*
*
* @param resource $ann
*
* @return float|false The mean square error, or false on error.
@ -626,6 +673,7 @@ function fann_get_MSE($ann)
/**
* Get the type of neural network it was created as
*
*
* @param resource $ann
*
* @return int|false constant, or false on error.
@ -637,6 +685,7 @@ function fann_get_network_type($ann)
/**
* Get the number of input neurons
*
*
* @param resource $ann
*
* @return int|false Number of input neurons, or false on error
@ -648,6 +697,7 @@ function fann_get_num_input($ann)
/**
* Get the number of layers in the neural network
*
*
* @param resource $ann
*
* @return int|false The number of leayers in the neural network, or false on error.
@ -659,6 +709,7 @@ function fann_get_num_layers($ann)
/**
* Get the number of output neurons
*
*
* @param resource $ann
*
* @return int|false Number of output neurons, or false on error
@ -670,6 +721,7 @@ function fann_get_num_output($ann)
/**
* Returns the decay which is a factor that weights should decrease in each iteration during quickprop training
*
*
* @param resource $ann
*
* @return float|false The decay, or false on error.
@ -681,6 +733,7 @@ function fann_get_quickprop_decay($ann)
/**
* Returns the mu factor
*
*
* @param resource $ann
*
* @return float|false The mu factor, or false on error.
@ -692,6 +745,7 @@ function fann_get_quickprop_mu($ann)
/**
* Returns the increase factor used during RPROP training
*
*
* @param resource $ann
*
* @return float|false The decrease factor, or false on error.
@ -703,6 +757,7 @@ function fann_get_rprop_decrease_factor($ann)
/**
* Returns the maximum step-size
*
*
* @param resource $ann
*
* @return float|false The maximum step-size, or false on error.
@ -714,6 +769,7 @@ function fann_get_rprop_delta_max($ann)
/**
* Returns the minimum step-size
*
*
* @param resource $ann
*
* @return float|false The minimum step-size, or false on error.
@ -725,6 +781,7 @@ function fann_get_rprop_delta_min($ann)
/**
* Returns the initial step-size
*
*
* @param resource $ann
*
* @return int|false The initial step-size, or false on error.
@ -736,6 +793,7 @@ function fann_get_rprop_delta_zero($ann)
/**
* Returns the increase factor used during RPROP training
*
*
* @param resource $ann
*
* @return float|false The increase factor, or false on error.
@ -747,6 +805,7 @@ function fann_get_rprop_increase_factor($ann)
/**
* Returns the sarprop step error shift
*
*
* @param resource $ann
*
* @return float|false The sarprop step error shift , or false on error.
@ -758,6 +817,7 @@ function fann_get_sarprop_step_error_shift($ann)
/**
* Returns the sarprop step error threshold factor
*
*
* @param resource $ann
*
* @return float|false The sarprop step error threshold factor, or false on error.
@ -769,6 +829,7 @@ function fann_get_sarprop_step_error_threshold_factor($ann)
/**
* Returns the sarprop temperature
*
*
* @param resource $ann
*
* @return float|false The sarprop temperature, or false on error.
@ -780,6 +841,7 @@ function fann_get_sarprop_temperature($ann)
/**
* Returns the sarprop weight decay shift
*
*
* @param resource $ann
*
* @return float|false The sarprop weight decay shift, or false on error.
@ -791,6 +853,7 @@ function fann_get_sarprop_weight_decay_shift($ann)
/**
* Get the total number of connections in the entire network
*
*
* @param resource $ann
*
* @return int|false Total number of connections in the entire network, or false on error
@ -802,6 +865,7 @@ function fann_get_total_connections($ann)
/**
* Get the total number of neurons in the entire network
*
*
* @param resource $ann
*
* @return int|false Total number of neurons in the entire network, or false on error.
@ -813,6 +877,7 @@ function fann_get_total_neurons($ann)
/**
* Returns the error function used during training
*
*
* @param resource $ann
*
* @return int|false The constant, or false on error.
@ -824,6 +889,7 @@ function fann_get_train_error_function($ann)
/**
* Returns the training algorithm
*
*
* @param resource $ann
*
* @return int|false constant, or false on error.
@ -835,6 +901,7 @@ function fann_get_training_algorithm($ann)
/**
* Returns the stop function used during training
*
*
* @param resource $ann
*
* @return int|false The constant, or false on error.
@ -846,6 +913,7 @@ function fann_get_train_stop_function($ann)
/**
* Initialize the weights using Widrow + Nguyens algorithm
*
*
* @param resource $ann
* @param resource $train_data
*
@ -858,6 +926,7 @@ function fann_init_weights($ann, $train_data)
/**
* Returns the number of training patterns in the train data
*
*
* @param resource $data
*
* @return int|false Number of elements in the train data ``resource``, or false on error.
@ -869,6 +938,7 @@ function fann_length_train_data($data)
/**
* Merges the train data
*
*
* @param resource $data1
* @param resource $data2
*
@ -881,6 +951,7 @@ function fann_merge_train_data($data1, $data2)
/**
* Returns the number of inputs in each of the training patterns in the train data
*
*
* @param resource $data
*
* @return int|false The number of inputs, or false on error.
@ -892,6 +963,7 @@ function fann_num_input_train_data($data)
/**
* Returns the number of outputs in each of the training patterns in the train data
*
*
* @param resource $data
*
* @return int|false The number of outputs, or false on error.
@ -903,6 +975,7 @@ function fann_num_output_train_data($data)
/**
* Prints the error string
*
*
* @param string $errdat
*
* @return void
@ -914,6 +987,7 @@ function fann_print_error($errdat)
/**
* Give each connection a random weight between min_weight and max_weight
*
*
* @param resource $ann
* @param float $min_weight
* @param float $max_weight
@ -927,6 +1001,7 @@ function fann_randomize_weights($ann, $min_weight, $max_weight)
/**
* Reads a file that stores training data
*
*
* @param string $filename
*
* @return resource
@ -938,6 +1013,7 @@ function fann_read_train_from_file($filename)
/**
* Resets the last error number
*
*
* @param resource $errdat
*
* @return void
@ -949,6 +1025,7 @@ function fann_reset_errno($errdat)
/**
* Resets the last error string
*
*
* @param resource $errdat
*
* @return void
@ -960,6 +1037,7 @@ function fann_reset_errstr($errdat)
/**
* Resets the mean square error from the network
*
*
* @param string $ann
*
* @return bool
@ -971,6 +1049,7 @@ function fann_reset_MSE($ann)
/**
* Will run input through the neural network
*
*
* @param resource $ann
* @param array $input
*
@ -983,6 +1062,7 @@ function fann_run($ann, $input)
/**
* Saves the entire network to a configuration file
*
*
* @param resource $ann
* @param string $configuration_file
*
@ -995,6 +1075,7 @@ function fann_save($ann, $configuration_file)
/**
* Save the training structure to a file
*
*
* @param resource $data
* @param string $file_name
*
@ -1007,6 +1088,7 @@ function fann_save_train($data, $file_name)
/**
* Scale data in input vector before feed it to ann based on previously calculated parameters
*
*
* @param resource $ann
* @param array $input_vector
*
@ -1019,6 +1101,7 @@ function fann_scale_input($ann, $input_vector)
/**
* Scales the inputs in the training data to the specified range
*
*
* @param resource $train_data
* @param float $new_min
* @param float $new_max
@ -1032,6 +1115,7 @@ 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
*
*
* @param resource $ann
* @param array $output_vector
*
@ -1044,6 +1128,7 @@ function fann_scale_output($ann, $output_vector)
/**
* Scales the outputs in the training data to the specified range
*
*
* @param resource $train_data
* @param float $new_min
* @param float $new_max
@ -1057,6 +1142,7 @@ 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
*
*
* @param resource $train_data
* @param float $new_min
* @param float $new_max
@ -1070,6 +1156,7 @@ function fann_scale_train_data($train_data, $new_min, $new_max)
/**
* Scale input and output data based on previously calculated parameters
*
*
* @param resource $ann
* @param resource $train_data
*
@ -1082,6 +1169,7 @@ function fann_scale_train($ann, $train_data)
/**
* Sets the activation function for all of the hidden layers
*
*
* @param resource $ann
* @param int $activation_function
*
@ -1094,6 +1182,7 @@ function fann_set_activation_function_hidden($ann, $activation_function)
/**
* Sets the activation function for all the neurons in the supplied layer.
*
*
* @param resource $ann
* @param int $activation_function
* @param int $layer
@ -1107,6 +1196,7 @@ function fann_set_activation_function_layer($ann, $activation_function, $layer)
/**
* Sets the activation function for the output layer
*
*
* @param resource $ann
* @param int $activation_function
*
@ -1119,6 +1209,7 @@ function fann_set_activation_function_output($ann, $activation_function)
/**
* Sets the activation function for supplied neuron and layer
*
*
* @param resource $ann
* @param int $activation_function
* @param int $layer
@ -1133,6 +1224,7 @@ function fann_set_activation_function($ann, $activation_function, $layer, $neuro
/**
* Sets the steepness of the activation steepness for all neurons in the all hidden layers
*
*
* @param resource $ann
* @param float $activation_steepness
*
@ -1145,6 +1237,7 @@ function fann_set_activation_steepness_hidden($ann, $activation_steepness)
/**
* Sets the activation steepness for all of the neurons in the supplied layer number
*
*
* @param resource $ann
* @param float $activation_steepness
* @param int $layer
@ -1158,6 +1251,7 @@ function fann_set_activation_steepness_layer($ann, $activation_steepness, $layer
/**
* Sets the steepness of the activation steepness in the output layer
*
*
* @param resource $ann
* @param float $activation_steepness
*
@ -1170,6 +1264,7 @@ function fann_set_activation_steepness_output($ann, $activation_steepness)
/**
* Sets the activation steepness for supplied neuron and layer number
*
*
* @param resource $ann
* @param float $activation_steepness
* @param int $layer
@ -1184,6 +1279,7 @@ function fann_set_activation_steepness($ann, $activation_steepness, $layer, $neu
/**
* Set the bit fail limit used during training
*
*
* @param resource $ann
* @param float $bit_fail_limit
*
@ -1196,6 +1292,7 @@ function fann_set_bit_fail_limit($ann, $bit_fail_limit)
/**
* Sets the callback function for use during training
*
*
* @param resource $ann
* @param callable $callback
*
@ -1208,6 +1305,7 @@ function fann_set_callback($ann, $callback)
/**
* Sets the array of cascade candidate activation functions
*
*
* @param resource $ann
* @param array $cascade_activation_functions
*
@ -1220,6 +1318,7 @@ function fann_set_cascade_activation_functions($ann, $cascade_activation_functio
/**
* Sets the array of cascade candidate activation steepnesses
*
*
* @param resource $ann
* @param array $cascade_activation_steepnesses_count
*
@ -1232,6 +1331,7 @@ function fann_set_cascade_activation_steepnesses($ann, $cascade_activation_steep
/**
* Sets the cascade candidate change fraction
*
*
* @param resource $ann
* @param float $cascade_candidate_change_fraction
*
@ -1244,6 +1344,7 @@ function fann_set_cascade_candidate_change_fraction($ann, $cascade_candidate_cha
/**
* Sets the candidate limit
*
*
* @param resource $ann
* @param float $cascade_candidate_limit
*
@ -1256,6 +1357,7 @@ function fann_set_cascade_candidate_limit($ann, $cascade_candidate_limit)
/**
* Sets the number of cascade candidate stagnation epochs
*
*
* @param resource $ann
* @param int $cascade_candidate_stagnation_epochs
*
@ -1268,6 +1370,7 @@ function fann_set_cascade_candidate_stagnation_epochs($ann, $cascade_candidate_s
/**
* Sets the max candidate epochs
*
*
* @param resource $ann
* @param int $cascade_max_cand_epochs
*
@ -1280,6 +1383,7 @@ function fann_set_cascade_max_cand_epochs($ann, $cascade_max_cand_epochs)
/**
* Sets the maximum out epochs
*
*
* @param resource $ann
* @param int $cascade_max_out_epochs
*
@ -1292,6 +1396,7 @@ function fann_set_cascade_max_out_epochs($ann, $cascade_max_out_epochs)
/**
* Sets the min candidate epochs
*
*
* @param resource $ann
* @param int $cascade_min_cand_epochs
*
@ -1304,6 +1409,7 @@ function fann_set_cascade_min_cand_epochs($ann, $cascade_min_cand_epochs)
/**
* Sets the minimum out epochs
*
*
* @param resource $ann
* @param int $cascade_min_out_epochs
*
@ -1316,6 +1422,7 @@ function fann_set_cascade_min_out_epochs($ann, $cascade_min_out_epochs)
/**
* Sets the number of candidate groups
*
*
* @param resource $ann
* @param int $cascade_num_candidate_groups
*
@ -1328,6 +1435,7 @@ function fann_set_cascade_num_candidate_groups($ann, $cascade_num_candidate_grou
/**
* Sets the cascade output change fraction
*
*
* @param resource $ann
* @param float $cascade_output_change_fraction
*
@ -1340,6 +1448,7 @@ function fann_set_cascade_output_change_fraction($ann, $cascade_output_change_fr
/**
* Sets the number of cascade output stagnation epochs
*
*
* @param resource $ann
* @param int $cascade_output_stagnation_epochs
*
@ -1352,6 +1461,7 @@ function fann_set_cascade_output_stagnation_epochs($ann, $cascade_output_stagnat
/**
* Sets the weight multiplier
*
*
* @param resource $ann
* @param float $cascade_weight_multiplier
*
@ -1364,6 +1474,7 @@ function fann_set_cascade_weight_multiplier($ann, $cascade_weight_multiplier)
/**
* Sets where the errors are logged to
*
*
* @param resource $errdat
* @param string $log_file
*
@ -1376,6 +1487,7 @@ function fann_set_error_log($errdat, $log_file)
/**
* Calculate input scaling parameters for future use based on training data
*
*
* @param resource $ann
* @param resource $train_data
* @param float $new_input_min
@ -1390,6 +1502,7 @@ function fann_set_input_scaling_params($ann, $train_data, $new_input_min, $new_i
/**
* Sets the learning momentum
*
*
* @param resource $ann
* @param float $learning_momentum
*
@ -1402,6 +1515,7 @@ function fann_set_learning_momentum($ann, $learning_momentum)
/**
* Sets the learning rate
*
*
* @param resource $ann
* @param float $learning_rate
*
@ -1414,6 +1528,7 @@ function fann_set_learning_rate($ann, $learning_rate)
/**
* Calculate output scaling parameters for future use based on training data
*
*
* @param resource $ann
* @param resource $train_data
* @param float $new_output_min
@ -1428,6 +1543,7 @@ function fann_set_output_scaling_params($ann, $train_data, $new_output_min, $new
/**
* Sets the quickprop decay factor
*
*
* @param resource $ann
* @param float $quickprop_decay
*
@ -1440,6 +1556,7 @@ function fann_set_quickprop_decay($ann, $quickprop_decay)
/**
* Sets the quickprop mu factor
*
*
* @param resource $ann
* @param float $quickprop_mu
*
@ -1452,6 +1569,7 @@ function fann_set_quickprop_mu($ann, $quickprop_mu)
/**
* Sets the decrease factor used during RPROP training
*
*
* @param resource $ann
* @param float $rprop_decrease_factor
*
@ -1464,6 +1582,7 @@ function fann_set_rprop_decrease_factor($ann, $rprop_decrease_factor)
/**
* Sets the maximum step-size
*
*
* @param resource $ann
* @param float $rprop_delta_max
*
@ -1476,6 +1595,7 @@ function fann_set_rprop_delta_max($ann, $rprop_delta_max)
/**
* Sets the minimum step-size
*
*
* @param resource $ann
* @param float $rprop_delta_min
*
@ -1488,6 +1608,7 @@ function fann_set_rprop_delta_min($ann, $rprop_delta_min)
/**
* Sets the initial step-size
*
*
* @param resource $ann
* @param float $rprop_delta_zero
*
@ -1500,6 +1621,7 @@ function fann_set_rprop_delta_zero($ann, $rprop_delta_zero)
/**
* Sets the increase factor used during RPROP training
*
*
* @param resource $ann
* @param float $rprop_increase_factor
*
@ -1512,6 +1634,7 @@ function fann_set_rprop_increase_factor($ann, $rprop_increase_factor)
/**
* Sets the sarprop step error shift
*
*
* @param resource $ann
* @param float $sarprop_step_error_shift
*
@ -1524,6 +1647,7 @@ function fann_set_sarprop_step_error_shift($ann, $sarprop_step_error_shift)
/**
* Sets the sarprop step error threshold factor
*
*
* @param resource $ann
* @param float $sarprop_step_error_threshold_factor
*
@ -1536,6 +1660,7 @@ function fann_set_sarprop_step_error_threshold_factor($ann, $sarprop_step_error_
/**
* Sets the sarprop temperature
*
*
* @param resource $ann
* @param float $sarprop_temperature
*
@ -1548,6 +1673,7 @@ function fann_set_sarprop_temperature($ann, $sarprop_temperature)
/**
* Sets the sarprop weight decay shift
*
*
* @param resource $ann
* @param float $sarprop_weight_decay_shift
*
@ -1560,6 +1686,7 @@ 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
*
*
* @param resource $ann
* @param resource $train_data
* @param float $new_input_min
@ -1576,6 +1703,7 @@ function fann_set_scaling_params($ann, $train_data, $new_input_min, $new_input_m
/**
* Sets the error function used during training
*
*
* @param resource $ann
* @param int $error_function
*
@ -1588,6 +1716,7 @@ function fann_set_train_error_function($ann, $error_function)
/**
* Sets the training algorithm
*
*
* @param resource $ann
* @param int $training_algorithm
*
@ -1600,6 +1729,7 @@ function fann_set_training_algorithm($ann, $training_algorithm)
/**
* Sets the stop function used during training
*
*
* @param resource $ann
* @param int $stop_function
*
@ -1612,6 +1742,7 @@ function fann_set_train_stop_function($ann, $stop_function)
/**
* Set connections in the network
*
*
* @param resource $ann
* @param array $connections
*
@ -1624,6 +1755,7 @@ function fann_set_weight_array($ann, $connections)
/**
* Set a connection in the network
*
*
* @param resource $ann
* @param int $from_neuron
* @param int $to_neuron
@ -1638,6 +1770,7 @@ function fann_set_weight($ann, $from_neuron, $to_neuron, $weight)
/**
* Shuffles training data, randomizing the order
*
*
* @param resource $train_data
*
* @return bool
@ -1649,6 +1782,7 @@ function fann_shuffle_train_data($train_data)
/**
* Returns an copy of a subset of the train data
*
*
* @param resource $data
* @param int $pos
* @param int $length
@ -1662,6 +1796,7 @@ function fann_subset_train_data($data, $pos, $length)
/**
* Test a set of training data and calculates the MSE for the training data
*
*
* @param resource $ann
* @param resource $data
*
@ -1674,6 +1809,7 @@ function fann_test_data($ann, $data)
/**
* Test with a set of inputs, and a set of desired outputs
*
*
* @param resource $ann
* @param array $input
* @param array $desired_output
@ -1687,6 +1823,7 @@ function fann_test($ann, $input, $desired_output)
/**
* Train one epoch with a set of training data
*
*
* @param resource $ann
* @param resource $data
*
@ -1699,6 +1836,7 @@ function fann_train_epoch($ann, $data)
/**
* Trains on an entire dataset for a period of time
*
*
* @param resource $ann
* @param resource $data
* @param int $max_epochs
@ -1714,6 +1852,7 @@ function fann_train_on_data($ann, $data, $max_epochs, $epochs_between_reports, $
/**
* Trains on an entire dataset, which is read from file, for a period of time
*
*
* @param resource $ann
* @param string $filename
* @param int $max_epochs
@ -1729,6 +1868,7 @@ function fann_train_on_file($ann, $filename, $max_epochs, $epochs_between_report
/**
* Train one iteration with a set of inputs, and a set of desired outputs
*
*
* @param resource $ann
* @param array $input
* @param array $desired_output

View File

@ -2829,6 +2829,7 @@ function imageaffinematrixconcat(array $m1, array $m2) {}
* @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.
* @since 5.5
*/
function imageaffinematrixget ($type, $options = null) {}
/**
@ -2928,6 +2929,7 @@ function imagepalettetotruecolor ($image) {}
* @param int $mode [optional] One of <b>IMG_NEAREST_NEIGHBOUR</b>, <b>IMG_BILINEAR_FIXED</b>, <b>IMG_BICUBIC</b>, <b>IMG_BICUBIC_FIXED</b> or anything else (will use two pass).
* @return resource|bool Return scaled image resource on success or <b>FALSE</b> on failure.
*/
function imagescale ($image, $new_width, $new_height = -1, $mode = IMG_BILINEAR_FIXED) {}
/**

View File

@ -805,10 +805,12 @@ define('GEARMAN_WORKER_STATE_GRAB_JOB_RECV', 4);
define('GEARMAN_WORKER_STATE_PRE_SLEEP', 5);
/**
*/
function gearman_version() {}
/**
*/
function gearman_bugreport() {}
/**
@ -1168,7 +1170,8 @@ function gearman_task_recv_data($task_object, $data_len) {}
*/
function gearman_worker_return_code($worker_object) {}
/**
*/
function gearman_worker_create() {}
/**
@ -1351,6 +1354,7 @@ function gearman_job_workload_size($job_object) {}
/**
* Class: GearmanClient
*
*/
class GearmanClient {
/**
@ -1385,7 +1389,8 @@ class GearmanClient {
*/
public function getErrno() {}
/**
*/
public function options() {}
/**
@ -1473,7 +1478,8 @@ class GearmanClient {
*/
public function addServers($servers = '127.0.0.1:4730') {}
/**
*/
public function wait() {}
/**
@ -1805,6 +1811,7 @@ class GearmanClient {
/**
* Class: GearmanTask
*
*/
class GearmanTask {
/**
@ -1916,6 +1923,7 @@ class GearmanTask {
/**
* Class: GearmanWorker
*
*/
class GearmanWorker {
/**
@ -2079,7 +2087,8 @@ class GearmanWorker {
*/
public function unregisterAll() {}
/**
*/
public function grabJob() {}
/**
@ -2114,6 +2123,7 @@ class GearmanWorker {
/**
* Class: GearmanJob
*
*/
class GearmanJob {
/**

View File

@ -3,6 +3,7 @@
/**
* @see https://github.com/libgeos/php-geos/blob/master/tests/000_General.phpt
*/
define('GEOSBUF_CAP_ROUND', 1);
define('GEOSBUF_CAP_FLAT', 2);

View File

@ -33,6 +33,7 @@ define('GNUPG_ERROR_SILENT', 3);
* @link https://php.net/manual/en/book.gnupg.php
* Class gnupg
*/
class gnupg {
/**
* Add a key for decryption

View File

@ -631,7 +631,9 @@ class Cookie {
*/
function toString() {}
}
/**
*
*/
namespace http\Encoding;
namespace http;
/**
@ -2214,6 +2216,7 @@ interface User {
* @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.
*/

View File

@ -2241,6 +2241,7 @@ class IntlGregorianCalendar extends IntlCalendar {
/**
* @param double $change
*
*/
public function setGregorianChange($change) { }
@ -2362,6 +2363,7 @@ class IntlCalendar {
* (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
* Private constructor for disallowing instantiation
* @link https://secure.php.net/manual/en/intlcalendar.construct.php
*
*/
private function __construct() { }
@ -2449,6 +2451,7 @@ class IntlCalendar {
* </p>
* @return int Returns a (signed) difference of time in the unit associated with the
* specified field or <b>FALSE</b> on failure.
*
*/
public function fieldDifference($when, $field) { }
@ -2516,6 +2519,7 @@ class IntlCalendar {
* @link https://secure.php.net/manual/en/intlcalendar.getavailablelocales.php
* @return array An array of strings, one for which locale.
*/
public static function getAvailableLocales() { }
/**
@ -2532,6 +2536,7 @@ class IntlCalendar {
* <b>IntlCalendar::DOW_TYPE_WEEKEND</b>,
* <b>IntlCalendar::DOW_TYPE_WEEKEND_OFFSET</b> or
* <b>IntlCalendar::DOW_TYPE_WEEKEND_CEASE</b> or <b>FALSE</b> on failure.
*
*/
public function getDayOfWeekType($dayOfWeek) { }
@ -2540,6 +2545,7 @@ class IntlCalendar {
* 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.
*
*/
public function getErrorCode() { }
@ -2559,6 +2565,7 @@ class IntlCalendar {
* One of the constants <b>IntlCalendar::DOW_SUNDAY</b>,
* <b>IntlCalendar::DOW_MONDAY</b>, ...,
* <b>IntlCalendar::DOW_SATURDAY</b> or <b>FALSE</b> on failure.
*
*/
public function getFirstDayOfWeek() { }
@ -2624,6 +2631,7 @@ class IntlCalendar {
* </p>
* @return string
* A locale string or <b>FALSE</b> on failure.
*
*/
public function getLocale($localeType) { }
@ -2678,6 +2686,7 @@ class IntlCalendar {
* @return int
* One of the constants <b>IntlCalendar::WALLTIME_FIRST</b> or
* <b>IntlCalendar::WALLTIME_LAST</b>.
*
*/
public function getRepeatedWallTimeOption() { }
@ -2899,6 +2908,7 @@ class IntlCalendar {
* </p>
* @return bool
* Returns <b>TRUE</b> on success. Failure can only happen due to invalid parameters.
*
*/
public function setRepeatedWallTimeOption($wallTimeOption) { }
@ -4698,6 +4708,7 @@ function intlcal_get_now() { }
* @return array An array of strings, one for which locale.
* @since 5.5
*/
function intlcal_get_available_locales() { }
/**
@ -5706,6 +5717,7 @@ function intlgregcal_create_instance($timeZone = NULL, $locale = NULL) { }
/**
* @param IntlGregorianCalendar $obj
* @param double $change
*
*/
function intlgregcal_set_gregorian_change($obj, $change) { }

View File

@ -1131,6 +1131,7 @@ function ldap_control_paged_result_response ($link, $result, &$cookie = null, &$
* @return string
* @since 5.6
*/
function ldap_escape ($value, $ignore = "", $flags = 0) {}
/**
@ -1153,6 +1154,7 @@ function ldap_escape ($value, $ignore = "", $flags = 0) {}
* Possible values for <em>modtype</em> include:
* </p><dl>
*
*
* <dt>
* <b>LDAP_MODIFY_BATCH_ADD</b></dt>
*

View File

@ -5,6 +5,7 @@ namespace Sodium;
/**
* To silence the phpstorm "unknown namespace" errors.
*/
const CRYPTO_AEAD_AES256GCM_KEYBYTES = 32;
const CRYPTO_AEAD_AES256GCM_NSECBYTES = 0;
const CRYPTO_AEAD_AES256GCM_NPUBBYTES = 12;

View File

@ -1144,7 +1144,9 @@ final class labelObj
*/
public $wrap;
/**
*
*/
final public function __construct() {}
/**
@ -2179,7 +2181,9 @@ final class lineObj
*/
public $numpoints;
/**
*
*/
final public function __construct() {}
/**
@ -3327,6 +3331,7 @@ final class OwsrequestObj
/**
* request = ms_newOwsrequestObj();
* Create a new ows request object.
*
*/
final public function __construct() {}
@ -3418,7 +3423,9 @@ final class pointObj
*/
public $m;
/**
*
*/
final public function __construct() {}
/**
@ -3637,6 +3644,7 @@ final class rectObj
/**
* .. note:: the members (minx, miny, maxx ,maxy) are initialized to -1;
*
*/
final public function __construct() {}
@ -4609,6 +4617,7 @@ final class styleObj
final public function getBinding($stylebinding) {}
/**
*
* @return string
*/
final public function getGeomTransform() {}
@ -4648,6 +4657,7 @@ final class styleObj
final public function setBinding($stylebinding, $value) {}
/**
*
* @param string $value
* @return int
*/

View File

@ -129,7 +129,9 @@ class MemcachePool {
*/
public function setServerParams ($host, $port = 11211, $timeout = 1, $retry_interval = 15, $status = true, callable $failure_callback = null) {}
/**
*
*/
public function setFailureCallback () {}
/**
@ -142,7 +144,9 @@ class MemcachePool {
*/
public function getServerStatus ($host, $port = 11211) {}
/**
*
*/
public function findServer () {}
/**

View File

@ -246,6 +246,7 @@ class MongoClient
* @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() {}
@ -322,6 +323,7 @@ class Mongo extends MongoClient {
* <p><b>timeout</b></p>
*
* <p>The socket timeout for connections in this pool. This is how long connections in this pool will attempt to connect to a server before giving up.</p>
*
*/
public function poolDebug() {}
@ -1259,7 +1261,7 @@ class MongoCollection {
class MongoCursor implements Iterator {
/**
* @link https://php.net/manual/en/class.mongocursor.php#mongocursor.props.slaveokay
* @var bool
* @var bool $slaveOkay
*/
public static $slaveOkay = FALSE;
@ -1643,26 +1645,28 @@ interface MongoCursorInterface extends Iterator
function timeout(int $ms):MongoCursorInterface;
}
/**
*
*/
class MongoGridFS extends MongoCollection {
const ASCENDING = 1;
const DESCENDING = -1;
/**
* @link https://php.net/manual/en/class.mongogridfs.php#mongogridfs.props.chunks
* @var MongoCollection
* @var $chunks MongoCollection
*/
public $chunks;
/**
* @link https://php.net/manual/en/class.mongogridfs.php#mongogridfs.props.filesname
* @var string
* @var $filesName string
*/
protected $filesName;
/**
* @link https://php.net/manual/en/class.mongogridfs.php#mongogridfs.props.chunksname
* @var string
* @var $chunksName string
*/
protected $chunksName;
@ -1774,13 +1778,13 @@ class MongoGridFS extends MongoCollection {
class MongoGridFSFile {
/**
* @link https://php.net/manual/en/class.mongogridfsfile.php#mongogridfsfile.props.file
* @var
* @var $file
*/
public $file;
/**
* @link https://php.net/manual/en/class.mongogridfsfile.php#mongogridfsfile.props.gridfs
* @var
* @var $gridfs
*/
protected $gridfs;
@ -1833,13 +1837,13 @@ class MongoGridFSFile {
class MongoGridFSCursor extends MongoCursor implements Traversable, Iterator {
/**
* @var
* @var $slaveOkay
*/
public static $slaveOkay;
/**
* @link https://php.net/manual/en/class.mongogridfscursor.php#mongogridfscursor.props.gridfs
* @var
* @var $gridfs
*/
protected $gridfs;
@ -1883,7 +1887,7 @@ class MongoGridFSCursor extends MongoCursor implements Traversable, Iterator {
*/
class MongoId {
/**
* @var string <p> Note: The property name begins with a $ character. It may be accessed using
* @var string $id <p> 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'}).</p>
*/
public $id = NULL;
@ -1960,12 +1964,12 @@ class MongoId {
class MongoCode {
/**
* @var
* @var $code
*/
public $code;
/**
* @var
* @var $scope
*/
public $scope;
@ -1988,13 +1992,13 @@ class MongoCode {
class MongoRegex {
/**
* @link https://php.net/manual/en/class.mongoregex.php#mongoregex.props.regex
* @var
* @var $regex
*/
public $regex;
/**
* @link https://php.net/manual/en/class.mongoregex.php#mongoregex.props.flags
* @var
* @var $flags
*/
public $flags;
@ -2016,13 +2020,13 @@ class MongoRegex {
class MongoDate {
/**
* @link https://php.net/manual/en/class.mongodate.php#mongodate.props.sec
* @var int
* @var int $sec
*/
public $sec;
/**
* @link https://php.net/manual/en/class.mongodate.php#mongodate.props.usec
* @var int
* @var int $usec
*/
public $usec;
@ -2096,13 +2100,13 @@ class MongoBinData {
/**
* @link https://php.net/manual/en/class.mongobindata.php#mongobindata.props.bin
* @var
* @var $bin
*/
public $bin;
/**
* @link https://php.net/manual/en/class.mongobindata.php#mongobindata.props.type
* @var
* @var $type
*/
public $type;
@ -2125,12 +2129,12 @@ class MongoBinData {
class MongoDBRef {
/**
* @var
* @var $refKey
*/
protected static $refKey = '$ref';
/**
* @var
* @var $idKey
*/
protected static $idKey = '$id';
@ -2349,6 +2353,7 @@ class MongoDuplicateKeyException extends MongoWriteConcernException {
/**
* <p>(PECL mongo &gt;= 1.3.0)</p>
* @link https://php.net/manual/en/class.mongoresultexception.php#mongoresultexception.props.document
*
*/
class MongoResultException extends MongoException {
/**
@ -2367,13 +2372,13 @@ class MongoResultException extends MongoException {
class MongoTimestamp {
/**
* @link https://php.net/manual/en/class.mongotimestamp.php#mongotimestamp.props.sec
* @var
* @var $sec
*/
public $sec;
/**
* @link https://php.net/manual/en/class.mongotimestamp.php#mongotimestamp.props.inc
* @var
* @var $inc
*/
public $inc;
@ -2398,7 +2403,7 @@ class MongoTimestamp {
class MongoInt32 {
/**
* @link https://php.net/manual/en/class.mongoint32.php#mongoint32.props.value
* @var
* @var $value
*/
public $value;
@ -2420,7 +2425,7 @@ class MongoInt32 {
class MongoInt64 {
/**
* @link https://php.net/manual/en/class.mongoint64.php#mongoint64.props.value
* @var
* @var $value
*/
public $value;

View File

@ -364,19 +364,19 @@ class Client
class Message
{
/** @var string */
/** @var string $topic */
public $topic;
/** @var string */
/** @var string $payload */
public $payload;
/** @var int */
/** @var int $payload */
public $mid;
/** @var int */
/** @var int $qos */
public $qos;
/** @var bool */
/** @var bool $payload */
public $retain;
/**

View File

@ -209,6 +209,7 @@ class OAuth {
public function setNonce($nonce) { }
/**
*
* @param int $reqengine
* @return void
*/
@ -244,7 +245,9 @@ class OAuth {
public function setVersion($version) { }
}
/**
*
*/
class OAuthException extends Exception {
/**

View File

@ -1,67 +1,68 @@
<?php
<?php
/** @link https://github.com/krakjoe/pcov/blob/develop/README.md */
namespace
{
define('pcov\all', 0);
define('pcov\inclusive', 1);
define('pcov\exclusive', 2);
define('pcov\version', '1.0.6');
namespace
{
define('pcov\all', 0);
define('pcov\inclusive', 1);
define('pcov\exclusive', 2);
define('pcov\version', '1.0.6');
}
namespace pcov
{
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall start recording coverage information
* @return void
*/
namespace pcov
{
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall start recording coverage information
* @return void
*/
function start () {}
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall stop recording coverage information
* @return void
*/
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall stop recording coverage information
* @return void
*/
function stop() {}
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall collect coverage information
* @param int $type [optional] <p>
* 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
* </p>
* @param array $filenames [optional] <p>
* Note: paths in filter must be realpath
* </p>
* @return array
*/
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall collect coverage information
* @param int $type [optional] <p>
* 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
* </p>
* @param array $filenames [optional] <p>
* Note: paths in filter must be realpath
* </p>
* @return array
*/
function collect($type = all, $filter = []) {}
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall clear stored information
* @param bool $files [optional] <p>
* set true to clear file tables
* Note: clearing the file tables may have surprising consequences
* </p>
* @return void
*/
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall clear stored information
* @param bool $files [optional] <p>
* set true to clear file tables
* Note: clearing the file tables may have surprising consequences
* </p>
* @return void
*/
function clear($files = false) {}
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall return list of files waiting to be collected
* @return array
*/
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall return list of files waiting to be collected
* @return array
*/
function waiting() {}
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall return the current size of the trace and cfg arena
* @return int
*/
function memory() {}
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>
* Shall return the current size of the trace and cfg arena
* @return int
*/
function memory() {}
}

View File

@ -353,6 +353,7 @@ class PDFlib
function circle($x, $y, $r){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-clip.php
@ -391,6 +392,7 @@ class PDFlib
function close_pdi($doc){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-close.php
@ -400,6 +402,7 @@ class PDFlib
function close(){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-closepath-fill-stroke.php
@ -407,6 +410,7 @@ class PDFlib
function closepath_fill_stroke(){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-closepath-stroke.php
@ -414,6 +418,7 @@ class PDFlib
function closepath_stroke(){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-closepath.php
@ -595,6 +600,7 @@ class PDFlib
function delete_textflow($textflow){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-delete.php
@ -623,6 +629,7 @@ class PDFlib
function end_document($optlist){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-end-font.php
@ -630,6 +637,7 @@ class PDFlib
function end_font(){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-end-glyph.php
@ -646,6 +654,7 @@ class PDFlib
function end_item($id){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-end-layer.php
@ -662,6 +671,7 @@ class PDFlib
function end_page_ext($optlist){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-end-page.php
@ -669,6 +679,7 @@ class PDFlib
function end_page($p){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-end-pattern.php
@ -676,6 +687,7 @@ class PDFlib
function end_pattern($p){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-end-template.php
@ -683,6 +695,7 @@ class PDFlib
function end_template($p){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-endpath.php
@ -714,6 +727,7 @@ class PDFlib
function fill_pdfblock($page, $blockname, $contents, $optlist){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-fill-stroke.php
@ -729,13 +743,16 @@ class PDFlib
* @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(){}
/**
@ -746,6 +763,7 @@ class PDFlib
* @return int
*
* @link https://secure.php.net/manual/en/function.pdf-findfont.php(Dep)
*/
function findfont($fontname , $encoding , $embed){}
/**
@ -757,6 +775,7 @@ class PDFlib
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-fit-image.php
*/
function fit_image($image , $x , $y , $optlist){}
/**
@ -768,6 +787,7 @@ class PDFlib
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-fit-pdi-page.php
*/
function fit_pdi_page($page , $x , $y , $optlist){}
/**
@ -781,6 +801,7 @@ class PDFlib
* @return string
*
* @link https://secure.php.net/manual/en/function.pdf-fit-table.php
*/
function fit_table($table , $llx , $lly , $urx , $ury , $optlist){}
/**
@ -794,6 +815,7 @@ class PDFlib
* @return string
*
* @link https://secure.php.net/manual/en/function.pdf-fit-textflow.php
*/
function fit_textflow($textflow , $llx , $lly , $urx , $ury , $optlist){}
/**
@ -805,30 +827,39 @@ class PDFlib
* @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(){}
/**
@ -837,6 +868,7 @@ class PDFlib
* @return int
*
* @link https://secure.php.net/manual/en/function.pdf-get-majorversion.php(dep)
*/
function get_majorversion(){}
/**
@ -845,6 +877,7 @@ class PDFlib
* @return int
*
* @link https://secure.php.net/manual/en/function.pdf-get-minorversion.php(dep)
*/
function get_minorversion(){}
/**
@ -854,6 +887,7 @@ class PDFlib
* @return string
*
* @link https://secure.php.net/manual/en/function.pdf-get-parameter.php
*/
function get_parameter($key , $modifier){}
/**
@ -865,6 +899,7 @@ class PDFlib
* @return string
*
* @link https://secure.php.net/manual/en/function.pdf-get-pdi-parameter.php
*/
function get_pdi_parameter($key , $doc , $page , $reserved){}
/**
@ -876,6 +911,7 @@ class PDFlib
* @return float
*
* @link https://secure.php.net/manual/en/function.pdf-get-pdi-value.php
*/
function get_pdi_value($key , $doc , $page , $reserved){}
/**
@ -885,6 +921,7 @@ class PDFlib
* @return float
*
* @link https://secure.php.net/manual/en/function.pdf-get-value.php
*/
function get_value($key , $modifier){}
/**
@ -895,6 +932,7 @@ class PDFlib
* @return float
*
* @link https://secure.php.net/manual/en/function.pdf-info-font.php
*/
function info_font($font , $keyword , $optlist){}
/**
@ -905,6 +943,7 @@ class PDFlib
* @return float
*
* @link https://secure.php.net/manual/en/function.pdf-info-matchbox.php
*/
function info_matchbox($boxname , $num , $keyword){}
/**
@ -914,6 +953,7 @@ class PDFlib
* @return float
*
* @link https://secure.php.net/manual/en/function.pdf-info-table.php
*/
function info_table($table , $keyword){}
/**
@ -923,6 +963,7 @@ class PDFlib
* @return float
*
* @link https://secure.php.net/manual/en/function.pdf-info-textflow.php
*/
function info_textflow($textflow , $keyword){}
@ -938,6 +979,7 @@ class PDFlib
function info_textline($text , $keyword , $optlist){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-initgraphics.php
@ -1188,6 +1230,7 @@ class PDFlib
function rect($x, $y, $width, $height){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-restore.php
@ -1213,6 +1256,7 @@ class PDFlib
function rotate($phi){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-save.php
@ -1575,6 +1619,7 @@ class PDFlib
function stringwidth($text, $font, $fontsize){}
/**
*
* @return bool
*
* @link https://secure.php.net/manual/en/function.pdf-stroke.php
@ -2437,6 +2482,7 @@ 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){}
@ -2446,6 +2492,7 @@ 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){}
/**
@ -2457,6 +2504,7 @@ 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){}
/**
@ -2469,6 +2517,7 @@ 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){}
/**
@ -2481,6 +2530,7 @@ 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){}
/**
@ -2495,6 +2545,7 @@ 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){}
/**
@ -2509,6 +2560,7 @@ 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){}
/**
@ -2521,6 +2573,7 @@ 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){}
/**
@ -2529,6 +2582,7 @@ function PDF_fit_textline($pdf, $text , $x , $y , $optlist){}
* @return string
*
* @link https://secure.php.net/manual/en/function.pdf-get-apiname.php
*/
function PDF_get_apiname($pdf){}
/**
@ -2537,6 +2591,7 @@ function PDF_get_apiname($pdf){}
* @return string
*
* @link https://secure.php.net/manual/en/function.pdf-get-buffer.php
*/
function PDF_get_buffer($pdf){}
/**
@ -2545,6 +2600,7 @@ function PDF_get_buffer($pdf){}
* @return string
*
* @link https://secure.php.net/manual/en/function.pdf-get-errmsg.php
*/
function PDF_get_errmsg($pdf){}
/**
@ -2553,6 +2609,7 @@ function PDF_get_errmsg($pdf){}
* @return int
*
* @link https://secure.php.net/manual/en/function.pdf-get-errnum.php
*/
function PDF_get_errnum($pdf){}
/**
@ -2561,6 +2618,7 @@ function PDF_get_errnum($pdf){}
* @return int
*
* @link https://secure.php.net/manual/en/function.pdf-get-majorversion.php(dep)
*/
function PDF_get_majorversion(){}
/**
@ -2569,6 +2627,7 @@ function PDF_get_majorversion(){}
* @return int
*
* @link https://secure.php.net/manual/en/function.pdf-get-minorversion.php(dep)
*/
function PDF_get_minorversion(){}
/**
@ -2579,6 +2638,7 @@ 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){}
/**
@ -2591,6 +2651,7 @@ 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){}
/**
@ -2603,6 +2664,7 @@ 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){}
/**
@ -2613,6 +2675,7 @@ 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){}
/**
@ -2624,6 +2687,7 @@ 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){}
/**
@ -2635,6 +2699,7 @@ 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){}
/**
@ -2645,6 +2710,7 @@ 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){}
/**
@ -2655,6 +2721,7 @@ 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){}

View File

@ -279,8 +279,8 @@ class Threaded implements Collectable, Traversable, Countable, ArrayAccess {
* (PECL pthreads &gt;= 2.0.0)<br/>
* Merges data into the current object
* @link https://secure.php.net/manual/en/threaded.merge.php
* @param mixed $from <p>The data to merge</p>
* @param bool $overwrite [optional] <p>Overwrite existing keys, by default true</p>
* @var mixed $from <p>The data to merge</p>
* @var bool $overwrite [optional] <p>Overwrite existing keys, by default true</p>
* @return bool <p>A boolean indication of success</p>
*/
public function merge( $from, $overwrite = true ) {}

View File

@ -8,6 +8,7 @@
* @link https://github.com/zgb7mtr/phpredis_cluster_phpdoc
*
* @method mixed eval($script, $args = array(), $numKeys = 0)
*
*/
class RedisCluster {
const AFTER = 'after';
@ -3455,6 +3456,7 @@ class RedisCluster {
public function geopos($key, $member1, $member2 = null, $memberN = null) { }
/**
*
* Returns the distance between two members of a geospatial index
*
* @param string $key

View File

@ -275,6 +275,7 @@ function sodium_crypto_kx_keypair (): string {}
* @throws SodiumException
* @since 7.2
*/
function sodium_crypto_kx_publickey (string $key): string {}
/**

View File

@ -1725,6 +1725,7 @@ function SQLSRV_SQLTYPE_VARBINARY($byteCount){}
*
* @return int Value to use in any place that accepts a SQLSRV_SQLTYPE_* constant to represent the varchar data type.
*/
function SQLSRV_SQLTYPE_VARCHAR($charCount) {}
/**

View File

@ -78,6 +78,7 @@ define("PASSWORD_BCRYPT_DEFAULT_COST", 10);
define("PASSWORD_BCRYPT", '2y');
/**
*
* PASSWORD_ARGON2I is used to create new password hashes using the Argon2i algorithm.
*
* Supported Options:
@ -94,6 +95,7 @@ define("PASSWORD_BCRYPT", '2y');
define('PASSWORD_ARGON2I', 'argon2i');
/**
*
* PASSWORD_ARGON2ID is used to create new password hashes using the Argon2id algorithm.
*
* Supported Options:

View File

@ -56,6 +56,7 @@ class php_user_filter {
* The filter experienced an unrecoverable error and cannot continue.
* </td>
* </tr>
*
*/
public function filter($in, $out, &$consumed, $closing)
{
@ -550,6 +551,7 @@ function htmlspecialchars_decode ($string, $quote_style = null) {}
* versions of PHP prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards.
* </p>
*
*
* <p>
* The following character sets are supported:
* </p><table class="doctable table">

View File

@ -3,6 +3,7 @@
* Stubs for stomp
* https://pecl.php.net/package/stomp
*/
class Stomp
{

View File

@ -100,6 +100,7 @@ $HTTP_POST_VARS = array();
* <p>
* Note: When running on the command line , this will not include the argv and argc entries; these are present in the $_SERVER array.
*
*
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/

View File

@ -34,6 +34,7 @@ class StubsContainer
}
/**
* @param PHPConst $constant
* @throws RuntimeException
*/
public function addConstant(PHPConst $constant): void
@ -75,6 +76,7 @@ class StubsContainer
}
/**
* @param PHPClass $class
* @throws RuntimeException
*/
public function addClass(PHPClass $class): void
@ -103,6 +105,7 @@ class StubsContainer
}
/**
* @param PHPInterface $interface
* @throws RuntimeException
*/
public function addInterface(PHPInterface $interface): void

View File

@ -5,20 +5,25 @@ use PhpParser\Node\Expr;
class ExpectedFunctionArgumentsInfo
{
/**
* @var Expr|null
*/
private ?Expr $functionReference;
/**
* @var Expr[]
*/
private array $expectedArguments;
/**
* @var int
*/
private int $index;
/**
* ExpectedFunctionArgumentsInfo constructor.
* @param Expr $functionReference
* @param Expr[] $expectedArguments
* @param int $index
*/
public function __construct(?Expr $functionReference, array $expectedArguments, int $index)
{
@ -28,13 +33,17 @@ class ExpectedFunctionArgumentsInfo
}
/**
* @return Expr|null
*/
public function getFunctionReference(): ?Expr
{
return $this->functionReference;
}
/**
* @param Expr $functionReference
*/
public function setFunctionReference(Expr $functionReference): void
{
$this->functionReference = $functionReference;
@ -56,7 +65,9 @@ class ExpectedFunctionArgumentsInfo
$this->expectedArguments = $expectedArguments;
}
/**
* @return int
*/
public function getIndex(): int
{
return $this->index;

View File

@ -93,6 +93,7 @@ class MetaExpectedArgumentsCollector extends NodeVisitorAbstract
* @param Expr|null $functionReference
* @param $index
* @param $args
* @return ExpectedFunctionArgumentsInfo
*/
private function getExpectedArgumentsInfo($functionReference, $args, $index = -1): ExpectedFunctionArgumentsInfo
{

View File

@ -43,6 +43,9 @@ class StubParser
}
/**
* @param NodeVisitorAbstract $visitor
* @param CoreStubASTVisitor|null $coreStubASTVisitor
* @param callable $fileCondition
* @throws LogicException
* @throws UnexpectedValueException
*/

View File

@ -17,6 +17,7 @@ class Utils
/**
* @param Since|Deprecated $tag
* @return bool
*/
public static function versionIsMajor($tag): bool
{

View File

@ -34,6 +34,7 @@ class ASTVisitor extends NodeVisitorAbstract
}
/**
* @param Node $node
* @return void
* @throws Exception
*/

View File

@ -27,6 +27,7 @@ class MetaOverrideFunctionsParser extends NodeVisitorAbstract
}
/**
* @param Node $node
* @return void
* @throws RuntimeException
*/

View File

@ -411,6 +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 = "" ) { }
/**
@ -449,6 +450,7 @@ 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 = "" ) { }
@ -527,6 +529,7 @@ function win32_query_service_status( $serviceName, $machine = "" ) { }
*
* @return mixed 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 ) { }
@ -563,6 +566,7 @@ 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 = "" ) { }

View File

@ -321,8 +321,8 @@ function wb_exec($command, $param = null)
* "backgroundcolor" The main face color for Windows dialog boxes and controls
* "colordepth" The current color depth in bits per pixel
* "commandline" The original Windows command line including the executable file
* "computername" The name of the computer inside the network
* "consolemode" 1 indicates that console mode (DOS box) is active, 0 otherwise
* "computername" The name of the computer inside the network
* "consolemode" 1 indicates that console mode (DOS box) is active, 0 otherwise
* "diskdrives" The list of all available disk drives
* "exepath" The path to the main executable (PHP.EXE)
* "fontpath" The current font path
@ -1117,7 +1117,7 @@ function wb_set_state($wbobject, $item, $state)
* AppWindow
* ResizableWindow
* PopupWindow
* NakedWindow WBC_TOP Make the window a topmost window.
* NakedWindow  WBC_TOP Make the window a topmost window.
*
* ListView WBC_LINES Display grid lines around items
* ListView WBC_CHECKBOXES Display check boxes in the first column of all items
@ -1508,7 +1508,7 @@ function wb_get_size($object, $param = null)
* WBC_NORMAL window Restores the window, if it is not already.
* WBC_MINIMIZED window Minimizes the window, if it is not already.
* WBC_MAXIMIZED window Maximizes the window, if it is not already.
* Array of integers ListView Changes the column widths of the control.
* Array of integers ListView Changes the column widths of the control.
*
* @param $wbobject
* @param $width

View File

@ -222,27 +222,32 @@ final class Yaf_Application {
public function getLastErrorMsg(){ }
/**
*
* @since 2.1.2
* @link https://secure.php.net/manual/en/yaf-application.clearlasterror.php
*/
public function clearLastError(){ }
/**
*
* @link https://secure.php.net/manual/en/yaf-application.destruct.php
*/
public function __destruct(){ }
/**
*
* @link https://secure.php.net/manual/en/yaf-application.clone.php
*/
private function __clone(){ }
/**
*
* @link https://secure.php.net/manual/en/yaf-application.sleep.php
*/
private function __sleep(){ }
/**
*
* @link https://secure.php.net/manual/en/yaf-application.wakeup.php
*/
private function __wakeup(){ }
@ -363,6 +368,7 @@ final class Yaf_Dispatcher {
public function setView(Yaf_View_Interface $view){ }
/**
*
* @link https://secure.php.net/manual/en/yaf-dispatcher.setrequest.php
*
* @param Yaf_Request_Abstract $request
@ -542,6 +548,7 @@ final class Yaf_Dispatcher {
* <br/>
* <p>If you want <b>Yaf_Loader</b> 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()</p>
* @link https://secure.php.net/manual/en/class.yaf-loader.php
*
*/
class Yaf_Loader {
@ -1188,6 +1195,7 @@ abstract class Yaf_Controller_Abstract {
* <p>Yaf_Controller_Abstract::__construct() is final, which means users can not override it. but users can define <b>Yaf_Controller_Abstract::init()</b>, which will be called after controller object is instantiated.</p>
*
* @link https://secure.php.net/manual/en/yaf-controller-abstract.init.php
*
*/
public function init(){ }
@ -1216,6 +1224,7 @@ abstract class Yaf_Controller_Abstract {
* <p>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.</p>
*
* @link https://secure.php.net/manual/en/class.yaf-action-abstract.php
*
*/
abstract class Yaf_Action_Abstract extends Yaf_Controller_Abstract {
@ -1401,6 +1410,7 @@ abstract class Yaf_Request_Abstract {
public function isRouted(){ }
/**
*
* @link https://secure.php.net/manual/en/yaf-request-abstract.isxmlhttprequest.php
*
* @return bool false
@ -1432,6 +1442,7 @@ abstract class Yaf_Request_Abstract {
public function getEnv($name = null, $default = null){ }
/**
*
* @link https://secure.php.net/manual/en/yaf-request-abstract.getparam.php
*
* @param string $name
@ -1442,6 +1453,7 @@ abstract class Yaf_Request_Abstract {
public function getParam($name, $default = null){ }
/**
*
* @link https://secure.php.net/manual/en/yaf-request-abstract.getparams.php
*
* @return array
@ -1880,7 +1892,9 @@ class Yaf_Exception extends Exception {
}
/**
*
*/
class Yaf_Response_Http extends Yaf_Response_Abstract {
/**
@ -1888,7 +1902,9 @@ class Yaf_Response_Http extends Yaf_Response_Abstract {
*/
protected $_response_code = 0;
/**
*
*/
private function __clone(){ }
/**
@ -1930,6 +1946,7 @@ class Yaf_Response_Http extends Yaf_Response_Abstract {
/**
* @link https://secure.php.net/manual/en/yaf-response-abstract.clearheaders.php
*
*
* @return Yaf_Response_Abstract|false
*/
public function clearHeaders(){ }
@ -1953,10 +1970,14 @@ class Yaf_Response_Http extends Yaf_Response_Abstract {
public function response(){ }
}
/**
*
*/
class Yaf_Response_Cli extends Yaf_Response_Abstract {
/**
*
*/
private function __clone(){ }
/**
@ -2061,6 +2082,7 @@ class Yaf_Request_Http extends Yaf_Request_Abstract {
*
* @param string $request_uri
* @param string $base_uri
*
*/
public function __construct($request_uri, $base_uri){ }
@ -2323,6 +2345,7 @@ class Yaf_Config_Simple extends Yaf_Config_Abstract implements Iterator, Travers
*
* @param array $array
* @param string $readonly
*
*/
public function __construct(array $array, $readonly = null){ }
@ -2540,6 +2563,7 @@ class Yaf_View_Simple implements Yaf_View_Interface {
* <p> it is unnecessary to instance a <b>Yaf_Route_Static</b>, 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.</p>
*
* @link https://secure.php.net/manual/en/class.yaf-route-static.php
*
*/
class Yaf_Route_Static implements Yaf_Route_Interface {

View File

@ -249,6 +249,7 @@ final class Application
}
/**
*
* @since 2.1.2
* @link https://secure.php.net/manual/en/yaf-application.clearlasterror.php
*/
@ -257,6 +258,7 @@ final class Application
}
/**
*
* @link https://secure.php.net/manual/en/yaf-application.destruct.php
*/
public function __destruct()
@ -264,6 +266,7 @@ final class Application
}
/**
*
* @link https://secure.php.net/manual/en/yaf-application.clone.php
*/
private function __clone()
@ -271,6 +274,7 @@ final class Application
}
/**
*
* @link https://secure.php.net/manual/en/yaf-application.sleep.php
*/
private function __sleep()
@ -278,6 +282,7 @@ final class Application
}
/**
*
* @link https://secure.php.net/manual/en/yaf-application.wakeup.php
*/
private function __wakeup()
@ -415,6 +420,7 @@ final class Dispatcher
}
/**
*
* @link https://secure.php.net/manual/en/yaf-dispatcher.setrequest.php
*
* @param \Yaf\Request_Abstract $request
@ -624,6 +630,7 @@ final class Dispatcher
* <br/>
* <p>If you want <b>\Yaf\Loader</b> 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()</p>
* @link https://secure.php.net/manual/en/class.yaf-loader.php
*
*/
class Loader
{
@ -1387,6 +1394,7 @@ abstract class Controller_Abstract
* <p>\Yaf\Controller_Abstract::__construct() is final, which means users can not override it. but users can define <b>\Yaf\Controller_Abstract::init()</b>, which will be called after controller object is instantiated.</p>
*
* @link https://secure.php.net/manual/en/yaf-controller-abstract.init.php
*
*/
public function init()
{
@ -1419,6 +1427,7 @@ abstract class Controller_Abstract
* <p>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.</p>
*
* @link https://secure.php.net/manual/en/class.yaf-action-abstract.php
*
*/
abstract class Action_Abstract extends \Yaf\Controller_Abstract
{
@ -1620,6 +1629,7 @@ abstract class Request_Abstract
}
/**
*
* @link https://secure.php.net/manual/en/yaf-request-abstract.isxmlhttprequest.php
*
* @return bool false
@ -1657,6 +1667,7 @@ abstract class Request_Abstract
}
/**
*
* @link https://secure.php.net/manual/en/yaf-request-abstract.getparam.php
*
* @param string $name
@ -1669,6 +1680,7 @@ abstract class Request_Abstract
}
/**
*
* @link https://secure.php.net/manual/en/yaf-request-abstract.getparams.php
*
* @return array
@ -2173,6 +2185,7 @@ class Exception extends \Exception
* <p> it is unnecessary to instance a <b>\Yaf\Route_Static</b>, 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.</p>
*
* @link https://secure.php.net/manual/en/class.yaf-route-static.php
*
*/
class Route_Static implements \Yaf\Route_Interface
{
@ -2216,7 +2229,9 @@ class Route_Static implements \Yaf\Route_Interface
namespace Yaf\Response {
use Yaf\Response;
/**
*
*/
class Http extends \Yaf\Response_Abstract
{
@ -2225,7 +2240,9 @@ class Http extends \Yaf\Response_Abstract
*/
protected $_response_code = 0;
/**
*
*/
private function __clone()
{
}
@ -2276,6 +2293,7 @@ class Http extends \Yaf\Response_Abstract
/**
* @link https://secure.php.net/manual/en/yaf-response-abstract.clearheaders.php
*
*
* @return \Yaf\Response_Abstract|false
*/
public function clearHeaders()
@ -2303,11 +2321,15 @@ class Http extends \Yaf\Response_Abstract
public function response()
{
}
}
}/**
*
*/
class Cli extends \Yaf\Response_Abstract
{
/**
*
*/
private function __clone()
{
}
@ -2433,6 +2455,7 @@ class Http extends \Yaf\Request_Abstract
*
* @param string $request_uri
* @param string $base_uri
*
*/
public function __construct($request_uri, $base_uri)
{
@ -2766,6 +2789,7 @@ class Simple extends \Yaf\Config_Abstract implements \Iterator, \Traversable, \A
*
* @param array $array
* @param string $readonly
*
*/
public function __construct(array $array, $readonly = null)
{

View File

@ -45,7 +45,8 @@ class ZendAPI_Queue {
/**
* Update an existing job in the queue with it's new properties. If job doesn't exists,
* a new job will be added. Job is passed by reference and it's updated from the queue.
a new job will be added. Job is passed by reference and it's updated from the queue.
*
* @param Job $job The Job object, the ID of the given job is the id of the job we try to update.
If the given Job doesn't have an assigned ID, a new job will be added
* @return int The id of the updated job
@ -90,16 +91,16 @@ class ZendAPI_Queue {
/**
* returns job statistics
* @return array with the following:
* "total_complete_jobs"
* "total_incomplete_jobs"
* "average_time_in_queue" [msec]
* "average_waiting_time" [sec]
* "added_jobs_in_window"
* "activated_jobs_in_window"
* "completed_jobs_in_window"
* moving window size can be set through ini file
*/
* @return array with the following:
"total_complete_jobs"
"total_incomplete_jobs"
"average_time_in_queue" [msec]
"average_waiting_time" [sec]
"added_jobs_in_window"
"activated_jobs_in_window"
"completed_jobs_in_window"
* moving window size can be set through ini file
*/
function getStatistics() {}
@ -275,8 +276,8 @@ class ZendAPI_Job {
/**
* Array holding all the variables that the user wants the job's script to have when it's called
* The structure is variable_name => variable_value
* i.e. if the user_variables array is array('my_var' => 8), when the script is called,
* a global variable called $my_var will have the int value of 8
i.e. if the user_variables array is array('my_var' => 8), when the script is called,
a global variable called $my_var will have the int value of 8
* By default there are no variables that we want to add to the job's script
*
* @var array
@ -289,10 +290,10 @@ class ZendAPI_Job {
POST|GET|COOKIE|SESSION|RAW_POST|SERVER|FILES|ENV
* By default there are no global variables we want to add to the job's script
* i.e. In order to save the current GET and COOKIE global variables,
* this property should be JOB_QUEUE_SAVE_GET|JOB_QUEUE_SAVE_COOKIE (or the integer 6)
* In that case (of GET and COOKIE), when the job is added, the current $_GET and
* $_COOKIE variables should be saved, and when the job's script is called,
* those global variables should be populated
this property should be JOB_QUEUE_SAVE_GET|JOB_QUEUE_SAVE_COOKIE (or the integer 6)
In that case (of GET and COOKIE), when the job is added, the current $_GET and
$_COOKIE variables should be saved, and when the job's script is called,
those global variables should be populated
*
* @var int
*/
@ -359,10 +360,10 @@ class ZendAPI_Job {
/**
* Add the job the the specified queue (without instantiating a JobQueue object)
* This function should be used for extreme simplicity of the user when adding a single job,
* when the user want to insert more than one job and/or manipulating other jobs (or job tasks)
* he should create and use the JobQueue object
when the user want to insert more than one job and/or manipulating other jobs (or job tasks)
he should create and use the JobQueue object
* Actually what this function do is to create a new JobQueue, login to it (with the given parameters),
* add this job to it and logout
add this job to it and logout
*
* @param string $jobqueue_url Full address of the queue we want to connect to
* @param string $password For authentication, the queue password