From 2a052e0e2299ae38cac80c437393cac8e15cd066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Wed, 9 Feb 2022 16:42:26 +0100 Subject: [PATCH] Lint issues: yoda conditions --- lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php b/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php index cefeed23ebd6f5..c7090ac7f2dac1 100644 --- a/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php +++ b/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php @@ -620,7 +620,7 @@ public function get_settings() { * @return string Stylesheet. */ public function get_stylesheet( $types = array( 'variables', 'styles', 'presets' ), $origins = null ) { - if ( $origins === null ) { + if ( null === $origins ) { $origins = static::VALID_ORIGINS; } @@ -1059,7 +1059,7 @@ protected static function get_settings_values_by_slug( $settings, $preset_metada * @return array Array of presets where the key and value are both the slug. */ protected static function get_settings_slugs( $settings, $preset_metadata, $origins = null ) { - if ( $origins === null ) { + if ( null === $origins ) { $origins = static::VALID_ORIGINS; } @@ -1225,7 +1225,7 @@ protected static function flatten_tree( $tree, $prefix = '', $token = '--' ) { * @return array Returns the modified $declarations. */ protected static function compute_style_properties( $styles, $settings = array(), $properties = null ) { - if ( $properties === null ) { + if ( null === $properties ) { $properties = static::PROPERTIES_METADATA; }