<?php/** * @package WPSEO\Admin\Metabox *//** * Represents the readability analysis */classWPSEO_Metabox_Analysis_ReadabilityimplementsWPSEO_Metabox_Analysis{/** * Whether this analysis is enabled. * * @return bool Whether or not this analysis is enabled. */publicfunctionis_enabled(){return$this->is_globally_enabled()&&$this->is_user_enabled();}/** * Whether or not this analysis is enabled by the user. * * @return bool Whether or not this analysis is enabled by the user. */publicfunctionis_user_enabled(){return!get_the_author_meta('wpseo_content_analysis_disable',get_current_user_id());}/** * Whether or not this analysis is enabled globally. * * @return bool Whether or not this analysis is enabled globally. */publicfunctionis_globally_enabled(){$options=WPSEO_Options::get_option('wpseo');return(bool)$options['content_analysis_active'];}}