mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-07 01:54:16 +01:00
Scrutinizer weirdness
This commit is contained in:
parent
eb7c143718
commit
98e1dfe7a6
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
namespace OCA\Contacts\Utils;
|
namespace OCA\Contacts\Utils;
|
||||||
|
|
||||||
//use OCP\Image;
|
use OCP\Image;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is used for getting a contact photo for cropping.
|
* This class is used for getting a contact photo for cropping.
|
||||||
|
@ -25,7 +25,9 @@ namespace OCA\Contacts\Utils\TemporaryPhoto;
|
|||||||
use OCA\Contacts\Contact as ContactObject,
|
use OCA\Contacts\Contact as ContactObject,
|
||||||
OCA\Contacts\Utils\TemporaryPhoto as AbstractTemporaryPhoto,
|
OCA\Contacts\Utils\TemporaryPhoto as AbstractTemporaryPhoto,
|
||||||
OCP\IRequest,
|
OCP\IRequest,
|
||||||
OCP\AppFramework\Http;
|
OCP\AppFramework\Http,
|
||||||
|
OCP\Image;
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -58,10 +60,10 @@ class Uploaded extends AbstractTemporaryPhoto {
|
|||||||
*/
|
*/
|
||||||
protected function processImage() {
|
protected function processImage() {
|
||||||
// If image has already been read return
|
// If image has already been read return
|
||||||
if ($this->image instanceOf \OCP\Image) {
|
if ($this->image instanceOf Image) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->image = new \OCP\Image();
|
$this->image = new Image();
|
||||||
\OCP\Util::writeLog('contacts', __METHOD__ . ', Content-Type: ' . $this->request->getHeader('Content-Type'), \OCP\Util::DEBUG);
|
\OCP\Util::writeLog('contacts', __METHOD__ . ', Content-Type: ' . $this->request->getHeader('Content-Type'), \OCP\Util::DEBUG);
|
||||||
\OCP\Util::writeLog('contacts', __METHOD__ . ', Content-Length: ' . $this->request->getHeader('Content-Length'), \OCP\Util::DEBUG);
|
\OCP\Util::writeLog('contacts', __METHOD__ . ', Content-Length: ' . $this->request->getHeader('Content-Length'), \OCP\Util::DEBUG);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user