Minor: Use strict comparisons
This commit is contained in:
parent
c98ccca312
commit
2b96d033a5
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue