| @@ -115,9 +115,9 @@ | ||
| 115 | 115 | */ |
| 116 | 116 | public static function get_breakpoints() { |
| 117 | 117 | return array_reduce( |
| 118 | 118 | array_keys( self::$default_breakpoints ), function( $new_array, $breakpoint_key ) { |
| 119 | - if ( ! in_array( $breakpoint_key, self::$editable_breakpoints_keys, true ) ) { | |
| 119 | + if ( ! in_array( $breakpoint_key, self::$editable_breakpoints_keys ) ) { | |
| 120 | 120 | $new_array[ $breakpoint_key ] = self::$default_breakpoints[ $breakpoint_key ]; |
| 121 | 121 | } else { |
| 122 | 122 | $saved_option = Plugin::$instance->kits_manager->get_current_settings( self::BREAKPOINT_OPTION_PREFIX . $breakpoint_key ); |
| 123 | 123 | |
| @@ -137,9 +137,9 @@ | ||
| 137 | 137 | */ |
| 138 | 138 | public static function has_custom_breakpoints() { |
| 139 | 139 | Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.2.0', 'Plugin::$instance->breakpoints->has_custom_breakpoints()' ); |
| 140 | 140 | |
| 141 | - return (bool) array_diff( self::$default_breakpoints, self::get_breakpoints() ); | |
| 141 | + return ! ! array_diff( self::$default_breakpoints, self::get_breakpoints() ); | |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | 145 | * @since 2.1.0 |