Make WordPress Core


Ignore:
Timestamp:
05/03/2023 11:55:50 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Correct and improve inline docs relating to the style engine.

See #57840

File:
1 edited

Legend:

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

    r54481 r55719  
    2525         * @since 6.1.0
    2626         *
    27          * @var array
     27         * @var string[]
    2828         */
    2929        protected $declarations = array();
    … …  
    3737         * @since 6.1.0
    3838         *
    39          * @param string[] $declarations An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ).
     39         * @param string[] $declarations An associative array of CSS definitions, e.g., `array( "$property" => "$value", "$property" => "$value" )`.
    4040         */
    4141        public function __construct( $declarations = array() ) {
    … …  
    5050         * @param string $property The CSS property.
    5151         * @param string $value    The CSS value.
    52          *
    5352         * @return WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods.
    5453         */
    … …  
    7978         *
    8079         * @param string $property The CSS property.
    81          *
    8280         * @return WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods.
    8381         */
    … …  
    9290         * @since 6.1.0
    9391         *
    94          * @param array $declarations An array of declarations.
    95          *
     92         * @param string[] $declarations An array of declarations.
    9693         * @return WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods.
    9794         */
    … …  
    108105         * @since 6.1.0
    109106         *
    110          * @param array $properties An array of properties.
    111          *
     107         * @param string[] $properties An array of properties.
    112108         * @return WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods.
    113109         */
    … …  
    124120         * @since 6.1.0
    125121         *
    126          * @return array
     122         * @return string[] The declarations array.
    127123         */
    128124        public function get_declarations() {
    … …  
    138134         * @param string $value    The value to be filtered.
    139135         * @param string $spacer   The spacer between the colon and the value. Defaults to an empty string.
    140          *
    141136         * @return string The filtered declaration or an empty string.
    142137         */
    … …  
    154149         * @since 6.1.0
    155150         *
    156          * @param bool   $should_prettify Whether to add spacing, new lines and indents.
    157          * @param number $indent_count    The number of tab indents to apply to the rule. Applies if `prettify` is `true`.
    158          *
     151         * @param bool $should_prettify Whether to add spacing, new lines and indents.
     152         * @param int  $indent_count    The number of tab indents to apply to the rule. Applies if `prettify` is `true`.
    159153         * @return string The CSS declarations.
    160154         */
    … …  
    182176         *
    183177         * @param string $property The CSS property.
    184          *
    185178         * @return string The sanitized property name.
    186179         */
Note: See TracChangeset for help on using the changeset viewer.