Make WordPress Core


Ignore:
Timestamp:
05/17/2023 11:56:47 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve Style Engine DocBlocks per the documentation standards.

Follow-up to [54156], [55719], [55733].

See #57840.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/style-engine/class-wp-style-engine-css-declarations.php

    r55734 r55819  
    3131         *
    3232         * If a `$declarations` array is passed, it will be used to populate
    33          * the initial $declarations prop of the object by calling add_declarations().
     33         * the initial `$declarations` prop of the object by calling add_declarations().
    3434         *
    3535         * @since 6.1.0
    3636         *
    37          * @param string[] $declarations An associative array of CSS definitions, e.g., `array( "$property" => "$value", "$property" => "$value" )`.
     37         * @param string[] $declarations Optional. An associative array of CSS definitions,
     38         *                               e.g. `array( "$property" => "$value", "$property" => "$value" )`.
     39         *                               Default empty array.
    3840         */
    3941        public function __construct( $declarations = array() ) {
     
    103105         * @since 6.1.0
    104106         *
    105          * @param string[] $properties An array of properties.
     107         * @param string[] $properties Optional. An array of properties. Default empty array.
    106108         * @return WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods.
    107109         */
     
    131133         * @param string $property The CSS property.
    132134         * @param string $value    The value to be filtered.
    133          * @param string $spacer   The spacer between the colon and the value. Defaults to an empty string.
     135         * @param string $spacer   Optional. The spacer between the colon and the value.
     136         *                         Default empty string.
    134137         * @return string The filtered declaration or an empty string.
    135138         */
     
    147150         * @since 6.1.0
    148151         *
    149          * @param bool $should_prettify Whether to add spacing, new lines and indents.
    150          * @param int  $indent_count    The number of tab indents to apply to the rule. Applies if `prettify` is `true`.
     152         * @param bool $should_prettify Optional. Whether to add spacing, new lines and indents.
     153         *                              Default false.
     154         * @param int  $indent_count    Optional. The number of tab indents to apply to the rule.
     155         *                              Applies if `prettify` is `true`. Default 0.
    151156         * @return string The CSS declarations.
    152157         */
     
    165170                        }
    166171                }
     172
    167173                return rtrim( $declarations_output );
    168174        }
Note: See TracChangeset for help on using the changeset viewer.