From d9e8057df300e90ec16181f1806022a6f8b86a78 Mon Sep 17 00:00:00 2001 From: Shiva Poudel Date: Wed, 4 Nov 2015 00:05:08 +0545 Subject: [PATCH] Tweak the dockblocks and periodic-ending fix --- includes/abstracts/abstract-wc-integration.php | 16 ++++++++-------- .../abstracts/abstract-wc-payment-gateway.php | 2 +- .../abstracts/abstract-wc-settings-api.php | 18 ++++++++++-------- includes/admin/class-wc-admin-settings.php | 4 ++-- includes/class-wc-install.php | 2 +- 5 files changed, 22 insertions(+), 20 deletions(-) diff --git a/includes/abstracts/abstract-wc-integration.php b/includes/abstracts/abstract-wc-integration.php index 9a226fceac2..bb6490e9b7d 100644 --- a/includes/abstracts/abstract-wc-integration.php +++ b/includes/abstracts/abstract-wc-integration.php @@ -1,20 +1,20 @@ settings = get_option( $this->plugin_id . $this->id . '_settings', null ); if ( ! $this->settings || ! is_array( $this->settings ) ) { $this->settings = array(); - // If there are no settings defined, load defaults + // If there are no settings defined, load defaults. if ( $form_fields = $this->get_form_fields() ) { foreach ( $form_fields as $k => $v ) { @@ -171,7 +173,7 @@ abstract class WC_Settings_API { * * @param string $key * @param mixed $empty_value - * @return mixed The value specified for the option or a default value for the option + * @return mixed The value specified for the option or a default value for the option. */ public function get_option( $key, $empty_value = null ) { @@ -179,7 +181,7 @@ abstract class WC_Settings_API { $this->init_settings(); } - // Get option default if unset + // Get option default if unset. if ( ! isset( $this->settings[ $key ] ) ) { $form_fields = $this->get_form_fields(); $this->settings[ $key ] = isset( $form_fields[ $key ]['default'] ) ? $form_fields[ $key ]['default'] : ''; diff --git a/includes/admin/class-wc-admin-settings.php b/includes/admin/class-wc-admin-settings.php index 62e8d320aac..bd678e33d57 100644 --- a/includes/admin/class-wc-admin-settings.php +++ b/includes/admin/class-wc-admin-settings.php @@ -603,8 +603,8 @@ class WC_Admin_Settings { } /** - * Helper function to get the formated description and tip HTML for a. - * given form field. Plugins can call this when implementing their own custom. + * Helper function to get the formated description and tip HTML for a + * given form field. Plugins can call this when implementing their own custom * settings types. * * @param array $value The form field value array diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index a774dabcd62..8f6094fa3a5 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -52,7 +52,7 @@ class WC_Install { } /** - * Install actions such as installing pages when a button is clicked. + * Install actions when a update button is clicked. */ public static function install_actions() { if ( ! empty( $_GET['do_update_woocommerce'] ) ) {