Skip to content

Commit

Permalink
Lint issues: yoda conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Feb 11, 2022
1 parent d6ef327 commit 89fedaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/compat/wordpress-5.9/class-wp-theme-json-5-9.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 89fedaf

Please sign in to comment.