Use triple-equals in a few more places

This commit is contained in:
2022-12-25 13:44:54 +01:00
parent 2174e1d08b
commit 49390c372d
8 changed files with 17 additions and 17 deletions

View File

@@ -263,7 +263,7 @@ class Asset
}
$data['id_asset'] = $db->insert_id();
return $return_format == 'object' ? new self($data) : $data;
return $return_format === 'object' ? new self($data) : $data;
}
public function getId()
@@ -394,7 +394,7 @@ class Asset
finfo_close($finfo);
// Detected an image?
if (substr($this->mimetype, 0, 5) == 'image')
if (substr($this->mimetype, 0, 5) === 'image')
{
$image = new Imagick($destination);
$d = $image->getImageGeometry();