1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Revert fix to please Scrutinizer

This commit is contained in:
Thomas Tanghus 2014-03-21 14:19:24 +01:00
parent cc0b0a4c9a
commit 702b0cdc18

View File

@ -22,8 +22,6 @@
namespace OCA\Contacts\Utils;
use OCP\Image;
/**
* This class is used for getting a temporary contact photo for cropping.
*/
@ -131,7 +129,7 @@ class TemporaryPhoto {
* @return bool
*/
public function isValid() {
return (($this->image instanceof Image) && $this->image->valid());
return (($this->image instanceof \OCP\Image) && $this->image->valid());
}
/**
@ -164,7 +162,7 @@ class TemporaryPhoto {
return;
}
if (!$this->image instanceof Image) {
if (!$this->image instanceof \OCP\Image) {
$this->processImage();
}
$this->normalizePhoto();