diff --git a/Puc/v4p1/Plugin/Update.php b/Puc/v4p1/Plugin/Update.php index 0a668e5..c82d519 100644 --- a/Puc/v4p1/Plugin/Update.php +++ b/Puc/v4p1/Plugin/Update.php @@ -30,7 +30,7 @@ if ( !class_exists('Puc_v4p1_Plugin_Update', false) ): //we can parse the update JSON as if it was a plugin info string, then copy over //the parts that we care about. $pluginInfo = Puc_v4p1_Plugin_Info::fromJson($json); - if ( $pluginInfo != null ) { + if ( $pluginInfo !== null ) { return self::fromPluginInfo($pluginInfo); } else { return null; diff --git a/Puc/v4p1/Plugin/UpdateChecker.php b/Puc/v4p1/Plugin/UpdateChecker.php index 33f7867..9db41ed 100644 --- a/Puc/v4p1/Plugin/UpdateChecker.php +++ b/Puc/v4p1/Plugin/UpdateChecker.php @@ -125,7 +125,7 @@ if ( !class_exists('Puc_v4p1_Plugin_UpdateChecker', false) ): //For the sake of simplicity, this function just calls requestInfo() //and transforms the result accordingly. $pluginInfo = $this->requestInfo(array('checking_for_updates' => '1')); - if ( $pluginInfo == null ){ + if ( $pluginInfo === null ){ return null; } $update = Puc_v4p1_Plugin_Update::fromPluginInfo($pluginInfo);