Skip to content

Commit 89fedaf

Browse files
committed
Lint issues: yoda conditions
1 parent d6ef327 commit 89fedaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/compat/wordpress-5.9/class-wp-theme-json-5-9.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ public function get_settings() {
620620
* @return string Stylesheet.
621621
*/
622622
public function get_stylesheet( $types = array( 'variables', 'styles', 'presets' ), $origins = null ) {
623-
if ( $origins === null ) {
623+
if ( null === $origins ) {
624624
$origins = static::VALID_ORIGINS;
625625
}
626626

@@ -1059,7 +1059,7 @@ protected static function get_settings_values_by_slug( $settings, $preset_metada
10591059
* @return array Array of presets where the key and value are both the slug.
10601060
*/
10611061
protected static function get_settings_slugs( $settings, $preset_metadata, $origins = null ) {
1062-
if ( $origins === null ) {
1062+
if ( null === $origins ) {
10631063
$origins = static::VALID_ORIGINS;
10641064
}
10651065

@@ -1225,7 +1225,7 @@ protected static function flatten_tree( $tree, $prefix = '', $token = '--' ) {
12251225
* @return array Returns the modified $declarations.
12261226
*/
12271227
protected static function compute_style_properties( $styles, $settings = array(), $properties = null ) {
1228-
if ( $properties === null ) {
1228+
if ( null === $properties ) {
12291229
$properties = static::PROPERTIES_METADATA;
12301230
}
12311231

0 commit comments

Comments
 (0)