Use triple-equals in a few more places

This commit is contained in:
Aaron committed 2022-12-25 13:50:03 +01:00
1 parent 2174e1d08b
commit 49390c372d
8 files changed
+17 -17

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ class Image extends Asset
{
$asset = parent::fromId($id_asset, 'array');
if ($asset)
return $return_format == 'object' ? new Image($asset) : $asset;
return $return_format === 'object' ? new Image($asset) : $asset;
else
return false;
}
@@ -34,7 +34,7 @@ class Image extends Asset
$assets = parent::fromIds($id_assets, 'array');
if ($return_format == 'array')
if ($return_format === 'array')
return $assets;
else
{