Fixed class-wc-widget-product-search.php PHPCS violations
This commit is contained in:
parent
cbb1271b2c
commit
74b5e3f8fa
|
@ -1,17 +1,15 @@
|
|||
<?php
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Product Search Widget.
|
||||
*
|
||||
* @author WooThemes
|
||||
* @category Widgets
|
||||
* @package WooCommerce/Widgets
|
||||
* @version 2.3.0
|
||||
* @extends WC_Widget
|
||||
* @package WooCommerce/Widgets
|
||||
* @version 2.3.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
/**
|
||||
* Widget product search class.
|
||||
*/
|
||||
class WC_Widget_Product_Search extends WC_Widget {
|
||||
|
||||
|
@ -24,7 +22,7 @@ class WC_Widget_Product_Search extends WC_Widget {
|
|||
$this->widget_id = 'woocommerce_product_search';
|
||||
$this->widget_name = __( 'Product Search', 'woocommerce' );
|
||||
$this->settings = array(
|
||||
'title' => array(
|
||||
'title' => array(
|
||||
'type' => 'text',
|
||||
'std' => '',
|
||||
'label' => __( 'Title', 'woocommerce' ),
|
||||
|
@ -39,8 +37,8 @@ class WC_Widget_Product_Search extends WC_Widget {
|
|||
*
|
||||
* @see WP_Widget
|
||||
*
|
||||
* @param array $args
|
||||
* @param array $instance
|
||||
* @param array $args Arguments.
|
||||
* @param array $instance Widget instance.
|
||||
*/
|
||||
public function widget( $args, $instance ) {
|
||||
$this->widget_start( $args, $instance );
|
||||
|
|
Loading…
Reference in New Issue