Fix PHPCS violations

This commit is contained in:
Tiago Noronha 2018-06-22 15:11:39 +01:00
parent edc53f220c
commit 169c21e35a
31 changed files with 1180 additions and 809 deletions

View file

@ -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;
}
}
}