Skip to content

Commit

Permalink
Fix phpdoc blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes authored and isfedorov committed Apr 11, 2021
1 parent 6a681b0 commit 6f2c508
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 31 deletions.
4 changes: 4 additions & 0 deletions Ev/Ev.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,8 @@ public function __construct(
* Simply stops and restarts the periodic watcher again.
*
* Simply stops and restarts the periodic watcher again. This is only useful when attributes are changed.
*
* @return void
*/
public function again() {}

Expand Down Expand Up @@ -852,6 +854,7 @@ final public static function createStopped(
* Configures the watcher
* @param float $offset The same meaning as for {@see EvPeriodic::__construct}
* @param float $interval The same meaning as for {@see EvPeriodic::__construct}
* @param null|callable $reschedule_cb The same meaning as for {@see EvPeriodic::__construct}
* @return void
*/
public function set($offset, $interval, $reschedule_cb = null) {}
Expand Down Expand Up @@ -1409,6 +1412,7 @@ public function nowUpdate() {}
*
* @param float $offset
* @param float $interval
* @param callable $reschedule_cb
* @param callable $callback
* @param mixed $data
* @param int $priority
Expand Down
2 changes: 1 addition & 1 deletion curl/curl_d.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@
* If it hasn't been modified, a "304 Not Modified" header will be returned assuming <b>CURLOPT_HEADER</b> is <b>TRUE</b>.
* Use <b>CURL_TIMECOND_IFUNMODSINCE</b> for the reverse effect.
* <b>CURL_TIMECOND_IFMODSINCE</b> is the default.
* * @link https://www.php.net/manual/en/function.curl-setopt.php
* @link https://www.php.net/manual/en/function.curl-setopt.php
*/
define('CURLOPT_TIMECONDITION', 33);
/**
Expand Down
2 changes: 1 addition & 1 deletion gnupg/gnupg.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ 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 $signed_text
* @param string $signature
* @param string &$plaintext
*
Expand Down
2 changes: 1 addition & 1 deletion intl/IntlChar.php
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ public static function digit($codepoint, $base = 10) {}
* @link https://php.net/manual/en/intlchar.enumcharnames.php
* @param int|string $start The first code point in the enumeration range.
* @param int|string $end One more than the last code point in the enumeration range (the first one after the range).
* @param callable $callback<p>
* @param callable $callback <p>
* The function that is to be called for each character name. The following three arguments will be passed into it:
* </p><ul>
* <li>integer <em>$codepoint</em> - The numeric code point value</li>
Expand Down
4 changes: 2 additions & 2 deletions libvirt-php/libvirt-php.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ function libvirt_connect_get_soundhw_models($conn, ?string $arch, int $flags = 0
/**
* Function is used to get the system information from connection if available
* @param resource $conn resource for connection
* @return string|false: XML description of system information from the connection or FALSE for error
* @return string|false XML description of system information from the connection or FALSE for error
* @since 0.4.1(-2)
*/
function libvirt_connect_get_sysinfo($conn): string|false {}
Expand Down Expand Up @@ -947,7 +947,7 @@ function libvirt_domain_new($conn, string $name, string|null|false $arch, int $m

/**
* Function is used to get the VNC server location for the newly created domain (newly started installation)
* @return string|null: a VNC server for a newly created domain resource (if any)
* @return string|null a VNC server for a newly created domain resource (if any)
* @since 0.4.5
*/
function libvirt_domain_new_get_vnc(): string|null {}
Expand Down
2 changes: 1 addition & 1 deletion mongo/mongo.php
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ public function setReadPreference($read_preference, array $tags) {}
* @link https://php.net/manual/en/mongodb.setwriteconcern.php
* Set the write concern for this database
* @param mixed $w <p>The write concern. This may be an integer denoting the number of servers required to acknowledge the write, or a string mode (e.g. "majority").</p>
* @param int $wtimeout[optional] <p>The maximum number of milliseconds to wait for the server to satisfy the write concern.</p>
* @param int $wtimeout [optional] <p>The maximum number of milliseconds to wait for the server to satisfy the write concern.</p>
* @return bool Returns <b>TRUE</b> on success, or <b>FALSE</b> otherwise.
*/
public function setWriteConcern($w, $wtimeout) {}
Expand Down
6 changes: 3 additions & 3 deletions oci8/oci8.php
Original file line number Diff line number Diff line change
Expand Up @@ -1954,9 +1954,9 @@ function ocilogoff($connection_resource) {}
* @link https://php.net/manual/en/function.ocilogon.php
* @param string $username
* @param string $password
* @param string $connection_string[optional]
* @param string $character_set[optional]
* @param int $session_mode[optional]
* @param string $connection_string [optional]
* @param string $character_set [optional]
* @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) {}
Expand Down
24 changes: 8 additions & 16 deletions pdflib/PDFlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -838,16 +838,12 @@ public function get_errmsg() {}
*/
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)
Expand Down Expand Up @@ -1638,7 +1634,7 @@ public function utf8_to_utf16($utf8string, $ordering) {}

/**
* Activates a previously created structure element or other content item.
* @param resource $pdfdoc
* @param resource $pdf The pDF doc
* @param int $id
*
* @return bool
Expand Down Expand Up @@ -2385,7 +2381,7 @@ function PDF_end_layer($pdf) {}
function PDF_end_page_ext($pdf, $optlist) {}

/**
* @param resource $pdf
* @param resource $p The PDF doc
*
* @return bool
*
Expand All @@ -2394,7 +2390,7 @@ function PDF_end_page_ext($pdf, $optlist) {}
function PDF_end_page($p) {}

/**
* @param resource $pdf
* @param resource $p The PDF doc
*
* @return bool
*
Expand All @@ -2403,7 +2399,7 @@ function PDF_end_page($p) {}
function PDF_end_pattern($p) {}

/**
* @param resource $pdf
* @param resource $p The PDF doc
*
* @return bool
*
Expand All @@ -2412,7 +2408,7 @@ function PDF_end_pattern($p) {}
function PDF_end_template($p) {}

/**
* @param resource $pdf
* @param resource $p The PDF doc
*
* @return bool
*
Expand Down Expand Up @@ -2584,16 +2580,12 @@ function PDF_get_errmsg($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() {}
/**
* @param void $
*
* @return int
*
* @link https://secure.php.net/manual/en/function.pdf-get-minorversion.php(dep)
Expand Down Expand Up @@ -2980,7 +2972,7 @@ function PDF_process_pdi($pdf, $doc, $page, $optlist) {}
function PDF_rect($pdf, $x, $y, $width, $height) {}

/**
* @param resource $pdf
* @param resource $p The PDF doc
*
* @return bool
*
Expand Down Expand Up @@ -3009,7 +3001,7 @@ function PDF_resume_page($pdf, $optlist) {}
function PDF_rotate($pdf, $phi) {}

/**
* @param resource $pdf
* @param resource $p The PDF doc
*
* @return bool
*
Expand Down Expand Up @@ -3407,7 +3399,7 @@ function PDF_skew($pdf, $alpha, $beta) {}
function PDF_stringwidth($pdf, $text, $font, $fontsize) {}

/**
* @param resource $pdf
* @param resource $p The PDF doc
*
* @return bool
*
Expand Down
2 changes: 2 additions & 0 deletions rdkafka/RdKafka/ProducerTopic.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ private function __construct() {}
* @param int $msgflags
* @param string|null $payload
* @param string|null $key
* @param string|null $msg_opaque
*
* @return void
*/
Expand All @@ -23,6 +24,7 @@ public function produce($partition, $msgflags, $payload = null, $key = null, $ms
* @param string|null $key
* @param array|null $headers
* @param int $timestamp_ms
* @param string|null $msg_opaque
*
* @return void
*/
Expand Down
4 changes: 2 additions & 2 deletions redis/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public function setex($key, $ttl, $value) {}
*
* @see setex()
* @param string $key
* @param int $ttl, in milliseconds.
* @param int $ttl in milliseconds.
* @param string|mixed $value
*
* @return bool TRUE if the command is successful
Expand Down Expand Up @@ -681,7 +681,7 @@ public function subscribe($channels, $callback) {}
* @param array $patterns an array of glob-style patterns to subscribe
* @param string|array $callback Either a string or an array with an object and method.
* The callback will get four arguments ($redis, $pattern, $channel, $message)
* @param mixed Any non-null return value in the callback will be returned to the caller
* @return mixed Any non-null return value in the callback will be returned to the caller
*
* @link https://redis.io/commands/psubscribe
* @example
Expand Down
2 changes: 1 addition & 1 deletion wincache/wincache.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function wincache_ucache_meminfo() {}
* is case sensitive. key can also take array of name =&gt; value pairs where
* names will be used as keys. This can be used to add multiple values in the
* cache in one operation, thus avoiding race condition.</p>
* @param mixed $value<p>
* @param mixed $value <p>
* Value of a variable to store. Value supports all data types except resources,
* such as file handles. This parameter is ignored if first argument is an array.
* A general guidance is to pass NULL as value while using array as key.</p>
Expand Down
11 changes: 8 additions & 3 deletions yaf/yaf.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ public static function getInstance($local_library_path = null, $global_library_p
* @link https://secure.php.net/manual/en/yaf-loader.registerlocalnamespace.php
*
* @param string|string[] $namespace a string or a array of class name prefix. all class prefix with these prefix will be loaded in local library path.
* @param string $path
*
* @return bool
*/
Expand Down Expand Up @@ -1543,28 +1544,31 @@ public function setParam($name, $value = null) {}
* @link https://secure.php.net/manual/en/yaf-request-abstract.setmodulename.php
*
* @param string $module
* @param bool $format_name
*
* @return Yaf_Request_Abstract|bool
*/
public function setModuleName($module, $format_name = null) {}
public function setModuleName($module, $format_name = true) {}

/**
* @link https://secure.php.net/manual/en/yaf-request-abstract.setcontrollername.php
*
* @param string $controller
* @param bool $format_name
*
* @return Yaf_Request_Abstract|bool
*/
public function setControllerName($controller, $format_name = null) {}
public function setControllerName($controller, $format_name = true) {}

/**
* @link https://secure.php.net/manual/en/yaf-request-abstract.setactionname.php
*
* @param string $action
* @param bool $format_name
*
* @return Yaf_Request_Abstract|bool
*/
public function setActionName($action, $format_name = null) {}
public function setActionName($action, $format_name = true) {}

/**
* @link https://secure.php.net/manual/en/yaf-request-abstract.getmethod.php
Expand Down Expand Up @@ -2246,6 +2250,7 @@ public function isXmlHttpRequest() {}
* @link https://secure.php.net/manual/en/yaf-request-simple.construct.php
*
* @param string $method
* @param string $module
* @param string $controller
* @param string $action
* @param array $params
Expand Down

0 comments on commit 6f2c508

Please sign in to comment.