From 5b0e1cd85c4b71b75009f29f857d4a02b89de549 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 30 Nov 2017 11:58:45 -0800 Subject: [PATCH] Correct phpdoc types --- includes/settings/class-amp-settings-post-types.php | 4 ++-- includes/settings/class-amp-settings.php | 2 +- templates/admin/settings/fields/checkbox-post-types.php | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/includes/settings/class-amp-settings-post-types.php b/includes/settings/class-amp-settings-post-types.php index 04b526db6b2..2a2f646bc75 100644 --- a/includes/settings/class-amp-settings-post-types.php +++ b/includes/settings/class-amp-settings-post-types.php @@ -102,7 +102,7 @@ public function get_settings( $post_type = false ) { * Getter for the supported post types. * * @since 0.6 - * @return object Supported post types list. + * @return array Supported post types list. */ public function get_supported_post_types() { $core = get_post_types( array( @@ -121,7 +121,7 @@ public function get_supported_post_types() { * * @since 0.6 * @param string $post_type The post type name. - * @return object The setting HTML input name attribute. + * @return string The setting HTML input name attribute. */ public function get_name_attribute( $post_type ) { $id = $this->setting['id']; diff --git a/includes/settings/class-amp-settings.php b/includes/settings/class-amp-settings.php index ac1a97a009b..12f4c4ec28a 100644 --- a/includes/settings/class-amp-settings.php +++ b/includes/settings/class-amp-settings.php @@ -86,7 +86,7 @@ public function render_screen() { * Getter for the AMP svg menu icon. * * @since 0.6 - * @return object The AMP svg menu icon. + * @return string The AMP svg menu icon. */ public function get_svg_icon() { return 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iNjJweCIgaGVpZ2h0PSI2MnB4IiB2aWV3Qm94PSIwIDAgNjIgNjIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+QU1Q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MsMjguMTYwNCBMNDEuNjI4ODY2NywyOC4xNjE0MzMzIFogTTMxLDAgQzEzLjg3ODcsMCAwLDEzLjg3OTczMzMgMCwzMSBDMCw0OC4xMjEzIDEzLjg3ODcsNjIgMzEsNjIgQzQ4LjEyMDI2NjcsNjIgNjIsNDguMTIxMyA2MiwzMSBDNjIsMTMuODc5NzMzMyA0OC4xMjAyNjY3LDAgMzEsMCBMMzEsMCBaIiBpZD0iRmlsbC0xIj48L3BhdGg+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4='; diff --git a/templates/admin/settings/fields/checkbox-post-types.php b/templates/admin/settings/fields/checkbox-post-types.php index e72d62d1496..b425894cccc 100644 --- a/templates/admin/settings/fields/checkbox-post-types.php +++ b/templates/admin/settings/fields/checkbox-post-types.php @@ -5,6 +5,12 @@ * @package AMP */ +/** + * Context. + * + * @var AMP_Settings_Post_Types $this + */ + // Check referrer. if ( ! ( $this instanceof AMP_Settings_Post_Types ) ) { return;