Skip to content

Commit

Permalink
Clean up Phan suppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha committed Nov 15, 2024
1 parent a6fefc3 commit a792185
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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__ );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit a792185

Please sign in to comment.