Minor: Use strict comparisons

This commit is contained in:
Yahnis Elsts 2017-07-20 19:52:45 +03:00
parent c98ccca312
commit 2b96d033a5
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);