Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Oct 25, 2024
1 parent c16999e commit 68df013
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/Engine/Plugin/UpdaterSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ public static function get_subscribed_events() {
* @return array Updated array of HTTP request arguments.
*/
public function exclude_rocket_from_wp_updates( $request, $url ) {
if( ! is_string( $url ) ) {
return $request;
}
if ( ! is_string( $url ) ) {

Check failure on line 136 in inc/Engine/Plugin/UpdaterSubscriber.php

View workflow job for this annotation

GitHub Actions / WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.

Call to function is_string() with string will always evaluate to true.
return $request;
}

if ( ! preg_match( '@^https?://api.wordpress.org/plugins/update-check(/|\?|$)@', $url ) || empty( $request['body']['plugins'] ) ) {
// Not a plugin update request. Stop immediately.
Expand Down

0 comments on commit 68df013

Please sign in to comment.