Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
parent
7f2a943075
commit
19f660171e
|
@ -242,6 +242,7 @@ abstract class WC_Abstract_Order {
|
|||
* @since 2.2
|
||||
* @param int $item_id order item ID
|
||||
* @param array $args data to update
|
||||
* @param WC_Product $product
|
||||
* @return bool
|
||||
*/
|
||||
public function update_product( $item_id, $product, $args ) {
|
||||
|
|
|
@ -848,6 +848,7 @@ class WC_Admin_Post_Types {
|
|||
* Quick edit
|
||||
*
|
||||
* @param integer $post_id
|
||||
* @param WC_Product $product
|
||||
*/
|
||||
private function quick_edit_save( $post_id, $product ) {
|
||||
global $wpdb;
|
||||
|
@ -990,6 +991,7 @@ class WC_Admin_Post_Types {
|
|||
/**
|
||||
* Bulk edit
|
||||
* @param integer $post_id
|
||||
* @param WC_Product $product
|
||||
*/
|
||||
public function bulk_edit_save( $post_id, $product ) {
|
||||
|
||||
|
|
|
@ -286,6 +286,7 @@ class WC_Breadcrumb {
|
|||
|
||||
/**
|
||||
* Add crumbs for a term
|
||||
* @param string $taxonomy
|
||||
*/
|
||||
private function term_ancestors( $term_id, $taxonomy ) {
|
||||
$ancestors = get_ancestors( $term_id, $taxonomy );
|
||||
|
|
|
@ -2190,7 +2190,7 @@ class WC_Cart {
|
|||
* Get the total of all order discounts (after tax discounts).
|
||||
*
|
||||
* @deprecated Order discounts (after tax) removed in 2.3
|
||||
* @return float
|
||||
* @return integer
|
||||
*/
|
||||
public function get_order_discount_total() {
|
||||
_deprecated_function( 'get_order_discount_total', '2.3' );
|
||||
|
|
|
@ -87,7 +87,7 @@ class WC_Frontend_Scripts {
|
|||
* @access private
|
||||
* @param string $handle [description]
|
||||
* @param string $path [description]
|
||||
* @param array $deps [description]
|
||||
* @param string[] $deps [description]
|
||||
* @param string $version [description]
|
||||
* @param boolean $in_footer [description]
|
||||
*/
|
||||
|
|
|
@ -64,8 +64,8 @@ class WC_Logger {
|
|||
* Add a log entry to chosen file.
|
||||
*
|
||||
* @access public
|
||||
* @param mixed $handle
|
||||
* @param mixed $message
|
||||
* @param string $handle
|
||||
* @param string $message
|
||||
* @return void
|
||||
*/
|
||||
public function add( $handle, $message ) {
|
||||
|
|
|
@ -38,7 +38,7 @@ class WC_Product_Factory {
|
|||
/**
|
||||
* Create a WC coding standards compliant class name e.g. WC_Product_Type_Class instead of WC_Product_type-class
|
||||
* @param string $product_type
|
||||
* @return string|bool
|
||||
* @return string|false
|
||||
*/
|
||||
private function get_classname_from_product_type( $product_type ) {
|
||||
return $product_type ? 'WC_Product_' . implode( '_', array_map( 'ucfirst', explode( '-', $product_type ) ) ) : false;
|
||||
|
|
|
@ -115,7 +115,7 @@ class WC_Product_Grouped extends WC_Product {
|
|||
*
|
||||
* @access public
|
||||
* @param mixed $child_id
|
||||
* @return object WC_Product or WC_Product_variation
|
||||
* @return WC_Product WC_Product or WC_Product_variation
|
||||
*/
|
||||
public function get_child( $child_id ) {
|
||||
return wc_get_product( $child_id );
|
||||
|
|
|
@ -174,7 +174,7 @@ class WC_Product_Variable extends WC_Product {
|
|||
*
|
||||
* @access public
|
||||
* @param mixed $child_id
|
||||
* @return object WC_Product or WC_Product_variation
|
||||
* @return WC_Product WC_Product or WC_Product_variation
|
||||
*/
|
||||
public function get_child( $child_id ) {
|
||||
return wc_get_product( $child_id, array(
|
||||
|
|
Loading…
Reference in New Issue