Ticket #51426: 51426-php-code-standards.patch
| File 51426-php-code-standards.patch, 14.0 KB (added by , 5 years ago) |
|---|
-
src/wp-admin/includes/media.php
176 176 * @since 2.6.0 177 177 * 178 178 * @param string $html The image HTML markup to send. 179 * @param int eger$id Image attachment ID.179 * @param int $id Image attachment ID. 180 180 * @param string $caption Image caption. 181 181 * @param string $title Image title attribute (not used). 182 182 * @param string $align Image CSS alignment property. … … 1319 1319 * @since 2.5.0 1320 1320 * 1321 1321 * @param string $html 1322 * @param int eger$attachment_id1322 * @param int $attachment_id 1323 1323 * @param array $attachment 1324 1324 * @return string 1325 1325 */ … … 2275 2275 * 2276 2276 * @param string $type 2277 2277 * @param object $errors 2278 * @param int eger$id2278 * @param int $id 2279 2279 */ 2280 2280 function media_upload_type_form( $type = 'file', $errors = null, $id = null ) { 2281 2281 … … 2349 2349 * 2350 2350 * @param string $type 2351 2351 * @param object $errors 2352 * @param int eger$id2352 * @param int $id 2353 2353 */ 2354 2354 function media_upload_type_url_form( $type = null, $errors = null, $id = null ) { 2355 2355 if ( null === $type ) { -
src/wp-content/themes/twentyseventeen/inc/template-tags.php
127 127 * Display a front page section. 128 128 * 129 129 * @param WP_Customize_Partial $partial Partial associated with a selective refresh request. 130 * @param int eger$id Front page section to display.130 * @param int $id Front page section to display. 131 131 */ 132 132 function twentyseventeen_front_page_section( $partial = null, $id = 0 ) { 133 133 if ( is_a( $partial, 'WP_Customize_Partial' ) ) { -
src/wp-content/themes/twentythirteen/functions.php
515 515 * 516 516 * @since Twenty Thirteen 1.0 517 517 * 518 * @param bool ean$echo (optional) Whether to echo the date. Default true.518 * @param bool $echo (optional) Whether to echo the date. Default true. 519 519 * @return string The HTML-formatted post date. 520 520 */ 521 521 function twentythirteen_entry_date( $echo = true ) { -
src/wp-includes/class-json.php
950 950 * @deprecated 5.3.0 Use the PHP native JSON extension instead. 951 951 * 952 952 * @param string 953 * @param int egerstart954 * @param int egerlength953 * @param int start 954 * @param int length 955 955 * @return integer length 956 956 */ 957 957 function substr8( $string, $start, $length=false ) -
src/wp-includes/class-requests.php
498 498 * Get the default options 499 499 * 500 500 * @see Requests::request() for values returned by this method 501 * @param bool ean$multirequest Is this a multirequest?501 * @param bool $multirequest Is this a multirequest? 502 502 * @return array Default option values 503 503 */ 504 504 protected static function get_default_options($multirequest = false) { -
src/wp-includes/class-simplepie.php
1304 1304 /** 1305 1305 * Set the limit for items returned per-feed with multifeeds 1306 1306 * 1307 * @param int eger$limit The maximum number of items to return.1307 * @param int $limit The maximum number of items to return. 1308 1308 */ 1309 1309 public function set_item_limit($limit = 0) 1310 1310 { -
src/wp-includes/class-wp-simplepie-file.php
23 23 * @since 3.2.0 Updated to use a PHP5 constructor. 24 24 * 25 25 * @param string $url Remote file URL. 26 * @param int eger$timeout Optional. How long the connection should stay open in seconds.26 * @param int $timeout Optional. How long the connection should stay open in seconds. 27 27 * Default 10. 28 * @param int eger$redirects Optional. The number of allowed redirects. Default 5.28 * @param int $redirects Optional. The number of allowed redirects. Default 5. 29 29 * @param string|array $headers Optional. Array or string of headers to send with the request. 30 30 * Default null. 31 31 * @param string $useragent Optional. User-agent value sent. Default null. 32 * @param bool ean$force_fsockopen Optional. Whether to force opening internet or unix domain socket32 * @param bool $force_fsockopen Optional. Whether to force opening internet or unix domain socket 33 33 * connection or not. Default false. 34 34 */ 35 35 public function __construct( $url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false ) { -
src/wp-includes/class-wp-simplepie-sanitize-kses.php
27 27 * @since 3.5.0 28 28 * 29 29 * @param mixed $data The data that needs to be sanitized. 30 * @param int eger$type The type of data that it's supposed to be.30 * @param int $type The type of data that it's supposed to be. 31 31 * @param string $base Optional. The `xml:base` value to use when converting relative 32 32 * URLs to absolute ones. Default empty. 33 33 * @return mixed Sanitized data. -
src/wp-includes/class-wp-widget.php
544 544 * 545 545 * @since 2.8.0 546 546 * 547 * @param int eger$number Optional. The unique order number of this widget instance547 * @param int $number Optional. The unique order number of this widget instance 548 548 * compared to other instances of the same class. Default -1. 549 549 */ 550 550 public function _register_one( $number = -1 ) { -
src/wp-includes/class-wp-xmlrpc-server.php
5573 5573 * 5574 5574 * @since 2.8.0 5575 5575 * 5576 * @param int eger$post_ID Post ID.5576 * @param int $post_ID Post ID. 5577 5577 * @param array $enclosure Enclosure data. 5578 5578 */ 5579 5579 public function add_enclosure_if_new( $post_ID, $enclosure ) { -
src/wp-includes/pomo/streams.php
62 62 /** 63 63 * Reads an array of 32-bit Integers from the Stream 64 64 * 65 * @param int eger$count How many elements should be read65 * @param int $count How many elements should be read 66 66 * @return mixed Array of integers or false if there isn't 67 67 * enough data or on error 68 68 */ -
src/wp-includes/pomo/translations.php
116 116 * This function should be overridden by the subclasses. For example MO/PO can derive the logic 117 117 * from their headers. 118 118 * 119 * @param int eger$count number of items119 * @param int $count number of items 120 120 */ 121 121 function select_plural_form( $count ) { 122 122 return 1 == $count ? 0 : 1; -
src/wp-includes/Requests/Exception.php
31 31 * @param string $message Exception message 32 32 * @param string $type Exception type 33 33 * @param mixed $data Associated data 34 * @param int eger$code Exception numerical code, if applicable34 * @param int $code Exception numerical code, if applicable 35 35 */ 36 36 public function __construct($message, $type, $data = null, $code = 0) { 37 37 parent::__construct($message, $code); -
src/wp-includes/Requests/Response.php
105 105 * 106 106 * @throws Requests_Exception If `$allow_redirects` is false, and code is 3xx (`response.no_redirects`) 107 107 * @throws Requests_Exception_HTTP On non-successful status code. Exception class corresponds to code (e.g. {@see Requests_Exception_HTTP_404}) 108 * @param bool ean$allow_redirects Set to false to throw on a 3xx as well108 * @param bool $allow_redirects Set to false to throw on a 3xx as well 109 109 */ 110 110 public function throw_for_status($allow_redirects = true) { 111 111 if ($this->is_redirect()) { -
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
1371 1371 * @since 4.9.0 Added the `$validate` parameter. 1372 1372 * 1373 1373 * @param string $template Page template filename. 1374 * @param int eger$post_id Post ID.1374 * @param int $post_id Post ID. 1375 1375 * @param bool $validate Whether to validate that the template selected is valid. 1376 1376 */ 1377 1377 public function handle_template( $template, $post_id, $validate = false ) { -
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
1173 1173 * 1174 1174 * @since 4.7.0 1175 1175 * 1176 * @param int eger$user_id User ID.1176 * @param int $user_id User ID. 1177 1177 * @param array $roles New user roles. 1178 1178 * @return true|WP_Error True if the current user is allowed to make the role change, 1179 1179 * otherwise a WP_Error object. -
src/wp-includes/SimplePie/HTTP/Parser.php
498 498 /** 499 499 * Prepare headers (take care of proxies headers) 500 500 * 501 * @param string $headers Raw headers502 * @param int eger $countRedirection count. Default to 1.501 * @param string $headers Raw headers 502 * @param int $count Redirection count. Default to 1. 503 503 * 504 504 * @return string 505 505 */ -
src/wp-includes/Text/Diff.php
210 210 * with array_walk(). 211 211 * 212 212 * @param string $line The line to trim. 213 * @param int eger$key The index of the line in the array. Not used.213 * @param int $key The index of the line in the array. Not used. 214 214 */ 215 215 static function trimNewlines(&$line, $key) 216 216 { -
src/wp-includes/widgets/class-wp-widget-custom-html.php
58 58 * 59 59 * @since 4.9.0 60 60 * 61 * @param int eger$number Optional. The unique order number of this widget instance61 * @param int $number Optional. The unique order number of this widget instance 62 62 * compared to other instances of the same class. Default -1. 63 63 */ 64 64 public function _register_one( $number = -1 ) { -
src/wp-includes/widgets/class-wp-widget-media.php
96 96 * 97 97 * @since 4.8.0 98 98 * 99 * @param int eger$number Optional. The unique order number of this widget instance99 * @param int $number Optional. The unique order number of this widget instance 100 100 * compared to other instances of the same class. Default -1. 101 101 */ 102 102 public function _register_one( $number = -1 ) { -
src/wp-includes/widgets/class-wp-widget-text.php
45 45 /** 46 46 * Add hooks for enqueueing assets when registering all widget instances of this widget class. 47 47 * 48 * @param int eger$number Optional. The unique order number of this widget instance48 * @param int $number Optional. The unique order number of this widget instance 49 49 * compared to other instances of the same class. Default -1. 50 50 */ 51 51 public function _register_one( $number = -1 ) {