From 64716605911fe4f676f19e1ff9a745f9e4c997b6 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Tue, 14 May 2024 11:03:56 -0400 Subject: [PATCH] fix lint --- includes/StagingFeature.php | 11 ++++++++--- includes/StagingFeatureHooks.php | 6 +++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/includes/StagingFeature.php b/includes/StagingFeature.php index c63e3ed..0f1d87c 100644 --- a/includes/StagingFeature.php +++ b/includes/StagingFeature.php @@ -19,11 +19,16 @@ class StagingFeature extends \NewfoldLabs\WP\Module\Features\Feature { * @var string */ protected $name = 'staging'; - protected $value = true; // default to on /** - * Initialize staging feature + * The feature value. Defaults to on. * + * @var boolean + */ + protected $value = true; + + /** + * Initialize staging feature. */ public function initialize() { if ( function_exists( 'add_action' ) ) { @@ -37,4 +42,4 @@ function () { ); } } -} \ No newline at end of file +} diff --git a/includes/StagingFeatureHooks.php b/includes/StagingFeatureHooks.php index 8cbf87b..50c53f8 100644 --- a/includes/StagingFeatureHooks.php +++ b/includes/StagingFeatureHooks.php @@ -36,7 +36,7 @@ public function hooks() { * @param boolean $value the value * @return boolean the filtered value */ - function filterValue( $value ) { + public function filterValue( $value ) { if ( $this->shouldDisable() ) { $value = false; } @@ -48,7 +48,7 @@ function filterValue( $value ) { * * @return void */ - function maybeDisable() { + public function maybeDisable() { if ( $this->shouldDisable() ) { disableFeature( 'staging' ); } @@ -59,7 +59,7 @@ function maybeDisable() { * * @return boolean whether the feature should be disabled */ - function shouldDisable() { + public function shouldDisable() { // check for atomic context return 'atomic' === getContext( 'platform' ); }