From bb596e5fa11135efc6929ded553ea895652631b4 Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Sun, 18 Aug 2024 10:42:26 -0500 Subject: [PATCH] Fix inheritDoc usage --- src/Pods/Integrations/Enfold.php | 6 ------ src/Pods/Integrations/Polylang.php | 6 ------ src/Pods/Integrations/Query_Monitor.php | 9 --------- .../Integrations/Query_Monitor/Collectors/Constants.php | 6 ------ src/Pods/Integrations/Query_Monitor/Collectors/Debug.php | 6 ------ .../Integrations/Query_Monitor/Outputters/Constants.php | 9 --------- src/Pods/Integrations/Query_Monitor/Outputters/Debug.php | 9 --------- src/Pods/Integrations/WPML.php | 6 ------ 8 files changed, 57 deletions(-) diff --git a/src/Pods/Integrations/Enfold.php b/src/Pods/Integrations/Enfold.php index b8404622e7..9b99af5a07 100644 --- a/src/Pods/Integrations/Enfold.php +++ b/src/Pods/Integrations/Enfold.php @@ -11,9 +11,6 @@ */ class Enfold extends Integration { - /** - * @inheritdoc - */ protected $hooks = [ 'action' => [], 'filter' => [ @@ -21,9 +18,6 @@ class Enfold extends Integration { ], ]; - /** - * @inheritDoc - */ public static function is_active() { global $avia_config; diff --git a/src/Pods/Integrations/Polylang.php b/src/Pods/Integrations/Polylang.php index 2ec1c47798..e6a033e58b 100644 --- a/src/Pods/Integrations/Polylang.php +++ b/src/Pods/Integrations/Polylang.php @@ -11,9 +11,6 @@ */ class Polylang extends Integration { - /** - * @inheritdoc - */ protected $hooks = [ 'action' => [ 'pods_meta_init' => [ 'pods_meta_init' ], @@ -31,9 +28,6 @@ class Polylang extends Integration { ], ]; - /** - * @inheritDoc - */ public static function is_active() { return function_exists( 'PLL' ) || ! empty( $GLOBALS['polylang'] ); } diff --git a/src/Pods/Integrations/Query_Monitor.php b/src/Pods/Integrations/Query_Monitor.php index b813d0c05b..686dbce9ba 100644 --- a/src/Pods/Integrations/Query_Monitor.php +++ b/src/Pods/Integrations/Query_Monitor.php @@ -14,9 +14,6 @@ */ class Query_Monitor extends Integration { - /** - * @inheritdoc - */ protected $hooks = [ 'action' => [ 'pods_debug_data' => [ @@ -38,9 +35,6 @@ class Query_Monitor extends Integration { ], ]; - /** - * @inheritDoc - */ public function post_hook() { QM_Collectors::add( new Collectors\Constants() ); QM_Collectors::add( new Collectors\Debug() ); @@ -49,9 +43,6 @@ public function post_hook() { wp_enqueue_style( 'pods-query-monitor' ); } - /** - * @inheritDoc - */ public static function is_active(): bool { return ( class_exists( 'QM_Activation' ) diff --git a/src/Pods/Integrations/Query_Monitor/Collectors/Constants.php b/src/Pods/Integrations/Query_Monitor/Collectors/Constants.php index 02af83e375..1a3d2e715d 100644 --- a/src/Pods/Integrations/Query_Monitor/Collectors/Constants.php +++ b/src/Pods/Integrations/Query_Monitor/Collectors/Constants.php @@ -16,14 +16,8 @@ */ class Constants extends QM_DataCollector { - /** - * {@inheritDoc} - */ public $id = 'pods-constants'; - /** - * {@inheritDoc} - */ public function process() { $defined_constants = []; $undefined_constants = []; diff --git a/src/Pods/Integrations/Query_Monitor/Collectors/Debug.php b/src/Pods/Integrations/Query_Monitor/Collectors/Debug.php index 7967031793..19d136bb24 100644 --- a/src/Pods/Integrations/Query_Monitor/Collectors/Debug.php +++ b/src/Pods/Integrations/Query_Monitor/Collectors/Debug.php @@ -16,9 +16,6 @@ */ class Debug extends QM_DataCollector { - /** - * {@inheritDoc} - */ public $id = 'pods-debug'; /** @@ -30,9 +27,6 @@ class Debug extends QM_DataCollector { */ protected static $custom_data = []; - /** - * {@inheritDoc} - */ public function process() { $this->data['debug_data'] = self::get_debug_data(); } diff --git a/src/Pods/Integrations/Query_Monitor/Outputters/Constants.php b/src/Pods/Integrations/Query_Monitor/Outputters/Constants.php index f3fa37c0a2..26257f3c7b 100644 --- a/src/Pods/Integrations/Query_Monitor/Outputters/Constants.php +++ b/src/Pods/Integrations/Query_Monitor/Outputters/Constants.php @@ -17,25 +17,16 @@ */ class Constants extends QM_Output_Html { - /** - * {@inheritDoc} - */ public function __construct( QM_Collector $collector ) { parent::__construct( $collector ); add_filter( 'qm/output/menus', [ $this, 'admin_menu' ], 999 ); } - /** - * {@inheritDoc} - */ public function name(): string { return __( 'Pods', 'pods' ); } - /** - * {@inheritDoc} - */ public function output(): void { $data = $this->collector->get_data(); diff --git a/src/Pods/Integrations/Query_Monitor/Outputters/Debug.php b/src/Pods/Integrations/Query_Monitor/Outputters/Debug.php index 1fb1a790ac..70c7c8d69b 100644 --- a/src/Pods/Integrations/Query_Monitor/Outputters/Debug.php +++ b/src/Pods/Integrations/Query_Monitor/Outputters/Debug.php @@ -18,9 +18,6 @@ */ class Debug extends QM_Output_Html { - /** - * {@inheritDoc} - */ public function __construct( QM_Collector $collector ) { parent::__construct( $collector ); @@ -28,16 +25,10 @@ public function __construct( QM_Collector $collector ) { add_filter( 'qm/output/panel_menus', [ $this, 'panel_menu' ], 20 ); } - /** - * {@inheritDoc} - */ public function name(): string { return __( 'Pods Debug Log', 'pods' ); } - /** - * {@inheritDoc} - */ public function output(): void { $data = $this->collector->get_data(); diff --git a/src/Pods/Integrations/WPML.php b/src/Pods/Integrations/WPML.php index d293988750..6fa96d35c1 100644 --- a/src/Pods/Integrations/WPML.php +++ b/src/Pods/Integrations/WPML.php @@ -11,9 +11,6 @@ */ class WPML extends Integration { - /** - * @inheritdoc - */ protected $hooks = [ 'action' => [ 'wpml_language_has_switched' => [ 'wpml_language_has_switched' ], @@ -29,9 +26,6 @@ class WPML extends Integration { ], ]; - /** - * @inheritDoc - */ public static function is_active() { return defined( 'ICL_SITEPRESS_VERSION' ) || ! empty( $GLOBALS['sitepress'] ); }