| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 12 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function register_nudge( \WP_Customize_Manager $wp_customize_manager ) { |
||
| 41 | |||
| 42 | $nudge = new CSS_Customizer_Nudge( |
||
| 43 | $this->get_nudge_url(), |
||
| 44 | __( 'Purchase a Business Plan to<br> activate CSS customization', 'jetpack' ) |
||
| 45 | ); |
||
| 46 | |||
| 47 | $wp_customize_manager->remove_control( 'custom_css' ); |
||
| 48 | $wp_customize_manager->remove_section( 'custom_css' ); |
||
| 49 | |||
| 50 | $nudge->customize_register_nudge( $wp_customize_manager ); |
||
| 51 | } |
||
| 52 | |||
| 62 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.