From 396faa19d73d1655712ce853e18456882792163b Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 8 Aug 2017 15:25:32 +0100 Subject: [PATCH] phpcs --- includes/class-wc-meta-data.php | 41 +++++++++++++++++---------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/includes/class-wc-meta-data.php b/includes/class-wc-meta-data.php index 41595e1055a..b1830b5468b 100644 --- a/includes/class-wc-meta-data.php +++ b/includes/class-wc-meta-data.php @@ -1,43 +1,47 @@ current_data = $meta; $this->apply_changes(); } @@ -52,9 +56,8 @@ class WC_Meta_Data { /** * Creates or updates a property in the metadata object. * - * @param string $key - * @param mixed $value - * + * @param string $key Key to set. + * @param mixed $value Value to set. */ public function __set( $key, $value ) { $this->current_data[ $key ] = $value; @@ -64,7 +67,7 @@ class WC_Meta_Data { * Checks if a given key exists in our data. This is called internally * by `empty` and `isset`. * - * @param string $key + * @param string $key Key to check if set. */ public function __isset( $key ) { return array_key_exists( $key, $this->current_data ); @@ -73,8 +76,7 @@ class WC_Meta_Data { /** * Returns the value of any property. * - * @param string $key - * + * @param string $key Key to get. * @return mixed Property value or NULL if it does not exists */ public function __get( $key ) { @@ -96,7 +98,6 @@ class WC_Meta_Data { $changes[ $id ] = $value; } } - return $changes; }