Make WordPress Core


Ignore:
Timestamp:
05/17/2023 11:56:47 AM (16 months 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-rule.php

    r55733 r55819  
    3737
    3838    /**
    39      * Constructor
     39     * Constructor.
    4040     *
    4141     * @since 6.1.0
    4242     *
    43      * @param string                                    $selector     The CSS selector.
    44      * @param string[]|WP_Style_Engine_CSS_Declarations $declarations An associative array of CSS definitions, e.g., `array( "$property" => "$value", "$property" => "$value" )`,
     43     * @param string                                    $selector     Optional. The CSS selector. Default empty string.
     44     * @param string[]|WP_Style_Engine_CSS_Declarations $declarations Optional. An associative array of CSS definitions,
     45     *                                                                e.g. `array( "$property" => "$value", "$property" => "$value" )`,
    4546     *                                                                or a WP_Style_Engine_CSS_Declarations object.
     47     *                                                                Default empty array.
    4648     */
    4749    public function __construct( $selector = '', $declarations = array() ) {
     
    6870     * @since 6.1.0
    6971     *
    70      * @param array|WP_Style_Engine_CSS_Declarations $declarations An array of declarations (property => value pairs),
    71      *                                                             or a WP_Style_Engine_CSS_Declarations object.
     72     * @param string[]|WP_Style_Engine_CSS_Declarations $declarations An array of declarations (property => value pairs),
     73     *                                                                or a WP_Style_Engine_CSS_Declarations object.
    7274     * @return WP_Style_Engine_CSS_Rule Returns the object to allow chaining of methods.
    7375     */
     
    115117     * @since 6.1.0
    116118     *
    117      * @param bool $should_prettify Whether to add spacing, new lines and indents.
    118      * @param int  $indent_count    The number of tab indents to apply to the rule. Applies if `prettify` is `true`.
     119     * @param bool $should_prettify Optional. Whether to add spacing, new lines and indents.
     120     *                              Default false.
     121     * @param int  $indent_count    Optional. The number of tab indents to apply to the rule.
     122     *                              Applies if `prettify` is `true`. Default 0.
    119123     * @return string
    120124     */
Note: See TracChangeset for help on using the changeset viewer.