Skip to content

Commit

Permalink
Remove checks for more long-present calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha committed Nov 15, 2024
1 parent 0dd6d17 commit a6fefc3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ public static function editor_max_image_size( $dims, $size = 'medium', $context
list( $width, $height ) = $dims;

// @phan-suppress-next-line PhanUndeclaredClassInCallable

Check failure on line 990 in projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php

View workflow job for this annotation

GitHub Actions / Static analysis

Plugin UnusedPluginSuppression Plugin BuiltinSuppressionPlugin suppresses issue PhanUndeclaredClassInCallable on this line but this suppression is unused or suppressed elsewhere
if ( class_exists( 'Jetpack' ) && is_callable( 'Jetpack::get_content_width' ) && 'large' === $size && 'edit' === $context ) {
if ( class_exists( 'Jetpack' ) && 'large' === $size && 'edit' === $context ) {
// @phan-suppress-next-line PhanUndeclaredClassMethod
$width = Jetpack::get_content_width();
}
Expand Down Expand Up @@ -1030,7 +1030,7 @@ public static function set_content_width() {
}

// @phan-suppress-next-line PhanUndeclaredClassInCallable

Check failure on line 1032 in projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php

View workflow job for this annotation

GitHub Actions / Static analysis

Plugin UnusedPluginSuppression Plugin BuiltinSuppressionPlugin suppresses issue PhanUndeclaredClassInCallable on this line but this suppression is unused or suppressed elsewhere
if ( class_exists( 'Jetpack' ) && is_callable( 'Jetpack::get_content_width' ) ) {
if ( class_exists( 'Jetpack' ) ) {
// @phan-suppress-next-line PhanUndeclaredClassMethod
$GLOBALS['content_width'] = Jetpack::get_content_width();
}
Expand Down Expand Up @@ -1079,7 +1079,7 @@ public static function load_revision_php() {
*/
public static function custom_css_loaded() {
// @phan-suppress-next-line PhanUndeclaredClassInCallable

Check failure on line 1081 in projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php

View workflow job for this annotation

GitHub Actions / Static analysis

Plugin UnusedPluginSuppression Plugin BuiltinSuppressionPlugin suppresses issue PhanUndeclaredClassInCallable on this line but this suppression is unused or suppressed elsewhere
if ( class_exists( 'Jetpack' ) && is_callable( 'Jetpack::enable_module_configurable' ) ) {
if ( class_exists( 'Jetpack' ) ) {
// @phan-suppress-next-line PhanUndeclaredClassMethod
Jetpack::enable_module_configurable( __FILE__ );
}
Expand Down Expand Up @@ -1252,4 +1252,4 @@ public function subvalue() { // phpcs:ignore MediaWiki.Usage.NestedFunctions.Nes
}
}
}
endif;
endif;

0 comments on commit a6fefc3

Please sign in to comment.