- Timestamp:
- 05/03/2023 11:55:50 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/style-engine/class-wp-style-engine-css-declarations.php
r54481 r55719 25 25 * @since 6.1.0 26 26 * 27 * @var array27 * @var string[] 28 28 */ 29 29 protected $declarations = array(); … … 37 37 * @since 6.1.0 38 38 * 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" )`. 40 40 */ 41 41 public function __construct( $declarations = array() ) { … … 50 50 * @param string $property The CSS property. 51 51 * @param string $value The CSS value. 52 *53 52 * @return WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods. 54 53 */ … … 79 78 * 80 79 * @param string $property The CSS property. 81 *82 80 * @return WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods. 83 81 */ … … 92 90 * @since 6.1.0 93 91 * 94 * @param array $declarations An array of declarations. 95 * 92 * @param string[] $declarations An array of declarations. 96 93 * @return WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods. 97 94 */ … … 108 105 * @since 6.1.0 109 106 * 110 * @param array $properties An array of properties. 111 * 107 * @param string[] $properties An array of properties. 112 108 * @return WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods. 113 109 */ … … 124 120 * @since 6.1.0 125 121 * 126 * @return array122 * @return string[] The declarations array. 127 123 */ 128 124 public function get_declarations() { … … 138 134 * @param string $value The value to be filtered. 139 135 * @param string $spacer The spacer between the colon and the value. Defaults to an empty string. 140 *141 136 * @return string The filtered declaration or an empty string. 142 137 */ … … 154 149 * @since 6.1.0 155 150 * 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`. 159 153 * @return string The CSS declarations. 160 154 */ … … 182 176 * 183 177 * @param string $property The CSS property. 184 *185 178 * @return string The sanitized property name. 186 179 */
Note: See TracChangeset
for help on using the changeset viewer.