mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-21 04:11:59 +08:00
Fix PHPCS violations
This commit is contained in:
parent
edc53f220c
commit
169c21e35a
31 changed files with 1180 additions and 809 deletions
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php // @codingStandardsIgnoreLine.
|
||||
/**
|
||||
* Class to create a custom arbitrary html control for dividers etc
|
||||
*
|
||||
|
@ -19,7 +19,7 @@ class Arbitrary_Storefront_Control extends WP_Customize_Control {
|
|||
*
|
||||
* @var string $settings the blog name.
|
||||
*/
|
||||
public $settings = 'blogname';
|
||||
public $settings = 'blogname';
|
||||
|
||||
/**
|
||||
* The description var
|
||||
|
@ -36,17 +36,17 @@ class Arbitrary_Storefront_Control extends WP_Customize_Control {
|
|||
public function render_content() {
|
||||
switch ( $this->type ) {
|
||||
default:
|
||||
case 'text' :
|
||||
case 'text':
|
||||
echo '<p class="description">' . wp_kses_post( $this->description ) . '</p>';
|
||||
break;
|
||||
break;
|
||||
|
||||
case 'heading':
|
||||
echo '<span class="customize-control-title">' . esc_html( $this->label ) . '</span>';
|
||||
break;
|
||||
break;
|
||||
|
||||
case 'divider' :
|
||||
case 'divider':
|
||||
echo '<hr style="margin: 1em 0;" />';
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue