From a79218579963e78a24ac73e68aad2379485c879f Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Fri, 15 Nov 2024 10:15:05 -0700 Subject: [PATCH] Clean up Phan suppressions --- .../jetpack-mu-wpcom/src/features/custom-css/custom-css.php | 3 --- .../replace-site-visibility/replace-site-visibility.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php b/projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php index 7fbb0a44285b1..425a55b548b6e 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php @@ -987,7 +987,6 @@ public static function update_custom_css_data( $args ) { public static function editor_max_image_size( $dims, $size = 'medium', $context = null ) { list( $width, $height ) = $dims; - // @phan-suppress-next-line PhanUndeclaredClassInCallable if ( class_exists( 'Jetpack' ) && 'large' === $size && 'edit' === $context ) { // @phan-suppress-next-line PhanUndeclaredClassMethod $width = Jetpack::get_content_width(); @@ -1029,7 +1028,6 @@ public static function set_content_width() { return; } - // @phan-suppress-next-line PhanUndeclaredClassInCallable if ( class_exists( 'Jetpack' ) ) { // @phan-suppress-next-line PhanUndeclaredClassMethod $GLOBALS['content_width'] = Jetpack::get_content_width(); @@ -1078,7 +1076,6 @@ public static function load_revision_php() { * Enable CSS module. */ public static function custom_css_loaded() { - // @phan-suppress-next-line PhanUndeclaredClassInCallable if ( class_exists( 'Jetpack' ) ) { // @phan-suppress-next-line PhanUndeclaredClassMethod Jetpack::enable_module_configurable( __FILE__ ); diff --git a/projects/packages/jetpack-mu-wpcom/src/features/replace-site-visibility/replace-site-visibility.php b/projects/packages/jetpack-mu-wpcom/src/features/replace-site-visibility/replace-site-visibility.php index 04e7c7c406dc4..51f060d585c12 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/replace-site-visibility/replace-site-visibility.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/replace-site-visibility/replace-site-visibility.php @@ -11,7 +11,7 @@ * @return bool */ function is_jetpack_connected() { - // @phan-suppress-next-line PhanUndeclaredClassMethod, PhanUndeclaredClassInCallable + // @phan-suppress-next-line PhanUndeclaredClassMethod return class_exists( 'Jetpack' ) && Jetpack::is_connection_ready(); }